summaryrefslogtreecommitdiff
path: root/platforms/chibios/drivers/uart.h
diff options
context:
space:
mode:
authorJoy Lee <chang.li@westberrytech.com>2021-11-27 06:28:18 +0800
committerGitHub <noreply@github.com>2021-11-27 09:28:18 +1100
commit68838bb700413144c6fdaf680f3d412b8231b584 (patch)
tree771e7fea9bc145c9e833ac66dcb712af9b55e532 /platforms/chibios/drivers/uart.h
parentb04f66f2452494206673323c9495ea6a56c0cb06 (diff)
Westberrytech pr (#14422)
* Added support for WB32 MCU * Modified eeprom_wb32.c * Remove the eeprom_wb32-related code
Diffstat (limited to 'platforms/chibios/drivers/uart.h')
-rw-r--r--platforms/chibios/drivers/uart.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/platforms/chibios/drivers/uart.h b/platforms/chibios/drivers/uart.h
index 5bc4875901..603d51037b 100644
--- a/platforms/chibios/drivers/uart.h
+++ b/platforms/chibios/drivers/uart.h
@@ -68,6 +68,22 @@
# define SD1_CR3 0
#endif
+#ifndef SD1_WRDLEN
+# define SD1_WRDLEN 3
+#endif
+
+#ifndef SD1_STPBIT
+# define SD1_STPBIT 0
+#endif
+
+#ifndef SD1_PARITY
+# define SD1_PARITY 0
+#endif
+
+#ifndef SD1_ATFLCT
+# define SD1_ATFLCT 0
+#endif
+
void uart_init(uint32_t baud);
void uart_write(uint8_t data);