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()`. |
||
---|---|---|
.. | ||
endstop_interrupts.h | ||
fastio_STM32.cpp | ||
fastio_STM32.h | ||
HAL.cpp | ||
HAL.h | ||
HAL_Servo_STM32.cpp | ||
HAL_Servo_STM32.h | ||
HAL_spi_STM32.cpp | ||
HAL_timers_STM32.cpp | ||
HAL_timers_STM32.h | ||
persistent_store_impl.cpp | ||
pinsDebug.h | ||
README.md | ||
SanityCheck.h | ||
spi_pins.h | ||
watchdog_STM32.cpp | ||
watchdog_STM32.h |
Generic STM32 HAL based on the stm32duino core
This HAL is intended to act as the generic STM32 HAL for all STM32 chips (The whole F, H and L family).
Currently it supports:
- STM32F0xx
- STM32F1xx
- STM32F4xx
- STM32F7xx
Targeting the official Arduino STM32 Core.