1
0
Fork 0

Configurable serial usart timeout (#11057)

This commit is contained in:
XScorpion2 2020-11-29 10:28:03 -06:00 committed by James Young
parent 485e4524f4
commit 990d5189d1
No known key found for this signature in database
GPG key ID: 8E1085BF6FCFBD74
2 changed files with 9 additions and 5 deletions

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: