Skip to content

Commit 8b0618f

Browse files
authored
Comment typo
1 parent 38776d8 commit 8b0618f

File tree

1 file changed

+1
-1
lines changed
  • src/rp2_common/hardware_pio

1 file changed

+1
-1
lines changed

src/rp2_common/hardware_pio/pio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static int add_program_at_offset(PIO pio, const pio_program_t *program, uint off
164164
uint16_t instr = program->instructions[i];
165165
#if PICO_PIO_USE_GPIO_BASE
166166
if (pio_instr_bits_wait == _pio_major_instr_bits(instr) && !((_pio_arg1(instr) & 3u))) {
167-
// wait GIO will include only the 5 lower bits of the GPIO number, so if the GPIO
167+
// wait GPIO will include only the 5 lower bits of the GPIO number, so if the GPIO
168168
// base is 16 we need to flip bit 4 (which is equivalent to subtracting 16 from
169169
// the original number 16-47 stored as 16-31 and 0-15)
170170
static_assert(PIO_GPIOBASE_BITS == 16, ""); // only works for gpio base being 0 or 16

0 commit comments

Comments
 (0)