update version to v2.0.4

This commit is contained in:
Artery-MCU
2022-04-11 19:32:28 +08:00
parent 07d7347ba4
commit ccd0f1e108
1470 changed files with 213761 additions and 13939 deletions

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_clock.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief header file of clock program
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_conf.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief at32f415 config header file
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_int.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief header file of main interrupt service routines.
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file usb_conf.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief usb config header file
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
@@ -23,7 +23,7 @@
*
**************************************************************************
*/
/* define to prevent recursive inclusion -------------------------------------*/
#ifndef __USB_CONF_H
#define __USB_CONF_H
@@ -31,7 +31,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#include "at32f415_usb.h"
#include "at32f415.h"
#include "stdio.h"
@@ -39,7 +39,7 @@ extern "C" {
/** @addtogroup AT32F415_periph_examples
* @{
*/
/** @addtogroup 415_USB_host_hid
* @{
*/

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file usbh_user.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief usb host user header file
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file readme.txt
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief readme
**************************************************************************
*/

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_clock.c
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief system clock config program
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
@@ -48,8 +48,8 @@
void system_clock_config(void)
{
/* config flash psr register */
flash_psr_set(FLASH_WAIT_CYCLE_4);
flash_psr_set(FLASH_WAIT_CYCLE_4);
/* reset crm */
crm_reset();

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_int.c
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief main interrupt service routines.
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
@@ -30,7 +30,7 @@
/** @addtogroup AT32F415_periph_examples
* @{
*/
/** @addtogroup 415_USB_device_mouse
* @{
*/
@@ -134,9 +134,9 @@ void SysTick_Handler(void)
/**
* @}
*/
*/
/**
* @}
*/
*/

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file main.c
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief main program
**************************************************************************
* Copyright notice & Disclaimer
@@ -109,7 +109,7 @@ int main(void)
/* usb gpio config */
usb_gpio_config();
uart_print_init(115200);
#ifdef USB_LOW_POWER_WAKUP

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file usbh_user.c
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief usb user function
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
@@ -28,7 +28,7 @@
/** @addtogroup AT32F415_periph_examples
* @{
*/
/** @addtogroup 415_USB_host_hid
* @{
*/
@@ -47,7 +47,7 @@ static usb_sts_type usbh_user_active_vbus(void *uhost, confirm_state state);
static usb_sts_type usbh_user_not_support(void);
usbh_user_handler_type usbh_user_handle =
usbh_user_handler_type usbh_user_handle =
{
usbh_user_init,
usbh_user_reset,
@@ -71,7 +71,7 @@ usbh_user_handler_type usbh_user_handle =
static usb_sts_type usbh_user_init(void)
{
usb_sts_type status = USB_OK;
return status;
}
@@ -83,7 +83,7 @@ static usb_sts_type usbh_user_init(void)
static usb_sts_type usbh_user_reset(void)
{
usb_sts_type status = USB_OK;
return status;
}
@@ -96,7 +96,7 @@ static usb_sts_type usbh_user_attached(void)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("USB Device Attached");
return status;
return status;
}
/**
@@ -108,7 +108,7 @@ static usb_sts_type usbh_user_disconnect(void)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("Device Disconnect");
return status;
return status;
}
/**
@@ -127,7 +127,7 @@ static usb_sts_type usbh_user_speed(uint8_t speed)
{
USBH_DEBUG("This is a Low-Speed device");
}
return status;
return status;
}
/**
@@ -139,7 +139,7 @@ static usb_sts_type usbh_user_mfc_string(void *string)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("Manufacturer: %s", (uint8_t *)string);
return status;
return status;
}
/**
@@ -151,7 +151,7 @@ static usb_sts_type usbh_user_product_string(void *string)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("Product: %s", (uint8_t *)string);
return status;
return status;
}
/**
@@ -163,7 +163,7 @@ static usb_sts_type usbh_user_serial_string(void *string)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("Serial: %s", (uint8_t *)string);
return status;
return status;
}
/**
@@ -175,7 +175,7 @@ static usb_sts_type usbh_user_enumeration_done(void)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("Enumeration done");
return status;
return status;
}
/**
@@ -186,8 +186,8 @@ static usb_sts_type usbh_user_enumeration_done(void)
static usb_sts_type usbh_user_application(void)
{
usb_sts_type status = USB_OK;
return status;
return status;
}
@@ -225,8 +225,8 @@ static usb_sts_type usbh_user_active_vbus(void *uhost, confirm_state state)
static usb_sts_type usbh_user_not_support(void)
{
usb_sts_type status = USB_OK;
return status;
return status;
}
/**

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_clock.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief header file of clock program
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_conf.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief at32f415 config header file
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_int.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief header file of main interrupt service routines.
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file usb_conf.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief usb config header file
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
@@ -23,7 +23,7 @@
*
**************************************************************************
*/
/* define to prevent recursive inclusion -------------------------------------*/
#ifndef __USB_CONF_H
#define __USB_CONF_H
@@ -31,7 +31,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#include "at32f415_usb.h"
#include "at32f415.h"
#include "stdio.h"
@@ -39,7 +39,7 @@ extern "C" {
/** @addtogroup AT32F415_periph_examples
* @{
*/
/** @addtogroup 415_USB_host_hid
* @{
*/

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file usbh_user.h
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief usb host user header file
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file readme.txt
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief readme
**************************************************************************
*/

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_clock.c
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief system clock config program
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
@@ -48,8 +48,8 @@
void system_clock_config(void)
{
/* config flash psr register */
flash_psr_set(FLASH_WAIT_CYCLE_4);
flash_psr_set(FLASH_WAIT_CYCLE_4);
/* reset crm */
crm_reset();

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file at32f415_int.c
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief main interrupt service routines.
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
@@ -30,7 +30,7 @@
/** @addtogroup AT32F415_periph_examples
* @{
*/
/** @addtogroup 415_USB_device_mouse
* @{
*/
@@ -134,9 +134,9 @@ void SysTick_Handler(void)
/**
* @}
*/
*/
/**
* @}
*/
*/

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file main.c
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief main program
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file usbh_msc_diskio.c
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief usb mass storage disk io
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
@@ -30,7 +30,7 @@
/** @addtogroup AT32F415_periph_examples
* @{
*/
/** @addtogroup 415_USB_host_msc
* @{
*/
@@ -85,12 +85,12 @@ DRESULT disk_read (
)
{
usb_sts_type status;
status = usbh_msc_read(&otg_core_struct.host, sector, count, buff, pdrv);
if(status == USB_OK)
return RES_OK;
return RES_ERROR;
}
@@ -112,10 +112,10 @@ DRESULT disk_write (
usb_sts_type status;
status = usbh_msc_write(&otg_core_struct.host, sector, count, (uint8_t *)buff, pdrv);
if(status == USB_OK)
return RES_OK;
return RES_ERROR;
@@ -162,7 +162,7 @@ DRESULT disk_ioctl (
/*-----------------------------------------------------------------------*/
DWORD get_fattime (void)
{
return 0;
return 0;
}
/**

View File

@@ -1,17 +1,17 @@
/**
**************************************************************************
* @file usbh_user.c
* @version v2.0.3
* @date 2022-02-11
* @version v2.0.4
* @date 2022-04-02
* @brief usb user function
**************************************************************************
* Copyright notice & Disclaimer
*
* 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
* 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
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
@@ -29,7 +29,7 @@
/** @addtogroup AT32F415_periph_examples
* @{
*/
/** @addtogroup 415_USB_host_msc
* @{
*/
@@ -48,7 +48,7 @@ static usb_sts_type usbh_user_active_vbus(void *uhost, confirm_state state);
static usb_sts_type usbh_user_not_support(void);
usbh_user_handler_type usbh_user_handle =
usbh_user_handler_type usbh_user_handle =
{
usbh_user_init,
usbh_user_reset,
@@ -81,7 +81,7 @@ msc_usr_state usr_state = USR_IDLE;
static usb_sts_type usbh_user_init(void)
{
usb_sts_type status = USB_OK;
return status;
}
@@ -93,7 +93,7 @@ static usb_sts_type usbh_user_init(void)
static usb_sts_type usbh_user_reset(void)
{
usb_sts_type status = USB_OK;
return status;
}
@@ -106,7 +106,7 @@ static usb_sts_type usbh_user_attached(void)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("USB Device Attached");
return status;
return status;
}
/**
@@ -119,7 +119,7 @@ static usb_sts_type usbh_user_disconnect(void)
usb_sts_type status = USB_OK;
usr_state = USR_IDLE;
USBH_DEBUG("Device Disconnect");
return status;
return status;
}
/**
@@ -138,7 +138,7 @@ static usb_sts_type usbh_user_speed(uint8_t speed)
{
USBH_DEBUG("This is a Low-Speed device");
}
return status;
return status;
}
/**
@@ -150,7 +150,7 @@ static usb_sts_type usbh_user_mfc_string(void *string)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("Manufacturer: %s", (uint8_t *)string);
return status;
return status;
}
/**
@@ -162,7 +162,7 @@ static usb_sts_type usbh_user_product_string(void *string)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("Product: %s", (uint8_t *)string);
return status;
return status;
}
/**
@@ -174,7 +174,7 @@ static usb_sts_type usbh_user_serial_string(void *string)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("Serial: %s", (uint8_t *)string);
return status;
return status;
}
/**
@@ -186,7 +186,7 @@ static usb_sts_type usbh_user_enumeration_done(void)
{
usb_sts_type status = USB_OK;
USBH_DEBUG("Enumeration done");
return status;
return status;
}
/**
@@ -204,7 +204,7 @@ static usb_sts_type usbh_user_application(void)
uint32_t len;
uint8_t write_data[] = "usb host msc demo";
uint8_t read_data[32] = {0};
switch(usr_state)
{
case USR_IDLE:
@@ -235,7 +235,7 @@ static usb_sts_type usbh_user_application(void)
}
f_close(&file);
}
/* start read file */
if(f_open(&file, "0:AT32.txt", FA_READ) != FR_OK)
{
@@ -257,14 +257,14 @@ static usb_sts_type usbh_user_application(void)
}
f_close(&file);
}
f_mount(NULL, "", 0);
f_mount(NULL, "", 0);
}
usr_state = USR_FINISH;
break;
case USR_FINISH:
break;
}
return status;
return status;
}
/**
@@ -301,8 +301,8 @@ static usb_sts_type usbh_user_active_vbus(void *uhost, confirm_state state)
static usb_sts_type usbh_user_not_support(void)
{
usb_sts_type status = USB_OK;
return status;
return status;
}
/**