diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2022-06-18 00:04:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-18 08:04:17 +1000 |
commit | fe680a8568d275732738b07166b8f8a950d1e282 (patch) | |
tree | 7bc27994919e1271c9f6effef2e5637442b3b02b /drivers | |
parent | 6d67e9df4be6981de05517626c1a504da31abf16 (diff) |
[Core] Split ChibiOS usart split driver in protocol and hardware driver part (#16669)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial.h | 10 |
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 |