Skip to content

Commit a0f9192

Browse files
committed
Add debug/obsolete notes regarding riot-wrappers future integration
1 parent 8626777 commit a0f9192

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

examples/xbd-net/Cargo.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ mcu-if = { git = "https://github.com/AnimaGUS-minerva/mcu-if", rev = "254de7d",
1414
crossbeam-queue = { version = "0.3.8", default-features = false, features=["alloc"] }
1515
conquer-once = { version = "0.4.0", default-features = false }
1616
futures-util = { version = "0.3.4", default-features = false }
17-
embassy-executor = { path = "crates/embassy/embassy-executor", default-features = false, features=["nightly"] }
1817
heapless = "0.8"
19-
##TODO##riot-wrappers = { version = "0.8", features = [ "set_panic_handler" ] }
18+
embassy-executor = { path = "crates/embassy/embassy-executor", default-features = false, features=["nightly"] }
19+
20+
##embassy-executor = "0.5" ##TODO## undefined reference to `_critical_section_1_0_acquire'
21+
##NG## bindgen fails regarding macros ... RIOT_CC=clang RIOT_CFLAGS= make build-native
22+
##riot-wrappers = { version = "0.8", features = [ "set_panic_handler", "provide_critical_section_1_0" ] }

examples/xbd-net/debug.setup.bash

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ alias nn-notap='make run-native-notap'
33
alias nnn='nn-notap'
44
alias ee-wifi='make run-esp32-wroom32'
55

6+
alias mr='EMU_NATIVE_TAP=tap1 make native-run-riot'
67

78
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'
89
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'

examples/xbd-net/src/lib.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ pub extern fn rustmod_start(
6161

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

65+
// TODO While we will eventually migrate to RIOT's Rust build system,
66+
// not for now, since keeping our esp32 setup stuff isn't trivial.
67+
println!("!!!! OBSOLETE -- 'src/<stream,shell>.rs'");
68+
69+
get_static(&mut embassy::Runtime::new()).run(); // -> !
6770
// should be never reached
6871
} else {
6972
println!("@@ [debug] `xbd_main()` with `blogos12::Runtime` ...");

0 commit comments

Comments
 (0)