59 lines
952 B
Plaintext
59 lines
952 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";
|
|
};
|
|
|
|
&usb {
|
|
status = "okay";
|
|
cdc_acm_uart0: cdc_acm_uart0 {
|
|
compatible = "zephyr,cdc-acm-uart";
|
|
label = "CDC_ACM_0";
|
|
};
|
|
};
|
|
|
|
&usart3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&timers5 {
|
|
status = "okay";
|
|
st,prescaler = <7>;
|
|
|
|
counter5: counter {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&timers4 {
|
|
status = "okay";
|
|
st,prescaler = <119>;
|
|
|
|
pwm4: pwm {
|
|
status = "okay";
|
|
pinctrl-0 = <&tim4_ch3_pb8>;
|
|
pinctrl-names = "default";
|
|
};
|
|
}; |