Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years ago.
Timer selection for Nucleo F411
Is there an easy way to know what timers are used in the mbed library for wait, timer, timeout and ticker? I need to setup a timer to trigger the ADC independent of the mbed library and I would like to avoid using those timers so I can still use those API calls.
From the code it looks like: TIM5 channel 1 = mbed timeout channel 2 = HAL tick
Can anyone confirm that this is all that's used?
Thanks
1 Answer
10 years ago.
For reference: https://github.com/mbedmicro/mbed/blob/master/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/hal_tick.c
THis is the hal tick implementation for F411. AS you stated, those 2 are used. Then you got PWM here are pins for your platform https://github.com/mbedmicro/mbed/blob/master/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralPins.c#L85. It might be that for your platform all timers are used in these 2 HAL modules.