mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
now you can turn on and off the LED
This commit is contained in:
parent
3427a9d09b
commit
043fc06804
1 changed files with 1 additions and 2 deletions
|
|
@ -210,8 +210,7 @@ impl Repl {
|
||||||
|
|
||||||
let prog = pin_control_code();
|
let prog = pin_control_code();
|
||||||
bio_ss.load_code(prog, 0, BioCore::Core0);
|
bio_ss.load_code(prog, 0, BioCore::Core0);
|
||||||
|
ctrl |= 0b0001_0001_0001;
|
||||||
ctrl |= 0b0001; // Restart Core 0
|
|
||||||
bio_ss.bio.wo(utra::bio_bdma::SFR_CTRL, ctrl);
|
bio_ss.bio.wo(utra::bio_bdma::SFR_CTRL, ctrl);
|
||||||
GPIO_CORE_INITIALIZED.store(true, Ordering::Relaxed);
|
GPIO_CORE_INITIALIZED.store(true, Ordering::Relaxed);
|
||||||
crate::println!("GPIO control core is running.");
|
crate::println!("GPIO control core is running.");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue