Add defines for UART numbers
authorNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 26 Apr 2016 23:00:38 +0000 (01:00 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
include/drivers/serial.h

index 8a6fcd8..ff27f9a 100644 (file)
 #include <stdint.h>
 
 
+#define UART0  0
+#define UART1  1
+#define UART2  2
+#define UART3  3
+
 #define SERIAL_CAP_UART   (1 << 0)
 #define SERIAL_CAP_RS485  (1 << 1)
 #define SERIAL_CAP_IRDA   (1 << 2)