aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUwe Hermann2009-07-25 02:01:55 +0200
committerUwe Hermann2009-07-25 02:01:55 +0200
commit5ba3aae7d70ed223f035dbcc32fdc4d8b585ff1d (patch)
tree10aac4f45486c8a335e970b8c20285f18635c5c6 /include
parentbb7ce24f4217667ed55ca0afca8da9dd62a0e4d7 (diff)
Add simple USART convenience macros.
Diffstat (limited to 'include')
-rw-r--r--include/libopenstm32/usart.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libopenstm32/usart.h b/include/libopenstm32/usart.h
index 0c2c8e3..1408611 100644
--- a/include/libopenstm32/usart.h
+++ b/include/libopenstm32/usart.h
@@ -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) */