canbus, modbus working, valve has to be implemented in real
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
config BOARD_VALVE_NODE
|
||||
select SOC_STM32F103XB
|
||||
|
||||
mainmenu "Controller Area Network sample application"
|
||||
mainmenu "APP CAN Settings"
|
||||
config LOOPBACK_MODE
|
||||
bool "Loopback LOOPBACK_MODE"
|
||||
default n
|
||||
@@ -9,6 +9,7 @@ config LOOPBACK_MODE
|
||||
Set the can controller to loopback mode.
|
||||
This allows testing without a second board.
|
||||
|
||||
mainmenu "APP Logging Settings"
|
||||
config LOG_CAN_LEVEL
|
||||
int "Log level for CAN"
|
||||
default 3
|
||||
@@ -23,4 +24,35 @@ config LOG_SETTINGS_LEVEL
|
||||
range 0 7
|
||||
help
|
||||
Set the log level for CAN messages.
|
||||
0 = None, 1 = Error, 2 = Warning, 3 = Info, 4 = Debug, 5 = Trace, 6 = Debug2, 7 = Debug3
|
||||
0 = None, 1 = Error, 2 = Warning, 3 = Info, 4 = Debug, 5 = Trace, 6 = Debug2, 7 = Debug3
|
||||
|
||||
config LOG_WATERLEVELSENSOR_LEVEL
|
||||
int "Log level for waterlevel sensor"
|
||||
default 3
|
||||
range 0 7
|
||||
help
|
||||
Set the log level for CAN messages.
|
||||
0 = None, 1 = Error, 2 = Warning, 3 = Info, 4 = Debug, 5 = Trace, 6 = Debug2, 7 = Debug3
|
||||
|
||||
config LOG_VALVE_LEVEL
|
||||
int "Log level for valve control"
|
||||
default 3
|
||||
range 0 7
|
||||
help
|
||||
Set the log level for valve control messages.
|
||||
0 = None, 1 = Error, 2 = Warning, 3 = Info, 4 = Debug, 5 = Trace, 6 = Debug2, 7 = Debug3
|
||||
|
||||
mainmenu "Irrigation controller node configuration"
|
||||
config HAS_MODBUS_WATERLEVEL_SENSOR
|
||||
bool "Has modbus water level sensor"
|
||||
default n
|
||||
help
|
||||
Enable modbus water level sensor support.
|
||||
This allows reading the water level from a modbus device.
|
||||
|
||||
config HAS_VALVE
|
||||
bool "Has valve control"
|
||||
default n
|
||||
help
|
||||
Enable valve control support.
|
||||
This allows controlling valves via CAN messages.
|
||||
@@ -8,3 +8,4 @@ board_runner_args(jlink "--device=STM32F103RB" "--speed=4000")
|
||||
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd-stm32.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/blackmagicprobe.board.cmake)
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
pinctrl-0 = <&can_rx_pa11 &can_tx_pa12>;
|
||||
pinctrl-names = "default";
|
||||
status= "okay";
|
||||
bus-speed = <500000>;
|
||||
bus-speed = <125000>;
|
||||
};
|
||||
|
||||
&exti {
|
||||
|
||||
Reference in New Issue
Block a user