diff options
author | QMK Bot <[email protected]> | 2024-11-14 18:00:36 +0000 |
---|---|---|
committer | QMK Bot <[email protected]> | 2024-11-14 18:00:36 +0000 |
commit | 79a661fe61f28e2df76b94f36f0cc3366f088f70 (patch) | |
tree | 640dfe2af0b851fa4c303e48be8ee9771ae4847a /docs/drivers/uart.md | |
parent | 0bda0f47754d01aa904f9831ff58ef760807ab16 (diff) | |
parent | 46236ce3de8385f27e3f13a9921abee7e1e0fa57 (diff) | |
download | qmk_firmware-79a661fe61f28e2df76b94f36f0cc3366f088f70.tar.gz qmk_firmware-79a661fe61f28e2df76b94f36f0cc3366f088f70.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'docs/drivers/uart.md')
-rw-r--r-- | docs/drivers/uart.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/drivers/uart.md b/docs/drivers/uart.md index 23f5b3d6e4..7cc68727ee 100644 --- a/docs/drivers/uart.md +++ b/docs/drivers/uart.md @@ -35,8 +35,12 @@ You'll need to determine which pins can be used for UART -- as an example, STM32 To enable UART, modify your board's `mcuconf.h` to enable the peripheral you've chosen, for example: ```c -#undef STM32_SERIAL_USE_USART2 -#define STM32_SERIAL_USE_USART2 TRUE +#pragma once + +#include_next <mcuconf.h> + +#undef STM32_SERIAL_USE_USART2 // [!code focus] +#define STM32_SERIAL_USE_USART2 TRUE // [!code focus] ``` Configuration-wise, you'll need to set up the peripheral as per your MCU's datasheet -- the defaults match the pins for a Proton-C, i.e. STM32F303. |