forked from EmbeddedTeam/app_photomagnetic
22 lines
413 B
Plaintext
22 lines
413 B
Plaintext
/ {
|
|
dc_motor: dc-motor0 {
|
|
status = "okay";
|
|
compatible = "st,l298n";
|
|
freq-hz = <1000>;
|
|
in1-gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
|
|
in2-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
|
|
en-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
aliases {
|
|
modbus-server-pc = &modbus_pc;
|
|
};
|
|
};
|
|
|
|
&uart1 {
|
|
status = "okay";
|
|
current-speed = <115200>;
|
|
modbus_pc: modbus-server0 {
|
|
status = "okay";
|
|
};
|
|
};
|