From 8b20118198f085481239fc2b27b84abe17f66ef0 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 29 Aug 2019 21:40:25 +0200 Subject: [PATCH] board: enable timers --- firmware/src/board/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firmware/src/board/mod.rs b/firmware/src/board/mod.rs index 7efcdf6..ab945fb 100644 --- a/firmware/src/board/mod.rs +++ b/firmware/src/board/mod.rs @@ -104,6 +104,14 @@ pub fn init() { .pmc7().bits(3) }); + // Timers + sysctl.rcgctimer.write(|w| w + .r2().set_bit() + .r3().set_bit() + .r4().set_bit() + .r5().set_bit() + ); + // Manual: 13.4.5 PWM Mode macro_rules! setup_timer_pwm { ($T: tt) => (