Make the CC2538 UART driver more configurable
* We can now very easily switch between UART0 and UART1 through a define * We can also configure the UART RX and TX port/pin through defines
This commit is contained in:
parent
1f76b7d0f9
commit
6c6013b898
4 changed files with 91 additions and 37 deletions
|
@ -52,6 +52,13 @@
|
|||
*/
|
||||
#define UART_0_BASE 0x4000C000
|
||||
#define UART_1_BASE 0x4000D000
|
||||
|
||||
/* Default to UART 0 unless the configuration tells us otherwise */
|
||||
#ifdef UART_CONF_BASE
|
||||
#define UART_BASE UART_CONF_BASE
|
||||
#else
|
||||
#define UART_BASE UART_0_BASE
|
||||
#endif
|
||||
/** @} */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue