forked from M-Labs/ionpak-thermostat
upgrade to rust edition 2018
This commit is contained in:
parent
c5dfaf0ee2
commit
0697914182
|
@ -2,6 +2,7 @@
|
||||||
name = "ionpak-firmware"
|
name = "ionpak-firmware"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
authors = ["whitequark <whitequark@whitequark.org>"]
|
authors = ["whitequark <whitequark@whitequark.org>"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
walkdir = "1.0"
|
walkdir = "1.0"
|
||||||
|
|
|
@ -2,17 +2,7 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
extern crate libm;
|
use cortex_m_rt::entry;
|
||||||
extern crate cortex_m;
|
|
||||||
#[macro_use]
|
|
||||||
extern crate cortex_m_rt;
|
|
||||||
extern crate tm4c129x;
|
|
||||||
extern crate smoltcp;
|
|
||||||
extern crate crc;
|
|
||||||
extern crate embedded_hal;
|
|
||||||
extern crate nb;
|
|
||||||
extern crate cortex_m_semihosting;
|
|
||||||
|
|
||||||
use core::fmt::{self, Write};
|
use core::fmt::{self, Write};
|
||||||
use embedded_hal::blocking::delay::DelayUs;
|
use embedded_hal::blocking::delay::DelayUs;
|
||||||
use smoltcp::time::Instant;
|
use smoltcp::time::Instant;
|
||||||
|
@ -42,9 +32,8 @@ pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! {
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
mod board;
|
mod board;
|
||||||
use board::gpio::Gpio;
|
use self::board::gpio::Gpio;
|
||||||
mod ethmac;
|
mod ethmac;
|
||||||
mod ad7172;
|
mod ad7172;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue