Configurable serial usart timeout (#11057)

This commit is contained in:
XScorpion2 authored and James Young committed 2020-11-30 03:29:35 -08:00
1 parent 485e4524f4
commit 990d5189d1
2 files changed
+9 -5

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ Configure the hardware via your config.h:
// 5: about 19200 baud
#define SERIAL_USART_DRIVER SD1 // USART driver of TX pin. default: SD1
#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
#define SERIAL_USART_TIMEOUT 100 // USART driver timeout. default 100
```
You must also enable the ChibiOS `SERIAL` feature: