BSPACM
20150113
Board Support Package for ARM Cortex-M Microcontrollers
|
Include file to define UART instances for EFM32 devices. More...
#include <bspacm/internal/utility/cppinc.h>
Include file to define UART instances for EFM32 devices.
In your periph_config.c
file you should define parameter macros described below, and include this file, once for each UART device you need in your application. Make sure the periph_config.c
file also defines a pin mux assignment for the peripherals you will used.
Define:
BSPACM_INC_PERIPHNUM
to the instance number that should be adjoined to the peripheral name (e.g. 0 for UART0, 1 for UART1).BSPACM_INC_TX_BUFFER_SIZE
(optional) to the desired size for the internal transmit fifoBSPACM_INC_RX_BUFFER_SIZE
(optional) to the desired size for the internal receive fifoThis will add the following symbols (where # denotes the peripheral number):
UART::_RX_IRQHandler
and UART::_TX_IRQHandler
which get installed in the interrupt vectorxBSPACMdeviceEFM32periphUART#
which may be used as a handle to operations described in <bspacm/periph/uart.h>.