33 #include <avr/interrupt.h> 34 #include <avr/pgmspace.h> 36 #include "lufa/LUFA/Drivers/USB/USB.h" 43 #define CDC_NOTIFICATION_EPADDR (ENDPOINT_DIR_IN | 2) 46 #define CDC_TX_EPADDR (ENDPOINT_DIR_IN | 3) 49 #define CDC_RX_EPADDR (ENDPOINT_DIR_OUT | 4) 52 #define USB_NEWLINE "\r\n" 56 #define USB_STRING_MAX_LENGTH 100 void usb_printf(PGM_P format,...)
Does exactly what you would expect. ;-)
static bool echo
Status variable for expression value console echo.
Definition: expression.c:45
int16_t usb_getc(void)
Reads one byte or character from the USB receive buffer.
Definition: usb.c:165
void usb_puts(PGM_P string)
Sends the given program space string and a newline sequence over USB.
void usb_main_task(void)
Main background task for USB CDC operation.
Definition: usb.c:181
void usb_putc(char c)
Sends the given character over USB.
Definition: usb.c:219
uint16_t usb_bytes_received(void)
Returns the number of unread bytes currently residing in the USB receive buffer.
Definition: usb.c:157
void init_usb_module(void)
Initializes the USB CDC module.
Definition: usb.c:148
void usb_printf_S(const char *format,...)
Does exactly what you would expect. ;-)
Definition: usb.c:203
void usb_set_echo(bool echo)
Enables / disables terminal echo.
void usb_puts_S(const char *string)
Sends the given string and a newline sequence over USB.
Definition: usb.c:242