- Timestamp:
- Apr 30, 2016, 11:29:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/arduino/USB/HID.cpp
r136 r224 21 21 #include "USBDesc.h" 22 22 #include "sam.h" 23 #include "USB/USB_device.h"24 23 25 24 … … 45 44 // HID report descriptor 46 45 _Pragma("pack(1)") 47 extern const uint 8_t _hidReportDescriptor[] = {46 extern const uint32_t _hidReportDescriptor[] = { 48 47 // Mouse 49 48 0x05, 0x01, // USAGE_PAGE (Generic Desktop) // 54 … … 162 161 uint32_t WEAK HID_GetDescriptor(void) 163 162 { 164 return USBD_SendControl( 0,_hidReportDescriptor,sizeof(_hidReportDescriptor));163 return USBD_SendControl(_hidReportDescriptor,sizeof(_hidReportDescriptor)); 165 164 } 166 165 … … 197 196 if (HID_GET_IDLE == r) 198 197 { 199 U DD_Send(0, &_hid_idle, 1);200 U DD_ClearIN();198 USBD_Send(0, &_hid_idle, 1); 199 USB->DEVICE.DeviceEndpoint[EP0].EPSTATUSSET.reg = USB_DEVICE_EPSTATUSSET_BK1RDY; 201 200 return true; 202 201 }
Note:
See TracChangeset
for help on using the changeset viewer.