Skip to content

STM32 Arduino Core 3 compatibility, Remove dependency on HardwareTimer - #550

Merged
askuric merged 5 commits into
simplefoc:devfrom
Moddingear:hardwaretimer_liberation
Oct 4, 2026
Merged

askuric merged 5 commits into
simplefoc:devfrom
Moddingear:hardwaretimer_liberation

Conversation

@Moddingear

Copy link
Copy Markdown
Contributor

SimpleFOC relies on some functions from HardwareTimer.

HardwareTimer register all interrupt for all timers, making timer interrupts unusable on STM32.

HardwareTimer can be disabled by defining HAL_TIM_MODULE_ONLY, but then SimpleFOC is missing some functions.

This makes it so that those function exist when HAL_TIM_MODULE_ONLY is defined.

Should be merged at the same time as simplefoc/Arduino-FOC-drivers#94

@Moddingear

Copy link
Copy Markdown
Contributor Author

(test doesn't pass because this isn't enabled, if it was, they would pass)

@Moddingear
Moddingear force-pushed the hardwaretimer_liberation branch from bb4eb87 to a9f7282 Compare September 28, 2026 09:03
@Moddingear Moddingear changed the title HardwareTimer liberation STM32 Arduino Core 3 compatibility, Remove dependency on HardwareTimer Oct 2, 2026
@askuric

askuric commented Oct 4, 2026

Copy link
Copy Markdown
Member

these are two different PR's right?
One solving the stm32duino issue and the other removing the hardware timer?

I would prefer to have them separated. It's a lot harder to test. For example now we have the h7 which is failing.

Let me test a bit. But let's keep one thing at the time for the future.

@askuric

askuric commented Oct 4, 2026

Copy link
Copy Markdown
Member

ok merging

@askuric
askuric merged commit d2f8464 into simplefoc:dev Oct 4, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants