mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-12 09:17:54 -06:00
usb_cdc: Add support for usb_send_ep0_progmem()
Add support for explicitly sending to the ep0 pipe from constant "progmem" memory on the AVR. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
92aea93500
commit
731236cf20
4 changed files with 9 additions and 2 deletions
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
#define NEED_PROGMEM 1
|
||||
|
||||
#define READP(VAR) ({ \
|
||||
_Pragma("GCC diagnostic push"); \
|
||||
_Pragma("GCC diagnostic ignored \"-Wint-to-pointer-cast\""); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue