Added shell functions

This commit is contained in:
2025-06-17 16:43:13 +02:00
parent 9d017f9f8d
commit 852c5c72be
10 changed files with 296 additions and 39 deletions

View File

@@ -14,7 +14,7 @@
compatible = "iten,valve-node", "st,stm32f103rb";
can_loopback0: can_loopback0 {
status = "okay";
status = "disabled";
compatible = "zephyr,can-loopback";
};
@@ -23,8 +23,8 @@
zephyr,shell-uart = &usart1;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
//zephyr,canbus = &can1;
zephyr,canbus = &can_loopback0;
zephyr,canbus = &can1;
//zephyr,canbus = &can_loopback0;
};
leds: leds {
@@ -79,6 +79,10 @@
gpios = <&gpiob 13 0>;
label = "Motor Open";
};
fake: fake {
gpios = <&gpiob 11 GPIO_PULL_UP>;
label = "CAN RX pullup";
};
};
};

View File

@@ -18,6 +18,7 @@ CONFIG_MODBUS_ROLE_CLIENT=y
CONFIG_CAN=y
CONFIG_CAN_INIT_PRIORITY=80
#CONFIG_CAN_MAX_FILTER=5
CONFIG_CAN_ACCEPT_RTR=y
# settings
CONFIG_FLASH=y