Add simple USART convenience macros.
This commit is contained in:
parent
bb7ce24f42
commit
5ba3aae7d7
@ -22,6 +22,14 @@
|
|||||||
|
|
||||||
#include <libopenstm32.h>
|
#include <libopenstm32.h>
|
||||||
|
|
||||||
|
/* --- Convenience macros -------------------------------------------------- */
|
||||||
|
|
||||||
|
#define USART1 USART1_BASE
|
||||||
|
#define USART2 USART2_BASE
|
||||||
|
#define USART3 USART3_BASE
|
||||||
|
#define UART4 UART4_BASE
|
||||||
|
#define UART5 UART5_BASE
|
||||||
|
|
||||||
/* --- USART registers ----------------------------------------------------- */
|
/* --- USART registers ----------------------------------------------------- */
|
||||||
|
|
||||||
/* Status register (USARTx_SR) */
|
/* Status register (USARTx_SR) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user