summaryrefslogtreecommitdiffstats
path: root/drivers/serial.h
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2022-06-18 00:04:17 +0200
committerGitHub <noreply@github.com>2022-06-18 08:04:17 +1000
commitfe680a8568d275732738b07166b8f8a950d1e282 (patch)
tree7bc27994919e1271c9f6effef2e5637442b3b02b /drivers/serial.h
parent6d67e9df4be6981de05517626c1a504da31abf16 (diff)
[Core] Split ChibiOS usart split driver in protocol and hardware driver part (#16669)
Diffstat (limited to 'drivers/serial.h')
-rw-r--r--drivers/serial.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/serial.h b/drivers/serial.h
index 0cfdbd9959..fb91b136e7 100644
--- a/drivers/serial.h
+++ b/drivers/serial.h
@@ -27,3 +27,13 @@ void soft_serial_initiator_init(void);
void soft_serial_target_init(void);
bool soft_serial_transaction(int sstd_index);
+
+#ifdef SERIAL_DEBUG
+# include <debug.h>
+# include <print.h>
+# define serial_dprintf(...) dprintf(__VA_ARGS__)
+#else
+# define serial_dprintf(...) \
+ do { \
+ } while (0)
+#endif