Module to declare HAL UART Task Scheduler interface. More...
Typedefs | |
typedef void(* | hal_uart_task_handler_t )(uint32_t channel) |
Prototype of a UART task handler. More... | |
Enumerations | |
enum | hal_uart_task_id_t { HAL_UART_RX_TASK_ID, HAL_UART_TX_TASK_ID, HAL_UART_ERROR_TASK_ID, HAL_UART_TASKS_AMOUNT } |
Identifiers for registered UART event handlers. More... | |
Functions | |
void | hal_uart_rx_handler (uint32_t channel) |
void | hal_uart_tx_handler (uint32_t channel) |
void | hal_uart_error_handler (uint32_t channel) |
static void | hal_uart_task_post (uint32_t channel, uint8_t hal_uart_task_id) |
Notifies HAL task scheduler to add an UART task for execution. More... | |
Variables | |
volatile uint16_t | g_hal_uart_modules_tasks [CONFIG_HAL_UART_CHANNELS] |
UART channels. More... | |
Module to declare HAL UART Task Scheduler interface.
typedef void(* hal_uart_task_handler_t)(uint32_t channel) |
Prototype of a UART task handler.
Handler which will be called from HAL_UART task.
enum hal_uart_task_id_t |
Identifiers for registered UART event handlers.
enumeration with identifiers of registered UART event handlers. UART handlers will be called from the HAL_UART task.
|
inlinestatic |
Notifies HAL task scheduler to add an UART task for execution.
The function sets a marker for the UART event task for execution. And sets this marker for a channel where event happened.
[in] | channel | event channel. |
[in] | hal_uart_task_id | HAL task identificator. |
volatile uint16_t g_hal_uart_modules_tasks[CONFIG_HAL_UART_CHANNELS] |
UART channels.
Array which includes event id for every channel it happened.