klipper/src/generic
Kevin O'Connor 2c90c97ccd usb_canbus: Detect canbus stalls when in usb to canbus bridge mode
If the low-level canbus stops working then it could become impossible
to send messages to and from the canbus bridge node itself.  This can
make it difficult to diagnose canbus problems.

Change the canbus bridge code to detect if message transmits become
stalled for 50+ milliseconds and go into a "discarding" state.  In
this discarding state, messages destined for the canbus will be
discarded until the canbus becomes active again.  In this discarding
state it will therefore be possible to transmit messages to and from
the canbus bridge node.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2025-02-02 18:43:34 -05:00
..
alloc.c basecmd: Move low-level alloc code into basecmd.c 2017-07-20 10:44:31 -04:00
armcm_boot.c armcm_boot: Support ARM cortex-m33 chips 2024-11-13 14:25:59 -05:00
armcm_boot.h armcm_boot: Use armcm_main() instead of main() to start board code 2019-10-24 11:16:10 -04:00
armcm_irq.c armcm_boot: Support ARM cortex-m33 chips 2024-11-13 14:25:59 -05:00
armcm_link.lds.S armcm_link: Fix build on recent arm gcc/newlibc versions 2024-06-17 12:45:07 -04:00
armcm_reset.c armcm_boot: Support ARM cortex-m33 chips 2024-11-13 14:25:59 -05:00
armcm_reset.h armcm_reset: Add a armcm_reset.h header file for try_request_canboot() 2022-06-04 11:52:39 -04:00
armcm_timer.c sched: Improve timer vs task priority check 2024-10-26 22:09:14 -04:00
armcm_timer.h armcm_timer: Fix typo in comment in armcm_timer.h 2019-08-21 12:05:13 -04:00
canbus.c canbus: Rename canserial_send() to canbus_send() 2022-12-14 14:25:21 -05:00
canbus.h stm32: Add support for reporting canbus state from can.c 2025-02-02 18:43:34 -05:00
canserial.c canbus_stats: Periodically report canbus interface statistics 2025-02-02 18:43:34 -05:00
canserial.h usb_canbus: No need to check if canserial can accept a packet 2023-04-24 11:31:06 -04:00
crc16_ccitt.c command: Prefer uint8_t* for buffers; prefer uint8_fast_t for lengths 2018-05-28 10:43:39 -04:00
gpio.h sensor_lis2dw: add lis3dh sensor and i2c communication 2024-11-12 19:50:48 -05:00
io.h io.h: read/write[bwl] should use barrier 2017-02-02 10:46:42 -05:00
irq.h generic: Minor header cleanup to generic/irq.h 2020-06-07 21:18:04 -04:00
misc.h usb_cdc: Rename usb_request_bootloader() to bootloader_request() 2022-07-29 11:40:54 -04:00
pgm.h usb_cdc: Add support for usb_send_ep0_progmem() 2018-09-30 22:32:19 -04:00
serial_irq.c serial_irq: Rename SERIAL_BOOTLOADER_SIDECHANNEL to HAVE_BOOTLOADER_REQUEST 2022-12-30 21:28:32 -05:00
serial_irq.h simulator: Rework dummy simulator code to user timer_irq / serial_irq 2018-07-11 14:35:24 -04:00
timer_irq.c sched: Improve timer vs task priority check 2024-10-26 22:09:14 -04:00
timer_irq.h sched: Implement generic sleep mechanism based on tasks pending 2017-08-08 00:27:28 -04:00
usb_canbus.c usb_canbus: Detect canbus stalls when in usb to canbus bridge mode 2025-02-02 18:43:34 -05:00
usb_cdc.c usb_cdc: Only call bootloader_request() if CONFIG_HAVE_BOOTLOADER_REQUEST 2022-12-30 21:28:32 -05:00
usb_cdc.h usb_cdc: Rename usb_request_bootloader() to bootloader_request() 2022-07-29 11:40:54 -04:00
usb_cdc_ep.h usb_cdc_ep: Change default endpoint numbers 2022-06-27 10:50:23 -04:00
usbstd.h usb_canbus: Initial support for USB to CAN bridge mode 2022-06-27 10:50:23 -04:00
usbstd_cdc.h lpc176x: Initial support for serial over usb 2018-05-25 11:52:13 -04:00