From 7ce1ae8cdf273267b2d5bc555950bf451457193b Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Tue, 18 Feb 2025 15:50:44 +0000 Subject: [PATCH] Comment typo (#2293) --- src/rp2_common/hardware_pio/pio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/hardware_pio/pio.c b/src/rp2_common/hardware_pio/pio.c index 33b03945..9b59c413 100644 --- a/src/rp2_common/hardware_pio/pio.c +++ b/src/rp2_common/hardware_pio/pio.c @@ -164,7 +164,7 @@ static int add_program_at_offset(PIO pio, const pio_program_t *program, uint off uint16_t instr = program->instructions[i]; #if PICO_PIO_USE_GPIO_BASE if (pio_instr_bits_wait == _pio_major_instr_bits(instr) && !((_pio_arg1(instr) & 3u))) { - // wait GIO will include only the 5 lower bits of the GPIO number, so if the GPIO + // wait GPIO will include only the 5 lower bits of the GPIO number, so if the GPIO // base is 16 we need to flip bit 4 (which is equivalent to subtracting 16 from // the original number 16-47 stored as 16-31 and 0-15) static_assert(PIO_GPIOBASE_BITS == 16, ""); // only works for gpio base being 0 or 16