Skip to content

Commit

Permalink
rp2/rp2_pio: Allow more than 8 consecutive pins for PIO out/set/sideset.
Browse files Browse the repository at this point in the history
The bitmasks supplied for initialization of out/set/sideset were only 8 bit
instead of 32.  This resulted in an error, that not more than 8 consecutive
pins would get initialized.

Fixes issue #6933.
  • Loading branch information
robert-hh authored and dpgeorge committed Mar 11, 2021
1 parent da85cb0 commit a075e0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/rp2/rp2_pio.c
Expand Up @@ -139,8 +139,8 @@ enum {
typedef struct _asm_pio_config_t {
int8_t base;
uint8_t count;
uint8_t pindirs;
uint8_t pinvals;
uint32_t pindirs;
uint32_t pinvals;
} asm_pio_config_t;

STATIC void asm_pio_override_shiftctrl(mp_obj_t arg, uint32_t bits, uint32_t lsb, pio_sm_config *config) {
Expand Down

0 comments on commit a075e0b

Please sign in to comment.