43 lines
689 B
Plaintext
43 lines
689 B
Plaintext
/ {
|
|
aliases {
|
|
led0 = &red_led_1;
|
|
led1 = &yellow_led_1;
|
|
led2 = &green_led_1;
|
|
|
|
servo0 = &pwm_servo0;
|
|
};
|
|
|
|
pwmleds: pwmleds {
|
|
compatible = "pwm-leds";
|
|
status = "okay";
|
|
|
|
pwm_servo0: pwm_servo0 {
|
|
pwms = <&pwm4 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
|
label = "servo 0";
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
&uart4 {
|
|
status = "okay";
|
|
current-speed = <460800>;
|
|
pinctrl-0 = <&uart4_tx_pa0 &uart4_rx_pd0>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
&usart3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&timers4 {
|
|
status = "okay";
|
|
st,prescaler = <119>;
|
|
|
|
pwm4: pwm {
|
|
status = "okay";
|
|
pinctrl-0 = <&tim4_ch3_pb8>;
|
|
pinctrl-names = "default";
|
|
};
|
|
};
|