mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
oops
This commit is contained in:
parent
24e036bde0
commit
6f7c539062
1 changed files with 1 additions and 2 deletions
|
|
@ -180,8 +180,7 @@ static inline void sm_config_set_sideset_pins(pio_sm_config *c, uint sideset_bas
|
|||
*/
|
||||
static inline void sm_config_set_sideset(pio_sm_config *c, uint bit_count, bool optional, bool pindirs) {
|
||||
assert(bit_count <= 5);
|
||||
if (optional)
|
||||
assert(bit_count >= 1);
|
||||
assert(!optional || bit_count >= 1);
|
||||
c->pinctrl = (c->pinctrl & ~PIO_SM0_PINCTRL_SIDESET_COUNT_BITS) |
|
||||
(bit_count << PIO_SM0_PINCTRL_SIDESET_COUNT_LSB);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue