Ignore:
Timestamp:
Apr 30, 2016, 11:29:25 PM (8 years ago)
Author:
ertl-honda
Message:

1.7.10のファイルに更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/arduino/USB/HID.cpp

    r136 r224  
    2121#include "USBDesc.h"
    2222#include "sam.h"
    23 #include "USB/USB_device.h"
    2423
    2524
     
    4544//      HID report descriptor
    4645_Pragma("pack(1)")
    47 extern const uint8_t _hidReportDescriptor[] = {
     46extern const uint32_t _hidReportDescriptor[] = {
    4847        //      Mouse
    4948    0x05, 0x01,                    //   USAGE_PAGE (Generic Desktop)    // 54
     
    162161uint32_t WEAK HID_GetDescriptor(void)
    163162{
    164         return USBD_SendControl(0,_hidReportDescriptor,sizeof(_hidReportDescriptor));
     163        return USBD_SendControl(_hidReportDescriptor,sizeof(_hidReportDescriptor));
    165164}
    166165
     
    197196                if (HID_GET_IDLE == r)
    198197                {
    199                         UDD_Send(0, &_hid_idle, 1);
    200                         UDD_ClearIN();
     198                        USBD_Send(0, &_hid_idle, 1);
     199                        USB->DEVICE.DeviceEndpoint[EP0].EPSTATUSSET.reg = USB_DEVICE_EPSTATUSSET_BK1RDY;
    201200                        return true;
    202201                }
Note: See TracChangeset for help on using the changeset viewer.