update version to v2.0.7

This commit is contained in:
Artery-MCU
2022-08-26 14:45:50 +08:00
parent ac9d1046b7
commit d95c5fb9e8
1103 changed files with 13792 additions and 2269 deletions

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file custom_hid_class.c
* @version v2.0.6
* @date 2022-06-28
* @version v2.0.7
* @date 2022-08-16
* @brief usb custom hid class type
**************************************************************************
* Copyright notice & Disclaimer
@@ -144,6 +144,9 @@ static usb_sts_type class_setup_handler(void *udev, usb_setup_type *setup)
case HID_REQ_SET_REPORT:
pcshid->hid_state = HID_REQ_SET_REPORT;
usbd_ctrl_recv(pudev, pcshid->hid_set_report, setup->wLength);
break;
case HID_REQ_GET_REPORT:
usbd_ctrl_send(pudev, pcshid->hid_get_report, setup->wLength);
break;
default:
usbd_ctrl_unsupport(pudev);

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file custom_hid_class.h
* @version v2.0.6
* @date 2022-06-28
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid header file
**************************************************************************
* Copyright notice & Disclaimer
@@ -77,6 +77,7 @@ typedef struct
uint32_t alt_setting;
uint8_t hid_state;
uint8_t hid_set_report[64];
uint8_t hid_get_report[64];
}custom_hid_type;
/**

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file custom_hid_desc.c
* @version v2.0.6
* @date 2022-06-28
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid device descriptor
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file custom_hid_desc.h
* @version v2.0.6
* @date 2022-06-28
* @version v2.0.7
* @date 2022-08-16
* @brief usb custom hid descriptor header file
**************************************************************************
* Copyright notice & Disclaimer