aboutsummaryrefslogtreecommitdiff
path: root/docs/serial_driver.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/serial_driver.md')
-rw-r--r--docs/serial_driver.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/serial_driver.md b/docs/serial_driver.md
index ed989b0a1..3e89deffa 100644
--- a/docs/serial_driver.md
+++ b/docs/serial_driver.md
@@ -63,7 +63,7 @@ Configure the hardware via your config.h:
63 // 5: about 19200 baud 63 // 5: about 19200 baud
64#define SERIAL_USART_DRIVER SD1 // USART driver of TX pin. default: SD1 64#define SERIAL_USART_DRIVER SD1 // USART driver of TX pin. default: SD1
65#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7 65#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
66#define SERIAL_USART_TIMEOUT 100 // USART driver timeout. default 100 66#define SERIAL_USART_TIMEOUT 20 // USART driver timeout. default 20
67``` 67```
68 68
69You must also enable the ChibiOS `SERIAL` feature: 69You must also enable the ChibiOS `SERIAL` feature:
@@ -105,10 +105,10 @@ Next configure the hardware via your config.h:
105 // 3: 57600 baud 105 // 3: 57600 baud
106 // 4: 38400 baud 106 // 4: 38400 baud
107 // 5: 19200 baud 107 // 5: 19200 baud
108#define SERIAL_USART_DRIVER SD1 // USART driver of TX and RX pin. default: SD1 108#define SERIAL_USART_DRIVER SD1 // USART driver of TX and RX pin. default: SD1
109#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7 109#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
110#define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7 110#define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
111#define SERIAL_USART_TIMEOUT 100 // USART driver timeout. default 100 111#define SERIAL_USART_TIMEOUT 20 // USART driver timeout. default 20
112``` 112```
113 113
114You must also enable the ChibiOS `SERIAL` feature: 114You must also enable the ChibiOS `SERIAL` feature: