STM32F3xx Testhal has too few parameters in EXTI configuration
Posted: Wed May 24, 2017 9:43 am
Hello,
I was trying to get External Interrupts going, and I was looking at the example for STM32F3xx (C:\ChibiStudio\chibios161\testhal\STM32\STM32F3xx\EXT\main.c). I saw that the static const EXTConfig extcfg has 23 items. However, looking at the reference manual I saw 30+ interrupt sources. In the low level driver for STM32F3xx ( C:\ChibiStudio\chibios161\os\hal\ports\STM32\STM32F3xx\ext_lld_isr.c) there are items that do use the higher sources ( EXTD1.config->channels[33].cb(&EXTD1, 33); .
Shouldn't the example, in order to avoid future issues where 'higher index EXT' sources are called, use a initialisation table with 34 entries?
I was trying to get External Interrupts going, and I was looking at the example for STM32F3xx (C:\ChibiStudio\chibios161\testhal\STM32\STM32F3xx\EXT\main.c). I saw that the static const EXTConfig extcfg has 23 items. However, looking at the reference manual I saw 30+ interrupt sources. In the low level driver for STM32F3xx ( C:\ChibiStudio\chibios161\os\hal\ports\STM32\STM32F3xx\ext_lld_isr.c) there are items that do use the higher sources ( EXTD1.config->channels[33].cb(&EXTD1, 33); .
Shouldn't the example, in order to avoid future issues where 'higher index EXT' sources are called, use a initialisation table with 34 entries?