Add simple USART convenience macros.
This commit is contained in:
@@ -22,6 +22,14 @@
|
||||
|
||||
#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 ----------------------------------------------------- */
|
||||
|
||||
/* Status register (USARTx_SR) */
|
||||
|
||||
Reference in New Issue
Block a user