FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap9/pmsis/drivers/udma/uart/uart.c File Reference

Functions

void pi_uart_conf_init (struct pi_uart_conf *conf)
 
int pi_uart_open (struct pi_device *device)
 
void pi_uart_close (struct pi_device *device)
 
int pi_uart_ioctl (struct pi_device *device, uint32_t cmd, void *arg)
 
int pi_uart_write (struct pi_device *device, void *buffer, uint32_t size)
 
int pi_uart_write_byte (struct pi_device *device, uint8_t *byte)
 
int pi_uart_write_byte_async (struct pi_device *device, uint8_t *byte, pi_task_t *callback)
 
int pi_uart_write_async (struct pi_device *device, void *buffer, uint32_t size, pi_task_t *callback)
 
int pi_uart_read (struct pi_device *device, void *buffer, uint32_t size)
 
int pi_uart_read_byte (struct pi_device *device, uint8_t *byte)
 
int pi_uart_read_async (struct pi_device *device, void *buffer, uint32_t size, pi_task_t *callback)
 
int pi_uart_write_timeout (struct pi_device *device, void *buffer, uint32_t size, uint32_t timeout_us)
 
int pi_uart_read_timeout (struct pi_device *device, void *buffer, uint32_t size, uint32_t timeout_us)
 

Function Documentation

void pi_uart_close ( struct pi_device *  device)
void pi_uart_conf_init ( struct pi_uart_conf *  conf)

References __pi_uart_conf_init().

int pi_uart_ioctl ( struct pi_device *  device,
uint32_t  cmd,
void *  arg 
)
int pi_uart_open ( struct pi_device *  device)

References __pi_uart_open(), and UART_TRACE.

int pi_uart_read ( struct pi_device *  device,
void *  buffer,
uint32_t  size 
)
int pi_uart_read_async ( struct pi_device *  device,
void *  buffer,
uint32_t  size,
pi_task_t callback 
)
int pi_uart_read_byte ( struct pi_device *  device,
uint8_t *  byte 
)
int pi_uart_read_timeout ( struct pi_device *  device,
void *  buffer,
uint32_t  size,
uint32_t  timeout_us 
)
int pi_uart_write ( struct pi_device *  device,
void *  buffer,
uint32_t  size 
)
int pi_uart_write_async ( struct pi_device *  device,
void *  buffer,
uint32_t  size,
pi_task_t callback 
)
int pi_uart_write_byte ( struct pi_device *  device,
uint8_t *  byte 
)
int pi_uart_write_byte_async ( struct pi_device *  device,
uint8_t *  byte,
pi_task_t callback 
)

References pi_uart_write_async().

int pi_uart_write_timeout ( struct pi_device *  device,
void *  buffer,
uint32_t  size,
uint32_t  timeout_us 
)