File tree Expand file tree Collapse file tree 6 files changed +19
-17
lines changed
Expand file tree Collapse file tree 6 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ members = [
55 " nrf52833-hal" ,
66 " nrf52840-hal" ,
77 " nrf9160-hal" ,
8- " examples/rtfm -demo" ,
8+ " examples/rtic -demo" ,
99 " examples/spi-demo" ,
1010 " examples/twi-ssd1306" ,
1111 " examples/ecb-demo" ,
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11[package ]
2- name = " rtfm -demo"
2+ name = " rtic -demo"
33version = " 0.1.0"
44authors = [
" James Munns <[email protected] >" ]
55edition = " 2018"
66publish = false
77
88[dependencies ]
9- cortex-m-rtfm = " 0.4 .3"
10- panic-semihosting = " 0.5.1 "
11- cortex-m-semihosting = " 0.3.3 "
9+ cortex-m-rtic = " 0.5 .3"
10+ panic-semihosting = " 0.5.3 "
11+ cortex-m-semihosting = " 0.3.5 "
1212
1313[dependencies .nrf51-hal ]
1414path = " ../../nrf51-hal"
Original file line number Diff line number Diff line change 55use panic_semihosting;
66
77use cortex_m_semihosting:: { debug, hprintln} ;
8- use rtfm :: app;
8+ use rtic :: app;
99
1010#[ cfg( feature = "51" ) ]
1111use nrf51_hal as hal;
@@ -22,16 +22,18 @@ use nrf52840_hal as hal;
2222#[ app( device = crate :: hal:: pac) ]
2323const APP : ( ) = {
2424 #[ init]
25- fn init ( ) {
25+ fn init ( _ : init :: Context ) {
2626 hprintln ! ( "init" ) . unwrap ( ) ;
2727 }
2828
2929 #[ idle]
30- fn idle ( ) -> ! {
30+ fn idle ( _ : idle :: Context ) -> ! {
3131 hprintln ! ( "idle" ) . unwrap ( ) ;
3232
3333 debug:: exit ( debug:: EXIT_SUCCESS ) ;
3434
35- loop { }
35+ loop {
36+ continue ;
37+ }
3638 }
3739} ;
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ cargo build --manifest-path nrf52833-hal/Cargo.toml
1818echo Building nrf52840-hal...
1919cargo build --manifest-path nrf52840-hal/Cargo.toml
2020
21- echo Building examples/rtfm -demo...
22- cargo build --manifest-path examples/rtfm -demo/Cargo.toml
23- echo Building examples/rtfm -demo...
24- cargo build --manifest-path examples/rtfm -demo/Cargo.toml --no-default-features --features=" 51" --target thumbv6m-none-eabi
25- echo Building examples/rtfm -demo...
26- cargo build --manifest-path examples/rtfm -demo/Cargo.toml --no-default-features --features=" 52810" --target thumbv7em-none-eabi
27- echo Building examples/rtfm -demo...
28- cargo build --manifest-path examples/rtfm -demo/Cargo.toml --no-default-features --features=" 52840"
21+ echo Building examples/rtic -demo...
22+ cargo build --manifest-path examples/rtic -demo/Cargo.toml
23+ echo Building examples/rtic -demo...
24+ cargo build --manifest-path examples/rtic -demo/Cargo.toml --no-default-features --features=" 51" --target thumbv6m-none-eabi
25+ echo Building examples/rtic -demo...
26+ cargo build --manifest-path examples/rtic -demo/Cargo.toml --no-default-features --features=" 52810" --target thumbv7em-none-eabi
27+ echo Building examples/rtic -demo...
28+ cargo build --manifest-path examples/rtic -demo/Cargo.toml --no-default-features --features=" 52840"
2929echo Building examples/spi-demo...
3030cargo build --manifest-path examples/spi-demo/Cargo.toml
3131echo Building examples/twi-ssd1306...
You can’t perform that action at this time.
0 commit comments