47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
/ {
|
|
chosen {
|
|
zephyr,console = &rtt;
|
|
zephyr,shell = &rtt;
|
|
zephyr,settings-partition = &storage_partition;
|
|
};
|
|
|
|
rtt: rtt {
|
|
compatible = "segger,rtt-uart";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
label = "RTT";
|
|
status = "okay";
|
|
};
|
|
|
|
};
|
|
|
|
&flash0 {
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
/* Application partition starts at the beginning of flash */
|
|
slot0_partition: partition@0 {
|
|
label = "image-0";
|
|
reg = <0x00000000 DT_SIZE_K(120)>;
|
|
};
|
|
|
|
/* Use the last 8K for settings */
|
|
storage_partition: partition@1E000 {
|
|
label = "storage";
|
|
reg = <0x0001E000 DT_SIZE_K(8)>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&usart1: {
|
|
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
|
pinctrl-names = "default";
|
|
|
|
modbus0 {
|
|
compatible = "zephyr,modbus-serial";
|
|
status = "okay";
|
|
};
|
|
status = "okay";
|
|
}; |