2019-04-17 07:59 AM
Hello.
I was using CubeMX to configure an ADC and a comparator both with enabled interrupt. After the code generation I looked into the init functions but I could not find any interrupt configuration (priority setting and enabeling). In the HAL_COMP_START_IT function there is the starting of the interrupt. But not the priority setting.
So my question is, where is the code generated by CubeMX which does set the interrupt priority? Or do I have to set that manually?
best regards, Benjamin.
Solved! Go to Solution.
2019-04-17 09:41 AM
You want to look at the file stm32yyxx_hal_msp.c.
Here are the functions that enable clocks, initialize GPIOs and configure interrupts for each peripheral.
2019-04-17 09:41 AM
You want to look at the file stm32yyxx_hal_msp.c.
Here are the functions that enable clocks, initialize GPIOs and configure interrupts for each peripheral.
2019-04-17 01:32 PM
Oh ok, I see. Thanks !