update version to v2.0.8

This commit is contained in:
Artery-MCU
2022-11-22 18:18:07 +08:00
parent d95c5fb9e8
commit d4910499d3
1365 changed files with 13037 additions and 14600 deletions

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio class file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_conf.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio config
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio device descriptor
**************************************************************************
* Copyright notice & Disclaimer
@@ -170,9 +168,13 @@ ALIGNED_HEAD static uint8_t g_usbd_configuration[USBD_AUDIO_CONFIG_DESC_SIZE] AL
AUDIO_AC_FEATURE_UNIT, /* bDescriptorSubtype: feature unit type*/
AUDIO_MIC_FEATURE_UNIT_ID, /* bUnitID: id of this feature unit */
AUDIO_MIC_INPUT_TERMINAL_ID, /* bSourceID: from input terminal */
0x01, /* bControlSize: 1 byte */
0x01, /* bmaControls0: mute */
0x02, /* bmaControls1: volume */
0x02, /* bControlSize: 2 byte */
0x03, /* bmaControls0: mute & volume*/
0x00,
0x00, /* bmaControls1 */
0x00,
0x00, /* bmaControls2 */
0x00,
0x00, /* iFeature: unused */
AUDIO_OUTPUT_TERMINAL_SIZE, /* bLength: descriptor size */
@@ -211,9 +213,13 @@ ALIGNED_HEAD static uint8_t g_usbd_configuration[USBD_AUDIO_CONFIG_DESC_SIZE] AL
AUDIO_AC_FEATURE_UNIT, /* bDescriptorSubtype: feature unit type*/
AUDIO_SPK_FEATURE_UNIT_ID, /* bUnitID: id of this feature unit */
AUDIO_SPK_INPUT_TERMINAL_ID, /* bSourceID: from input terminal */
0x01, /* bControlSize: 1 byte */
0x01, /* bmaControls0: mute*/
0x02, /* bmaControls1: volume */
0x02, /* bControlSize: 2 byte */
0x03, /* bmaControls0: mute & volume*/
0x00,
0x00, /* bmaControls1: 0x0000 */
0x00,
0x00, /* bmaControls2: 0x0000 */
0x00,
0x00, /* iFeature: unused */
AUDIO_OUTPUT_TERMINAL_SIZE, /* bLength: descriptor size */

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio descriptor header file
**************************************************************************
* Copyright notice & Disclaimer
@@ -151,7 +149,7 @@ extern "C" {
* @brief audio interface config
*/
#define AUDIO_INTERFACE_NUM (AUDIO_SUPPORT_SPK + AUDIO_SUPPORT_MIC)
#define AUDIO_INTERFACE_LEN ((0x08 + AUDIO_INTERFACE_NUM) + AUDIO_INTERFACE_NUM * 0x1E)
#define AUDIO_INTERFACE_LEN ((0x08 + AUDIO_INTERFACE_NUM) + AUDIO_INTERFACE_NUM * 0x22)
#define AUDIO_MIC_INTERFACE 0x01
#define AUDIO_SPK_INTERFACE 0x02
@@ -160,7 +158,7 @@ extern "C" {
*/
#define AUDIO_INPUT_TERMINAL_SIZE 0x0C
#define AUDIO_OUTPUT_TERMINAL_SIZE 0x09
#define AUDIO_FEATURE_UNIT_SIZE 0x09
#define AUDIO_FEATURE_UNIT_SIZE 0x0D
/**
* @brief audio terminal id define

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_conf.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio config
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio class file
**************************************************************************
* Copyright notice & Disclaimer
@@ -140,10 +138,10 @@ typedef struct
uint32_t hid_protocol;
uint32_t hid_set_idle;
uint32_t alt_setting;
uint8_t hid_state;
uint8_t hid_set_report[64];
uint8_t g_rxhid_buff[USBD_AUHID_OUT_MAXPACKET_SIZE];
uint8_t g_txhid_buff[USBD_AUHID_IN_MAXPACKET_SIZE];
uint8_t hid_state;
}usb_audio_hid_type;

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio device descriptor
**************************************************************************
* Copyright notice & Disclaimer
@@ -158,7 +156,7 @@ ALIGNED_HEAD static uint8_t g_usbd_configuration[USBD_AUHID_CONFIG_DESC_SIZE] AL
AUDIO_MIC_INPUT_TERMINAL_ID, /* bTerminalID: id of this input terminal*/
LBYTE(AUDIO_INPUT_TERMINAL_MICROPHONE),
HBYTE(AUDIO_INPUT_TERMINAL_MICROPHONE),/* wTerminalType: terminal is microphone */
AUDIO_MIC_OUTPUT_TERMINAL_ID, /* bAssocTerminal: no association */
0x00, /* bAssocTerminal: no association */
AUDIO_MIC_CHR, /* bNrChannels: two channel */
#if (AUDIO_MIC_CHR == 2)
0x03, /* wChannelConfig: left front and right front */
@@ -175,9 +173,13 @@ ALIGNED_HEAD static uint8_t g_usbd_configuration[USBD_AUHID_CONFIG_DESC_SIZE] AL
AUDIO_AC_FEATURE_UNIT, /* bDescriptorSubtype: feature unit type*/
AUDIO_MIC_FEATURE_UNIT_ID, /* bUnitID: id of this feature unit */
AUDIO_MIC_INPUT_TERMINAL_ID, /* bSourceID: from input terminal */
0x01, /* bControlSize: 1 byte */
0x01, /* bmaControls0: mute */
0x02, /* bmaControls1: volume */
0x02, /* bControlSize: 2 byte */
0x03, /* bmaControls0: mute & volume*/
0x00,
0x00, /* bmaControls1 */
0x00,
0x00, /* bmaControls2 */
0x00,
0x00, /* iFeature: unused */
AUDIO_OUTPUT_TERMINAL_SIZE, /* bLength: descriptor size */
@@ -186,7 +188,7 @@ ALIGNED_HEAD static uint8_t g_usbd_configuration[USBD_AUHID_CONFIG_DESC_SIZE] AL
AUDIO_MIC_OUTPUT_TERMINAL_ID, /* bTerminalID: id of this output terminal*/
LBYTE(AUDIO_TERMINAL_TYPE_STREAMING),
HBYTE(AUDIO_TERMINAL_TYPE_STREAMING), /* wTerminalType: usb streaming */
AUDIO_MIC_INPUT_TERMINAL_ID, /* bAssocTerminal: unused */
0x00, /* bAssocTerminal: unused */
AUDIO_MIC_FEATURE_UNIT_ID, /* bSourceID: from feature unit terminal */
0x00, /* iTerminal: unused */
#endif
@@ -199,7 +201,7 @@ ALIGNED_HEAD static uint8_t g_usbd_configuration[USBD_AUHID_CONFIG_DESC_SIZE] AL
AUDIO_SPK_INPUT_TERMINAL_ID, /* bTerminalID: id of this input terminal*/
LBYTE(AUDIO_TERMINAL_TYPE_STREAMING), /* wTerminalType: usb streaming */
HBYTE(AUDIO_TERMINAL_TYPE_STREAMING), /* wTerminalType: usb streaming */
AUDIO_SPK_OUTPUT_TERMINAL_ID, /* bAssocTerminal: no association */
0x00, /* bAssocTerminal: no association */
AUDIO_SPK_CHR, /* bNrChannels: two channel */
#if (AUDIO_SPK_CHR == 2)
0x03, /* wChannelConfig: left front and right front */
@@ -216,9 +218,13 @@ ALIGNED_HEAD static uint8_t g_usbd_configuration[USBD_AUHID_CONFIG_DESC_SIZE] AL
AUDIO_AC_FEATURE_UNIT, /* bDescriptorSubtype: feature unit type*/
AUDIO_SPK_FEATURE_UNIT_ID, /* bUnitID: id of this feature unit */
AUDIO_SPK_INPUT_TERMINAL_ID, /* bSourceID: from input terminal */
0x01, /* bControlSize: 1 byte */
0x01, /* bmaControls0: mute*/
0x02, /* bmaControls1: volume */
0x02, /* bControlSize: 2 byte */
0x03, /* bmaControls0: mute & volume*/
0x00,
0x00, /* bmaControls1: 0x0000 */
0x00,
0x00, /* bmaControls2: 0x0000 */
0x00,
0x00, /* iFeature: unused */
AUDIO_OUTPUT_TERMINAL_SIZE, /* bLength: descriptor size */
@@ -227,7 +233,7 @@ ALIGNED_HEAD static uint8_t g_usbd_configuration[USBD_AUHID_CONFIG_DESC_SIZE] AL
AUDIO_SPK_OUTPUT_TERMINAL_ID, /* bTerminalID: id of this output terminal*/
LBYTE(AUDIO_OUTPUT_TERMINAL_SPEAKER), /* wTerminalType: usb speaker */
HBYTE(AUDIO_OUTPUT_TERMINAL_SPEAKER), /* wTerminalType: usb speaker */
AUDIO_SPK_INPUT_TERMINAL_ID, /* bAssocTerminal: unused */
0x00, /* bAssocTerminal: unused */
AUDIO_SPK_FEATURE_UNIT_ID, /* bSourceID: from feature unit terminal */
0x00, /* iTerminal: unused */
#endif

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file audio_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb audio descriptor header file
**************************************************************************
* Copyright notice & Disclaimer
@@ -150,7 +148,7 @@ extern "C" {
* @brief audio interface config
*/
#define AUDIO_INTERFACE_NUM (AUDIO_SUPPORT_SPK + AUDIO_SUPPORT_MIC)
#define AUDIO_INTERFACE_LEN ((0x08 + AUDIO_INTERFACE_NUM) + AUDIO_INTERFACE_NUM * 0x1E)
#define AUDIO_INTERFACE_LEN ((0x08 + AUDIO_INTERFACE_NUM) + AUDIO_INTERFACE_NUM * 0x22)
#define AUDIO_MIC_INTERFACE 0x01
#define AUDIO_SPK_INTERFACE 0x02
@@ -159,7 +157,7 @@ extern "C" {
*/
#define AUDIO_INPUT_TERMINAL_SIZE 0x0C
#define AUDIO_OUTPUT_TERMINAL_SIZE 0x09
#define AUDIO_FEATURE_UNIT_SIZE 0x09
#define AUDIO_FEATURE_UNIT_SIZE 0x0D
/**
* @brief audio terminal id define

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc class file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc device descriptor
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc descriptor header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_keyboard_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc and keyboard class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_keyboard_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc and keyboard class file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_keyboard_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc and keyboard device descriptor
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_keyboard_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc and keyboard descriptor header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_msc_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_msc_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc class file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_msc_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc device descriptor
**************************************************************************
* Copyright notice & Disclaimer
@@ -202,8 +200,8 @@ ALIGNED_HEAD static uint8_t g_usbd_configuration[USBD_CDC_MSC_CONFIG_DESC_SIZE]
0x05, /* bFunctionLength: size of this descriptor in bytes */
USBD_CDC_CS_INTERFACE, /* bDescriptorType: CDC interface descriptor type */
USBD_CDC_SUBTYPE_UFD, /* bDescriptorSubtype: Union Function Descriptor subtype 0x06 */
0x00, /* bControlInterface: The interface number of the communications or data class interface 0x00 */
0x01, /* bSubordinateInterface0: interface number of first subordinate interface in the union */
0x01, /* bControlInterface: The interface number of the communications or data class interface 0x00 */
0x02, /* bSubordinateInterface0: interface number of first subordinate interface in the union */
USB_DEVICE_EPT_LEN, /* bLength: size of endpoint descriptor in bytes */
USB_DESCIPTOR_TYPE_ENDPOINT, /* bDescriptorType: endpoint descriptor type */

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file cdc_msc_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc descriptor header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file msc_bot_scsi.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb mass storage bulk-only transport and scsi command
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file custom_hid_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb custom hid class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file custom_hid_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid header file
**************************************************************************
* Copyright notice & Disclaimer
@@ -75,9 +73,10 @@ typedef struct
uint32_t hid_protocol;
uint32_t hid_set_idle;
uint32_t alt_setting;
uint8_t hid_state;
uint8_t hid_set_report[64];
uint8_t hid_get_report[64];
uint8_t hid_get_report[64];
uint8_t hid_state;
}custom_hid_type;
/**

View File

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

View File

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

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file hid_iap_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid iap class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file hid_iap_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid iap header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file hid_iap_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid iap device descriptor
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file hid_iap_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid iap descriptor header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file keyboard_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid keyboard class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file keyboard_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid keyboard header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file keyboard_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid keyboard device descriptor
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file keyboard_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb keyboard descriptor header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file mouse_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid mouse class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file mouse_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid mouse header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file mouse_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb hid mouse device descriptor
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file mouse_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb mouse descriptor header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file msc_bot_scsi.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb mass storage bulk-only transport and scsi command
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file msc_bot_scsi.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb mass storage bulk-only transport and scsi command header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file msc_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb msc class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file msc_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb msc class file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file msc_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb msc device descriptor
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file msc_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb msc descriptor header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file printer_class.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb printer class type
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file printer_class.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb cdc class file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file printer_desc.c
* @version v2.0.7
* @date 2022-08-16
* @brief usb printer device descriptor
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,6 @@
/**
**************************************************************************
* @file printer_desc.h
* @version v2.0.7
* @date 2022-08-16
* @brief usb printer descriptor header file
**************************************************************************
* Copyright notice & Disclaimer