Skip to content

Commit

Permalink
Add debug/obsolete notes regarding riot-wrappers future integration
Browse files Browse the repository at this point in the history
  • Loading branch information
j-devel committed Jun 7, 2024
1 parent 8626777 commit a0f9192
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions examples/xbd-net/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ mcu-if = { git = "https://github.com/AnimaGUS-minerva/mcu-if", rev = "254de7d",
crossbeam-queue = { version = "0.3.8", default-features = false, features=["alloc"] }
conquer-once = { version = "0.4.0", default-features = false }
futures-util = { version = "0.3.4", default-features = false }
embassy-executor = { path = "crates/embassy/embassy-executor", default-features = false, features=["nightly"] }
heapless = "0.8"
##TODO##riot-wrappers = { version = "0.8", features = [ "set_panic_handler" ] }
embassy-executor = { path = "crates/embassy/embassy-executor", default-features = false, features=["nightly"] }

##embassy-executor = "0.5" ##TODO## undefined reference to `_critical_section_1_0_acquire'
##NG## bindgen fails regarding macros ... RIOT_CC=clang RIOT_CFLAGS= make build-native
##riot-wrappers = { version = "0.8", features = [ "set_panic_handler", "provide_critical_section_1_0" ] }
1 change: 1 addition & 0 deletions examples/xbd-net/debug.setup.bash
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ alias nn-notap='make run-native-notap'
alias nnn='nn-notap'
alias ee-wifi='make run-esp32-wroom32'

alias mr='EMU_NATIVE_TAP=tap1 make native-run-riot'

alias ee='echo "assuming tap0/br0 is already set up" && make build-esp32 && RIOT_BOARD=esp32-ethernet-kit-v1_0 EMU_ESP32_NIC="tap,model=open_eth,ifname=tap0,script=no,downscript=no" make esp32-run-riot'
alias nn='echo "assuming tap1 is already set up" && IPV6_AUTO=0 IPV6_ADDR=fe80::78ec:5fff:febd:add9 make build-native && EMU_NATIVE_TAP=tap1 make native-run-riot'
Expand Down
7 changes: 5 additions & 2 deletions examples/xbd-net/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ pub extern fn rustmod_start(

if 1 == 1 {
println!("@@ [debug] `xbd_main()` with `embassy::Runtime` ...");
get_static(&mut embassy::Runtime::new())
.run(); // -> !

// TODO While we will eventually migrate to RIOT's Rust build system,
// not for now, since keeping our esp32 setup stuff isn't trivial.
println!("!!!! OBSOLETE -- 'src/<stream,shell>.rs'");

get_static(&mut embassy::Runtime::new()).run(); // -> !
// should be never reached
} else {
println!("@@ [debug] `xbd_main()` with `blogos12::Runtime` ...");
Expand Down

0 comments on commit a0f9192

Please sign in to comment.