can send test bætt við

This commit is contained in:
2026-10-15 14:16:14 +00:00
parent e41fed4ea0
commit 9762afb003
6 changed files with 83 additions and 15 deletions
+9 -9
View File
@@ -45,11 +45,6 @@
gpios = <&gpioa 1 GPIO_ACTIVE_HIGH>; /* A1, PA1 */
label = "Motor sleep";
};
encoder_isr_probe: encoder_isr_probe {
gpios = <&gpioa 12 GPIO_ACTIVE_HIGH>; /* D2, PA12 */
label = "Encoder ISR probe";
};
};
motor_pwm_outputs {
@@ -68,9 +63,6 @@
label = "Motor BIN2 PWM";
};
};
zephyr,user {
encoder-isr-probe-gpios = <&gpioa 12 GPIO_ACTIVE_HIGH>; /* D2, PA12 */
};
};
&timers1 {
@@ -83,4 +75,12 @@
pinctrl-0 = <&tim1_ch1_pa8 &tim1_ch3n_pb1>;
pinctrl-names = "default";
};
};
};
/* CAN1 to the transceiver: RX on D10 (PA11), TX on D2 (PA12).
* The bitrate is set in the code with can_set_bitrate(). */
&can1 {
pinctrl-0 = <&can1_rx_pa11 &can1_tx_pa12>;
pinctrl-names = "default";
status = "okay";
};
+2 -1
View File
@@ -8,4 +8,5 @@ CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_PRINTK=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_CAN=y