Skip to content
Snippets Groups Projects
Commit 5a4fd8e0 authored by Nils Hasenbanck's avatar Nils Hasenbanck Committed by Scott Lahteine
Browse files

Fix access to the DWT peripheral for STM32 HAL (#12434)

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()`.
parent 7f225b94
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment