Skip to content

Instantly share code, notes, and snippets.

@alevy
Created August 18, 2017 03:55
Show Gist options
  • Save alevy/56b0566e2d1a6ba582b7d4c09968ddc9 to your computer and use it in GitHub Desktop.
Save alevy/56b0566e2d1a6ba582b7d4c09968ddc9 to your computer and use it in GitHub Desktop.
Tock capsule "Hello World"
pub struct Accelerate;
impl Accelerate {
pub fn new() -> Accelerate {
Accelerate
}
pub fn start(&self) {
debug!("Hello World")
}
}
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