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:
Kevin O'Connor 2018-09-30 10:37:48 -04:00
parent 92aea93500
commit 731236cf20
4 changed files with 9 additions and 2 deletions

View file

@ -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\""); \