2021-12-14 13:34:31 +08:00
|
|
|
/**
|
|
|
|
|
**************************************************************************
|
|
|
|
|
* @file msc_desc.h
|
|
|
|
|
* @brief usb msc descriptor header file
|
|
|
|
|
**************************************************************************
|
2025-11-27 18:19:48 +08:00
|
|
|
*
|
|
|
|
|
* Copyright (c) 2025, Artery Technology, All rights reserved.
|
2021-12-14 13:34:31 +08:00
|
|
|
*
|
2022-04-11 19:32:28 +08:00
|
|
|
* The software Board Support Package (BSP) that is made available to
|
|
|
|
|
* download from Artery official website is the copyrighted work of Artery.
|
|
|
|
|
* Artery authorizes customers to use, copy, and distribute the BSP
|
|
|
|
|
* software and its related documentation for the purpose of design and
|
|
|
|
|
* development in conjunction with Artery microcontrollers. Use of the
|
2021-12-14 13:34:31 +08:00
|
|
|
* software is governed by this copyright notice and the following disclaimer.
|
|
|
|
|
*
|
|
|
|
|
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
|
|
|
|
|
* GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
|
|
|
|
|
* TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
|
|
|
|
|
* STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
|
|
|
|
|
* INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
|
|
|
|
|
*
|
|
|
|
|
**************************************************************************
|
|
|
|
|
*/
|
2022-04-11 19:32:28 +08:00
|
|
|
|
2021-12-14 13:34:31 +08:00
|
|
|
/* define to prevent recursive inclusion -------------------------------------*/
|
|
|
|
|
#ifndef __MSC_DESC_H
|
|
|
|
|
#define __MSC_DESC_H
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
2022-04-11 19:32:28 +08:00
|
|
|
|
2021-12-14 13:34:31 +08:00
|
|
|
#include "msc_class.h"
|
|
|
|
|
#include "usbd_core.h"
|
|
|
|
|
|
|
|
|
|
/** @addtogroup AT32F415_middlewares_usbd_class
|
|
|
|
|
* @{
|
|
|
|
|
*/
|
2022-04-11 19:32:28 +08:00
|
|
|
|
2021-12-14 13:34:31 +08:00
|
|
|
/** @addtogroup USB_msc_desc
|
|
|
|
|
* @{
|
|
|
|
|
*/
|
|
|
|
|
|
2022-04-11 19:32:28 +08:00
|
|
|
/** @defgroup USB_msc_desc_definition
|
2021-12-14 13:34:31 +08:00
|
|
|
* @{
|
|
|
|
|
*/
|
|
|
|
|
|
2022-03-03 19:38:35 +08:00
|
|
|
#define MSC_BCD_NUM 0x0110
|
2021-12-14 13:34:31 +08:00
|
|
|
|
2022-03-03 19:38:35 +08:00
|
|
|
#define USBD_MSC_VENDOR_ID 0x2E3C
|
|
|
|
|
#define USBD_MSC_PRODUCT_ID 0x5720
|
2021-12-14 13:34:31 +08:00
|
|
|
|
2022-03-03 19:38:35 +08:00
|
|
|
#define USBD_MSC_CONFIG_DESC_SIZE 32
|
|
|
|
|
#define USBD_MSC_SIZ_STRING_LANGID 4
|
|
|
|
|
#define USBD_MSC_SIZ_STRING_SERIAL 0x1A
|
2021-12-14 13:34:31 +08:00
|
|
|
|
2022-03-03 19:38:35 +08:00
|
|
|
#define USBD_MSC_DESC_MANUFACTURER_STRING "Artery"
|
|
|
|
|
#define USBD_MSC_DESC_PRODUCT_STRING "AT32 Mass Storage"
|
|
|
|
|
#define USBD_MSC_DESC_CONFIGURATION_STRING "Mass Storage Config"
|
|
|
|
|
#define USBD_MSC_DESC_INTERFACE_STRING "Mass Storage Interface"
|
2021-12-14 13:34:31 +08:00
|
|
|
|
|
|
|
|
#define MCU_ID1 (0x1FFFF7E8)
|
|
|
|
|
#define MCU_ID2 (0x1FFFF7EC)
|
|
|
|
|
#define MCU_ID3 (0x1FFFF7F0)
|
|
|
|
|
|
|
|
|
|
extern usbd_desc_handler msc_desc_handler;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
2022-04-11 19:32:28 +08:00
|
|
|
|
2021-12-14 13:34:31 +08:00
|
|
|
/**
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
2022-04-11 19:32:28 +08:00
|
|
|
|
2021-12-14 13:34:31 +08:00
|
|
|
/**
|
|
|
|
|
* @}
|
|
|
|
|
*/
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|