Update Zephyr to v3.6.0
This commit is contained in:
@@ -63,7 +63,7 @@ void rx_thread(void *arg1, void *arg2, void *arg3)
|
||||
ARG_UNUSED(arg2);
|
||||
ARG_UNUSED(arg3);
|
||||
const struct can_filter filter = {
|
||||
.flags = CAN_FILTER_DATA | CAN_FILTER_IDE,
|
||||
.flags = CAN_FILTER_IDE,
|
||||
.id = COUNTER_MSG_ID,
|
||||
.mask = CAN_EXT_ID_MASK
|
||||
};
|
||||
@@ -76,6 +76,10 @@ void rx_thread(void *arg1, void *arg2, void *arg3)
|
||||
while (1) {
|
||||
k_msgq_get(&counter_msgq, &frame, K_FOREVER);
|
||||
|
||||
if (IS_ENABLED(CONFIG_CAN_ACCEPT_RTR) && (frame.flags & CAN_FRAME_RTR) != 0U) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (frame.dlc != 2U) {
|
||||
printf("Wrong data length: %u\n", frame.dlc);
|
||||
continue;
|
||||
@@ -92,6 +96,10 @@ void change_led_work_handler(struct k_work *work)
|
||||
int ret;
|
||||
|
||||
while (k_msgq_get(&change_led_msgq, &frame, K_NO_WAIT) == 0) {
|
||||
if (IS_ENABLED(CONFIG_CAN_ACCEPT_RTR) && (frame.flags & CAN_FRAME_RTR) != 0U) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (led.port == NULL) {
|
||||
printf("LED %s\n", frame.data[0] == SET_LED ? "ON" : "OFF");
|
||||
} else {
|
||||
@@ -192,7 +200,7 @@ void state_change_callback(const struct device *dev, enum can_state state,
|
||||
int main(void)
|
||||
{
|
||||
const struct can_filter change_led_filter = {
|
||||
.flags = CAN_FILTER_DATA,
|
||||
.flags = 0U,
|
||||
.id = LED_MSG_ID,
|
||||
.mask = CAN_STD_ID_MASK
|
||||
};
|
||||
@@ -230,7 +238,7 @@ int main(void)
|
||||
}
|
||||
|
||||
if (led.port != NULL) {
|
||||
if (!device_is_ready(led.port)) {
|
||||
if (!gpio_is_ready_dt(&led)) {
|
||||
printf("LED: Device %s not ready.\n",
|
||||
led.port->name);
|
||||
return 0;
|
||||
|
||||
@@ -298,7 +298,7 @@
|
||||
"type": "framework",
|
||||
"optional": true,
|
||||
"owner": "platformio",
|
||||
"version": "~2.30500.0"
|
||||
"version": "~2.30600.0"
|
||||
},
|
||||
"tool-stm32duino": {
|
||||
"type": "uploader",
|
||||
|
||||
Reference in New Issue
Block a user