mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
fix warning
This commit is contained in:
parent
2dd58bff9e
commit
6a7b4c7160
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ static int add_program_at_offset(PIO pio, const pio_program_t *program, uint off
|
||||||
// base is 16 we need to flip bit 4 (which is equivalent to subtracting 16 from
|
// 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)
|
// 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
|
static_assert(PIO_GPIOBASE_BITS == 16, ""); // only works for gpio base being 0 or 16
|
||||||
instr ^= pio_get_gpio_base(pio);
|
instr ^= (uint16_t)pio_get_gpio_base(pio);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
pio->instr_mem[offset + i] = pio_instr_bits_jmp != _pio_major_instr_bits(instr) ? instr : instr + offset;
|
pio->instr_mem[offset + i] = pio_instr_bits_jmp != _pio_major_instr_bits(instr) ? instr : instr + offset;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue