We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89958c3 commit f655285Copy full SHA for f655285
samples/blinky/src/lib.rs
@@ -24,6 +24,9 @@ extern "C" fn rust_main() {
24
25
// Invoke "blink" as a user thread.
26
if false {
27
+ // Note that for now, this is just a 'false', but is an easy test to use to see if
28
+ // permissions are correct for usermode Rust. At this point, the GPIO won't be accessible,
29
+ // and neither will the memory needed for allocation.
30
unsafe {
31
zephyr::raw::k_thread_user_mode_enter
32
(Some(blink),
@@ -57,7 +60,6 @@ fn do_blink() {
57
60
warn!("LED is not ready");
58
61
loop {
59
62
}
- // return;
63
64
65
unsafe { led0.configure(&mut gpio_token, GPIO_OUTPUT_ACTIVE); }
0 commit comments