diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-07-25 19:01:17 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-07-29 11:40:54 -0400 |
commit | 751bff7d3886077bb0b81ad28e9f367e0d5a81eb (patch) | |
tree | 13a103b727d0b7648004d6a51f282e5b129706f6 /src/generic/usb_canbus.c | |
parent | 2d74b3d358b52b4bc5a301f6aca05690bd6cb941 (diff) | |
download | kutter-751bff7d3886077bb0b81ad28e9f367e0d5a81eb.tar.gz kutter-751bff7d3886077bb0b81ad28e9f367e0d5a81eb.tar.xz kutter-751bff7d3886077bb0b81ad28e9f367e0d5a81eb.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'src/generic/usb_canbus.c')
-rw-r--r-- | src/generic/usb_canbus.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |