Add simple USART convenience macros.

This commit is contained in:
Uwe Hermann 2009-07-25 02:01:55 +02:00
parent bb7ce24f42
commit 5ba3aae7d7

View File

@ -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) */