Skip to content

Commit e0c00c3

Browse files
authored
Clarify PIO define is optional in docs. (#22339)
1 parent d289268 commit e0c00c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/serial_driver.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ Where 'n' matches the peripheral number of your selected USART on the MCU.
235235

236236
The `PIO` subsystem is a Raspberry Pi RP2040 specific implementation, using the integrated PIO peripheral and is therefore only available on this MCU. Because of the flexible nature of the PIO peripherals, **any** GPIO pin can be used as a `TX` or `RX` pin. Half-duplex and Full-duplex operation is fully supported. The Half-duplex operation mode uses the built-in pull-ups and GPIO manipulation on the RP2040 to drive the line high by default. An external pull-up is therefore not necessary.
237237

238-
Configure the hardware via your config.h:
238+
You may optionally switch the PIO peripheral used with the following define in config.h:
239239
```c
240240
#define SERIAL_PIO_USE_PIO1 // Force the usage of PIO1 peripheral, by default the Serial implementation uses the PIO0 peripheral
241241
```

docs/ws2812_driver.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ To configure it, add this to your rules.mk:
170170
WS2812_DRIVER = vendor
171171
```
172172

173-
Configure the hardware via your config.h:
173+
You may optionally switch the PIO peripheral used with the following define in config.h:
174174
```c
175175
#define WS2812_PIO_USE_PIO1 // Force the usage of PIO1 peripheral, by default the WS2812 implementation uses the PIO0 peripheral
176176
```

0 commit comments

Comments
 (0)