mirror of https://github.com/Desuuuu/klipper.git
usb_cdc: Add comments on debugging USB connections via UART
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d1bdde56cc
commit
1e11b76379
|
@ -15,6 +15,15 @@
|
||||||
#include "sched.h" // sched_wake_task
|
#include "sched.h" // sched_wake_task
|
||||||
#include "usb_cdc.h" // usb_notify_ep0
|
#include "usb_cdc.h" // usb_notify_ep0
|
||||||
|
|
||||||
|
// To debug a USB connection over UART, uncomment the two macros
|
||||||
|
// below, alter the board KConfig to "select USBSERIAL" on a serial
|
||||||
|
// UART build (so both USB and UART are enabled in a single build),
|
||||||
|
// compile the code using serial UART, add output() calls to the USB
|
||||||
|
// code as needed, deploy the new binary, and then connect via
|
||||||
|
// console.py using UART to see those output() messages.
|
||||||
|
//#define console_sendf(ce,va) console_sendf_usb(ce,va)
|
||||||
|
//#define command_find_and_dispatch(rb, rp, pc) ({*(pc) = rp; 1;})
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************
|
/****************************************************************
|
||||||
* Message block sending
|
* Message block sending
|
||||||
|
|
Loading…
Reference in New Issue