refactor!: make the main code an empty lib
This commit is contained in:
parent
b5f4e77186
commit
7df4f90ae3
2 changed files with 1 additions and 12 deletions
1
src/lib.rs
Executable file
1
src/lib.rs
Executable file
|
@ -0,0 +1 @@
|
||||||
|
#![no_std]
|
12
src/main.rs
12
src/main.rs
|
@ -1,12 +0,0 @@
|
||||||
#![no_main]
|
|
||||||
#![no_std]
|
|
||||||
|
|
||||||
extern crate panic_halt;
|
|
||||||
|
|
||||||
use cortex_m_rt::entry;
|
|
||||||
use hal::{pac, prelude::*, rcc::Config};
|
|
||||||
|
|
||||||
#[entry]
|
|
||||||
fn main() -> ! {
|
|
||||||
compile_error!("Use blinky example")
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue