Hilscher netX microcontroller driver  V0.0.5.0
Documentation of the netX driver package
netx_drv_uart.c File Reference

UART peripheral module driver. More...

#include "netx_drv.h"
#include <string.h>
Include dependency graph for netx_drv_uart.c:

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_Ts_apHandleAddressTable [DRV_UART_DEVICE_COUNT] = { 0 }
 Used for mapping the handle to an interrupt. More...
 

Detailed Description

UART peripheral module driver.

Revision
6541
Date
2019-12-05 15:11:10 +0100 (Do, 05 Dez 2019)
Note
Exclusion of Liability for this demo software: The following software is intended for and must only be used for reference and in an evaluation laboratory environment. It is provided without charge and is subject to alterations. There is no warranty for the software, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the software "as is" without warranty of any kind, either expressed or implied. Please refer to the Agreement in README_DISCLAIMER.txt, provided together with this file! By installing or otherwise using the software, you accept the terms of this Agreement. If you do not agree to the terms of this Agreement, then do not install or use the Software!

Definition in file netx_drv_uart.c.

Macro Definition Documentation

#define DEV_BAUDRATE_DIV_HI (   baud)    (((baud*16ull*65536ull)/(SystemCoreClock/100ull))>>8)
#define DEV_BAUDRATE_DIV_LO (   baud)    (((baud*16ull*65536ull)/(SystemCoreClock/100ull)) & 0xff)