FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap8/pmsis/include/pmsis/implem/hal/udma/udma_uart.h File Reference

Functions

static void uart_udma_channel_set (uint32_t device_id, uint32_t l2_buf, uint32_t size, uint32_t cfg, udma_channel_e channel)
 
static uint32_t uart_status_get (uint32_t device_id)
 
static void uart_setup_set (uint32_t device_id, uint32_t setup)
 
static uint32_t uart_setup_get (uint32_t device_id)
 
static void hal_uart_parity_enable (uint32_t device_id)
 
static void hal_uart_parity_disable (uint32_t device_id)
 
static void hal_uart_bit_length_set (uint32_t device_id, uint8_t bit_length)
 
static void hal_uart_stop_bits_set (uint32_t device_id, uint8_t stop_bits)
 
static void hal_uart_tx_enable (uint32_t device_id)
 
static void hal_uart_tx_disable (uint32_t device_id)
 
static void hal_uart_rx_enable (uint32_t device_id)
 
static void hal_uart_rx_disable (uint32_t device_id)
 
static void hal_uart_clkdiv_set (uint32_t device_id, uint16_t clk_div)
 
static void hal_uart_setup_set (uint32_t device_id, uint16_t clk_div, uint8_t rx_ena, uint8_t tx_ena, uint8_t stop_bits, uint8_t bit_length, uint8_t parity_ena)
 
static uint32_t hal_uart_tx_status_get (uint32_t device_id)
 
static uint32_t hal_uart_rx_status_get (uint32_t device_id)
 
static uint32_t hal_uart_rx_parity_error_get (uint32_t device_id)
 
static void hal_uart_enqueue (uint32_t device_id, uint32_t l2_buf, uint32_t size, uint32_t cfg, udma_channel_e channel)
 
static void hal_uart_rx_clear (uint32_t device_id)
 
static void hal_uart_tx_clear (uint32_t device_id)
 

Function Documentation

static void hal_uart_bit_length_set ( uint32_t  device_id,
uint8_t  bit_length 
)
inlinestatic
static void hal_uart_clkdiv_set ( uint32_t  device_id,
uint16_t  clk_div 
)
inlinestatic
static void hal_uart_enqueue ( uint32_t  device_id,
uint32_t  l2_buf,
uint32_t  size,
uint32_t  cfg,
udma_channel_e  channel 
)
inlinestatic

UDMA.

References uart_udma_channel_set(), and UDMA_CORE_RX_CFG_EN.

Referenced by __pi_uart_copy_exec().

static void hal_uart_parity_disable ( uint32_t  device_id)
inlinestatic
static void hal_uart_parity_enable ( uint32_t  device_id)
inlinestatic
static void hal_uart_rx_clear ( uint32_t  device_id)
inlinestatic

References RX_CHANNEL, uart, and udma_channel_clear().

Referenced by __pi_uart_rx_abort().

static void hal_uart_rx_disable ( uint32_t  device_id)
inlinestatic
static void hal_uart_rx_enable ( uint32_t  device_id)
inlinestatic
static uint32_t hal_uart_rx_parity_error_get ( uint32_t  device_id)
inlinestatic
static uint32_t hal_uart_rx_status_get ( uint32_t  device_id)
inlinestatic
static void hal_uart_setup_set ( uint32_t  device_id,
uint16_t  clk_div,
uint8_t  rx_ena,
uint8_t  tx_ena,
uint8_t  stop_bits,
uint8_t  bit_length,
uint8_t  parity_ena 
)
inlinestatic
static void hal_uart_stop_bits_set ( uint32_t  device_id,
uint8_t  stop_bits 
)
inlinestatic
static void hal_uart_tx_clear ( uint32_t  device_id)
inlinestatic

References TX_CHANNEL, uart, and udma_channel_clear().

Referenced by __pi_uart_tx_abort().

static void hal_uart_tx_disable ( uint32_t  device_id)
inlinestatic
static void hal_uart_tx_enable ( uint32_t  device_id)
inlinestatic
static uint32_t hal_uart_tx_status_get ( uint32_t  device_id)
inlinestatic
static void uart_setup_set ( uint32_t  device_id,
uint32_t  setup 
)
inlinestatic
static uint32_t uart_status_get ( uint32_t  device_id)
inlinestatic
static void uart_udma_channel_set ( uint32_t  device_id,
uint32_t  l2_buf,
uint32_t  size,
uint32_t  cfg,
udma_channel_e  channel 
)
inlinestatic

UART udma configuration.

References uart, and udma_enqueue_channel().

Referenced by hal_uart_enqueue().