From 1b25e043e65b925da5a5fd5c6e0201f8d5183325 Mon Sep 17 00:00:00 2001 From: thalesfragoso Date: Thu, 18 Jul 2019 12:41:56 -0300 Subject: [PATCH] syst small fix --- src/start/exceptions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/start/exceptions.md b/src/start/exceptions.md index 4abd55f..816188d 100644 --- a/src/start/exceptions.md +++ b/src/start/exceptions.md @@ -82,6 +82,7 @@ fn main() -> ! { syst.set_clock_source(SystClkSource::Core); // this is configured for the LM3S6965 which has a default CPU clock of 12 MHz syst.set_reload(12_000_000); + syst.clear_current(); syst.enable_counter(); syst.enable_interrupt();