Funktioniert wieder

master
Stefan Krulj 14 years ago
parent 9ac8624d3c
commit 5282c3e7d0
  1. 2
      libcrypt/main.c
  2. 2
      libcrypt/usb_callback.c

@ -63,7 +63,7 @@ int main(void){
usbInit();
sei();
for(;;){ /* main event loop */
//usbPoll();
usbPoll();
/* we can send another key */
if(usbInterruptIsReady()){
foo=!foo;

@ -36,7 +36,7 @@ uint8_t usbFunctionSetup(uint8_t data[8]){
* Redundant entries (such as LOGICAL_MINIMUM and USAGE_PAGE) have been omitted
* for the second INPUT item.
*/
PROGMEM const char usbHidReportDescriptor[USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH] = { /* USB report descriptor */
const PROGMEM char usbHidReportDescriptor[USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH] = { /* USB report descriptor */
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x06, // USAGE (Keyboard)
0xa1, 0x01, // COLLECTION (Application)

Loading…
Cancel
Save