Skip to content
Snippets Groups Projects
Commit a236c820 authored by Per's avatar Per
Browse files

Refactoring

parent 5e26bd68
No related branches found
No related tags found
No related merge requests found
...@@ -100,16 +100,14 @@ fn clk_init(p: &init::Peripherals) { ...@@ -100,16 +100,14 @@ fn clk_init(p: &init::Peripherals) {
// This runs first and within a *global* critical section. Nothing can preempt // This runs first and within a *global* critical section. Nothing can preempt
// this function. // this function.
fn init(p: init::Peripherals) { fn init(p: init::Peripherals) {
// This function has access to all the peripherals of the device
clk_init(&p); clk_init(&p);
let itm = p.ITM; let itm = p.ITM;
iprintln!(&itm.stim[0], "-- Running at 100Mhz -- "); iprintln!(&itm.stim[0], "-- Running at 100Mhz -- ");
rtfm::bkpt(); 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 // setup ethernet mac
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment