Commit Graph

4 Commits

Author SHA1 Message Date
Damien George 2d3241f34c stm32/timer: Expose functions to convert id to reg and enable TIM clock.
This functionality already exists in the TIM code, and can be reused by the
upcoming PWM implementation.

Signed-off-by: Damien George <damien@micropython.org>
2026-03-20 10:42:25 +11:00
Damien George e74f3d5eaa stm32/timer: Use HAL macro to determine if TIM is 32-bit.
Some MCUs (eg N6) have more timers which are 32-bit, and it's best to use
this macro to work that out.

Signed-off-by: Damien George <damien@micropython.org>
2026-03-20 10:42:25 +11:00
Damien George d966a33486 stm32: Change header include guards from STMHAL to STM32 to match dir. 2018-02-15 15:47:04 +11:00
Damien George 01dd7804b8 ports: Make new ports/ sub-directory and move all ports there.
This is to keep the top-level directory clean, to make it clear what is
core and what is a port, and to allow the repository to grow with new ports
in a sustainable way.
2017-09-06 13:40:51 +10:00