summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial/nextsteps.rst
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-06-27 11:19:16 +1000
committerDamien George <damien@micropython.org>2024-06-27 12:00:20 +1000
commit096adca0c88cd779b3e5e391e42db1d46f87bba1 (patch)
treecd0a62c79ecc722bcc202cecbbb9142be82f66c3 /docs/esp8266/tutorial/nextsteps.rst
parent74f52374e49e3b2370c5fec0e9cfbadc7ec8121e (diff)
stm32/pin: Decrease machine_pin_obj_t.pin width from 5 to 4 bits.
Compiling using arm-none-eabi-gcc 14.1.0 with -O2 will give warnings about possible overflow indexing extint arrays, such as `pyb_extint_callback`. This is due to `machine_pin_obj_t.pin` having a bit-width of 5, and so a possible value up to 31, which is usually larger than `PYB_EXTI_NUM_VECTORS`. To fix this, change `machine_pin_obj_t.pin` to a bit-width of 4. Only 4 bits are needed for ST MCUs, which have up to 16 pins per port. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp8266/tutorial/nextsteps.rst')
0 files changed, 0 insertions, 0 deletions