1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![no_std]
#![feature(alloc)]
#![feature(asm)]

#[macro_use]
extern crate alloc;

use alloc::string::String;

pub use self::file::EcFile;
pub use self::flash::EcFlash;
pub use self::flasher::Flasher;

mod file;
mod flash;
mod flasher;
mod io;

pub trait Ec {
    fn size(&mut self) -> usize;
    fn project(&mut self) -> String;
    fn version(&mut self) -> String;
}