}; | }; | ||||
static uint8_t PROGMEM rawhid_hid_report_desc[] = { | |||||
static const uint8_t PROGMEM rawhid_hid_report_desc[] = { | |||||
0x06, LSB(RAWHID_USAGE_PAGE), MSB(RAWHID_USAGE_PAGE), | 0x06, LSB(RAWHID_USAGE_PAGE), MSB(RAWHID_USAGE_PAGE), | ||||
0x0A, LSB(RAWHID_USAGE), MSB(RAWHID_USAGE), | 0x0A, LSB(RAWHID_USAGE), MSB(RAWHID_USAGE), | ||||
0xA1, 0x01, // Collection 0x01 | 0xA1, 0x01, // Collection 0x01 |
int usb_rawhid_class::available(void) | int usb_rawhid_class::available(void) | ||||
{ | { | ||||
uint8_t n=0, i, intr_state; | |||||
uint8_t n=0, intr_state; | |||||
intr_state = SREG; | intr_state = SREG; | ||||
cli(); | cli(); |