/* USB Device HID Set Idle Request Callback Called automatically on USB Device HID Set Idle Request Parameters: None Return Value: TRUE - Success, FALSE - Error  */
BOOL USBD_HID_SetIdle(void)
/* USB Device HID Set Idle Request Callback Called automatically on USB Device HID Set Idle Request Parameters: None Return Value: TRUE - Success, FALSE - Error  */
BOOL USBD_HID_SetIdle(void)
{
    U8 i;
    if (USBD_SetupPacket.wValueL) {
        USBD_HID_IdleSet[USBD_SetupPacket.wValueL - 1] = USBD_SetupPacket.wValueH;
    } else {
        for (i = 0; i < usbd_hid_inreport_num; i++) {
            USBD_HID_IdleSet[i] = USBD_SetupPacket.wValueH;
        }
    }
    return (__TRUE);
}