rtic/tests/cpass/peripheral.rs

19 lines
360 B
Rust
Raw Normal View History

2018-11-03 17:02:41 +01:00
//! Core and device peripherals
2019-04-21 20:13:15 +02:00
#![deny(unsafe_code)]
#![deny(warnings)]
2018-11-03 17:02:41 +01:00
#![no_main]
#![no_std]
extern crate lm3s6965;
extern crate panic_halt;
extern crate rtfm;
2019-04-21 20:13:15 +02:00
#[rtfm::app(device = lm3s6965)]
2018-11-03 17:02:41 +01:00
const APP: () = {
#[init]
2019-04-21 20:13:15 +02:00
fn init(c: init::Context) {
let _: rtfm::Peripherals = c.core;
let _: lm3s6965::Peripherals = c.device;
2018-11-03 17:02:41 +01:00
}
};