File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,8 @@ CONFIG_RUST_ALLOC=y
13
13
CONFIG_GPIO=y
14
14
CONFIG_GPIO_ENABLE_DISABLE_INTERRUPT=y
15
15
16
- CONFIG_LOG_BACKEND_RTT=n
16
+ # CONFIG_LOG_BACKEND_RTT=n
17
+
18
+ CONFIG_UART_CONSOLE=n
19
+ CONFIG_RTT_CONSOLE=y
20
+ CONFIG_USE_SEGGER_RTT=y
Original file line number Diff line number Diff line change @@ -35,13 +35,18 @@ async fn main(spawner: Spawner) {
35
35
info ! ( "Hello world" ) ;
36
36
let _ = spawner;
37
37
38
+ /*
38
39
let mut col0 = zephyr::devicetree::labels::col0::get_instance().unwrap();
39
40
let mut row0 = zephyr::devicetree::labels::row0::get_instance().unwrap();
41
+ */
42
+ let mut row0 = zephyr:: devicetree:: aliases:: sw0:: get_instance ( ) . unwrap ( ) ;
40
43
let mut gpio_token = unsafe { zephyr:: device:: gpio:: GpioToken :: get_instance ( ) . unwrap ( ) } ;
41
44
42
45
unsafe {
46
+ /*
43
47
col0.configure(&mut gpio_token, GPIO_OUTPUT_ACTIVE);
44
48
col0.set(&mut gpio_token, true);
49
+ */
45
50
row0. configure ( & mut gpio_token, GPIO_INPUT | GPIO_PULL_DOWN ) ;
46
51
}
47
52
You can’t perform that action at this time.
0 commit comments