From a236c82019dbe6559bb2391fc338f8f0544cb398 Mon Sep 17 00:00:00 2001 From: Per <Per Lindgren> Date: Tue, 12 Dec 2017 02:29:45 +0100 Subject: [PATCH] Refactoring --- examples/zero-tasks.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/zero-tasks.rs b/examples/zero-tasks.rs index 2ef6bd0..2663bb1 100644 --- a/examples/zero-tasks.rs +++ b/examples/zero-tasks.rs @@ -100,16 +100,14 @@ fn clk_init(p: &init::Peripherals) { // This runs first and within a *global* critical section. Nothing can preempt // this function. fn init(p: init::Peripherals) { + // This function has access to all the peripherals of the device clk_init(&p); let itm = p.ITM; iprintln!(&itm.stim[0], "-- Running at 100Mhz -- "); + rtfm::bkpt(); - // use lpc176x5x::syscon::clksrcsel::*; - // use lpc176x5x::syscon::scs::*; - // use lpc176x5x::syscon::clkoutcfg::*; - // This function has access to all the peripherals of the device // setup ethernet mac } -- GitLab