stm32-rs / stm32l4xx-hal

A Hardware abstraction layer for the stm32l432xx series chips written in rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing timers?

David-OConnor opened this issue · comments

Hi. I'm having trouble setting up General purpose timer 3. Is there a reason they're not available in the hal?

eg:

let timer = timer::Timer::tim3(dp.TIM3, 1.hz(), clocks, &mut rcc.apb1r1);

I'm new to L4, but from reading the Reference Manual, it appears these timers exist, and behave how they would in other STM32 MCUs.

Got it working. PR: #186