Created
August 18, 2017 03:55
-
-
Save alevy/56b0566e2d1a6ba582b7d4c09968ddc9 to your computer and use it in GitHub Desktop.
Tock capsule "Hello World"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct Accelerate; | |
impl Accelerate { | |
pub fn new() -> Accelerate { | |
Accelerate | |
} | |
pub fn start(&self) { | |
debug!("Hello World") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let accelerate = static_init!( | |
capsules::accelerate::Accelerate, | |
capsules::accelerate::Accelerate::new()); | |
accelerate.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment