5a4fd8e0a6
Access to the DWT peripheral for the `CYCCNT` register needs to happen before `main()`. The code needs to be called after the setup of the system clocks, so the right place is between the `premain()` and `main()` function of the STM32 Arduino core. This patch moves the DWT access code to a new function, which is then placed between `premain()` and `main()`. |
||
---|---|---|
.. | ||
HAL_AVR | ||
HAL_DUE | ||
HAL_ESP32 | ||
HAL_LPC1768 | ||
HAL_STM32 | ||
HAL_STM32F1 | ||
HAL_STM32F4 | ||
HAL_STM32F7 | ||
HAL_TEENSY31_32 | ||
HAL_TEENSY35_36 | ||
shared | ||
platforms.h |