42 lines
814 B
Plaintext
42 lines
814 B
Plaintext
/ {
|
|
chosen {
|
|
zephyr,console = &cdc_acm_uart0;
|
|
zephyr,shell-uart = &cdc_acm_uart0;
|
|
};
|
|
};
|
|
|
|
&zephyr_udc0 {
|
|
cdc_acm_uart0: cdc_acm_uart0 {
|
|
compatible = "zephyr,cdc-acm-uart";
|
|
};
|
|
};
|
|
|
|
|
|
&flash0 {
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
/* Reserve last 64KB for settings storage */
|
|
storage_partition: partition@3f0000 {
|
|
label = "storage";
|
|
reg = <0x003f0000 0x00010000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/ {
|
|
aliases {
|
|
sw0 = &door_sensor;
|
|
};
|
|
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
|
|
door_sensor: door_sensor {
|
|
gpios = <&gpio0 22 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "Door Reed Switch";
|
|
};
|
|
};
|
|
}; |