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

Macros

#define UART_CTRL_FLOW_DIS
 
#define UART_CTRL_FLOW_ENA
 
#define UART_USART_DIS
 
#define UART_USART_ENA
 

Functions

static void hal_udma_uart_rx_dest_set (uint32_t device_id, int32_t udma_chan_id)
 
static uint32_t hal_udma_uart_rx_dest_get (uint32_t device_id)
 
static void hal_udma_uart_tx_dest_set (uint32_t device_id, int32_t udma_chan_id)
 
static uint32_t hal_udma_uart_tx_dest_get (uint32_t device_id)
 
static uint32_t hal_udma_uart_status_get (uint32_t device_id)
 
static uint32_t hal_udma_uart_tx_status_get (uint32_t device_id)
 
static uint32_t hal_udma_uart_rx_status_get (uint32_t device_id)
 
static uint32_t hal_udma_uart_setup_get (uint32_t device_id)
 
static void hal_udma_uart_setup_mask_set (uint32_t device_id, uint32_t setup)
 
static void hal_udma_uart_setup_set (uint32_t device_id, uint8_t parity_ena, uint8_t bit_length, uint8_t stop_bits, uint8_t tx_ena, uint8_t rx_ena, uint8_t cts_en, uint8_t rts_en, uint8_t tx_clk_en, uint8_t tx_clk_pol, uint8_t tx_clk_pha, uint16_t clkdiv)
 
static void hal_udma_uart_clk_div_set (uint32_t device_id, uint16_t clkdiv)
 
static void hal_udma_uart_rx_enable (uint32_t device_id)
 
static void hal_udma_uart_rx_disable (uint32_t device_id)
 
static void hal_udma_uart_tx_enable (uint32_t device_id)
 
static void hal_udma_uart_tx_disable (uint32_t device_id)
 
static void hal_udma_uart_flow_control_enable (uint32_t device_id)
 
static void hal_udma_uart_flow_control_disable (uint32_t device_id)
 
static uint32_t hal_udma_uart_error_get (uint32_t device_id)
 
static void hal_udma_uart_irq_enable (uint32_t device_id)
 
static void hal_udma_uart_irq_disable (uint32_t device_id)
 
static uint32_t hal_udma_uart_rts_limit_get (uint32_t device_id)
 
static void hal_udma_uart_rts_limit_set (uint32_t device_id, uint8_t limit)
 
static void hal_udma_uart_enqueue (uint32_t device_id, uint32_t l2_buf_0, uint32_t l2_buf_1, uint32_t size, uint32_t cfg, udma_channel_e channel)
 

Macro Definition Documentation

#define UART_CTRL_FLOW_DIS

Referenced by __pi_uart_conf_init().

#define UART_CTRL_FLOW_ENA
#define UART_USART_DIS

Referenced by __pi_uart_conf_init().

#define UART_USART_ENA

Function Documentation

static void hal_udma_uart_clk_div_set ( uint32_t  device_id,
uint16_t  clkdiv 
)
inlinestatic
static void hal_udma_uart_enqueue ( uint32_t  device_id,
uint32_t  l2_buf_0,
uint32_t  l2_buf_1,
uint32_t  size,
uint32_t  cfg,
udma_channel_e  channel 
)
inlinestatic
static uint32_t hal_udma_uart_error_get ( uint32_t  device_id)
inlinestatic

ERROR Register.

References udma_uart, and udma_uart_error_get().

Referenced by __pi_uart_error_handler().

static void hal_udma_uart_flow_control_disable ( uint32_t  device_id)
inlinestatic
static void hal_udma_uart_flow_control_enable ( uint32_t  device_id)
inlinestatic
static void hal_udma_uart_irq_disable ( uint32_t  device_id)
inlinestatic

References udma_uart, and udma_uart_irq_en_set().

Referenced by __pi_uart_close().

static void hal_udma_uart_irq_enable ( uint32_t  device_id)
inlinestatic
static uint32_t hal_udma_uart_rts_limit_get ( uint32_t  device_id)
inlinestatic

SETUP_2 Register.

References udma_uart, and udma_uart_setup_2_get().

Referenced by __pi_uart_conf_set().

static void hal_udma_uart_rts_limit_set ( uint32_t  device_id,
uint8_t  limit 
)
inlinestatic

References udma_uart, and udma_uart_setup_2_set().

Referenced by __pi_uart_conf_set().

static uint32_t hal_udma_uart_rx_dest_get ( uint32_t  device_id)
inlinestatic
static void hal_udma_uart_rx_dest_set ( uint32_t  device_id,
int32_t  udma_chan_id 
)
inlinestatic

RX_DEST Register.

References UDMA_CORE_LIN_DEFAULT, udma_uart, and udma_uart_rx_dest_set().

Referenced by __pi_uart_close(), and __pi_uart_conf_set().

static void hal_udma_uart_rx_disable ( uint32_t  device_id)
inlinestatic
static void hal_udma_uart_rx_enable ( uint32_t  device_id)
inlinestatic
static uint32_t hal_udma_uart_rx_status_get ( uint32_t  device_id)
inlinestatic
static uint32_t hal_udma_uart_setup_get ( uint32_t  device_id)
inlinestatic

SETUP Register.

References udma_uart, and udma_uart_setup_get().

Referenced by __pi_uart_conf_set().

static void hal_udma_uart_setup_mask_set ( uint32_t  device_id,
uint32_t  setup 
)
inlinestatic

References udma_uart, and udma_uart_setup_set().

Referenced by __pi_uart_conf_set().

static void hal_udma_uart_setup_set ( uint32_t  device_id,
uint8_t  parity_ena,
uint8_t  bit_length,
uint8_t  stop_bits,
uint8_t  tx_ena,
uint8_t  rx_ena,
uint8_t  cts_en,
uint8_t  rts_en,
uint8_t  tx_clk_en,
uint8_t  tx_clk_pol,
uint8_t  tx_clk_pha,
uint16_t  clkdiv 
)
inlinestatic

References udma_uart, and udma_uart_setup_set().

static uint32_t hal_udma_uart_status_get ( uint32_t  device_id)
inlinestatic

STATUS Register.

References udma_uart, and udma_uart_status_get().

static uint32_t hal_udma_uart_tx_dest_get ( uint32_t  device_id)
inlinestatic
static void hal_udma_uart_tx_dest_set ( uint32_t  device_id,
int32_t  udma_chan_id 
)
inlinestatic

TX_DEST Register.

References UDMA_CORE_LIN_DEFAULT, udma_uart, and udma_uart_tx_dest_set().

Referenced by __pi_uart_close(), and __pi_uart_conf_set().

static void hal_udma_uart_tx_disable ( uint32_t  device_id)
inlinestatic
static void hal_udma_uart_tx_enable ( uint32_t  device_id)
inlinestatic
static uint32_t hal_udma_uart_tx_status_get ( uint32_t  device_id)
inlinestatic