Files
microros_turntable_controller/boards/nucleo_h563zi.overlay

68 lines
1.3 KiB
Plaintext

/ {
aliases {
led0 = &red_led_1;
led1 = &yellow_led_1;
led2 = &green_led_1;
rotenc0 = &as5600;
stepper0 = &stepper0;
};
stepper0: tmc2209_motor {
compatible = "adi,tmc2209";
en-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
msx-gpios = <&gpiod 0 GPIO_ACTIVE_HIGH>,
<&gpiod 1 GPIO_ACTIVE_HIGH>;
step-gpios = <&gpioe 6 GPIO_ACTIVE_HIGH>;
dir-gpios = <&gpioe 5 GPIO_ACTIVE_HIGH>;
//dual-edge-step;
micro-step-res = <64>;
counter = <&counter6>;
status = "okay";
};
};
&usb {
status = "okay";
cdc_acm_uart0: cdc_acm_uart0 {
compatible = "zephyr,cdc-acm-uart";
label = "CDC_ACM_0";
};
};
&usart3 {
status = "okay";
};
&timers6 {
status = "okay";
st,prescaler = <25>;
counter6: counter {
status = "okay";
};
};
&timers5 {
status = "okay";
st,prescaler = <7>;
counter5: counter {
status = "okay";
};
};
&i2c2 {
status = "okay";
pinctrl-0 = <&i2c2_scl_pf1 &i2c2_sda_pf0>;
pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_FAST>;
as5600: as5600@36 {
compatible = "ams,as5600";
reg = <0x36>; // I2C address of AS5600
label = "AS5600";
};
};