Hilscher netX microcontroller driver
V0.0.5.0
Documentation of the netX driver package
|
UART peripheral module driver. More...
Go to the source code of this file.
Macros | |
#define | DRV_HANDLE_CHECK(handle) |
#define | DEV_BAUDRATE_DIV_LO(baud) (((baud*16ull*65536ull)/(SystemCoreClock/100ull)) & 0xff) |
#define | DEV_BAUDRATE_DIV_HI(baud) (((baud*16ull*65536ull)/(SystemCoreClock/100ull))>>8) |
#define | DRV_UART_IRQHandler_Generator(id, _) DRV_Default_IRQHandler_Function_Generator(DRV_UART_IRQ_HANDLER ## id,DRV_UART_IRQ_Inline_Handler,DRV_UART_DEVICE_ID_UART ## id) |
Functions | |
static void | DRV_UART_Flush_DMA_Callback_Rx (void *ptDriverHandle, DRV_UART_HANDLE_T *const ptDriver) |
static void | DRV_UART_Flush_DMA_Callback_Tx (void *ptDriverHandle, DRV_UART_HANDLE_T *const ptDriver) |
Variables | |
static DRV_UART_DEVICE_T *const | s_apDeviceAddressTable [DRV_UART_DEVICE_COUNT] = DRV_UART_DEVICE_LIST |
Table of the device addresses. More... | |
static DRV_DMAC_PERIPHERAL_E const | s_apDeviceDmacTable [DRV_UART_DEVICE_COUNT] = DRV_UART_DEVICE_DMA_LIST |
Table of the device associated dmac channels. More... | |
static IRQn_Type const | s_apHandleIRQnTable [DRV_UART_DEVICE_COUNT] = DRV_UART_DEVICE_IRQ_LIST |
Table of the IRQ vector numbers. More... | |
static DRV_UART_HANDLE_T * | s_apHandleAddressTable [DRV_UART_DEVICE_COUNT] = { 0 } |
Used for mapping the handle to an interrupt. More... | |
UART peripheral module driver.
Definition in file netx_drv_uart.c.
#define DEV_BAUDRATE_DIV_HI | ( | baud | ) | (((baud*16ull*65536ull)/(SystemCoreClock/100ull))>>8) |
#define DEV_BAUDRATE_DIV_LO | ( | baud | ) | (((baud*16ull*65536ull)/(SystemCoreClock/100ull)) & 0xff) |