From 751bff7d3886077bb0b81ad28e9f367e0d5a81eb Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 25 Jul 2022 19:01:17 -0400 Subject: mcu: Delay reset signaling for usb to canbus bridge nodes An mcu device acting as an "mcu bridge" should only be reset after other normal devices are reset - otherwise the bridge wont be able to pass along the reset message to the downstream mcus. Signed-off-by: Kevin O'Connor --- src/generic/usb_canbus.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/generic/usb_canbus.c b/src/generic/usb_canbus.c index 1631bebe..1a4ac869 100644 --- a/src/generic/usb_canbus.c +++ b/src/generic/usb_canbus.c @@ -13,6 +13,7 @@ #include "board/pgm.h" // PROGMEM #include "board/usb_cdc_ep.h" // USB_CDC_EP_BULK_IN #include "byteorder.h" // cpu_to_le16 +#include "command.h" // DECL_CONSTANT #include "generic/usbstd.h" // struct usb_device_descriptor #include "sched.h" // sched_wake_task #include "usb_cdc.h" // usb_notify_ep0 @@ -125,6 +126,8 @@ enum { HS_TX_LOCAL = 4, }; +DECL_CONSTANT("CANBUS_BRIDGE", 1); + void canbus_notify_tx(void) { -- cgit v1.2.3-70-g09d2