diff --git a/AT32F403A_407_periph_lib_V2.0.8.chm b/AT32F403A_407_periph_lib_V2.0.9.chm similarity index 70% rename from AT32F403A_407_periph_lib_V2.0.8.chm rename to AT32F403A_407_periph_lib_V2.0.9.chm index a4516ef9..f349ac5f 100644 Binary files a/AT32F403A_407_periph_lib_V2.0.8.chm and b/AT32F403A_407_periph_lib_V2.0.9.chm differ diff --git a/document/ReleaseNotes_AT32F403A_407_Firmware_Library.pdf b/document/ReleaseNotes_AT32F403A_407_Firmware_Library.pdf index 36021de7..168d4c8a 100644 Binary files a/document/ReleaseNotes_AT32F403A_407_Firmware_Library.pdf and b/document/ReleaseNotes_AT32F403A_407_Firmware_Library.pdf differ diff --git a/libraries/cmsis/cm4/device_support/at32f403a_407.h b/libraries/cmsis/cm4/device_support/at32f403a_407.h index a0c049f7..c66f787b 100644 --- a/libraries/cmsis/cm4/device_support/at32f403a_407.h +++ b/libraries/cmsis/cm4/device_support/at32f403a_407.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 header file ************************************************************************** * Copyright notice & Disclaimer @@ -97,7 +97,7 @@ extern "C" { */ #define __AT32F403A_407_LIBRARY_VERSION_MAJOR (0x02) /*!< [31:24] major version */ #define __AT32F403A_407_LIBRARY_VERSION_MIDDLE (0x00) /*!< [23:16] middle version */ -#define __AT32F403A_407_LIBRARY_VERSION_MINOR (0x08) /*!< [15:8] minor version */ +#define __AT32F403A_407_LIBRARY_VERSION_MINOR (0x09) /*!< [15:8] minor version */ #define __AT32F403A_407_LIBRARY_VERSION_RC (0x00) /*!< [7:0] release candidate */ #define __AT32F403A_407_LIBRARY_VERSION ((__AT32F403A_407_LIBRARY_VERSION_MAJOR << 24) | \ (__AT32F403A_407_LIBRARY_VERSION_MIDDLE << 16) | \ diff --git a/libraries/cmsis/cm4/device_support/at32f403a_407_conf_template.h b/libraries/cmsis/cm4/device_support/at32f403a_407_conf_template.h index a06785d6..c7eb8106 100644 --- a/libraries/cmsis/cm4/device_support/at32f403a_407_conf_template.h +++ b/libraries/cmsis/cm4/device_support/at32f403a_407_conf_template.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s b/libraries/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s index 719f78ed..2fdb4c9c 100644 --- a/libraries/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s +++ b/libraries/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file startup_at32f403a_407.s - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407xx devices vector table for gcc toolchain. * this module performs: * - set the initial sp diff --git a/libraries/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s b/libraries/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s index cc44a484..cc7cc7e0 100644 --- a/libraries/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s +++ b/libraries/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s @@ -1,7 +1,7 @@ ;************************************************************************** ;* @file startup_at32f403a_407.s -;* @version v2.0.8 -;* @date 2022-04-02 +;* @version v2.0.9 +;* @date 2022-04-25 ;* @brief at32f403a_407 startup file for IAR Systems ;************************************************************************** ; diff --git a/libraries/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s b/libraries/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s index 4b0494a0..4c7a8fd2 100644 --- a/libraries/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s +++ b/libraries/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s @@ -1,7 +1,7 @@ ;************************************************************************** ;* @file startup_at32f403a_407.s -;* @version v2.0.8 -;* @date 2022-04-02 +;* @version v2.0.9 +;* @date 2022-04-25 ;* @brief at32f403a_407 startup file for keil ;************************************************************************** ; diff --git a/libraries/cmsis/cm4/device_support/system_at32f403a_407.c b/libraries/cmsis/cm4/device_support/system_at32f403a_407.c index b5d79b99..567009f7 100644 --- a/libraries/cmsis/cm4/device_support/system_at32f403a_407.c +++ b/libraries/cmsis/cm4/device_support/system_at32f403a_407.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file system_at32f403a_407.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for cmsis cortex-m4 system source file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/cmsis/cm4/device_support/system_at32f403a_407.h b/libraries/cmsis/cm4/device_support/system_at32f403a_407.h index 967010e1..414c1c31 100644 --- a/libraries/cmsis/cm4/device_support/system_at32f403a_407.h +++ b/libraries/cmsis/cm4/device_support/system_at32f403a_407.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file system_at32f403a_407.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief cmsis cortex-m4 system header file. ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/cmsis/dsp/PrivateInclude/arm_sorting.h b/libraries/cmsis/dsp/PrivateInclude/arm_sorting.h index 291a114f..25389907 100644 --- a/libraries/cmsis/dsp/PrivateInclude/arm_sorting.h +++ b/libraries/cmsis/dsp/PrivateInclude/arm_sorting.h @@ -1,7 +1,7 @@ /****************************************************************************** * @file arm_sorting.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief Private header file for CMSIS DSP Library ******************************************************************************/ /* diff --git a/libraries/cmsis/dsp/PrivateInclude/arm_vec_fft.h b/libraries/cmsis/dsp/PrivateInclude/arm_vec_fft.h index a53e8d87..59d59e6c 100644 --- a/libraries/cmsis/dsp/PrivateInclude/arm_vec_fft.h +++ b/libraries/cmsis/dsp/PrivateInclude/arm_vec_fft.h @@ -1,7 +1,7 @@ /****************************************************************************** * @file arm_vec_fft.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief Private header file for CMSIS DSP Library ******************************************************************************/ /* diff --git a/libraries/cmsis/dsp/PrivateInclude/arm_vec_filtering.h b/libraries/cmsis/dsp/PrivateInclude/arm_vec_filtering.h index f7837ff6..12708f90 100644 --- a/libraries/cmsis/dsp/PrivateInclude/arm_vec_filtering.h +++ b/libraries/cmsis/dsp/PrivateInclude/arm_vec_filtering.h @@ -1,7 +1,7 @@ /****************************************************************************** * @file arm_vec_filtering.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief Private header file for CMSIS DSP Library ******************************************************************************/ /* diff --git a/libraries/cmsis/dsp/include/arm_math.h b/libraries/cmsis/dsp/include/arm_math.h index ddd3f9ef..e312aaef 100644 --- a/libraries/cmsis/dsp/include/arm_math.h +++ b/libraries/cmsis/dsp/include/arm_math.h @@ -1,7 +1,7 @@ /****************************************************************************** * @file arm_math.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief Public header file for CMSIS DSP Library ******************************************************************************/ /* diff --git a/libraries/cmsis/dsp/include/arm_vec_math.h b/libraries/cmsis/dsp/include/arm_vec_math.h index e6b26f7d..7a2c7fee 100644 --- a/libraries/cmsis/dsp/include/arm_vec_math.h +++ b/libraries/cmsis/dsp/include/arm_vec_math.h @@ -1,7 +1,7 @@ /****************************************************************************** * @file arm_vec_math.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief Public header file for CMSIS DSP Library ******************************************************************************/ /* diff --git a/libraries/drivers/inc/at32f403a_407_acc.h b/libraries/drivers/inc/at32f403a_407_acc.h index 3e8f7731..290c82fc 100644 --- a/libraries/drivers/inc/at32f403a_407_acc.h +++ b/libraries/drivers/inc/at32f403a_407_acc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_acc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 acc header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_adc.h b/libraries/drivers/inc/at32f403a_407_adc.h index 4d2f80e9..6c379087 100644 --- a/libraries/drivers/inc/at32f403a_407_adc.h +++ b/libraries/drivers/inc/at32f403a_407_adc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_adc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 adc header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_bpr.h b/libraries/drivers/inc/at32f403a_407_bpr.h index 9478a6d8..b3d4210d 100644 --- a/libraries/drivers/inc/at32f403a_407_bpr.h +++ b/libraries/drivers/inc/at32f403a_407_bpr.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_bpr.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 bpr header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_can.h b/libraries/drivers/inc/at32f403a_407_can.h index ca64f68f..ce3c888f 100644 --- a/libraries/drivers/inc/at32f403a_407_can.h +++ b/libraries/drivers/inc/at32f403a_407_can.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_can.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 can header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_crc.h b/libraries/drivers/inc/at32f403a_407_crc.h index 6e3c4791..3e267597 100644 --- a/libraries/drivers/inc/at32f403a_407_crc.h +++ b/libraries/drivers/inc/at32f403a_407_crc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_crc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 crc header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_crm.h b/libraries/drivers/inc/at32f403a_407_crm.h index 122b5c41..abedb8da 100644 --- a/libraries/drivers/inc/at32f403a_407_crm.h +++ b/libraries/drivers/inc/at32f403a_407_crm.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_crm.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 crm header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_dac.h b/libraries/drivers/inc/at32f403a_407_dac.h index e3a1ae35..bfd5653f 100644 --- a/libraries/drivers/inc/at32f403a_407_dac.h +++ b/libraries/drivers/inc/at32f403a_407_dac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_dac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 dac header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_debug.h b/libraries/drivers/inc/at32f403a_407_debug.h index bbb7e1e8..74e1b4af 100644 --- a/libraries/drivers/inc/at32f403a_407_debug.h +++ b/libraries/drivers/inc/at32f403a_407_debug.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_debug.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 debug header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_def.h b/libraries/drivers/inc/at32f403a_407_def.h index e382ab4c..d45ce1c3 100644 --- a/libraries/drivers/inc/at32f403a_407_def.h +++ b/libraries/drivers/inc/at32f403a_407_def.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_def.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 macros header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_dma.h b/libraries/drivers/inc/at32f403a_407_dma.h index 199cad85..64a0057d 100644 --- a/libraries/drivers/inc/at32f403a_407_dma.h +++ b/libraries/drivers/inc/at32f403a_407_dma.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_dma.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 dma header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_emac.h b/libraries/drivers/inc/at32f403a_407_emac.h index 2a4fdc47..3c65e392 100644 --- a/libraries/drivers/inc/at32f403a_407_emac.h +++ b/libraries/drivers/inc/at32f403a_407_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 emac header file ************************************************************************** * Copyright notice & Disclaimer @@ -45,7 +45,7 @@ extern "C" { * @{ */ -#define PHY_TIMEOUT (0x0FFFFFFF) /*!< timeout for phy response */ +#define PHY_TIMEOUT (0x000FFFFF) /*!< timeout for phy response */ /** @defgroup EMAC_smi_clock_border_definition * @brief emac smi clock border diff --git a/libraries/drivers/inc/at32f403a_407_exint.h b/libraries/drivers/inc/at32f403a_407_exint.h index 43e3755f..43aad7c2 100644 --- a/libraries/drivers/inc/at32f403a_407_exint.h +++ b/libraries/drivers/inc/at32f403a_407_exint.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_exint.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 exint header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_flash.h b/libraries/drivers/inc/at32f403a_407_flash.h index 3c5e41dc..fd5ae430 100644 --- a/libraries/drivers/inc/at32f403a_407_flash.h +++ b/libraries/drivers/inc/at32f403a_407_flash.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_flash.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 flash header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_gpio.h b/libraries/drivers/inc/at32f403a_407_gpio.h index 549eb134..49c322f7 100644 --- a/libraries/drivers/inc/at32f403a_407_gpio.h +++ b/libraries/drivers/inc/at32f403a_407_gpio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_gpio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 gpio header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_i2c.h b/libraries/drivers/inc/at32f403a_407_i2c.h index 0169b97b..b341398d 100644 --- a/libraries/drivers/inc/at32f403a_407_i2c.h +++ b/libraries/drivers/inc/at32f403a_407_i2c.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_i2c.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 i2c header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_misc.h b/libraries/drivers/inc/at32f403a_407_misc.h index 0527b8b4..1d4c2628 100644 --- a/libraries/drivers/inc/at32f403a_407_misc.h +++ b/libraries/drivers/inc/at32f403a_407_misc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_misc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 misc header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_pwc.h b/libraries/drivers/inc/at32f403a_407_pwc.h index 2428dfd2..37b29265 100644 --- a/libraries/drivers/inc/at32f403a_407_pwc.h +++ b/libraries/drivers/inc/at32f403a_407_pwc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_pwc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 pwc header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_rtc.h b/libraries/drivers/inc/at32f403a_407_rtc.h index 186c4fc4..5593ff65 100644 --- a/libraries/drivers/inc/at32f403a_407_rtc.h +++ b/libraries/drivers/inc/at32f403a_407_rtc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_rtc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 rtc header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_sdio.h b/libraries/drivers/inc/at32f403a_407_sdio.h index 4c5542bf..1725407e 100644 --- a/libraries/drivers/inc/at32f403a_407_sdio.h +++ b/libraries/drivers/inc/at32f403a_407_sdio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_sdio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 sdio header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_spi.h b/libraries/drivers/inc/at32f403a_407_spi.h index d58f91fc..1f1c917e 100644 --- a/libraries/drivers/inc/at32f403a_407_spi.h +++ b/libraries/drivers/inc/at32f403a_407_spi.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_spi.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 spi header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_tmr.h b/libraries/drivers/inc/at32f403a_407_tmr.h index a73eff91..7b887fa2 100644 --- a/libraries/drivers/inc/at32f403a_407_tmr.h +++ b/libraries/drivers/inc/at32f403a_407_tmr.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_tmr.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 tmr header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_usart.h b/libraries/drivers/inc/at32f403a_407_usart.h index 2a9a53a5..4dd8f30d 100644 --- a/libraries/drivers/inc/at32f403a_407_usart.h +++ b/libraries/drivers/inc/at32f403a_407_usart.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_usart.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 usart header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_usb.h b/libraries/drivers/inc/at32f403a_407_usb.h index cde372ec..cf05a3af 100644 --- a/libraries/drivers/inc/at32f403a_407_usb.h +++ b/libraries/drivers/inc/at32f403a_407_usb.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_usb.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 usb header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_wdt.h b/libraries/drivers/inc/at32f403a_407_wdt.h index 471fd6ea..8a4d45a1 100644 --- a/libraries/drivers/inc/at32f403a_407_wdt.h +++ b/libraries/drivers/inc/at32f403a_407_wdt.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_wdt.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 wdt header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_wwdt.h b/libraries/drivers/inc/at32f403a_407_wwdt.h index 20d8904a..aa1c9e8e 100644 --- a/libraries/drivers/inc/at32f403a_407_wwdt.h +++ b/libraries/drivers/inc/at32f403a_407_wwdt.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_wwdt.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 wwdt header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/inc/at32f403a_407_xmc.h b/libraries/drivers/inc/at32f403a_407_xmc.h index 2911bbc7..ae2ad185 100644 --- a/libraries/drivers/inc/at32f403a_407_xmc.h +++ b/libraries/drivers/inc/at32f403a_407_xmc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_xmc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 xmc header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_acc.c b/libraries/drivers/src/at32f403a_407_acc.c index c4ecab49..a2b6abd3 100644 --- a/libraries/drivers/src/at32f403a_407_acc.c +++ b/libraries/drivers/src/at32f403a_407_acc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_acc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the acc firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_adc.c b/libraries/drivers/src/at32f403a_407_adc.c index d8a541ad..d0794a51 100644 --- a/libraries/drivers/src/at32f403a_407_adc.c +++ b/libraries/drivers/src/at32f403a_407_adc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_adc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the adc firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_bpr.c b/libraries/drivers/src/at32f403a_407_bpr.c index 3c2b9679..8237e83a 100644 --- a/libraries/drivers/src/at32f403a_407_bpr.c +++ b/libraries/drivers/src/at32f403a_407_bpr.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_bpr.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the bpr firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_can.c b/libraries/drivers/src/at32f403a_407_can.c index 4217d044..3d14ae5f 100644 --- a/libraries/drivers/src/at32f403a_407_can.c +++ b/libraries/drivers/src/at32f403a_407_can.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_can.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the can firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_crc.c b/libraries/drivers/src/at32f403a_407_crc.c index 74fcee9a..29c55462 100644 --- a/libraries/drivers/src/at32f403a_407_crc.c +++ b/libraries/drivers/src/at32f403a_407_crc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_crc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the crc firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_crm.c b/libraries/drivers/src/at32f403a_407_crm.c index acdf8921..484002b9 100644 --- a/libraries/drivers/src/at32f403a_407_crm.c +++ b/libraries/drivers/src/at32f403a_407_crm.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_crm.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the crm firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_dac.c b/libraries/drivers/src/at32f403a_407_dac.c index 7ebf8e26..53563fbf 100644 --- a/libraries/drivers/src/at32f403a_407_dac.c +++ b/libraries/drivers/src/at32f403a_407_dac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_dac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the dac firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_debug.c b/libraries/drivers/src/at32f403a_407_debug.c index b89fa633..67abc68d 100644 --- a/libraries/drivers/src/at32f403a_407_debug.c +++ b/libraries/drivers/src/at32f403a_407_debug.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_debug.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the debug firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_dma.c b/libraries/drivers/src/at32f403a_407_dma.c index b0011889..dfff2e8c 100644 --- a/libraries/drivers/src/at32f403a_407_dma.c +++ b/libraries/drivers/src/at32f403a_407_dma.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_dma.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the dma firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_emac.c b/libraries/drivers/src/at32f403a_407_emac.c index a017c11f..40439ad8 100644 --- a/libraries/drivers/src/at32f403a_407_emac.c +++ b/libraries/drivers/src/at32f403a_407_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the emac firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_exint.c b/libraries/drivers/src/at32f403a_407_exint.c index b7534294..d1ec82b0 100644 --- a/libraries/drivers/src/at32f403a_407_exint.c +++ b/libraries/drivers/src/at32f403a_407_exint.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_exint.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the exint firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_flash.c b/libraries/drivers/src/at32f403a_407_flash.c index 0090d3cb..dc4e5c61 100644 --- a/libraries/drivers/src/at32f403a_407_flash.c +++ b/libraries/drivers/src/at32f403a_407_flash.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_flash.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the flash firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_gpio.c b/libraries/drivers/src/at32f403a_407_gpio.c index fcb2652e..b3c0f876 100644 --- a/libraries/drivers/src/at32f403a_407_gpio.c +++ b/libraries/drivers/src/at32f403a_407_gpio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_gpio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the gpio firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_i2c.c b/libraries/drivers/src/at32f403a_407_i2c.c index 7ab635a3..9999298b 100644 --- a/libraries/drivers/src/at32f403a_407_i2c.c +++ b/libraries/drivers/src/at32f403a_407_i2c.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_i2c.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the i2c firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_misc.c b/libraries/drivers/src/at32f403a_407_misc.c index d36541ce..31a84367 100644 --- a/libraries/drivers/src/at32f403a_407_misc.c +++ b/libraries/drivers/src/at32f403a_407_misc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_misc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the misc firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_pwc.c b/libraries/drivers/src/at32f403a_407_pwc.c index 84ca44d6..d8c24bc0 100644 --- a/libraries/drivers/src/at32f403a_407_pwc.c +++ b/libraries/drivers/src/at32f403a_407_pwc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_pwc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the pwc firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_rtc.c b/libraries/drivers/src/at32f403a_407_rtc.c index 3f5a08e9..5971b5b5 100644 --- a/libraries/drivers/src/at32f403a_407_rtc.c +++ b/libraries/drivers/src/at32f403a_407_rtc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_rtc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the rtc firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_sdio.c b/libraries/drivers/src/at32f403a_407_sdio.c index 7c779ed5..1c9f5976 100644 --- a/libraries/drivers/src/at32f403a_407_sdio.c +++ b/libraries/drivers/src/at32f403a_407_sdio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_sdio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the sdio firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_spi.c b/libraries/drivers/src/at32f403a_407_spi.c index 5163d0ef..ff087746 100644 --- a/libraries/drivers/src/at32f403a_407_spi.c +++ b/libraries/drivers/src/at32f403a_407_spi.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_spi.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the spi firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_tmr.c b/libraries/drivers/src/at32f403a_407_tmr.c index dbea7c40..d0abdd74 100644 --- a/libraries/drivers/src/at32f403a_407_tmr.c +++ b/libraries/drivers/src/at32f403a_407_tmr.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_tmr.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the tmr firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_usart.c b/libraries/drivers/src/at32f403a_407_usart.c index e658560b..3602d159 100644 --- a/libraries/drivers/src/at32f403a_407_usart.c +++ b/libraries/drivers/src/at32f403a_407_usart.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_usart.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the usart firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_usb.c b/libraries/drivers/src/at32f403a_407_usb.c index 336c7ac5..85e973bf 100644 --- a/libraries/drivers/src/at32f403a_407_usb.c +++ b/libraries/drivers/src/at32f403a_407_usb.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_usb.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains the functions for the usb firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_wdt.c b/libraries/drivers/src/at32f403a_407_wdt.c index 813234c8..89c04a2a 100644 --- a/libraries/drivers/src/at32f403a_407_wdt.c +++ b/libraries/drivers/src/at32f403a_407_wdt.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_wdt.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the wdt firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_wwdt.c b/libraries/drivers/src/at32f403a_407_wwdt.c index ba51707a..bcb9baf1 100644 --- a/libraries/drivers/src/at32f403a_407_wwdt.c +++ b/libraries/drivers/src/at32f403a_407_wwdt.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_wwdt.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the wwdt firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/libraries/drivers/src/at32f403a_407_xmc.c b/libraries/drivers/src/at32f403a_407_xmc.c index 1a6f7ec6..bbe802d3 100644 --- a/libraries/drivers/src/at32f403a_407_xmc.c +++ b/libraries/drivers/src/at32f403a_407_xmc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_xmc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief contains all the functions for the xmc firmware library ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/3rd_party/lwip_2.1.2/src/core/dns.c b/middlewares/3rd_party/lwip_2.1.2/src/core/dns.c index 11eca0d6..e9d7c49b 100644 --- a/middlewares/3rd_party/lwip_2.1.2/src/core/dns.c +++ b/middlewares/3rd_party/lwip_2.1.2/src/core/dns.c @@ -97,6 +97,10 @@ #include +#ifndef DNS_SERVER_ADDRESS +#define DNS_SERVER_ADDRESS(ipaddr) (ip4_addr_set_u32(ipaddr, ipaddr_addr("192.168.2.235"))) +#endif + /** Fix error, LwIP 2.1.2 need to define LWIP_RAND by users */ #if LWIP_DNS #define LWIP_RAND() ((u32_t)rand()) @@ -316,8 +320,7 @@ const ip_addr_t dns_mquery_v6group = DNS_MQUERY_IPV6_GROUP_INIT; * Initialize the resolver: set up the UDP pcb and configure the default server * (if DNS_SERVER_ADDRESS is set). */ -void -dns_init(void) +void dns_init(void) { #ifdef DNS_SERVER_ADDRESS /* initialize default DNS server address */ diff --git a/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/opt.h b/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/opt.h index 7926dd15..528f8e9c 100644 --- a/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/opt.h +++ b/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/opt.h @@ -1120,7 +1120,7 @@ /** DNS do a name checking between the query and the response. */ #if !defined DNS_DOES_NAME_CHECK || defined __DOXYGEN__ -#define DNS_DOES_NAME_CHECK 1 +#define DNS_DOES_NAME_CHECK 0 #endif /** LWIP_DNS_SECURE: controls the security level of the DNS implementation diff --git a/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/opt.h~RF13fab24.TMP b/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/opt.h~RF13fab24.TMP deleted file mode 100644 index bb6c33dd..00000000 --- a/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/opt.h~RF13fab24.TMP +++ /dev/null @@ -1,3519 +0,0 @@ -/** - * @file - * - * lwIP Options Configuration - */ - -/* - * Copyright (c) 2001-2004 Swedish Institute of Computer Science. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the lwIP TCP/IP stack. - * - * Author: Adam Dunkels - * - */ - -/* - * NOTE: || defined __DOXYGEN__ is a workaround for doxygen bug - - * without this, doxygen does not see the actual #define - */ - -#if !defined LWIP_HDR_OPT_H -#define LWIP_HDR_OPT_H - -/* - * Include user defined options first. Anything not defined in these files - * will be set to standard values. Override anything you don't like! - */ -#include "lwipopts.h" -#include "lwip/debug.h" - -/** - * @defgroup lwip_opts Options (lwipopts.h) - * @ingroup lwip - * - * @defgroup lwip_opts_debug Debugging - * @ingroup lwip_opts - * - * @defgroup lwip_opts_infrastructure Infrastructure - * @ingroup lwip_opts - * - * @defgroup lwip_opts_callback Callback-style APIs - * @ingroup lwip_opts - * - * @defgroup lwip_opts_threadsafe_apis Thread-safe APIs - * @ingroup lwip_opts - */ - - /* - ------------------------------------ - -------------- NO SYS -------------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_nosys NO_SYS - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * NO_SYS==1: Use lwIP without OS-awareness (no thread, semaphores, mutexes or - * mboxes). This means threaded APIs cannot be used (socket, netconn, - * i.e. everything in the 'api' folder), only the callback-style raw API is - * available (and you have to watch out for yourself that you don't access - * lwIP functions/structures from more than one context at a time!) - */ -#if !defined NO_SYS || defined __DOXYGEN__ -#define NO_SYS 0 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_timers Timers - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_TIMERS==0: Drop support for sys_timeout and lwip-internal cyclic timers. - * (the array of lwip-internal cyclic timers is still provided) - * (check NO_SYS_NO_TIMERS for compatibility to old versions) - */ -#if !defined LWIP_TIMERS || defined __DOXYGEN__ -#ifdef NO_SYS_NO_TIMERS -#define LWIP_TIMERS (!NO_SYS || (NO_SYS && !NO_SYS_NO_TIMERS)) -#else -#define LWIP_TIMERS 1 -#endif -#endif - -/** - * LWIP_TIMERS_CUSTOM==1: Provide your own timer implementation. - * Function prototypes in timeouts.h and the array of lwip-internal cyclic timers - * are still included, but the implementation is not. The following functions - * will be required: sys_timeouts_init(), sys_timeout(), sys_untimeout(), - * sys_timeouts_mbox_fetch() - */ -#if !defined LWIP_TIMERS_CUSTOM || defined __DOXYGEN__ -#define LWIP_TIMERS_CUSTOM 0 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_memcpy memcpy - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * MEMCPY: override this if you have a faster implementation at hand than the - * one included in your C library - */ -#if !defined MEMCPY || defined __DOXYGEN__ -#define MEMCPY(dst,src,len) memcpy(dst,src,len) -#endif - -/** - * SMEMCPY: override this with care! Some compilers (e.g. gcc) can inline a - * call to memcpy() if the length is known at compile time and is small. - */ -#if !defined SMEMCPY || defined __DOXYGEN__ -#define SMEMCPY(dst,src,len) memcpy(dst,src,len) -#endif - -/** - * MEMMOVE: override this if you have a faster implementation at hand than the - * one included in your C library. lwIP currently uses MEMMOVE only when IPv6 - * fragmentation support is enabled. - */ -#if !defined MEMMOVE || defined __DOXYGEN__ -#define MEMMOVE(dst,src,len) memmove(dst,src,len) -#endif -/** - * @} - */ - -/* - ------------------------------------ - ----------- Core locking ----------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_lock Core locking and MPU - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_MPU_COMPATIBLE: enables special memory management mechanism - * which makes lwip able to work on MPU (Memory Protection Unit) system - * by not passing stack-pointers to other threads - * (this decreases performance as memory is allocated from pools instead - * of keeping it on the stack) - */ -#if !defined LWIP_MPU_COMPATIBLE || defined __DOXYGEN__ -#define LWIP_MPU_COMPATIBLE 0 -#endif - -/** - * LWIP_TCPIP_CORE_LOCKING - * Creates a global mutex that is held during TCPIP thread operations. - * Can be locked by client code to perform lwIP operations without changing - * into TCPIP thread using callbacks. See LOCK_TCPIP_CORE() and - * UNLOCK_TCPIP_CORE(). - * Your system should provide mutexes supporting priority inversion to use this. - */ -#if !defined LWIP_TCPIP_CORE_LOCKING || defined __DOXYGEN__ -#define LWIP_TCPIP_CORE_LOCKING 1 -#endif - -/** - * LWIP_TCPIP_CORE_LOCKING_INPUT: when LWIP_TCPIP_CORE_LOCKING is enabled, - * this lets tcpip_input() grab the mutex for input packets as well, - * instead of allocating a message and passing it to tcpip_thread. - * - * ATTENTION: this does not work when tcpip_input() is called from - * interrupt context! - */ -#if !defined LWIP_TCPIP_CORE_LOCKING_INPUT || defined __DOXYGEN__ -#define LWIP_TCPIP_CORE_LOCKING_INPUT 0 -#endif - -/** - * SYS_LIGHTWEIGHT_PROT==1: enable inter-task protection (and task-vs-interrupt - * protection) for certain critical regions during buffer allocation, deallocation - * and memory allocation and deallocation. - * ATTENTION: This is required when using lwIP from more than one context! If - * you disable this, you must be sure what you are doing! - */ -#if !defined SYS_LIGHTWEIGHT_PROT || defined __DOXYGEN__ -#define SYS_LIGHTWEIGHT_PROT 1 -#endif - -/** - * Macro/function to check whether lwIP's threading/locking - * requirements are satisfied during current function call. - * This macro usually calls a function that is implemented in the OS-dependent - * sys layer and performs the following checks: - * - Not in ISR (this should be checked for NO_SYS==1, too!) - * - If @ref LWIP_TCPIP_CORE_LOCKING = 1: TCPIP core lock is held - * - If @ref LWIP_TCPIP_CORE_LOCKING = 0: function is called from TCPIP thread - * @see @ref multithreading - */ -#if !defined LWIP_ASSERT_CORE_LOCKED || defined __DOXYGEN__ -#define LWIP_ASSERT_CORE_LOCKED() -#endif - -/** - * Called as first thing in the lwIP TCPIP thread. Can be used in conjunction - * with @ref LWIP_ASSERT_CORE_LOCKED to check core locking. - * @see @ref multithreading - */ -#if !defined LWIP_MARK_TCPIP_THREAD || defined __DOXYGEN__ -#define LWIP_MARK_TCPIP_THREAD() -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- Memory options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_mem Heap and memory pools - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * MEM_LIBC_MALLOC==1: Use malloc/free/realloc provided by your C-library - * instead of the lwip internal allocator. Can save code size if you - * already use it. - */ -#if !defined MEM_LIBC_MALLOC || defined __DOXYGEN__ -#define MEM_LIBC_MALLOC 0 -#endif - -/** - * MEMP_MEM_MALLOC==1: Use mem_malloc/mem_free instead of the lwip pool allocator. - * Especially useful with MEM_LIBC_MALLOC but handle with care regarding execution - * speed (heap alloc can be much slower than pool alloc) and usage from interrupts - * (especially if your netif driver allocates PBUF_POOL pbufs for received frames - * from interrupt)! - * ATTENTION: Currently, this uses the heap for ALL pools (also for private pools, - * not only for internal pools defined in memp_std.h)! - */ -#if !defined MEMP_MEM_MALLOC || defined __DOXYGEN__ -#define MEMP_MEM_MALLOC 0 -#endif - -/** - * MEMP_MEM_INIT==1: Force use of memset to initialize pool memory. - * Useful if pool are moved in uninitialized section of memory. This will ensure - * default values in pcbs struct are well initialized in all conditions. - */ -#if !defined MEMP_MEM_INIT || defined __DOXYGEN__ -#define MEMP_MEM_INIT 0 -#endif - -/** - * MEM_ALIGNMENT: should be set to the alignment of the CPU - * 4 byte alignment -> \#define MEM_ALIGNMENT 4 - * 2 byte alignment -> \#define MEM_ALIGNMENT 2 - */ -#if !defined MEM_ALIGNMENT || defined __DOXYGEN__ -#define MEM_ALIGNMENT 1 -#endif - -/** - * MEM_SIZE: the size of the heap memory. If the application will send - * a lot of data that needs to be copied, this should be set high. - */ -#if !defined MEM_SIZE || defined __DOXYGEN__ -#define MEM_SIZE 1600 -#endif - -/** - * MEMP_OVERFLOW_CHECK: memp overflow protection reserves a configurable - * amount of bytes before and after each memp element in every pool and fills - * it with a prominent default value. - * MEMP_OVERFLOW_CHECK == 0 no checking - * MEMP_OVERFLOW_CHECK == 1 checks each element when it is freed - * MEMP_OVERFLOW_CHECK >= 2 checks each element in every pool every time - * memp_malloc() or memp_free() is called (useful but slow!) - */ -#if !defined MEMP_OVERFLOW_CHECK || defined __DOXYGEN__ -#define MEMP_OVERFLOW_CHECK 0 -#endif - -/** - * MEMP_SANITY_CHECK==1: run a sanity check after each memp_free() to make - * sure that there are no cycles in the linked lists. - */ -#if !defined MEMP_SANITY_CHECK || defined __DOXYGEN__ -#define MEMP_SANITY_CHECK 0 -#endif - -/** - * MEM_OVERFLOW_CHECK: mem overflow protection reserves a configurable - * amount of bytes before and after each heap allocation chunk and fills - * it with a prominent default value. - * MEM_OVERFLOW_CHECK == 0 no checking - * MEM_OVERFLOW_CHECK == 1 checks each element when it is freed - * MEM_OVERFLOW_CHECK >= 2 checks all heap elements every time - * mem_malloc() or mem_free() is called (useful but slow!) - */ -#if !defined MEM_OVERFLOW_CHECK || defined __DOXYGEN__ -#define MEM_OVERFLOW_CHECK 0 -#endif - -/** - * MEM_SANITY_CHECK==1: run a sanity check after each mem_free() to make - * sure that the linked list of heap elements is not corrupted. - */ -#if !defined MEM_SANITY_CHECK || defined __DOXYGEN__ -#define MEM_SANITY_CHECK 0 -#endif - -/** - * MEM_USE_POOLS==1: Use an alternative to malloc() by allocating from a set - * of memory pools of various sizes. When mem_malloc is called, an element of - * the smallest pool that can provide the length needed is returned. - * To use this, MEMP_USE_CUSTOM_POOLS also has to be enabled. - */ -#if !defined MEM_USE_POOLS || defined __DOXYGEN__ -#define MEM_USE_POOLS 0 -#endif - -/** - * MEM_USE_POOLS_TRY_BIGGER_POOL==1: if one malloc-pool is empty, try the next - * bigger pool - WARNING: THIS MIGHT WASTE MEMORY but it can make a system more - * reliable. */ -#if !defined MEM_USE_POOLS_TRY_BIGGER_POOL || defined __DOXYGEN__ -#define MEM_USE_POOLS_TRY_BIGGER_POOL 0 -#endif - -/** - * MEMP_USE_CUSTOM_POOLS==1: whether to include a user file lwippools.h - * that defines additional pools beyond the "standard" ones required - * by lwIP. If you set this to 1, you must have lwippools.h in your - * include path somewhere. - */ -#if !defined MEMP_USE_CUSTOM_POOLS || defined __DOXYGEN__ -#define MEMP_USE_CUSTOM_POOLS 0 -#endif - -/** - * Set this to 1 if you want to free PBUF_RAM pbufs (or call mem_free()) from - * interrupt context (or another context that doesn't allow waiting for a - * semaphore). - * If set to 1, mem_malloc will be protected by a semaphore and SYS_ARCH_PROTECT, - * while mem_free will only use SYS_ARCH_PROTECT. mem_malloc SYS_ARCH_UNPROTECTs - * with each loop so that mem_free can run. - * - * ATTENTION: As you can see from the above description, this leads to dis-/ - * enabling interrupts often, which can be slow! Also, on low memory, mem_malloc - * can need longer. - * - * If you don't want that, at least for NO_SYS=0, you can still use the following - * functions to enqueue a deallocation call which then runs in the tcpip_thread - * context: - * - pbuf_free_callback(p); - * - mem_free_callback(m); - */ -#if !defined LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT || defined __DOXYGEN__ -#define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 0 -#endif -/** - * @} - */ - -/* - ------------------------------------------------ - ---------- Internal Memory Pool Sizes ---------- - ------------------------------------------------ -*/ -/** - * @defgroup lwip_opts_memp Internal memory pools - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * MEMP_NUM_PBUF: the number of memp struct pbufs (used for PBUF_ROM and PBUF_REF). - * If the application sends a lot of data out of ROM (or other static memory), - * this should be set high. - */ -#if !defined MEMP_NUM_PBUF || defined __DOXYGEN__ -#define MEMP_NUM_PBUF 16 -#endif - -/** - * MEMP_NUM_RAW_PCB: Number of raw connection PCBs - * (requires the LWIP_RAW option) - */ -#if !defined MEMP_NUM_RAW_PCB || defined __DOXYGEN__ -#define MEMP_NUM_RAW_PCB 4 -#endif - -/** - * MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One - * per active UDP "connection". - * (requires the LWIP_UDP option) - */ -#if !defined MEMP_NUM_UDP_PCB || defined __DOXYGEN__ -#define MEMP_NUM_UDP_PCB 4 -#endif - -/** - * MEMP_NUM_TCP_PCB: the number of simultaneously active TCP connections. - * (requires the LWIP_TCP option) - */ -#if !defined MEMP_NUM_TCP_PCB || defined __DOXYGEN__ -#define MEMP_NUM_TCP_PCB 5 -#endif - -/** - * MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections. - * (requires the LWIP_TCP option) - */ -#if !defined MEMP_NUM_TCP_PCB_LISTEN || defined __DOXYGEN__ -#define MEMP_NUM_TCP_PCB_LISTEN 8 -#endif - -/** - * MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments. - * (requires the LWIP_TCP option) - */ -#if !defined MEMP_NUM_TCP_SEG || defined __DOXYGEN__ -#define MEMP_NUM_TCP_SEG 16 -#endif - -/** - * MEMP_NUM_ALTCP_PCB: the number of simultaneously active altcp layer pcbs. - * (requires the LWIP_ALTCP option) - * Connections with multiple layers require more than one altcp_pcb (e.g. TLS - * over TCP requires 2 altcp_pcbs, one for TLS and one for TCP). - */ -#if !defined MEMP_NUM_ALTCP_PCB || defined __DOXYGEN__ -#define MEMP_NUM_ALTCP_PCB MEMP_NUM_TCP_PCB -#endif - -/** - * MEMP_NUM_REASSDATA: the number of IP packets simultaneously queued for - * reassembly (whole packets, not fragments!) - */ -#if !defined MEMP_NUM_REASSDATA || defined __DOXYGEN__ -#define MEMP_NUM_REASSDATA 5 -#endif - -/** - * MEMP_NUM_FRAG_PBUF: the number of IP fragments simultaneously sent - * (fragments, not whole packets!). - * This is only used with LWIP_NETIF_TX_SINGLE_PBUF==0 and only has to be > 1 - * with DMA-enabled MACs where the packet is not yet sent when netif->output - * returns. - */ -#if !defined MEMP_NUM_FRAG_PBUF || defined __DOXYGEN__ -#define MEMP_NUM_FRAG_PBUF 15 -#endif - -/** - * MEMP_NUM_ARP_QUEUE: the number of simultaneously queued outgoing - * packets (pbufs) that are waiting for an ARP request (to resolve - * their destination address) to finish. - * (requires the ARP_QUEUEING option) - */ -#if !defined MEMP_NUM_ARP_QUEUE || defined __DOXYGEN__ -#define MEMP_NUM_ARP_QUEUE 30 -#endif - -/** - * MEMP_NUM_IGMP_GROUP: The number of multicast groups whose network interfaces - * can be members at the same time (one per netif - allsystems group -, plus one - * per netif membership). - * (requires the LWIP_IGMP option) - */ -#if !defined MEMP_NUM_IGMP_GROUP || defined __DOXYGEN__ -#define MEMP_NUM_IGMP_GROUP 8 -#endif - -/** - * The number of sys timeouts used by the core stack (not apps) - * The default number of timeouts is calculated here for all enabled modules. - */ -#define LWIP_NUM_SYS_TIMEOUT_INTERNAL (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_NUM_TIMEOUTS + (LWIP_IPV6 * (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD))) - -/** - * MEMP_NUM_SYS_TIMEOUT: the number of simultaneously active timeouts. - * The default number of timeouts is calculated here for all enabled modules. - * The formula expects settings to be either '0' or '1'. - */ -#if !defined MEMP_NUM_SYS_TIMEOUT || defined __DOXYGEN__ -#define MEMP_NUM_SYS_TIMEOUT LWIP_NUM_SYS_TIMEOUT_INTERNAL -#endif - -/** - * MEMP_NUM_NETBUF: the number of struct netbufs. - * (only needed if you use the sequential API, like api_lib.c) - */ -#if !defined MEMP_NUM_NETBUF || defined __DOXYGEN__ -#define MEMP_NUM_NETBUF 2 -#endif - -/** - * MEMP_NUM_NETCONN: the number of struct netconns. - * (only needed if you use the sequential API, like api_lib.c) - */ -#if !defined MEMP_NUM_NETCONN || defined __DOXYGEN__ -#define MEMP_NUM_NETCONN 4 -#endif - -/** - * MEMP_NUM_SELECT_CB: the number of struct lwip_select_cb. - * (Only needed if you have LWIP_MPU_COMPATIBLE==1 and use the socket API. - * In that case, you need one per thread calling lwip_select.) - */ -#if !defined MEMP_NUM_SELECT_CB || defined __DOXYGEN__ -#define MEMP_NUM_SELECT_CB 4 -#endif - -/** - * MEMP_NUM_TCPIP_MSG_API: the number of struct tcpip_msg, which are used - * for callback/timeout API communication. - * (only needed if you use tcpip.c) - */ -#if !defined MEMP_NUM_TCPIP_MSG_API || defined __DOXYGEN__ -#define MEMP_NUM_TCPIP_MSG_API 8 -#endif - -/** - * MEMP_NUM_TCPIP_MSG_INPKT: the number of struct tcpip_msg, which are used - * for incoming packets. - * (only needed if you use tcpip.c) - */ -#if !defined MEMP_NUM_TCPIP_MSG_INPKT || defined __DOXYGEN__ -#define MEMP_NUM_TCPIP_MSG_INPKT 8 -#endif - -/** - * MEMP_NUM_NETDB: the number of concurrently running lwip_addrinfo() calls - * (before freeing the corresponding memory using lwip_freeaddrinfo()). - */ -#if !defined MEMP_NUM_NETDB || defined __DOXYGEN__ -#define MEMP_NUM_NETDB 1 -#endif - -/** - * MEMP_NUM_LOCALHOSTLIST: the number of host entries in the local host list - * if DNS_LOCAL_HOSTLIST_IS_DYNAMIC==1. - */ -#if !defined MEMP_NUM_LOCALHOSTLIST || defined __DOXYGEN__ -#define MEMP_NUM_LOCALHOSTLIST 1 -#endif - -/** - * PBUF_POOL_SIZE: the number of buffers in the pbuf pool. - */ -#if !defined PBUF_POOL_SIZE || defined __DOXYGEN__ -#define PBUF_POOL_SIZE 16 -#endif - -/** MEMP_NUM_API_MSG: the number of concurrently active calls to various - * socket, netconn, and tcpip functions - */ -#if !defined MEMP_NUM_API_MSG || defined __DOXYGEN__ -#define MEMP_NUM_API_MSG MEMP_NUM_TCPIP_MSG_API -#endif - -/** MEMP_NUM_DNS_API_MSG: the number of concurrently active calls to netconn_gethostbyname - */ -#if !defined MEMP_NUM_DNS_API_MSG || defined __DOXYGEN__ -#define MEMP_NUM_DNS_API_MSG MEMP_NUM_TCPIP_MSG_API -#endif - -/** MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA: the number of concurrently active calls - * to getsockopt/setsockopt - */ -#if !defined MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA || defined __DOXYGEN__ -#define MEMP_NUM_SOCKET_SETGETSOCKOPT_DATA MEMP_NUM_TCPIP_MSG_API -#endif - -/** MEMP_NUM_NETIFAPI_MSG: the number of concurrently active calls to the - * netifapi functions - */ -#if !defined MEMP_NUM_NETIFAPI_MSG || defined __DOXYGEN__ -#define MEMP_NUM_NETIFAPI_MSG MEMP_NUM_TCPIP_MSG_API -#endif -/** - * @} - */ - -/* - --------------------------------- - ---------- ARP options ---------- - --------------------------------- -*/ -/** - * @defgroup lwip_opts_arp ARP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_ARP==1: Enable ARP functionality. - */ -#if !defined LWIP_ARP || defined __DOXYGEN__ -#define LWIP_ARP 1 -#endif - -/** - * ARP_TABLE_SIZE: Number of active MAC-IP address pairs cached. - */ -#if !defined ARP_TABLE_SIZE || defined __DOXYGEN__ -#define ARP_TABLE_SIZE 10 -#endif - -/** the time an ARP entry stays valid after its last update, - * for ARP_TMR_INTERVAL = 1000, this is - * (60 * 5) seconds = 5 minutes. - */ -#if !defined ARP_MAXAGE || defined __DOXYGEN__ -#define ARP_MAXAGE 300 -#endif - -/** - * ARP_QUEUEING==1: Multiple outgoing packets are queued during hardware address - * resolution. By default, only the most recent packet is queued per IP address. - * This is sufficient for most protocols and mainly reduces TCP connection - * startup time. Set this to 1 if you know your application sends more than one - * packet in a row to an IP address that is not in the ARP cache. - */ -#if !defined ARP_QUEUEING || defined __DOXYGEN__ -#define ARP_QUEUEING 0 -#endif - -/** The maximum number of packets which may be queued for each - * unresolved address by other network layers. Defaults to 3, 0 means disabled. - * Old packets are dropped, new packets are queued. - */ -#if !defined ARP_QUEUE_LEN || defined __DOXYGEN__ -#define ARP_QUEUE_LEN 3 -#endif - -/** - * ETHARP_SUPPORT_VLAN==1: support receiving and sending ethernet packets with - * VLAN header. See the description of LWIP_HOOK_VLAN_CHECK and - * LWIP_HOOK_VLAN_SET hooks to check/set VLAN headers. - * Additionally, you can define ETHARP_VLAN_CHECK to an u16_t VLAN ID to check. - * If ETHARP_VLAN_CHECK is defined, only VLAN-traffic for this VLAN is accepted. - * If ETHARP_VLAN_CHECK is not defined, all traffic is accepted. - * Alternatively, define a function/define ETHARP_VLAN_CHECK_FN(eth_hdr, vlan) - * that returns 1 to accept a packet or 0 to drop a packet. - */ -#if !defined ETHARP_SUPPORT_VLAN || defined __DOXYGEN__ -#define ETHARP_SUPPORT_VLAN 0 -#endif - -/** LWIP_ETHERNET==1: enable ethernet support even though ARP might be disabled - */ -#if !defined LWIP_ETHERNET || defined __DOXYGEN__ -#define LWIP_ETHERNET LWIP_ARP -#endif - -/** ETH_PAD_SIZE: number of bytes added before the ethernet header to ensure - * alignment of payload after that header. Since the header is 14 bytes long, - * without this padding e.g. addresses in the IP header will not be aligned - * on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms. - */ -#if !defined ETH_PAD_SIZE || defined __DOXYGEN__ -#define ETH_PAD_SIZE 0 -#endif - -/** ETHARP_SUPPORT_STATIC_ENTRIES==1: enable code to support static ARP table - * entries (using etharp_add_static_entry/etharp_remove_static_entry). - */ -#if !defined ETHARP_SUPPORT_STATIC_ENTRIES || defined __DOXYGEN__ -#define ETHARP_SUPPORT_STATIC_ENTRIES 0 -#endif - -/** ETHARP_TABLE_MATCH_NETIF==1: Match netif for ARP table entries. - * If disabled, duplicate IP address on multiple netifs are not supported - * (but this should only occur for AutoIP). - */ -#if !defined ETHARP_TABLE_MATCH_NETIF || defined __DOXYGEN__ -#define ETHARP_TABLE_MATCH_NETIF !LWIP_SINGLE_NETIF -#endif -/** - * @} - */ - -/* - -------------------------------- - ---------- IP options ---------- - -------------------------------- -*/ -/** - * @defgroup lwip_opts_ipv4 IPv4 - * @ingroup lwip_opts - * @{ - */ -/** - * LWIP_IPV4==1: Enable IPv4 - */ -#if !defined LWIP_IPV4 || defined __DOXYGEN__ -#define LWIP_IPV4 1 -#endif - -/** - * IP_FORWARD==1: Enables the ability to forward IP packets across network - * interfaces. If you are going to run lwIP on a device with only one network - * interface, define this to 0. - */ -#if !defined IP_FORWARD || defined __DOXYGEN__ -#define IP_FORWARD 0 -#endif - -/** - * IP_REASSEMBLY==1: Reassemble incoming fragmented IP packets. Note that - * this option does not affect outgoing packet sizes, which can be controlled - * via IP_FRAG. - */ -#if !defined IP_REASSEMBLY || defined __DOXYGEN__ -#define IP_REASSEMBLY 1 -#endif - -/** - * IP_FRAG==1: Fragment outgoing IP packets if their size exceeds MTU. Note - * that this option does not affect incoming packet sizes, which can be - * controlled via IP_REASSEMBLY. - */ -#if !defined IP_FRAG || defined __DOXYGEN__ -#define IP_FRAG 1 -#endif - -#if !LWIP_IPV4 -/* disable IPv4 extensions when IPv4 is disabled */ -#undef IP_FORWARD -#define IP_FORWARD 0 -#undef IP_REASSEMBLY -#define IP_REASSEMBLY 0 -#undef IP_FRAG -#define IP_FRAG 0 -#endif /* !LWIP_IPV4 */ - -/** - * IP_OPTIONS_ALLOWED: Defines the behavior for IP options. - * IP_OPTIONS_ALLOWED==0: All packets with IP options are dropped. - * IP_OPTIONS_ALLOWED==1: IP options are allowed (but not parsed). - */ -#if !defined IP_OPTIONS_ALLOWED || defined __DOXYGEN__ -#define IP_OPTIONS_ALLOWED 1 -#endif - -/** - * IP_REASS_MAXAGE: Maximum time (in multiples of IP_TMR_INTERVAL - so seconds, normally) - * a fragmented IP packet waits for all fragments to arrive. If not all fragments arrived - * in this time, the whole packet is discarded. - */ -#if !defined IP_REASS_MAXAGE || defined __DOXYGEN__ -#define IP_REASS_MAXAGE 15 -#endif - -/** - * IP_REASS_MAX_PBUFS: Total maximum amount of pbufs waiting to be reassembled. - * Since the received pbufs are enqueued, be sure to configure - * PBUF_POOL_SIZE > IP_REASS_MAX_PBUFS so that the stack is still able to receive - * packets even if the maximum amount of fragments is enqueued for reassembly! - * When IPv4 *and* IPv6 are enabled, this even changes to - * (PBUF_POOL_SIZE > 2 * IP_REASS_MAX_PBUFS)! - */ -#if !defined IP_REASS_MAX_PBUFS || defined __DOXYGEN__ -#define IP_REASS_MAX_PBUFS 10 -#endif - -/** - * IP_DEFAULT_TTL: Default value for Time-To-Live used by transport layers. - */ -#if !defined IP_DEFAULT_TTL || defined __DOXYGEN__ -#define IP_DEFAULT_TTL 255 -#endif - -/** - * IP_SOF_BROADCAST=1: Use the SOF_BROADCAST field to enable broadcast - * filter per pcb on udp and raw send operations. To enable broadcast filter - * on recv operations, you also have to set IP_SOF_BROADCAST_RECV=1. - */ -#if !defined IP_SOF_BROADCAST || defined __DOXYGEN__ -#define IP_SOF_BROADCAST 0 -#endif - -/** - * IP_SOF_BROADCAST_RECV (requires IP_SOF_BROADCAST=1) enable the broadcast - * filter on recv operations. - */ -#if !defined IP_SOF_BROADCAST_RECV || defined __DOXYGEN__ -#define IP_SOF_BROADCAST_RECV 0 -#endif - -/** - * IP_FORWARD_ALLOW_TX_ON_RX_NETIF==1: allow ip_forward() to send packets back - * out on the netif where it was received. This should only be used for - * wireless networks. - * ATTENTION: When this is 1, make sure your netif driver correctly marks incoming - * link-layer-broadcast/multicast packets as such using the corresponding pbuf flags! - */ -#if !defined IP_FORWARD_ALLOW_TX_ON_RX_NETIF || defined __DOXYGEN__ -#define IP_FORWARD_ALLOW_TX_ON_RX_NETIF 0 -#endif -/** - * @} - */ - -/* - ---------------------------------- - ---------- ICMP options ---------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_icmp ICMP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_ICMP==1: Enable ICMP module inside the IP stack. - * Be careful, disable that make your product non-compliant to RFC1122 - */ -#if !defined LWIP_ICMP || defined __DOXYGEN__ -#define LWIP_ICMP 1 -#endif - -/** - * ICMP_TTL: Default value for Time-To-Live used by ICMP packets. - */ -#if !defined ICMP_TTL || defined __DOXYGEN__ -#define ICMP_TTL IP_DEFAULT_TTL -#endif - -/** - * LWIP_BROADCAST_PING==1: respond to broadcast pings (default is unicast only) - */ -#if !defined LWIP_BROADCAST_PING || defined __DOXYGEN__ -#define LWIP_BROADCAST_PING 0 -#endif - -/** - * LWIP_MULTICAST_PING==1: respond to multicast pings (default is unicast only) - */ -#if !defined LWIP_MULTICAST_PING || defined __DOXYGEN__ -#define LWIP_MULTICAST_PING 0 -#endif -/** - * @} - */ - -/* - --------------------------------- - ---------- RAW options ---------- - --------------------------------- -*/ -/** - * @defgroup lwip_opts_raw RAW - * @ingroup lwip_opts_callback - * @{ - */ -/** - * LWIP_RAW==1: Enable application layer to hook into the IP layer itself. - */ -#if !defined LWIP_RAW || defined __DOXYGEN__ -#define LWIP_RAW 0 -#endif - -/** - * LWIP_RAW==1: Enable application layer to hook into the IP layer itself. - */ -#if !defined RAW_TTL || defined __DOXYGEN__ -#define RAW_TTL IP_DEFAULT_TTL -#endif -/** - * @} - */ - -/* - ---------------------------------- - ---------- DHCP options ---------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_dhcp DHCP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_DHCP==1: Enable DHCP module. - */ -#if !defined LWIP_DHCP || defined __DOXYGEN__ -#define LWIP_DHCP 0 -#endif -#if !LWIP_IPV4 -/* disable DHCP when IPv4 is disabled */ -#undef LWIP_DHCP -#define LWIP_DHCP 0 -#endif /* !LWIP_IPV4 */ - -/** - * DHCP_DOES_ARP_CHECK==1: Do an ARP check on the offered address. - */ -#if !defined DHCP_DOES_ARP_CHECK || defined __DOXYGEN__ -#define DHCP_DOES_ARP_CHECK (LWIP_DHCP && LWIP_ARP) -#endif - -/** - * LWIP_DHCP_BOOTP_FILE==1: Store offered_si_addr and boot_file_name. - */ -#if !defined LWIP_DHCP_BOOTP_FILE || defined __DOXYGEN__ -#define LWIP_DHCP_BOOTP_FILE 0 -#endif - -/** - * LWIP_DHCP_GETS_NTP==1: Request NTP servers with discover/select. For each - * response packet, an callback is called, which has to be provided by the port: - * void dhcp_set_ntp_servers(u8_t num_ntp_servers, ip_addr_t* ntp_server_addrs); -*/ -#if !defined LWIP_DHCP_GET_NTP_SRV || defined __DOXYGEN__ -#define LWIP_DHCP_GET_NTP_SRV 0 -#endif - -/** - * The maximum of NTP servers requested - */ -#if !defined LWIP_DHCP_MAX_NTP_SERVERS || defined __DOXYGEN__ -#define LWIP_DHCP_MAX_NTP_SERVERS 1 -#endif - -/** - * LWIP_DHCP_MAX_DNS_SERVERS > 0: Request DNS servers with discover/select. - * DNS servers received in the response are passed to DNS via @ref dns_setserver() - * (up to the maximum limit defined here). - */ -#if !defined LWIP_DHCP_MAX_DNS_SERVERS || defined __DOXYGEN__ -#define LWIP_DHCP_MAX_DNS_SERVERS DNS_MAX_SERVERS -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- AUTOIP options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_autoip AUTOIP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_AUTOIP==1: Enable AUTOIP module. - */ -#if !defined LWIP_AUTOIP || defined __DOXYGEN__ -#define LWIP_AUTOIP 0 -#endif -#if !LWIP_IPV4 -/* disable AUTOIP when IPv4 is disabled */ -#undef LWIP_AUTOIP -#define LWIP_AUTOIP 0 -#endif /* !LWIP_IPV4 */ - -/** - * LWIP_DHCP_AUTOIP_COOP==1: Allow DHCP and AUTOIP to be both enabled on - * the same interface at the same time. - */ -#if !defined LWIP_DHCP_AUTOIP_COOP || defined __DOXYGEN__ -#define LWIP_DHCP_AUTOIP_COOP 0 -#endif - -/** - * LWIP_DHCP_AUTOIP_COOP_TRIES: Set to the number of DHCP DISCOVER probes - * that should be sent before falling back on AUTOIP (the DHCP client keeps - * running in this case). This can be set as low as 1 to get an AutoIP address - * very quickly, but you should be prepared to handle a changing IP address - * when DHCP overrides AutoIP. - */ -#if !defined LWIP_DHCP_AUTOIP_COOP_TRIES || defined __DOXYGEN__ -#define LWIP_DHCP_AUTOIP_COOP_TRIES 9 -#endif -/** - * @} - */ - -/* - ---------------------------------- - ----- SNMP MIB2 support ----- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_mib2 SNMP MIB2 callbacks - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_MIB2_CALLBACKS==1: Turn on SNMP MIB2 callbacks. - * Turn this on to get callbacks needed to implement MIB2. - * Usually MIB2_STATS should be enabled, too. - */ -#if !defined LWIP_MIB2_CALLBACKS || defined __DOXYGEN__ -#define LWIP_MIB2_CALLBACKS 0 -#endif -/** - * @} - */ - -/* - ---------------------------------- - -------- Multicast options ------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_multicast Multicast - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_MULTICAST_TX_OPTIONS==1: Enable multicast TX support like the socket options - * IP_MULTICAST_TTL/IP_MULTICAST_IF/IP_MULTICAST_LOOP, as well as (currently only) - * core support for the corresponding IPv6 options. - */ -#if !defined LWIP_MULTICAST_TX_OPTIONS || defined __DOXYGEN__ -#define LWIP_MULTICAST_TX_OPTIONS ((LWIP_IGMP || LWIP_IPV6_MLD) && (LWIP_UDP || LWIP_RAW)) -#endif -/** - * @} - */ - -/* - ---------------------------------- - ---------- IGMP options ---------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_igmp IGMP - * @ingroup lwip_opts_ipv4 - * @{ - */ -/** - * LWIP_IGMP==1: Turn on IGMP module. - */ -#if !defined LWIP_IGMP || defined __DOXYGEN__ -#define LWIP_IGMP 0 -#endif -#if !LWIP_IPV4 -#undef LWIP_IGMP -#define LWIP_IGMP 0 -#endif -/** - * @} - */ - -/* - ---------------------------------- - ---------- DNS options ----------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_dns DNS - * @ingroup lwip_opts_callback - * @{ - */ -/** - * LWIP_DNS==1: Turn on DNS module. UDP must be available for DNS - * transport. - */ -#if !defined LWIP_DNS || defined __DOXYGEN__ -#define LWIP_DNS 0 -#endif - -/** DNS maximum number of entries to maintain locally. */ -#if !defined DNS_TABLE_SIZE || defined __DOXYGEN__ -#define DNS_TABLE_SIZE 4 -#endif - -/** DNS maximum host name length supported in the name table. */ -#if !defined DNS_MAX_NAME_LENGTH || defined __DOXYGEN__ -#define DNS_MAX_NAME_LENGTH 256 -#endif - -/** The maximum of DNS servers - * The first server can be initialized automatically by defining - * DNS_SERVER_ADDRESS(ipaddr), where 'ipaddr' is an 'ip_addr_t*' - */ -#if !defined DNS_MAX_SERVERS || defined __DOXYGEN__ -#define DNS_MAX_SERVERS 2 -#endif - -/** DNS maximum number of retries when asking for a name, before "timeout". */ -#if !defined DNS_MAX_RETRIES || defined __DOXYGEN__ -#define DNS_MAX_RETRIES 4 -#endif - -/** DNS do a name checking between the query and the response. */ -#if !defined DNS_DOES_NAME_CHECK || defined __DOXYGEN__ -#define DNS_DOES_NAME_CHECK 1 -#endif - -/** LWIP_DNS_SECURE: controls the security level of the DNS implementation - * Use all DNS security features by default. - * This is overridable but should only be needed by very small targets - * or when using against non standard DNS servers. */ -#if !defined LWIP_DNS_SECURE || defined __DOXYGEN__ -#define LWIP_DNS_SECURE (LWIP_DNS_SECURE_RAND_XID | LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING | LWIP_DNS_SECURE_RAND_SRC_PORT) -#endif - -/* A list of DNS security features follows */ -#define LWIP_DNS_SECURE_RAND_XID 1 -#define LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING 2 -#define LWIP_DNS_SECURE_RAND_SRC_PORT 4 - -/** DNS_LOCAL_HOSTLIST: Implements a local host-to-address list. If enabled, you have to define an initializer: - * \#define DNS_LOCAL_HOSTLIST_INIT {DNS_LOCAL_HOSTLIST_ELEM("host_ip4", IPADDR4_INIT_BYTES(1,2,3,4)), \ - * DNS_LOCAL_HOSTLIST_ELEM("host_ip6", IPADDR6_INIT_HOST(123, 234, 345, 456)} - * - * Instead, you can also use an external function: - * \#define DNS_LOOKUP_LOCAL_EXTERN(x) extern err_t my_lookup_function(const char *name, ip_addr_t *addr, u8_t dns_addrtype) - * that looks up the IP address and returns ERR_OK if found (LWIP_DNS_ADDRTYPE_xxx is passed in dns_addrtype). - */ -#if !defined DNS_LOCAL_HOSTLIST || defined __DOXYGEN__ -#define DNS_LOCAL_HOSTLIST 0 -#endif /* DNS_LOCAL_HOSTLIST */ - -/** If this is turned on, the local host-list can be dynamically changed - * at runtime. */ -#if !defined DNS_LOCAL_HOSTLIST_IS_DYNAMIC || defined __DOXYGEN__ -#define DNS_LOCAL_HOSTLIST_IS_DYNAMIC 0 -#endif /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ - -/** Set this to 1 to enable querying ".local" names via mDNS - * using a One-Shot Multicast DNS Query */ -#if !defined LWIP_DNS_SUPPORT_MDNS_QUERIES || defined __DOXYGEN__ -#define LWIP_DNS_SUPPORT_MDNS_QUERIES 0 -#endif -/** - * @} - */ - -/* - --------------------------------- - ---------- UDP options ---------- - --------------------------------- -*/ -/** - * @defgroup lwip_opts_udp UDP - * @ingroup lwip_opts_callback - * @{ - */ -/** - * LWIP_UDP==1: Turn on UDP. - */ -#if !defined LWIP_UDP || defined __DOXYGEN__ -#define LWIP_UDP 1 -#endif - -/** - * LWIP_UDPLITE==1: Turn on UDP-Lite. (Requires LWIP_UDP) - */ -#if !defined LWIP_UDPLITE || defined __DOXYGEN__ -#define LWIP_UDPLITE 0 -#endif - -/** - * UDP_TTL: Default Time-To-Live value. - */ -#if !defined UDP_TTL || defined __DOXYGEN__ -#define UDP_TTL IP_DEFAULT_TTL -#endif - -/** - * LWIP_NETBUF_RECVINFO==1: append destination addr and port to every netbuf. - */ -#if !defined LWIP_NETBUF_RECVINFO || defined __DOXYGEN__ -#define LWIP_NETBUF_RECVINFO 0 -#endif -/** - * @} - */ - -/* - --------------------------------- - ---------- TCP options ---------- - --------------------------------- -*/ -/** - * @defgroup lwip_opts_tcp TCP - * @ingroup lwip_opts_callback - * @{ - */ -/** - * LWIP_TCP==1: Turn on TCP. - */ -#if !defined LWIP_TCP || defined __DOXYGEN__ -#define LWIP_TCP 1 -#endif - -/** - * TCP_TTL: Default Time-To-Live value. - */ -#if !defined TCP_TTL || defined __DOXYGEN__ -#define TCP_TTL IP_DEFAULT_TTL -#endif - -/** - * TCP_WND: The size of a TCP window. This must be at least - * (2 * TCP_MSS) for things to work well. - * ATTENTION: when using TCP_RCV_SCALE, TCP_WND is the total size - * with scaling applied. Maximum window value in the TCP header - * will be TCP_WND >> TCP_RCV_SCALE - */ -#if !defined TCP_WND || defined __DOXYGEN__ -#define TCP_WND (4 * TCP_MSS) -#endif - -/** - * TCP_MAXRTX: Maximum number of retransmissions of data segments. - */ -#if !defined TCP_MAXRTX || defined __DOXYGEN__ -#define TCP_MAXRTX 12 -#endif - -/** - * TCP_SYNMAXRTX: Maximum number of retransmissions of SYN segments. - */ -#if !defined TCP_SYNMAXRTX || defined __DOXYGEN__ -#define TCP_SYNMAXRTX 6 -#endif - -/** - * TCP_QUEUE_OOSEQ==1: TCP will queue segments that arrive out of order. - * Define to 0 if your device is low on memory. - */ -#if !defined TCP_QUEUE_OOSEQ || defined __DOXYGEN__ -#define TCP_QUEUE_OOSEQ LWIP_TCP -#endif - -/** - * LWIP_TCP_SACK_OUT==1: TCP will support sending selective acknowledgements (SACKs). - */ -#if !defined LWIP_TCP_SACK_OUT || defined __DOXYGEN__ -#define LWIP_TCP_SACK_OUT 0 -#endif - -/** - * LWIP_TCP_MAX_SACK_NUM: The maximum number of SACK values to include in TCP segments. - * Must be at least 1, but is only used if LWIP_TCP_SACK_OUT is enabled. - * NOTE: Even though we never send more than 3 or 4 SACK ranges in a single segment - * (depending on other options), setting this option to values greater than 4 is not pointless. - * This is basically the max number of SACK ranges we want to keep track of. - * As new data is delivered, some of the SACK ranges may be removed or merged. - * In that case some of those older SACK ranges may be used again. - * The amount of memory used to store SACK ranges is LWIP_TCP_MAX_SACK_NUM * 8 bytes for each TCP PCB. - */ -#if !defined LWIP_TCP_MAX_SACK_NUM || defined __DOXYGEN__ -#define LWIP_TCP_MAX_SACK_NUM 4 -#endif - -/** - * TCP_MSS: TCP Maximum segment size. (default is 536, a conservative default, - * you might want to increase this.) - * For the receive side, this MSS is advertised to the remote side - * when opening a connection. For the transmit size, this MSS sets - * an upper limit on the MSS advertised by the remote host. - */ -#if !defined TCP_MSS || defined __DOXYGEN__ -#define TCP_MSS 536 -#endif - -/** - * TCP_CALCULATE_EFF_SEND_MSS: "The maximum size of a segment that TCP really - * sends, the 'effective send MSS,' MUST be the smaller of the send MSS (which - * reflects the available reassembly buffer size at the remote host) and the - * largest size permitted by the IP layer" (RFC 1122) - * Setting this to 1 enables code that checks TCP_MSS against the MTU of the - * netif used for a connection and limits the MSS if it would be too big otherwise. - */ -#if !defined TCP_CALCULATE_EFF_SEND_MSS || defined __DOXYGEN__ -#define TCP_CALCULATE_EFF_SEND_MSS 1 -#endif - - -/** - * TCP_SND_BUF: TCP sender buffer space (bytes). - * To achieve good performance, this should be at least 2 * TCP_MSS. - */ -#if !defined TCP_SND_BUF || defined __DOXYGEN__ -#define TCP_SND_BUF (2 * TCP_MSS) -#endif - -/** - * TCP_SND_QUEUELEN: TCP sender buffer space (pbufs). This must be at least - * as much as (2 * TCP_SND_BUF/TCP_MSS) for things to work. - */ -#if !defined TCP_SND_QUEUELEN || defined __DOXYGEN__ -#define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) -#endif - -/** - * TCP_SNDLOWAT: TCP writable space (bytes). This must be less than - * TCP_SND_BUF. It is the amount of space which must be available in the - * TCP snd_buf for select to return writable (combined with TCP_SNDQUEUELOWAT). - */ -#if !defined TCP_SNDLOWAT || defined __DOXYGEN__ -#define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (TCP_SND_BUF) - 1) -#endif - -/** - * TCP_SNDQUEUELOWAT: TCP writable bufs (pbuf count). This must be less - * than TCP_SND_QUEUELEN. If the number of pbufs queued on a pcb drops below - * this number, select returns writable (combined with TCP_SNDLOWAT). - */ -#if !defined TCP_SNDQUEUELOWAT || defined __DOXYGEN__ -#define TCP_SNDQUEUELOWAT LWIP_MAX(((TCP_SND_QUEUELEN)/2), 5) -#endif - -/** - * TCP_OOSEQ_MAX_BYTES: The default maximum number of bytes queued on ooseq per - * pcb if TCP_OOSEQ_BYTES_LIMIT is not defined. Default is 0 (no limit). - * Only valid for TCP_QUEUE_OOSEQ==1. - */ -#if !defined TCP_OOSEQ_MAX_BYTES || defined __DOXYGEN__ -#define TCP_OOSEQ_MAX_BYTES 0 -#endif - -/** - * TCP_OOSEQ_BYTES_LIMIT(pcb): Return the maximum number of bytes to be queued - * on ooseq per pcb, given the pcb. Only valid for TCP_QUEUE_OOSEQ==1 && - * TCP_OOSEQ_MAX_BYTES==1. - * Use this to override TCP_OOSEQ_MAX_BYTES to a dynamic value per pcb. - */ -#if !defined TCP_OOSEQ_BYTES_LIMIT -#if TCP_OOSEQ_MAX_BYTES -#define TCP_OOSEQ_BYTES_LIMIT(pcb) TCP_OOSEQ_MAX_BYTES -#elif defined __DOXYGEN__ -#define TCP_OOSEQ_BYTES_LIMIT(pcb) -#endif -#endif - -/** - * TCP_OOSEQ_MAX_PBUFS: The default maximum number of pbufs queued on ooseq per - * pcb if TCP_OOSEQ_BYTES_LIMIT is not defined. Default is 0 (no limit). - * Only valid for TCP_QUEUE_OOSEQ==1. - */ -#if !defined TCP_OOSEQ_MAX_PBUFS || defined __DOXYGEN__ -#define TCP_OOSEQ_MAX_PBUFS 0 -#endif - -/** - * TCP_OOSEQ_PBUFS_LIMIT(pcb): Return the maximum number of pbufs to be queued - * on ooseq per pcb, given the pcb. Only valid for TCP_QUEUE_OOSEQ==1 && - * TCP_OOSEQ_MAX_PBUFS==1. - * Use this to override TCP_OOSEQ_MAX_PBUFS to a dynamic value per pcb. - */ -#if !defined TCP_OOSEQ_PBUFS_LIMIT -#if TCP_OOSEQ_MAX_PBUFS -#define TCP_OOSEQ_PBUFS_LIMIT(pcb) TCP_OOSEQ_MAX_PBUFS -#elif defined __DOXYGEN__ -#define TCP_OOSEQ_PBUFS_LIMIT(pcb) -#endif -#endif - -/** - * TCP_LISTEN_BACKLOG: Enable the backlog option for tcp listen pcb. - */ -#if !defined TCP_LISTEN_BACKLOG || defined __DOXYGEN__ -#define TCP_LISTEN_BACKLOG 0 -#endif - -/** - * The maximum allowed backlog for TCP listen netconns. - * This backlog is used unless another is explicitly specified. - * 0xff is the maximum (u8_t). - */ -#if !defined TCP_DEFAULT_LISTEN_BACKLOG || defined __DOXYGEN__ -#define TCP_DEFAULT_LISTEN_BACKLOG 0xff -#endif - -/** - * TCP_OVERSIZE: The maximum number of bytes that tcp_write may - * allocate ahead of time in an attempt to create shorter pbuf chains - * for transmission. The meaningful range is 0 to TCP_MSS. Some - * suggested values are: - * - * 0: Disable oversized allocation. Each tcp_write() allocates a new - pbuf (old behaviour). - * 1: Allocate size-aligned pbufs with minimal excess. Use this if your - * scatter-gather DMA requires aligned fragments. - * 128: Limit the pbuf/memory overhead to 20%. - * TCP_MSS: Try to create unfragmented TCP packets. - * TCP_MSS/4: Try to create 4 fragments or less per TCP packet. - */ -#if !defined TCP_OVERSIZE || defined __DOXYGEN__ -#define TCP_OVERSIZE TCP_MSS -#endif - -/** - * LWIP_TCP_TIMESTAMPS==1: support the TCP timestamp option. - * The timestamp option is currently only used to help remote hosts, it is not - * really used locally. Therefore, it is only enabled when a TS option is - * received in the initial SYN packet from a remote host. - */ -#if !defined LWIP_TCP_TIMESTAMPS || defined __DOXYGEN__ -#define LWIP_TCP_TIMESTAMPS 0 -#endif - -/** - * TCP_WND_UPDATE_THRESHOLD: difference in window to trigger an - * explicit window update - */ -#if !defined TCP_WND_UPDATE_THRESHOLD || defined __DOXYGEN__ -#define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) -#endif - -/** - * LWIP_EVENT_API and LWIP_CALLBACK_API: Only one of these should be set to 1. - * LWIP_EVENT_API==1: The user defines lwip_tcp_event() to receive all - * events (accept, sent, etc) that happen in the system. - * LWIP_CALLBACK_API==1: The PCB callback function is called directly - * for the event. This is the default. - */ -#if !defined(LWIP_EVENT_API) && !defined(LWIP_CALLBACK_API) || defined __DOXYGEN__ -#define LWIP_EVENT_API 0 -#define LWIP_CALLBACK_API 1 -#else -#ifndef LWIP_EVENT_API -#define LWIP_EVENT_API 0 -#endif -#ifndef LWIP_CALLBACK_API -#define LWIP_CALLBACK_API 0 -#endif -#endif - -/** - * LWIP_WND_SCALE and TCP_RCV_SCALE: - * Set LWIP_WND_SCALE to 1 to enable window scaling. - * Set TCP_RCV_SCALE to the desired scaling factor (shift count in the - * range of [0..14]). - * When LWIP_WND_SCALE is enabled but TCP_RCV_SCALE is 0, we can use a large - * send window while having a small receive window only. - */ -#if !defined LWIP_WND_SCALE || defined __DOXYGEN__ -#define LWIP_WND_SCALE 0 -#define TCP_RCV_SCALE 0 -#endif - -/** - * LWIP_TCP_PCB_NUM_EXT_ARGS: - * When this is > 0, every tcp pcb (including listen pcb) includes a number of - * additional argument entries in an array (see tcp_ext_arg_alloc_id) - */ -#if !defined LWIP_TCP_PCB_NUM_EXT_ARGS || defined __DOXYGEN__ -#define LWIP_TCP_PCB_NUM_EXT_ARGS 0 -#endif - -/** LWIP_ALTCP==1: enable the altcp API. - * altcp is an abstraction layer that prevents applications linking against the - * tcp.h functions but provides the same functionality. It is used to e.g. add - * SSL/TLS or proxy-connect support to an application written for the tcp callback - * API without that application knowing the protocol details. - * - * With LWIP_ALTCP==0, applications written against the altcp API can still be - * compiled but are directly linked against the tcp.h callback API and then - * cannot use layered protocols. - * - * See @ref altcp_api - */ -#if !defined LWIP_ALTCP || defined __DOXYGEN__ -#define LWIP_ALTCP 0 -#endif - -/** LWIP_ALTCP_TLS==1: enable TLS support for altcp API. - * This needs a port of the functions in altcp_tls.h to a TLS library. - * A port to ARM mbedtls is provided with lwIP, see apps/altcp_tls/ directory - * and LWIP_ALTCP_TLS_MBEDTLS option. - */ -#if !defined LWIP_ALTCP_TLS || defined __DOXYGEN__ -#define LWIP_ALTCP_TLS 0 -#endif - -/** - * @} - */ - -/* - ---------------------------------- - ---------- Pbuf options ---------- - ---------------------------------- -*/ -/** - * @defgroup lwip_opts_pbuf PBUF - * @ingroup lwip_opts - * @{ - */ -/** - * PBUF_LINK_HLEN: the number of bytes that should be allocated for a - * link level header. The default is 14, the standard value for - * Ethernet. - */ -#if !defined PBUF_LINK_HLEN || defined __DOXYGEN__ -#if defined LWIP_HOOK_VLAN_SET && !defined __DOXYGEN__ -#define PBUF_LINK_HLEN (18 + ETH_PAD_SIZE) -#else /* LWIP_HOOK_VLAN_SET */ -#define PBUF_LINK_HLEN (14 + ETH_PAD_SIZE) -#endif /* LWIP_HOOK_VLAN_SET */ -#endif - -/** - * PBUF_LINK_ENCAPSULATION_HLEN: the number of bytes that should be allocated - * for an additional encapsulation header before ethernet headers (e.g. 802.11) - */ -#if !defined PBUF_LINK_ENCAPSULATION_HLEN || defined __DOXYGEN__ -#define PBUF_LINK_ENCAPSULATION_HLEN 0 -#endif - -/** - * PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. The default is - * designed to accommodate single full size TCP frame in one pbuf, including - * TCP_MSS, IP header, and link header. - */ -#if !defined PBUF_POOL_BUFSIZE || defined __DOXYGEN__ -#define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN+PBUF_LINK_HLEN) -#endif - -/** - * LWIP_PBUF_REF_T: Refcount type in pbuf. - * Default width of u8_t can be increased if 255 refs are not enough for you. - */ -#if !defined LWIP_PBUF_REF_T || defined __DOXYGEN__ -#define LWIP_PBUF_REF_T u8_t -#endif -/** - * @} - */ - -/* - ------------------------------------------------ - ---------- Network Interfaces options ---------- - ------------------------------------------------ -*/ -/** - * @defgroup lwip_opts_netif NETIF - * @ingroup lwip_opts - * @{ - */ -/** - * LWIP_SINGLE_NETIF==1: use a single netif only. This is the common case for - * small real-life targets. Some code like routing etc. can be left out. - */ -#if !defined LWIP_SINGLE_NETIF || defined __DOXYGEN__ -#define LWIP_SINGLE_NETIF 0 -#endif - -/** - * LWIP_NETIF_HOSTNAME==1: use DHCP_OPTION_HOSTNAME with netif's hostname - * field. - */ -#if !defined LWIP_NETIF_HOSTNAME || defined __DOXYGEN__ -#define LWIP_NETIF_HOSTNAME 0 -#endif - -/** - * LWIP_NETIF_API==1: Support netif api (in netifapi.c) - */ -#if !defined LWIP_NETIF_API || defined __DOXYGEN__ -#define LWIP_NETIF_API 0 -#endif - -/** - * LWIP_NETIF_STATUS_CALLBACK==1: Support a callback function whenever an interface - * changes its up/down status (i.e., due to DHCP IP acquisition) - */ -#if !defined LWIP_NETIF_STATUS_CALLBACK || defined __DOXYGEN__ -#define LWIP_NETIF_STATUS_CALLBACK 0 -#endif - -/** - * LWIP_NETIF_EXT_STATUS_CALLBACK==1: Support an extended callback function - * for several netif related event that supports multiple subscribers. - * @see netif_ext_status_callback - */ -#if !defined LWIP_NETIF_EXT_STATUS_CALLBACK || defined __DOXYGEN__ -#define LWIP_NETIF_EXT_STATUS_CALLBACK 0 -#endif - -/** - * LWIP_NETIF_LINK_CALLBACK==1: Support a callback function from an interface - * whenever the link changes (i.e., link down) - */ -#if !defined LWIP_NETIF_LINK_CALLBACK || defined __DOXYGEN__ -#define LWIP_NETIF_LINK_CALLBACK 0 -#endif - -/** - * LWIP_NETIF_REMOVE_CALLBACK==1: Support a callback function that is called - * when a netif has been removed - */ -#if !defined LWIP_NETIF_REMOVE_CALLBACK || defined __DOXYGEN__ -#define LWIP_NETIF_REMOVE_CALLBACK 0 -#endif - -/** - * LWIP_NETIF_HWADDRHINT==1: Cache link-layer-address hints (e.g. table - * indices) in struct netif. TCP and UDP can make use of this to prevent - * scanning the ARP table for every sent packet. While this is faster for big - * ARP tables or many concurrent connections, it might be counterproductive - * if you have a tiny ARP table or if there never are concurrent connections. - */ -#if !defined LWIP_NETIF_HWADDRHINT || defined __DOXYGEN__ -#define LWIP_NETIF_HWADDRHINT 0 -#endif - -/** - * LWIP_NETIF_TX_SINGLE_PBUF: if this is set to 1, lwIP *tries* to put all data - * to be sent into one single pbuf. This is for compatibility with DMA-enabled - * MACs that do not support scatter-gather. - * Beware that this might involve CPU-memcpy before transmitting that would not - * be needed without this flag! Use this only if you need to! - * - * ATTENTION: a driver should *NOT* rely on getting single pbufs but check TX - * pbufs for being in one piece. If not, @ref pbuf_clone can be used to get - * a single pbuf: - * if (p->next != NULL) { - * struct pbuf *q = pbuf_clone(PBUF_RAW, PBUF_RAM, p); - * if (q == NULL) { - * return ERR_MEM; - * } - * p = q; ATTENTION: do NOT free the old 'p' as the ref belongs to the caller! - * } - */ -#if !defined LWIP_NETIF_TX_SINGLE_PBUF || defined __DOXYGEN__ -#define LWIP_NETIF_TX_SINGLE_PBUF 0 -#endif /* LWIP_NETIF_TX_SINGLE_PBUF */ - -/** - * LWIP_NUM_NETIF_CLIENT_DATA: Number of clients that may store - * data in client_data member array of struct netif (max. 256). - */ -#if !defined LWIP_NUM_NETIF_CLIENT_DATA || defined __DOXYGEN__ -#define LWIP_NUM_NETIF_CLIENT_DATA 0 -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- LOOPIF options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_loop Loopback interface - * @ingroup lwip_opts_netif - * @{ - */ -/** - * LWIP_HAVE_LOOPIF==1: Support loop interface (127.0.0.1). - * This is only needed when no real netifs are available. If at least one other - * netif is available, loopback traffic uses this netif. - */ -#if !defined LWIP_HAVE_LOOPIF || defined __DOXYGEN__ -#define LWIP_HAVE_LOOPIF (LWIP_NETIF_LOOPBACK && !LWIP_SINGLE_NETIF) -#endif - -/** - * LWIP_LOOPIF_MULTICAST==1: Support multicast/IGMP on loop interface (127.0.0.1). - */ -#if !defined LWIP_LOOPIF_MULTICAST || defined __DOXYGEN__ -#define LWIP_LOOPIF_MULTICAST 0 -#endif - -/** - * LWIP_NETIF_LOOPBACK==1: Support sending packets with a destination IP - * address equal to the netif IP address, looping them back up the stack. - */ -#if !defined LWIP_NETIF_LOOPBACK || defined __DOXYGEN__ -#define LWIP_NETIF_LOOPBACK 0 -#endif - -/** - * LWIP_LOOPBACK_MAX_PBUFS: Maximum number of pbufs on queue for loopback - * sending for each netif (0 = disabled) - */ -#if !defined LWIP_LOOPBACK_MAX_PBUFS || defined __DOXYGEN__ -#define LWIP_LOOPBACK_MAX_PBUFS 0 -#endif - -/** - * LWIP_NETIF_LOOPBACK_MULTITHREADING: Indicates whether threading is enabled in - * the system, as netifs must change how they behave depending on this setting - * for the LWIP_NETIF_LOOPBACK option to work. - * Setting this is needed to avoid reentering non-reentrant functions like - * tcp_input(). - * LWIP_NETIF_LOOPBACK_MULTITHREADING==1: Indicates that the user is using a - * multithreaded environment like tcpip.c. In this case, netif->input() - * is called directly. - * LWIP_NETIF_LOOPBACK_MULTITHREADING==0: Indicates a polling (or NO_SYS) setup. - * The packets are put on a list and netif_poll() must be called in - * the main application loop. - */ -#if !defined LWIP_NETIF_LOOPBACK_MULTITHREADING || defined __DOXYGEN__ -#define LWIP_NETIF_LOOPBACK_MULTITHREADING (!NO_SYS) -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- Thread options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_thread Threading - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * TCPIP_THREAD_NAME: The name assigned to the main tcpip thread. - */ -#if !defined TCPIP_THREAD_NAME || defined __DOXYGEN__ -#define TCPIP_THREAD_NAME "tcpip_thread" -#endif - -/** - * TCPIP_THREAD_STACKSIZE: The stack size used by the main tcpip thread. - * The stack size value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined TCPIP_THREAD_STACKSIZE || defined __DOXYGEN__ -#define TCPIP_THREAD_STACKSIZE 0 -#endif - -/** - * TCPIP_THREAD_PRIO: The priority assigned to the main tcpip thread. - * The priority value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined TCPIP_THREAD_PRIO || defined __DOXYGEN__ -#define TCPIP_THREAD_PRIO 1 -#endif - -/** - * TCPIP_MBOX_SIZE: The mailbox size for the tcpip thread messages - * The queue size value itself is platform-dependent, but is passed to - * sys_mbox_new() when tcpip_init is called. - */ -#if !defined TCPIP_MBOX_SIZE || defined __DOXYGEN__ -#define TCPIP_MBOX_SIZE 0 -#endif - -/** - * Define this to something that triggers a watchdog. This is called from - * tcpip_thread after processing a message. - */ -#if !defined LWIP_TCPIP_THREAD_ALIVE || defined __DOXYGEN__ -#define LWIP_TCPIP_THREAD_ALIVE() -#endif - -/** - * SLIPIF_THREAD_NAME: The name assigned to the slipif_loop thread. - */ -#if !defined SLIPIF_THREAD_NAME || defined __DOXYGEN__ -#define SLIPIF_THREAD_NAME "slipif_loop" -#endif - -/** - * SLIP_THREAD_STACKSIZE: The stack size used by the slipif_loop thread. - * The stack size value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined SLIPIF_THREAD_STACKSIZE || defined __DOXYGEN__ -#define SLIPIF_THREAD_STACKSIZE 0 -#endif - -/** - * SLIPIF_THREAD_PRIO: The priority assigned to the slipif_loop thread. - * The priority value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined SLIPIF_THREAD_PRIO || defined __DOXYGEN__ -#define SLIPIF_THREAD_PRIO 1 -#endif - -/** - * DEFAULT_THREAD_NAME: The name assigned to any other lwIP thread. - */ -#if !defined DEFAULT_THREAD_NAME || defined __DOXYGEN__ -#define DEFAULT_THREAD_NAME "lwIP" -#endif - -/** - * DEFAULT_THREAD_STACKSIZE: The stack size used by any other lwIP thread. - * The stack size value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined DEFAULT_THREAD_STACKSIZE || defined __DOXYGEN__ -#define DEFAULT_THREAD_STACKSIZE 0 -#endif - -/** - * DEFAULT_THREAD_PRIO: The priority assigned to any other lwIP thread. - * The priority value itself is platform-dependent, but is passed to - * sys_thread_new() when the thread is created. - */ -#if !defined DEFAULT_THREAD_PRIO || defined __DOXYGEN__ -#define DEFAULT_THREAD_PRIO 1 -#endif - -/** - * DEFAULT_RAW_RECVMBOX_SIZE: The mailbox size for the incoming packets on a - * NETCONN_RAW. The queue size value itself is platform-dependent, but is passed - * to sys_mbox_new() when the recvmbox is created. - */ -#if !defined DEFAULT_RAW_RECVMBOX_SIZE || defined __DOXYGEN__ -#define DEFAULT_RAW_RECVMBOX_SIZE 0 -#endif - -/** - * DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a - * NETCONN_UDP. The queue size value itself is platform-dependent, but is passed - * to sys_mbox_new() when the recvmbox is created. - */ -#if !defined DEFAULT_UDP_RECVMBOX_SIZE || defined __DOXYGEN__ -#define DEFAULT_UDP_RECVMBOX_SIZE 0 -#endif - -/** - * DEFAULT_TCP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a - * NETCONN_TCP. The queue size value itself is platform-dependent, but is passed - * to sys_mbox_new() when the recvmbox is created. - */ -#if !defined DEFAULT_TCP_RECVMBOX_SIZE || defined __DOXYGEN__ -#define DEFAULT_TCP_RECVMBOX_SIZE 0 -#endif - -/** - * DEFAULT_ACCEPTMBOX_SIZE: The mailbox size for the incoming connections. - * The queue size value itself is platform-dependent, but is passed to - * sys_mbox_new() when the acceptmbox is created. - */ -#if !defined DEFAULT_ACCEPTMBOX_SIZE || defined __DOXYGEN__ -#define DEFAULT_ACCEPTMBOX_SIZE 0 -#endif -/** - * @} - */ - -/* - ---------------------------------------------- - ---------- Sequential layer options ---------- - ---------------------------------------------- -*/ -/** - * @defgroup lwip_opts_netconn Netconn - * @ingroup lwip_opts_threadsafe_apis - * @{ - */ -/** - * LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c) - */ -#if !defined LWIP_NETCONN || defined __DOXYGEN__ -#define LWIP_NETCONN 1 -#endif - -/** LWIP_TCPIP_TIMEOUT==1: Enable tcpip_timeout/tcpip_untimeout to create - * timers running in tcpip_thread from another thread. - */ -#if !defined LWIP_TCPIP_TIMEOUT || defined __DOXYGEN__ -#define LWIP_TCPIP_TIMEOUT 0 -#endif - -/** LWIP_NETCONN_SEM_PER_THREAD==1: Use one (thread-local) semaphore per - * thread calling socket/netconn functions instead of allocating one - * semaphore per netconn (and per select etc.) - * ATTENTION: a thread-local semaphore for API calls is needed: - * - LWIP_NETCONN_THREAD_SEM_GET() returning a sys_sem_t* - * - LWIP_NETCONN_THREAD_SEM_ALLOC() creating the semaphore - * - LWIP_NETCONN_THREAD_SEM_FREE() freeing the semaphore - * The latter 2 can be invoked up by calling netconn_thread_init()/netconn_thread_cleanup(). - * Ports may call these for threads created with sys_thread_new(). - */ -#if !defined LWIP_NETCONN_SEM_PER_THREAD || defined __DOXYGEN__ -#define LWIP_NETCONN_SEM_PER_THREAD 0 -#endif - -/** LWIP_NETCONN_FULLDUPLEX==1: Enable code that allows reading from one thread, - * writing from a 2nd thread and closing from a 3rd thread at the same time. - * ATTENTION: This is currently really alpha! Some requirements: - * - LWIP_NETCONN_SEM_PER_THREAD==1 is required to use one socket/netconn from - * multiple threads at once - * - sys_mbox_free() has to unblock receive tasks waiting on recvmbox/acceptmbox - * and prevent a task pending on this during/after deletion - */ -#if !defined LWIP_NETCONN_FULLDUPLEX || defined __DOXYGEN__ -#define LWIP_NETCONN_FULLDUPLEX 0 -#endif -/** - * @} - */ - -/* - ------------------------------------ - ---------- Socket options ---------- - ------------------------------------ -*/ -/** - * @defgroup lwip_opts_socket Sockets - * @ingroup lwip_opts_threadsafe_apis - * @{ - */ -/** - * LWIP_SOCKET==1: Enable Socket API (require to use sockets.c) - */ -#if !defined LWIP_SOCKET || defined __DOXYGEN__ -#define LWIP_SOCKET 1 -#endif - -/** - * LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names through defines. - * LWIP_COMPAT_SOCKETS==2: Same as ==1 but correctly named functions are created. - * While this helps code completion, it might conflict with existing libraries. - * (only used if you use sockets.c) - */ -#if !defined LWIP_COMPAT_SOCKETS || defined __DOXYGEN__ -#define LWIP_COMPAT_SOCKETS 1 -#endif - -/** - * LWIP_POSIX_SOCKETS_IO_NAMES==1: Enable POSIX-style sockets functions names. - * Disable this option if you use a POSIX operating system that uses the same - * names (read, write & close). (only used if you use sockets.c) - */ -#if !defined LWIP_POSIX_SOCKETS_IO_NAMES || defined __DOXYGEN__ -#define LWIP_POSIX_SOCKETS_IO_NAMES 1 -#endif - -/** - * LWIP_SOCKET_OFFSET==n: Increases the file descriptor number created by LwIP with n. - * This can be useful when there are multiple APIs which create file descriptors. - * When they all start with a different offset and you won't make them overlap you can - * re implement read/write/close/ioctl/fnctl to send the requested action to the right - * library (sharing select will need more work though). - */ -#if !defined LWIP_SOCKET_OFFSET || defined __DOXYGEN__ -#define LWIP_SOCKET_OFFSET 0 -#endif - -/** - * LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT - * options processing. Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set - * in seconds. (does not require sockets.c, and will affect tcp.c) - */ -#if !defined LWIP_TCP_KEEPALIVE || defined __DOXYGEN__ -#define LWIP_TCP_KEEPALIVE 0 -#endif - -/** - * LWIP_SO_SNDTIMEO==1: Enable send timeout for sockets/netconns and - * SO_SNDTIMEO processing. - */ -#if !defined LWIP_SO_SNDTIMEO || defined __DOXYGEN__ -#define LWIP_SO_SNDTIMEO 0 -#endif - -/** - * LWIP_SO_RCVTIMEO==1: Enable receive timeout for sockets/netconns and - * SO_RCVTIMEO processing. - */ -#if !defined LWIP_SO_RCVTIMEO || defined __DOXYGEN__ -#define LWIP_SO_RCVTIMEO 0 -#endif - -/** - * LWIP_SO_SNDRCVTIMEO_NONSTANDARD==1: SO_RCVTIMEO/SO_SNDTIMEO take an int - * (milliseconds, much like winsock does) instead of a struct timeval (default). - */ -#if !defined LWIP_SO_SNDRCVTIMEO_NONSTANDARD || defined __DOXYGEN__ -#define LWIP_SO_SNDRCVTIMEO_NONSTANDARD 0 -#endif - -/** - * LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing. - */ -#if !defined LWIP_SO_RCVBUF || defined __DOXYGEN__ -#define LWIP_SO_RCVBUF 0 -#endif - -/** - * LWIP_SO_LINGER==1: Enable SO_LINGER processing. - */ -#if !defined LWIP_SO_LINGER || defined __DOXYGEN__ -#define LWIP_SO_LINGER 0 -#endif - -/** - * If LWIP_SO_RCVBUF is used, this is the default value for recv_bufsize. - */ -#if !defined RECV_BUFSIZE_DEFAULT || defined __DOXYGEN__ -#define RECV_BUFSIZE_DEFAULT INT_MAX -#endif - -/** - * By default, TCP socket/netconn close waits 20 seconds max to send the FIN - */ -#if !defined LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT || defined __DOXYGEN__ -#define LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT 20000 -#endif - -/** - * SO_REUSE==1: Enable SO_REUSEADDR option. - */ -#if !defined SO_REUSE || defined __DOXYGEN__ -#define SO_REUSE 0 -#endif - -/** - * SO_REUSE_RXTOALL==1: Pass a copy of incoming broadcast/multicast packets - * to all local matches if SO_REUSEADDR is turned on. - * WARNING: Adds a memcpy for every packet if passing to more than one pcb! - */ -#if !defined SO_REUSE_RXTOALL || defined __DOXYGEN__ -#define SO_REUSE_RXTOALL 0 -#endif - -/** - * LWIP_FIONREAD_LINUXMODE==0 (default): ioctl/FIONREAD returns the amount of - * pending data in the network buffer. This is the way windows does it. It's - * the default for lwIP since it is smaller. - * LWIP_FIONREAD_LINUXMODE==1: ioctl/FIONREAD returns the size of the next - * pending datagram in bytes. This is the way linux does it. This code is only - * here for compatibility. - */ -#if !defined LWIP_FIONREAD_LINUXMODE || defined __DOXYGEN__ -#define LWIP_FIONREAD_LINUXMODE 0 -#endif - -/** - * LWIP_SOCKET_SELECT==1 (default): enable select() for sockets (uses a netconn - * callback to keep track of events). - * This saves RAM (counters per socket) and code (netconn event callback), which - * should improve performance a bit). - */ -#if !defined LWIP_SOCKET_SELECT || defined __DOXYGEN__ -#define LWIP_SOCKET_SELECT 1 -#endif - -/** - * LWIP_SOCKET_POLL==1 (default): enable poll() for sockets (including - * struct pollfd, nfds_t, and constants) - */ -#if !defined LWIP_SOCKET_POLL || defined __DOXYGEN__ -#define LWIP_SOCKET_POLL 1 -#endif -/** - * @} - */ - -/* - ---------------------------------------- - ---------- Statistics options ---------- - ---------------------------------------- -*/ -/** - * @defgroup lwip_opts_stats Statistics - * @ingroup lwip_opts_debug - * @{ - */ -/** - * LWIP_STATS==1: Enable statistics collection in lwip_stats. - */ -#if !defined LWIP_STATS || defined __DOXYGEN__ -#define LWIP_STATS 1 -#endif - -#if LWIP_STATS - -/** - * LWIP_STATS_DISPLAY==1: Compile in the statistics output functions. - */ -#if !defined LWIP_STATS_DISPLAY || defined __DOXYGEN__ -#define LWIP_STATS_DISPLAY 0 -#endif - -/** - * LINK_STATS==1: Enable link stats. - */ -#if !defined LINK_STATS || defined __DOXYGEN__ -#define LINK_STATS 1 -#endif - -/** - * ETHARP_STATS==1: Enable etharp stats. - */ -#if !defined ETHARP_STATS || defined __DOXYGEN__ -#define ETHARP_STATS (LWIP_ARP) -#endif - -/** - * IP_STATS==1: Enable IP stats. - */ -#if !defined IP_STATS || defined __DOXYGEN__ -#define IP_STATS 1 -#endif - -/** - * IPFRAG_STATS==1: Enable IP fragmentation stats. Default is - * on if using either frag or reass. - */ -#if !defined IPFRAG_STATS || defined __DOXYGEN__ -#define IPFRAG_STATS (IP_REASSEMBLY || IP_FRAG) -#endif - -/** - * ICMP_STATS==1: Enable ICMP stats. - */ -#if !defined ICMP_STATS || defined __DOXYGEN__ -#define ICMP_STATS 1 -#endif - -/** - * IGMP_STATS==1: Enable IGMP stats. - */ -#if !defined IGMP_STATS || defined __DOXYGEN__ -#define IGMP_STATS (LWIP_IGMP) -#endif - -/** - * UDP_STATS==1: Enable UDP stats. Default is on if - * UDP enabled, otherwise off. - */ -#if !defined UDP_STATS || defined __DOXYGEN__ -#define UDP_STATS (LWIP_UDP) -#endif - -/** - * TCP_STATS==1: Enable TCP stats. Default is on if TCP - * enabled, otherwise off. - */ -#if !defined TCP_STATS || defined __DOXYGEN__ -#define TCP_STATS (LWIP_TCP) -#endif - -/** - * MEM_STATS==1: Enable mem.c stats. - */ -#if !defined MEM_STATS || defined __DOXYGEN__ -#define MEM_STATS ((MEM_LIBC_MALLOC == 0) && (MEM_USE_POOLS == 0)) -#endif - -/** - * MEMP_STATS==1: Enable memp.c pool stats. - */ -#if !defined MEMP_STATS || defined __DOXYGEN__ -#define MEMP_STATS (MEMP_MEM_MALLOC == 0) -#endif - -/** - * SYS_STATS==1: Enable system stats (sem and mbox counts, etc). - */ -#if !defined SYS_STATS || defined __DOXYGEN__ -#define SYS_STATS (NO_SYS == 0) -#endif - -/** - * IP6_STATS==1: Enable IPv6 stats. - */ -#if !defined IP6_STATS || defined __DOXYGEN__ -#define IP6_STATS (LWIP_IPV6) -#endif - -/** - * ICMP6_STATS==1: Enable ICMP for IPv6 stats. - */ -#if !defined ICMP6_STATS || defined __DOXYGEN__ -#define ICMP6_STATS (LWIP_IPV6 && LWIP_ICMP6) -#endif - -/** - * IP6_FRAG_STATS==1: Enable IPv6 fragmentation stats. - */ -#if !defined IP6_FRAG_STATS || defined __DOXYGEN__ -#define IP6_FRAG_STATS (LWIP_IPV6 && (LWIP_IPV6_FRAG || LWIP_IPV6_REASS)) -#endif - -/** - * MLD6_STATS==1: Enable MLD for IPv6 stats. - */ -#if !defined MLD6_STATS || defined __DOXYGEN__ -#define MLD6_STATS (LWIP_IPV6 && LWIP_IPV6_MLD) -#endif - -/** - * ND6_STATS==1: Enable Neighbor discovery for IPv6 stats. - */ -#if !defined ND6_STATS || defined __DOXYGEN__ -#define ND6_STATS (LWIP_IPV6) -#endif - -/** - * MIB2_STATS==1: Stats for SNMP MIB2. - */ -#if !defined MIB2_STATS || defined __DOXYGEN__ -#define MIB2_STATS 0 -#endif - -#else - -#define LINK_STATS 0 -#define ETHARP_STATS 0 -#define IP_STATS 0 -#define IPFRAG_STATS 0 -#define ICMP_STATS 0 -#define IGMP_STATS 0 -#define UDP_STATS 0 -#define TCP_STATS 0 -#define MEM_STATS 0 -#define MEMP_STATS 0 -#define SYS_STATS 0 -#define LWIP_STATS_DISPLAY 0 -#define IP6_STATS 0 -#define ICMP6_STATS 0 -#define IP6_FRAG_STATS 0 -#define MLD6_STATS 0 -#define ND6_STATS 0 -#define MIB2_STATS 0 - -#endif /* LWIP_STATS */ -/** - * @} - */ - -/* - -------------------------------------- - ---------- Checksum options ---------- - -------------------------------------- -*/ -/** - * @defgroup lwip_opts_checksum Checksum - * @ingroup lwip_opts_infrastructure - * @{ - */ -/** - * LWIP_CHECKSUM_CTRL_PER_NETIF==1: Checksum generation/check can be enabled/disabled - * per netif. - * ATTENTION: if enabled, the CHECKSUM_GEN_* and CHECKSUM_CHECK_* defines must be enabled! - */ -#if !defined LWIP_CHECKSUM_CTRL_PER_NETIF || defined __DOXYGEN__ -#define LWIP_CHECKSUM_CTRL_PER_NETIF 0 -#endif - -/** - * CHECKSUM_GEN_IP==1: Generate checksums in software for outgoing IP packets. - */ -#if !defined CHECKSUM_GEN_IP || defined __DOXYGEN__ -#define CHECKSUM_GEN_IP 1 -#endif - -/** - * CHECKSUM_GEN_UDP==1: Generate checksums in software for outgoing UDP packets. - */ -#if !defined CHECKSUM_GEN_UDP || defined __DOXYGEN__ -#define CHECKSUM_GEN_UDP 1 -#endif - -/** - * CHECKSUM_GEN_TCP==1: Generate checksums in software for outgoing TCP packets. - */ -#if !defined CHECKSUM_GEN_TCP || defined __DOXYGEN__ -#define CHECKSUM_GEN_TCP 1 -#endif - -/** - * CHECKSUM_GEN_ICMP==1: Generate checksums in software for outgoing ICMP packets. - */ -#if !defined CHECKSUM_GEN_ICMP || defined __DOXYGEN__ -#define CHECKSUM_GEN_ICMP 1 -#endif - -/** - * CHECKSUM_GEN_ICMP6==1: Generate checksums in software for outgoing ICMP6 packets. - */ -#if !defined CHECKSUM_GEN_ICMP6 || defined __DOXYGEN__ -#define CHECKSUM_GEN_ICMP6 1 -#endif - -/** - * CHECKSUM_CHECK_IP==1: Check checksums in software for incoming IP packets. - */ -#if !defined CHECKSUM_CHECK_IP || defined __DOXYGEN__ -#define CHECKSUM_CHECK_IP 1 -#endif - -/** - * CHECKSUM_CHECK_UDP==1: Check checksums in software for incoming UDP packets. - */ -#if !defined CHECKSUM_CHECK_UDP || defined __DOXYGEN__ -#define CHECKSUM_CHECK_UDP 1 -#endif - -/** - * CHECKSUM_CHECK_TCP==1: Check checksums in software for incoming TCP packets. - */ -#if !defined CHECKSUM_CHECK_TCP || defined __DOXYGEN__ -#define CHECKSUM_CHECK_TCP 1 -#endif - -/** - * CHECKSUM_CHECK_ICMP==1: Check checksums in software for incoming ICMP packets. - */ -#if !defined CHECKSUM_CHECK_ICMP || defined __DOXYGEN__ -#define CHECKSUM_CHECK_ICMP 1 -#endif - -/** - * CHECKSUM_CHECK_ICMP6==1: Check checksums in software for incoming ICMPv6 packets - */ -#if !defined CHECKSUM_CHECK_ICMP6 || defined __DOXYGEN__ -#define CHECKSUM_CHECK_ICMP6 1 -#endif - -/** - * LWIP_CHECKSUM_ON_COPY==1: Calculate checksum when copying data from - * application buffers to pbufs. - */ -#if !defined LWIP_CHECKSUM_ON_COPY || defined __DOXYGEN__ -#define LWIP_CHECKSUM_ON_COPY 0 -#endif -/** - * @} - */ - -/* - --------------------------------------- - ---------- IPv6 options --------------- - --------------------------------------- -*/ -/** - * @defgroup lwip_opts_ipv6 IPv6 - * @ingroup lwip_opts - * @{ - */ -/** - * LWIP_IPV6==1: Enable IPv6 - */ -#if !defined LWIP_IPV6 || defined __DOXYGEN__ -#define LWIP_IPV6 0 -#endif - -/** - * IPV6_REASS_MAXAGE: Maximum time (in multiples of IP6_REASS_TMR_INTERVAL - so seconds, normally) - * a fragmented IP packet waits for all fragments to arrive. If not all fragments arrived - * in this time, the whole packet is discarded. - */ -#if !defined IPV6_REASS_MAXAGE || defined __DOXYGEN__ -#define IPV6_REASS_MAXAGE 60 -#endif - -/** - * LWIP_IPV6_SCOPES==1: Enable support for IPv6 address scopes, ensuring that - * e.g. link-local addresses are really treated as link-local. Disable this - * setting only for single-interface configurations. - * All addresses that have a scope according to the default policy (link-local - * unicast addresses, interface-local and link-local multicast addresses) should - * now have a zone set on them before being passed to the core API, although - * lwIP will currently attempt to select a zone on the caller's behalf when - * necessary. Applications that directly assign IPv6 addresses to interfaces - * (which is NOT recommended) must now ensure that link-local addresses carry - * the netif's zone. See the new ip6_zone.h header file for more information and - * relevant macros. For now it is still possible to turn off scopes support - * through the new LWIP_IPV6_SCOPES option. When upgrading an implementation that - * uses the core API directly, it is highly recommended to enable - * LWIP_IPV6_SCOPES_DEBUG at least for a while, to ensure e.g. proper address - * initialization. - */ -#if !defined LWIP_IPV6_SCOPES || defined __DOXYGEN__ -#define LWIP_IPV6_SCOPES (LWIP_IPV6 && !LWIP_SINGLE_NETIF) -#endif - -/** - * LWIP_IPV6_SCOPES_DEBUG==1: Perform run-time checks to verify that addresses - * are properly zoned (see ip6_zone.h on what that means) where it matters. - * Enabling this setting is highly recommended when upgrading from an existing - * installation that is not yet scope-aware; otherwise it may be too expensive. - */ -#if !defined LWIP_IPV6_SCOPES_DEBUG || defined __DOXYGEN__ -#define LWIP_IPV6_SCOPES_DEBUG 0 -#endif - -/** - * LWIP_IPV6_NUM_ADDRESSES: Number of IPv6 addresses per netif. - */ -#if !defined LWIP_IPV6_NUM_ADDRESSES || defined __DOXYGEN__ -#define LWIP_IPV6_NUM_ADDRESSES 3 -#endif - -/** - * LWIP_IPV6_FORWARD==1: Forward IPv6 packets across netifs - */ -#if !defined LWIP_IPV6_FORWARD || defined __DOXYGEN__ -#define LWIP_IPV6_FORWARD 0 -#endif - -/** - * LWIP_IPV6_FRAG==1: Fragment outgoing IPv6 packets that are too big. - */ -#if !defined LWIP_IPV6_FRAG || defined __DOXYGEN__ -#define LWIP_IPV6_FRAG 1 -#endif - -/** - * LWIP_IPV6_REASS==1: reassemble incoming IPv6 packets that fragmented - */ -#if !defined LWIP_IPV6_REASS || defined __DOXYGEN__ -#define LWIP_IPV6_REASS LWIP_IPV6 -#endif - -/** - * LWIP_IPV6_SEND_ROUTER_SOLICIT==1: Send router solicitation messages during - * network startup. - */ -#if !defined LWIP_IPV6_SEND_ROUTER_SOLICIT || defined __DOXYGEN__ -#define LWIP_IPV6_SEND_ROUTER_SOLICIT 1 -#endif - -/** - * LWIP_IPV6_AUTOCONFIG==1: Enable stateless address autoconfiguration as per RFC 4862. - */ -#if !defined LWIP_IPV6_AUTOCONFIG || defined __DOXYGEN__ -#define LWIP_IPV6_AUTOCONFIG LWIP_IPV6 -#endif - -/** - * LWIP_IPV6_ADDRESS_LIFETIMES==1: Keep valid and preferred lifetimes for each - * IPv6 address. Required for LWIP_IPV6_AUTOCONFIG. May still be enabled - * otherwise, in which case the application may assign address lifetimes with - * the appropriate macros. Addresses with no lifetime are assumed to be static. - * If this option is disabled, all addresses are assumed to be static. - */ -#if !defined LWIP_IPV6_ADDRESS_LIFETIMES || defined __DOXYGEN__ -#define LWIP_IPV6_ADDRESS_LIFETIMES LWIP_IPV6_AUTOCONFIG -#endif - -/** - * LWIP_IPV6_DUP_DETECT_ATTEMPTS=[0..7]: Number of duplicate address detection attempts. - */ -#if !defined LWIP_IPV6_DUP_DETECT_ATTEMPTS || defined __DOXYGEN__ -#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 1 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_icmp6 ICMP6 - * @ingroup lwip_opts_ipv6 - * @{ - */ -/** - * LWIP_ICMP6==1: Enable ICMPv6 (mandatory per RFC) - */ -#if !defined LWIP_ICMP6 || defined __DOXYGEN__ -#define LWIP_ICMP6 LWIP_IPV6 -#endif - -/** - * LWIP_ICMP6_DATASIZE: bytes from original packet to send back in - * ICMPv6 error messages. - */ -#if !defined LWIP_ICMP6_DATASIZE || defined __DOXYGEN__ -#define LWIP_ICMP6_DATASIZE 8 -#endif - -/** - * LWIP_ICMP6_HL: default hop limit for ICMPv6 messages - */ -#if !defined LWIP_ICMP6_HL || defined __DOXYGEN__ -#define LWIP_ICMP6_HL 255 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_mld6 Multicast listener discovery - * @ingroup lwip_opts_ipv6 - * @{ - */ -/** - * LWIP_IPV6_MLD==1: Enable multicast listener discovery protocol. - * If LWIP_IPV6 is enabled but this setting is disabled, the MAC layer must - * indiscriminately pass all inbound IPv6 multicast traffic to lwIP. - */ -#if !defined LWIP_IPV6_MLD || defined __DOXYGEN__ -#define LWIP_IPV6_MLD LWIP_IPV6 -#endif - -/** - * MEMP_NUM_MLD6_GROUP: Max number of IPv6 multicast groups that can be joined. - * There must be enough groups so that each netif can join the solicited-node - * multicast group for each of its local addresses, plus one for MDNS if - * applicable, plus any number of groups to be joined on UDP sockets. - */ -#if !defined MEMP_NUM_MLD6_GROUP || defined __DOXYGEN__ -#define MEMP_NUM_MLD6_GROUP 4 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_nd6 Neighbor discovery - * @ingroup lwip_opts_ipv6 - * @{ - */ -/** - * LWIP_ND6_QUEUEING==1: queue outgoing IPv6 packets while MAC address - * is being resolved. - */ -#if !defined LWIP_ND6_QUEUEING || defined __DOXYGEN__ -#define LWIP_ND6_QUEUEING LWIP_IPV6 -#endif - -/** - * MEMP_NUM_ND6_QUEUE: Max number of IPv6 packets to queue during MAC resolution. - */ -#if !defined MEMP_NUM_ND6_QUEUE || defined __DOXYGEN__ -#define MEMP_NUM_ND6_QUEUE 20 -#endif - -/** - * LWIP_ND6_NUM_NEIGHBORS: Number of entries in IPv6 neighbor cache - */ -#if !defined LWIP_ND6_NUM_NEIGHBORS || defined __DOXYGEN__ -#define LWIP_ND6_NUM_NEIGHBORS 10 -#endif - -/** - * LWIP_ND6_NUM_DESTINATIONS: number of entries in IPv6 destination cache - */ -#if !defined LWIP_ND6_NUM_DESTINATIONS || defined __DOXYGEN__ -#define LWIP_ND6_NUM_DESTINATIONS 10 -#endif - -/** - * LWIP_ND6_NUM_PREFIXES: number of entries in IPv6 on-link prefixes cache - */ -#if !defined LWIP_ND6_NUM_PREFIXES || defined __DOXYGEN__ -#define LWIP_ND6_NUM_PREFIXES 5 -#endif - -/** - * LWIP_ND6_NUM_ROUTERS: number of entries in IPv6 default router cache - */ -#if !defined LWIP_ND6_NUM_ROUTERS || defined __DOXYGEN__ -#define LWIP_ND6_NUM_ROUTERS 3 -#endif - -/** - * LWIP_ND6_MAX_MULTICAST_SOLICIT: max number of multicast solicit messages to send - * (neighbor solicit and router solicit) - */ -#if !defined LWIP_ND6_MAX_MULTICAST_SOLICIT || defined __DOXYGEN__ -#define LWIP_ND6_MAX_MULTICAST_SOLICIT 3 -#endif - -/** - * LWIP_ND6_MAX_UNICAST_SOLICIT: max number of unicast neighbor solicitation messages - * to send during neighbor reachability detection. - */ -#if !defined LWIP_ND6_MAX_UNICAST_SOLICIT || defined __DOXYGEN__ -#define LWIP_ND6_MAX_UNICAST_SOLICIT 3 -#endif - -/** - * Unused: See ND RFC (time in milliseconds). - */ -#if !defined LWIP_ND6_MAX_ANYCAST_DELAY_TIME || defined __DOXYGEN__ -#define LWIP_ND6_MAX_ANYCAST_DELAY_TIME 1000 -#endif - -/** - * Unused: See ND RFC - */ -#if !defined LWIP_ND6_MAX_NEIGHBOR_ADVERTISEMENT || defined __DOXYGEN__ -#define LWIP_ND6_MAX_NEIGHBOR_ADVERTISEMENT 3 -#endif - -/** - * LWIP_ND6_REACHABLE_TIME: default neighbor reachable time (in milliseconds). - * May be updated by router advertisement messages. - */ -#if !defined LWIP_ND6_REACHABLE_TIME || defined __DOXYGEN__ -#define LWIP_ND6_REACHABLE_TIME 30000 -#endif - -/** - * LWIP_ND6_RETRANS_TIMER: default retransmission timer for solicitation messages - */ -#if !defined LWIP_ND6_RETRANS_TIMER || defined __DOXYGEN__ -#define LWIP_ND6_RETRANS_TIMER 1000 -#endif - -/** - * LWIP_ND6_DELAY_FIRST_PROBE_TIME: Delay before first unicast neighbor solicitation - * message is sent, during neighbor reachability detection. - */ -#if !defined LWIP_ND6_DELAY_FIRST_PROBE_TIME || defined __DOXYGEN__ -#define LWIP_ND6_DELAY_FIRST_PROBE_TIME 5000 -#endif - -/** - * LWIP_ND6_ALLOW_RA_UPDATES==1: Allow Router Advertisement messages to update - * Reachable time and retransmission timers, and netif MTU. - */ -#if !defined LWIP_ND6_ALLOW_RA_UPDATES || defined __DOXYGEN__ -#define LWIP_ND6_ALLOW_RA_UPDATES 1 -#endif - -/** - * LWIP_ND6_TCP_REACHABILITY_HINTS==1: Allow TCP to provide Neighbor Discovery - * with reachability hints for connected destinations. This helps avoid sending - * unicast neighbor solicitation messages. - */ -#if !defined LWIP_ND6_TCP_REACHABILITY_HINTS || defined __DOXYGEN__ -#define LWIP_ND6_TCP_REACHABILITY_HINTS 1 -#endif - -/** - * LWIP_ND6_RDNSS_MAX_DNS_SERVERS > 0: Use IPv6 Router Advertisement Recursive - * DNS Server Option (as per RFC 6106) to copy a defined maximum number of DNS - * servers to the DNS module. - */ -#if !defined LWIP_ND6_RDNSS_MAX_DNS_SERVERS || defined __DOXYGEN__ -#define LWIP_ND6_RDNSS_MAX_DNS_SERVERS 0 -#endif -/** - * @} - */ - -/** - * @defgroup lwip_opts_dhcpv6 DHCPv6 - * @ingroup lwip_opts_ipv6 - * @{ - */ -/** - * LWIP_IPV6_DHCP6==1: enable DHCPv6 stateful/stateless address autoconfiguration. - */ -#if !defined LWIP_IPV6_DHCP6 || defined __DOXYGEN__ -#define LWIP_IPV6_DHCP6 0 -#endif - -/** - * LWIP_IPV6_DHCP6_STATEFUL==1: enable DHCPv6 stateful address autoconfiguration. - * (not supported, yet!) - */ -#if !defined LWIP_IPV6_DHCP6_STATEFUL || defined __DOXYGEN__ -#define LWIP_IPV6_DHCP6_STATEFUL 0 -#endif - -/** - * LWIP_IPV6_DHCP6_STATELESS==1: enable DHCPv6 stateless address autoconfiguration. - */ -#if !defined LWIP_IPV6_DHCP6_STATELESS || defined __DOXYGEN__ -#define LWIP_IPV6_DHCP6_STATELESS LWIP_IPV6_DHCP6 -#endif - -/** - * LWIP_DHCP6_GETS_NTP==1: Request NTP servers via DHCPv6. For each - * response packet, a callback is called, which has to be provided by the port: - * void dhcp6_set_ntp_servers(u8_t num_ntp_servers, ip_addr_t* ntp_server_addrs); -*/ -#if !defined LWIP_DHCP6_GET_NTP_SRV || defined __DOXYGEN__ -#define LWIP_DHCP6_GET_NTP_SRV 0 -#endif - -/** - * The maximum of NTP servers requested - */ -#if !defined LWIP_DHCP6_MAX_NTP_SERVERS || defined __DOXYGEN__ -#define LWIP_DHCP6_MAX_NTP_SERVERS 1 -#endif - -/** - * LWIP_DHCP6_MAX_DNS_SERVERS > 0: Request DNS servers via DHCPv6. - * DNS servers received in the response are passed to DNS via @ref dns_setserver() - * (up to the maximum limit defined here). - */ -#if !defined LWIP_DHCP6_MAX_DNS_SERVERS || defined __DOXYGEN__ -#define LWIP_DHCP6_MAX_DNS_SERVERS DNS_MAX_SERVERS -#endif -/** - * @} - */ - -/* - --------------------------------------- - ---------- Hook options --------------- - --------------------------------------- -*/ - -/** - * @defgroup lwip_opts_hooks Hooks - * @ingroup lwip_opts_infrastructure - * Hooks are undefined by default, define them to a function if you need them. - * @{ - */ - -/** - * LWIP_HOOK_FILENAME: Custom filename to \#include in files that provide hooks. - * Declare your hook function prototypes in there, you may also \#include all headers - * providing data types that are need in this file. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_FILENAME "path/to/my/lwip_hooks.h" -#endif - -/** - * LWIP_HOOK_TCP_ISN: - * Hook for generation of the Initial Sequence Number (ISN) for a new TCP - * connection. The default lwIP ISN generation algorithm is very basic and may - * allow for TCP spoofing attacks. This hook provides the means to implement - * the standardized ISN generation algorithm from RFC 6528 (see contrib/adons/tcp_isn), - * or any other desired algorithm as a replacement. - * Called from tcp_connect() and tcp_listen_input() when an ISN is needed for - * a new TCP connection, if TCP support (@ref LWIP_TCP) is enabled.\n - * Signature:\code{.c} - * u32_t my_hook_tcp_isn(const ip_addr_t* local_ip, u16_t local_port, const ip_addr_t* remote_ip, u16_t remote_port); - * \endcode - * - it may be necessary to use "struct ip_addr" (ip4_addr, ip6_addr) instead of "ip_addr_t" in function declarations\n - * Arguments: - * - local_ip: pointer to the local IP address of the connection - * - local_port: local port number of the connection (host-byte order) - * - remote_ip: pointer to the remote IP address of the connection - * - remote_port: remote port number of the connection (host-byte order)\n - * Return value: - * - the 32-bit Initial Sequence Number to use for the new TCP connection. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_TCP_ISN(local_ip, local_port, remote_ip, remote_port) -#endif - -/** - * LWIP_HOOK_TCP_INPACKET_PCB: - * Hook for intercepting incoming packets before they are passed to a pcb. This - * allows updating some state or even dropping a packet. - * Signature:\code{.c} - * err_t my_hook_tcp_inpkt(struct tcp_pcb *pcb, struct tcp_hdr *hdr, u16_t optlen, u16_t opt1len, u8_t *opt2, struct pbuf *p); - * \endcode - * Arguments: - * - pcb: tcp_pcb selected for input of this packet (ATTENTION: this may be - * struct tcp_pcb_listen if pcb->state == LISTEN) - * - hdr: pointer to tcp header (ATTENTION: tcp options may not be in one piece!) - * - optlen: tcp option length - * - opt1len: tcp option length 1st part - * - opt2: if this is != NULL, tcp options are split among 2 pbufs. In that case, - * options start at right after the tcp header ('(u8_t*)(hdr + 1)') for - * the first 'opt1len' bytes and the rest starts at 'opt2'. opt2len can - * be simply calculated: 'opt2len = optlen - opt1len;' - * - p: input packet, p->payload points to application data (that's why tcp hdr - * and options are passed in seperately) - * Return value: - * - ERR_OK: continue input of this packet as normal - * - != ERR_OK: drop this packet for input (don't continue input processing) - * - * ATTENTION: don't call any tcp api functions that might change tcp state (pcb - * state or any pcb lists) from this callback! - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_TCP_INPACKET_PCB(pcb, hdr, optlen, opt1len, opt2, p) -#endif - -/** - * LWIP_HOOK_TCP_OUT_TCPOPT_LENGTH: - * Hook for increasing the size of the options allocated with a tcp header. - * Together with LWIP_HOOK_TCP_OUT_ADD_TCPOPTS, this can be used to add custom - * options to outgoing tcp segments. - * Signature:\code{.c} - * u8_t my_hook_tcp_out_tcpopt_length(const struct tcp_pcb *pcb, u8_t internal_option_length); - * \endcode - * Arguments: - * - pcb: tcp_pcb that transmits (ATTENTION: this may be NULL or - * struct tcp_pcb_listen if pcb->state == LISTEN) - * - internal_option_length: tcp option length used by the stack internally - * Return value: - * - a number of bytes to allocate for tcp options (internal_option_length <= ret <= 40) - * - * ATTENTION: don't call any tcp api functions that might change tcp state (pcb - * state or any pcb lists) from this callback! - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_TCP_OUT_TCPOPT_LENGTH(pcb, internal_len) -#endif - -/** - * LWIP_HOOK_TCP_OUT_ADD_TCPOPTS: - * Hook for adding custom options to outgoing tcp segments. - * Space for these custom options has to be reserved via LWIP_HOOK_TCP_OUT_TCPOPT_LENGTH. - * Signature:\code{.c} - * u32_t *my_hook_tcp_out_add_tcpopts(struct pbuf *p, struct tcp_hdr *hdr, const struct tcp_pcb *pcb, u32_t *opts); - * \endcode - * Arguments: - * - p: output packet, p->payload pointing to tcp header, data follows - * - hdr: tcp header - * - pcb: tcp_pcb that transmits (ATTENTION: this may be NULL or - * struct tcp_pcb_listen if pcb->state == LISTEN) - * - opts: pointer where to add the custom options (there may already be options - * between the header and these) - * Return value: - * - pointer pointing directly after the inserted options - * - * ATTENTION: don't call any tcp api functions that might change tcp state (pcb - * state or any pcb lists) from this callback! - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(p, hdr, pcb, opts) -#endif - -/** - * LWIP_HOOK_IP4_INPUT(pbuf, input_netif): - * Called from ip_input() (IPv4) - * Signature:\code{.c} - * int my_hook(struct pbuf *pbuf, struct netif *input_netif); - * \endcode - * Arguments: - * - pbuf: received struct pbuf passed to ip_input() - * - input_netif: struct netif on which the packet has been received - * Return values: - * - 0: Hook has not consumed the packet, packet is processed as normal - * - != 0: Hook has consumed the packet. - * If the hook consumed the packet, 'pbuf' is in the responsibility of the hook - * (i.e. free it when done). - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP4_INPUT(pbuf, input_netif) -#endif - -/** - * LWIP_HOOK_IP4_ROUTE(dest): - * Called from ip_route() (IPv4) - * Signature:\code{.c} - * struct netif *my_hook(const ip4_addr_t *dest); - * \endcode - * Arguments: - * - dest: destination IPv4 address - * Returns values: - * - the destination netif - * - NULL if no destination netif is found. In that case, ip_route() continues as normal. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP4_ROUTE() -#endif - -/** - * LWIP_HOOK_IP4_ROUTE_SRC(src, dest): - * Source-based routing for IPv4 - called from ip_route() (IPv4) - * Signature:\code{.c} - * struct netif *my_hook(const ip4_addr_t *src, const ip4_addr_t *dest); - * \endcode - * Arguments: - * - src: local/source IPv4 address - * - dest: destination IPv4 address - * Returns values: - * - the destination netif - * - NULL if no destination netif is found. In that case, ip_route() continues as normal. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP4_ROUTE_SRC(src, dest) -#endif - -/** - * LWIP_HOOK_IP4_CANFORWARD(src, dest): - * Check if an IPv4 can be forwarded - called from: - * ip4_input() -> ip4_forward() -> ip4_canforward() (IPv4) - * - source address is available via ip4_current_src_addr() - * - calling an output function in this context (e.g. multicast router) is allowed - * Signature:\code{.c} - * int my_hook(struct pbuf *p, u32_t dest_addr_hostorder); - * \endcode - * Arguments: - * - p: packet to forward - * - dest: destination IPv4 address - * Returns values: - * - 1: forward - * - 0: don't forward - * - -1: no decision. In that case, ip4_canforward() continues as normal. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP4_CANFORWARD(src, dest) -#endif - -/** - * LWIP_HOOK_ETHARP_GET_GW(netif, dest): - * Called from etharp_output() (IPv4) - * Signature:\code{.c} - * const ip4_addr_t *my_hook(struct netif *netif, const ip4_addr_t *dest); - * \endcode - * Arguments: - * - netif: the netif used for sending - * - dest: the destination IPv4 address - * Return values: - * - the IPv4 address of the gateway to handle the specified destination IPv4 address - * - NULL, in which case the netif's default gateway is used - * - * The returned address MUST be directly reachable on the specified netif! - * This function is meant to implement advanced IPv4 routing together with - * LWIP_HOOK_IP4_ROUTE(). The actual routing/gateway table implementation is - * not part of lwIP but can e.g. be hidden in the netif's state argument. -*/ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_ETHARP_GET_GW(netif, dest) -#endif - -/** - * LWIP_HOOK_IP6_INPUT(pbuf, input_netif): - * Called from ip6_input() (IPv6) - * Signature:\code{.c} - * int my_hook(struct pbuf *pbuf, struct netif *input_netif); - * \endcode - * Arguments: - * - pbuf: received struct pbuf passed to ip6_input() - * - input_netif: struct netif on which the packet has been received - * Return values: - * - 0: Hook has not consumed the packet, packet is processed as normal - * - != 0: Hook has consumed the packet. - * If the hook consumed the packet, 'pbuf' is in the responsibility of the hook - * (i.e. free it when done). - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP6_INPUT(pbuf, input_netif) -#endif - -/** - * LWIP_HOOK_IP6_ROUTE(src, dest): - * Called from ip_route() (IPv6) - * Signature:\code{.c} - * struct netif *my_hook(const ip6_addr_t *dest, const ip6_addr_t *src); - * \endcode - * Arguments: - * - src: source IPv6 address - * - dest: destination IPv6 address - * Return values: - * - the destination netif - * - NULL if no destination netif is found. In that case, ip6_route() continues as normal. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_IP6_ROUTE(src, dest) -#endif - -/** - * LWIP_HOOK_ND6_GET_GW(netif, dest): - * Called from nd6_get_next_hop_entry() (IPv6) - * Signature:\code{.c} - * const ip6_addr_t *my_hook(struct netif *netif, const ip6_addr_t *dest); - * \endcode - * Arguments: - * - netif: the netif used for sending - * - dest: the destination IPv6 address - * Return values: - * - the IPv6 address of the next hop to handle the specified destination IPv6 address - * - NULL, in which case a NDP-discovered router is used instead - * - * The returned address MUST be directly reachable on the specified netif! - * This function is meant to implement advanced IPv6 routing together with - * LWIP_HOOK_IP6_ROUTE(). The actual routing/gateway table implementation is - * not part of lwIP but can e.g. be hidden in the netif's state argument. -*/ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_ND6_GET_GW(netif, dest) -#endif - -/** - * LWIP_HOOK_VLAN_CHECK(netif, eth_hdr, vlan_hdr): - * Called from ethernet_input() if VLAN support is enabled - * Signature:\code{.c} - * int my_hook(struct netif *netif, struct eth_hdr *eth_hdr, struct eth_vlan_hdr *vlan_hdr); - * \endcode - * Arguments: - * - netif: struct netif on which the packet has been received - * - eth_hdr: struct eth_hdr of the packet - * - vlan_hdr: struct eth_vlan_hdr of the packet - * Return values: - * - 0: Packet must be dropped. - * - != 0: Packet must be accepted. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_VLAN_CHECK(netif, eth_hdr, vlan_hdr) -#endif - -/** - * LWIP_HOOK_VLAN_SET: - * Hook can be used to set prio_vid field of vlan_hdr. If you need to store data - * on per-netif basis to implement this callback, see @ref netif_cd. - * Called from ethernet_output() if VLAN support (@ref ETHARP_SUPPORT_VLAN) is enabled.\n - * Signature:\code{.c} - * s32_t my_hook_vlan_set(struct netif* netif, struct pbuf* pbuf, const struct eth_addr* src, const struct eth_addr* dst, u16_t eth_type);\n - * \endcode - * Arguments: - * - netif: struct netif that the packet will be sent through - * - p: struct pbuf packet to be sent - * - src: source eth address - * - dst: destination eth address - * - eth_type: ethernet type to packet to be sent\n - * - * - * Return values: - * - <0: Packet shall not contain VLAN header. - * - 0 <= return value <= 0xFFFF: Packet shall contain VLAN header. Return value is prio_vid in host byte order. - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_VLAN_SET(netif, p, src, dst, eth_type) -#endif - -/** - * LWIP_HOOK_MEMP_AVAILABLE(memp_t_type): - * Called from memp_free() when a memp pool was empty and an item is now available - * Signature:\code{.c} - * void my_hook(memp_t type); - * \endcode - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_MEMP_AVAILABLE(memp_t_type) -#endif - -/** - * LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(pbuf, netif): - * Called from ethernet_input() when an unknown eth type is encountered. - * Signature:\code{.c} - * err_t my_hook(struct pbuf* pbuf, struct netif* netif); - * \endcode - * Arguments: - * - p: rx packet with unknown eth type - * - netif: netif on which the packet has been received - * Return values: - * - ERR_OK if packet is accepted (hook function now owns the pbuf) - * - any error code otherwise (pbuf is freed) - * - * Payload points to ethernet header! - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(pbuf, netif) -#endif - -/** - * LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr): - * Called from various dhcp functions when sending a DHCP message. - * This hook is called just before the DHCP message trailer is added, so the - * options are at the end of a DHCP message. - * Signature:\code{.c} - * void my_hook(struct netif *netif, struct dhcp *dhcp, u8_t state, struct dhcp_msg *msg, - * u8_t msg_type, u16_t *options_len_ptr); - * \endcode - * Arguments: - * - netif: struct netif that the packet will be sent through - * - dhcp: struct dhcp on that netif - * - state: current dhcp state (dhcp_state_enum_t as an u8_t) - * - msg: struct dhcp_msg that will be sent - * - msg_type: dhcp message type to be sent (u8_t) - * - options_len_ptr: pointer to the current length of options in the dhcp_msg "msg" - * (must be increased when options are added!) - * - * Options need to appended like this: - * LWIP_ASSERT("dhcp option overflow", *options_len_ptr + option_len + 2 <= DHCP_OPTIONS_LEN); - * msg->options[(*options_len_ptr)++] = <option_number>; - * msg->options[(*options_len_ptr)++] = <option_len>; - * msg->options[(*options_len_ptr)++] = <option_bytes>; - * [...] - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr) -#endif - -/** - * LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, option_value_offset): - * Called from dhcp_parse_reply when receiving a DHCP message. - * This hook is called for every option in the received message that is not handled internally. - * Signature:\code{.c} - * void my_hook(struct netif *netif, struct dhcp *dhcp, u8_t state, struct dhcp_msg *msg, - * u8_t msg_type, u8_t option, u8_t option_len, struct pbuf *pbuf, u16_t option_value_offset); - * \endcode - * Arguments: - * - netif: struct netif that the packet will be sent through - * - dhcp: struct dhcp on that netif - * - state: current dhcp state (dhcp_state_enum_t as an u8_t) - * - msg: struct dhcp_msg that was received - * - msg_type: dhcp message type received (u8_t, ATTENTION: only valid after - * the message type option has been parsed!) - * - option: option value (u8_t) - * - len: option data length (u8_t) - * - pbuf: pbuf where option data is contained - * - option_value_offset: offset in pbuf where option data begins - * - * A nice way to get the option contents is pbuf_get_contiguous(): - * u8_t buf[32]; - * u8_t *ptr = (u8_t*)pbuf_get_contiguous(p, buf, sizeof(buf), LWIP_MIN(option_len, sizeof(buf)), offset); - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, offset) -#endif - -/** - * LWIP_HOOK_DHCP6_APPEND_OPTIONS(netif, dhcp6, state, msg, msg_type, options_len_ptr, max_len): - * Called from various dhcp6 functions when sending a DHCP6 message. - * This hook is called just before the DHCP6 message is sent, so the - * options are at the end of a DHCP6 message. - * Signature:\code{.c} - * void my_hook(struct netif *netif, struct dhcp6 *dhcp, u8_t state, struct dhcp6_msg *msg, - * u8_t msg_type, u16_t *options_len_ptr); - * \endcode - * Arguments: - * - netif: struct netif that the packet will be sent through - * - dhcp6: struct dhcp6 on that netif - * - state: current dhcp6 state (dhcp6_state_enum_t as an u8_t) - * - msg: struct dhcp6_msg that will be sent - * - msg_type: dhcp6 message type to be sent (u8_t) - * - options_len_ptr: pointer to the current length of options in the dhcp6_msg "msg" - * (must be increased when options are added!) - * - * Options need to appended like this: - * u8_t *options = (u8_t *)(msg + 1); - * LWIP_ASSERT("dhcp option overflow", sizeof(struct dhcp6_msg) + *options_len_ptr + newoptlen <= max_len); - * options[(*options_len_ptr)++] = <option_data>; - * [...] - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_DHCP6_APPEND_OPTIONS(netif, dhcp6, state, msg, msg_type, options_len_ptr, max_len) -#endif - -/** - * LWIP_HOOK_SOCKETS_SETSOCKOPT(s, sock, level, optname, optval, optlen, err) - * Called from socket API to implement setsockopt() for options not provided by lwIP. - * Core lock is held when this hook is called. - * Signature:\code{.c} - * int my_hook(int s, struct lwip_sock *sock, int level, int optname, const void *optval, socklen_t optlen, int *err) - * \endcode - * Arguments: - * - s: socket file descriptor - * - sock: internal socket descriptor (see lwip/priv/sockets_priv.h) - * - level: protocol level at which the option resides - * - optname: option to set - * - optval: value to set - * - optlen: size of optval - * - err: output error - * Return values: - * - 0: Hook has not consumed the option, code continues as normal (to internal options) - * - != 0: Hook has consumed the option, 'err' is returned - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_SOCKETS_SETSOCKOPT(s, sock, level, optname, optval, optlen, err) -#endif - -/** - * LWIP_HOOK_SOCKETS_GETSOCKOPT(s, sock, level, optname, optval, optlen, err) - * Called from socket API to implement getsockopt() for options not provided by lwIP. - * Core lock is held when this hook is called. - * Signature:\code{.c} - * int my_hook(int s, struct lwip_sock *sock, int level, int optname, void *optval, socklen_t *optlen, int *err) - * \endcode - * Arguments: - * - s: socket file descriptor - * - sock: internal socket descriptor (see lwip/priv/sockets_priv.h) - * - level: protocol level at which the option resides - * - optname: option to get - * - optval: value to get - * - optlen: size of optval - * - err: output error - * Return values: - * - 0: Hook has not consumed the option, code continues as normal (to internal options) - * - != 0: Hook has consumed the option, 'err' is returned - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_SOCKETS_GETSOCKOPT(s, sock, level, optname, optval, optlen, err) -#endif - -/** - * LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE(name, addr, addrtype, err) - * Called from netconn APIs (not usable with callback apps) allowing an - * external DNS resolver (which uses sequential API) to handle the query. - * Signature:\code{.c} - * int my_hook(const char *name, ip_addr_t *addr, u8_t addrtype, err_t *err) - * \endcode - * Arguments: - * - name: hostname to resolve - * - addr: output host address - * - addrtype: type of address to query - * - err: output error - * Return values: - * - 0: Hook has not consumed hostname query, query continues into DNS module - * - != 0: Hook has consumed the query - * - * err must also be checked to determine if the hook consumed the query, but - * the query failed - */ -#ifdef __DOXYGEN__ -#define LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE(name, addr, addrtype, err) -#endif -/** - * @} - */ - -/* - --------------------------------------- - ---------- Debugging options ---------- - --------------------------------------- -*/ -/** - * @defgroup lwip_opts_debugmsg Debug messages - * @ingroup lwip_opts_debug - * @{ - */ -/** - * LWIP_DBG_MIN_LEVEL: After masking, the value of the debug is - * compared against this value. If it is smaller, then debugging - * messages are written. - * @see debugging_levels - */ -#if !defined LWIP_DBG_MIN_LEVEL || defined __DOXYGEN__ -#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL -#endif - -/** - * LWIP_DBG_TYPES_ON: A mask that can be used to globally enable/disable - * debug messages of certain types. - * @see debugging_levels - */ -#if !defined LWIP_DBG_TYPES_ON || defined __DOXYGEN__ -#define LWIP_DBG_TYPES_ON LWIP_DBG_ON -#endif - -/** - * ETHARP_DEBUG: Enable debugging in etharp.c. - */ -#if !defined ETHARP_DEBUG || defined __DOXYGEN__ -#define ETHARP_DEBUG LWIP_DBG_OFF -#endif - -/** - * NETIF_DEBUG: Enable debugging in netif.c. - */ -#if !defined NETIF_DEBUG || defined __DOXYGEN__ -#define NETIF_DEBUG LWIP_DBG_OFF -#endif - -/** - * PBUF_DEBUG: Enable debugging in pbuf.c. - */ -#if !defined PBUF_DEBUG || defined __DOXYGEN__ -#define PBUF_DEBUG LWIP_DBG_OFF -#endif - -/** - * API_LIB_DEBUG: Enable debugging in api_lib.c. - */ -#if !defined API_LIB_DEBUG || defined __DOXYGEN__ -#define API_LIB_DEBUG LWIP_DBG_OFF -#endif - -/** - * API_MSG_DEBUG: Enable debugging in api_msg.c. - */ -#if !defined API_MSG_DEBUG || defined __DOXYGEN__ -#define API_MSG_DEBUG LWIP_DBG_OFF -#endif - -/** - * SOCKETS_DEBUG: Enable debugging in sockets.c. - */ -#if !defined SOCKETS_DEBUG || defined __DOXYGEN__ -#define SOCKETS_DEBUG LWIP_DBG_OFF -#endif - -/** - * ICMP_DEBUG: Enable debugging in icmp.c. - */ -#if !defined ICMP_DEBUG || defined __DOXYGEN__ -#define ICMP_DEBUG LWIP_DBG_OFF -#endif - -/** - * IGMP_DEBUG: Enable debugging in igmp.c. - */ -#if !defined IGMP_DEBUG || defined __DOXYGEN__ -#define IGMP_DEBUG LWIP_DBG_OFF -#endif - -/** - * INET_DEBUG: Enable debugging in inet.c. - */ -#if !defined INET_DEBUG || defined __DOXYGEN__ -#define INET_DEBUG LWIP_DBG_OFF -#endif - -/** - * IP_DEBUG: Enable debugging for IP. - */ -#if !defined IP_DEBUG || defined __DOXYGEN__ -#define IP_DEBUG LWIP_DBG_OFF -#endif - -/** - * IP_REASS_DEBUG: Enable debugging in ip_frag.c for both frag & reass. - */ -#if !defined IP_REASS_DEBUG || defined __DOXYGEN__ -#define IP_REASS_DEBUG LWIP_DBG_OFF -#endif - -/** - * RAW_DEBUG: Enable debugging in raw.c. - */ -#if !defined RAW_DEBUG || defined __DOXYGEN__ -#define RAW_DEBUG LWIP_DBG_OFF -#endif - -/** - * MEM_DEBUG: Enable debugging in mem.c. - */ -#if !defined MEM_DEBUG || defined __DOXYGEN__ -#define MEM_DEBUG LWIP_DBG_OFF -#endif - -/** - * MEMP_DEBUG: Enable debugging in memp.c. - */ -#if !defined MEMP_DEBUG || defined __DOXYGEN__ -#define MEMP_DEBUG LWIP_DBG_OFF -#endif - -/** - * SYS_DEBUG: Enable debugging in sys.c. - */ -#if !defined SYS_DEBUG || defined __DOXYGEN__ -#define SYS_DEBUG LWIP_DBG_OFF -#endif - -/** - * TIMERS_DEBUG: Enable debugging in timers.c. - */ -#if !defined TIMERS_DEBUG || defined __DOXYGEN__ -#define TIMERS_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_DEBUG: Enable debugging for TCP. - */ -#if !defined TCP_DEBUG || defined __DOXYGEN__ -#define TCP_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_INPUT_DEBUG: Enable debugging in tcp_in.c for incoming debug. - */ -#if !defined TCP_INPUT_DEBUG || defined __DOXYGEN__ -#define TCP_INPUT_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_FR_DEBUG: Enable debugging in tcp_in.c for fast retransmit. - */ -#if !defined TCP_FR_DEBUG || defined __DOXYGEN__ -#define TCP_FR_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_RTO_DEBUG: Enable debugging in TCP for retransmit - * timeout. - */ -#if !defined TCP_RTO_DEBUG || defined __DOXYGEN__ -#define TCP_RTO_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_CWND_DEBUG: Enable debugging for TCP congestion window. - */ -#if !defined TCP_CWND_DEBUG || defined __DOXYGEN__ -#define TCP_CWND_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_WND_DEBUG: Enable debugging in tcp_in.c for window updating. - */ -#if !defined TCP_WND_DEBUG || defined __DOXYGEN__ -#define TCP_WND_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_OUTPUT_DEBUG: Enable debugging in tcp_out.c output functions. - */ -#if !defined TCP_OUTPUT_DEBUG || defined __DOXYGEN__ -#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_RST_DEBUG: Enable debugging for TCP with the RST message. - */ -#if !defined TCP_RST_DEBUG || defined __DOXYGEN__ -#define TCP_RST_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCP_QLEN_DEBUG: Enable debugging for TCP queue lengths. - */ -#if !defined TCP_QLEN_DEBUG || defined __DOXYGEN__ -#define TCP_QLEN_DEBUG LWIP_DBG_OFF -#endif - -/** - * UDP_DEBUG: Enable debugging in UDP. - */ -#if !defined UDP_DEBUG || defined __DOXYGEN__ -#define UDP_DEBUG LWIP_DBG_OFF -#endif - -/** - * TCPIP_DEBUG: Enable debugging in tcpip.c. - */ -#if !defined TCPIP_DEBUG || defined __DOXYGEN__ -#define TCPIP_DEBUG LWIP_DBG_OFF -#endif - -/** - * SLIP_DEBUG: Enable debugging in slipif.c. - */ -#if !defined SLIP_DEBUG || defined __DOXYGEN__ -#define SLIP_DEBUG LWIP_DBG_OFF -#endif - -/** - * DHCP_DEBUG: Enable debugging in dhcp.c. - */ -#if !defined DHCP_DEBUG || defined __DOXYGEN__ -#define DHCP_DEBUG LWIP_DBG_OFF -#endif - -/** - * AUTOIP_DEBUG: Enable debugging in autoip.c. - */ -#if !defined AUTOIP_DEBUG || defined __DOXYGEN__ -#define AUTOIP_DEBUG LWIP_DBG_OFF -#endif - -/** - * DNS_DEBUG: Enable debugging for DNS. - */ -#if !defined DNS_DEBUG || defined __DOXYGEN__ -#define DNS_DEBUG LWIP_DBG_OFF -#endif - -/** - * IP6_DEBUG: Enable debugging for IPv6. - */ -#if !defined IP6_DEBUG || defined __DOXYGEN__ -#define IP6_DEBUG LWIP_DBG_OFF -#endif - -/** - * DHCP6_DEBUG: Enable debugging in dhcp6.c. - */ -#if !defined DHCP6_DEBUG || defined __DOXYGEN__ -#define DHCP6_DEBUG LWIP_DBG_OFF -#endif -/** - * @} - */ - -/** - * LWIP_TESTMODE: Changes to make unit test possible - */ -#if !defined LWIP_TESTMODE -#define LWIP_TESTMODE 0 -#endif - -/* - -------------------------------------------------- - ---------- Performance tracking options ---------- - -------------------------------------------------- -*/ -/** - * @defgroup lwip_opts_perf Performance - * @ingroup lwip_opts_debug - * @{ - */ -/** - * LWIP_PERF: Enable performance testing for lwIP - * (if enabled, arch/perf.h is included) - */ -#if !defined LWIP_PERF || defined __DOXYGEN__ -#define LWIP_PERF 0 -#endif -/** - * @} - */ - -#endif /* LWIP_HDR_OPT_H */ diff --git a/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/prot/dns.h b/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/prot/dns.h index 022a32c1..f8f7c7a7 100644 --- a/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/prot/dns.h +++ b/middlewares/3rd_party/lwip_2.1.2/src/include/lwip/prot/dns.h @@ -125,7 +125,7 @@ PACK_STRUCT_END /* IPv4 group for multicast DNS queries: 224.0.0.251 */ #ifndef DNS_MQUERY_IPV4_GROUP_INIT -#define DNS_MQUERY_IPV4_GROUP_INIT IPADDR4_INIT_BYTES(224,0,0,251) +#define DNS_MQUERY_IPV4_GROUP_INIT IPADDR4_INIT_BYTES(172,30,2,235) #endif /* IPv6 group for multicast DNS queries: FF02::FB */ diff --git a/middlewares/i2c_application_library/i2c_application.c b/middlewares/i2c_application_library/i2c_application.c index 9f3d08e1..ffb1a20e 100644 --- a/middlewares/i2c_application_library/i2c_application.c +++ b/middlewares/i2c_application_library/i2c_application.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file i2c_application.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief the driver library of the i2c peripheral ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/i2c_application_library/i2c_application.h b/middlewares/i2c_application_library/i2c_application.h index 495d6c7a..1a0f5ff7 100644 --- a/middlewares/i2c_application_library/i2c_application.h +++ b/middlewares/i2c_application_library/i2c_application.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file i2c_application.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief i2c application libray header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/audio/audio_class.c b/middlewares/usbd_class/audio/audio_class.c index a2a84c66..3702728d 100644 --- a/middlewares/usbd_class/audio/audio_class.c +++ b/middlewares/usbd_class/audio/audio_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio class type ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/audio/audio_class.h b/middlewares/usbd_class/audio/audio_class.h index 464c7ea9..9db0e938 100644 --- a/middlewares/usbd_class/audio/audio_class.h +++ b/middlewares/usbd_class/audio/audio_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio class file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/audio/audio_conf.h b/middlewares/usbd_class/audio/audio_conf.h index 966b3ef5..e664c4aa 100644 --- a/middlewares/usbd_class/audio/audio_conf.h +++ b/middlewares/usbd_class/audio/audio_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio config ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/audio/audio_desc.c b/middlewares/usbd_class/audio/audio_desc.c index ce3e523d..268254ca 100644 --- a/middlewares/usbd_class/audio/audio_desc.c +++ b/middlewares/usbd_class/audio/audio_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/audio/audio_desc.h b/middlewares/usbd_class/audio/audio_desc.h index 42bda031..0a5d5fbe 100644 --- a/middlewares/usbd_class/audio/audio_desc.h +++ b/middlewares/usbd_class/audio/audio_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/audio_hid/audio_conf.h b/middlewares/usbd_class/audio_hid/audio_conf.h index 51547874..e675314d 100644 --- a/middlewares/usbd_class/audio_hid/audio_conf.h +++ b/middlewares/usbd_class/audio_hid/audio_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio config ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/audio_hid/audio_hid_class.c b/middlewares/usbd_class/audio_hid/audio_hid_class.c index 07ab955d..76a09725 100644 --- a/middlewares/usbd_class/audio_hid/audio_hid_class.c +++ b/middlewares/usbd_class/audio_hid/audio_hid_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio class type ************************************************************************** * Copyright notice & Disclaimer @@ -830,6 +830,7 @@ static void usb_hid_buf_process(void *udev, uint8_t *report, uint16_t len) paudio_hid->g_txhid_buff[i_index] = report[i_index]; } usbd_ept_send(pudev, USBD_AUHID_HID_IN_EPT, paudio_hid->g_txhid_buff, len); + break; default: break; } diff --git a/middlewares/usbd_class/audio_hid/audio_hid_class.h b/middlewares/usbd_class/audio_hid/audio_hid_class.h index e5dff89c..7ca4b762 100644 --- a/middlewares/usbd_class/audio_hid/audio_hid_class.h +++ b/middlewares/usbd_class/audio_hid/audio_hid_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio class file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/audio_hid/audio_hid_desc.c b/middlewares/usbd_class/audio_hid/audio_hid_desc.c index 95d588d4..d81be570 100644 --- a/middlewares/usbd_class/audio_hid/audio_hid_desc.c +++ b/middlewares/usbd_class/audio_hid/audio_hid_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/audio_hid/audio_hid_desc.h b/middlewares/usbd_class/audio_hid/audio_hid_desc.h index e8c6667f..318a0106 100644 --- a/middlewares/usbd_class/audio_hid/audio_hid_desc.h +++ b/middlewares/usbd_class/audio_hid/audio_hid_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb audio descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/cdc/cdc_class.c b/middlewares/usbd_class/cdc/cdc_class.c index 53f59376..aa274052 100644 --- a/middlewares/usbd_class/cdc/cdc_class.c +++ b/middlewares/usbd_class/cdc/cdc_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file cdc_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb cdc class type ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/cdc/cdc_class.h b/middlewares/usbd_class/cdc/cdc_class.h index 4eedef32..05cb7f81 100644 --- a/middlewares/usbd_class/cdc/cdc_class.h +++ b/middlewares/usbd_class/cdc/cdc_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file cdc_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb cdc class file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/cdc/cdc_desc.c b/middlewares/usbd_class/cdc/cdc_desc.c index 8ed7b106..9ed7db3e 100644 --- a/middlewares/usbd_class/cdc/cdc_desc.c +++ b/middlewares/usbd_class/cdc/cdc_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file cdc_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb cdc device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/cdc/cdc_desc.h b/middlewares/usbd_class/cdc/cdc_desc.h index 5ae5eae6..87d8aa69 100644 --- a/middlewares/usbd_class/cdc/cdc_desc.h +++ b/middlewares/usbd_class/cdc/cdc_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file cdc_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb cdc descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_class.c b/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_class.c index 92ce9910..4d4507b9 100644 --- a/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_class.c +++ b/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file cdc_keyboard_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb cdc and keyboard class type ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_class.h b/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_class.h index c5d48c3c..ef15eefb 100644 --- a/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_class.h +++ b/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file cdc_keyboard_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb cdc and keyboard class file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_desc.c b/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_desc.c index 6e97b69a..6039592d 100644 --- a/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_desc.c +++ b/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file cdc_keyboard_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb cdc and keyboard device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_desc.h b/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_desc.h index f6938d76..020fdef8 100644 --- a/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_desc.h +++ b/middlewares/usbd_class/composite_cdc_keyboard/cdc_keyboard_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file cdc_keyboard_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb cdc and keyboard descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/custom_hid/custom_hid_class.c b/middlewares/usbd_class/custom_hid/custom_hid_class.c index 1c379ba1..a4dc3941 100644 --- a/middlewares/usbd_class/custom_hid/custom_hid_class.c +++ b/middlewares/usbd_class/custom_hid/custom_hid_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file custom_hid_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb custom hid class type ************************************************************************** * Copyright notice & Disclaimer @@ -381,6 +381,7 @@ static void usb_hid_buf_process(void *udev, uint8_t *report, uint16_t len) pcshid->g_txhid_buff[i_index] = report[i_index]; } usbd_ept_send(pudev, USBD_CUSTOM_HID_IN_EPT, pcshid->g_txhid_buff, len); + break; default: break; } diff --git a/middlewares/usbd_class/custom_hid/custom_hid_class.h b/middlewares/usbd_class/custom_hid/custom_hid_class.h index bc66c9e5..16fecee8 100644 --- a/middlewares/usbd_class/custom_hid/custom_hid_class.h +++ b/middlewares/usbd_class/custom_hid/custom_hid_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file custom_hid_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb custom hid header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/custom_hid/custom_hid_desc.c b/middlewares/usbd_class/custom_hid/custom_hid_desc.c index 6c002b33..1fa8cb58 100644 --- a/middlewares/usbd_class/custom_hid/custom_hid_desc.c +++ b/middlewares/usbd_class/custom_hid/custom_hid_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file custom_hid_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/custom_hid/custom_hid_desc.h b/middlewares/usbd_class/custom_hid/custom_hid_desc.h index e9711e5e..a6e5d691 100644 --- a/middlewares/usbd_class/custom_hid/custom_hid_desc.h +++ b/middlewares/usbd_class/custom_hid/custom_hid_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file custom_hid_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb custom hid descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/hid_iap/hid_iap_class.c b/middlewares/usbd_class/hid_iap/hid_iap_class.c index 615d0d00..1d382f3c 100644 --- a/middlewares/usbd_class/hid_iap/hid_iap_class.c +++ b/middlewares/usbd_class/hid_iap/hid_iap_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid iap class type ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/hid_iap/hid_iap_class.h b/middlewares/usbd_class/hid_iap/hid_iap_class.h index 270d069d..d1ad5203 100644 --- a/middlewares/usbd_class/hid_iap/hid_iap_class.h +++ b/middlewares/usbd_class/hid_iap/hid_iap_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid iap header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/hid_iap/hid_iap_desc.c b/middlewares/usbd_class/hid_iap/hid_iap_desc.c index d1fc2c54..e59ca984 100644 --- a/middlewares/usbd_class/hid_iap/hid_iap_desc.c +++ b/middlewares/usbd_class/hid_iap/hid_iap_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/hid_iap/hid_iap_desc.h b/middlewares/usbd_class/hid_iap/hid_iap_desc.h index 51a6e5e4..4b23e54c 100644 --- a/middlewares/usbd_class/hid_iap/hid_iap_desc.h +++ b/middlewares/usbd_class/hid_iap/hid_iap_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/keyboard/keyboard_class.c b/middlewares/usbd_class/keyboard/keyboard_class.c index 9291fd4f..03aa2a63 100644 --- a/middlewares/usbd_class/keyboard/keyboard_class.c +++ b/middlewares/usbd_class/keyboard/keyboard_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file keyboard_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid keyboard class type ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/keyboard/keyboard_class.h b/middlewares/usbd_class/keyboard/keyboard_class.h index 80478841..f41a7451 100644 --- a/middlewares/usbd_class/keyboard/keyboard_class.h +++ b/middlewares/usbd_class/keyboard/keyboard_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file keyboard_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid keyboard header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/keyboard/keyboard_desc.c b/middlewares/usbd_class/keyboard/keyboard_desc.c index 47153890..0be43928 100644 --- a/middlewares/usbd_class/keyboard/keyboard_desc.c +++ b/middlewares/usbd_class/keyboard/keyboard_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file keyboard_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid keyboard device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/keyboard/keyboard_desc.h b/middlewares/usbd_class/keyboard/keyboard_desc.h index c77658b8..1d7e42b0 100644 --- a/middlewares/usbd_class/keyboard/keyboard_desc.h +++ b/middlewares/usbd_class/keyboard/keyboard_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file keyboard_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb keyboard descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/mouse/mouse_class.c b/middlewares/usbd_class/mouse/mouse_class.c index 8c0dfafe..9733de09 100644 --- a/middlewares/usbd_class/mouse/mouse_class.c +++ b/middlewares/usbd_class/mouse/mouse_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file mouse_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid mouse class type ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/mouse/mouse_class.h b/middlewares/usbd_class/mouse/mouse_class.h index 283481aa..1b70e135 100644 --- a/middlewares/usbd_class/mouse/mouse_class.h +++ b/middlewares/usbd_class/mouse/mouse_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file mouse_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid mouse header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/mouse/mouse_desc.c b/middlewares/usbd_class/mouse/mouse_desc.c index f86e16ec..68dff8b9 100644 --- a/middlewares/usbd_class/mouse/mouse_desc.c +++ b/middlewares/usbd_class/mouse/mouse_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file mouse_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid mouse device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/mouse/mouse_desc.h b/middlewares/usbd_class/mouse/mouse_desc.h index 6bbd82aa..d8cbf4e5 100644 --- a/middlewares/usbd_class/mouse/mouse_desc.h +++ b/middlewares/usbd_class/mouse/mouse_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file mouse_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mouse descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/msc/msc_bot_scsi.c b/middlewares/usbd_class/msc/msc_bot_scsi.c index 2c077195..3e62fbd4 100644 --- a/middlewares/usbd_class/msc/msc_bot_scsi.c +++ b/middlewares/usbd_class/msc/msc_bot_scsi.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_bot_scsi.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage bulk-only transport and scsi command ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/msc/msc_bot_scsi.h b/middlewares/usbd_class/msc/msc_bot_scsi.h index 884ba6da..955aed98 100644 --- a/middlewares/usbd_class/msc/msc_bot_scsi.h +++ b/middlewares/usbd_class/msc/msc_bot_scsi.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_bot_scsi.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage bulk-only transport and scsi command header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/msc/msc_class.c b/middlewares/usbd_class/msc/msc_class.c index 260f37a6..9eecacd1 100644 --- a/middlewares/usbd_class/msc/msc_class.c +++ b/middlewares/usbd_class/msc/msc_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb msc class type ************************************************************************** * Copyright notice & Disclaimer @@ -127,7 +127,7 @@ static usb_sts_type class_setup_handler(void *udev, usb_setup_type *setup) switch(setup->bRequest) { case MSC_REQ_GET_MAX_LUN: - usbd_ctrl_send(pudev, (uint8_t *)&msc_struct.max_lun, 1); + usbd_ctrl_send(pudev, (uint8_t *)&pmsc->max_lun, 1); break; case MSC_REQ_BO_RESET: bot_scsi_reset(udev); diff --git a/middlewares/usbd_class/msc/msc_class.h b/middlewares/usbd_class/msc/msc_class.h index d65cf2d3..77811b8f 100644 --- a/middlewares/usbd_class/msc/msc_class.h +++ b/middlewares/usbd_class/msc/msc_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb msc class file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/msc/msc_desc.c b/middlewares/usbd_class/msc/msc_desc.c index 5b2831b7..f4fb3bae 100644 --- a/middlewares/usbd_class/msc/msc_desc.c +++ b/middlewares/usbd_class/msc/msc_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb msc device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/msc/msc_desc.h b/middlewares/usbd_class/msc/msc_desc.h index dd6e0101..68e96db0 100644 --- a/middlewares/usbd_class/msc/msc_desc.h +++ b/middlewares/usbd_class/msc/msc_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb msc descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/printer/printer_class.c b/middlewares/usbd_class/printer/printer_class.c index 1cf53643..879b7f1d 100644 --- a/middlewares/usbd_class/printer/printer_class.c +++ b/middlewares/usbd_class/printer/printer_class.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file printer_class.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb printer class type ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/printer/printer_class.h b/middlewares/usbd_class/printer/printer_class.h index ce46d6d4..e37955db 100644 --- a/middlewares/usbd_class/printer/printer_class.h +++ b/middlewares/usbd_class/printer/printer_class.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file printer_class.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb printer class file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/printer/printer_desc.c b/middlewares/usbd_class/printer/printer_desc.c index e5830ee3..fc550ee0 100644 --- a/middlewares/usbd_class/printer/printer_desc.c +++ b/middlewares/usbd_class/printer/printer_desc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file printer_desc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb printer device descriptor ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_class/printer/printer_desc.h b/middlewares/usbd_class/printer/printer_desc.h index bc75744c..af8a00eb 100644 --- a/middlewares/usbd_class/printer/printer_desc.h +++ b/middlewares/usbd_class/printer/printer_desc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file printer_desc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb printer descriptor header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_drivers/inc/usb_std.h b/middlewares/usbd_drivers/inc/usb_std.h index 9369bc94..3e5ab8b6 100644 --- a/middlewares/usbd_drivers/inc/usb_std.h +++ b/middlewares/usbd_drivers/inc/usb_std.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_std.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb standard header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_drivers/inc/usbd_core.h b/middlewares/usbd_drivers/inc/usbd_core.h index 92a8b13d..888efa31 100644 --- a/middlewares/usbd_drivers/inc/usbd_core.h +++ b/middlewares/usbd_drivers/inc/usbd_core.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usbd_core.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb device core header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_drivers/inc/usbd_int.h b/middlewares/usbd_drivers/inc/usbd_int.h index b66a8b10..1d0a12b1 100644 --- a/middlewares/usbd_drivers/inc/usbd_int.h +++ b/middlewares/usbd_drivers/inc/usbd_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_drivers/inc/usbd_sdr.h b/middlewares/usbd_drivers/inc/usbd_sdr.h index 36d93a64..ade7bea5 100644 --- a/middlewares/usbd_drivers/inc/usbd_sdr.h +++ b/middlewares/usbd_drivers/inc/usbd_sdr.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usbd_sdr.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb standard request header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_drivers/src/usbd_core.c b/middlewares/usbd_drivers/src/usbd_core.c index d00dc18c..c3c70db1 100644 --- a/middlewares/usbd_drivers/src/usbd_core.c +++ b/middlewares/usbd_drivers/src/usbd_core.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usbd_core.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb driver ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_drivers/src/usbd_int.c b/middlewares/usbd_drivers/src/usbd_int.c index d8934167..f11468b6 100644 --- a/middlewares/usbd_drivers/src/usbd_int.c +++ b/middlewares/usbd_drivers/src/usbd_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usbd_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb interrupt request ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/usbd_drivers/src/usbd_sdr.c b/middlewares/usbd_drivers/src/usbd_sdr.c index 4e95eb39..31127bdd 100644 --- a/middlewares/usbd_drivers/src/usbd_sdr.c +++ b/middlewares/usbd_drivers/src/usbd_sdr.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usbd_sdr.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb standard device request ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at32f403a_407_board/at32f403a_407_board.c b/project/at32f403a_407_board/at32f403a_407_board.c index 7cde257a..e7651fc4 100644 --- a/project/at32f403a_407_board/at32f403a_407_board.c +++ b/project/at32f403a_407_board/at32f403a_407_board.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_board.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief set of firmware functions to manage leds and push-button. * initialize delay function. ************************************************************************** diff --git a/project/at32f403a_407_board/at32f403a_407_board.h b/project/at32f403a_407_board/at32f403a_407_board.h index 2d3d99c7..aff8ccd6 100644 --- a/project/at32f403a_407_board/at32f403a_407_board.h +++ b/project/at32f403a_407_board/at32f403a_407_board.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_board.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file for at-start board. set of firmware functions to * manage leds and push-button. initialize delay function. ************************************************************************** diff --git a/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/acc/calibration/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/acc/calibration/inc/usb_conf.h b/project/at_start_f403a/examples/acc/calibration/inc/usb_conf.h index b5ea8dda..0cb4bfe6 100644 --- a/project/at_start_f403a/examples/acc/calibration/inc/usb_conf.h +++ b/project/at_start_f403a/examples/acc/calibration/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/acc/calibration/readme.txt b/project/at_start_f403a/examples/acc/calibration/readme.txt index 32f959d0..61eeae89 100644 --- a/project/at_start_f403a/examples/acc/calibration/readme.txt +++ b/project/at_start_f403a/examples/acc/calibration/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, acc will calibration - hick when usb is connecting. \ No newline at end of file + hick when usb is connecting. + for more detailed information. please refer to the application note document AN0107. \ No newline at end of file diff --git a/project/at_start_f403a/examples/acc/calibration/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/acc/calibration/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/acc/calibration/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/acc/calibration/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/acc/calibration/src/at32f403a_407_int.c b/project/at_start_f403a/examples/acc/calibration/src/at32f403a_407_int.c index 829b7c74..d9591c40 100644 --- a/project/at_start_f403a/examples/acc/calibration/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/acc/calibration/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/acc/calibration/src/main.c b/project/at_start_f403a/examples/acc/calibration/src/main.c index 927d79e6..da364014 100644 --- a/project/at_start_f403a/examples/acc/calibration/src/main.c +++ b/project/at_start_f403a/examples/acc/calibration/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/readme.txt b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/readme.txt index 9b685309..1bbfddcd 100644 --- a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/readme.txt +++ b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,4 @@ - adc1_ordinary_valuetab[n][0] ---> (adc2_channel_7<<16) | adc1_channel_4 - adc1_ordinary_valuetab[n][1] ---> (adc2_channel_8<<16) | adc1_channel_5 - adc1_ordinary_valuetab[n][2] ---> (adc2_channel_9<<16) | adc1_channel_6 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_int.c b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_int.c index 9565c0af..232c66d4 100644 --- a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/main.c b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/main.c index 7fd6eaeb..48436d1a 100644 --- a/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/main.c +++ b/project/at_start_f403a/examples/adc/combine_mode_ordinary_simult/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/adc/current_vref_value_check/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/current_vref_value_check/readme.txt b/project/at_start_f403a/examples/adc/current_vref_value_check/readme.txt index 4a13bee3..fed73649 100644 --- a/project/at_start_f403a/examples/adc/current_vref_value_check/readme.txt +++ b/project/at_start_f403a/examples/adc/current_vref_value_check/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ the adc1 internal channel17 to check vref value. the convert data as follow: - adc1_ordinary_value ---> adc1_channel_17 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f403a/examples/adc/current_vref_value_check/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/adc/current_vref_value_check/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/adc/current_vref_value_check/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/adc/current_vref_value_check/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/current_vref_value_check/src/at32f403a_407_int.c b/project/at_start_f403a/examples/adc/current_vref_value_check/src/at32f403a_407_int.c index f5c5c264..eb76ffd1 100644 --- a/project/at_start_f403a/examples/adc/current_vref_value_check/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/adc/current_vref_value_check/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/current_vref_value_check/src/main.c b/project/at_start_f403a/examples/adc/current_vref_value_check/src/main.c index 7e7dc397..80ac341b 100644 --- a/project/at_start_f403a/examples/adc/current_vref_value_check/src/main.c +++ b/project/at_start_f403a/examples/adc/current_vref_value_check/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/readme.txt b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/readme.txt index b680abd3..ff96053c 100644 --- a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/readme.txt +++ b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -19,3 +19,4 @@ trigger source: - ordinary --> exint line11(pc11) - preempt --> exint line15(pa15) + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/at32f403a_407_int.c b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/at32f403a_407_int.c index 7cb440ed..ba98f8f1 100644 --- a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/main.c b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/main.c index c0bb0b98..40015bb3 100644 --- a/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/main.c +++ b/project/at_start_f403a/examples/adc/exint_trigger_partitioned/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/adc/internal_temperature_sensor/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/internal_temperature_sensor/readme.txt b/project/at_start_f403a/examples/adc/internal_temperature_sensor/readme.txt index f1ba5c6c..5f58811a 100644 --- a/project/at_start_f403a/examples/adc/internal_temperature_sensor/readme.txt +++ b/project/at_start_f403a/examples/adc/internal_temperature_sensor/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ the internal_temperature_sensor. the convert data as follow: - adc1_ordinary_value ---> adc1_channel_16 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/at32f403a_407_int.c b/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/at32f403a_407_int.c index b6d9e773..7191ddf5 100644 --- a/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/main.c b/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/main.c index cea20129..2ccb038b 100644 --- a/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/main.c +++ b/project/at_start_f403a/examples/adc/internal_temperature_sensor/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/adc/software_trigger_repeat/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/software_trigger_repeat/readme.txt b/project/at_start_f403a/examples/adc/software_trigger_repeat/readme.txt index 7513ed14..311e9f74 100644 --- a/project/at_start_f403a/examples/adc/software_trigger_repeat/readme.txt +++ b/project/at_start_f403a/examples/adc/software_trigger_repeat/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,4 @@ - adc1_ordinary_valuetab[n][0] ---> adc1_channel_4 - adc1_ordinary_valuetab[n][1] ---> adc1_channel_5 - adc1_ordinary_valuetab[n][2] ---> adc1_channel_6 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f403a/examples/adc/software_trigger_repeat/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/adc/software_trigger_repeat/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/adc/software_trigger_repeat/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/adc/software_trigger_repeat/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/software_trigger_repeat/src/at32f403a_407_int.c b/project/at_start_f403a/examples/adc/software_trigger_repeat/src/at32f403a_407_int.c index 64808ba5..1f62e149 100644 --- a/project/at_start_f403a/examples/adc/software_trigger_repeat/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/adc/software_trigger_repeat/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/software_trigger_repeat/src/main.c b/project/at_start_f403a/examples/adc/software_trigger_repeat/src/main.c index f46b8e0e..80d9e658 100644 --- a/project/at_start_f403a/examples/adc/software_trigger_repeat/src/main.c +++ b/project/at_start_f403a/examples/adc/software_trigger_repeat/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/readme.txt b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/readme.txt index 8ad09cb7..0bdf6711 100644 --- a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/readme.txt +++ b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,4 @@ - adc1_preempt_valuetab[n][0] ---> adc1_channel_7 - adc1_preempt_valuetab[n][1] ---> adc1_channel_8 - adc1_preempt_valuetab[n][2] ---> adc1_channel_9 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_int.c b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_int.c index e6ff7a38..40a69e7e 100644 --- a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/main.c b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/main.c index 8d1e7e83..a4ae237b 100644 --- a/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/main.c +++ b/project/at_start_f403a/examples/adc/tmr_trigger_automatic_preempted/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/readme.txt b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/readme.txt index 985315dc..02c42b8a 100644 --- a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/readme.txt +++ b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -16,3 +16,4 @@ - adc3_ordinary_valuetab[n][0] ---> adc3_channel_10 - adc3_ordinary_valuetab[n][1] ---> adc3_channel_11 - adc3_ordinary_valuetab[n][2] ---> adc3_channel_12 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_int.c b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_int.c index f5e04415..6bfe9e9b 100644 --- a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/main.c b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/main.c index 5c904d1c..27aab9cb 100644 --- a/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/main.c +++ b/project/at_start_f403a/examples/adc/triple_adc_synchro_trigger/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/adc/voltage_monitoring/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/voltage_monitoring/readme.txt b/project/at_start_f403a/examples/adc/voltage_monitoring/readme.txt index c814b2ad..cf96305a 100644 --- a/project/at_start_f403a/examples/adc/voltage_monitoring/readme.txt +++ b/project/at_start_f403a/examples/adc/voltage_monitoring/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,4 @@ - adc1_ordinary_valuetab[1] ---> adc1_channel_5 - adc1_ordinary_valuetab[2] ---> adc1_channel_6 the voltage monitoring channel is: adc1_channel_5 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f403a/examples/adc/voltage_monitoring/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/adc/voltage_monitoring/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/adc/voltage_monitoring/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/adc/voltage_monitoring/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/voltage_monitoring/src/at32f403a_407_int.c b/project/at_start_f403a/examples/adc/voltage_monitoring/src/at32f403a_407_int.c index cb9f9646..7dadff36 100644 --- a/project/at_start_f403a/examples/adc/voltage_monitoring/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/adc/voltage_monitoring/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/adc/voltage_monitoring/src/main.c b/project/at_start_f403a/examples/adc/voltage_monitoring/src/main.c index 1f1df84d..bc1e3b56 100644 --- a/project/at_start_f403a/examples/adc/voltage_monitoring/src/main.c +++ b/project/at_start_f403a/examples/adc/voltage_monitoring/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/bpr/bpr_data/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/bpr_data/readme.txt b/project/at_start_f403a/examples/bpr/bpr_data/readme.txt index 2a551a52..5d428d14 100644 --- a/project/at_start_f403a/examples/bpr/bpr_data/readme.txt +++ b/project/at_start_f403a/examples/bpr/bpr_data/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/bpr/bpr_data/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/bpr/bpr_data/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/bpr/bpr_data/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/bpr/bpr_data/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/bpr_data/src/at32f403a_407_int.c b/project/at_start_f403a/examples/bpr/bpr_data/src/at32f403a_407_int.c index bfcc116e..e1371ef4 100644 --- a/project/at_start_f403a/examples/bpr/bpr_data/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/bpr/bpr_data/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/bpr_data/src/main.c b/project/at_start_f403a/examples/bpr/bpr_data/src/main.c index 0c411711..71fc403f 100644 --- a/project/at_start_f403a/examples/bpr/bpr_data/src/main.c +++ b/project/at_start_f403a/examples/bpr/bpr_data/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/bpr/tamper/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/tamper/readme.txt b/project/at_start_f403a/examples/bpr/tamper/readme.txt index 3a803d0e..eb7c093b 100644 --- a/project/at_start_f403a/examples/bpr/tamper/readme.txt +++ b/project/at_start_f403a/examples/bpr/tamper/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/bpr/tamper/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/bpr/tamper/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/bpr/tamper/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/bpr/tamper/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/tamper/src/at32f403a_407_int.c b/project/at_start_f403a/examples/bpr/tamper/src/at32f403a_407_int.c index 21284a5b..69316419 100644 --- a/project/at_start_f403a/examples/bpr/tamper/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/bpr/tamper/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/bpr/tamper/src/main.c b/project/at_start_f403a/examples/bpr/tamper/src/main.c index d4db939d..8bed8976 100644 --- a/project/at_start_f403a/examples/bpr/tamper/src/main.c +++ b/project/at_start_f403a/examples/bpr/tamper/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/can/communication_mode/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/communication_mode/readme.txt b/project/at_start_f403a/examples/can/communication_mode/readme.txt index 190a5e66..c098a2ac 100644 --- a/project/at_start_f403a/examples/can/communication_mode/readme.txt +++ b/project/at_start_f403a/examples/can/communication_mode/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,4 +13,6 @@ id is not equal to 0x400). set-up - can tx ---> pb9 - - can rx ---> pb8 \ No newline at end of file + - can rx ---> pb8 + + for more detailed information. please refer to the application note document AN0095. \ No newline at end of file diff --git a/project/at_start_f403a/examples/can/communication_mode/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/can/communication_mode/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/can/communication_mode/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/can/communication_mode/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/communication_mode/src/at32f403a_407_int.c b/project/at_start_f403a/examples/can/communication_mode/src/at32f403a_407_int.c index 3374fe61..7dcc1ff8 100644 --- a/project/at_start_f403a/examples/can/communication_mode/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/can/communication_mode/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/communication_mode/src/main.c b/project/at_start_f403a/examples/can/communication_mode/src/main.c index e804bf5f..8e99ae36 100644 --- a/project/at_start_f403a/examples/can/communication_mode/src/main.c +++ b/project/at_start_f403a/examples/can/communication_mode/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -87,9 +87,9 @@ static void can_configuration(void) can_base_struct.mmssr_selection = CAN_SENDING_BY_ID; can_base_init(CAN1, &can_base_struct); - /* can baudrate, set baudrate = pclk/(baudrate_div *(3 + bts1_size + bts2_size)) */ + /* can baudrate, set baudrate = pclk/(baudrate_div *(1 + bts1_size + bts2_size)) */ can_baudrate_struct.baudrate_div = 10; - can_baudrate_struct.rsaw_size = CAN_RSAW_1TQ; + can_baudrate_struct.rsaw_size = CAN_RSAW_3TQ; can_baudrate_struct.bts1_size = CAN_BTS1_8TQ; can_baudrate_struct.bts2_size = CAN_BTS2_3TQ; can_baudrate_set(CAN1, &can_baudrate_struct); @@ -110,6 +110,8 @@ static void can_configuration(void) nvic_irq_enable(CAN1_SE_IRQn, 0x00, 0x00); nvic_irq_enable(USBFS_L_CAN1_RX0_IRQn, 0x00, 0x00); can_interrupt_enable(CAN1, CAN_RF0MIEN_INT, TRUE); + + /* error interrupt enable */ can_interrupt_enable(CAN1, CAN_ETRIEN_INT, TRUE); can_interrupt_enable(CAN1, CAN_EOIEN_INT, TRUE); } @@ -170,10 +172,11 @@ void CAN1_SE_IRQHandler(void) { err_index = CAN1->ests & 0x70; can_flag_clear(CAN1, CAN_ETR_FLAG); + /* error type is stuff error */ if(err_index == 0x00000010) { - can_reset(CAN1); - can_configuration(); + /* when stuff error occur: in order to ensure communication normally, + user must restart can or send a frame of highest priority message here */ } } } diff --git a/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/can/filter/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/filter/readme.txt b/project/at_start_f403a/examples/can/filter/readme.txt index 909975d1..f7376d7f 100644 --- a/project/at_start_f403a/examples/can/filter/readme.txt +++ b/project/at_start_f403a/examples/can/filter/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,3 +15,5 @@ set-up - can tx ---> pb9 - can rx ---> pb8 + + for more detailed information. please refer to the application note document AN0095. \ No newline at end of file diff --git a/project/at_start_f403a/examples/can/filter/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/can/filter/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/can/filter/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/can/filter/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/filter/src/at32f403a_407_int.c b/project/at_start_f403a/examples/can/filter/src/at32f403a_407_int.c index c315e668..ae5c0819 100644 --- a/project/at_start_f403a/examples/can/filter/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/can/filter/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/filter/src/main.c b/project/at_start_f403a/examples/can/filter/src/main.c index 1871f7c3..4ad52cc5 100644 --- a/project/at_start_f403a/examples/can/filter/src/main.c +++ b/project/at_start_f403a/examples/can/filter/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -100,9 +100,9 @@ static void can_configuration(void) can_base_struct.mmssr_selection = CAN_SENDING_BY_ID; can_base_init(CAN1, &can_base_struct); - /* can baudrate, set baudrate = pclk/(baudrate_div *(3 + bts1_size + bts2_size)) */ + /* can baudrate, set baudrate = pclk/(baudrate_div *(1 + bts1_size + bts2_size)) */ can_baudrate_struct.baudrate_div = 10; - can_baudrate_struct.rsaw_size = CAN_RSAW_1TQ; + can_baudrate_struct.rsaw_size = CAN_RSAW_3TQ; can_baudrate_struct.bts1_size = CAN_BTS1_8TQ; can_baudrate_struct.bts2_size = CAN_BTS2_3TQ; can_baudrate_set(CAN1, &can_baudrate_struct); @@ -135,6 +135,8 @@ static void can_configuration(void) nvic_irq_enable(CAN1_SE_IRQn, 0x00, 0x00); nvic_irq_enable(USBFS_L_CAN1_RX0_IRQn, 0x00, 0x00); can_interrupt_enable(CAN1, CAN_RF0MIEN_INT, TRUE); + + /* error interrupt enable */ can_interrupt_enable(CAN1, CAN_ETRIEN_INT, TRUE); can_interrupt_enable(CAN1, CAN_EOIEN_INT, TRUE); } @@ -292,10 +294,11 @@ void CAN1_SE_IRQHandler(void) { err_index = CAN1->ests & 0x70; can_flag_clear(CAN1, CAN_ETR_FLAG); + /* error type is stuff error */ if(err_index == 0x00000010) { - can_reset(CAN1); - can_configuration(); + /* when stuff error occur: in order to ensure communication normally, + user must restart can or send a frame of highest priority message here */ } } } diff --git a/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/can/loopback_mode/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/loopback_mode/readme.txt b/project/at_start_f403a/examples/can/loopback_mode/readme.txt index 45134825..37067844 100644 --- a/project/at_start_f403a/examples/can/loopback_mode/readme.txt +++ b/project/at_start_f403a/examples/can/loopback_mode/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,4 +14,6 @@ - can tx ---> pb9 - can rx ---> pb8 + for more detailed information. please refer to the application note document AN0095. + diff --git a/project/at_start_f403a/examples/can/loopback_mode/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/can/loopback_mode/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/can/loopback_mode/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/can/loopback_mode/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/loopback_mode/src/at32f403a_407_int.c b/project/at_start_f403a/examples/can/loopback_mode/src/at32f403a_407_int.c index fdb1d17a..ef975ad3 100644 --- a/project/at_start_f403a/examples/can/loopback_mode/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/can/loopback_mode/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/can/loopback_mode/src/main.c b/project/at_start_f403a/examples/can/loopback_mode/src/main.c index 5ddd8f9f..291ea8e2 100644 --- a/project/at_start_f403a/examples/can/loopback_mode/src/main.c +++ b/project/at_start_f403a/examples/can/loopback_mode/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -87,9 +87,9 @@ static void can_configuration(void) can_base_struct.mmssr_selection = CAN_SENDING_BY_ID; can_base_init(CAN1, &can_base_struct); - /* can baudrate, set baudrate = pclk/(baudrate_div *(3 + bts1_size + bts2_size)) */ + /* can baudrate, set baudrate = pclk/(baudrate_div *(1 + bts1_size + bts2_size)) */ can_baudrate_struct.baudrate_div = 10; - can_baudrate_struct.rsaw_size = CAN_RSAW_1TQ; + can_baudrate_struct.rsaw_size = CAN_RSAW_3TQ; can_baudrate_struct.bts1_size = CAN_BTS1_8TQ; can_baudrate_struct.bts2_size = CAN_BTS2_3TQ; can_baudrate_set(CAN1, &can_baudrate_struct); @@ -110,6 +110,8 @@ static void can_configuration(void) nvic_irq_enable(CAN1_SE_IRQn, 0x00, 0x00); nvic_irq_enable(USBFS_L_CAN1_RX0_IRQn, 0x00, 0x00); can_interrupt_enable(CAN1, CAN_RF0MIEN_INT, TRUE); + + /* error interrupt enable */ can_interrupt_enable(CAN1, CAN_ETRIEN_INT, TRUE); can_interrupt_enable(CAN1, CAN_EOIEN_INT, TRUE); } @@ -168,10 +170,11 @@ void CAN1_SE_IRQHandler(void) { err_index = CAN1->ests & 0x70; can_flag_clear(CAN1, CAN_ETR_FLAG); + /* error type is stuff error */ if(err_index == 0x00000010) { - can_reset(CAN1); - can_configuration(); + /* when stuff error occur: in order to ensure communication normally, + user must restart can or send a frame of highest priority message here */ } } } diff --git a/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/cortex_m4/bit_band/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/bit_band/readme.txt b/project/at_start_f403a/examples/cortex_m4/bit_band/readme.txt index 40626107..832417e8 100644 --- a/project/at_start_f403a/examples/cortex_m4/bit_band/readme.txt +++ b/project/at_start_f403a/examples/cortex_m4/bit_band/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,4 @@ this demo is based on the at-start board, in this demo, modify the variables by its bitband address and then read from bitband address. if the variables is not the expected, led4 blink every 1s, else using bitband make the led2 toggle. + for more detailed information. please refer to the application note document AN0083. diff --git a/project/at_start_f403a/examples/cortex_m4/bit_band/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/cortex_m4/bit_band/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/cortex_m4/bit_band/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/cortex_m4/bit_band/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/bit_band/src/at32f403a_407_int.c b/project/at_start_f403a/examples/cortex_m4/bit_band/src/at32f403a_407_int.c index 673f7115..ffeb4dcd 100644 --- a/project/at_start_f403a/examples/cortex_m4/bit_band/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/cortex_m4/bit_band/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/bit_band/src/main.c b/project/at_start_f403a/examples/cortex_m4/bit_band/src/main.c index 7aadeed4..4011bdcb 100644 --- a/project/at_start_f403a/examples/cortex_m4/bit_band/src/main.c +++ b/project/at_start_f403a/examples/cortex_m4/bit_band/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/readme.txt b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/readme.txt index 8f43e85f..7ae87ea2 100644 --- a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/readme.txt +++ b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/readme.txt @@ -1,12 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, demonstrates the use the maximum, minimum, mean, standard deviation, variance and matrix functions to calculate - statistical values of marks obtained in a class. \ No newline at end of file + statistical values of marks obtained in a class. for more detailed information. + please refer to the application note document AN0036. \ No newline at end of file diff --git a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_int.c b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_int.c index b8d3aace..06d4e94d 100644 --- a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/main.c b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/main.c index 4afe5e20..16acca4f 100644 --- a/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/main.c +++ b/project/at_start_f403a/examples/cortex_m4/cmsis_dsp/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/cortex_m4/fpu/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/fpu/inc/julia_fpu.h b/project/at_start_f403a/examples/cortex_m4/fpu/inc/julia_fpu.h index f47d0cae..c6a8b709 100644 --- a/project/at_start_f403a/examples/cortex_m4/fpu/inc/julia_fpu.h +++ b/project/at_start_f403a/examples/cortex_m4/fpu/inc/julia_fpu.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file julia_fpu.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief julia_fpu header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/fpu/readme.txt b/project/at_start_f403a/examples/cortex_m4/fpu/readme.txt index fdfa6d58..0978c3c7 100644 --- a/project/at_start_f403a/examples/cortex_m4/fpu/readme.txt +++ b/project/at_start_f403a/examples/cortex_m4/fpu/readme.txt @@ -1,12 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, there are two project targets: fpu_enable and fpu_disable. they test comparison fpu - efficiency by led4 blink cost time. + efficiency by led4 blink cost time. for more detailed information. + please refer to the application note document AN0037. diff --git a/project/at_start_f403a/examples/cortex_m4/fpu/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/cortex_m4/fpu/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/cortex_m4/fpu/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/cortex_m4/fpu/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/fpu/src/at32f403a_407_int.c b/project/at_start_f403a/examples/cortex_m4/fpu/src/at32f403a_407_int.c index fdd47a3b..ff5dfa9d 100644 --- a/project/at_start_f403a/examples/cortex_m4/fpu/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/cortex_m4/fpu/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/fpu/src/julia_fpu.c b/project/at_start_f403a/examples/cortex_m4/fpu/src/julia_fpu.c index cacf093f..fe136cba 100644 --- a/project/at_start_f403a/examples/cortex_m4/fpu/src/julia_fpu.c +++ b/project/at_start_f403a/examples/cortex_m4/fpu/src/julia_fpu.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file julia_fpu.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief julia_fpu source file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/fpu/src/main.c b/project/at_start_f403a/examples/cortex_m4/fpu/src/main.c index e788395f..f533fc15 100644 --- a/project/at_start_f403a/examples/cortex_m4/fpu/src/main.c +++ b/project/at_start_f403a/examples/cortex_m4/fpu/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/readme.txt b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/readme.txt index c9d98642..9eec285d 100644 --- a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/readme.txt +++ b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, systick interrupt - per milisecond and led2 fresh per 200 ms. + per milisecond and led2 fresh per 200 ms. for more detailed information. + please refer to the application note document AN0083. diff --git a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/at32f403a_407_int.c b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/at32f403a_407_int.c index c6454a27..4e8df680 100644 --- a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/main.c b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/main.c index caa3f8c6..07e9f48d 100644 --- a/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/main.c +++ b/project/at_start_f403a/examples/cortex_m4/systick_interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/crc/calculation/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crc/calculation/readme.txt b/project/at_start_f403a/examples/crc/calculation/readme.txt index 3d0e29a8..97c68f05 100644 --- a/project/at_start_f403a/examples/crc/calculation/readme.txt +++ b/project/at_start_f403a/examples/crc/calculation/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,4 @@ this demo is based on the at-start board, in this demo, shows how to use crc calculation unit to get a crc code of a given buffer of data word(32-bit), if get a correct crc value led3 will be turn on, else led4 will be turn on. + for more detailed information. please refer to the application note document AN0109. \ No newline at end of file diff --git a/project/at_start_f403a/examples/crc/calculation/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/crc/calculation/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/crc/calculation/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/crc/calculation/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crc/calculation/src/at32f403a_407_int.c b/project/at_start_f403a/examples/crc/calculation/src/at32f403a_407_int.c index 12902c08..427cbacd 100644 --- a/project/at_start_f403a/examples/crc/calculation/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/crc/calculation/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crc/calculation/src/main.c b/project/at_start_f403a/examples/crc/calculation/src/main.c index 0a7ea5a8..7ff7c98f 100644 --- a/project/at_start_f403a/examples/crc/calculation/src/main.c +++ b/project/at_start_f403a/examples/crc/calculation/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/crm/clock_failure_detection/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/clock_failure_detection/readme.txt b/project/at_start_f403a/examples/crm/clock_failure_detection/readme.txt index de427ba4..7176bc53 100644 --- a/project/at_start_f403a/examples/crm/clock_failure_detection/readme.txt +++ b/project/at_start_f403a/examples/crm/clock_failure_detection/readme.txt @@ -1,12 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, swith sclk to pll based hick when hext clock failure occured. pa8 output crm_clkout_pll_div_4 - and led2 fresh per 200 ms. + and led2 fresh per 200 ms.for more detailed information. please refer to the + application note document AN0082. diff --git a/project/at_start_f403a/examples/crm/clock_failure_detection/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/crm/clock_failure_detection/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/crm/clock_failure_detection/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/crm/clock_failure_detection/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/clock_failure_detection/src/at32f403a_407_int.c b/project/at_start_f403a/examples/crm/clock_failure_detection/src/at32f403a_407_int.c index 111dc80f..7ac6e51c 100644 --- a/project/at_start_f403a/examples/crm/clock_failure_detection/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/crm/clock_failure_detection/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/clock_failure_detection/src/main.c b/project/at_start_f403a/examples/crm/clock_failure_detection/src/main.c index 9e6ca250..60faae92 100644 --- a/project/at_start_f403a/examples/crm/clock_failure_detection/src/main.c +++ b/project/at_start_f403a/examples/crm/clock_failure_detection/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/crm/sysclk_switch/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/sysclk_switch/readme.txt b/project/at_start_f403a/examples/crm/sysclk_switch/readme.txt index 7af4131b..bfb008c9 100644 --- a/project/at_start_f403a/examples/crm/sysclk_switch/readme.txt +++ b/project/at_start_f403a/examples/crm/sysclk_switch/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, swith sclk by pressed button. led4 toggle, pa8 output crm_clkout_pll_div_4. led2 fresh per 100 ms. + for more detailed information. please refer to the application note document AN0082. diff --git a/project/at_start_f403a/examples/crm/sysclk_switch/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/crm/sysclk_switch/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/crm/sysclk_switch/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/crm/sysclk_switch/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/sysclk_switch/src/at32f403a_407_int.c b/project/at_start_f403a/examples/crm/sysclk_switch/src/at32f403a_407_int.c index 6f3247ae..826eda26 100644 --- a/project/at_start_f403a/examples/crm/sysclk_switch/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/crm/sysclk_switch/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/crm/sysclk_switch/src/main.c b/project/at_start_f403a/examples/crm/sysclk_switch/src/main.c index 6e6bbf90..34546e11 100644 --- a/project/at_start_f403a/examples/crm/sysclk_switch/src/main.c +++ b/project/at_start_f403a/examples/crm/sysclk_switch/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/readme.txt b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/readme.txt index ae6bd3ca..b5b303cb 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/readme.txt +++ b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 pa5 output sine waveform + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_int.c b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_int.c index e59429ca..8d9f0ebf 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/main.c b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/main.c index 31fc56b0..e13b4979 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/main.c +++ b/project/at_start_f403a/examples/dac/double_mode_dma_sinewave/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/readme.txt b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/readme.txt index 8813e0fc..038ceda7 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/readme.txt +++ b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 pa5 output square waveform. + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_int.c b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_int.c index 7dd8f41c..bc594626 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/main.c b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/main.c index f245b2d0..a3c20a28 100644 --- a/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/main.c +++ b/project/at_start_f403a/examples/dac/double_mode_dma_squarewave/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/readme.txt b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/readme.txt index f1bedd3d..4f157977 100644 --- a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/readme.txt +++ b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 output an escalator waveform. + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/at32f403a_407_int.c b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/at32f403a_407_int.c index 84465b0d..152f9c06 100644 --- a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/main.c b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/main.c index 754ca2e0..9ee24248 100644 --- a/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/main.c +++ b/project/at_start_f403a/examples/dac/one_dac_dma_escalator/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/dac/one_dac_noisewave/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_noisewave/readme.txt b/project/at_start_f403a/examples/dac/one_dac_noisewave/readme.txt index 5503fa65..0245ee11 100644 --- a/project/at_start_f403a/examples/dac/one_dac_noisewave/readme.txt +++ b/project/at_start_f403a/examples/dac/one_dac_noisewave/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 output a noise waveform. + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f403a/examples/dac/one_dac_noisewave/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/dac/one_dac_noisewave/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/dac/one_dac_noisewave/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/dac/one_dac_noisewave/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_noisewave/src/at32f403a_407_int.c b/project/at_start_f403a/examples/dac/one_dac_noisewave/src/at32f403a_407_int.c index 333ab70a..30ca4ff1 100644 --- a/project/at_start_f403a/examples/dac/one_dac_noisewave/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/dac/one_dac_noisewave/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/one_dac_noisewave/src/main.c b/project/at_start_f403a/examples/dac/one_dac_noisewave/src/main.c index b284024f..2f0741de 100644 --- a/project/at_start_f403a/examples/dac/one_dac_noisewave/src/main.c +++ b/project/at_start_f403a/examples/dac/one_dac_noisewave/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/dac/two_dac_trianglewave/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/two_dac_trianglewave/readme.txt b/project/at_start_f403a/examples/dac/two_dac_trianglewave/readme.txt index b673fcb2..d59f8c5b 100644 --- a/project/at_start_f403a/examples/dac/two_dac_trianglewave/readme.txt +++ b/project/at_start_f403a/examples/dac/two_dac_trianglewave/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 pa5 output triangle waveform. + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/at32f403a_407_int.c b/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/at32f403a_407_int.c index 506174bc..62d54577 100644 --- a/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/main.c b/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/main.c index 1b02f135..16482c42 100644 --- a/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/main.c +++ b/project/at_start_f403a/examples/dac/two_dac_trianglewave/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/debug/tmr1/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/debug/tmr1/readme.txt b/project/at_start_f403a/examples/debug/tmr1/readme.txt index 73ffab9b..88d65b0a 100644 --- a/project/at_start_f403a/examples/debug/tmr1/readme.txt +++ b/project/at_start_f403a/examples/debug/tmr1/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/debug/tmr1/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/debug/tmr1/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/debug/tmr1/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/debug/tmr1/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/debug/tmr1/src/at32f403a_407_int.c b/project/at_start_f403a/examples/debug/tmr1/src/at32f403a_407_int.c index c1744f8a..8cca8ce9 100644 --- a/project/at_start_f403a/examples/debug/tmr1/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/debug/tmr1/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/debug/tmr1/src/main.c b/project/at_start_f403a/examples/debug/tmr1/src/main.c index 9b1b6b3f..de5b2fdd 100644 --- a/project/at_start_f403a/examples/debug/tmr1/src/main.c +++ b/project/at_start_f403a/examples/debug/tmr1/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/readme.txt b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/readme.txt index 0c570e81..62059880 100644 --- a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/readme.txt +++ b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,4 +13,5 @@ channel1 is configured to transfer the contents of a 16-halfword data buffer stored in embedded sram memory to the gpioc. if transfer full data, the three leds will turn on, and dma2 enabled the flexible function. user can use logic - analyzer get waveform. + analyzer get waveform.for more detailed information. please refer to the + application note document AN0009. diff --git a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/at32f403a_407_int.c b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/at32f403a_407_int.c index 536bb17b..ff09ff6a 100644 --- a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/main.c b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/main.c index f2ba95c4..dae61973 100644 --- a/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/main.c +++ b/project/at_start_f403a/examples/dma/data_to_gpio_flexible/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/dma/flash_to_sram/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/flash_to_sram/readme.txt b/project/at_start_f403a/examples/dma/flash_to_sram/readme.txt index 938b8b85..10bf39e6 100644 --- a/project/at_start_f403a/examples/dma/flash_to_sram/readme.txt +++ b/project/at_start_f403a/examples/dma/flash_to_sram/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/dma/flash_to_sram/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/dma/flash_to_sram/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/dma/flash_to_sram/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/dma/flash_to_sram/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/flash_to_sram/src/at32f403a_407_int.c b/project/at_start_f403a/examples/dma/flash_to_sram/src/at32f403a_407_int.c index 948a5ca5..e28d8f31 100644 --- a/project/at_start_f403a/examples/dma/flash_to_sram/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/dma/flash_to_sram/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/dma/flash_to_sram/src/main.c b/project/at_start_f403a/examples/dma/flash_to_sram/src/main.c index 6ba6fc67..31e066da 100644 --- a/project/at_start_f403a/examples/dma/flash_to_sram/src/main.c +++ b/project/at_start_f403a/examples/dma/flash_to_sram/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/exint/exint_config/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_config/readme.txt b/project/at_start_f403a/examples/exint/exint_config/readme.txt index b1a5fee1..401bda7d 100644 --- a/project/at_start_f403a/examples/exint/exint_config/readme.txt +++ b/project/at_start_f403a/examples/exint/exint_config/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,4 @@ this demo is based on the at-start board, in this demo, shows how to configure external interrupt lines. exint line (exint line0 pa0) are configured to generate an interrupt on each rising edge. in the interrupt routine a led2/3/4 is toggled. + for more detailed information. please refer to the application note document AN0104. \ No newline at end of file diff --git a/project/at_start_f403a/examples/exint/exint_config/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/exint/exint_config/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/exint/exint_config/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/exint/exint_config/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_config/src/at32f403a_407_int.c b/project/at_start_f403a/examples/exint/exint_config/src/at32f403a_407_int.c index cec43f03..f87a9561 100644 --- a/project/at_start_f403a/examples/exint/exint_config/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/exint/exint_config/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_config/src/main.c b/project/at_start_f403a/examples/exint/exint_config/src/main.c index 305bd215..d664a317 100644 --- a/project/at_start_f403a/examples/exint/exint_config/src/main.c +++ b/project/at_start_f403a/examples/exint/exint_config/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/exint/exint_software_trigger/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_software_trigger/readme.txt b/project/at_start_f403a/examples/exint/exint_software_trigger/readme.txt index bb2cfe2b..bd32f5cb 100644 --- a/project/at_start_f403a/examples/exint/exint_software_trigger/readme.txt +++ b/project/at_start_f403a/examples/exint/exint_software_trigger/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -12,3 +12,4 @@ software trigger will be generate in tmr1 overflow interrupt. led2 toggle means tmr1 overflow interrupt respond. led3 and led4 toggle means exint line 4 interrupt respond. + for more detailed information. please refer to the application note document AN0104. \ No newline at end of file diff --git a/project/at_start_f403a/examples/exint/exint_software_trigger/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/exint/exint_software_trigger/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/exint/exint_software_trigger/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/exint/exint_software_trigger/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_software_trigger/src/at32f403a_407_int.c b/project/at_start_f403a/examples/exint/exint_software_trigger/src/at32f403a_407_int.c index 67c79805..583fcb06 100644 --- a/project/at_start_f403a/examples/exint/exint_software_trigger/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/exint/exint_software_trigger/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/exint/exint_software_trigger/src/main.c b/project/at_start_f403a/examples/exint/exint_software_trigger/src/main.c index c1120a1d..619bb810 100644 --- a/project/at_start_f403a/examples/exint/exint_software_trigger/src/main.c +++ b/project/at_start_f403a/examples/exint/exint_software_trigger/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/flash/flash_write_read/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/flash_write_read/inc/flash.h b/project/at_start_f403a/examples/flash/flash_write_read/inc/flash.h index fe04ab74..39ddc8ac 100644 --- a/project/at_start_f403a/examples/flash/flash_write_read/inc/flash.h +++ b/project/at_start_f403a/examples/flash/flash_write_read/inc/flash.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/flash_write_read/readme.txt b/project/at_start_f403a/examples/flash/flash_write_read/readme.txt index 966a2d1c..4cb0e1f4 100644 --- a/project/at_start_f403a/examples/flash/flash_write_read/readme.txt +++ b/project/at_start_f403a/examples/flash/flash_write_read/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/flash/flash_write_read/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/flash/flash_write_read/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/flash/flash_write_read/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/flash/flash_write_read/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/flash_write_read/src/at32f403a_407_int.c b/project/at_start_f403a/examples/flash/flash_write_read/src/at32f403a_407_int.c index 71191bcd..66bac117 100644 --- a/project/at_start_f403a/examples/flash/flash_write_read/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/flash/flash_write_read/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/flash_write_read/src/flash.c b/project/at_start_f403a/examples/flash/flash_write_read/src/flash.c index 084e6415..5c610a42 100644 --- a/project/at_start_f403a/examples/flash/flash_write_read/src/flash.c +++ b/project/at_start_f403a/examples/flash/flash_write_read/src/flash.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/flash_write_read/src/main.c b/project/at_start_f403a/examples/flash/flash_write_read/src/main.c index 251ee21e..18e36f31 100644 --- a/project/at_start_f403a/examples/flash/flash_write_read/src/main.c +++ b/project/at_start_f403a/examples/flash/flash_write_read/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/flash/operate_spim/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/operate_spim/inc/operate_spim.h b/project/at_start_f403a/examples/flash/operate_spim/inc/operate_spim.h index 7aba5277..47507273 100644 --- a/project/at_start_f403a/examples/flash/operate_spim/inc/operate_spim.h +++ b/project/at_start_f403a/examples/flash/operate_spim/inc/operate_spim.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file operate_spim.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief operate_spim header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/operate_spim/readme.txt b/project/at_start_f403a/examples/flash/operate_spim/readme.txt index 2db39067..6e59727d 100644 --- a/project/at_start_f403a/examples/flash/operate_spim/readme.txt +++ b/project/at_start_f403a/examples/flash/operate_spim/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,4 @@ - spim io1 ---> pb11 - spim io2 ---> pb7 - spim io3 ---> pb6 + for more detailed information. please refer to the application note document AN0042. \ No newline at end of file diff --git a/project/at_start_f403a/examples/flash/operate_spim/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/flash/operate_spim/src/at32f403a_407_clock.c index c4b93b7e..f07ccc4a 100644 --- a/project/at_start_f403a/examples/flash/operate_spim/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/flash/operate_spim/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/operate_spim/src/at32f403a_407_int.c b/project/at_start_f403a/examples/flash/operate_spim/src/at32f403a_407_int.c index 0768ffda..3735c19a 100644 --- a/project/at_start_f403a/examples/flash/operate_spim/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/flash/operate_spim/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/operate_spim/src/main.c b/project/at_start_f403a/examples/flash/operate_spim/src/main.c index dcd480c3..68e9f808 100644 --- a/project/at_start_f403a/examples/flash/operate_spim/src/main.c +++ b/project/at_start_f403a/examples/flash/operate_spim/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/operate_spim/src/operate_spim.c b/project/at_start_f403a/examples/flash/operate_spim/src/operate_spim.c index d104ef1c..fa931d51 100644 --- a/project/at_start_f403a/examples/flash/operate_spim/src/operate_spim.c +++ b/project/at_start_f403a/examples/flash/operate_spim/src/operate_spim.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file operate_spim.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief operate spim program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/flash/run_in_spim/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/run_in_spim/inc/run_in_spim.h b/project/at_start_f403a/examples/flash/run_in_spim/inc/run_in_spim.h index f48e7748..0ba04bf5 100644 --- a/project/at_start_f403a/examples/flash/run_in_spim/inc/run_in_spim.h +++ b/project/at_start_f403a/examples/flash/run_in_spim/inc/run_in_spim.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file run_in_spim.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief run_in_spim header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/run_in_spim/readme.txt b/project/at_start_f403a/examples/flash/run_in_spim/readme.txt index 9382b75e..d6ce485e 100644 --- a/project/at_start_f403a/examples/flash/run_in_spim/readme.txt +++ b/project/at_start_f403a/examples/flash/run_in_spim/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -20,3 +20,4 @@ - spim io1 ---> pb11 - spim io2 ---> pb7 - spim io3 ---> pb6 + for more detailed information. please refer to the application note document AN0042. \ No newline at end of file diff --git a/project/at_start_f403a/examples/flash/run_in_spim/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/flash/run_in_spim/src/at32f403a_407_clock.c index c4b93b7e..f07ccc4a 100644 --- a/project/at_start_f403a/examples/flash/run_in_spim/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/flash/run_in_spim/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/run_in_spim/src/at32f403a_407_int.c b/project/at_start_f403a/examples/flash/run_in_spim/src/at32f403a_407_int.c index eeed65be..ddfb7ca1 100644 --- a/project/at_start_f403a/examples/flash/run_in_spim/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/flash/run_in_spim/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/run_in_spim/src/main.c b/project/at_start_f403a/examples/flash/run_in_spim/src/main.c index 8b43c841..5e139fa1 100644 --- a/project/at_start_f403a/examples/flash/run_in_spim/src/main.c +++ b/project/at_start_f403a/examples/flash/run_in_spim/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/flash/run_in_spim/src/run_in_spim.c b/project/at_start_f403a/examples/flash/run_in_spim/src/run_in_spim.c index d88295b7..ffc3a484 100644 --- a/project/at_start_f403a/examples/flash/run_in_spim/src/run_in_spim.c +++ b/project/at_start_f403a/examples/flash/run_in_spim/src/run_in_spim.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file run_in_spim.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief run in spim program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/gpio/led_toggle/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/led_toggle/readme.txt b/project/at_start_f403a/examples/gpio/led_toggle/readme.txt index e64ae3bd..1bd44fef 100644 --- a/project/at_start_f403a/examples/gpio/led_toggle/readme.txt +++ b/project/at_start_f403a/examples/gpio/led_toggle/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, configure systick timer used for delay function. + for more detailed information. please refer to the application note document AN0110. \ No newline at end of file diff --git a/project/at_start_f403a/examples/gpio/led_toggle/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/gpio/led_toggle/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/gpio/led_toggle/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/gpio/led_toggle/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/led_toggle/src/at32f403a_407_int.c b/project/at_start_f403a/examples/gpio/led_toggle/src/at32f403a_407_int.c index 757e774c..bd2e8a4d 100644 --- a/project/at_start_f403a/examples/gpio/led_toggle/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/gpio/led_toggle/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/led_toggle/src/main.c b/project/at_start_f403a/examples/gpio/led_toggle/src/main.c index 4b83d529..cc82cf16 100644 --- a/project/at_start_f403a/examples/gpio/led_toggle/src/main.c +++ b/project/at_start_f403a/examples/gpio/led_toggle/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/gpio/swjtag_remap/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/swjtag_remap/readme.txt b/project/at_start_f403a/examples/gpio/swjtag_remap/readme.txt index 7e2e92b3..8a4ddafc 100644 --- a/project/at_start_f403a/examples/gpio/swjtag_remap/readme.txt +++ b/project/at_start_f403a/examples/gpio/swjtag_remap/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,4 @@ pb2 is pressed the swj-dp will be disabled. the swj-dp pins are configured as output push-pull. the pa13(jtms/swdat), pa14(jtck/swclk), pa15(jtdi), pb3(jtdo) and pb4(jtrst) pins are toggled in an infinite loop. + for more detailed information. please refer to the application note document AN0110. \ No newline at end of file diff --git a/project/at_start_f403a/examples/gpio/swjtag_remap/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/gpio/swjtag_remap/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/gpio/swjtag_remap/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/gpio/swjtag_remap/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/swjtag_remap/src/at32f403a_407_int.c b/project/at_start_f403a/examples/gpio/swjtag_remap/src/at32f403a_407_int.c index 794a0727..ee4fcfea 100644 --- a/project/at_start_f403a/examples/gpio/swjtag_remap/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/gpio/swjtag_remap/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/gpio/swjtag_remap/src/main.c b/project/at_start_f403a/examples/gpio/swjtag_remap/src/main.c index e1facba8..f46b23a7 100644 --- a/project/at_start_f403a/examples/gpio/swjtag_remap/src/main.c +++ b/project/at_start_f403a/examples/gpio/swjtag_remap/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/i2c/communication_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_dma/readme.txt b/project/at_start_f403a/examples/i2c/communication_dma/readme.txt index 89d31449..780778a4 100644 --- a/project/at_start_f403a/examples/i2c/communication_dma/readme.txt +++ b/project/at_start_f403a/examples/i2c/communication_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file communicationdma/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/i2c/communication_dma/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/i2c/communication_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/i2c/communication_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/i2c/communication_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_dma/src/at32f403a_407_int.c b/project/at_start_f403a/examples/i2c/communication_dma/src/at32f403a_407_int.c index f882dea0..290d17b4 100644 --- a/project/at_start_f403a/examples/i2c/communication_dma/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/i2c/communication_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_dma/src/main.c b/project/at_start_f403a/examples/i2c/communication_dma/src/main.c index 681df7f9..ea52ef9b 100644 --- a/project/at_start_f403a/examples/i2c/communication_dma/src/main.c +++ b/project/at_start_f403a/examples/i2c/communication_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/i2c/communication_int/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_int/readme.txt b/project/at_start_f403a/examples/i2c/communication_int/readme.txt index 039336e9..868b6410 100644 --- a/project/at_start_f403a/examples/i2c/communication_int/readme.txt +++ b/project/at_start_f403a/examples/i2c/communication_int/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file communicationint/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/i2c/communication_int/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/i2c/communication_int/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/i2c/communication_int/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/i2c/communication_int/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_int/src/at32f403a_407_int.c b/project/at_start_f403a/examples/i2c/communication_int/src/at32f403a_407_int.c index 7030c924..d543e545 100644 --- a/project/at_start_f403a/examples/i2c/communication_int/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/i2c/communication_int/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_int/src/main.c b/project/at_start_f403a/examples/i2c/communication_int/src/main.c index ae814e4b..acbec8d1 100644 --- a/project/at_start_f403a/examples/i2c/communication_int/src/main.c +++ b/project/at_start_f403a/examples/i2c/communication_int/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/i2c/communication_poll/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_poll/readme.txt b/project/at_start_f403a/examples/i2c/communication_poll/readme.txt index 2f253971..0146a076 100644 --- a/project/at_start_f403a/examples/i2c/communication_poll/readme.txt +++ b/project/at_start_f403a/examples/i2c/communication_poll/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file communication_poll/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/i2c/communication_poll/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/i2c/communication_poll/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/i2c/communication_poll/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/i2c/communication_poll/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_poll/src/at32f403a_407_int.c b/project/at_start_f403a/examples/i2c/communication_poll/src/at32f403a_407_int.c index fbc29ead..db0b5ee8 100644 --- a/project/at_start_f403a/examples/i2c/communication_poll/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/i2c/communication_poll/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/communication_poll/src/main.c b/project/at_start_f403a/examples/i2c/communication_poll/src/main.c index 044e0739..734d6709 100644 --- a/project/at_start_f403a/examples/i2c/communication_poll/src/main.c +++ b/project/at_start_f403a/examples/i2c/communication_poll/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/i2c/eeprom/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/eeprom/readme.txt b/project/at_start_f403a/examples/i2c/eeprom/readme.txt index e07a476a..c05de682 100644 --- a/project/at_start_f403a/examples/i2c/eeprom/readme.txt +++ b/project/at_start_f403a/examples/i2c/eeprom/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file eeprom/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/i2c/eeprom/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/i2c/eeprom/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/i2c/eeprom/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/i2c/eeprom/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/eeprom/src/at32f403a_407_int.c b/project/at_start_f403a/examples/i2c/eeprom/src/at32f403a_407_int.c index 0027e708..2de36d92 100644 --- a/project/at_start_f403a/examples/i2c/eeprom/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/i2c/eeprom/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2c/eeprom/src/main.c b/project/at_start_f403a/examples/i2c/eeprom/src/main.c index 1aaeb5e3..01d202a7 100644 --- a/project/at_start_f403a/examples/i2c/eeprom/src/main.c +++ b/project/at_start_f403a/examples/i2c/eeprom/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/i2s/fullduplex_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/fullduplex_dma/readme.txt b/project/at_start_f403a/examples/i2s/fullduplex_dma/readme.txt index 4e798a79..64ffe373 100644 --- a/project/at_start_f403a/examples/i2s/fullduplex_dma/readme.txt +++ b/project/at_start_f403a/examples/i2s/fullduplex_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,3 +15,5 @@ - pb13(sck) <---> pc10(sck) - pb14(miso_ext) rx <---> pc11(miso_ext) tx - pb15(mosi) tx <---> pc12(mosi) rx + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/i2s/fullduplex_dma/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/i2s/fullduplex_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/i2s/fullduplex_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/i2s/fullduplex_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/fullduplex_dma/src/at32f403a_407_int.c b/project/at_start_f403a/examples/i2s/fullduplex_dma/src/at32f403a_407_int.c index cdd903f6..c9b8b4e4 100644 --- a/project/at_start_f403a/examples/i2s/fullduplex_dma/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/i2s/fullduplex_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/fullduplex_dma/src/main.c b/project/at_start_f403a/examples/i2s/fullduplex_dma/src/main.c index 818db072..b8cd4238 100644 --- a/project/at_start_f403a/examples/i2s/fullduplex_dma/src/main.c +++ b/project/at_start_f403a/examples/i2s/fullduplex_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/i2s/halfduplex_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_dma/readme.txt b/project/at_start_f403a/examples/i2s/halfduplex_dma/readme.txt index fa245783..621c6cb0 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_dma/readme.txt +++ b/project/at_start_f403a/examples/i2s/halfduplex_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ - pb12 <---> pa15 - pb13 <---> pb3 - pb15 <---> pb5 + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/i2s/halfduplex_dma/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/i2s/halfduplex_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/i2s/halfduplex_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_dma/src/at32f403a_407_int.c b/project/at_start_f403a/examples/i2s/halfduplex_dma/src/at32f403a_407_int.c index df455c74..a703da40 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_dma/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/i2s/halfduplex_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_dma/src/main.c b/project/at_start_f403a/examples/i2s/halfduplex_dma/src/main.c index 32126e43..0b5d78ee 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_dma/src/main.c +++ b/project/at_start_f403a/examples/i2s/halfduplex_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/readme.txt b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/readme.txt index 81e2eba8..f86cd26c 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/readme.txt +++ b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ - pb12 <---> pa15 - pb13 <---> pb3 - pb15 <---> pb5 + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/at32f403a_407_int.c b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/at32f403a_407_int.c index bdcc15b3..37196090 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/main.c b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/main.c index 95a5f67d..709d6f8d 100644 --- a/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/main.c +++ b/project/at_start_f403a/examples/i2s/halfduplex_interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/readme.txt b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/readme.txt index 9b17da72..26a29c56 100644 --- a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/readme.txt +++ b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ - pb12 <---> pa15 - pb13 <---> pb3 - pb15 <---> pb5 + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_int.c b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_int.c index 51871187..e2ab66e3 100644 --- a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/main.c b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/main.c index 25bec773..5ea10a52 100644 --- a/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/main.c +++ b/project/at_start_f403a/examples/i2s/spii2s_switch_halfduplex_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/pwc/deepsleep_rtc/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/deepsleep_rtc/readme.txt b/project/at_start_f403a/examples/pwc/deepsleep_rtc/readme.txt index 1aadc3c1..1c00a121 100644 --- a/project/at_start_f403a/examples/pwc/deepsleep_rtc/readme.txt +++ b/project/at_start_f403a/examples/pwc/deepsleep_rtc/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit deepsleep mode by interrupt of rtc alarm. + + for more detailed information. please refer to the application note document AN0100. \ No newline at end of file diff --git a/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/at32f403a_407_int.c b/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/at32f403a_407_int.c index c54eadf9..1996fb26 100644 --- a/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/main.c b/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/main.c index e095edeb..8804ede0 100644 --- a/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/main.c +++ b/project/at_start_f403a/examples/pwc/deepsleep_rtc/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/pwc/power_voltage_monitor/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/power_voltage_monitor/readme.txt b/project/at_start_f403a/examples/pwc/power_voltage_monitor/readme.txt index 28fee7f5..afda20c3 100644 --- a/project/at_start_f403a/examples/pwc/power_voltage_monitor/readme.txt +++ b/project/at_start_f403a/examples/pwc/power_voltage_monitor/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to configure the power voltage monitoring using external interrupt line. + + for more detailed information. please refer to the application note document AN0100. diff --git a/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/at32f403a_407_int.c b/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/at32f403a_407_int.c index 32588748..b09f4d21 100644 --- a/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/main.c b/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/main.c index 93c083b1..8633c34f 100644 --- a/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/main.c +++ b/project/at_start_f403a/examples/pwc/power_voltage_monitor/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/pwc/sleep_tmr2/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_tmr2/readme.txt b/project/at_start_f403a/examples/pwc/sleep_tmr2/readme.txt index 7af3d95c..63548f6e 100644 --- a/project/at_start_f403a/examples/pwc/sleep_tmr2/readme.txt +++ b/project/at_start_f403a/examples/pwc/sleep_tmr2/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit sleep mode by interrupt of timer2 overflow. + + for more detailed information. please refer to the application note document AN0100. \ No newline at end of file diff --git a/project/at_start_f403a/examples/pwc/sleep_tmr2/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/pwc/sleep_tmr2/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/pwc/sleep_tmr2/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/pwc/sleep_tmr2/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_tmr2/src/at32f403a_407_int.c b/project/at_start_f403a/examples/pwc/sleep_tmr2/src/at32f403a_407_int.c index a45d34b0..cbeeac7a 100644 --- a/project/at_start_f403a/examples/pwc/sleep_tmr2/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/pwc/sleep_tmr2/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_tmr2/src/main.c b/project/at_start_f403a/examples/pwc/sleep_tmr2/src/main.c index 12515e8e..6f2b3ac4 100644 --- a/project/at_start_f403a/examples/pwc/sleep_tmr2/src/main.c +++ b/project/at_start_f403a/examples/pwc/sleep_tmr2/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/pwc/sleep_usart1/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_usart1/readme.txt b/project/at_start_f403a/examples/pwc/sleep_usart1/readme.txt index 8b462913..de45f6f5 100644 --- a/project/at_start_f403a/examples/pwc/sleep_usart1/readme.txt +++ b/project/at_start_f403a/examples/pwc/sleep_usart1/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit sleep mode by interrupt of usart1 receive data buffer full. + + for more detailed information. please refer to the application note document AN0100. \ No newline at end of file diff --git a/project/at_start_f403a/examples/pwc/sleep_usart1/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/pwc/sleep_usart1/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/pwc/sleep_usart1/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/pwc/sleep_usart1/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_usart1/src/at32f403a_407_int.c b/project/at_start_f403a/examples/pwc/sleep_usart1/src/at32f403a_407_int.c index e7dcb496..bdd98dc9 100644 --- a/project/at_start_f403a/examples/pwc/sleep_usart1/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/pwc/sleep_usart1/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/sleep_usart1/src/main.c b/project/at_start_f403a/examples/pwc/sleep_usart1/src/main.c index 44d9891e..9de2d0c2 100644 --- a/project/at_start_f403a/examples/pwc/sleep_usart1/src/main.c +++ b/project/at_start_f403a/examples/pwc/sleep_usart1/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/pwc/standby_rtc/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_rtc/readme.txt b/project/at_start_f403a/examples/pwc/standby_rtc/readme.txt index 7b95fc49..2a16887b 100644 --- a/project/at_start_f403a/examples/pwc/standby_rtc/readme.txt +++ b/project/at_start_f403a/examples/pwc/standby_rtc/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit standby mode by rtc alarm. + + for more detailed information. please refer to the application note document AN0100. \ No newline at end of file diff --git a/project/at_start_f403a/examples/pwc/standby_rtc/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/pwc/standby_rtc/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/pwc/standby_rtc/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/pwc/standby_rtc/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_rtc/src/at32f403a_407_int.c b/project/at_start_f403a/examples/pwc/standby_rtc/src/at32f403a_407_int.c index ad6b28b6..6315e9d2 100644 --- a/project/at_start_f403a/examples/pwc/standby_rtc/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/pwc/standby_rtc/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_rtc/src/main.c b/project/at_start_f403a/examples/pwc/standby_rtc/src/main.c index 76cabf01..2e21958c 100644 --- a/project/at_start_f403a/examples/pwc/standby_rtc/src/main.c +++ b/project/at_start_f403a/examples/pwc/standby_rtc/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/readme.txt b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/readme.txt index 5353e6c4..696f917c 100644 --- a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/readme.txt +++ b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit standby mode by wake-up pin. + + for more detailed information. please refer to the application note document AN0100. diff --git a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/at32f403a_407_int.c b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/at32f403a_407_int.c index e189cb55..b322eb61 100644 --- a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/main.c b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/main.c index 726c1e29..c5b6eb81 100644 --- a/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/main.c +++ b/project/at_start_f403a/examples/pwc/standby_wakeup_pin/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/rtc/calendar/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/calendar/inc/rtc.h b/project/at_start_f403a/examples/rtc/calendar/inc/rtc.h index d673c693..d62d3e0a 100644 --- a/project/at_start_f403a/examples/rtc/calendar/inc/rtc.h +++ b/project/at_start_f403a/examples/rtc/calendar/inc/rtc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file rtc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file provides template for calendar api. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/calendar/readme.txt b/project/at_start_f403a/examples/rtc/calendar/readme.txt index dd30f1e5..59513009 100644 --- a/project/at_start_f403a/examples/rtc/calendar/readme.txt +++ b/project/at_start_f403a/examples/rtc/calendar/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ rtc peripherals to implement calendar and alarm clock functions. use usart1 to view calendar information. led3 flashes once when the seconds are updated, and led4 turns on when the alarm is generated. + for more detailed information. please refer to the application note document AN0111. \ No newline at end of file diff --git a/project/at_start_f403a/examples/rtc/calendar/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/rtc/calendar/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/rtc/calendar/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/rtc/calendar/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/calendar/src/at32f403a_407_int.c b/project/at_start_f403a/examples/rtc/calendar/src/at32f403a_407_int.c index e02141d0..44e356c7 100644 --- a/project/at_start_f403a/examples/rtc/calendar/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/rtc/calendar/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/calendar/src/main.c b/project/at_start_f403a/examples/rtc/calendar/src/main.c index dbccaf9a..6049c603 100644 --- a/project/at_start_f403a/examples/rtc/calendar/src/main.c +++ b/project/at_start_f403a/examples/rtc/calendar/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/calendar/src/rtc.c b/project/at_start_f403a/examples/rtc/calendar/src/rtc.c index 47266848..854225f1 100644 --- a/project/at_start_f403a/examples/rtc/calendar/src/rtc.c +++ b/project/at_start_f403a/examples/rtc/calendar/src/rtc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file rtc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file provides template for calendar api. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/rtc/lick_calibration/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/lick_calibration/readme.txt b/project/at_start_f403a/examples/rtc/lick_calibration/readme.txt index 51e3dbde..518bb582 100644 --- a/project/at_start_f403a/examples/rtc/lick_calibration/readme.txt +++ b/project/at_start_f403a/examples/rtc/lick_calibration/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to use timer to calibrate the lick clock. use usart1 to view calibrate information. + for more detailed information. please refer to the application note document AN0111. \ No newline at end of file diff --git a/project/at_start_f403a/examples/rtc/lick_calibration/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/rtc/lick_calibration/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/rtc/lick_calibration/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/rtc/lick_calibration/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/lick_calibration/src/at32f403a_407_int.c b/project/at_start_f403a/examples/rtc/lick_calibration/src/at32f403a_407_int.c index aff19033..c748f7c7 100644 --- a/project/at_start_f403a/examples/rtc/lick_calibration/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/rtc/lick_calibration/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/rtc/lick_calibration/src/main.c b/project/at_start_f403a/examples/rtc/lick_calibration/src/main.c index a09d6c6a..54995a14 100644 --- a/project/at_start_f403a/examples/rtc/lick_calibration/src/main.c +++ b/project/at_start_f403a/examples/rtc/lick_calibration/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32_sdio.h b/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32_sdio.h index 9dbc351c..c59448f7 100644 --- a/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32_sdio.h +++ b/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32_sdio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_sdio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the functions prototypes for the sd/mmc * card at32_sdio driver firmware library. ************************************************************************** @@ -73,8 +73,8 @@ typedef enum typedef enum { /* sdio specific error defines ------------------------------------------*/ - SD_CMD_FAIL = 1, /*!< command response received (but crc check failed) */ - SD_DATA_FAIL = 2, /*!< data bock sent/received (crc check failed) */ + SD_CMD_FAIL = 1, /*!< command response received (but crc check error) */ + SD_DATA_FAIL = 2, /*!< data bock sent/received (crc check error) */ SD_CMD_RSP_TIMEOUT = 3, /*!< command response timeout */ SD_DATA_TIMEOUT = 4, /*!< data time out */ SD_TX_UNDERRUN = 5, /*!< transmit fifo under-run */ @@ -86,10 +86,10 @@ typedef enum SD_ERASE_SEQ_ERR = 11, /*!< an error in the sequence of erase command occurs. */ SD_INVALID_ERASE_PARAM = 12, /*!< an invalid selection for erase groups */ SD_WR_PROTECT_VIOLATION = 13, /*!< attempt to program a write protect block */ - SD_LOCK_UNLOCK_FAILED = 14, /*!< sequence or password error has been detected in unlock command or if there was an attempt to access a locked card */ - SD_CMD_CRC_FAILED = 15, /*!< crc check of the previous command failed */ + SD_LOCK_UNLOCK_ERROR = 14, /*!< sequence or password error has been detected in unlock command or if there was an attempt to access a locked card */ + SD_CMD_CRC_ERROR = 15, /*!< crc check of the previous command error */ SD_ILLEGAL_CMD = 16, /*!< command is not legal for the card state */ - SD_CARD_ECC_FAILED = 17, /*!< card internal ecc was applied but failed to correct the data */ + SD_CARD_ECC_ERROR = 17, /*!< card internal ecc was applied but error to correct the data */ SD_CARD_CONTROLLER_ERR = 18, /*!< internal card controller error */ SD_GENERAL_UNKNOWN_ERROR = 19, /*!< general or unknown error */ SD_STREAM_RD_UNDERRUN = 20, /*!< the card could not sustain data transfer in stream read operation. */ @@ -104,7 +104,7 @@ typedef enum SD_SWITCH_ERROR = 29, /*!< switch error */ SD_SDIO_DISABLED = 30, /*!< sdio disabled */ SD_SDIO_FUNC_BUSY = 31, /*!< function busy */ - SD_SDIO_FUNC_FAILED = 32, /*!< function failed */ + SD_SDIO_FUNC_ERROR = 32, /*!< function error */ SD_SDIO_UNKNOWN_FUNC = 33, /*!< unknown function */ /* standard error defines --------------------------------------------*/ @@ -359,10 +359,10 @@ typedef struct #define SD_OCR_ERASE_SEQ_ERR ((uint32_t)0x10000000) #define SD_OCR_INVALID_ERASE_PARAM ((uint32_t)0x08000000) #define SD_OCR_WR_PROTECT_VIOLATION ((uint32_t)0x04000000) -#define SD_OCR_LOCK_UNLOCK_FAILED ((uint32_t)0x01000000) -#define SD_OCR_CMD_CRC_FAILED ((uint32_t)0x00800000) +#define SD_OCR_LOCK_UNLOCK_ERROR ((uint32_t)0x01000000) +#define SD_OCR_CMD_CRC_ERROR ((uint32_t)0x00800000) #define SD_OCR_ILLEGAL_CMD ((uint32_t)0x00400000) -#define SD_OCR_CARD_ECC_FAILED ((uint32_t)0x00200000) +#define SD_OCR_CARD_ECC_ERROR ((uint32_t)0x00200000) #define SD_OCR_CARD_CONTROLLER_ERR ((uint32_t)0x00100000) #define SD_OCR_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00080000) #define SD_OCR_STREAM_RD_UNDERRUN ((uint32_t)0x00040000) @@ -387,13 +387,13 @@ typedef struct */ #define SD_R6_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00002000) #define SD_R6_ILLEGAL_CMD ((uint32_t)0x00004000) -#define SD_R6_CMD_CRC_FAILED ((uint32_t)0x00008000) +#define SD_R6_CMD_CRC_ERROR ((uint32_t)0x00008000) #define SD_VOLTAGE_WINDOW_SD ((uint32_t)0x80100000) #define SD_HIGH_CAPACITY ((uint32_t)0x40000000) #define SD_STD_CAPACITY ((uint32_t)0x00000000) #define SD_CHECK_PATTERN ((uint32_t)0x000001AA) #define SD_VOLTAGE_WINDOW_MMC ((uint32_t)0x80FF8000) -#define SD_MAX_VOLT_TRIAL ((uint32_t)0x0000FFFF) +#define SD_MAX_VOLT_TRIAL ((uint32_t)0x000000FF) #define SD_ALLZERO ((uint32_t)0x00000000) #define SD_WIDE_BUS_SUPPORT ((uint32_t)0x00040000) #define SD_SINGLE_BUS_SUPPORT ((uint32_t)0x00010000) diff --git a/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/sdio/sd_mmc_card/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sd_mmc_card/readme.txt b/project/at_start_f403a/examples/sdio/sd_mmc_card/readme.txt index 7db332de..647d7aa5 100644 --- a/project/at_start_f403a/examples/sdio/sd_mmc_card/readme.txt +++ b/project/at_start_f403a/examples/sdio/sd_mmc_card/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,4 +17,5 @@ - sdio1_d2 pc10 ---> dat2 - sdio1_d3 pc11 ---> dat3 - sdio1_ck pc12 ---> clk - - sdio1_cmd pd2 ---> cmd \ No newline at end of file + - sdio1_cmd pd2 ---> cmd + for more detailed information. please refer to the application note document AN0105. \ No newline at end of file diff --git a/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32_sdio.c b/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32_sdio.c index db61ae13..7e1dc61f 100644 --- a/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32_sdio.c +++ b/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32_sdio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_sdio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file provides a set of functions needed to manage the * sdio/mmc card memory. ************************************************************************** @@ -73,6 +73,7 @@ sd_error_status_type sd_init(void) uint16_t clkdiv = 0; sd_error_status_type status = SD_OK; gpio_init_type gpio_init_struct = {0}; + uint8_t retry = 0; /* gpioc and gpiod periph clock enable */ crm_periph_clock_enable(CRM_GPIOC_PERIPH_CLOCK, TRUE); @@ -93,12 +94,17 @@ sd_error_status_type sd_init(void) gpio_init_struct.gpio_pins = GPIO_PINS_2; gpio_init(GPIOD, &gpio_init_struct); -/* reset sdio */ - sdio_reset(SDIOx); - - /* power on */ - status = sd_power_on(); - + retry = 10; + while(retry--){ + /* reset sdio */ + sdio_reset(SDIOx); + /* power on */ + status = sd_power_on(); + + if(status == SD_OK) + break; + } + if(status == SD_OK) { /* sdio card initialize */ @@ -138,8 +144,8 @@ sd_error_status_type sd_init(void) { if(sd_card_info.card_type == SDIO_STD_CAPACITY_SD_CARD_V1_1 || sd_card_info.card_type == SDIO_STD_CAPACITY_SD_CARD_V2_0) { - /* set sdio_ck to 4MHz */ - clkdiv = system_core_clock / 4000000; + /* set sdio_ck to 12mhz */ + clkdiv = system_core_clock / 12000000; if(clkdiv >= 2) { @@ -148,8 +154,8 @@ sd_error_status_type sd_init(void) } else { - /* set sdio_ck to 4MHz */ - clkdiv = system_core_clock / 4000000; + /* set sdio_ck to 48mhz */ + clkdiv = system_core_clock / 48000000; if(clkdiv >= 2) { @@ -232,16 +238,6 @@ sd_error_status_type sd_power_on(void) /* get command status */ status = command_error(); - - if(status == SD_OK) - { - break; - } - } - /* if any errors occured, return status */ - if(status != SD_OK) - { - return status; } /* send cmd8, check card interface feature */ @@ -252,7 +248,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R7 */ @@ -273,7 +269,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R1 */ @@ -293,7 +289,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R1 */ @@ -313,7 +309,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R3 */ @@ -357,7 +353,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R3 */ @@ -428,7 +424,7 @@ sd_error_status_type sd_card_init(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp2_error(); @@ -455,7 +451,7 @@ sd_error_status_type sd_card_init(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp6_error(SD_CMD_SET_REL_ADDR, &rca_temp); @@ -476,7 +472,7 @@ sd_error_status_type sd_card_init(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp2_error(); @@ -497,7 +493,7 @@ sd_error_status_type sd_card_init(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp2_error(); @@ -806,7 +802,7 @@ sd_error_status_type sd_deselect_select(uint32_t addr) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); return command_rsp1_error(SD_CMD_SEL_DESEL_CARD); @@ -836,7 +832,7 @@ sd_error_status_type sdio_command_data_send(sdio_command_struct_type *sdio_cmd_i /* sdio command config */ sdio_data_config(SDIOx, sdio_data_init_t); - /* enable DCSM */ + /* enable dcsm */ sdio_data_state_machine_enable(SDIOx, TRUE); length = sdio_data_init_t->data_length; @@ -855,7 +851,7 @@ sd_error_status_type sdio_command_data_send(sdio_command_struct_type *sdio_cmd_i /* sdio command config */ sdio_command_config(SDIOx, sdio_cmd_init_t); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(sdio_cmd_init_t->cmd_index); @@ -964,7 +960,7 @@ sd_error_status_type sdio_command_data_send(sdio_command_struct_type *sdio_cmd_i /* sdio command config */ sdio_command_config(SDIOx, sdio_cmd_init_t); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_STOP_TRANSMISSION); @@ -1037,7 +1033,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) end_addr = start_addr + (nblks - 1) * 512; } - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0 ; sdio_data_init_struct.timeout = SD_DATATIMEOUT ; @@ -1052,7 +1048,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_MULTIMEDIA_CARD || card_type == SDIO_HIGH_SPEED_MULTIMEDIA_CARD) @@ -1065,7 +1061,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_ERASE_GRP_START); @@ -1081,7 +1077,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_ERASE_GRP_END); @@ -1097,7 +1093,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_ERASE); @@ -1117,7 +1113,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SD_ERASE_GRP_START); @@ -1133,7 +1129,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); if(status != SD_OK) @@ -1147,7 +1143,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_ERASE); @@ -1196,7 +1192,7 @@ sd_error_status_type sd_block_read(uint8_t *buf, long long addr, uint16_t blk_si addr >>= 9; } - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1211,7 +1207,7 @@ sd_error_status_type sd_block_read(uint8_t *buf, long long addr, uint16_t blk_si /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if((blk_size > 0) && (blk_size <= 2048) && ((blk_size & (blk_size - 1)) == 0)) @@ -1226,7 +1222,7 @@ sd_error_status_type sd_block_read(uint8_t *buf, long long addr, uint16_t blk_si /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -1281,7 +1277,7 @@ sd_error_status_type sd_mult_blocks_read(uint8_t *buf, long long addr, uint16_t addr >>= 9; } - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = (sdio_block_size_type)0; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1296,7 +1292,7 @@ sd_error_status_type sd_mult_blocks_read(uint8_t *buf, long long addr, uint16_t /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if((blk_size > 0) && (blk_size <= 2048) && ((blk_size & (blk_size - 1)) == 0)) @@ -1311,7 +1307,7 @@ sd_error_status_type sd_mult_blocks_read(uint8_t *buf, long long addr, uint16_t /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -1370,7 +1366,7 @@ sd_error_status_type sd_block_write(const uint8_t *buf, long long addr, uint16_t SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = (sdio_block_size_type)0; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1385,7 +1381,7 @@ sd_error_status_type sd_block_write(const uint8_t *buf, long long addr, uint16_t /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_HIGH_CAPACITY_SD_CARD) @@ -1406,7 +1402,7 @@ sd_error_status_type sd_block_write(const uint8_t *buf, long long addr, uint16_t /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -1492,7 +1488,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = (sdio_block_size_type)0; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1507,7 +1503,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_HIGH_CAPACITY_SD_CARD) @@ -1528,7 +1524,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -1574,7 +1570,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_APP_CMD); @@ -1592,7 +1588,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCK_COUNT); @@ -1649,7 +1645,7 @@ sd_error_status_type mmc_stream_read(uint8_t *buf, long long addr, uint32_t len) SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0 ; sdio_data_init_struct.timeout = SD_DATATIMEOUT ; @@ -1664,7 +1660,7 @@ sd_error_status_type mmc_stream_read(uint8_t *buf, long long addr, uint32_t len) /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } /* send cmd11, read data */ sdio_command_init_struct.argument = addr; @@ -1703,7 +1699,7 @@ sd_error_status_type mmc_stream_write(uint8_t *buf, long long addr, uint32_t len SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1718,7 +1714,7 @@ sd_error_status_type mmc_stream_write(uint8_t *buf, long long addr, uint32_t len /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } /* send cmd20, write data */ sdio_command_init_struct.argument = addr; @@ -1792,7 +1788,7 @@ sd_error_status_type sd_irq_service(void) sdio_command_init_struct.wait_type = SDIO_WAIT_FOR_NO; /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); transfer_error = command_rsp1_error(SD_CMD_STOP_TRANSMISSION); } @@ -2183,7 +2179,7 @@ sd_error_status_type command_rsp6_error(uint8_t cmd, uint16_t *prca) response = sdio_response_get(SDIOx, SDIO_RSP1_INDEX); - if(SD_ALLZERO == (response & (SD_R6_GENERAL_UNKNOWN_ERROR | SD_R6_ILLEGAL_CMD | SD_R6_CMD_CRC_FAILED))) + if(SD_ALLZERO == (response & (SD_R6_GENERAL_UNKNOWN_ERROR | SD_R6_ILLEGAL_CMD | SD_R6_CMD_CRC_ERROR))) { *prca = (uint16_t)(response >> 16); return status; @@ -2199,9 +2195,9 @@ sd_error_status_type command_rsp6_error(uint8_t cmd, uint16_t *prca) return SD_ILLEGAL_CMD; } - if(response & SD_R6_CMD_CRC_FAILED) + if(response & SD_R6_CMD_CRC_ERROR) { - return SD_CMD_CRC_FAILED; + return SD_CMD_CRC_ERROR; } return status; @@ -2233,7 +2229,7 @@ sd_error_status_type sd_bus_wide_enable(confirm_state new_state) /* check card locked or not */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(sd_card_info.sd_scr_reg.sd_bus_width) @@ -2245,7 +2241,7 @@ sd_error_status_type sd_bus_wide_enable(confirm_state new_state) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_APP_CMD); @@ -2262,7 +2258,7 @@ sd_error_status_type sd_bus_wide_enable(confirm_state new_state) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_APP_SD_SET_BUSWIDTH); @@ -2293,7 +2289,7 @@ sd_error_status_type mmc_switch(uint8_t set, uint8_t index, uint8_t value) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_HS_SWITCH); @@ -2355,7 +2351,7 @@ sd_error_status_type sd_switch(uint32_t mode, uint32_t group, uint8_t value, uin /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -2400,7 +2396,7 @@ sd_error_status_type check_card_programming(uint8_t *p_status) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); sts_reg = SDIOx->sts; @@ -2459,7 +2455,7 @@ sd_error_status_type sd_status_send(uint32_t *p_card_status) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SEND_STATUS); @@ -2513,7 +2509,7 @@ sd_error_status_type scr_find(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -2531,7 +2527,7 @@ sd_error_status_type scr_find(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_APP_CMD); @@ -2558,7 +2554,7 @@ sd_error_status_type scr_find(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SD_APP_SEND_SCR); diff --git a/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32f403a_407_int.c b/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32f403a_407_int.c index 65cbe776..cf9754ea 100644 --- a/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/sdio/sd_mmc_card/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sd_mmc_card/src/main.c b/project/at_start_f403a/examples/sdio/sd_mmc_card/src/main.c index 91db60ca..2b54610d 100644 --- a/project/at_start_f403a/examples/sdio/sd_mmc_card/src/main.c +++ b/project/at_start_f403a/examples/sdio/sd_mmc_card/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32_sdio.h b/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32_sdio.h index 0020bf8c..48f08764 100644 --- a/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32_sdio.h +++ b/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32_sdio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_sdio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the functions prototypes for the sd/mmc * card at32_sdio driver firmware library. ************************************************************************** @@ -73,8 +73,8 @@ typedef enum typedef enum { /* sdio specific error defines ------------------------------------------*/ - SD_CMD_FAIL = 1, /*!< command response received (but crc check failed) */ - SD_DATA_FAIL = 2, /*!< data bock sent/received (crc check failed) */ + SD_CMD_FAIL = 1, /*!< command response received (but crc check error) */ + SD_DATA_FAIL = 2, /*!< data bock sent/received (crc check error) */ SD_CMD_RSP_TIMEOUT = 3, /*!< command response timeout */ SD_DATA_TIMEOUT = 4, /*!< data time out */ SD_TX_UNDERRUN = 5, /*!< transmit fifo under-run */ @@ -86,10 +86,10 @@ typedef enum SD_ERASE_SEQ_ERR = 11, /*!< an error in the sequence of erase command occurs. */ SD_INVALID_ERASE_PARAM = 12, /*!< an invalid selection for erase groups */ SD_WR_PROTECT_VIOLATION = 13, /*!< attempt to program a write protect block */ - SD_LOCK_UNLOCK_FAILED = 14, /*!< sequence or password error has been detected in unlock command or if there was an attempt to access a locked card */ - SD_CMD_CRC_FAILED = 15, /*!< crc check of the previous command failed */ + SD_LOCK_UNLOCK_ERROR = 14, /*!< sequence or password error has been detected in unlock command or if there was an attempt to access a locked card */ + SD_CMD_CRC_ERROR = 15, /*!< crc check of the previous command error */ SD_ILLEGAL_CMD = 16, /*!< command is not legal for the card state */ - SD_CARD_ECC_FAILED = 17, /*!< card internal ecc was applied but failed to correct the data */ + SD_CARD_ECC_ERROR = 17, /*!< card internal ecc was applied but error to correct the data */ SD_CARD_CONTROLLER_ERR = 18, /*!< internal card controller error */ SD_GENERAL_UNKNOWN_ERROR = 19, /*!< general or unknown error */ SD_STREAM_RD_UNDERRUN = 20, /*!< the card could not sustain data transfer in stream read operation. */ @@ -104,7 +104,7 @@ typedef enum SD_SWITCH_ERROR = 29, /*!< switch error */ SD_SDIO_DISABLED = 30, /*!< sdio disabled */ SD_SDIO_FUNC_BUSY = 31, /*!< function busy */ - SD_SDIO_FUNC_FAILED = 32, /*!< function failed */ + SD_SDIO_FUNC_ERROR = 32, /*!< function error */ SD_SDIO_UNKNOWN_FUNC = 33, /*!< unknown function */ /* standard error defines --------------------------------------------*/ @@ -359,10 +359,10 @@ typedef struct #define SD_OCR_ERASE_SEQ_ERR ((uint32_t)0x10000000) #define SD_OCR_INVALID_ERASE_PARAM ((uint32_t)0x08000000) #define SD_OCR_WR_PROTECT_VIOLATION ((uint32_t)0x04000000) -#define SD_OCR_LOCK_UNLOCK_FAILED ((uint32_t)0x01000000) -#define SD_OCR_CMD_CRC_FAILED ((uint32_t)0x00800000) +#define SD_OCR_LOCK_UNLOCK_ERROR ((uint32_t)0x01000000) +#define SD_OCR_CMD_CRC_ERROR ((uint32_t)0x00800000) #define SD_OCR_ILLEGAL_CMD ((uint32_t)0x00400000) -#define SD_OCR_CARD_ECC_FAILED ((uint32_t)0x00200000) +#define SD_OCR_CARD_ECC_ERROR ((uint32_t)0x00200000) #define SD_OCR_CARD_CONTROLLER_ERR ((uint32_t)0x00100000) #define SD_OCR_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00080000) #define SD_OCR_STREAM_RD_UNDERRUN ((uint32_t)0x00040000) @@ -387,13 +387,13 @@ typedef struct */ #define SD_R6_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00002000) #define SD_R6_ILLEGAL_CMD ((uint32_t)0x00004000) -#define SD_R6_CMD_CRC_FAILED ((uint32_t)0x00008000) +#define SD_R6_CMD_CRC_ERROR ((uint32_t)0x00008000) #define SD_VOLTAGE_WINDOW_SD ((uint32_t)0x80100000) #define SD_HIGH_CAPACITY ((uint32_t)0x40000000) #define SD_STD_CAPACITY ((uint32_t)0x00000000) #define SD_CHECK_PATTERN ((uint32_t)0x000001AA) #define SD_VOLTAGE_WINDOW_MMC ((uint32_t)0x80FF8000) -#define SD_MAX_VOLT_TRIAL ((uint32_t)0x0000FFFF) +#define SD_MAX_VOLT_TRIAL ((uint32_t)0x000000FF) #define SD_ALLZERO ((uint32_t)0x00000000) #define SD_WIDE_BUS_SUPPORT ((uint32_t)0x00040000) #define SD_SINGLE_BUS_SUPPORT ((uint32_t)0x00010000) diff --git a/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/sdio/sdio_fatfs/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sdio_fatfs/readme.txt b/project/at_start_f403a/examples/sdio/sdio_fatfs/readme.txt index a066e20c..b4ebeb64 100644 --- a/project/at_start_f403a/examples/sdio/sdio_fatfs/readme.txt +++ b/project/at_start_f403a/examples/sdio/sdio_fatfs/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,4 @@ - sdio1_d3 pc11 ---> dat3 - sdio1_ck pc12 ---> clk - sdio1_cmd pd2 ---> cmd + for more detailed information. please refer to the application note document AN0105. \ No newline at end of file diff --git a/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32_sdio.c b/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32_sdio.c index c824c88d..4f8947c2 100644 --- a/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32_sdio.c +++ b/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32_sdio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_sdio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file provides a set of functions needed to manage the * sdio/mmc card memory. ************************************************************************** @@ -74,6 +74,7 @@ sd_error_status_type sd_init(void) uint16_t clkdiv = 0; sd_error_status_type status = SD_OK; gpio_init_type gpio_init_struct = {0}; + uint8_t retry = 0; /* gpioc and gpiod periph clock enable */ crm_periph_clock_enable(CRM_GPIOC_PERIPH_CLOCK, TRUE); @@ -94,12 +95,17 @@ sd_error_status_type sd_init(void) gpio_init_struct.gpio_pins = GPIO_PINS_2; gpio_init(GPIOD, &gpio_init_struct); - /* reset sdio */ - sdio_reset(SDIOx); - - /* power on */ - status = sd_power_on(); - + retry = 10; + while(retry--){ + /* reset sdio */ + sdio_reset(SDIOx); + /* power on */ + status = sd_power_on(); + + if(status == SD_OK) + break; + } + if(status == SD_OK) { /* sdio card initialize */ @@ -139,8 +145,8 @@ sd_error_status_type sd_init(void) { if(sd_card_info.card_type == SDIO_STD_CAPACITY_SD_CARD_V1_1 || sd_card_info.card_type == SDIO_STD_CAPACITY_SD_CARD_V2_0) { - /* set sdio_ck to 4mhz */ - clkdiv = system_core_clock / 4000000; + /* set sdio_ck to 12mhz */ + clkdiv = system_core_clock / 12000000; if(clkdiv >= 2) { @@ -149,8 +155,8 @@ sd_error_status_type sd_init(void) } else { - /* set sdio_ck to 4mhz */ - clkdiv = system_core_clock / 4000000; + /* set sdio_ck to 48mhz */ + clkdiv = system_core_clock / 48000000; if(clkdiv >= 2) { @@ -239,16 +245,6 @@ sd_error_status_type sd_power_on(void) /* get command status */ status = command_error(); - - if(status == SD_OK) - { - break; - } - } - /* if any errors occured, return status */ - if(status != SD_OK) - { - return status; } /* send cmd8, check card interface feature */ @@ -1044,7 +1040,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) end_addr = start_addr + (nblks - 1) * 512; } - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0 ; sdio_data_init_struct.timeout = SD_DATATIMEOUT ; @@ -1059,7 +1055,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_MULTIMEDIA_CARD || card_type == SDIO_HIGH_SPEED_MULTIMEDIA_CARD) @@ -1218,7 +1214,7 @@ sd_error_status_type sd_block_read(uint8_t *buf, long long addr, uint16_t blk_si /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if((blk_size > 0) && (blk_size <= 2048) && ((blk_size & (blk_size - 1)) == 0)) @@ -1302,7 +1298,7 @@ sd_error_status_type sd_mult_blocks_read(uint8_t *buf, long long addr, uint16_t /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if((blk_size > 0) && (blk_size <= 2048) && ((blk_size & (blk_size - 1)) == 0)) @@ -1391,7 +1387,7 @@ sd_error_status_type sd_block_write(const uint8_t *buf, long long addr, uint16_t /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_HIGH_CAPACITY_SD_CARD) @@ -1513,7 +1509,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_HIGH_CAPACITY_SD_CARD) @@ -1655,7 +1651,7 @@ sd_error_status_type mmc_stream_read(uint8_t *buf, long long addr, uint32_t len) SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0 ; sdio_data_init_struct.timeout = SD_DATATIMEOUT ; @@ -1670,7 +1666,7 @@ sd_error_status_type mmc_stream_read(uint8_t *buf, long long addr, uint32_t len) /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } /* send cmd11, read data */ sdio_command_init_struct.argument = addr; @@ -1724,7 +1720,7 @@ sd_error_status_type mmc_stream_write(uint8_t *buf, long long addr, uint32_t len /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } /* send cmd20, write data */ sdio_command_init_struct.argument = addr; @@ -2189,7 +2185,7 @@ sd_error_status_type command_rsp6_error(uint8_t cmd, uint16_t *prca) response = sdio_response_get(SDIOx, SDIO_RSP1_INDEX); - if(SD_ALLZERO == (response & (SD_R6_GENERAL_UNKNOWN_ERROR | SD_R6_ILLEGAL_CMD | SD_R6_CMD_CRC_FAILED))) + if(SD_ALLZERO == (response & (SD_R6_GENERAL_UNKNOWN_ERROR | SD_R6_ILLEGAL_CMD | SD_R6_CMD_CRC_ERROR))) { *prca = (uint16_t)(response >> 16); return status; @@ -2205,9 +2201,9 @@ sd_error_status_type command_rsp6_error(uint8_t cmd, uint16_t *prca) return SD_ILLEGAL_CMD; } - if(response & SD_R6_CMD_CRC_FAILED) + if(response & SD_R6_CMD_CRC_ERROR) { - return SD_CMD_CRC_FAILED; + return SD_CMD_CRC_ERROR; } return status; @@ -2239,7 +2235,7 @@ sd_error_status_type sd_bus_wide_enable(confirm_state new_state) /* check card locked or not */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(sd_card_info.sd_scr_reg.sd_bus_width) diff --git a/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32f403a_407_int.c b/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32f403a_407_int.c index 07368b15..4e0d4ba8 100644 --- a/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/sdio/sdio_fatfs/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sdio/sdio_fatfs/src/main.c b/project/at_start_f403a/examples/sdio/sdio_fatfs/src/main.c index 0713c3c4..e65f0781 100644 --- a/project/at_start_f403a/examples/sdio/sdio_fatfs/src/main.c +++ b/project/at_start_f403a/examples/sdio/sdio_fatfs/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/spi/crc_transfer_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/crc_transfer_polling/readme.txt b/project/at_start_f403a/examples/spi/crc_transfer_polling/readme.txt index 224f6952..ce5b4aa8 100644 --- a/project/at_start_f403a/examples/spi/crc_transfer_polling/readme.txt +++ b/project/at_start_f403a/examples/spi/crc_transfer_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ pb13(sck) <---> pa5(sck) pb14(miso) <---> pa6(miso) pb15(mosi) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/spi/crc_transfer_polling/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/spi/crc_transfer_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/spi/crc_transfer_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/spi/crc_transfer_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/crc_transfer_polling/src/at32f403a_407_int.c b/project/at_start_f403a/examples/spi/crc_transfer_polling/src/at32f403a_407_int.c index 714718dd..e328a6b7 100644 --- a/project/at_start_f403a/examples/spi/crc_transfer_polling/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/spi/crc_transfer_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/crc_transfer_polling/src/main.c b/project/at_start_f403a/examples/spi/crc_transfer_polling/src/main.c index 2b425974..9c50ceb2 100644 --- a/project/at_start_f403a/examples/spi/crc_transfer_polling/src/main.c +++ b/project/at_start_f403a/examples/spi/crc_transfer_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/spi/fullduplex_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/fullduplex_polling/readme.txt b/project/at_start_f403a/examples/spi/fullduplex_polling/readme.txt index 0f6c4717..d9111f46 100644 --- a/project/at_start_f403a/examples/spi/fullduplex_polling/readme.txt +++ b/project/at_start_f403a/examples/spi/fullduplex_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ pb13(sck) <---> pa5(sck) pb14(miso) <---> pa6(miso) pb15(mosi) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/spi/fullduplex_polling/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/spi/fullduplex_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/spi/fullduplex_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/spi/fullduplex_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/fullduplex_polling/src/at32f403a_407_int.c b/project/at_start_f403a/examples/spi/fullduplex_polling/src/at32f403a_407_int.c index 1610ab97..f6735c0c 100644 --- a/project/at_start_f403a/examples/spi/fullduplex_polling/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/spi/fullduplex_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/fullduplex_polling/src/main.c b/project/at_start_f403a/examples/spi/fullduplex_polling/src/main.c index 56c39ded..06df5986 100644 --- a/project/at_start_f403a/examples/spi/fullduplex_polling/src/main.c +++ b/project/at_start_f403a/examples/spi/fullduplex_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/spi/halfduplex_interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_interrupt/readme.txt b/project/at_start_f403a/examples/spi/halfduplex_interrupt/readme.txt index c1348cc3..c1ed22df 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_interrupt/readme.txt +++ b/project/at_start_f403a/examples/spi/halfduplex_interrupt/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ - spi2 slaver spi1 master pb13(sck) <---> pa5(sck) pb14(miso) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/at32f403a_407_int.c b/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/at32f403a_407_int.c index 42f07573..c7c0d0ce 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/main.c b/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/main.c index b4a3ea31..078a9eda 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/main.c +++ b/project/at_start_f403a/examples/spi/halfduplex_interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/readme.txt b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/readme.txt index b2d079a0..da1ed8b3 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/readme.txt +++ b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ - spi2 slaver spi1 master pb13(sck) <---> pa5(sck) pb14(miso) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_int.c b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_int.c index 3e4f2ad2..d71e8539 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/main.c b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/main.c index 88475705..ab9c96c6 100644 --- a/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/main.c +++ b/project/at_start_f403a/examples/spi/halfduplex_transceiver_switch/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/spi/only_receive_mode_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/only_receive_mode_polling/readme.txt b/project/at_start_f403a/examples/spi/only_receive_mode_polling/readme.txt index 49a8538a..87078413 100644 --- a/project/at_start_f403a/examples/spi/only_receive_mode_polling/readme.txt +++ b/project/at_start_f403a/examples/spi/only_receive_mode_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ - spi2 slaver spi1 master pb13(sck) <---> pa5(sck) pb15(mosi) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/at32f403a_407_int.c b/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/at32f403a_407_int.c index f46145c8..5156bd01 100644 --- a/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/main.c b/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/main.c index 0ff2fa33..1510f6ae 100644 --- a/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/main.c +++ b/project/at_start_f403a/examples/spi/only_receive_mode_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/readme.txt b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/readme.txt index cb8c7fc7..c8a662dc 100644 --- a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/readme.txt +++ b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,3 +15,5 @@ - pb12(cs) <---> pa15(cs) pb13(sck) <---> pb3(sck) pb14(miso) <---> pb5(miso) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_int.c b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_int.c index 2e1c0611..c448be5a 100644 --- a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c index 31190c97..9fdfc3a9 100644 --- a/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c +++ b/project/at_start_f403a/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -186,6 +186,10 @@ int main(void) { system_clock_config(); at32_board_init(); + + /* button press:ensure code canbe download normally */ + while(at32_button_press() == NO_BUTTON); + gpio_config(); spi_config(); dma_channel_enable(DMA1_CHANNEL4, TRUE); diff --git a/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/spi/w25q_flash/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/w25q_flash/inc/spi_flash.h b/project/at_start_f403a/examples/spi/w25q_flash/inc/spi_flash.h index ada06f0a..7053176d 100644 --- a/project/at_start_f403a/examples/spi/w25q_flash/inc/spi_flash.h +++ b/project/at_start_f403a/examples/spi/w25q_flash/inc/spi_flash.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file spi_flash.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of spi_flash ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/w25q_flash/readme.txt b/project/at_start_f403a/examples/spi/w25q_flash/readme.txt index bb993e86..c9dc8991 100644 --- a/project/at_start_f403a/examples/spi/w25q_flash/readme.txt +++ b/project/at_start_f403a/examples/spi/w25q_flash/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,3 +15,5 @@ - miso <---> pa6 - mosi <---> pa7 - usart1_tx <---> pa9 + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f403a/examples/spi/w25q_flash/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/spi/w25q_flash/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/spi/w25q_flash/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/spi/w25q_flash/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/w25q_flash/src/at32f403a_407_int.c b/project/at_start_f403a/examples/spi/w25q_flash/src/at32f403a_407_int.c index 9908c696..48871873 100644 --- a/project/at_start_f403a/examples/spi/w25q_flash/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/spi/w25q_flash/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/w25q_flash/src/main.c b/project/at_start_f403a/examples/spi/w25q_flash/src/main.c index 781c02b3..24794535 100644 --- a/project/at_start_f403a/examples/spi/w25q_flash/src/main.c +++ b/project/at_start_f403a/examples/spi/w25q_flash/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/spi/w25q_flash/src/spi_flash.c b/project/at_start_f403a/examples/spi/w25q_flash/src/spi_flash.c index ee5dd90e..e03ec4a5 100644 --- a/project/at_start_f403a/examples/spi/w25q_flash/src/spi_flash.c +++ b/project/at_start_f403a/examples/spi/w25q_flash/src/spi_flash.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file spi_flash.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief spi_flash source code ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sram/extend_sram/iar_v8.2/startup_at32f403a_407_ext_ram.s b/project/at_start_f403a/examples/sram/extend_sram/iar_v8.2/startup_at32f403a_407_ext_ram.s index 0a623fa6..18743669 100644 --- a/project/at_start_f403a/examples/sram/extend_sram/iar_v8.2/startup_at32f403a_407_ext_ram.s +++ b/project/at_start_f403a/examples/sram/extend_sram/iar_v8.2/startup_at32f403a_407_ext_ram.s @@ -1,7 +1,7 @@ ;************************************************************************** ;* @file startup_at32f403a_407.s -;* @version v2.0.8 -;* @date 2022-04-02 +;* @version v2.0.9 +;* @date 2022-04-25 ;* @brief at32f403a_407 startup file for IAR Systems ;************************************************************************** diff --git a/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/sram/extend_sram/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sram/extend_sram/mdk_v5/startup_at32f403a_407_ext_ram.s b/project/at_start_f403a/examples/sram/extend_sram/mdk_v5/startup_at32f403a_407_ext_ram.s index d9baaa8a..81814b79 100644 --- a/project/at_start_f403a/examples/sram/extend_sram/mdk_v5/startup_at32f403a_407_ext_ram.s +++ b/project/at_start_f403a/examples/sram/extend_sram/mdk_v5/startup_at32f403a_407_ext_ram.s @@ -1,7 +1,7 @@ ;************************************************************************** ;* @file startup_at32f403a_407.s -;* @version v2.0.8 -;* @date 2022-04-02 +;* @version v2.0.9 +;* @date 2022-04-25 ;* @brief at32f403a_407 startup file for keil ;************************************************************************** ; diff --git a/project/at_start_f403a/examples/sram/extend_sram/readme.txt b/project/at_start_f403a/examples/sram/extend_sram/readme.txt index 78b7586d..04cb1f35 100644 --- a/project/at_start_f403a/examples/sram/extend_sram/readme.txt +++ b/project/at_start_f403a/examples/sram/extend_sram/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/examples/sram/extend_sram/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/sram/extend_sram/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/sram/extend_sram/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/sram/extend_sram/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sram/extend_sram/src/at32f403a_407_int.c b/project/at_start_f403a/examples/sram/extend_sram/src/at32f403a_407_int.c index 67cacd14..01d9ce07 100644 --- a/project/at_start_f403a/examples/sram/extend_sram/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/sram/extend_sram/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/sram/extend_sram/src/main.c b/project/at_start_f403a/examples/sram/extend_sram/src/main.c index f8a71b63..ee859605 100644 --- a/project/at_start_f403a/examples/sram/extend_sram/src/main.c +++ b/project/at_start_f403a/examples/sram/extend_sram/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/6_steps/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/6_steps/readme.txt b/project/at_start_f403a/examples/tmr/6_steps/readme.txt index 67ddb23e..9bc8a688 100644 --- a/project/at_start_f403a/examples/tmr/6_steps/readme.txt +++ b/project/at_start_f403a/examples/tmr/6_steps/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -33,4 +33,6 @@ - tmr1_ch2 ---> pa9 - tmr1_ch3c ---> pb15 - tmr1_ch1 ---> pa8 - - tmr1_ch2c ---> pb14 \ No newline at end of file + - tmr1_ch2c ---> pb14 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/6_steps/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/6_steps/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/6_steps/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/6_steps/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/6_steps/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/6_steps/src/at32f403a_407_int.c index 90d8596b..28c2b842 100644 --- a/project/at_start_f403a/examples/tmr/6_steps/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/6_steps/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/6_steps/src/main.c b/project/at_start_f403a/examples/tmr/6_steps/src/main.c index 49431e19..ffcee3b6 100644 --- a/project/at_start_f403a/examples/tmr/6_steps/src/main.c +++ b/project/at_start_f403a/examples/tmr/6_steps/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/7_pwm_output/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/7_pwm_output/readme.txt b/project/at_start_f403a/examples/tmr/7_pwm_output/readme.txt index ce70c704..e38a8067 100644 --- a/project/at_start_f403a/examples/tmr/7_pwm_output/readme.txt +++ b/project/at_start_f403a/examples/tmr/7_pwm_output/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -29,4 +29,6 @@ - tmr1_ch2c ---> pb14 - tmr1_ch3 ---> pa10 - tmr1_ch3c ---> pb15 - - tmr1_ch4 ---> pa11 \ No newline at end of file + - tmr1_ch4 ---> pa11 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/7_pwm_output/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/7_pwm_output/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/7_pwm_output/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/7_pwm_output/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/7_pwm_output/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/7_pwm_output/src/at32f403a_407_int.c index 8d5398e5..a7813ceb 100644 --- a/project/at_start_f403a/examples/tmr/7_pwm_output/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/7_pwm_output/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/7_pwm_output/src/main.c b/project/at_start_f403a/examples/tmr/7_pwm_output/src/main.c index 3cf0cd8c..9c977e93 100644 --- a/project/at_start_f403a/examples/tmr/7_pwm_output/src/main.c +++ b/project/at_start_f403a/examples/tmr/7_pwm_output/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/cascade_synchro/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/cascade_synchro/readme.txt b/project/at_start_f403a/examples/tmr/cascade_synchro/readme.txt index 6bcb73b8..3caec544 100644 --- a/project/at_start_f403a/examples/tmr/cascade_synchro/readme.txt +++ b/project/at_start_f403a/examples/tmr/cascade_synchro/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -51,4 +51,6 @@ connect the following pins to an oscilloscope to monitor the different waveforms: - tmr2 ch1 (pa.00) - tmr3 ch1 (pa.06) - - tmr4 ch1 (pb.06) \ No newline at end of file + - tmr4 ch1 (pb.06) + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/cascade_synchro/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/cascade_synchro/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/cascade_synchro/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/cascade_synchro/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/cascade_synchro/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/cascade_synchro/src/at32f403a_407_int.c index 3782b972..8e0daf20 100644 --- a/project/at_start_f403a/examples/tmr/cascade_synchro/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/cascade_synchro/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/cascade_synchro/src/main.c b/project/at_start_f403a/examples/tmr/cascade_synchro/src/main.c index 96142174..3d8042bd 100644 --- a/project/at_start_f403a/examples/tmr/cascade_synchro/src/main.c +++ b/project/at_start_f403a/examples/tmr/cascade_synchro/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/complementary_signals/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/complementary_signals/readme.txt b/project/at_start_f403a/examples/tmr/complementary_signals/readme.txt index dc3b4692..b5b5577a 100644 --- a/project/at_start_f403a/examples/tmr/complementary_signals/readme.txt +++ b/project/at_start_f403a/examples/tmr/complementary_signals/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -47,4 +47,6 @@ - tmr1_ch3c pin (pb.15) - connect the tmr1 break pin tmr1_brkin pin (pb.12) to the gnd. to generate a - break event, switch this pin level from 0v to 3.3v. \ No newline at end of file + break event, switch this pin level from 0v to 3.3v. + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/complementary_signals/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/complementary_signals/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/complementary_signals/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/complementary_signals/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/complementary_signals/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/complementary_signals/src/at32f403a_407_int.c index 8ce6e71a..b6c51f86 100644 --- a/project/at_start_f403a/examples/tmr/complementary_signals/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/complementary_signals/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/complementary_signals/src/main.c b/project/at_start_f403a/examples/tmr/complementary_signals/src/main.c index b08bfbfe..d41dc3a6 100644 --- a/project/at_start_f403a/examples/tmr/complementary_signals/src/main.c +++ b/project/at_start_f403a/examples/tmr/complementary_signals/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma/readme.txt b/project/at_start_f403a/examples/tmr/dma/readme.txt index 27ed4783..bcab0c3f 100644 --- a/project/at_start_f403a/examples/tmr/dma/readme.txt +++ b/project/at_start_f403a/examples/tmr/dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,4 +15,6 @@ connect the following pins to an oscilloscope to monitor the different waveforms: - tmr1 ch3 ---> pa10 - - tmr1 ch3c ---> pb15 \ No newline at end of file + - tmr1 ch3c ---> pb15 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/dma/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/dma/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/dma/src/at32f403a_407_int.c index 92c7e023..3ad26597 100644 --- a/project/at_start_f403a/examples/tmr/dma/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma/src/main.c b/project/at_start_f403a/examples/tmr/dma/src/main.c index 6537d659..4f8cdd95 100644 --- a/project/at_start_f403a/examples/tmr/dma/src/main.c +++ b/project/at_start_f403a/examples/tmr/dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/dma_burst/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma_burst/readme.txt b/project/at_start_f403a/examples/tmr/dma_burst/readme.txt index 81c02bcc..b0e96060 100644 --- a/project/at_start_f403a/examples/tmr/dma_burst/readme.txt +++ b/project/at_start_f403a/examples/tmr/dma_burst/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -27,4 +27,6 @@ set-up connect the following pins to an oscilloscope to monitor the different waveforms: - - tim1 ch1 ---> pa8 \ No newline at end of file + - tim1 ch1 ---> pa8 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/dma_burst/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/dma_burst/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/dma_burst/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/dma_burst/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma_burst/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/dma_burst/src/at32f403a_407_int.c index e46eadad..4aeedf3d 100644 --- a/project/at_start_f403a/examples/tmr/dma_burst/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/dma_burst/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/dma_burst/src/main.c b/project/at_start_f403a/examples/tmr/dma_burst/src/main.c index 168b3a95..c3304a89 100644 --- a/project/at_start_f403a/examples/tmr/dma_burst/src/main.c +++ b/project/at_start_f403a/examples/tmr/dma_burst/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/encoder_tmr2/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/encoder_tmr2/readme.txt b/project/at_start_f403a/examples/tmr/encoder_tmr2/readme.txt index f422521a..b198548c 100644 --- a/project/at_start_f403a/examples/tmr/encoder_tmr2/readme.txt +++ b/project/at_start_f403a/examples/tmr/encoder_tmr2/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,4 +11,6 @@ added 4 each period. pin connection: - pa0 <---> pa2 - - pa1 <---> pa3 \ No newline at end of file + - pa1 <---> pa3 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/encoder_tmr2/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/encoder_tmr2/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/encoder_tmr2/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/encoder_tmr2/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/encoder_tmr2/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/encoder_tmr2/src/at32f403a_407_int.c index 378cb744..a688d5cf 100644 --- a/project/at_start_f403a/examples/tmr/encoder_tmr2/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/encoder_tmr2/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/encoder_tmr2/src/main.c b/project/at_start_f403a/examples/tmr/encoder_tmr2/src/main.c index aeea8a6f..2157d4ef 100644 --- a/project/at_start_f403a/examples/tmr/encoder_tmr2/src/main.c +++ b/project/at_start_f403a/examples/tmr/encoder_tmr2/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/external_clock/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/external_clock/readme.txt b/project/at_start_f403a/examples/tmr/external_clock/readme.txt index e5cccad9..87f7df4b 100644 --- a/project/at_start_f403a/examples/tmr/external_clock/readme.txt +++ b/project/at_start_f403a/examples/tmr/external_clock/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,4 +10,6 @@ this demo is based on the at-start board, in this demo, pb0 output pwm waves. connection : - pa0 <---> pa7 - - pb0 output 4.16 hz pwm waveform \ No newline at end of file + - pb0 output 4.16 hz pwm waveform + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/external_clock/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/external_clock/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/external_clock/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/external_clock/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/external_clock/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/external_clock/src/at32f403a_407_int.c index b1ef2cfd..26b3d035 100644 --- a/project/at_start_f403a/examples/tmr/external_clock/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/external_clock/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/external_clock/src/main.c b/project/at_start_f403a/examples/tmr/external_clock/src/main.c index caa6fa7a..9aa3ac90 100644 --- a/project/at_start_f403a/examples/tmr/external_clock/src/main.c +++ b/project/at_start_f403a/examples/tmr/external_clock/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/readme.txt b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/readme.txt index 4fa6d42e..d0fefc46 100644 --- a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/readme.txt +++ b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ - pa0 <---> pa3 - pa1 <---> pa6 - pa2 <---> pa7 + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/at32f403a_407_int.c index 30101fa9..94662b87 100644 --- a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/main.c b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/main.c index aa92d19d..673d7757 100644 --- a/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/main.c +++ b/project/at_start_f403a/examples/tmr/hall_xor_tmr2/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/hang_mode/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hang_mode/readme.txt b/project/at_start_f403a/examples/tmr/hang_mode/readme.txt index 7893aaa5..6be35b63 100644 --- a/project/at_start_f403a/examples/tmr/hang_mode/readme.txt +++ b/project/at_start_f403a/examples/tmr/hang_mode/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -26,4 +26,6 @@ set-up connect the following pins to an oscilloscope to monitor the different waveforms: - - tim1 ch1 ---> pa8 \ No newline at end of file + - tim1 ch1 ---> pa8 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/hang_mode/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/hang_mode/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/hang_mode/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/hang_mode/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hang_mode/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/hang_mode/src/at32f403a_407_int.c index 0b10adab..3f6dc465 100644 --- a/project/at_start_f403a/examples/tmr/hang_mode/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/hang_mode/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/hang_mode/src/main.c b/project/at_start_f403a/examples/tmr/hang_mode/src/main.c index 5c6f2b07..ed60170c 100644 --- a/project/at_start_f403a/examples/tmr/hang_mode/src/main.c +++ b/project/at_start_f403a/examples/tmr/hang_mode/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/input_capture/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/input_capture/readme.txt b/project/at_start_f403a/examples/tmr/input_capture/readme.txt index 573177ca..e85d9cef 100644 --- a/project/at_start_f403a/examples/tmr/input_capture/readme.txt +++ b/project/at_start_f403a/examples/tmr/input_capture/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,4 +11,6 @@ the tmr peripheral to measure the frequency of an external signal. the minimum frequency value to measure is 3.66 khz(240m/65536). set-up - - connect the external signal to measure to the tim3 ch2 pin (pa7). \ No newline at end of file + - connect the external signal to measure to the tim3 ch2 pin (pa7). + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/input_capture/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/input_capture/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/input_capture/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/input_capture/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/input_capture/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/input_capture/src/at32f403a_407_int.c index 26334d81..5f63d975 100644 --- a/project/at_start_f403a/examples/tmr/input_capture/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/input_capture/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/input_capture/src/main.c b/project/at_start_f403a/examples/tmr/input_capture/src/main.c index 12624ed2..59435c11 100644 --- a/project/at_start_f403a/examples/tmr/input_capture/src/main.c +++ b/project/at_start_f403a/examples/tmr/input_capture/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/oc_high/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_high/readme.txt b/project/at_start_f403a/examples/tmr/oc_high/readme.txt index 44862e9a..e395c8f6 100644 --- a/project/at_start_f403a/examples/tmr/oc_high/readme.txt +++ b/project/at_start_f403a/examples/tmr/oc_high/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -26,3 +26,5 @@ - pc7 - pc8 - pc9 + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f403a/examples/tmr/oc_high/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/oc_high/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/oc_high/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/oc_high/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_high/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/oc_high/src/at32f403a_407_int.c index fdcf27fd..37ad38c5 100644 --- a/project/at_start_f403a/examples/tmr/oc_high/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/oc_high/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_high/src/main.c b/project/at_start_f403a/examples/tmr/oc_high/src/main.c index 4238c042..5d9da98e 100644 --- a/project/at_start_f403a/examples/tmr/oc_high/src/main.c +++ b/project/at_start_f403a/examples/tmr/oc_high/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/oc_low/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_low/readme.txt b/project/at_start_f403a/examples/tmr/oc_low/readme.txt index 595b5566..c28818e8 100644 --- a/project/at_start_f403a/examples/tmr/oc_low/readme.txt +++ b/project/at_start_f403a/examples/tmr/oc_low/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -26,3 +26,5 @@ - pc7 - pc8 - pc9 + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f403a/examples/tmr/oc_low/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/oc_low/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/oc_low/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/oc_low/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_low/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/oc_low/src/at32f403a_407_int.c index f31214d6..af708b74 100644 --- a/project/at_start_f403a/examples/tmr/oc_low/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/oc_low/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_low/src/main.c b/project/at_start_f403a/examples/tmr/oc_low/src/main.c index 4a8499ef..1332f131 100644 --- a/project/at_start_f403a/examples/tmr/oc_low/src/main.c +++ b/project/at_start_f403a/examples/tmr/oc_low/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/readme.txt b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/readme.txt index 547a562e..89190a09 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/readme.txt +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ cc2 overflow rate = tmr3 counter clock / c2dt_val = 732.4 hz cc3 overflow rate = tmr3 counter clock / c3dt_val = 1464.8 hz cc4 overflow rate = tmr3 counter clock / c4dt_val = 2929.6 hz + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_int.c index 04c27996..0a80ec00 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/main.c b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/main.c index a3e772a0..e4a73686 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/main.c +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr3/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/readme.txt b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/readme.txt index edd00b27..e8445738 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/readme.txt +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,5 @@ waveform. tmr9_ch1 toggling with frequency = 366.2 hz tmr9_ch2 toggling with frequency = 732.4 hz + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_int.c index c61337ee..083c303e 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/main.c b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/main.c index 285a7df6..1c6152be 100644 --- a/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/main.c +++ b/project/at_start_f403a/examples/tmr/oc_toggle_tmr9/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/one_cycle/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/one_cycle/readme.txt b/project/at_start_f403a/examples/tmr/one_cycle/readme.txt index bc48ca00..62d9329e 100644 --- a/project/at_start_f403a/examples/tmr/one_cycle/readme.txt +++ b/project/at_start_f403a/examples/tmr/one_cycle/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pb7 connect to a key, press the key then pb6 output a pulse. pulse width = 2.048 ms. + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f403a/examples/tmr/one_cycle/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/one_cycle/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/one_cycle/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/one_cycle/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/one_cycle/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/one_cycle/src/at32f403a_407_int.c index 19ba0b67..75ba12f6 100644 --- a/project/at_start_f403a/examples/tmr/one_cycle/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/one_cycle/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/one_cycle/src/main.c b/project/at_start_f403a/examples/tmr/one_cycle/src/main.c index ef37a882..75ecf010 100644 --- a/project/at_start_f403a/examples/tmr/one_cycle/src/main.c +++ b/project/at_start_f403a/examples/tmr/one_cycle/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/parallel_synchro/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/parallel_synchro/readme.txt b/project/at_start_f403a/examples/tmr/parallel_synchro/readme.txt index 6fec7782..ba631fd3 100644 --- a/project/at_start_f403a/examples/tmr/parallel_synchro/readme.txt +++ b/project/at_start_f403a/examples/tmr/parallel_synchro/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,5 @@ the tmr4 is running: - at (tmr2 frequency)/ (tmr4 period + 1) = 150 khz and a duty cycle equal to tmr4_c1dt/(tmr4_pr + 1) = 60% + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f403a/examples/tmr/parallel_synchro/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/parallel_synchro/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/parallel_synchro/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/parallel_synchro/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/parallel_synchro/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/parallel_synchro/src/at32f403a_407_int.c index fcbd6709..d6b7656f 100644 --- a/project/at_start_f403a/examples/tmr/parallel_synchro/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/parallel_synchro/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/parallel_synchro/src/main.c b/project/at_start_f403a/examples/tmr/parallel_synchro/src/main.c index 4bf39c81..3b432c98 100644 --- a/project/at_start_f403a/examples/tmr/parallel_synchro/src/main.c +++ b/project/at_start_f403a/examples/tmr/parallel_synchro/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/pwm_input/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input/readme.txt b/project/at_start_f403a/examples/tmr/pwm_input/readme.txt index c7b0cff3..1e057459 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input/readme.txt +++ b/project/at_start_f403a/examples/tmr/pwm_input/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,5 @@ this demo is based on the at-start board, in this demo, pa7 input external signal,debug view to see frequency and duty_cycle or use uasrt1 to see frequency and duty_cycle(pa9:usart1_tx). + + for more detailed information. please refer to the application note document AN0085.s diff --git a/project/at_start_f403a/examples/tmr/pwm_input/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/pwm_input/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/pwm_input/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/pwm_input/src/at32f403a_407_int.c index 48ded814..bd6d9189 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/pwm_input/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input/src/main.c b/project/at_start_f403a/examples/tmr/pwm_input/src/main.c index dbfb01f2..d972b447 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input/src/main.c +++ b/project/at_start_f403a/examples/tmr/pwm_input/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/pwm_input_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input_dma/readme.txt b/project/at_start_f403a/examples/tmr/pwm_input_dma/readme.txt index f43f7bc7..79ddd746 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input_dma/readme.txt +++ b/project/at_start_f403a/examples/tmr/pwm_input_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,5 @@ this demo is based on the at-start-f403 board, in this demo, pa8 input external signal,debug view to see frequency and duty_cycle or use uasrt1 to see frequency and duty_cycle(pa9:usart1_tx). + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f403a/examples/tmr/pwm_input_dma/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/pwm_input_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/pwm_input_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input_dma/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/pwm_input_dma/src/at32f403a_407_int.c index 24cc6ac0..48cd06ad 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input_dma/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/pwm_input_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_input_dma/src/main.c b/project/at_start_f403a/examples/tmr/pwm_input_dma/src/main.c index 3e18421e..a8cd0202 100644 --- a/project/at_start_f403a/examples/tmr/pwm_input_dma/src/main.c +++ b/project/at_start_f403a/examples/tmr/pwm_input_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/pwm_output_simulate/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_simulate/readme.txt b/project/at_start_f403a/examples/tmr/pwm_output_simulate/readme.txt index 5ab695e2..d48f9812 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_simulate/readme.txt +++ b/project/at_start_f403a/examples/tmr/pwm_output_simulate/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -12,4 +12,6 @@ cc1 overflow rate = tmr2 counter clock / c1dt_val = 146.48 hz cc2 overflow rate = tmr2 counter clock / c2dt_val = 219.7 hz cc3 overflow rate = tmr2 counter clock / c3dt_val = 439.4 hz - cc4 overflow rate = tmr2 counter clock / c4dt_val = 878.9 hz \ No newline at end of file + cc4 overflow rate = tmr2 counter clock / c4dt_val = 878.9 hz + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/at32f403a_407_int.c index b6a2e79f..f06abf08 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/main.c b/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/main.c index 233578e8..53eaa682 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/main.c +++ b/project/at_start_f403a/examples/tmr/pwm_output_simulate/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/readme.txt b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/readme.txt index f68edafa..8864f14c 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/readme.txt +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/readme.txt @@ -1,10 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ - this demo is based on the at-start board, in this demo, pb8 output pwm waveform. \ No newline at end of file + this demo is based on the at-start board, in this demo, pb8 output pwm waveform. + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/at32f403a_407_int.c index 3725b975..56960754 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/main.c b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/main.c index da46b81c..f9c15dfa 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/main.c +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr10/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/readme.txt b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/readme.txt index cb5d4879..fead807b 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/readme.txt +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -12,4 +12,6 @@ tmr3 channel1 duty cycle = (tmr3_c1dt/ tmr3_pr)* 100 = 50% tmr3 channel2 duty cycle = (tmr3_c2dt/ tmr3_pr)* 100 = 37.5% tmr3 channel3 duty cycle = (tmr3_c3dt/ tmr3_pr)* 100 = 25% - tmr3 channel4 duty cycle = (tmr3_c4dt/ tmr3_pr)* 100 = 12.5% \ No newline at end of file + tmr3 channel4 duty cycle = (tmr3_c4dt/ tmr3_pr)* 100 = 12.5% + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/at32f403a_407_int.c index 1689521e..7101d8cf 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/main.c b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/main.c index dec8c5ea..7393270d 100644 --- a/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/main.c +++ b/project/at_start_f403a/examples/tmr/pwm_output_tmr3/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/timer_base/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/timer_base/readme.txt b/project/at_start_f403a/examples/tmr/timer_base/readme.txt index cc343625..d6a883ac 100644 --- a/project/at_start_f403a/examples/tmr/timer_base/readme.txt +++ b/project/at_start_f403a/examples/tmr/timer_base/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,5 @@ this demo is based on the at-start board, in this demo, shows how to configure the tmr1 peripheral to a base interrupt. when systermclock/24000/10000 = 1hz will generater overflow interrupt and toggle led3. + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/timer_base/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/timer_base/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/timer_base/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/timer_base/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/timer_base/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/timer_base/src/at32f403a_407_int.c index 6d107ee1..3865b171 100644 --- a/project/at_start_f403a/examples/tmr/timer_base/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/timer_base/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/timer_base/src/main.c b/project/at_start_f403a/examples/tmr/timer_base/src/main.c index dcd5df67..916c0b46 100644 --- a/project/at_start_f403a/examples/tmr/timer_base/src/main.c +++ b/project/at_start_f403a/examples/tmr/timer_base/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/tmr1_synchro/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr1_synchro/readme.txt b/project/at_start_f403a/examples/tmr/tmr1_synchro/readme.txt index 6d556c23..28aa7da1 100644 --- a/project/at_start_f403a/examples/tmr/tmr1_synchro/readme.txt +++ b/project/at_start_f403a/examples/tmr/tmr1_synchro/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -19,4 +19,6 @@ the tmr4 is running at: (tmr1 frequency)/ ((tmr4 period +1)* (repetition_counter+1)) = 74.96 khz and - a duty cycle equal to tmr4_ccr1/(tmr4_arr + 1) = 50% \ No newline at end of file + a duty cycle equal to tmr4_ccr1/(tmr4_arr + 1) = 50% + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/tmr1_synchro/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/tmr1_synchro/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/tmr1_synchro/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/tmr1_synchro/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr1_synchro/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/tmr1_synchro/src/at32f403a_407_int.c index f3c115e6..82e0bb0a 100644 --- a/project/at_start_f403a/examples/tmr/tmr1_synchro/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/tmr1_synchro/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr1_synchro/src/main.c b/project/at_start_f403a/examples/tmr/tmr1_synchro/src/main.c index 4275e60e..9c695935 100644 --- a/project/at_start_f403a/examples/tmr/tmr1_synchro/src/main.c +++ b/project/at_start_f403a/examples/tmr/tmr1_synchro/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/tmr/tmr2_32bit/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr2_32bit/readme.txt b/project/at_start_f403a/examples/tmr/tmr2_32bit/readme.txt index fcca107f..4b6ba926 100644 --- a/project/at_start_f403a/examples/tmr/tmr2_32bit/readme.txt +++ b/project/at_start_f403a/examples/tmr/tmr2_32bit/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,4 +14,6 @@ ch1 duty_cycle = 50% ch2 duty_cycle = 25% ch3 duty_cycle = 12.5% - ch4 duty_cycle = 6.25% \ No newline at end of file + ch4 duty_cycle = 6.25% + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f403a/examples/tmr/tmr2_32bit/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/tmr/tmr2_32bit/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/tmr/tmr2_32bit/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/tmr/tmr2_32bit/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr2_32bit/src/at32f403a_407_int.c b/project/at_start_f403a/examples/tmr/tmr2_32bit/src/at32f403a_407_int.c index ed632a1d..c04eb3fd 100644 --- a/project/at_start_f403a/examples/tmr/tmr2_32bit/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/tmr/tmr2_32bit/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/tmr/tmr2_32bit/src/main.c b/project/at_start_f403a/examples/tmr/tmr2_32bit/src/main.c index e751ebf2..48e3b997 100644 --- a/project/at_start_f403a/examples/tmr/tmr2_32bit/src/main.c +++ b/project/at_start_f403a/examples/tmr/tmr2_32bit/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/half_duplex/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/half_duplex/readme.txt b/project/at_start_f403a/examples/usart/half_duplex/readme.txt index f5bfbede..2be93b62 100644 --- a/project/at_start_f403a/examples/usart/half_duplex/readme.txt +++ b/project/at_start_f403a/examples/usart/half_duplex/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 tx pin (pb10) - connect a pull-up resistor to this line (10k). + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/half_duplex/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/half_duplex/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/half_duplex/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/half_duplex/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/half_duplex/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/half_duplex/src/at32f403a_407_int.c index 01e5448f..a15b5cda 100644 --- a/project/at_start_f403a/examples/usart/half_duplex/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/half_duplex/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/half_duplex/src/main.c b/project/at_start_f403a/examples/usart/half_duplex/src/main.c index 78b0ef22..14caf119 100644 --- a/project/at_start_f403a/examples/usart/half_duplex/src/main.c +++ b/project/at_start_f403a/examples/usart/half_duplex/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/hw_flow_control/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/hw_flow_control/readme.txt b/project/at_start_f403a/examples/usart/hw_flow_control/readme.txt index 9284e535..b1c18ebd 100644 --- a/project/at_start_f403a/examples/usart/hw_flow_control/readme.txt +++ b/project/at_start_f403a/examples/usart/hw_flow_control/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,4 @@ set-up - connect usart2 tx pin(pd5)/rx pin(pd6)/cts pin(pd3)/rts pin(pd4) + for more detailed information. please refer to the application note document AN0099. diff --git a/project/at_start_f403a/examples/usart/hw_flow_control/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/hw_flow_control/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/hw_flow_control/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/hw_flow_control/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/hw_flow_control/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/hw_flow_control/src/at32f403a_407_int.c index 50461f5a..9990c93d 100644 --- a/project/at_start_f403a/examples/usart/hw_flow_control/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/hw_flow_control/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/hw_flow_control/src/main.c b/project/at_start_f403a/examples/usart/hw_flow_control/src/main.c index 9d1b5288..f3672332 100644 --- a/project/at_start_f403a/examples/usart/hw_flow_control/src/main.c +++ b/project/at_start_f403a/examples/usart/hw_flow_control/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/idle_detection/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/idle_detection/readme.txt b/project/at_start_f403a/examples/usart/idle_detection/readme.txt index e6afaf9e..b006bf59 100644 --- a/project/at_start_f403a/examples/usart/idle_detection/readme.txt +++ b/project/at_start_f403a/examples/usart/idle_detection/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin(pa2) to rx pin(pa3) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/idle_detection/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/idle_detection/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/idle_detection/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/idle_detection/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/idle_detection/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/idle_detection/src/at32f403a_407_int.c index 65d68ae2..7acfcf69 100644 --- a/project/at_start_f403a/examples/usart/idle_detection/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/idle_detection/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/idle_detection/src/main.c b/project/at_start_f403a/examples/usart/idle_detection/src/main.c index 157869d5..4ec9a6bf 100644 --- a/project/at_start_f403a/examples/usart/idle_detection/src/main.c +++ b/project/at_start_f403a/examples/usart/idle_detection/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/interrupt/readme.txt b/project/at_start_f403a/examples/usart/interrupt/readme.txt index 858834bd..3f06efc6 100644 --- a/project/at_start_f403a/examples/usart/interrupt/readme.txt +++ b/project/at_start_f403a/examples/usart/interrupt/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 rx pin (pb11) - connect usart2 rx pin (pa3) to usart3 tx pin (pb10) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/interrupt/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/interrupt/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/interrupt/src/at32f403a_407_int.c index 170b9ccd..bd1cffa3 100644 --- a/project/at_start_f403a/examples/usart/interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/interrupt/src/main.c b/project/at_start_f403a/examples/usart/interrupt/src/main.c index 697fd52f..63ca8a2b 100644 --- a/project/at_start_f403a/examples/usart/interrupt/src/main.c +++ b/project/at_start_f403a/examples/usart/interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/irda/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/irda/readme.txt b/project/at_start_f403a/examples/usart/irda/readme.txt index d5cb4378..24b44c80 100644 --- a/project/at_start_f403a/examples/usart/irda/readme.txt +++ b/project/at_start_f403a/examples/usart/irda/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ set-up - use usart2 tx pin (pa2) and rx pin (pa3) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/irda/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/irda/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/irda/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/irda/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/irda/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/irda/src/at32f403a_407_int.c index ed9aa4b3..8c93ccc7 100644 --- a/project/at_start_f403a/examples/usart/irda/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/irda/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/irda/src/main.c b/project/at_start_f403a/examples/usart/irda/src/main.c index 44242ce0..1a491a16 100644 --- a/project/at_start_f403a/examples/usart/irda/src/main.c +++ b/project/at_start_f403a/examples/usart/irda/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/polling/readme.txt b/project/at_start_f403a/examples/usart/polling/readme.txt index 686a5f9e..59d4bc75 100644 --- a/project/at_start_f403a/examples/usart/polling/readme.txt +++ b/project/at_start_f403a/examples/usart/polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 rx pin (pb11) - connect usart2 rx pin (pa3) to usart3 tx pin (pb10) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/polling/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/polling/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/polling/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/polling/src/at32f403a_407_int.c index f09a3c31..9237dec7 100644 --- a/project/at_start_f403a/examples/usart/polling/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/polling/src/main.c b/project/at_start_f403a/examples/usart/polling/src/main.c index 0fe9b02f..dc839b72 100644 --- a/project/at_start_f403a/examples/usart/polling/src/main.c +++ b/project/at_start_f403a/examples/usart/polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/printf/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/printf/readme.txt b/project/at_start_f403a/examples/usart/printf/readme.txt index 8dfb088f..89563e7c 100644 --- a/project/at_start_f403a/examples/usart/printf/readme.txt +++ b/project/at_start_f403a/examples/usart/printf/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,5 @@ this demo is based on the at-start board, in this demo, shows how to retarget the c library printf function to the usart. this implementation output the printf message on the hyperterminal using usart1. using pa9 to transmit data(printf). + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/printf/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/printf/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/printf/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/printf/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/printf/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/printf/src/at32f403a_407_int.c index 1775f555..8f17d5f9 100644 --- a/project/at_start_f403a/examples/usart/printf/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/printf/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/printf/src/main.c b/project/at_start_f403a/examples/usart/printf/src/main.c index d9adec55..f5da8137 100644 --- a/project/at_start_f403a/examples/usart/printf/src/main.c +++ b/project/at_start_f403a/examples/usart/printf/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/receiver_mute/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/receiver_mute/readme.txt b/project/at_start_f403a/examples/usart/receiver_mute/readme.txt index 0b3e69b5..bfdaf49f 100644 --- a/project/at_start_f403a/examples/usart/receiver_mute/readme.txt +++ b/project/at_start_f403a/examples/usart/receiver_mute/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -16,3 +16,5 @@ set-up - connect usart2 tx pin (pa2) -> usart3 rx pin (pb11) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/receiver_mute/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/receiver_mute/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/receiver_mute/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/receiver_mute/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/receiver_mute/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/receiver_mute/src/at32f403a_407_int.c index f5ba7377..aca807c8 100644 --- a/project/at_start_f403a/examples/usart/receiver_mute/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/receiver_mute/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/receiver_mute/src/main.c b/project/at_start_f403a/examples/usart/receiver_mute/src/main.c index deed4faf..cfa105ce 100644 --- a/project/at_start_f403a/examples/usart/receiver_mute/src/main.c +++ b/project/at_start_f403a/examples/usart/receiver_mute/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/smartcard/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/smartcard/inc/smartcard_config.h b/project/at_start_f403a/examples/usart/smartcard/inc/smartcard_config.h index ad4ebf79..42b1b3de 100644 --- a/project/at_start_f403a/examples/usart/smartcard/inc/smartcard_config.h +++ b/project/at_start_f403a/examples/usart/smartcard/inc/smartcard_config.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file smartcard_config.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/smartcard/readme.txt b/project/at_start_f403a/examples/usart/smartcard/readme.txt index 36da7abb..466773e2 100644 --- a/project/at_start_f403a/examples/usart/smartcard/readme.txt +++ b/project/at_start_f403a/examples/usart/smartcard/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,5 @@ - sc usart reset ---> pa6 - sc usart cmdvcc ---> pa7 - sc usart off ---> pa8 + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/smartcard/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/smartcard/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/smartcard/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/smartcard/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/smartcard/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/smartcard/src/at32f403a_407_int.c index 59c6569f..de04639f 100644 --- a/project/at_start_f403a/examples/usart/smartcard/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/smartcard/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/smartcard/src/main.c b/project/at_start_f403a/examples/usart/smartcard/src/main.c index 13c721d7..33387d9f 100644 --- a/project/at_start_f403a/examples/usart/smartcard/src/main.c +++ b/project/at_start_f403a/examples/usart/smartcard/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -39,7 +39,10 @@ #define T0_PROTOCOL 0x00 /* t0 protocol */ #define SETUP_LENGTH 20 #define HIST_LENGTH 20 -#define SC_RECEIVE_TIMEOUT 0x4000 /* direction to reader */ +#define SC_RECEIVE_TIMEOUT 0xA000 /* direction to reader */ + +#define SC_USART_DIV_VAL 20 /* ISO 7816-3 protocol: SC_CLOCK_FREQ(PCLK/(2*USART_DIV_VAL)) is between 1 and 5 MHz */ +#define SC_F_DIV_D 372 /* ISO 7816-3 protocol: F/D = 372 */ /* atr structure - answer to reset */ typedef struct @@ -53,13 +56,15 @@ typedef struct } sc_atr_type; sc_atr_type sc_a2r_struct; +uint32_t sc_baud_rate = 0; +uint32_t sc_clock_freq = 0; uint32_t counter = 0; error_status atr_decode_status = ERROR; uint32_t card_inserted = 0, card_protocol = 1; uint8_t dst_buffer[50]= { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; /** @@ -71,7 +76,8 @@ void usart_configuration(void) { gpio_init_type gpio_init_struct; exint_init_type exint_init_struct; - + crm_clocks_freq_type crm_clocks_struct; + /* enable gpio_3_5v, sc_usart_gpio_clk, gpio_reset, gpio_cmdvcc, gpio_off and iomux clocks */ crm_periph_clock_enable(SC_3_5V_CLK, TRUE); crm_periph_clock_enable(SC_USART_GPIO_CLK, TRUE); @@ -160,17 +166,20 @@ void usart_configuration(void) /* clear sc exint line pending bit */ exint_flag_clear(SC_OFF_EXINT); - /* sc_usart clock set to 4.28mhz (apbclk = 120 mhz / 28) */ - usart_irda_smartcard_division_set(SC_USART, 14); + /* sc_usart clock set to (apbclk / (2 * SC_USART_DIV_VAL)) */ + usart_irda_smartcard_division_set(SC_USART, SC_USART_DIV_VAL); /* sc_usart guard time set to 2 bit */ usart_smartcard_guard_time_set(SC_USART, 0x2); /* configure sc usart clk */ usart_clock_config(SC_USART, USART_CLOCK_POLARITY_LOW, USART_CLOCK_PHASE_1EDGE, USART_CLOCK_LAST_BIT_OUTPUT); usart_clock_enable(SC_USART, TRUE); - + + crm_clocks_freq_get(&crm_clocks_struct); + sc_clock_freq = crm_clocks_struct.apb1_freq / (2 * SC_USART_DIV_VAL); /* ISO 7816-3 protocol: the CLK frequency is between 1 and 5 MHz */ + sc_baud_rate = sc_clock_freq / SC_F_DIV_D; /* configure sc usart param */ - usart_init(SC_USART, 12096, USART_DATA_9BITS, USART_STOP_1_5_BIT); + usart_init(SC_USART, sc_baud_rate, USART_DATA_9BITS, USART_STOP_1_5_BIT); usart_parity_selection_config(SC_USART, USART_PARITY_EVEN); usart_transmitter_enable(SC_USART, TRUE); usart_receiver_enable(SC_USART, TRUE); diff --git a/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/synchronous/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/synchronous/readme.txt b/project/at_start_f403a/examples/usart/synchronous/readme.txt index b3add982..b6bb7dba 100644 --- a/project/at_start_f403a/examples/usart/synchronous/readme.txt +++ b/project/at_start_f403a/examples/usart/synchronous/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -36,3 +36,5 @@ - connect usart2_tx(pa2) to spi2_mosi(pb15) - connect usart2_rx(pa3) to spi2_miso(pb14) - connect usart2_ck(pa4) to spi2_sck(pb13) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/synchronous/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/synchronous/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/synchronous/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/synchronous/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/synchronous/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/synchronous/src/at32f403a_407_int.c index 92e4ee44..b01bb2c3 100644 --- a/project/at_start_f403a/examples/usart/synchronous/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/synchronous/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/synchronous/src/main.c b/project/at_start_f403a/examples/usart/synchronous/src/main.c index 88177c6c..a5058d1e 100644 --- a/project/at_start_f403a/examples/usart/synchronous/src/main.c +++ b/project/at_start_f403a/examples/usart/synchronous/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/readme.txt b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/readme.txt index 34528920..386342f7 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/readme.txt +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 rx pin (pb11) - connect usart2 rx pin (pa3) to usart3 tx pin (pb10) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_int.c index 4b3f6fba..36fe6bcd 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/main.c b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/main.c index e985db43..ad1837b7 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/main.c +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/readme.txt b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/readme.txt index fc8c1cd3..063c778e 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/readme.txt +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 rx pin (pb11) - connect usart2 rx pin (pa3) to usart3 tx pin (pb10) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/at32f403a_407_int.c index f8d1ded6..27f9dbc6 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/main.c b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/main.c index c331f78d..55fb6cef 100644 --- a/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/main.c +++ b/project/at_start_f403a/examples/usart/transfer_by_dma_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/audio/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/audio/inc/audio_codec.h b/project/at_start_f403a/examples/usb_device/audio/inc/audio_codec.h index 24ce2f72..25e3334b 100644 --- a/project/at_start_f403a/examples/usb_device/audio/inc/audio_codec.h +++ b/project/at_start_f403a/examples/usb_device/audio/inc/audio_codec.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_codec.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief audio codec header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/audio/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/audio/inc/usb_conf.h index c647bd53..86ffaa1b 100644 --- a/project/at_start_f403a/examples/usb_device/audio/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/audio/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/audio/readme.txt b/project/at_start_f403a/examples/usb_device/audio/readme.txt index 8ac5c888..528a67db 100644 --- a/project/at_start_f403a/examples/usb_device/audio/readme.txt +++ b/project/at_start_f403a/examples/usb_device/audio/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,4 @@ 2. frequency 16k and 48k 3. bit width 16bit, 4. speaker feedback + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/audio/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/audio/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/audio/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/audio/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/audio/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/audio/src/at32f403a_407_int.c index aa817c0d..137b2786 100644 --- a/project/at_start_f403a/examples/usb_device/audio/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/audio/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/audio/src/audio_codec.c b/project/at_start_f403a/examples/usb_device/audio/src/audio_codec.c index 729bafa9..8116dfb9 100644 --- a/project/at_start_f403a/examples/usb_device/audio/src/audio_codec.c +++ b/project/at_start_f403a/examples/usb_device/audio/src/audio_codec.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_codec.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief audio codec function ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/audio/src/main.c b/project/at_start_f403a/examples/usb_device/audio/src/main.c index 570b1700..3605b23a 100644 --- a/project/at_start_f403a/examples/usb_device/audio/src/main.c +++ b/project/at_start_f403a/examples/usb_device/audio/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/audio_codec.h b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/audio_codec.h index 2e23ff8f..64733145 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/audio_codec.h +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/audio_codec.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_codec.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief audio codec header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/usb_conf.h index 6fc621f7..b34322a7 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/readme.txt b/project/at_start_f403a/examples/usb_device/composite_audio_hid/readme.txt index d2c58035..102d13ac 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/readme.txt +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,4 +13,5 @@ 1. microphone and speaker 2. frequency 16k and 48k 3. bit width 16bit, - 4. speaker feedback \ No newline at end of file + 4. speaker feedback + for more detailed information, please refer to the application note document AN0097. \ No newline at end of file diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/at32f403a_407_int.c index 43405249..b85d0be8 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/audio_codec.c b/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/audio_codec.c index 59f6fdae..72cb2fdf 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/audio_codec.c +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/audio_codec.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_codec.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief audio codec function ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/main.c b/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/main.c index 3c2dcc7e..c3b79071 100644 --- a/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/main.c +++ b/project/at_start_f403a/examples/usb_device/composite_audio_hid/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/usb_conf.h index 5617fd72..cfb8cd6b 100644 --- a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/readme.txt b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/readme.txt index ef86595d..be430e00 100644 --- a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/readme.txt +++ b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a composite device of usb cdc class and hid keyboard protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_int.c index 370c3e37..ce5a8889 100644 --- a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/main.c b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/main.c index b8960062..11dcaa4a 100644 --- a/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/main.c +++ b/project/at_start_f403a/examples/usb_device/composite_vcp_keyboard/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/custom_hid/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/custom_hid/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/custom_hid/inc/usb_conf.h index 5089b8fd..3bc0fcf1 100644 --- a/project/at_start_f403a/examples/usb_device/custom_hid/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/custom_hid/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/custom_hid/readme.txt b/project/at_start_f403a/examples/usb_device/custom_hid/readme.txt index 769b7917..d17254f6 100644 --- a/project/at_start_f403a/examples/usb_device/custom_hid/readme.txt +++ b/project/at_start_f403a/examples/usb_device/custom_hid/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to build a hid-compliant device use hid class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/custom_hid/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/custom_hid/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/custom_hid/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/custom_hid/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/custom_hid/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/custom_hid/src/at32f403a_407_int.c index 17cb98a2..8e5741d9 100644 --- a/project/at_start_f403a/examples/usb_device/custom_hid/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/custom_hid/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/custom_hid/src/main.c b/project/at_start_f403a/examples/usb_device/custom_hid/src/main.c index 89b38f24..2ac59fc7 100644 --- a/project/at_start_f403a/examples/usb_device/custom_hid/src/main.c +++ b/project/at_start_f403a/examples/usb_device/custom_hid/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/keyboard/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/keyboard/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/keyboard/inc/usb_conf.h index f7d6e2d5..55199a47 100644 --- a/project/at_start_f403a/examples/usb_device/keyboard/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/keyboard/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/keyboard/readme.txt b/project/at_start_f403a/examples/usb_device/keyboard/readme.txt index 90b729c2..f7939ed9 100644 --- a/project/at_start_f403a/examples/usb_device/keyboard/readme.txt +++ b/project/at_start_f403a/examples/usb_device/keyboard/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to build a hid keyboard device use hid class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/keyboard/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/keyboard/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/keyboard/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/keyboard/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/keyboard/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/keyboard/src/at32f403a_407_int.c index 06d05a6a..e1bbcfc2 100644 --- a/project/at_start_f403a/examples/usb_device/keyboard/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/keyboard/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/keyboard/src/main.c b/project/at_start_f403a/examples/usb_device/keyboard/src/main.c index 13a9b943..9e5cdc79 100644 --- a/project/at_start_f403a/examples/usb_device/keyboard/src/main.c +++ b/project/at_start_f403a/examples/usb_device/keyboard/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/mouse/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/mouse/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/mouse/inc/usb_conf.h index 8c223484..c89d5459 100644 --- a/project/at_start_f403a/examples/usb_device/mouse/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/mouse/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/mouse/readme.txt b/project/at_start_f403a/examples/usb_device/mouse/readme.txt index 96feca8b..282c9a81 100644 --- a/project/at_start_f403a/examples/usb_device/mouse/readme.txt +++ b/project/at_start_f403a/examples/usb_device/mouse/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to build a hid mouse device use hid class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/mouse/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/mouse/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/mouse/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/mouse/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/mouse/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/mouse/src/at32f403a_407_int.c index cc8cf871..5c380c4f 100644 --- a/project/at_start_f403a/examples/usb_device/mouse/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/mouse/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/mouse/src/main.c b/project/at_start_f403a/examples/usb_device/mouse/src/main.c index ecda40c8..5c0bf75f 100644 --- a/project/at_start_f403a/examples/usb_device/mouse/src/main.c +++ b/project/at_start_f403a/examples/usb_device/mouse/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/msc/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/msc/inc/msc_diskio.h b/project/at_start_f403a/examples/usb_device/msc/inc/msc_diskio.h index 205ae314..5d8a99a1 100644 --- a/project/at_start_f403a/examples/usb_device/msc/inc/msc_diskio.h +++ b/project/at_start_f403a/examples/usb_device/msc/inc/msc_diskio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_diskio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage disk interface header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/msc/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/msc/inc/usb_conf.h index 539626cb..e605e5c9 100644 --- a/project/at_start_f403a/examples/usb_device/msc/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/msc/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/msc/readme.txt b/project/at_start_f403a/examples/usb_device/msc/readme.txt index 5cf33579..ad8aa04d 100644 --- a/project/at_start_f403a/examples/usb_device/msc/readme.txt +++ b/project/at_start_f403a/examples/usb_device/msc/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a device of usb mass storage protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/msc/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/msc/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/msc/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/msc/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/msc/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/msc/src/at32f403a_407_int.c index d2ac722e..a3b7806d 100644 --- a/project/at_start_f403a/examples/usb_device/msc/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/msc/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/msc/src/main.c b/project/at_start_f403a/examples/usb_device/msc/src/main.c index b54fe8fb..5b5a3cfb 100644 --- a/project/at_start_f403a/examples/usb_device/msc/src/main.c +++ b/project/at_start_f403a/examples/usb_device/msc/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/msc/src/msc_diskio.c b/project/at_start_f403a/examples/usb_device/msc/src/msc_diskio.c index a539a91d..037cb3e7 100644 --- a/project/at_start_f403a/examples/usb_device/msc/src/msc_diskio.c +++ b/project/at_start_f403a/examples/usb_device/msc/src/msc_diskio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_diskio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage disk function ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/printer/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/printer/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/printer/inc/usb_conf.h index 8528303f..f5f76a8f 100644 --- a/project/at_start_f403a/examples/usb_device/printer/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/printer/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/printer/readme.txt b/project/at_start_f403a/examples/usb_device/printer/readme.txt index 2f279642..3803d568 100644 --- a/project/at_start_f403a/examples/usb_device/printer/readme.txt +++ b/project/at_start_f403a/examples/usb_device/printer/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a device of usb printer class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/printer/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/printer/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/printer/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/printer/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/printer/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/printer/src/at32f403a_407_int.c index ad524a11..44f11849 100644 --- a/project/at_start_f403a/examples/usb_device/printer/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/printer/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/printer/src/main.c b/project/at_start_f403a/examples/usb_device/printer/src/main.c index 286ffd17..fbcb4801 100644 --- a/project/at_start_f403a/examples/usb_device/printer/src/main.c +++ b/project/at_start_f403a/examples/usb_device/printer/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/usb_conf.h index 26abf34a..8098fbb7 100644 --- a/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/vcp_loopback/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/vcp_loopback/readme.txt b/project/at_start_f403a/examples/usb_device/vcp_loopback/readme.txt index 896e2bec..cf89745a 100644 --- a/project/at_start_f403a/examples/usb_device/vcp_loopback/readme.txt +++ b/project/at_start_f403a/examples/usb_device/vcp_loopback/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a device of usb cdc class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/vcp_loopback/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/vcp_loopback/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/vcp_loopback/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/vcp_loopback/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/vcp_loopback/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/vcp_loopback/src/at32f403a_407_int.c index 610df42b..9c5214eb 100644 --- a/project/at_start_f403a/examples/usb_device/vcp_loopback/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/vcp_loopback/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/vcp_loopback/src/main.c b/project/at_start_f403a/examples/usb_device/vcp_loopback/src/main.c index 6f3f527f..cf59e309 100644 --- a/project/at_start_f403a/examples/usb_device/vcp_loopback/src/main.c +++ b/project/at_start_f403a/examples/usb_device/vcp_loopback/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/virtual_comport/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_comport/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/virtual_comport/inc/usb_conf.h index c6aedb9b..80c168a8 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_comport/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/virtual_comport/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_comport/readme.txt b/project/at_start_f403a/examples/usb_device/virtual_comport/readme.txt index 46e02ec5..26889210 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_comport/readme.txt +++ b/project/at_start_f403a/examples/usb_device/virtual_comport/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,4 @@ this demo is based on the at-start board, in this demo, show how to build a device of usb virtual comport,when use this demo,please connect usart2 tx pin(pa2) and rx pin(pa3). + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/virtual_comport/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/virtual_comport/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_comport/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/virtual_comport/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_comport/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/virtual_comport/src/at32f403a_407_int.c index 610df42b..9c5214eb 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_comport/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/virtual_comport/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_comport/src/main.c b/project/at_start_f403a/examples/usb_device/virtual_comport/src/main.c index 8dbe31d5..176809e9 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_comport/src/main.c +++ b/project/at_start_f403a/examples/usb_device/virtual_comport/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/flash_fat16.h b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/flash_fat16.h index d00d64a5..820a7d1a 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/flash_fat16.h +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/flash_fat16.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash_fat16.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief fat16 file system header file ************************************************************************** * Copyright notice & Disclaimer @@ -52,10 +52,10 @@ extern "C" { #define FAT16_DIR_SIZE 47 #define FLASH_FAT16_BOOT_SECTOR_ADDR 0x00 -#define FLASH_FAT16_1_ADDR 0x1000 -#define FLASH_FAT16_2_ADDR 0x7800 -#define FLASH_FAT16_ROOT_ADDR 0xE000 -#define FLASH_FAT16_FILE_START_ADDR 0x12000 +#define FLASH_FAT16_1_ADDR 0x3000 +#define FLASH_FAT16_2_ADDR 0x3800 +#define FLASH_FAT16_ROOT_ADDR 0x4000 +#define FLASH_FAT16_FILE_START_ADDR 0x8800 #define FLASH_APP_START_ADDR 0x08005000 diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/msc_diskio.h b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/msc_diskio.h index 725f3a3f..8a9446ee 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/msc_diskio.h +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/msc_diskio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_diskio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage disk interface header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/usb_conf.h b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/usb_conf.h index 4a68a045..a019a5f0 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/usb_conf.h +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/readme.txt b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/readme.txt index ee14f150..5ad432f4 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/readme.txt +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a virutal msc device of usb mass storage protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/at32f403a_407_int.c b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/at32f403a_407_int.c index d8ccfd6d..157e4fc3 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/flash_fat16.c b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/flash_fat16.c index 130ec29c..1cbd2352 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/flash_fat16.c +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/flash_fat16.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash_fat16.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief fat16 file system ************************************************************************** * Copyright notice & Disclaimer @@ -34,49 +34,77 @@ * @{ */ #define FAT16_SECTOR_SIZE 62 -const uint8_t fat16_sector[FAT16_SECTOR_SIZE] = +static uint8_t fat16_sector[FAT16_SECTOR_SIZE] = { - 0xEB, /*00 - BS_jmpBoot */ - 0x3C, /*01 - BS_jmpBoot */ - 0x90, /*02 - BS_jmpBoot */ - 'M','S','D','O','S','5','.','0', /* 03-10 - BS_OEMName */ - 0x00, /*11 - BPB_BytesPerSec = 2048 */ - 0x08, /*11 - BPB_BytesPerSec = 2048 */ - 0x04, /*13 - BPB_Sec_PerClus = 2K*4 = 8K*/ - 2, /*14 - BPB_RsvdSecCnt = 2 */ - 0, /*15 - BPB_RsvdSecCnt = 2 */ - 2, /*16 - BPB_NumFATs = 2 */ - 0x0, /*17 - BPB_RootEntCnt = 512 */ - 0x2, /*18 - BPB_RootEntCnt = 512 */ - 0, /*19 - BPB_TotSec16 = 0 */ - 0, /*20 - BPB_TotSec16 = 0 */ - 0xF8, /*21 - BPB_Media = 0xF8 */ - 0x0D, /*22 - BPBFATSz16 = 0x000D */ - 0, /*23 - BPBFATSz16 = 0x000D */ - 0x3F, /*24 - BPB_SecPerTrk = 0x003F */ - 0, /*25 - BPB_SecPerTrk = 0x003F */ - 0xFF, /*26 - BPB_NumHeads = 255 */ - 0, /*27 - BPB_NumHeads = 255 */ - 0, /*28 - BPB_HiddSec = 0 */ - 0, /*29 - BPB_HiddSec = 0 */ - 0, /*30 - BPB_HiddSec = 0 */ - 0, /*31 - BPB_HiddSec = 0 */ - 0x00, /*32 - BPB_TotSec32 = */ - 0xC8, /*33 - BPB_TotSec32 = 0x0000C800 100Mb*/ - 0x00, /*34 - BPB_TotSec32 = */ - 0x00, /*35 - BPB_TotSec32 = */ - 0x80, /*36 - BS_DrvNum = 0x80 */ - 0, /*37 - BS_Reserved1 = 0 , dirty bit = 0*/ /* Updated from FSL*/ - 0x29, /*38 - BS_BootSig = 0x29 */ - 0xBD, /*39 - BS_VolID = 0x02DDA5BD */ - 0xA5, /*40 - BS_VolID = 0x02DDA5BD */ - 0xDD, /*41 - BS_VolID = 0x02DDA5BD */ - 0x02, /*42 - BS_VolID = 0x02DDA5BD */ - 'N','O',' ','N','A','M','E',' ',' ',' ',' ',/*43-53 - BS_VolLab */ - 'F','A','T','1','6',' ',' ',' ' /*54-61 - BS_FilSysType */ + 0xEB, /*0*/ + 0x3C, /*1*/ + 0x90, /*2*/ + 0x4D, /*3*/ + 0x53, /*4*/ + 0x44, /*5*/ + 0x4F, /*6*/ + 0x53, /*7*/ + 0x35, /*8*/ + 0x2E, /*9*/ + 0x30, /*10*/ + 0x00, /*11*/ + 0x08, /*12*/ //2K + 0x04, /*13*/ + 0x06, /*14*/ + 0x00, /*15*/ + + 0x02, /*16*/ + 0x00, /*17*/ + 0x02, /*18*/ + 0xFF, /*19*/ + 0x0F, /*20*/ + 0xF8, /*21*/ + 0x01, /*22*/ + 0x00, /*23*/ + 0x01, /*24*/ + 0x00, /*25*/ + 0x01, /*26*/ + 0x00, /*27*/ + 0x00, /*28*/ + 0x00, /*29*/ + 0x00, /*30*/ + 0x00, /*31*/ + + 0x00, /*32*/ + 0x00, /*33*/ + 0x00, /*34*/ + 0x00, /*35*/ + 0x00, /*36*/ + 0x00, /*37*/ + 0x29, /*38*/ + 0x96, /*39*/ + 0x16, /*40*/ + 0x66, /*41*/ + 0xD3, /*42*/ + 0x20, /*43*/ + 0x20, /*44*/ + 0x20, /*45*/ + 0x20, /*46*/ + 0x20, /*47*/ + + 0x20, /*48*/ + 0x20, /*49*/ + 0x20, /*50*/ + 0x20, /*51*/ + 0x20, /*52*/ + 0x20, /*53*/ + 0x46, /*54*/ + 0x41, /*55*/ + 0x54, /*56*/ + 0x31, /*57*/ + 0x36, /*58*/ + 0x20, /*59*/ + 0x20, /*60*/ + 0x20 /*61*/ }; + const uint8_t fat16_root_dir_sector[FAT16_DIR_SIZE]= { 0x20, /*11 - Archive Attribute set */ @@ -144,6 +172,7 @@ uint8_t fat16_file_name[FAT16_FILENAME_SIZE] = fat_dir_type g_file_attr; flash_iap_type flash_iap; uint32_t file_write_nr = 0; +uint8_t file_match = 0; uint32_t flash_fat16_boot_dir_write(uint32_t fat_lbk, uint8_t *data, uint32_t len); uint32_t flash_fat16_sector_write(uint32_t fat_lbk, uint8_t *data, uint32_t len); @@ -268,6 +297,8 @@ uint32_t flash_fat16_read(uint32_t fat_lbk, uint8_t *data, uint32_t len) i_index += 2; fat16_memory_memset(data+i_index, 0, FAT16_BYTE_PER_SIZE-i_index); + data[510] = 0x55; + data[511] = 0xAA; break; case FLASH_FAT16_1_ADDR: @@ -372,6 +403,23 @@ uint32_t flash_fat16_boot_dir_write(uint32_t fat_lbk, uint8_t *data, uint32_t le if(i_index <= 512 && loop_len < len) { fat16_memory_copy((uint8_t *)&g_file_attr, (const uint8_t *)pdir, 32); + + if(file_match == 1) + { + file_match = 0; + if(g_file_attr.file_size > 0) + { + if(flash_iap.file_write_nr >= g_file_attr.file_size) + { + /* upgrade finish */ + flash_iap.file_write_nr = 0; + flash_iap.msc_up_status = UPGRADE_SUCCESS; + + /* set the upgrade done flag to flash */ + flash_fat16_set_upgrade_flag(); + } + } + } g_file_attr.write_data = 0; g_file_attr.write_time = 0; flash_iap.file_write_nr = 0; @@ -454,7 +502,15 @@ uint32_t flash_fat16_sector_write(uint32_t fat_lbk, uint8_t *data, uint32_t len) { return 0; } - + + if(g_file_attr.file_size == 0) + { + g_file_attr.file_size = flash_iap.flash_app_size; + file_match = 1; + } + + file_size = g_file_attr.file_size; + if(flash_iap.msc_up_status == UPGRADE_READY) { /* get offset address from filename */ @@ -521,7 +577,6 @@ uint32_t flash_fat16_sector_write(uint32_t fat_lbk, uint8_t *data, uint32_t len) else { /* unkonw upgrade status */ - flash_iap.msc_up_status = UPGRADE_UNKNOWN; } return len; @@ -550,7 +605,7 @@ uint32_t flash_crc_check(uint32_t address, uint8_t *data, uint32_t len) if(remain_len) { wlen += 1; - for(i_index = 0; i_index < remain_len; i_index ++) + for(i_index = 0; i_index < (4 - remain_len); i_index ++) { data[len+i_index] = 0xFF; } @@ -675,6 +730,7 @@ void flash_fat16_init(void) flash_iap.sector_size = FLASH_SECTOR_2K_SIZE; flash_iap.sector_mask = FLASH_SECTOR_2K_ALLGNED; } + } diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/main.c b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/main.c index 1d44b1db..016dc86f 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/main.c +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/msc_diskio.c b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/msc_diskio.c index 2b859c80..6d0c9183 100644 --- a/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/msc_diskio.c +++ b/project/at_start_f403a/examples/usb_device/virtual_msc_iap/src/msc_diskio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_diskio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage disk function ************************************************************************** * Copyright notice & Disclaimer @@ -119,8 +119,8 @@ usb_sts_type msc_disk_capacity(uint8_t lun, uint32_t *blk_nbr, uint32_t *blk_siz switch(lun) { case INTERNAL_FLASH_LUN: - *blk_nbr = 100*1024*1024 / flash_iap.sector_size; - *blk_size = flash_iap.sector_size; + *blk_nbr = 0x0FFF; + *blk_size = FLASH_SECTOR_2K_SIZE; break; case SPI_FLASH_LUN: break; diff --git a/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/wdt/wdt_reset/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_reset/readme.txt b/project/at_start_f403a/examples/wdt/wdt_reset/readme.txt index 076649e7..4847842e 100644 --- a/project/at_start_f403a/examples/wdt/wdt_reset/readme.txt +++ b/project/at_start_f403a/examples/wdt/wdt_reset/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file wdt_reset/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ operation, the wdt count value is continuously reloaded in the main function, and wdt reset will not occur at this time. when the wakeup button is pressed, the function stops reloading the wdt count value, resulting in wdt reset. + for more detailed information. please refer to the application note document AN0045. \ No newline at end of file diff --git a/project/at_start_f403a/examples/wdt/wdt_reset/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/wdt/wdt_reset/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/wdt/wdt_reset/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/wdt/wdt_reset/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_reset/src/at32f403a_407_int.c b/project/at_start_f403a/examples/wdt/wdt_reset/src/at32f403a_407_int.c index 5f06437a..36183411 100644 --- a/project/at_start_f403a/examples/wdt/wdt_reset/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/wdt/wdt_reset/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_reset/src/main.c b/project/at_start_f403a/examples/wdt/wdt_reset/src/main.c index 04e591d9..12dd25be 100644 --- a/project/at_start_f403a/examples/wdt/wdt_reset/src/main.c +++ b/project/at_start_f403a/examples/wdt/wdt_reset/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/wdt/wdt_standby/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_standby/readme.txt b/project/at_start_f403a/examples/wdt/wdt_standby/readme.txt index 7bc7ab4d..57e5ad68 100644 --- a/project/at_start_f403a/examples/wdt/wdt_standby/readme.txt +++ b/project/at_start_f403a/examples/wdt/wdt_standby/readme.txt @@ -1,12 +1,13 @@ /** ************************************************************************** * @file wdt_standby/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, the wdt wakeup mcu from standby mode. if the chip is wakeup from standby mode by wdt, led4 - will be on. + will be on.for more detailed information. please refer to the application + note document AN0045. diff --git a/project/at_start_f403a/examples/wdt/wdt_standby/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/wdt/wdt_standby/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/wdt/wdt_standby/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/wdt/wdt_standby/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_standby/src/at32f403a_407_int.c b/project/at_start_f403a/examples/wdt/wdt_standby/src/at32f403a_407_int.c index 77fd7dbc..328a65b1 100644 --- a/project/at_start_f403a/examples/wdt/wdt_standby/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/wdt/wdt_standby/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wdt/wdt_standby/src/main.c b/project/at_start_f403a/examples/wdt/wdt_standby/src/main.c index bcda6075..83bbb216 100644 --- a/project/at_start_f403a/examples/wdt/wdt_standby/src/main.c +++ b/project/at_start_f403a/examples/wdt/wdt_standby/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/wwdt/wwdt_reset/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wwdt/wwdt_reset/readme.txt b/project/at_start_f403a/examples/wwdt/wwdt_reset/readme.txt index 1b9fe49a..3e6ff7a7 100644 --- a/project/at_start_f403a/examples/wwdt/wwdt_reset/readme.txt +++ b/project/at_start_f403a/examples/wwdt/wwdt_reset/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file wwdt_reset/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ operation, the wwdt count value is continuously reloaded in the main function, and wwdt reset will not occur at this time. when the wakeup button is pressed, the function stops reloading the wwdt count value, resulting in wwdt reset. + for more detailed information. please refer to the application note document AN0045. \ No newline at end of file diff --git a/project/at_start_f403a/examples/wwdt/wwdt_reset/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/wwdt/wwdt_reset/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/wwdt/wwdt_reset/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/wwdt/wwdt_reset/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wwdt/wwdt_reset/src/at32f403a_407_int.c b/project/at_start_f403a/examples/wwdt/wwdt_reset/src/at32f403a_407_int.c index c2c84cd4..52638e63 100644 --- a/project/at_start_f403a/examples/wwdt/wwdt_reset/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/wwdt/wwdt_reset/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/wwdt/wwdt_reset/src/main.c b/project/at_start_f403a/examples/wwdt/wwdt_reset/src/main.c index 59f25b88..2223d187 100644 --- a/project/at_start_f403a/examples/wwdt/wwdt_reset/src/main.c +++ b/project/at_start_f403a/examples/wwdt/wwdt_reset/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/picture.h b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/picture.h index f4d51fd0..55f5504d 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/picture.h +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/picture.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file picture.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the picture used for lcd display. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/xmc_lcd.h b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/xmc_lcd.h index 29ee2eac..e8d5ce7d 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/inc/xmc_lcd.h +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/inc/xmc_lcd.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_lcd.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief xmc_lcd header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/readme.txt b/project/at_start_f403a/examples/xmc/lcd_8bit/readme.txt index 8750c708..02440a5f 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/readme.txt +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -27,5 +27,5 @@ - xmc_d5 pa3 ---> data[5] - xmc_d6 pa4 ---> data[6] - xmc_d7 pa5 ---> data[7] - + for more detailed information. please refer to the application note document AN0106. diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/xmc/lcd_8bit/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/src/at32f403a_407_int.c b/project/at_start_f403a/examples/xmc/lcd_8bit/src/at32f403a_407_int.c index 7bf79a3b..454a72ea 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/src/main.c b/project/at_start_f403a/examples/xmc/lcd_8bit/src/main.c index 5042d333..6e6fe7f7 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/src/main.c +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_8bit/src/xmc_lcd.c b/project/at_start_f403a/examples/xmc/lcd_8bit/src/xmc_lcd.c index 473f3b60..ff936806 100644 --- a/project/at_start_f403a/examples/xmc/lcd_8bit/src/xmc_lcd.c +++ b/project/at_start_f403a/examples/xmc/lcd_8bit/src/xmc_lcd.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_lcd.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief xmc_lcd config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/touch.h b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/touch.h index 613832c5..af0e6736 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/touch.h +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/touch.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file touch.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the functions prototypes for the * touch firmware driver. ************************************************************************** diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/xmc_lcd.h b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/xmc_lcd.h index 8377a8c8..6d2b1cf5 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/xmc_lcd.h +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/inc/xmc_lcd.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_lcd.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief xmc_lcd program header ************************************************************************** * Copyright notice & Disclaimer @@ -62,7 +62,7 @@ typedef struct * @{ */ -/* the address of write data & command (xmc_a0) */ +/* the address of write data & command (xmc_a16) */ #define XMC_LCD_COMMAND 0x6001FFFE #define XMC_LCD_DATA 0x60020000 diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/readme.txt b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/readme.txt index ab627f1b..da140200 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/readme.txt +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -42,6 +42,6 @@ - xmc_d13 pb12 ---> data[13] - xmc_d14 pd9 ---> data[14] - xmc_d15 pd10 ---> data[15] - + for more detailed information. please refer to the application note document AN0106. diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/at32f403a_407_int.c b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/at32f403a_407_int.c index 4f83024b..d16dabd7 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/main.c b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/main.c index 4068e728..f7a7fcd8 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/main.c +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -67,7 +67,6 @@ int main(void) lcd_struct->lcd_clear(point_color); touch_struct->init(); - touch_struct->touch_read_xy(&touch_struct->x_p[0], &touch_struct->y_p[0]); while(1) { diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/touch.c b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/touch.c index 0a595c5e..0473a602 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/touch.c +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/touch.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file touch.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the functions prototypes for the * touch firmware driver. ************************************************************************** diff --git a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/xmc_lcd.c b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/xmc_lcd.c index 4af29705..96e46f5e 100644 --- a/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/xmc_lcd.c +++ b/project/at_start_f403a/examples/xmc/lcd_touch_16bit/src/xmc_lcd.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_lcd.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief xmc_lcd program file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/xmc/nand/ecc/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/ecc/inc/xmc_ecc.h b/project/at_start_f403a/examples/xmc/nand/ecc/inc/xmc_ecc.h index da156597..978153e3 100644 --- a/project/at_start_f403a/examples/xmc/nand/ecc/inc/xmc_ecc.h +++ b/project/at_start_f403a/examples/xmc/nand/ecc/inc/xmc_ecc.h @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file xmc_ecc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file for the nand ecc configuration. ****************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/ecc/readme.txt b/project/at_start_f403a/examples/xmc/nand/ecc/readme.txt index ee0257a9..8ea1beb9 100644 --- a/project/at_start_f403a/examples/xmc/nand/ecc/readme.txt +++ b/project/at_start_f403a/examples/xmc/nand/ecc/readme.txt @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ****************************************************************************** */ @@ -27,5 +27,5 @@ - xmc_noe pd4 ---> re# - xmc_nwe pd5 ---> we# - xmc_wait pd6 ---> r/b# - + for more detailed information. please refer to the application note document AN0106. diff --git a/project/at_start_f403a/examples/xmc/nand/ecc/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/xmc/nand/ecc/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/xmc/nand/ecc/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/xmc/nand/ecc/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/ecc/src/at32f403a_407_int.c b/project/at_start_f403a/examples/xmc/nand/ecc/src/at32f403a_407_int.c index 0425839a..61019237 100644 --- a/project/at_start_f403a/examples/xmc/nand/ecc/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/xmc/nand/ecc/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/ecc/src/main.c b/project/at_start_f403a/examples/xmc/nand/ecc/src/main.c index fd310370..f794b4eb 100644 --- a/project/at_start_f403a/examples/xmc/nand/ecc/src/main.c +++ b/project/at_start_f403a/examples/xmc/nand/ecc/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/ecc/src/xmc_ecc.c b/project/at_start_f403a/examples/xmc/nand/ecc/src/xmc_ecc.c index bb4951a4..a23e22b2 100644 --- a/project/at_start_f403a/examples/xmc/nand/ecc/src/xmc_ecc.c +++ b/project/at_start_f403a/examples/xmc/nand/ecc/src/xmc_ecc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_ecc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief nand ecc configuration ************************************************************************** * Copyright notice & Disclaimer @@ -157,7 +157,6 @@ uint32_t nand_write_small_page(uint8_t *pbuffer, nand_address_type address_struc while((num_page_to_write != 0x00) && (address_status == NAND_VALID_ADDRESS) && (status == NAND_READY)) { /* page write command and address */ - *(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = NAND_CMD_AREA_A; *(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = NAND_CMD_WRITE0; #ifdef H27U1G8F2CTR diff --git a/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/xmc/nand/nand/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/nand/inc/xmc_nand.h b/project/at_start_f403a/examples/xmc/nand/nand/inc/xmc_nand.h index e8b3c034..a5b7dd3f 100644 --- a/project/at_start_f403a/examples/xmc/nand/nand/inc/xmc_nand.h +++ b/project/at_start_f403a/examples/xmc/nand/nand/inc/xmc_nand.h @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file xmc_nand.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file for the nand configuration. ****************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/nand/readme.txt b/project/at_start_f403a/examples/xmc/nand/nand/readme.txt index 4b9d331b..bd2f375a 100644 --- a/project/at_start_f403a/examples/xmc/nand/nand/readme.txt +++ b/project/at_start_f403a/examples/xmc/nand/nand/readme.txt @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ****************************************************************************** */ @@ -28,3 +28,4 @@ - xmc_noe pd4 ---> re# - xmc_nwe pd5 ---> we# - xmc_wait pd6 ---> r/b# + for more detailed information. please refer to the application note document AN0106. \ No newline at end of file diff --git a/project/at_start_f403a/examples/xmc/nand/nand/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/xmc/nand/nand/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/xmc/nand/nand/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/xmc/nand/nand/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/nand/src/at32f403a_407_int.c b/project/at_start_f403a/examples/xmc/nand/nand/src/at32f403a_407_int.c index e229e189..53a7107e 100644 --- a/project/at_start_f403a/examples/xmc/nand/nand/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/xmc/nand/nand/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/nand/src/main.c b/project/at_start_f403a/examples/xmc/nand/nand/src/main.c index 3d36883e..66a12f6f 100644 --- a/project/at_start_f403a/examples/xmc/nand/nand/src/main.c +++ b/project/at_start_f403a/examples/xmc/nand/nand/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/nand/nand/src/xmc_nand.c b/project/at_start_f403a/examples/xmc/nand/nand/src/xmc_nand.c index fac83498..cebd6cf5 100644 --- a/project/at_start_f403a/examples/xmc/nand/nand/src/xmc_nand.c +++ b/project/at_start_f403a/examples/xmc/nand/nand/src/xmc_nand.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_nand.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief nand configuration ************************************************************************** * Copyright notice & Disclaimer @@ -165,7 +165,6 @@ uint32_t nand_write_small_page(uint8_t *pbuffer, nand_address_type address_struc while((num_page_to_write != 0x00) && (address_status == NAND_VALID_ADDRESS) && (status == NAND_READY)) { /* page write command and address */ - *(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = NAND_CMD_AREA_A; *(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = NAND_CMD_WRITE0; #ifdef H27U1G8F2CTR *(__IO uint8_t *)(Bank_NAND_ADDR | ADDR_AREA) = addr_1st_cycle(COL_ADDRESS); diff --git a/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_clock.h b/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_conf.h b/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_int.h b/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/examples/xmc/psram/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/psram/inc/xmc_psram.h b/project/at_start_f403a/examples/xmc/psram/inc/xmc_psram.h index abf10def..1efc4219 100644 --- a/project/at_start_f403a/examples/xmc/psram/inc/xmc_psram.h +++ b/project/at_start_f403a/examples/xmc/psram/inc/xmc_psram.h @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file xmc_psram.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file for the psram configuration. ****************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/psram/readme.txt b/project/at_start_f403a/examples/xmc/psram/readme.txt index 55fba921..7ade74aa 100644 --- a/project/at_start_f403a/examples/xmc/psram/readme.txt +++ b/project/at_start_f403a/examples/xmc/psram/readme.txt @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ****************************************************************************** */ @@ -42,3 +42,4 @@ - xmc_nwe pd5 ---> we# - xmc_lb pe0 ---> lb# - xmc_ub pe1 ---> ub# + for more detailed information. please refer to the application note document AN0106. \ No newline at end of file diff --git a/project/at_start_f403a/examples/xmc/psram/src/at32f403a_407_clock.c b/project/at_start_f403a/examples/xmc/psram/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f403a/examples/xmc/psram/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/examples/xmc/psram/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/psram/src/at32f403a_407_int.c b/project/at_start_f403a/examples/xmc/psram/src/at32f403a_407_int.c index e03add75..42044481 100644 --- a/project/at_start_f403a/examples/xmc/psram/src/at32f403a_407_int.c +++ b/project/at_start_f403a/examples/xmc/psram/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/psram/src/main.c b/project/at_start_f403a/examples/xmc/psram/src/main.c index 38e70456..a7c6e275 100644 --- a/project/at_start_f403a/examples/xmc/psram/src/main.c +++ b/project/at_start_f403a/examples/xmc/psram/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/examples/xmc/psram/src/xmc_psram.c b/project/at_start_f403a/examples/xmc/psram/src/xmc_psram.c index 15f5601f..3eb17f1c 100644 --- a/project/at_start_f403a/examples/xmc/psram/src/xmc_psram.c +++ b/project/at_start_f403a/examples/xmc/psram/src/xmc_psram.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file psram.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief psram configuration ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/templates/inc/at32f403a_407_clock.h b/project/at_start_f403a/templates/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f403a/templates/inc/at32f403a_407_clock.h +++ b/project/at_start_f403a/templates/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/templates/inc/at32f403a_407_conf.h b/project/at_start_f403a/templates/inc/at32f403a_407_conf.h index 99a0c724..4b7dccde 100644 --- a/project/at_start_f403a/templates/inc/at32f403a_407_conf.h +++ b/project/at_start_f403a/templates/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/templates/inc/at32f403a_407_int.h b/project/at_start_f403a/templates/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f403a/templates/inc/at32f403a_407_int.h +++ b/project/at_start_f403a/templates/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/templates/readme.txt b/project/at_start_f403a/templates/readme.txt index 84f1f212..8e37a5ec 100644 --- a/project/at_start_f403a/templates/readme.txt +++ b/project/at_start_f403a/templates/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f403a/templates/src/at32f403a_407_clock.c b/project/at_start_f403a/templates/src/at32f403a_407_clock.c index ba9da9c9..2ca78d88 100644 --- a/project/at_start_f403a/templates/src/at32f403a_407_clock.c +++ b/project/at_start_f403a/templates/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/templates/src/at32f403a_407_int.c b/project/at_start_f403a/templates/src/at32f403a_407_int.c index d37a7c6d..95c57a6c 100644 --- a/project/at_start_f403a/templates/src/at32f403a_407_int.c +++ b/project/at_start_f403a/templates/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f403a/templates/src/main.c b/project/at_start_f403a/templates/src/main.c index 9acad44f..3c040ef1 100644 --- a/project/at_start_f403a/templates/src/main.c +++ b/project/at_start_f403a/templates/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_int.h b/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/acc/calibration/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/acc/calibration/inc/usb_conf.h b/project/at_start_f407/examples/acc/calibration/inc/usb_conf.h index c41bff3f..8e2ae3c7 100644 --- a/project/at_start_f407/examples/acc/calibration/inc/usb_conf.h +++ b/project/at_start_f407/examples/acc/calibration/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/acc/calibration/readme.txt b/project/at_start_f407/examples/acc/calibration/readme.txt index 32f959d0..61eeae89 100644 --- a/project/at_start_f407/examples/acc/calibration/readme.txt +++ b/project/at_start_f407/examples/acc/calibration/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, acc will calibration - hick when usb is connecting. \ No newline at end of file + hick when usb is connecting. + for more detailed information. please refer to the application note document AN0107. \ No newline at end of file diff --git a/project/at_start_f407/examples/acc/calibration/src/at32f403a_407_clock.c b/project/at_start_f407/examples/acc/calibration/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/acc/calibration/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/acc/calibration/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/acc/calibration/src/at32f403a_407_int.c b/project/at_start_f407/examples/acc/calibration/src/at32f403a_407_int.c index 21772702..6f774a5b 100644 --- a/project/at_start_f407/examples/acc/calibration/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/acc/calibration/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/acc/calibration/src/main.c b/project/at_start_f407/examples/acc/calibration/src/main.c index 48cefcf7..37b58284 100644 --- a/project/at_start_f407/examples/acc/calibration/src/main.c +++ b/project/at_start_f407/examples/acc/calibration/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_int.h b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/readme.txt b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/readme.txt index 9b685309..1bbfddcd 100644 --- a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/readme.txt +++ b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,4 @@ - adc1_ordinary_valuetab[n][0] ---> (adc2_channel_7<<16) | adc1_channel_4 - adc1_ordinary_valuetab[n][1] ---> (adc2_channel_8<<16) | adc1_channel_5 - adc1_ordinary_valuetab[n][2] ---> (adc2_channel_9<<16) | adc1_channel_6 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_clock.c b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_int.c b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_int.c index 7a17b72c..3c9b8d6a 100644 --- a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/main.c b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/main.c index d7059a3b..5a99e88c 100644 --- a/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/main.c +++ b/project/at_start_f407/examples/adc/combine_mode_ordinary_simult/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_int.h b/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/adc/current_vref_value_check/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/current_vref_value_check/readme.txt b/project/at_start_f407/examples/adc/current_vref_value_check/readme.txt index 4a13bee3..fed73649 100644 --- a/project/at_start_f407/examples/adc/current_vref_value_check/readme.txt +++ b/project/at_start_f407/examples/adc/current_vref_value_check/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ the adc1 internal channel17 to check vref value. the convert data as follow: - adc1_ordinary_value ---> adc1_channel_17 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f407/examples/adc/current_vref_value_check/src/at32f403a_407_clock.c b/project/at_start_f407/examples/adc/current_vref_value_check/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/adc/current_vref_value_check/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/adc/current_vref_value_check/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/current_vref_value_check/src/at32f403a_407_int.c b/project/at_start_f407/examples/adc/current_vref_value_check/src/at32f403a_407_int.c index 2e06c435..37777f70 100644 --- a/project/at_start_f407/examples/adc/current_vref_value_check/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/adc/current_vref_value_check/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/current_vref_value_check/src/main.c b/project/at_start_f407/examples/adc/current_vref_value_check/src/main.c index 9ebdf2d4..9dcbc508 100644 --- a/project/at_start_f407/examples/adc/current_vref_value_check/src/main.c +++ b/project/at_start_f407/examples/adc/current_vref_value_check/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_int.h b/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/adc/exint_trigger_partitioned/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/exint_trigger_partitioned/readme.txt b/project/at_start_f407/examples/adc/exint_trigger_partitioned/readme.txt index b680abd3..ff96053c 100644 --- a/project/at_start_f407/examples/adc/exint_trigger_partitioned/readme.txt +++ b/project/at_start_f407/examples/adc/exint_trigger_partitioned/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -19,3 +19,4 @@ trigger source: - ordinary --> exint line11(pc11) - preempt --> exint line15(pa15) + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/at32f403a_407_clock.c b/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/at32f403a_407_int.c b/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/at32f403a_407_int.c index 639c9247..8ed7952f 100644 --- a/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/main.c b/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/main.c index ed3c2cb0..761f8140 100644 --- a/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/main.c +++ b/project/at_start_f407/examples/adc/exint_trigger_partitioned/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_int.h b/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/adc/internal_temperature_sensor/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/internal_temperature_sensor/readme.txt b/project/at_start_f407/examples/adc/internal_temperature_sensor/readme.txt index f1ba5c6c..5f58811a 100644 --- a/project/at_start_f407/examples/adc/internal_temperature_sensor/readme.txt +++ b/project/at_start_f407/examples/adc/internal_temperature_sensor/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ the internal_temperature_sensor. the convert data as follow: - adc1_ordinary_value ---> adc1_channel_16 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f407/examples/adc/internal_temperature_sensor/src/at32f403a_407_clock.c b/project/at_start_f407/examples/adc/internal_temperature_sensor/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/adc/internal_temperature_sensor/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/adc/internal_temperature_sensor/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/internal_temperature_sensor/src/at32f403a_407_int.c b/project/at_start_f407/examples/adc/internal_temperature_sensor/src/at32f403a_407_int.c index 08357fbf..9336b99e 100644 --- a/project/at_start_f407/examples/adc/internal_temperature_sensor/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/adc/internal_temperature_sensor/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/internal_temperature_sensor/src/main.c b/project/at_start_f407/examples/adc/internal_temperature_sensor/src/main.c index e2410abe..8e36f052 100644 --- a/project/at_start_f407/examples/adc/internal_temperature_sensor/src/main.c +++ b/project/at_start_f407/examples/adc/internal_temperature_sensor/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_int.h b/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/adc/software_trigger_repeat/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/software_trigger_repeat/readme.txt b/project/at_start_f407/examples/adc/software_trigger_repeat/readme.txt index 7513ed14..311e9f74 100644 --- a/project/at_start_f407/examples/adc/software_trigger_repeat/readme.txt +++ b/project/at_start_f407/examples/adc/software_trigger_repeat/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,4 @@ - adc1_ordinary_valuetab[n][0] ---> adc1_channel_4 - adc1_ordinary_valuetab[n][1] ---> adc1_channel_5 - adc1_ordinary_valuetab[n][2] ---> adc1_channel_6 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f407/examples/adc/software_trigger_repeat/src/at32f403a_407_clock.c b/project/at_start_f407/examples/adc/software_trigger_repeat/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/adc/software_trigger_repeat/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/adc/software_trigger_repeat/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/software_trigger_repeat/src/at32f403a_407_int.c b/project/at_start_f407/examples/adc/software_trigger_repeat/src/at32f403a_407_int.c index 5ece4f3c..7bb937a9 100644 --- a/project/at_start_f407/examples/adc/software_trigger_repeat/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/adc/software_trigger_repeat/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/software_trigger_repeat/src/main.c b/project/at_start_f407/examples/adc/software_trigger_repeat/src/main.c index 1e1faae2..db21438d 100644 --- a/project/at_start_f407/examples/adc/software_trigger_repeat/src/main.c +++ b/project/at_start_f407/examples/adc/software_trigger_repeat/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_int.h b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/readme.txt b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/readme.txt index 8ad09cb7..0bdf6711 100644 --- a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/readme.txt +++ b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,4 @@ - adc1_preempt_valuetab[n][0] ---> adc1_channel_7 - adc1_preempt_valuetab[n][1] ---> adc1_channel_8 - adc1_preempt_valuetab[n][2] ---> adc1_channel_9 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_clock.c b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_int.c b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_int.c index 575b5efe..f9796de3 100644 --- a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/main.c b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/main.c index 498c6cab..c078e2a3 100644 --- a/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/main.c +++ b/project/at_start_f407/examples/adc/tmr_trigger_automatic_preempted/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_int.h b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/readme.txt b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/readme.txt index 985315dc..02c42b8a 100644 --- a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/readme.txt +++ b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -16,3 +16,4 @@ - adc3_ordinary_valuetab[n][0] ---> adc3_channel_10 - adc3_ordinary_valuetab[n][1] ---> adc3_channel_11 - adc3_ordinary_valuetab[n][2] ---> adc3_channel_12 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_clock.c b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_int.c b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_int.c index 039b820e..155e0231 100644 --- a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/main.c b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/main.c index 21c489da..954fdc80 100644 --- a/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/main.c +++ b/project/at_start_f407/examples/adc/triple_adc_synchro_trigger/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_int.h b/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/adc/voltage_monitoring/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/voltage_monitoring/readme.txt b/project/at_start_f407/examples/adc/voltage_monitoring/readme.txt index c814b2ad..cf96305a 100644 --- a/project/at_start_f407/examples/adc/voltage_monitoring/readme.txt +++ b/project/at_start_f407/examples/adc/voltage_monitoring/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,4 @@ - adc1_ordinary_valuetab[1] ---> adc1_channel_5 - adc1_ordinary_valuetab[2] ---> adc1_channel_6 the voltage monitoring channel is: adc1_channel_5 + for more detailed information. please refer to the application note document AN0112. \ No newline at end of file diff --git a/project/at_start_f407/examples/adc/voltage_monitoring/src/at32f403a_407_clock.c b/project/at_start_f407/examples/adc/voltage_monitoring/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/adc/voltage_monitoring/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/adc/voltage_monitoring/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/voltage_monitoring/src/at32f403a_407_int.c b/project/at_start_f407/examples/adc/voltage_monitoring/src/at32f403a_407_int.c index 8362c472..f7661e3d 100644 --- a/project/at_start_f407/examples/adc/voltage_monitoring/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/adc/voltage_monitoring/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/adc/voltage_monitoring/src/main.c b/project/at_start_f407/examples/adc/voltage_monitoring/src/main.c index 3e7fba03..bc676a4b 100644 --- a/project/at_start_f407/examples/adc/voltage_monitoring/src/main.c +++ b/project/at_start_f407/examples/adc/voltage_monitoring/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_int.h b/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/bpr/bpr_data/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/bpr_data/readme.txt b/project/at_start_f407/examples/bpr/bpr_data/readme.txt index 2a551a52..5d428d14 100644 --- a/project/at_start_f407/examples/bpr/bpr_data/readme.txt +++ b/project/at_start_f407/examples/bpr/bpr_data/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/bpr/bpr_data/src/at32f403a_407_clock.c b/project/at_start_f407/examples/bpr/bpr_data/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/bpr/bpr_data/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/bpr/bpr_data/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/bpr_data/src/at32f403a_407_int.c b/project/at_start_f407/examples/bpr/bpr_data/src/at32f403a_407_int.c index 1bc4b265..ffe418d4 100644 --- a/project/at_start_f407/examples/bpr/bpr_data/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/bpr/bpr_data/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/bpr_data/src/main.c b/project/at_start_f407/examples/bpr/bpr_data/src/main.c index b00d9da3..ad6c66bc 100644 --- a/project/at_start_f407/examples/bpr/bpr_data/src/main.c +++ b/project/at_start_f407/examples/bpr/bpr_data/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_int.h b/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/bpr/tamper/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/tamper/readme.txt b/project/at_start_f407/examples/bpr/tamper/readme.txt index 3a803d0e..eb7c093b 100644 --- a/project/at_start_f407/examples/bpr/tamper/readme.txt +++ b/project/at_start_f407/examples/bpr/tamper/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/bpr/tamper/src/at32f403a_407_clock.c b/project/at_start_f407/examples/bpr/tamper/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/bpr/tamper/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/bpr/tamper/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/tamper/src/at32f403a_407_int.c b/project/at_start_f407/examples/bpr/tamper/src/at32f403a_407_int.c index 77f79522..fea6d0d9 100644 --- a/project/at_start_f407/examples/bpr/tamper/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/bpr/tamper/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/bpr/tamper/src/main.c b/project/at_start_f407/examples/bpr/tamper/src/main.c index 4d44d3fe..76c858da 100644 --- a/project/at_start_f407/examples/bpr/tamper/src/main.c +++ b/project/at_start_f407/examples/bpr/tamper/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_int.h b/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/can/communication_mode/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/communication_mode/readme.txt b/project/at_start_f407/examples/can/communication_mode/readme.txt index 190a5e66..c098a2ac 100644 --- a/project/at_start_f407/examples/can/communication_mode/readme.txt +++ b/project/at_start_f407/examples/can/communication_mode/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,4 +13,6 @@ id is not equal to 0x400). set-up - can tx ---> pb9 - - can rx ---> pb8 \ No newline at end of file + - can rx ---> pb8 + + for more detailed information. please refer to the application note document AN0095. \ No newline at end of file diff --git a/project/at_start_f407/examples/can/communication_mode/src/at32f403a_407_clock.c b/project/at_start_f407/examples/can/communication_mode/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/can/communication_mode/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/can/communication_mode/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/communication_mode/src/at32f403a_407_int.c b/project/at_start_f407/examples/can/communication_mode/src/at32f403a_407_int.c index e3c7a7ab..df045727 100644 --- a/project/at_start_f407/examples/can/communication_mode/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/can/communication_mode/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/communication_mode/src/main.c b/project/at_start_f407/examples/can/communication_mode/src/main.c index b99be82f..b365e22f 100644 --- a/project/at_start_f407/examples/can/communication_mode/src/main.c +++ b/project/at_start_f407/examples/can/communication_mode/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -87,9 +87,9 @@ static void can_configuration(void) can_base_struct.mmssr_selection = CAN_SENDING_BY_ID; can_base_init(CAN1, &can_base_struct); - /* can baudrate, set baudrate = pclk/(baudrate_div *(3 + bts1_size + bts2_size)) */ + /* can baudrate, set baudrate = pclk/(baudrate_div *(1 + bts1_size + bts2_size)) */ can_baudrate_struct.baudrate_div = 10; - can_baudrate_struct.rsaw_size = CAN_RSAW_1TQ; + can_baudrate_struct.rsaw_size = CAN_RSAW_3TQ; can_baudrate_struct.bts1_size = CAN_BTS1_8TQ; can_baudrate_struct.bts2_size = CAN_BTS2_3TQ; can_baudrate_set(CAN1, &can_baudrate_struct); @@ -110,6 +110,8 @@ static void can_configuration(void) nvic_irq_enable(CAN1_SE_IRQn, 0x00, 0x00); nvic_irq_enable(USBFS_L_CAN1_RX0_IRQn, 0x00, 0x00); can_interrupt_enable(CAN1, CAN_RF0MIEN_INT, TRUE); + + /* error interrupt enable */ can_interrupt_enable(CAN1, CAN_ETRIEN_INT, TRUE); can_interrupt_enable(CAN1, CAN_EOIEN_INT, TRUE); } @@ -170,10 +172,11 @@ void CAN1_SE_IRQHandler(void) { err_index = CAN1->ests & 0x70; can_flag_clear(CAN1, CAN_ETR_FLAG); + /* error type is stuff error */ if(err_index == 0x00000010) { - can_reset(CAN1); - can_configuration(); + /* when stuff error occur: in order to ensure communication normally, + user must restart can or send a frame of highest priority message here */ } } } diff --git a/project/at_start_f407/examples/can/filter/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/can/filter/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/can/filter/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/can/filter/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/filter/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/can/filter/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/can/filter/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/can/filter/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/filter/inc/at32f403a_407_int.h b/project/at_start_f407/examples/can/filter/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/can/filter/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/can/filter/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/filter/readme.txt b/project/at_start_f407/examples/can/filter/readme.txt index 909975d1..f7376d7f 100644 --- a/project/at_start_f407/examples/can/filter/readme.txt +++ b/project/at_start_f407/examples/can/filter/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,3 +15,5 @@ set-up - can tx ---> pb9 - can rx ---> pb8 + + for more detailed information. please refer to the application note document AN0095. \ No newline at end of file diff --git a/project/at_start_f407/examples/can/filter/src/at32f403a_407_clock.c b/project/at_start_f407/examples/can/filter/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/can/filter/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/can/filter/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/filter/src/at32f403a_407_int.c b/project/at_start_f407/examples/can/filter/src/at32f403a_407_int.c index 569579b3..905a32b0 100644 --- a/project/at_start_f407/examples/can/filter/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/can/filter/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/filter/src/main.c b/project/at_start_f407/examples/can/filter/src/main.c index 63cd6c95..d5ab88c4 100644 --- a/project/at_start_f407/examples/can/filter/src/main.c +++ b/project/at_start_f407/examples/can/filter/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -100,9 +100,9 @@ static void can_configuration(void) can_base_struct.mmssr_selection = CAN_SENDING_BY_ID; can_base_init(CAN1, &can_base_struct); - /* can baudrate, set baudrate = pclk/(baudrate_div *(3 + bts1_size + bts2_size)) */ + /* can baudrate, set baudrate = pclk/(baudrate_div *(1 + bts1_size + bts2_size)) */ can_baudrate_struct.baudrate_div = 10; - can_baudrate_struct.rsaw_size = CAN_RSAW_1TQ; + can_baudrate_struct.rsaw_size = CAN_RSAW_3TQ; can_baudrate_struct.bts1_size = CAN_BTS1_8TQ; can_baudrate_struct.bts2_size = CAN_BTS2_3TQ; can_baudrate_set(CAN1, &can_baudrate_struct); @@ -135,6 +135,8 @@ static void can_configuration(void) nvic_irq_enable(CAN1_SE_IRQn, 0x00, 0x00); nvic_irq_enable(USBFS_L_CAN1_RX0_IRQn, 0x00, 0x00); can_interrupt_enable(CAN1, CAN_RF0MIEN_INT, TRUE); + + /* error interrupt enable */ can_interrupt_enable(CAN1, CAN_ETRIEN_INT, TRUE); can_interrupt_enable(CAN1, CAN_EOIEN_INT, TRUE); } @@ -292,10 +294,11 @@ void CAN1_SE_IRQHandler(void) { err_index = CAN1->ests & 0x70; can_flag_clear(CAN1, CAN_ETR_FLAG); + /* error type is stuff error */ if(err_index == 0x00000010) { - can_reset(CAN1); - can_configuration(); + /* when stuff error occur: in order to ensure communication normally, + user must restart can or send a frame of highest priority message here */ } } } diff --git a/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_int.h b/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/can/loopback_mode/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/loopback_mode/readme.txt b/project/at_start_f407/examples/can/loopback_mode/readme.txt index 45134825..37067844 100644 --- a/project/at_start_f407/examples/can/loopback_mode/readme.txt +++ b/project/at_start_f407/examples/can/loopback_mode/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,4 +14,6 @@ - can tx ---> pb9 - can rx ---> pb8 + for more detailed information. please refer to the application note document AN0095. + diff --git a/project/at_start_f407/examples/can/loopback_mode/src/at32f403a_407_clock.c b/project/at_start_f407/examples/can/loopback_mode/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/can/loopback_mode/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/can/loopback_mode/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/loopback_mode/src/at32f403a_407_int.c b/project/at_start_f407/examples/can/loopback_mode/src/at32f403a_407_int.c index 8199490c..9fe18582 100644 --- a/project/at_start_f407/examples/can/loopback_mode/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/can/loopback_mode/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/can/loopback_mode/src/main.c b/project/at_start_f407/examples/can/loopback_mode/src/main.c index 4b6586ca..a4bf0773 100644 --- a/project/at_start_f407/examples/can/loopback_mode/src/main.c +++ b/project/at_start_f407/examples/can/loopback_mode/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -87,9 +87,9 @@ static void can_configuration(void) can_base_struct.mmssr_selection = CAN_SENDING_BY_ID; can_base_init(CAN1, &can_base_struct); - /* can baudrate, set baudrate = pclk/(baudrate_div *(3 + bts1_size + bts2_size)) */ + /* can baudrate, set baudrate = pclk/(baudrate_div *(1 + bts1_size + bts2_size)) */ can_baudrate_struct.baudrate_div = 10; - can_baudrate_struct.rsaw_size = CAN_RSAW_1TQ; + can_baudrate_struct.rsaw_size = CAN_RSAW_3TQ; can_baudrate_struct.bts1_size = CAN_BTS1_8TQ; can_baudrate_struct.bts2_size = CAN_BTS2_3TQ; can_baudrate_set(CAN1, &can_baudrate_struct); @@ -110,6 +110,8 @@ static void can_configuration(void) nvic_irq_enable(CAN1_SE_IRQn, 0x00, 0x00); nvic_irq_enable(USBFS_L_CAN1_RX0_IRQn, 0x00, 0x00); can_interrupt_enable(CAN1, CAN_RF0MIEN_INT, TRUE); + + /* error interrupt enable */ can_interrupt_enable(CAN1, CAN_ETRIEN_INT, TRUE); can_interrupt_enable(CAN1, CAN_EOIEN_INT, TRUE); } @@ -168,10 +170,11 @@ void CAN1_SE_IRQHandler(void) { err_index = CAN1->ests & 0x70; can_flag_clear(CAN1, CAN_ETR_FLAG); + /* error type is stuff error */ if(err_index == 0x00000010) { - can_reset(CAN1); - can_configuration(); + /* when stuff error occur: in order to ensure communication normally, + user must restart can or send a frame of highest priority message here */ } } } diff --git a/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_int.h b/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/cortex_m4/bit_band/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/bit_band/readme.txt b/project/at_start_f407/examples/cortex_m4/bit_band/readme.txt index 40626107..832417e8 100644 --- a/project/at_start_f407/examples/cortex_m4/bit_band/readme.txt +++ b/project/at_start_f407/examples/cortex_m4/bit_band/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,4 @@ this demo is based on the at-start board, in this demo, modify the variables by its bitband address and then read from bitband address. if the variables is not the expected, led4 blink every 1s, else using bitband make the led2 toggle. + for more detailed information. please refer to the application note document AN0083. diff --git a/project/at_start_f407/examples/cortex_m4/bit_band/src/at32f403a_407_clock.c b/project/at_start_f407/examples/cortex_m4/bit_band/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/cortex_m4/bit_band/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/cortex_m4/bit_band/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/bit_band/src/at32f403a_407_int.c b/project/at_start_f407/examples/cortex_m4/bit_band/src/at32f403a_407_int.c index 6c2e4836..cc978213 100644 --- a/project/at_start_f407/examples/cortex_m4/bit_band/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/cortex_m4/bit_band/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/bit_band/src/main.c b/project/at_start_f407/examples/cortex_m4/bit_band/src/main.c index f7d00990..83d6d25e 100644 --- a/project/at_start_f407/examples/cortex_m4/bit_band/src/main.c +++ b/project/at_start_f407/examples/cortex_m4/bit_band/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_int.h b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/readme.txt b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/readme.txt index 8f43e85f..7ae87ea2 100644 --- a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/readme.txt +++ b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/readme.txt @@ -1,12 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, demonstrates the use the maximum, minimum, mean, standard deviation, variance and matrix functions to calculate - statistical values of marks obtained in a class. \ No newline at end of file + statistical values of marks obtained in a class. for more detailed information. + please refer to the application note document AN0036. \ No newline at end of file diff --git a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_clock.c b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_int.c b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_int.c index b9c4baa6..cb4e666e 100644 --- a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/main.c b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/main.c index b8273855..2c8490de 100644 --- a/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/main.c +++ b/project/at_start_f407/examples/cortex_m4/cmsis_dsp/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_int.h b/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/cortex_m4/fpu/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/fpu/inc/julia_fpu.h b/project/at_start_f407/examples/cortex_m4/fpu/inc/julia_fpu.h index b48f7342..d246577e 100644 --- a/project/at_start_f407/examples/cortex_m4/fpu/inc/julia_fpu.h +++ b/project/at_start_f407/examples/cortex_m4/fpu/inc/julia_fpu.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file julia_fpu.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief julia_fpu header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/fpu/readme.txt b/project/at_start_f407/examples/cortex_m4/fpu/readme.txt index fdfa6d58..0978c3c7 100644 --- a/project/at_start_f407/examples/cortex_m4/fpu/readme.txt +++ b/project/at_start_f407/examples/cortex_m4/fpu/readme.txt @@ -1,12 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, there are two project targets: fpu_enable and fpu_disable. they test comparison fpu - efficiency by led4 blink cost time. + efficiency by led4 blink cost time. for more detailed information. + please refer to the application note document AN0037. diff --git a/project/at_start_f407/examples/cortex_m4/fpu/src/at32f403a_407_clock.c b/project/at_start_f407/examples/cortex_m4/fpu/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/cortex_m4/fpu/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/cortex_m4/fpu/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/fpu/src/at32f403a_407_int.c b/project/at_start_f407/examples/cortex_m4/fpu/src/at32f403a_407_int.c index 93f7a873..26fc5df4 100644 --- a/project/at_start_f407/examples/cortex_m4/fpu/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/cortex_m4/fpu/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/fpu/src/julia_fpu.c b/project/at_start_f407/examples/cortex_m4/fpu/src/julia_fpu.c index d86f302d..9e6bad3a 100644 --- a/project/at_start_f407/examples/cortex_m4/fpu/src/julia_fpu.c +++ b/project/at_start_f407/examples/cortex_m4/fpu/src/julia_fpu.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file julia_fpu.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief julia_fpu source file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/fpu/src/main.c b/project/at_start_f407/examples/cortex_m4/fpu/src/main.c index 6f933f70..f3382bb5 100644 --- a/project/at_start_f407/examples/cortex_m4/fpu/src/main.c +++ b/project/at_start_f407/examples/cortex_m4/fpu/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_int.h b/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/cortex_m4/systick_interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/systick_interrupt/readme.txt b/project/at_start_f407/examples/cortex_m4/systick_interrupt/readme.txt index c9d98642..9eec285d 100644 --- a/project/at_start_f407/examples/cortex_m4/systick_interrupt/readme.txt +++ b/project/at_start_f407/examples/cortex_m4/systick_interrupt/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, systick interrupt - per milisecond and led2 fresh per 200 ms. + per milisecond and led2 fresh per 200 ms. for more detailed information. + please refer to the application note document AN0083. diff --git a/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/at32f403a_407_clock.c b/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/at32f403a_407_int.c b/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/at32f403a_407_int.c index 8f627c50..5d10eb26 100644 --- a/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/main.c b/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/main.c index e42fe0e0..484f2c82 100644 --- a/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/main.c +++ b/project/at_start_f407/examples/cortex_m4/systick_interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_int.h b/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/crc/calculation/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crc/calculation/readme.txt b/project/at_start_f407/examples/crc/calculation/readme.txt index 3d0e29a8..97c68f05 100644 --- a/project/at_start_f407/examples/crc/calculation/readme.txt +++ b/project/at_start_f407/examples/crc/calculation/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,4 @@ this demo is based on the at-start board, in this demo, shows how to use crc calculation unit to get a crc code of a given buffer of data word(32-bit), if get a correct crc value led3 will be turn on, else led4 will be turn on. + for more detailed information. please refer to the application note document AN0109. \ No newline at end of file diff --git a/project/at_start_f407/examples/crc/calculation/src/at32f403a_407_clock.c b/project/at_start_f407/examples/crc/calculation/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/crc/calculation/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/crc/calculation/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crc/calculation/src/at32f403a_407_int.c b/project/at_start_f407/examples/crc/calculation/src/at32f403a_407_int.c index 2512f148..ad18aa25 100644 --- a/project/at_start_f407/examples/crc/calculation/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/crc/calculation/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crc/calculation/src/main.c b/project/at_start_f407/examples/crc/calculation/src/main.c index 58f3c8a2..104a4a6b 100644 --- a/project/at_start_f407/examples/crc/calculation/src/main.c +++ b/project/at_start_f407/examples/crc/calculation/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_int.h b/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/crm/clock_failure_detection/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/clock_failure_detection/readme.txt b/project/at_start_f407/examples/crm/clock_failure_detection/readme.txt index de427ba4..7176bc53 100644 --- a/project/at_start_f407/examples/crm/clock_failure_detection/readme.txt +++ b/project/at_start_f407/examples/crm/clock_failure_detection/readme.txt @@ -1,12 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, swith sclk to pll based hick when hext clock failure occured. pa8 output crm_clkout_pll_div_4 - and led2 fresh per 200 ms. + and led2 fresh per 200 ms.for more detailed information. please refer to the + application note document AN0082. diff --git a/project/at_start_f407/examples/crm/clock_failure_detection/src/at32f403a_407_clock.c b/project/at_start_f407/examples/crm/clock_failure_detection/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/crm/clock_failure_detection/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/crm/clock_failure_detection/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/clock_failure_detection/src/at32f403a_407_int.c b/project/at_start_f407/examples/crm/clock_failure_detection/src/at32f403a_407_int.c index 4b910738..c167dffe 100644 --- a/project/at_start_f407/examples/crm/clock_failure_detection/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/crm/clock_failure_detection/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/clock_failure_detection/src/main.c b/project/at_start_f407/examples/crm/clock_failure_detection/src/main.c index db4732d4..2e6c777f 100644 --- a/project/at_start_f407/examples/crm/clock_failure_detection/src/main.c +++ b/project/at_start_f407/examples/crm/clock_failure_detection/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_int.h b/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/crm/sysclk_switch/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/sysclk_switch/readme.txt b/project/at_start_f407/examples/crm/sysclk_switch/readme.txt index 7af4131b..bfb008c9 100644 --- a/project/at_start_f407/examples/crm/sysclk_switch/readme.txt +++ b/project/at_start_f407/examples/crm/sysclk_switch/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, swith sclk by pressed button. led4 toggle, pa8 output crm_clkout_pll_div_4. led2 fresh per 100 ms. + for more detailed information. please refer to the application note document AN0082. diff --git a/project/at_start_f407/examples/crm/sysclk_switch/src/at32f403a_407_clock.c b/project/at_start_f407/examples/crm/sysclk_switch/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/crm/sysclk_switch/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/crm/sysclk_switch/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/sysclk_switch/src/at32f403a_407_int.c b/project/at_start_f407/examples/crm/sysclk_switch/src/at32f403a_407_int.c index 2c13b3cc..d2e42ad7 100644 --- a/project/at_start_f407/examples/crm/sysclk_switch/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/crm/sysclk_switch/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/crm/sysclk_switch/src/main.c b/project/at_start_f407/examples/crm/sysclk_switch/src/main.c index 9ff11147..c999d5ac 100644 --- a/project/at_start_f407/examples/crm/sysclk_switch/src/main.c +++ b/project/at_start_f407/examples/crm/sysclk_switch/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_int.h b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/readme.txt b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/readme.txt index ae6bd3ca..b5b303cb 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/readme.txt +++ b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 pa5 output sine waveform + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_clock.c b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_int.c b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_int.c index b2d54046..92d833b9 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/main.c b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/main.c index 5aabeed1..93394f06 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/main.c +++ b/project/at_start_f407/examples/dac/double_mode_dma_sinewave/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_int.h b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/readme.txt b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/readme.txt index 8813e0fc..038ceda7 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/readme.txt +++ b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 pa5 output square waveform. + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_clock.c b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_int.c b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_int.c index 82f2ba53..5098df3a 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/main.c b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/main.c index ecb91c72..53b6c619 100644 --- a/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/main.c +++ b/project/at_start_f407/examples/dac/double_mode_dma_squarewave/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_int.h b/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/dac/one_dac_dma_escalator/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_dma_escalator/readme.txt b/project/at_start_f407/examples/dac/one_dac_dma_escalator/readme.txt index f1bedd3d..4f157977 100644 --- a/project/at_start_f407/examples/dac/one_dac_dma_escalator/readme.txt +++ b/project/at_start_f407/examples/dac/one_dac_dma_escalator/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 output an escalator waveform. + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/at32f403a_407_clock.c b/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/at32f403a_407_int.c b/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/at32f403a_407_int.c index 77879446..e3312b69 100644 --- a/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/main.c b/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/main.c index b7289965..c50ad61b 100644 --- a/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/main.c +++ b/project/at_start_f407/examples/dac/one_dac_dma_escalator/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_int.h b/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/dac/one_dac_noisewave/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_noisewave/readme.txt b/project/at_start_f407/examples/dac/one_dac_noisewave/readme.txt index 5503fa65..0245ee11 100644 --- a/project/at_start_f407/examples/dac/one_dac_noisewave/readme.txt +++ b/project/at_start_f407/examples/dac/one_dac_noisewave/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 output a noise waveform. + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f407/examples/dac/one_dac_noisewave/src/at32f403a_407_clock.c b/project/at_start_f407/examples/dac/one_dac_noisewave/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/dac/one_dac_noisewave/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/dac/one_dac_noisewave/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_noisewave/src/at32f403a_407_int.c b/project/at_start_f407/examples/dac/one_dac_noisewave/src/at32f403a_407_int.c index e8e80fca..e342c488 100644 --- a/project/at_start_f407/examples/dac/one_dac_noisewave/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/dac/one_dac_noisewave/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/one_dac_noisewave/src/main.c b/project/at_start_f407/examples/dac/one_dac_noisewave/src/main.c index 043043df..3ec1568f 100644 --- a/project/at_start_f407/examples/dac/one_dac_noisewave/src/main.c +++ b/project/at_start_f407/examples/dac/one_dac_noisewave/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_int.h b/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/dac/two_dac_trianglewave/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/two_dac_trianglewave/readme.txt b/project/at_start_f407/examples/dac/two_dac_trianglewave/readme.txt index b673fcb2..d59f8c5b 100644 --- a/project/at_start_f407/examples/dac/two_dac_trianglewave/readme.txt +++ b/project/at_start_f407/examples/dac/two_dac_trianglewave/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pa4 pa5 output triangle waveform. + + for more detailed information. please refer to the application note document AN0101. \ No newline at end of file diff --git a/project/at_start_f407/examples/dac/two_dac_trianglewave/src/at32f403a_407_clock.c b/project/at_start_f407/examples/dac/two_dac_trianglewave/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/dac/two_dac_trianglewave/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/dac/two_dac_trianglewave/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/two_dac_trianglewave/src/at32f403a_407_int.c b/project/at_start_f407/examples/dac/two_dac_trianglewave/src/at32f403a_407_int.c index e34b1c17..a011dd43 100644 --- a/project/at_start_f407/examples/dac/two_dac_trianglewave/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/dac/two_dac_trianglewave/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dac/two_dac_trianglewave/src/main.c b/project/at_start_f407/examples/dac/two_dac_trianglewave/src/main.c index 9da261a4..537a7976 100644 --- a/project/at_start_f407/examples/dac/two_dac_trianglewave/src/main.c +++ b/project/at_start_f407/examples/dac/two_dac_trianglewave/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_int.h b/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/debug/tmr1/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/debug/tmr1/readme.txt b/project/at_start_f407/examples/debug/tmr1/readme.txt index 73ffab9b..88d65b0a 100644 --- a/project/at_start_f407/examples/debug/tmr1/readme.txt +++ b/project/at_start_f407/examples/debug/tmr1/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/debug/tmr1/src/at32f403a_407_clock.c b/project/at_start_f407/examples/debug/tmr1/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/debug/tmr1/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/debug/tmr1/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/debug/tmr1/src/at32f403a_407_int.c b/project/at_start_f407/examples/debug/tmr1/src/at32f403a_407_int.c index 9e7cd771..fa06cc8d 100644 --- a/project/at_start_f407/examples/debug/tmr1/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/debug/tmr1/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/debug/tmr1/src/main.c b/project/at_start_f407/examples/debug/tmr1/src/main.c index 87c4b36b..7241e714 100644 --- a/project/at_start_f407/examples/debug/tmr1/src/main.c +++ b/project/at_start_f407/examples/debug/tmr1/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_int.h b/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/dma/data_to_gpio_flexible/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/data_to_gpio_flexible/readme.txt b/project/at_start_f407/examples/dma/data_to_gpio_flexible/readme.txt index 0c570e81..62059880 100644 --- a/project/at_start_f407/examples/dma/data_to_gpio_flexible/readme.txt +++ b/project/at_start_f407/examples/dma/data_to_gpio_flexible/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,4 +13,5 @@ channel1 is configured to transfer the contents of a 16-halfword data buffer stored in embedded sram memory to the gpioc. if transfer full data, the three leds will turn on, and dma2 enabled the flexible function. user can use logic - analyzer get waveform. + analyzer get waveform.for more detailed information. please refer to the + application note document AN0009. diff --git a/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/at32f403a_407_clock.c b/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/at32f403a_407_int.c b/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/at32f403a_407_int.c index 6b6d7def..70117202 100644 --- a/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/main.c b/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/main.c index 5afa9880..27eb50f2 100644 --- a/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/main.c +++ b/project/at_start_f407/examples/dma/data_to_gpio_flexible/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_int.h b/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/dma/flash_to_sram/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/flash_to_sram/readme.txt b/project/at_start_f407/examples/dma/flash_to_sram/readme.txt index 938b8b85..10bf39e6 100644 --- a/project/at_start_f407/examples/dma/flash_to_sram/readme.txt +++ b/project/at_start_f407/examples/dma/flash_to_sram/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/dma/flash_to_sram/src/at32f403a_407_clock.c b/project/at_start_f407/examples/dma/flash_to_sram/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/dma/flash_to_sram/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/dma/flash_to_sram/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/flash_to_sram/src/at32f403a_407_int.c b/project/at_start_f407/examples/dma/flash_to_sram/src/at32f403a_407_int.c index ae44495e..0e784d2e 100644 --- a/project/at_start_f407/examples/dma/flash_to_sram/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/dma/flash_to_sram/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/dma/flash_to_sram/src/main.c b/project/at_start_f407/examples/dma/flash_to_sram/src/main.c index ffe51ef8..257f16a4 100644 --- a/project/at_start_f407/examples/dma/flash_to_sram/src/main.c +++ b/project/at_start_f407/examples/dma/flash_to_sram/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/dns_client/inc/at32_emac.h b/project/at_start_f407/examples/emac/dns_client/inc/at32_emac.h index cf144801..0a483589 100644 --- a/project/at_start_f407/examples/emac/dns_client/inc/at32_emac.h +++ b/project/at_start_f407/examples/emac/dns_client/inc/at32_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of emac config program. ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407.h" +#include "netif.h" /** @addtogroup AT32F407_periph_examples * @{ @@ -52,6 +53,8 @@ #define DM9162 //#define DP83848 +#define LINK_DETECTION (1) /*!< link status detection, 0: no detection, 1: detect with polling */ + #if defined (DM9162) #define PHY_ADDRESS (0x00) /*!< relative to at32 board */ #define PHY_CONTROL_REG (0x00) /*!< basic mode control register */ @@ -95,6 +98,12 @@ error_status emac_phy_register_reset(void); error_status emac_speed_config(emac_auto_negotiation_type nego, emac_duplex_type mode, emac_speed_type speed); error_status emac_phy_init(emac_control_config_type *control_para); +uint16_t link_update(void); +void ethernetif_set_link(void const *argument); +void ethernetif_notify_conn_changed(struct netif *netif); +void ethernetif_update_config(struct netif *netif); +void emac_tmr_init(void); + /** * @} */ diff --git a/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_int.h b/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/emac/dns_client/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/dns_client/inc/lwipopts.h b/project/at_start_f407/examples/emac/dns_client/inc/lwipopts.h new file mode 100644 index 00000000..344412d3 --- /dev/null +++ b/project/at_start_f407/examples/emac/dns_client/inc/lwipopts.h @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the lwIP TCP/IP stack. + * + * Author: Simon Goldschmidt + * + */ +#ifndef LWIP_HDR_LWIPOPTS_H +#define LWIP_HDR_LWIPOPTS_H + +//#define LWIP_TESTMODE 0 + +#define LWIP_IPV4 1 + +//#define LWIP_TIMERS 0 + +//#define LWIP_CHECKSUM_ON_COPY 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(printfmsg) LWIP_ASSERT("TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL", 0) + +/* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */ +#define NO_SYS 1 +#define SYS_LIGHTWEIGHT_PROT 0 +#define LWIP_NETCONN !NO_SYS +#define LWIP_SOCKET !NO_SYS +#define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET +#define LWIP_NETBUF_RECVINFO 1 +#define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +#define LWIP_DNS 1 +#define DNS_DOES_NAME_CHECK 1 +//#define TCPIP_THREAD_TEST + +/* Enable DHCP to test it, disable UDP checksum to easier inject packets */ +#define LWIP_DHCP 0 + +/* Minimal changes to opt.h required for tcp unit tests: */ +/* TCP Maximum segment size. */ + +#define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */ +/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which + lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 + byte alignment -> define MEM_ALIGNMENT to 2. */ +#define MEM_ALIGNMENT 4 +#define MEM_SIZE (20*1024) +#define TCP_SND_QUEUELEN (6 * TCP_SND_BUF)/TCP_MSS +#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN +#define TCP_SND_BUF (2 * TCP_MSS) +#define TCP_WND (2 * TCP_MSS) +#define LWIP_WND_SCALE 0 +#define TCP_RCV_SCALE 0 +#define PBUF_POOL_SIZE 10 /* pbuf tests need ~200KByte */ +/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ +#define PBUF_POOL_BUFSIZE 2000 +//#define TCP_QUEUE_OOSEQ 0 + +/* ---------- TCP options ---------- */ +#define LWIP_TCP 1 +#define TCP_TTL 255 + +/* Enable IGMP and MDNS for MDNS tests */ +#define LWIP_IGMP 1 +#define LWIP_MDNS_RESPONDER 1 +#define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER) + +/* Minimal changes to opt.h required for etharp unit tests: */ +#define ETHARP_SUPPORT_STATIC_ENTRIES 1 + +#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 8) + +/* MIB2 stats are required to check IPv4 reassembly results */ +#define MIB2_STATS 1 + +/* netif tests want to test this, so enable: */ +//#define LWIP_NETIF_EXT_STATUS_CALLBACK 1 + +/* Check lwip_stats.mem.illegal instead of asserting */ +#define LWIP_MEM_ILLEGAL_FREE(msg) /* to nothing */ + +#endif /* LWIP_HDR_LWIPOPTS_H */ diff --git a/project/at_start_f407/examples/emac/dns_client/inc/netconf.h b/project/at_start_f407/examples/emac/dns_client/inc/netconf.h index 6b0df237..0a6e3fd9 100644 --- a/project/at_start_f407/examples/emac/dns_client/inc/netconf.h +++ b/project/at_start_f407/examples/emac/dns_client/inc/netconf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief This file contains all the functions prototypes for the netconf.c * file. ************************************************************************** diff --git a/project/at_start_f407/examples/emac/dns_client/mdk_v5/dns_client.uvoptx b/project/at_start_f407/examples/emac/dns_client/mdk_v5/dns_client.uvoptx index 644643e7..5c312ed5 100644 --- a/project/at_start_f407/examples/emac/dns_client/mdk_v5/dns_client.uvoptx +++ b/project/at_start_f407/examples/emac/dns_client/mdk_v5/dns_client.uvoptx @@ -335,6 +335,18 @@ 0 0 + + 3 + 13 + 1 + 0 + 0 + 0 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + at32f403a_407_tmr.c + 0 + 0 + @@ -345,7 +357,7 @@ 0 4 - 13 + 14 1 0 0 @@ -357,7 +369,7 @@ 4 - 14 + 15 2 0 0 @@ -377,7 +389,7 @@ 0 5 - 15 + 16 1 0 0 @@ -389,7 +401,7 @@ 5 - 16 + 17 1 0 0 @@ -401,7 +413,7 @@ 5 - 17 + 18 1 0 0 @@ -413,7 +425,7 @@ 5 - 18 + 19 1 0 0 @@ -425,7 +437,7 @@ 5 - 19 + 20 1 0 0 @@ -437,7 +449,7 @@ 5 - 20 + 21 1 0 0 @@ -449,7 +461,7 @@ 5 - 21 + 22 1 0 0 @@ -461,7 +473,7 @@ 5 - 22 + 23 1 0 0 @@ -473,7 +485,7 @@ 5 - 23 + 24 1 0 0 @@ -485,7 +497,7 @@ 5 - 24 + 25 1 0 0 @@ -497,7 +509,7 @@ 5 - 25 + 26 1 0 0 @@ -509,7 +521,7 @@ 5 - 26 + 27 1 0 0 @@ -521,7 +533,7 @@ 5 - 27 + 28 1 0 0 @@ -533,7 +545,7 @@ 5 - 28 + 29 1 0 0 @@ -545,7 +557,7 @@ 5 - 29 + 30 1 0 0 @@ -557,7 +569,7 @@ 5 - 30 + 31 1 0 0 @@ -569,7 +581,7 @@ 5 - 31 + 32 1 0 0 @@ -581,7 +593,7 @@ 5 - 32 + 33 1 0 0 @@ -593,7 +605,7 @@ 5 - 33 + 34 1 0 0 @@ -605,7 +617,7 @@ 5 - 34 + 35 1 0 0 @@ -617,7 +629,7 @@ 5 - 35 + 36 1 0 0 @@ -629,7 +641,7 @@ 5 - 36 + 37 1 0 0 @@ -641,7 +653,7 @@ 5 - 37 + 38 1 0 0 @@ -653,7 +665,7 @@ 5 - 38 + 39 1 0 0 @@ -665,7 +677,7 @@ 5 - 39 + 40 1 0 0 @@ -677,7 +689,7 @@ 5 - 40 + 41 1 0 0 @@ -689,7 +701,7 @@ 5 - 41 + 42 1 0 0 @@ -701,7 +713,7 @@ 5 - 42 + 43 1 0 0 @@ -713,7 +725,7 @@ 5 - 43 + 44 1 0 0 @@ -725,7 +737,7 @@ 5 - 44 + 45 1 0 0 @@ -737,7 +749,7 @@ 5 - 45 + 46 1 0 0 @@ -749,7 +761,7 @@ 5 - 46 + 47 1 0 0 @@ -761,7 +773,7 @@ 5 - 47 + 48 1 0 0 @@ -773,7 +785,7 @@ 5 - 48 + 49 1 0 0 @@ -785,7 +797,7 @@ 5 - 49 + 50 1 0 0 @@ -797,7 +809,7 @@ 5 - 50 + 51 1 0 0 @@ -809,7 +821,7 @@ 5 - 51 + 52 1 0 0 @@ -821,7 +833,7 @@ 5 - 52 + 53 1 0 0 @@ -833,7 +845,7 @@ 5 - 53 + 54 1 0 0 @@ -845,7 +857,7 @@ 5 - 54 + 55 1 0 0 @@ -865,7 +877,7 @@ 0 6 - 55 + 56 5 0 0 diff --git a/project/at_start_f407/examples/emac/dns_client/mdk_v5/dns_client.uvprojx b/project/at_start_f407/examples/emac/dns_client/mdk_v5/dns_client.uvprojx index 8344b7ba..902f460f 100644 --- a/project/at_start_f407/examples/emac/dns_client/mdk_v5/dns_client.uvprojx +++ b/project/at_start_f407/examples/emac/dns_client/mdk_v5/dns_client.uvprojx @@ -10,7 +10,7 @@ tcp_client 0x4 ARM-ADS - 5060061::V5.06 update 1 (build 61)::ARMCC + 5060750::V5.06 update 6 (build 750)::.\ARMCC 0 @@ -452,6 +452,11 @@ 1 ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_misc.c + + at32f403a_407_tmr.c + 1 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + diff --git a/project/at_start_f407/examples/emac/dns_client/readme.txt b/project/at_start_f407/examples/emac/dns_client/readme.txt index c156b9fd..f88eeb12 100644 --- a/project/at_start_f407/examples/emac/dns_client/readme.txt +++ b/project/at_start_f407/examples/emac/dns_client/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows the dns client - operating flow for at32f4xx series. it will parse domain name to ip address. \ No newline at end of file + operating flow for at32f4xx series. it will parse domain name to ip address. + for more detailed information, please refer to the application note document + AN0057. \ No newline at end of file diff --git a/project/at_start_f407/examples/emac/dns_client/src/at32_emac.c b/project/at_start_f407/examples/emac/dns_client/src/at32_emac.c index f55dd5b4..2eccbec5 100644 --- a/project/at_start_f407/examples/emac/dns_client/src/at32_emac.c +++ b/project/at_start_f407/examples/emac/dns_client/src/at32_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief emac config program ************************************************************************** * Copyright notice & Disclaimer @@ -26,6 +26,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407_board.h" +#include "lwip/dhcp.h" #include "at32_emac.h" /** @addtogroup AT32F407_periph_examples @@ -36,6 +37,8 @@ * @{ */ +emac_control_config_type mac_control_para; + /** * @brief enable emac clock and gpio clock * @param none @@ -54,6 +57,7 @@ error_status emac_system_init(void) emac_pins_configuration(); status = emac_layer2_configuration(); + emac_tmr_init(); return status; } @@ -227,7 +231,6 @@ void emac_pins_configuration(void) */ error_status emac_layer2_configuration(void) { - emac_control_config_type mac_control_para; emac_dma_config_type dma_control_para; #ifdef MII_MODE gpio_pin_remap_config(MII_RMII_SEL_GMUX, FALSE); @@ -476,15 +479,141 @@ error_status emac_phy_init(emac_control_config_type *control_para) { return ERROR; } - if(emac_speed_config(control_para->auto_nego, control_para->duplex_mode, control_para->fast_ethernet_speed) == ERROR) - { - return ERROR; - } emac_control_config(control_para); return SUCCESS; } +/** + * @brief updates the link states + * @param none + * @retval link state 0: disconnect, 1: connection + */ +uint16_t link_update(void) +{ + uint16_t link_data, link_state; + if(emac_phy_register_read(PHY_ADDRESS, PHY_STATUS_REG, &link_data) == ERROR) + { + return ERROR; + } + + link_state = (link_data & PHY_LINKED_STATUS_BIT)>>2; + return link_state; +} + +/** + * @brief this function sets the netif link status. + * @param netif: the network interface + * @retval none + */ +void ethernetif_set_link(void const *argument) +{ + uint16_t regvalue = 0; + struct netif *netif = (struct netif *)argument; + + /* Read PHY_BSR*/ + regvalue = link_update(); + + if(regvalue > 0) + { + at32_led_on(LED4); + at32_led_off(LED2); + } + else + { + at32_led_on(LED2); + at32_led_off(LED4); + } + /* Check whether the netif link down and the PHY link is up */ + if(!netif_is_link_up(netif) && (regvalue)) + { + /* network cable is connected */ + netif_set_link_up(netif); + } + else if(netif_is_link_up(netif) && (!regvalue)) + { + /* network cable is dis-connected */ + netif_set_link_down(netif); + } +} + +/** + * @brief This function notify user about link status changement. + * @param netif: the network interface + * @retval None + */ +void ethernetif_notify_conn_changed(struct netif *netif) +{ + /* NOTE : This is function could be implemented in user file + when the callback is needed, + */ + + if (netif_is_link_up(netif)) { + netif_set_up(netif); + +#if LWIP_DHCP + /* Creates a new DHCP client for this interface on the first call. + Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at + the predefined regular intervals after starting the client. + You can peek in the netif->dhcp struct for the actual DHCP status.*/ + dhcp_start(netif); +#endif + } + else + netif_set_down(netif); +} + +/** + * @brief Link callback function, this function is called on change of link status + * to update low level driver configuration. +* @param netif: The network interface + * @retval None + */ +void ethernetif_update_config(struct netif *netif) +{ + if(netif_is_link_up(netif)) + { + emac_speed_config(mac_control_para.auto_nego, mac_control_para.duplex_mode, mac_control_para.fast_ethernet_speed); + + delay_ms(300); + /* enable mac and dma transmission and reception */ + emac_start(); + } + else + { + /* disable mac and dma transmission and reception */ + emac_stop(); + } + + ethernetif_notify_conn_changed(netif); +} + +/** + * @brief initialize tmr6 for emac + * @param none + * @retval none + */ +void emac_tmr_init(void) +{ + crm_clocks_freq_type crm_clocks_freq_struct = {0}; + crm_periph_clock_enable(CRM_TMR6_PERIPH_CLOCK, TRUE); + + crm_clocks_freq_get(&crm_clocks_freq_struct); + /* tmr1 configuration */ + /* time base configuration */ + /* systemclock/24000/100 = 100hz */ + tmr_base_init(TMR6, 99, (crm_clocks_freq_struct.ahb_freq / 10000) - 1); + tmr_cnt_dir_set(TMR6, TMR_COUNT_UP); + + /* overflow interrupt enable */ + tmr_interrupt_enable(TMR6, TMR_OVF_INT, TRUE); + + /* tmr1 overflow interrupt nvic init */ + nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); + nvic_irq_enable(TMR6_GLOBAL_IRQn, 0, 0); + tmr_counter_enable(TMR6, TRUE); +} + /** * @} */ diff --git a/project/at_start_f407/examples/emac/dns_client/src/at32f403a_407_clock.c b/project/at_start_f407/examples/emac/dns_client/src/at32f403a_407_clock.c index 7ddab853..ca7d4a5b 100644 --- a/project/at_start_f407/examples/emac/dns_client/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/emac/dns_client/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/dns_client/src/at32f403a_407_int.c b/project/at_start_f407/examples/emac/dns_client/src/at32f403a_407_int.c index 41f89e54..c6897bb2 100644 --- a/project/at_start_f407/examples/emac/dns_client/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/emac/dns_client/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer @@ -131,8 +131,21 @@ void PendSV_Handler(void) */ void SysTick_Handler(void) { - /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ - time_update(); +} + +/** + * @brief this function handles timer6 overflow handler. + * @param none + * @retval none + */ +void TMR6_GLOBAL_IRQHandler(void) +{ + if(tmr_flag_get(TMR6, TMR_OVF_FLAG) != RESET) + { + /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ + time_update(); + tmr_flag_clear(TMR6, TMR_OVF_FLAG); + } } /** diff --git a/project/at_start_f407/examples/emac/dns_client/src/main.c b/project/at_start_f407/examples/emac/dns_client/src/main.c index e2c0e23b..6cffed29 100644 --- a/project/at_start_f407/examples/emac/dns_client/src/main.c +++ b/project/at_start_f407/examples/emac/dns_client/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -43,7 +43,7 @@ #define FAST 1 #define SLOW 4 -#define DOMAIN_NAME "ibm.com.tw" +#define DOMAIN_NAME "www.arterytek.com" uint8_t g_speed = FAST; volatile uint32_t local_time = 0; @@ -63,6 +63,8 @@ int main(void) system_clock_config(); at32_board_init(); + + uart_print_init(115200); nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); @@ -82,13 +84,6 @@ int main(void) for(;;) { lwip_periodic_handle(local_time); - - at32_led_toggle(LED2); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED3); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED4); - delay_ms(g_speed * DELAY); } } diff --git a/project/at_start_f407/examples/emac/dns_client/src/netconf.c b/project/at_start_f407/examples/emac/dns_client/src/netconf.c index 6cb11a65..164e4850 100644 --- a/project/at_start_f407/examples/emac/dns_client/src/netconf.c +++ b/project/at_start_f407/examples/emac/dns_client/src/netconf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief network connection configuration ************************************************************************** * Copyright notice & Disclaimer @@ -35,6 +35,7 @@ #include "netconf.h" #include "dns.h" #include "stdio.h" +#include "at32_emac.h" /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ @@ -46,6 +47,7 @@ extern volatile uint32_t local_time; struct netif netif; volatile uint32_t tcp_timer = 0; volatile uint32_t arp_timer = 0; +volatile uint32_t link_timer = 0; #if LWIP_DNS volatile uint32_t dns_timer = 0; #endif @@ -115,16 +117,11 @@ void tcpip_stack_init(void) /* Registers the default network interface.*/ netif_set_default(&netif); -#if LWIP_DHCP - /* Creates a new DHCP client for this interface on the first call. - Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at - the predefined regular intervals after starting the client. - You can peek in the netif->dhcp struct for the actual DHCP status.*/ - dhcp_start(&netif); -#endif - /* When the netif is fully configured this function must be called.*/ netif_set_up(&netif); + + /* Set the link callback function, this function is called on change of link status*/ + netif_set_link_callback(&netif, ethernetif_update_config); } /** @@ -195,5 +192,14 @@ void lwip_periodic_handle(volatile uint32_t localtime) dns_tmr(); } #endif + +#if (LINK_DETECTION > 0) + /* link detection process every 500 ms */ + if (localtime - link_timer >= 500) + { + link_timer = localtime; + ethernetif_set_link(&netif); + } +#endif } diff --git a/project/at_start_f407/examples/emac/http_server/inc/at32_emac.h b/project/at_start_f407/examples/emac/http_server/inc/at32_emac.h index 9d51298b..f395d37f 100644 --- a/project/at_start_f407/examples/emac/http_server/inc/at32_emac.h +++ b/project/at_start_f407/examples/emac/http_server/inc/at32_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of emac config program. ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407.h" +#include "netif.h" /** @addtogroup AT32F407_periph_examples * @{ @@ -52,6 +53,8 @@ #define DM9162 //#define DP83848 +#define LINK_DETECTION (1) /*!< link status detection, 0: no detection, 1: detect with polling */ + #if defined (DM9162) #define PHY_ADDRESS (0x00) /*!< relative to at32 board */ #define PHY_CONTROL_REG (0x00) /*!< basic mode control register */ @@ -95,6 +98,12 @@ error_status emac_phy_register_reset(void); error_status emac_speed_config(emac_auto_negotiation_type nego, emac_duplex_type mode, emac_speed_type speed); error_status emac_phy_init(emac_control_config_type *control_para); +uint16_t link_update(void); +void ethernetif_set_link(void const *argument); +void ethernetif_notify_conn_changed(struct netif *netif); +void ethernetif_update_config(struct netif *netif); +void emac_tmr_init(void); + /** * @} */ diff --git a/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_int.h b/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/emac/http_server/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/middlewares/3rd_party/lwip_2.1.2/port/lwipopts.h b/project/at_start_f407/examples/emac/http_server/inc/lwipopts.h similarity index 96% rename from middlewares/3rd_party/lwip_2.1.2/port/lwipopts.h rename to project/at_start_f407/examples/emac/http_server/inc/lwipopts.h index e521bcfc..763ceecb 100644 --- a/middlewares/3rd_party/lwip_2.1.2/port/lwipopts.h +++ b/project/at_start_f407/examples/emac/http_server/inc/lwipopts.h @@ -35,6 +35,7 @@ //#define LWIP_TESTMODE 0 #define LWIP_IPV4 1 + //#define LWIP_TIMERS 0 //#define LWIP_CHECKSUM_ON_COPY 1 @@ -49,6 +50,7 @@ #define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET #define LWIP_NETBUF_RECVINFO 1 #define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LINK_CALLBACK 1 //#define TCPIP_THREAD_TEST /* Enable DHCP to test it, disable UDP checksum to easier inject packets */ diff --git a/project/at_start_f407/examples/emac/http_server/inc/netconf.h b/project/at_start_f407/examples/emac/http_server/inc/netconf.h index 6b0df237..0a6e3fd9 100644 --- a/project/at_start_f407/examples/emac/http_server/inc/netconf.h +++ b/project/at_start_f407/examples/emac/http_server/inc/netconf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief This file contains all the functions prototypes for the netconf.c * file. ************************************************************************** diff --git a/project/at_start_f407/examples/emac/http_server/mdk_v5/http_server.uvoptx b/project/at_start_f407/examples/emac/http_server/mdk_v5/http_server.uvoptx index 837cc9cc..054c04eb 100644 --- a/project/at_start_f407/examples/emac/http_server/mdk_v5/http_server.uvoptx +++ b/project/at_start_f407/examples/emac/http_server/mdk_v5/http_server.uvoptx @@ -359,6 +359,18 @@ 0 0 + + 3 + 15 + 1 + 0 + 0 + 0 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + at32f403a_407_tmr.c + 0 + 0 + @@ -369,7 +381,7 @@ 0 4 - 15 + 16 1 0 0 @@ -381,7 +393,7 @@ 4 - 16 + 17 2 0 0 @@ -401,7 +413,7 @@ 0 5 - 17 + 18 1 0 0 @@ -413,7 +425,7 @@ 5 - 18 + 19 1 0 0 @@ -425,7 +437,7 @@ 5 - 19 + 20 1 0 0 @@ -437,7 +449,7 @@ 5 - 20 + 21 1 0 0 @@ -449,7 +461,7 @@ 5 - 21 + 22 1 0 0 @@ -461,7 +473,7 @@ 5 - 22 + 23 1 0 0 @@ -473,7 +485,7 @@ 5 - 23 + 24 1 0 0 @@ -485,7 +497,7 @@ 5 - 24 + 25 1 0 0 @@ -497,7 +509,7 @@ 5 - 25 + 26 1 0 0 @@ -509,7 +521,7 @@ 5 - 26 + 27 1 0 0 @@ -521,7 +533,7 @@ 5 - 27 + 28 1 0 0 @@ -533,7 +545,7 @@ 5 - 28 + 29 1 0 0 @@ -545,7 +557,7 @@ 5 - 29 + 30 1 0 0 @@ -557,7 +569,7 @@ 5 - 30 + 31 1 0 0 @@ -569,7 +581,7 @@ 5 - 31 + 32 1 0 0 @@ -581,7 +593,7 @@ 5 - 32 + 33 1 0 0 @@ -593,7 +605,7 @@ 5 - 33 + 34 1 0 0 @@ -605,7 +617,7 @@ 5 - 34 + 35 1 0 0 @@ -617,7 +629,7 @@ 5 - 35 + 36 1 0 0 @@ -629,7 +641,7 @@ 5 - 36 + 37 1 0 0 @@ -641,7 +653,7 @@ 5 - 37 + 38 1 0 0 @@ -653,7 +665,7 @@ 5 - 38 + 39 1 0 0 @@ -665,7 +677,7 @@ 5 - 39 + 40 1 0 0 @@ -677,7 +689,7 @@ 5 - 40 + 41 1 0 0 @@ -689,7 +701,7 @@ 5 - 41 + 42 1 0 0 @@ -701,7 +713,7 @@ 5 - 42 + 43 1 0 0 @@ -713,7 +725,7 @@ 5 - 43 + 44 1 0 0 @@ -725,7 +737,7 @@ 5 - 44 + 45 1 0 0 @@ -737,7 +749,7 @@ 5 - 45 + 46 1 0 0 @@ -749,7 +761,7 @@ 5 - 46 + 47 1 0 0 @@ -761,7 +773,7 @@ 5 - 47 + 48 1 0 0 @@ -773,7 +785,7 @@ 5 - 48 + 49 1 0 0 @@ -785,7 +797,7 @@ 5 - 49 + 50 1 0 0 @@ -797,7 +809,7 @@ 5 - 50 + 51 1 0 0 @@ -809,7 +821,7 @@ 5 - 51 + 52 1 0 0 @@ -821,7 +833,7 @@ 5 - 52 + 53 1 0 0 @@ -833,7 +845,7 @@ 5 - 53 + 54 1 0 0 @@ -845,7 +857,7 @@ 5 - 54 + 55 1 0 0 @@ -857,7 +869,7 @@ 5 - 55 + 56 1 0 0 @@ -869,7 +881,7 @@ 5 - 56 + 57 1 0 0 @@ -889,7 +901,7 @@ 0 6 - 57 + 58 1 0 0 @@ -901,7 +913,7 @@ 6 - 58 + 59 1 0 0 @@ -921,7 +933,7 @@ 0 7 - 59 + 60 5 0 0 diff --git a/project/at_start_f407/examples/emac/http_server/mdk_v5/http_server.uvprojx b/project/at_start_f407/examples/emac/http_server/mdk_v5/http_server.uvprojx index baa8c40c..27c1fc38 100644 --- a/project/at_start_f407/examples/emac/http_server/mdk_v5/http_server.uvprojx +++ b/project/at_start_f407/examples/emac/http_server/mdk_v5/http_server.uvprojx @@ -10,7 +10,7 @@ http_server 0x4 ARM-ADS - 5060061::V5.06 update 1 (build 61)::ARMCC + 5060750::V5.06 update 6 (build 750)::.\ARMCC 0 @@ -462,6 +462,11 @@ 1 ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_pwc.c + + at32f403a_407_tmr.c + 1 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + diff --git a/project/at_start_f407/examples/emac/http_server/readme.txt b/project/at_start_f407/examples/emac/http_server/readme.txt index 9c1f83ef..b4f5d7a5 100644 --- a/project/at_start_f407/examples/emac/http_server/readme.txt +++ b/project/at_start_f407/examples/emac/http_server/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/emac/http_server/src/at32_emac.c b/project/at_start_f407/examples/emac/http_server/src/at32_emac.c index fd9ab7f2..f91de596 100644 --- a/project/at_start_f407/examples/emac/http_server/src/at32_emac.c +++ b/project/at_start_f407/examples/emac/http_server/src/at32_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief emac config program ************************************************************************** * Copyright notice & Disclaimer @@ -26,6 +26,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407_board.h" +#include "lwip/dhcp.h" #include "at32_emac.h" /** @addtogroup AT32F407_periph_examples @@ -36,6 +37,8 @@ * @{ */ +emac_control_config_type mac_control_para; + /** * @brief enable emac clock and gpio clock * @param none @@ -54,6 +57,7 @@ error_status emac_system_init(void) emac_pins_configuration(); status = emac_layer2_configuration(); + emac_tmr_init(); return status; } @@ -227,15 +231,14 @@ void emac_pins_configuration(void) */ error_status emac_layer2_configuration(void) { - emac_control_config_type mac_control_para; emac_dma_config_type dma_control_para; #ifdef MII_MODE gpio_pin_remap_config(MII_RMII_SEL_GMUX, FALSE); #elif defined RMII_MODE gpio_pin_remap_config(MII_RMII_SEL_GMUX, TRUE); #endif - //crm_clock_out_set(CRM_CLKOUT_SCLK); - //crm_clkout_div_set(CRM_CLKOUT_DIV_8); + crm_clock_out_set(CRM_CLKOUT_SCLK); + crm_clkout_div_set(CRM_CLKOUT_DIV_8); /* reset phy */ reset_phy(); @@ -476,15 +479,141 @@ error_status emac_phy_init(emac_control_config_type *control_para) { return ERROR; } - if(emac_speed_config(control_para->auto_nego, control_para->duplex_mode, control_para->fast_ethernet_speed) == ERROR) - { - return ERROR; - } emac_control_config(control_para); return SUCCESS; } +/** + * @brief updates the link states + * @param none + * @retval link state 0: disconnect, 1: connection + */ +uint16_t link_update(void) +{ + uint16_t link_data, link_state; + if(emac_phy_register_read(PHY_ADDRESS, PHY_STATUS_REG, &link_data) == ERROR) + { + return ERROR; + } + + link_state = (link_data & PHY_LINKED_STATUS_BIT)>>2; + return link_state; +} + +/** + * @brief this function sets the netif link status. + * @param netif: the network interface + * @retval none + */ +void ethernetif_set_link(void const *argument) +{ + uint16_t regvalue = 0; + struct netif *netif = (struct netif *)argument; + + /* Read PHY_BSR*/ + regvalue = link_update(); + + if(regvalue > 0) + { + at32_led_on(LED4); + at32_led_off(LED2); + } + else + { + at32_led_on(LED2); + at32_led_off(LED4); + } + /* Check whether the netif link down and the PHY link is up */ + if(!netif_is_link_up(netif) && (regvalue)) + { + /* network cable is connected */ + netif_set_link_up(netif); + } + else if(netif_is_link_up(netif) && (!regvalue)) + { + /* network cable is dis-connected */ + netif_set_link_down(netif); + } +} + +/** + * @brief This function notify user about link status changement. + * @param netif: the network interface + * @retval None + */ +void ethernetif_notify_conn_changed(struct netif *netif) +{ + /* NOTE : This is function could be implemented in user file + when the callback is needed, + */ + + if (netif_is_link_up(netif)) { + netif_set_up(netif); + +#if LWIP_DHCP + /* Creates a new DHCP client for this interface on the first call. + Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at + the predefined regular intervals after starting the client. + You can peek in the netif->dhcp struct for the actual DHCP status.*/ + dhcp_start(netif); +#endif + } + else + netif_set_down(netif); +} + +/** + * @brief Link callback function, this function is called on change of link status + * to update low level driver configuration. +* @param netif: The network interface + * @retval None + */ +void ethernetif_update_config(struct netif *netif) +{ + if(netif_is_link_up(netif)) + { + emac_speed_config(mac_control_para.auto_nego, mac_control_para.duplex_mode, mac_control_para.fast_ethernet_speed); + + delay_ms(300); + /* enable mac and dma transmission and reception */ + emac_start(); + } + else + { + /* disable mac and dma transmission and reception */ + emac_stop(); + } + + ethernetif_notify_conn_changed(netif); +} + +/** + * @brief initialize tmr6 for emac + * @param none + * @retval none + */ +void emac_tmr_init(void) +{ + crm_clocks_freq_type crm_clocks_freq_struct = {0}; + crm_periph_clock_enable(CRM_TMR6_PERIPH_CLOCK, TRUE); + + crm_clocks_freq_get(&crm_clocks_freq_struct); + /* tmr1 configuration */ + /* time base configuration */ + /* systemclock/24000/100 = 100hz */ + tmr_base_init(TMR6, 99, (crm_clocks_freq_struct.ahb_freq / 10000) - 1); + tmr_cnt_dir_set(TMR6, TMR_COUNT_UP); + + /* overflow interrupt enable */ + tmr_interrupt_enable(TMR6, TMR_OVF_INT, TRUE); + + /* tmr1 overflow interrupt nvic init */ + nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); + nvic_irq_enable(TMR6_GLOBAL_IRQn, 0, 0); + tmr_counter_enable(TMR6, TRUE); +} + /** * @} */ diff --git a/project/at_start_f407/examples/emac/http_server/src/at32f403a_407_clock.c b/project/at_start_f407/examples/emac/http_server/src/at32f403a_407_clock.c index 7ddab853..ca7d4a5b 100644 --- a/project/at_start_f407/examples/emac/http_server/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/emac/http_server/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/http_server/src/at32f403a_407_int.c b/project/at_start_f407/examples/emac/http_server/src/at32f403a_407_int.c index 1bb1690d..6fda3a4d 100644 --- a/project/at_start_f407/examples/emac/http_server/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/emac/http_server/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer @@ -131,8 +131,21 @@ void PendSV_Handler(void) */ void SysTick_Handler(void) { - /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ - time_update(); +} + +/** + * @brief this function handles timer6 overflow handler. + * @param none + * @retval none + */ +void TMR6_GLOBAL_IRQHandler(void) +{ + if(tmr_flag_get(TMR6, TMR_OVF_FLAG) != RESET) + { + /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ + time_update(); + tmr_flag_clear(TMR6, TMR_OVF_FLAG); + } } /** diff --git a/project/at_start_f407/examples/emac/http_server/src/httpd.c b/project/at_start_f407/examples/emac/http_server/src/httpd.c index 9212591f..941a9e61 100644 --- a/project/at_start_f407/examples/emac/http_server/src/httpd.c +++ b/project/at_start_f407/examples/emac/http_server/src/httpd.c @@ -2052,6 +2052,7 @@ http_recv(void *arg, struct altcp_pcb *pcb, struct pbuf *p, err_t err) } else if (strncmp(data, "GET /AT32F407LED", 16) == 0) { + pbuf_free(p); fs_open(&file, "/AT32F407LED.html"); hs->file = file.data; hs->left = file.len; diff --git a/project/at_start_f407/examples/emac/http_server/src/main.c b/project/at_start_f407/examples/emac/http_server/src/main.c index 7e9f44fd..407b1066 100644 --- a/project/at_start_f407/examples/emac/http_server/src/main.c +++ b/project/at_start_f407/examples/emac/http_server/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -75,7 +75,7 @@ int main(void) for(;;) { - + lwip_periodic_handle(local_time); } } diff --git a/project/at_start_f407/examples/emac/http_server/src/netconf.c b/project/at_start_f407/examples/emac/http_server/src/netconf.c index 38d6a574..fd2155b3 100644 --- a/project/at_start_f407/examples/emac/http_server/src/netconf.c +++ b/project/at_start_f407/examples/emac/http_server/src/netconf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief network connection configuration ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ #include "ethernetif.h" #include "netconf.h" #include "stdio.h" +#include "at32_emac.h" /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ @@ -45,6 +46,7 @@ extern volatile uint32_t local_time; struct netif netif; volatile uint32_t tcp_timer = 0; volatile uint32_t arp_timer = 0; +volatile uint32_t link_timer = 0; static uint8_t mac_address[MAC_ADDR_LENGTH] = {0, 0, 0x44, 0x45, 0x56, 1};; #if LWIP_DHCP @@ -111,16 +113,11 @@ void tcpip_stack_init(void) /* Registers the default network interface.*/ netif_set_default(&netif); -#if LWIP_DHCP - /* Creates a new DHCP client for this interface on the first call. - Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at - the predefined regular intervals after starting the client. - You can peek in the netif->dhcp struct for the actual DHCP status.*/ - dhcp_start(&netif); -#endif - /* When the netif is fully configured this function must be called.*/ netif_set_up(&netif); + + /* Set the link callback function, this function is called on change of link status*/ + netif_set_link_callback(&netif, ethernetif_update_config); } /** @@ -182,4 +179,13 @@ void lwip_periodic_handle(volatile uint32_t localtime) dhcp_coarse_tmr(); } #endif + +#if (LINK_DETECTION > 0) + /* link detection process every 500 ms */ + if (localtime - link_timer >= 500) + { + link_timer = localtime; + ethernetif_set_link(&netif); + } +#endif } diff --git a/project/at_start_f407/examples/emac/iperf/inc/at32_emac.h b/project/at_start_f407/examples/emac/iperf/inc/at32_emac.h index 2128d7d1..2b67f634 100644 --- a/project/at_start_f407/examples/emac/iperf/inc/at32_emac.h +++ b/project/at_start_f407/examples/emac/iperf/inc/at32_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of emac config program. ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407.h" +#include "netif.h" /** @addtogroup AT32F407_periph_examples * @{ @@ -52,6 +53,8 @@ #define DM9162 //#define DP83848 +#define LINK_DETECTION (1) /*!< link status detection, 0: no detection, 1: detect with polling */ + #if defined (DM9162) #define PHY_ADDRESS (0x00) /*!< relative to at32 board */ #define PHY_CONTROL_REG (0x00) /*!< basic mode control register */ @@ -95,6 +98,12 @@ error_status emac_phy_register_reset(void); error_status emac_speed_config(emac_auto_negotiation_type nego, emac_duplex_type mode, emac_speed_type speed); error_status emac_phy_init(emac_control_config_type *control_para); +uint16_t link_update(void); +void ethernetif_set_link(void const *argument); +void ethernetif_notify_conn_changed(struct netif *netif); +void ethernetif_update_config(struct netif *netif); +void emac_tmr_init(void); + /** * @} */ diff --git a/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_int.h b/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/emac/iperf/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/iperf/inc/iperf.h b/project/at_start_f407/examples/emac/iperf/inc/iperf.h index 1c302c5b..ae34874d 100644 --- a/project/at_start_f407/examples/emac/iperf/inc/iperf.h +++ b/project/at_start_f407/examples/emac/iperf/inc/iperf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iperf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iperf tool header ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/iperf/inc/lwipopts.h b/project/at_start_f407/examples/emac/iperf/inc/lwipopts.h new file mode 100644 index 00000000..763ceecb --- /dev/null +++ b/project/at_start_f407/examples/emac/iperf/inc/lwipopts.h @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the lwIP TCP/IP stack. + * + * Author: Simon Goldschmidt + * + */ +#ifndef LWIP_HDR_LWIPOPTS_H +#define LWIP_HDR_LWIPOPTS_H + +//#define LWIP_TESTMODE 0 + +#define LWIP_IPV4 1 + +//#define LWIP_TIMERS 0 + +//#define LWIP_CHECKSUM_ON_COPY 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(printfmsg) LWIP_ASSERT("TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL", 0) + +/* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */ +#define NO_SYS 1 +#define SYS_LIGHTWEIGHT_PROT 0 +#define LWIP_NETCONN !NO_SYS +#define LWIP_SOCKET !NO_SYS +#define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET +#define LWIP_NETBUF_RECVINFO 1 +#define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +//#define TCPIP_THREAD_TEST + +/* Enable DHCP to test it, disable UDP checksum to easier inject packets */ +#define LWIP_DHCP 0 + +/* Minimal changes to opt.h required for tcp unit tests: */ +/* TCP Maximum segment size. */ + +#define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */ +/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which + lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 + byte alignment -> define MEM_ALIGNMENT to 2. */ +#define MEM_ALIGNMENT 4 +#define MEM_SIZE (20*1024) +#define TCP_SND_QUEUELEN (6 * TCP_SND_BUF)/TCP_MSS +#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN +#define TCP_SND_BUF (2 * TCP_MSS) +#define TCP_WND (2 * TCP_MSS) +#define LWIP_WND_SCALE 0 +#define TCP_RCV_SCALE 0 +#define PBUF_POOL_SIZE 10 /* pbuf tests need ~200KByte */ +/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ +#define PBUF_POOL_BUFSIZE 2000 +//#define TCP_QUEUE_OOSEQ 0 + +/* ---------- TCP options ---------- */ +#define LWIP_TCP 1 +#define TCP_TTL 255 + +/* Enable IGMP and MDNS for MDNS tests */ +#define LWIP_IGMP 1 +#define LWIP_MDNS_RESPONDER 1 +#define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER) + +/* Minimal changes to opt.h required for etharp unit tests: */ +#define ETHARP_SUPPORT_STATIC_ENTRIES 1 + +#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 8) + +/* MIB2 stats are required to check IPv4 reassembly results */ +#define MIB2_STATS 1 + +/* netif tests want to test this, so enable: */ +//#define LWIP_NETIF_EXT_STATUS_CALLBACK 1 + +/* Check lwip_stats.mem.illegal instead of asserting */ +#define LWIP_MEM_ILLEGAL_FREE(msg) /* to nothing */ + +#endif /* LWIP_HDR_LWIPOPTS_H */ diff --git a/project/at_start_f407/examples/emac/iperf/inc/netconf.h b/project/at_start_f407/examples/emac/iperf/inc/netconf.h index 6b0df237..0a6e3fd9 100644 --- a/project/at_start_f407/examples/emac/iperf/inc/netconf.h +++ b/project/at_start_f407/examples/emac/iperf/inc/netconf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief This file contains all the functions prototypes for the netconf.c * file. ************************************************************************** diff --git a/project/at_start_f407/examples/emac/iperf/mdk_v5/iperf.uvoptx b/project/at_start_f407/examples/emac/iperf/mdk_v5/iperf.uvoptx index bdeb4798..5c8a971b 100644 --- a/project/at_start_f407/examples/emac/iperf/mdk_v5/iperf.uvoptx +++ b/project/at_start_f407/examples/emac/iperf/mdk_v5/iperf.uvoptx @@ -347,6 +347,18 @@ 0 0 + + 3 + 14 + 1 + 0 + 0 + 0 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + at32f403a_407_tmr.c + 0 + 0 + @@ -357,7 +369,7 @@ 0 4 - 14 + 15 1 0 0 @@ -369,7 +381,7 @@ 4 - 15 + 16 2 0 0 @@ -389,7 +401,7 @@ 0 5 - 16 + 17 1 0 0 @@ -401,7 +413,7 @@ 5 - 17 + 18 1 0 0 @@ -413,7 +425,7 @@ 5 - 18 + 19 1 0 0 @@ -425,7 +437,7 @@ 5 - 19 + 20 1 0 0 @@ -437,7 +449,7 @@ 5 - 20 + 21 1 0 0 @@ -449,7 +461,7 @@ 5 - 21 + 22 1 0 0 @@ -461,7 +473,7 @@ 5 - 22 + 23 1 0 0 @@ -473,7 +485,7 @@ 5 - 23 + 24 1 0 0 @@ -485,7 +497,7 @@ 5 - 24 + 25 1 0 0 @@ -497,7 +509,7 @@ 5 - 25 + 26 1 0 0 @@ -509,7 +521,7 @@ 5 - 26 + 27 1 0 0 @@ -521,7 +533,7 @@ 5 - 27 + 28 1 0 0 @@ -533,7 +545,7 @@ 5 - 28 + 29 1 0 0 @@ -545,7 +557,7 @@ 5 - 29 + 30 1 0 0 @@ -557,7 +569,7 @@ 5 - 30 + 31 1 0 0 @@ -569,7 +581,7 @@ 5 - 31 + 32 1 0 0 @@ -581,7 +593,7 @@ 5 - 32 + 33 1 0 0 @@ -593,7 +605,7 @@ 5 - 33 + 34 1 0 0 @@ -605,7 +617,7 @@ 5 - 34 + 35 1 0 0 @@ -617,7 +629,7 @@ 5 - 35 + 36 1 0 0 @@ -629,7 +641,7 @@ 5 - 36 + 37 1 0 0 @@ -641,7 +653,7 @@ 5 - 37 + 38 1 0 0 @@ -653,7 +665,7 @@ 5 - 38 + 39 1 0 0 @@ -665,7 +677,7 @@ 5 - 39 + 40 1 0 0 @@ -677,7 +689,7 @@ 5 - 40 + 41 1 0 0 @@ -689,7 +701,7 @@ 5 - 41 + 42 1 0 0 @@ -701,7 +713,7 @@ 5 - 42 + 43 1 0 0 @@ -713,7 +725,7 @@ 5 - 43 + 44 1 0 0 @@ -725,7 +737,7 @@ 5 - 44 + 45 1 0 0 @@ -737,7 +749,7 @@ 5 - 45 + 46 1 0 0 @@ -749,7 +761,7 @@ 5 - 46 + 47 1 0 0 @@ -761,7 +773,7 @@ 5 - 47 + 48 1 0 0 @@ -773,7 +785,7 @@ 5 - 48 + 49 1 0 0 @@ -785,7 +797,7 @@ 5 - 49 + 50 1 0 0 @@ -797,7 +809,7 @@ 5 - 50 + 51 1 0 0 @@ -809,7 +821,7 @@ 5 - 51 + 52 1 0 0 @@ -821,7 +833,7 @@ 5 - 52 + 53 1 0 0 @@ -833,7 +845,7 @@ 5 - 53 + 54 1 0 0 @@ -845,7 +857,7 @@ 5 - 54 + 55 1 0 0 @@ -857,7 +869,7 @@ 5 - 55 + 56 1 0 0 @@ -877,7 +889,7 @@ 0 6 - 56 + 57 5 0 0 diff --git a/project/at_start_f407/examples/emac/iperf/mdk_v5/iperf.uvprojx b/project/at_start_f407/examples/emac/iperf/mdk_v5/iperf.uvprojx index fae7f691..d395aac0 100644 --- a/project/at_start_f407/examples/emac/iperf/mdk_v5/iperf.uvprojx +++ b/project/at_start_f407/examples/emac/iperf/mdk_v5/iperf.uvprojx @@ -10,7 +10,7 @@ iperf 0x4 ARM-ADS - 5060061::V5.06 update 1 (build 61)::ARMCC + 5060750::V5.06 update 6 (build 750)::.\ARMCC 0 @@ -457,6 +457,11 @@ 1 ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_misc.c + + at32f403a_407_tmr.c + 1 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + diff --git a/project/at_start_f407/examples/emac/iperf/readme.txt b/project/at_start_f407/examples/emac/iperf/readme.txt index faf100c7..e61b0f74 100644 --- a/project/at_start_f407/examples/emac/iperf/readme.txt +++ b/project/at_start_f407/examples/emac/iperf/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/emac/iperf/src/at32_emac.c b/project/at_start_f407/examples/emac/iperf/src/at32_emac.c index 45a7faca..ac20a8bb 100644 --- a/project/at_start_f407/examples/emac/iperf/src/at32_emac.c +++ b/project/at_start_f407/examples/emac/iperf/src/at32_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief emac config program ************************************************************************** * Copyright notice & Disclaimer @@ -26,6 +26,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407_board.h" +#include "lwip/dhcp.h" #include "at32_emac.h" /** @addtogroup AT32F407_periph_examples @@ -36,6 +37,8 @@ * @{ */ +emac_control_config_type mac_control_para; + /** * @brief enable emac clock and gpio clock * @param none @@ -54,6 +57,7 @@ error_status emac_system_init(void) emac_pins_configuration(); status = emac_layer2_configuration(); + emac_tmr_init(); return status; } @@ -227,7 +231,6 @@ void emac_pins_configuration(void) */ error_status emac_layer2_configuration(void) { - emac_control_config_type mac_control_para; emac_dma_config_type dma_control_para; #ifdef MII_MODE gpio_pin_remap_config(MII_RMII_SEL_GMUX, FALSE); @@ -476,15 +479,141 @@ error_status emac_phy_init(emac_control_config_type *control_para) { return ERROR; } - if(emac_speed_config(control_para->auto_nego, control_para->duplex_mode, control_para->fast_ethernet_speed) == ERROR) - { - return ERROR; - } emac_control_config(control_para); return SUCCESS; } +/** + * @brief updates the link states + * @param none + * @retval link state 0: disconnect, 1: connection + */ +uint16_t link_update(void) +{ + uint16_t link_data, link_state; + if(emac_phy_register_read(PHY_ADDRESS, PHY_STATUS_REG, &link_data) == ERROR) + { + return ERROR; + } + + link_state = (link_data & PHY_LINKED_STATUS_BIT)>>2; + return link_state; +} + +/** + * @brief this function sets the netif link status. + * @param netif: the network interface + * @retval none + */ +void ethernetif_set_link(void const *argument) +{ + uint16_t regvalue = 0; + struct netif *netif = (struct netif *)argument; + + /* Read PHY_BSR*/ + regvalue = link_update(); + + if(regvalue > 0) + { + at32_led_on(LED4); + at32_led_off(LED2); + } + else + { + at32_led_on(LED2); + at32_led_off(LED4); + } + /* Check whether the netif link down and the PHY link is up */ + if(!netif_is_link_up(netif) && (regvalue)) + { + /* network cable is connected */ + netif_set_link_up(netif); + } + else if(netif_is_link_up(netif) && (!regvalue)) + { + /* network cable is dis-connected */ + netif_set_link_down(netif); + } +} + +/** + * @brief This function notify user about link status changement. + * @param netif: the network interface + * @retval None + */ +void ethernetif_notify_conn_changed(struct netif *netif) +{ + /* NOTE : This is function could be implemented in user file + when the callback is needed, + */ + + if (netif_is_link_up(netif)) { + netif_set_up(netif); + +#if LWIP_DHCP + /* Creates a new DHCP client for this interface on the first call. + Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at + the predefined regular intervals after starting the client. + You can peek in the netif->dhcp struct for the actual DHCP status.*/ + dhcp_start(netif); +#endif + } + else + netif_set_down(netif); +} + +/** + * @brief Link callback function, this function is called on change of link status + * to update low level driver configuration. +* @param netif: The network interface + * @retval None + */ +void ethernetif_update_config(struct netif *netif) +{ + if(netif_is_link_up(netif)) + { + emac_speed_config(mac_control_para.auto_nego, mac_control_para.duplex_mode, mac_control_para.fast_ethernet_speed); + + delay_ms(300); + /* enable mac and dma transmission and reception */ + emac_start(); + } + else + { + /* disable mac and dma transmission and reception */ + emac_stop(); + } + + ethernetif_notify_conn_changed(netif); +} + +/** + * @brief initialize tmr6 for emac + * @param none + * @retval none + */ +void emac_tmr_init(void) +{ + crm_clocks_freq_type crm_clocks_freq_struct = {0}; + crm_periph_clock_enable(CRM_TMR6_PERIPH_CLOCK, TRUE); + + crm_clocks_freq_get(&crm_clocks_freq_struct); + /* tmr1 configuration */ + /* time base configuration */ + /* systemclock/24000/100 = 100hz */ + tmr_base_init(TMR6, 99, (crm_clocks_freq_struct.ahb_freq / 10000) - 1); + tmr_cnt_dir_set(TMR6, TMR_COUNT_UP); + + /* overflow interrupt enable */ + tmr_interrupt_enable(TMR6, TMR_OVF_INT, TRUE); + + /* tmr1 overflow interrupt nvic init */ + nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); + nvic_irq_enable(TMR6_GLOBAL_IRQn, 0, 0); + tmr_counter_enable(TMR6, TRUE); +} + /** * @} */ diff --git a/project/at_start_f407/examples/emac/iperf/src/at32f403a_407_clock.c b/project/at_start_f407/examples/emac/iperf/src/at32f403a_407_clock.c index 7ddab853..ca7d4a5b 100644 --- a/project/at_start_f407/examples/emac/iperf/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/emac/iperf/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/iperf/src/at32f403a_407_int.c b/project/at_start_f407/examples/emac/iperf/src/at32f403a_407_int.c index 0b046274..7d43391c 100644 --- a/project/at_start_f407/examples/emac/iperf/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/emac/iperf/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer @@ -131,8 +131,21 @@ void PendSV_Handler(void) */ void SysTick_Handler(void) { - /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ - time_update(); +} + +/** + * @brief this function handles timer6 overflow handler. + * @param none + * @retval none + */ +void TMR6_GLOBAL_IRQHandler(void) +{ + if(tmr_flag_get(TMR6, TMR_OVF_FLAG) != RESET) + { + /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ + time_update(); + tmr_flag_clear(TMR6, TMR_OVF_FLAG); + } } /** diff --git a/project/at_start_f407/examples/emac/iperf/src/iperf.c b/project/at_start_f407/examples/emac/iperf/src/iperf.c index b887254c..f4a173e5 100644 --- a/project/at_start_f407/examples/emac/iperf/src/iperf.c +++ b/project/at_start_f407/examples/emac/iperf/src/iperf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iperf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iperf tool ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/iperf/src/main.c b/project/at_start_f407/examples/emac/iperf/src/main.c index 352852d7..5c41f97a 100644 --- a/project/at_start_f407/examples/emac/iperf/src/main.c +++ b/project/at_start_f407/examples/emac/iperf/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -72,12 +72,7 @@ int main(void) for(;;) { - at32_led_toggle(LED2); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED3); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED4); - delay_ms(g_speed * DELAY); + lwip_periodic_handle(local_time); } } diff --git a/project/at_start_f407/examples/emac/iperf/src/netconf.c b/project/at_start_f407/examples/emac/iperf/src/netconf.c index 38d6a574..fd2155b3 100644 --- a/project/at_start_f407/examples/emac/iperf/src/netconf.c +++ b/project/at_start_f407/examples/emac/iperf/src/netconf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief network connection configuration ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ #include "ethernetif.h" #include "netconf.h" #include "stdio.h" +#include "at32_emac.h" /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ @@ -45,6 +46,7 @@ extern volatile uint32_t local_time; struct netif netif; volatile uint32_t tcp_timer = 0; volatile uint32_t arp_timer = 0; +volatile uint32_t link_timer = 0; static uint8_t mac_address[MAC_ADDR_LENGTH] = {0, 0, 0x44, 0x45, 0x56, 1};; #if LWIP_DHCP @@ -111,16 +113,11 @@ void tcpip_stack_init(void) /* Registers the default network interface.*/ netif_set_default(&netif); -#if LWIP_DHCP - /* Creates a new DHCP client for this interface on the first call. - Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at - the predefined regular intervals after starting the client. - You can peek in the netif->dhcp struct for the actual DHCP status.*/ - dhcp_start(&netif); -#endif - /* When the netif is fully configured this function must be called.*/ netif_set_up(&netif); + + /* Set the link callback function, this function is called on change of link status*/ + netif_set_link_callback(&netif, ethernetif_update_config); } /** @@ -182,4 +179,13 @@ void lwip_periodic_handle(volatile uint32_t localtime) dhcp_coarse_tmr(); } #endif + +#if (LINK_DETECTION > 0) + /* link detection process every 500 ms */ + if (localtime - link_timer >= 500) + { + link_timer = localtime; + ethernetif_set_link(&netif); + } +#endif } diff --git a/project/at_start_f407/examples/emac/tcp_client/inc/at32_emac.h b/project/at_start_f407/examples/emac/tcp_client/inc/at32_emac.h index f0867df5..6e9849ba 100644 --- a/project/at_start_f407/examples/emac/tcp_client/inc/at32_emac.h +++ b/project/at_start_f407/examples/emac/tcp_client/inc/at32_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of emac config program. ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407.h" +#include "netif.h" /** @addtogroup AT32F407_periph_examples * @{ @@ -52,6 +53,10 @@ #define DM9162 //#define DP83848 +#define LINK_DETECTION (1) /*!< link status detection, 0: no detection, 1: detect with polling */ + +#define TCP_CLIENT_TEST_DATA "tcp client experiment!\n" + #if defined (DM9162) #define PHY_ADDRESS (0x00) /*!< relative to at32 board */ #define PHY_CONTROL_REG (0x00) /*!< basic mode control register */ @@ -95,6 +100,12 @@ error_status emac_phy_register_reset(void); error_status emac_speed_config(emac_auto_negotiation_type nego, emac_duplex_type mode, emac_speed_type speed); error_status emac_phy_init(emac_control_config_type *control_para); +uint16_t link_update(void); +void ethernetif_set_link(void const *argument); +void ethernetif_notify_conn_changed(struct netif *netif); +void ethernetif_update_config(struct netif *netif); +void emac_tmr_init(void); + /** * @} */ diff --git a/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_int.h b/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/emac/tcp_client/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_client/inc/lwipopts.h b/project/at_start_f407/examples/emac/tcp_client/inc/lwipopts.h new file mode 100644 index 00000000..763ceecb --- /dev/null +++ b/project/at_start_f407/examples/emac/tcp_client/inc/lwipopts.h @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the lwIP TCP/IP stack. + * + * Author: Simon Goldschmidt + * + */ +#ifndef LWIP_HDR_LWIPOPTS_H +#define LWIP_HDR_LWIPOPTS_H + +//#define LWIP_TESTMODE 0 + +#define LWIP_IPV4 1 + +//#define LWIP_TIMERS 0 + +//#define LWIP_CHECKSUM_ON_COPY 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(printfmsg) LWIP_ASSERT("TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL", 0) + +/* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */ +#define NO_SYS 1 +#define SYS_LIGHTWEIGHT_PROT 0 +#define LWIP_NETCONN !NO_SYS +#define LWIP_SOCKET !NO_SYS +#define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET +#define LWIP_NETBUF_RECVINFO 1 +#define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +//#define TCPIP_THREAD_TEST + +/* Enable DHCP to test it, disable UDP checksum to easier inject packets */ +#define LWIP_DHCP 0 + +/* Minimal changes to opt.h required for tcp unit tests: */ +/* TCP Maximum segment size. */ + +#define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */ +/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which + lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 + byte alignment -> define MEM_ALIGNMENT to 2. */ +#define MEM_ALIGNMENT 4 +#define MEM_SIZE (20*1024) +#define TCP_SND_QUEUELEN (6 * TCP_SND_BUF)/TCP_MSS +#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN +#define TCP_SND_BUF (2 * TCP_MSS) +#define TCP_WND (2 * TCP_MSS) +#define LWIP_WND_SCALE 0 +#define TCP_RCV_SCALE 0 +#define PBUF_POOL_SIZE 10 /* pbuf tests need ~200KByte */ +/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ +#define PBUF_POOL_BUFSIZE 2000 +//#define TCP_QUEUE_OOSEQ 0 + +/* ---------- TCP options ---------- */ +#define LWIP_TCP 1 +#define TCP_TTL 255 + +/* Enable IGMP and MDNS for MDNS tests */ +#define LWIP_IGMP 1 +#define LWIP_MDNS_RESPONDER 1 +#define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER) + +/* Minimal changes to opt.h required for etharp unit tests: */ +#define ETHARP_SUPPORT_STATIC_ENTRIES 1 + +#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 8) + +/* MIB2 stats are required to check IPv4 reassembly results */ +#define MIB2_STATS 1 + +/* netif tests want to test this, so enable: */ +//#define LWIP_NETIF_EXT_STATUS_CALLBACK 1 + +/* Check lwip_stats.mem.illegal instead of asserting */ +#define LWIP_MEM_ILLEGAL_FREE(msg) /* to nothing */ + +#endif /* LWIP_HDR_LWIPOPTS_H */ diff --git a/project/at_start_f407/examples/emac/tcp_client/inc/netconf.h b/project/at_start_f407/examples/emac/tcp_client/inc/netconf.h index 6b0df237..0a6e3fd9 100644 --- a/project/at_start_f407/examples/emac/tcp_client/inc/netconf.h +++ b/project/at_start_f407/examples/emac/tcp_client/inc/netconf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief This file contains all the functions prototypes for the netconf.c * file. ************************************************************************** diff --git a/project/at_start_f407/examples/emac/tcp_client/inc/tcp_client.h b/project/at_start_f407/examples/emac/tcp_client/inc/tcp_client.h index c5f9eec2..9ee5074f 100644 --- a/project/at_start_f407/examples/emac/tcp_client/inc/tcp_client.h +++ b/project/at_start_f407/examples/emac/tcp_client/inc/tcp_client.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tcp_client.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tcp client header ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_client/mdk_v5/tcp_client.uvoptx b/project/at_start_f407/examples/emac/tcp_client/mdk_v5/tcp_client.uvoptx index 06840a69..84e2a45e 100644 --- a/project/at_start_f407/examples/emac/tcp_client/mdk_v5/tcp_client.uvoptx +++ b/project/at_start_f407/examples/emac/tcp_client/mdk_v5/tcp_client.uvoptx @@ -347,6 +347,18 @@ 0 0 + + 3 + 14 + 1 + 0 + 0 + 0 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + at32f403a_407_tmr.c + 0 + 0 + @@ -357,7 +369,7 @@ 0 4 - 14 + 15 1 0 0 @@ -369,7 +381,7 @@ 4 - 15 + 16 2 0 0 @@ -389,7 +401,7 @@ 0 5 - 16 + 17 1 0 0 @@ -401,7 +413,7 @@ 5 - 17 + 18 1 0 0 @@ -413,7 +425,7 @@ 5 - 18 + 19 1 0 0 @@ -425,7 +437,7 @@ 5 - 19 + 20 1 0 0 @@ -437,7 +449,7 @@ 5 - 20 + 21 1 0 0 @@ -449,7 +461,7 @@ 5 - 21 + 22 1 0 0 @@ -461,7 +473,7 @@ 5 - 22 + 23 1 0 0 @@ -473,7 +485,7 @@ 5 - 23 + 24 1 0 0 @@ -485,7 +497,7 @@ 5 - 24 + 25 1 0 0 @@ -497,7 +509,7 @@ 5 - 25 + 26 1 0 0 @@ -509,7 +521,7 @@ 5 - 26 + 27 1 0 0 @@ -521,7 +533,7 @@ 5 - 27 + 28 1 0 0 @@ -533,7 +545,7 @@ 5 - 28 + 29 1 0 0 @@ -545,7 +557,7 @@ 5 - 29 + 30 1 0 0 @@ -557,7 +569,7 @@ 5 - 30 + 31 1 0 0 @@ -569,7 +581,7 @@ 5 - 31 + 32 1 0 0 @@ -581,7 +593,7 @@ 5 - 32 + 33 1 0 0 @@ -593,7 +605,7 @@ 5 - 33 + 34 1 0 0 @@ -605,7 +617,7 @@ 5 - 34 + 35 1 0 0 @@ -617,7 +629,7 @@ 5 - 35 + 36 1 0 0 @@ -629,7 +641,7 @@ 5 - 36 + 37 1 0 0 @@ -641,7 +653,7 @@ 5 - 37 + 38 1 0 0 @@ -653,7 +665,7 @@ 5 - 38 + 39 1 0 0 @@ -665,7 +677,7 @@ 5 - 39 + 40 1 0 0 @@ -677,7 +689,7 @@ 5 - 40 + 41 1 0 0 @@ -689,7 +701,7 @@ 5 - 41 + 42 1 0 0 @@ -701,7 +713,7 @@ 5 - 42 + 43 1 0 0 @@ -713,7 +725,7 @@ 5 - 43 + 44 1 0 0 @@ -725,7 +737,7 @@ 5 - 44 + 45 1 0 0 @@ -737,7 +749,7 @@ 5 - 45 + 46 1 0 0 @@ -749,7 +761,7 @@ 5 - 46 + 47 1 0 0 @@ -761,7 +773,7 @@ 5 - 47 + 48 1 0 0 @@ -773,7 +785,7 @@ 5 - 48 + 49 1 0 0 @@ -785,7 +797,7 @@ 5 - 49 + 50 1 0 0 @@ -797,7 +809,7 @@ 5 - 50 + 51 1 0 0 @@ -809,7 +821,7 @@ 5 - 51 + 52 1 0 0 @@ -821,7 +833,7 @@ 5 - 52 + 53 1 0 0 @@ -833,7 +845,7 @@ 5 - 53 + 54 1 0 0 @@ -845,7 +857,7 @@ 5 - 54 + 55 1 0 0 @@ -857,7 +869,7 @@ 5 - 55 + 56 1 0 0 @@ -877,7 +889,7 @@ 0 6 - 56 + 57 5 0 0 diff --git a/project/at_start_f407/examples/emac/tcp_client/mdk_v5/tcp_client.uvprojx b/project/at_start_f407/examples/emac/tcp_client/mdk_v5/tcp_client.uvprojx index 7dc7cfda..58ad1326 100644 --- a/project/at_start_f407/examples/emac/tcp_client/mdk_v5/tcp_client.uvprojx +++ b/project/at_start_f407/examples/emac/tcp_client/mdk_v5/tcp_client.uvprojx @@ -10,7 +10,7 @@ tcp_client 0x4 ARM-ADS - 5060061::V5.06 update 1 (build 61)::ARMCC + 5060750::V5.06 update 6 (build 750)::.\ARMCC 0 @@ -457,6 +457,11 @@ 1 ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_misc.c + + at32f403a_407_tmr.c + 1 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + diff --git a/project/at_start_f407/examples/emac/tcp_client/readme.txt b/project/at_start_f407/examples/emac/tcp_client/readme.txt index b74c68c1..c9d7169d 100644 --- a/project/at_start_f407/examples/emac/tcp_client/readme.txt +++ b/project/at_start_f407/examples/emac/tcp_client/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/emac/tcp_client/src/at32_emac.c b/project/at_start_f407/examples/emac/tcp_client/src/at32_emac.c index a6a0e3e2..277e42b1 100644 --- a/project/at_start_f407/examples/emac/tcp_client/src/at32_emac.c +++ b/project/at_start_f407/examples/emac/tcp_client/src/at32_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief emac config program ************************************************************************** * Copyright notice & Disclaimer @@ -26,6 +26,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407_board.h" +#include "lwip/dhcp.h" #include "at32_emac.h" /** @addtogroup AT32F407_periph_examples @@ -36,6 +37,8 @@ * @{ */ +emac_control_config_type mac_control_para; + /** * @brief enable emac clock and gpio clock * @param none @@ -54,6 +57,7 @@ error_status emac_system_init(void) emac_pins_configuration(); status = emac_layer2_configuration(); + emac_tmr_init(); return status; } @@ -227,7 +231,6 @@ void emac_pins_configuration(void) */ error_status emac_layer2_configuration(void) { - emac_control_config_type mac_control_para; emac_dma_config_type dma_control_para; #ifdef MII_MODE gpio_pin_remap_config(MII_RMII_SEL_GMUX, FALSE); @@ -476,15 +479,141 @@ error_status emac_phy_init(emac_control_config_type *control_para) { return ERROR; } - if(emac_speed_config(control_para->auto_nego, control_para->duplex_mode, control_para->fast_ethernet_speed) == ERROR) - { - return ERROR; - } emac_control_config(control_para); return SUCCESS; } +/** + * @brief updates the link states + * @param none + * @retval link state 0: disconnect, 1: connection + */ +uint16_t link_update(void) +{ + uint16_t link_data, link_state; + if(emac_phy_register_read(PHY_ADDRESS, PHY_STATUS_REG, &link_data) == ERROR) + { + return ERROR; + } + + link_state = (link_data & PHY_LINKED_STATUS_BIT)>>2; + return link_state; +} + +/** + * @brief this function sets the netif link status. + * @param netif: the network interface + * @retval none + */ +void ethernetif_set_link(void const *argument) +{ + uint16_t regvalue = 0; + struct netif *netif = (struct netif *)argument; + + /* Read PHY_BSR*/ + regvalue = link_update(); + + if(regvalue > 0) + { + at32_led_on(LED4); + at32_led_off(LED2); + } + else + { + at32_led_on(LED2); + at32_led_off(LED4); + } + /* Check whether the netif link down and the PHY link is up */ + if(!netif_is_link_up(netif) && (regvalue)) + { + /* network cable is connected */ + netif_set_link_up(netif); + } + else if(netif_is_link_up(netif) && (!regvalue)) + { + /* network cable is dis-connected */ + netif_set_link_down(netif); + } +} + +/** + * @brief This function notify user about link status changement. + * @param netif: the network interface + * @retval None + */ +void ethernetif_notify_conn_changed(struct netif *netif) +{ + /* NOTE : This is function could be implemented in user file + when the callback is needed, + */ + + if (netif_is_link_up(netif)) { + netif_set_up(netif); + +#if LWIP_DHCP + /* Creates a new DHCP client for this interface on the first call. + Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at + the predefined regular intervals after starting the client. + You can peek in the netif->dhcp struct for the actual DHCP status.*/ + dhcp_start(netif); +#endif + } + else + netif_set_down(netif); +} + +/** + * @brief Link callback function, this function is called on change of link status + * to update low level driver configuration. +* @param netif: The network interface + * @retval None + */ +void ethernetif_update_config(struct netif *netif) +{ + if(netif_is_link_up(netif)) + { + emac_speed_config(mac_control_para.auto_nego, mac_control_para.duplex_mode, mac_control_para.fast_ethernet_speed); + + delay_ms(300); + /* enable mac and dma transmission and reception */ + emac_start(); + } + else + { + /* disable mac and dma transmission and reception */ + emac_stop(); + } + + ethernetif_notify_conn_changed(netif); +} + +/** + * @brief initialize tmr6 for emac + * @param none + * @retval none + */ +void emac_tmr_init(void) +{ + crm_clocks_freq_type crm_clocks_freq_struct = {0}; + crm_periph_clock_enable(CRM_TMR6_PERIPH_CLOCK, TRUE); + + crm_clocks_freq_get(&crm_clocks_freq_struct); + /* tmr1 configuration */ + /* time base configuration */ + /* systemclock/24000/100 = 100hz */ + tmr_base_init(TMR6, 99, (crm_clocks_freq_struct.ahb_freq / 10000) - 1); + tmr_cnt_dir_set(TMR6, TMR_COUNT_UP); + + /* overflow interrupt enable */ + tmr_interrupt_enable(TMR6, TMR_OVF_INT, TRUE); + + /* tmr1 overflow interrupt nvic init */ + nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); + nvic_irq_enable(TMR6_GLOBAL_IRQn, 0, 0); + tmr_counter_enable(TMR6, TRUE); +} + /** * @} */ diff --git a/project/at_start_f407/examples/emac/tcp_client/src/at32f403a_407_clock.c b/project/at_start_f407/examples/emac/tcp_client/src/at32f403a_407_clock.c index 7ddab853..ca7d4a5b 100644 --- a/project/at_start_f407/examples/emac/tcp_client/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/emac/tcp_client/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_client/src/at32f403a_407_int.c b/project/at_start_f407/examples/emac/tcp_client/src/at32f403a_407_int.c index 4e990b1c..315d9cdb 100644 --- a/project/at_start_f407/examples/emac/tcp_client/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/emac/tcp_client/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer @@ -131,8 +131,21 @@ void PendSV_Handler(void) */ void SysTick_Handler(void) { - /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ - time_update(); +} + +/** + * @brief this function handles timer6 overflow handler. + * @param none + * @retval none + */ +void TMR6_GLOBAL_IRQHandler(void) +{ + if(tmr_flag_get(TMR6, TMR_OVF_FLAG) != RESET) + { + /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ + time_update(); + tmr_flag_clear(TMR6, TMR_OVF_FLAG); + } } /** diff --git a/project/at_start_f407/examples/emac/tcp_client/src/main.c b/project/at_start_f407/examples/emac/tcp_client/src/main.c index a10482ea..d4631b2a 100644 --- a/project/at_start_f407/examples/emac/tcp_client/src/main.c +++ b/project/at_start_f407/examples/emac/tcp_client/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -42,7 +42,6 @@ #define FAST 1 #define SLOW 4 -#define TCP_CLIENT_TEST_DATA "tcp client experiment!\n" uint8_t g_speed = FAST; volatile uint32_t local_time = 0; @@ -53,7 +52,6 @@ volatile uint32_t local_time = 0; */ int main(void) { - struct tcp_pcb *pcb; error_status status; system_clock_config(); @@ -74,21 +72,7 @@ int main(void) for(;;) { - pcb = check_tcp_connect(); - - if(pcb != NULL) - { - tcp_client_send_data(pcb, TCP_CLIENT_TEST_DATA, sizeof(TCP_CLIENT_TEST_DATA)); //Send data to TCP server actively - } - - at32_led_toggle(LED2); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED3); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED4); - delay_ms(g_speed * DELAY); - - delay_sec(1); + lwip_periodic_handle(local_time); } } diff --git a/project/at_start_f407/examples/emac/tcp_client/src/netconf.c b/project/at_start_f407/examples/emac/tcp_client/src/netconf.c index 38d6a574..d52b4f72 100644 --- a/project/at_start_f407/examples/emac/tcp_client/src/netconf.c +++ b/project/at_start_f407/examples/emac/tcp_client/src/netconf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief network connection configuration ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,8 @@ #include "ethernetif.h" #include "netconf.h" #include "stdio.h" +#include "at32_emac.h" +#include "tcp_client.h" /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ @@ -43,8 +45,11 @@ /* Private variables ---------------------------------------------------------*/ extern volatile uint32_t local_time; struct netif netif; +struct tcp_pcb *pcb; volatile uint32_t tcp_timer = 0; volatile uint32_t arp_timer = 0; +volatile uint32_t link_timer = 0; +volatile uint32_t tcp_send_timer = 0; static uint8_t mac_address[MAC_ADDR_LENGTH] = {0, 0, 0x44, 0x45, 0x56, 1};; #if LWIP_DHCP @@ -111,16 +116,11 @@ void tcpip_stack_init(void) /* Registers the default network interface.*/ netif_set_default(&netif); -#if LWIP_DHCP - /* Creates a new DHCP client for this interface on the first call. - Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at - the predefined regular intervals after starting the client. - You can peek in the netif->dhcp struct for the actual DHCP status.*/ - dhcp_start(&netif); -#endif - /* When the netif is fully configured this function must be called.*/ netif_set_up(&netif); + + /* Set the link callback function, this function is called on change of link status*/ + netif_set_link_callback(&netif, ethernetif_update_config); } /** @@ -154,7 +154,6 @@ void time_update(void) */ void lwip_periodic_handle(volatile uint32_t localtime) { - /* TCP periodic process every 250 ms */ if (localtime - tcp_timer >= TCP_TMR_INTERVAL) { @@ -182,4 +181,24 @@ void lwip_periodic_handle(volatile uint32_t localtime) dhcp_coarse_tmr(); } #endif + +#if (LINK_DETECTION > 0) + /* link detection process every 500 ms */ + if (localtime - link_timer >= 500) + { + link_timer = localtime; + ethernetif_set_link(&netif); + } +#endif + + if (localtime - tcp_send_timer >= 1000) + { + tcp_send_timer = localtime; + pcb = check_tcp_connect(); + + if(pcb != NULL) + { + tcp_client_send_data(pcb, (unsigned char *)TCP_CLIENT_TEST_DATA, sizeof(TCP_CLIENT_TEST_DATA)); //Send data to TCP server actively + } + } } diff --git a/project/at_start_f407/examples/emac/tcp_client/src/tcp_client.c b/project/at_start_f407/examples/emac/tcp_client/src/tcp_client.c index a224a15d..7fe3a9e0 100644 --- a/project/at_start_f407/examples/emac/tcp_client/src/tcp_client.c +++ b/project/at_start_f407/examples/emac/tcp_client/src/tcp_client.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tcp_client.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief implement tcp client ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_server/inc/at32_emac.h b/project/at_start_f407/examples/emac/tcp_server/inc/at32_emac.h index d882e0fa..998a1090 100644 --- a/project/at_start_f407/examples/emac/tcp_server/inc/at32_emac.h +++ b/project/at_start_f407/examples/emac/tcp_server/inc/at32_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of emac config program. ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407.h" +#include "netif.h" /** @addtogroup AT32F407_periph_examples * @{ @@ -52,6 +53,8 @@ #define DM9162 //#define DP83848 +#define LINK_DETECTION (1) /*!< link status detection, 0: no detection, 1: detect with polling */ + #if defined (DM9162) #define PHY_ADDRESS (0x00) /*!< relative to at32 board */ #define PHY_CONTROL_REG (0x00) /*!< basic mode control register */ @@ -95,6 +98,12 @@ error_status emac_phy_register_reset(void); error_status emac_speed_config(emac_auto_negotiation_type nego, emac_duplex_type mode, emac_speed_type speed); error_status emac_phy_init(emac_control_config_type *control_para); +uint16_t link_update(void); +void ethernetif_set_link(void const *argument); +void ethernetif_notify_conn_changed(struct netif *netif); +void ethernetif_update_config(struct netif *netif); +void emac_tmr_init(void); + /** * @} */ diff --git a/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_int.h b/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/emac/tcp_server/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_server/inc/lwipopts.h b/project/at_start_f407/examples/emac/tcp_server/inc/lwipopts.h new file mode 100644 index 00000000..763ceecb --- /dev/null +++ b/project/at_start_f407/examples/emac/tcp_server/inc/lwipopts.h @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the lwIP TCP/IP stack. + * + * Author: Simon Goldschmidt + * + */ +#ifndef LWIP_HDR_LWIPOPTS_H +#define LWIP_HDR_LWIPOPTS_H + +//#define LWIP_TESTMODE 0 + +#define LWIP_IPV4 1 + +//#define LWIP_TIMERS 0 + +//#define LWIP_CHECKSUM_ON_COPY 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(printfmsg) LWIP_ASSERT("TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL", 0) + +/* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */ +#define NO_SYS 1 +#define SYS_LIGHTWEIGHT_PROT 0 +#define LWIP_NETCONN !NO_SYS +#define LWIP_SOCKET !NO_SYS +#define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET +#define LWIP_NETBUF_RECVINFO 1 +#define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +//#define TCPIP_THREAD_TEST + +/* Enable DHCP to test it, disable UDP checksum to easier inject packets */ +#define LWIP_DHCP 0 + +/* Minimal changes to opt.h required for tcp unit tests: */ +/* TCP Maximum segment size. */ + +#define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */ +/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which + lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 + byte alignment -> define MEM_ALIGNMENT to 2. */ +#define MEM_ALIGNMENT 4 +#define MEM_SIZE (20*1024) +#define TCP_SND_QUEUELEN (6 * TCP_SND_BUF)/TCP_MSS +#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN +#define TCP_SND_BUF (2 * TCP_MSS) +#define TCP_WND (2 * TCP_MSS) +#define LWIP_WND_SCALE 0 +#define TCP_RCV_SCALE 0 +#define PBUF_POOL_SIZE 10 /* pbuf tests need ~200KByte */ +/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ +#define PBUF_POOL_BUFSIZE 2000 +//#define TCP_QUEUE_OOSEQ 0 + +/* ---------- TCP options ---------- */ +#define LWIP_TCP 1 +#define TCP_TTL 255 + +/* Enable IGMP and MDNS for MDNS tests */ +#define LWIP_IGMP 1 +#define LWIP_MDNS_RESPONDER 1 +#define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER) + +/* Minimal changes to opt.h required for etharp unit tests: */ +#define ETHARP_SUPPORT_STATIC_ENTRIES 1 + +#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 8) + +/* MIB2 stats are required to check IPv4 reassembly results */ +#define MIB2_STATS 1 + +/* netif tests want to test this, so enable: */ +//#define LWIP_NETIF_EXT_STATUS_CALLBACK 1 + +/* Check lwip_stats.mem.illegal instead of asserting */ +#define LWIP_MEM_ILLEGAL_FREE(msg) /* to nothing */ + +#endif /* LWIP_HDR_LWIPOPTS_H */ diff --git a/project/at_start_f407/examples/emac/tcp_server/inc/netconf.h b/project/at_start_f407/examples/emac/tcp_server/inc/netconf.h index 6b0df237..0a6e3fd9 100644 --- a/project/at_start_f407/examples/emac/tcp_server/inc/netconf.h +++ b/project/at_start_f407/examples/emac/tcp_server/inc/netconf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief This file contains all the functions prototypes for the netconf.c * file. ************************************************************************** diff --git a/project/at_start_f407/examples/emac/tcp_server/inc/tcp_server.h b/project/at_start_f407/examples/emac/tcp_server/inc/tcp_server.h index 98426ef7..868a6bad 100644 --- a/project/at_start_f407/examples/emac/tcp_server/inc/tcp_server.h +++ b/project/at_start_f407/examples/emac/tcp_server/inc/tcp_server.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tcp_server.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tcp server header ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_server/mdk_v5/tcp_server.uvoptx b/project/at_start_f407/examples/emac/tcp_server/mdk_v5/tcp_server.uvoptx index 92536f39..7f4a1fa9 100644 --- a/project/at_start_f407/examples/emac/tcp_server/mdk_v5/tcp_server.uvoptx +++ b/project/at_start_f407/examples/emac/tcp_server/mdk_v5/tcp_server.uvoptx @@ -347,6 +347,18 @@ 0 0 + + 3 + 14 + 1 + 0 + 0 + 0 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + at32f403a_407_tmr.c + 0 + 0 + @@ -357,7 +369,7 @@ 0 4 - 14 + 15 1 0 0 @@ -369,7 +381,7 @@ 4 - 15 + 16 2 0 0 @@ -389,7 +401,7 @@ 0 5 - 16 + 17 1 0 0 @@ -401,7 +413,7 @@ 5 - 17 + 18 1 0 0 @@ -413,7 +425,7 @@ 5 - 18 + 19 1 0 0 @@ -425,7 +437,7 @@ 5 - 19 + 20 1 0 0 @@ -437,7 +449,7 @@ 5 - 20 + 21 1 0 0 @@ -449,7 +461,7 @@ 5 - 21 + 22 1 0 0 @@ -461,7 +473,7 @@ 5 - 22 + 23 1 0 0 @@ -473,7 +485,7 @@ 5 - 23 + 24 1 0 0 @@ -485,7 +497,7 @@ 5 - 24 + 25 1 0 0 @@ -497,7 +509,7 @@ 5 - 25 + 26 1 0 0 @@ -509,7 +521,7 @@ 5 - 26 + 27 1 0 0 @@ -521,7 +533,7 @@ 5 - 27 + 28 1 0 0 @@ -533,7 +545,7 @@ 5 - 28 + 29 1 0 0 @@ -545,7 +557,7 @@ 5 - 29 + 30 1 0 0 @@ -557,7 +569,7 @@ 5 - 30 + 31 1 0 0 @@ -569,7 +581,7 @@ 5 - 31 + 32 1 0 0 @@ -581,7 +593,7 @@ 5 - 32 + 33 1 0 0 @@ -593,7 +605,7 @@ 5 - 33 + 34 1 0 0 @@ -605,7 +617,7 @@ 5 - 34 + 35 1 0 0 @@ -617,7 +629,7 @@ 5 - 35 + 36 1 0 0 @@ -629,7 +641,7 @@ 5 - 36 + 37 1 0 0 @@ -641,7 +653,7 @@ 5 - 37 + 38 1 0 0 @@ -653,7 +665,7 @@ 5 - 38 + 39 1 0 0 @@ -665,7 +677,7 @@ 5 - 39 + 40 1 0 0 @@ -677,7 +689,7 @@ 5 - 40 + 41 1 0 0 @@ -689,7 +701,7 @@ 5 - 41 + 42 1 0 0 @@ -701,7 +713,7 @@ 5 - 42 + 43 1 0 0 @@ -713,7 +725,7 @@ 5 - 43 + 44 1 0 0 @@ -725,7 +737,7 @@ 5 - 44 + 45 1 0 0 @@ -737,7 +749,7 @@ 5 - 45 + 46 1 0 0 @@ -749,7 +761,7 @@ 5 - 46 + 47 1 0 0 @@ -761,7 +773,7 @@ 5 - 47 + 48 1 0 0 @@ -773,7 +785,7 @@ 5 - 48 + 49 1 0 0 @@ -785,7 +797,7 @@ 5 - 49 + 50 1 0 0 @@ -797,7 +809,7 @@ 5 - 50 + 51 1 0 0 @@ -809,7 +821,7 @@ 5 - 51 + 52 1 0 0 @@ -821,7 +833,7 @@ 5 - 52 + 53 1 0 0 @@ -833,7 +845,7 @@ 5 - 53 + 54 1 0 0 @@ -845,7 +857,7 @@ 5 - 54 + 55 1 0 0 @@ -857,7 +869,7 @@ 5 - 55 + 56 1 0 0 @@ -877,7 +889,7 @@ 0 6 - 56 + 57 5 0 0 diff --git a/project/at_start_f407/examples/emac/tcp_server/mdk_v5/tcp_server.uvprojx b/project/at_start_f407/examples/emac/tcp_server/mdk_v5/tcp_server.uvprojx index 7748270e..89de3ab0 100644 --- a/project/at_start_f407/examples/emac/tcp_server/mdk_v5/tcp_server.uvprojx +++ b/project/at_start_f407/examples/emac/tcp_server/mdk_v5/tcp_server.uvprojx @@ -10,7 +10,7 @@ tcp_server 0x4 ARM-ADS - 5060061::V5.06 update 1 (build 61)::ARMCC + 5060750::V5.06 update 6 (build 750)::.\ARMCC 0 @@ -457,6 +457,11 @@ 1 ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_misc.c + + at32f403a_407_tmr.c + 1 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + diff --git a/project/at_start_f407/examples/emac/tcp_server/readme.txt b/project/at_start_f407/examples/emac/tcp_server/readme.txt index b84a4686..518da70d 100644 --- a/project/at_start_f407/examples/emac/tcp_server/readme.txt +++ b/project/at_start_f407/examples/emac/tcp_server/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/emac/tcp_server/src/at32_emac.c b/project/at_start_f407/examples/emac/tcp_server/src/at32_emac.c index a90f4968..a203fd51 100644 --- a/project/at_start_f407/examples/emac/tcp_server/src/at32_emac.c +++ b/project/at_start_f407/examples/emac/tcp_server/src/at32_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief emac config program ************************************************************************** * Copyright notice & Disclaimer @@ -26,6 +26,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407_board.h" +#include "lwip/dhcp.h" #include "at32_emac.h" /** @addtogroup AT32F407_periph_examples @@ -36,6 +37,8 @@ * @{ */ +emac_control_config_type mac_control_para; + /** * @brief enable emac clock and gpio clock * @param none @@ -54,6 +57,7 @@ error_status emac_system_init(void) emac_pins_configuration(); status = emac_layer2_configuration(); + emac_tmr_init(); return status; } @@ -227,7 +231,6 @@ void emac_pins_configuration(void) */ error_status emac_layer2_configuration(void) { - emac_control_config_type mac_control_para; emac_dma_config_type dma_control_para; #ifdef MII_MODE gpio_pin_remap_config(MII_RMII_SEL_GMUX, FALSE); @@ -476,15 +479,141 @@ error_status emac_phy_init(emac_control_config_type *control_para) { return ERROR; } - if(emac_speed_config(control_para->auto_nego, control_para->duplex_mode, control_para->fast_ethernet_speed) == ERROR) - { - return ERROR; - } emac_control_config(control_para); return SUCCESS; } +/** + * @brief updates the link states + * @param none + * @retval link state 0: disconnect, 1: connection + */ +uint16_t link_update(void) +{ + uint16_t link_data, link_state; + if(emac_phy_register_read(PHY_ADDRESS, PHY_STATUS_REG, &link_data) == ERROR) + { + return ERROR; + } + + link_state = (link_data & PHY_LINKED_STATUS_BIT)>>2; + return link_state; +} + +/** + * @brief this function sets the netif link status. + * @param netif: the network interface + * @retval none + */ +void ethernetif_set_link(void const *argument) +{ + uint16_t regvalue = 0; + struct netif *netif = (struct netif *)argument; + + /* Read PHY_BSR*/ + regvalue = link_update(); + + if(regvalue > 0) + { + at32_led_on(LED4); + at32_led_off(LED2); + } + else + { + at32_led_on(LED2); + at32_led_off(LED4); + } + /* Check whether the netif link down and the PHY link is up */ + if(!netif_is_link_up(netif) && (regvalue)) + { + /* network cable is connected */ + netif_set_link_up(netif); + } + else if(netif_is_link_up(netif) && (!regvalue)) + { + /* network cable is dis-connected */ + netif_set_link_down(netif); + } +} + +/** + * @brief This function notify user about link status changement. + * @param netif: the network interface + * @retval None + */ +void ethernetif_notify_conn_changed(struct netif *netif) +{ + /* NOTE : This is function could be implemented in user file + when the callback is needed, + */ + + if (netif_is_link_up(netif)) { + netif_set_up(netif); + +#if LWIP_DHCP + /* Creates a new DHCP client for this interface on the first call. + Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at + the predefined regular intervals after starting the client. + You can peek in the netif->dhcp struct for the actual DHCP status.*/ + dhcp_start(netif); +#endif + } + else + netif_set_down(netif); +} + +/** + * @brief Link callback function, this function is called on change of link status + * to update low level driver configuration. +* @param netif: The network interface + * @retval None + */ +void ethernetif_update_config(struct netif *netif) +{ + if(netif_is_link_up(netif)) + { + emac_speed_config(mac_control_para.auto_nego, mac_control_para.duplex_mode, mac_control_para.fast_ethernet_speed); + + delay_ms(300); + /* enable mac and dma transmission and reception */ + emac_start(); + } + else + { + /* disable mac and dma transmission and reception */ + emac_stop(); + } + + ethernetif_notify_conn_changed(netif); +} + +/** + * @brief initialize tmr6 for emac + * @param none + * @retval none + */ +void emac_tmr_init(void) +{ + crm_clocks_freq_type crm_clocks_freq_struct = {0}; + crm_periph_clock_enable(CRM_TMR6_PERIPH_CLOCK, TRUE); + + crm_clocks_freq_get(&crm_clocks_freq_struct); + /* tmr1 configuration */ + /* time base configuration */ + /* systemclock/24000/100 = 100hz */ + tmr_base_init(TMR6, 99, (crm_clocks_freq_struct.ahb_freq / 10000) - 1); + tmr_cnt_dir_set(TMR6, TMR_COUNT_UP); + + /* overflow interrupt enable */ + tmr_interrupt_enable(TMR6, TMR_OVF_INT, TRUE); + + /* tmr1 overflow interrupt nvic init */ + nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); + nvic_irq_enable(TMR6_GLOBAL_IRQn, 0, 0); + tmr_counter_enable(TMR6, TRUE); +} + /** * @} */ diff --git a/project/at_start_f407/examples/emac/tcp_server/src/at32f403a_407_clock.c b/project/at_start_f407/examples/emac/tcp_server/src/at32f403a_407_clock.c index 7ddab853..ca7d4a5b 100644 --- a/project/at_start_f407/examples/emac/tcp_server/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/emac/tcp_server/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/tcp_server/src/at32f403a_407_int.c b/project/at_start_f407/examples/emac/tcp_server/src/at32f403a_407_int.c index f1ef0339..1bbd19f2 100644 --- a/project/at_start_f407/examples/emac/tcp_server/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/emac/tcp_server/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer @@ -131,8 +131,21 @@ void PendSV_Handler(void) */ void SysTick_Handler(void) { - /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ - time_update(); +} + +/** + * @brief this function handles timer6 overflow handler. + * @param none + * @retval none + */ +void TMR6_GLOBAL_IRQHandler(void) +{ + if(tmr_flag_get(TMR6, TMR_OVF_FLAG) != RESET) + { + /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ + time_update(); + tmr_flag_clear(TMR6, TMR_OVF_FLAG); + } } /** diff --git a/project/at_start_f407/examples/emac/tcp_server/src/main.c b/project/at_start_f407/examples/emac/tcp_server/src/main.c index 5837b48c..840891a0 100644 --- a/project/at_start_f407/examples/emac/tcp_server/src/main.c +++ b/project/at_start_f407/examples/emac/tcp_server/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -72,12 +72,7 @@ int main(void) for(;;) { - at32_led_toggle(LED2); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED3); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED4); - delay_ms(g_speed * DELAY); + lwip_periodic_handle(local_time); } } diff --git a/project/at_start_f407/examples/emac/tcp_server/src/netconf.c b/project/at_start_f407/examples/emac/tcp_server/src/netconf.c index 38d6a574..fd2155b3 100644 --- a/project/at_start_f407/examples/emac/tcp_server/src/netconf.c +++ b/project/at_start_f407/examples/emac/tcp_server/src/netconf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief network connection configuration ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ #include "ethernetif.h" #include "netconf.h" #include "stdio.h" +#include "at32_emac.h" /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ @@ -45,6 +46,7 @@ extern volatile uint32_t local_time; struct netif netif; volatile uint32_t tcp_timer = 0; volatile uint32_t arp_timer = 0; +volatile uint32_t link_timer = 0; static uint8_t mac_address[MAC_ADDR_LENGTH] = {0, 0, 0x44, 0x45, 0x56, 1};; #if LWIP_DHCP @@ -111,16 +113,11 @@ void tcpip_stack_init(void) /* Registers the default network interface.*/ netif_set_default(&netif); -#if LWIP_DHCP - /* Creates a new DHCP client for this interface on the first call. - Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at - the predefined regular intervals after starting the client. - You can peek in the netif->dhcp struct for the actual DHCP status.*/ - dhcp_start(&netif); -#endif - /* When the netif is fully configured this function must be called.*/ netif_set_up(&netif); + + /* Set the link callback function, this function is called on change of link status*/ + netif_set_link_callback(&netif, ethernetif_update_config); } /** @@ -182,4 +179,13 @@ void lwip_periodic_handle(volatile uint32_t localtime) dhcp_coarse_tmr(); } #endif + +#if (LINK_DETECTION > 0) + /* link detection process every 500 ms */ + if (localtime - link_timer >= 500) + { + link_timer = localtime; + ethernetif_set_link(&netif); + } +#endif } diff --git a/project/at_start_f407/examples/emac/tcp_server/src/tcp_server.c b/project/at_start_f407/examples/emac/tcp_server/src/tcp_server.c index 66dc4f6d..e01a5003 100644 --- a/project/at_start_f407/examples/emac/tcp_server/src/tcp_server.c +++ b/project/at_start_f407/examples/emac/tcp_server/src/tcp_server.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tcp_server.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief implement tcp server ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/telnet/inc/at32_emac.h b/project/at_start_f407/examples/emac/telnet/inc/at32_emac.h index bfd61675..2cab4aae 100644 --- a/project/at_start_f407/examples/emac/telnet/inc/at32_emac.h +++ b/project/at_start_f407/examples/emac/telnet/inc/at32_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of emac config program. ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407.h" +#include "netif.h" /** @addtogroup AT32F407_periph_examples * @{ @@ -52,6 +53,8 @@ #define DM9162 //#define DP83848 +#define LINK_DETECTION (1) /*!< link status detection, 0: no detection, 1: detect with polling */ + #if defined (DM9162) #define PHY_ADDRESS (0x00) /*!< relative to at32 board */ #define PHY_CONTROL_REG (0x00) /*!< basic mode control register */ @@ -95,6 +98,12 @@ error_status emac_phy_register_reset(void); error_status emac_speed_config(emac_auto_negotiation_type nego, emac_duplex_type mode, emac_speed_type speed); error_status emac_phy_init(emac_control_config_type *control_para); +uint16_t link_update(void); +void ethernetif_set_link(void const *argument); +void ethernetif_notify_conn_changed(struct netif *netif); +void ethernetif_update_config(struct netif *netif); +void emac_tmr_init(void); + /** * @} */ diff --git a/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_int.h b/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/emac/telnet/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/telnet/inc/lwipopts.h b/project/at_start_f407/examples/emac/telnet/inc/lwipopts.h new file mode 100644 index 00000000..763ceecb --- /dev/null +++ b/project/at_start_f407/examples/emac/telnet/inc/lwipopts.h @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the lwIP TCP/IP stack. + * + * Author: Simon Goldschmidt + * + */ +#ifndef LWIP_HDR_LWIPOPTS_H +#define LWIP_HDR_LWIPOPTS_H + +//#define LWIP_TESTMODE 0 + +#define LWIP_IPV4 1 + +//#define LWIP_TIMERS 0 + +//#define LWIP_CHECKSUM_ON_COPY 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(printfmsg) LWIP_ASSERT("TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL", 0) + +/* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */ +#define NO_SYS 1 +#define SYS_LIGHTWEIGHT_PROT 0 +#define LWIP_NETCONN !NO_SYS +#define LWIP_SOCKET !NO_SYS +#define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET +#define LWIP_NETBUF_RECVINFO 1 +#define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +//#define TCPIP_THREAD_TEST + +/* Enable DHCP to test it, disable UDP checksum to easier inject packets */ +#define LWIP_DHCP 0 + +/* Minimal changes to opt.h required for tcp unit tests: */ +/* TCP Maximum segment size. */ + +#define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */ +/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which + lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 + byte alignment -> define MEM_ALIGNMENT to 2. */ +#define MEM_ALIGNMENT 4 +#define MEM_SIZE (20*1024) +#define TCP_SND_QUEUELEN (6 * TCP_SND_BUF)/TCP_MSS +#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN +#define TCP_SND_BUF (2 * TCP_MSS) +#define TCP_WND (2 * TCP_MSS) +#define LWIP_WND_SCALE 0 +#define TCP_RCV_SCALE 0 +#define PBUF_POOL_SIZE 10 /* pbuf tests need ~200KByte */ +/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ +#define PBUF_POOL_BUFSIZE 2000 +//#define TCP_QUEUE_OOSEQ 0 + +/* ---------- TCP options ---------- */ +#define LWIP_TCP 1 +#define TCP_TTL 255 + +/* Enable IGMP and MDNS for MDNS tests */ +#define LWIP_IGMP 1 +#define LWIP_MDNS_RESPONDER 1 +#define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER) + +/* Minimal changes to opt.h required for etharp unit tests: */ +#define ETHARP_SUPPORT_STATIC_ENTRIES 1 + +#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 8) + +/* MIB2 stats are required to check IPv4 reassembly results */ +#define MIB2_STATS 1 + +/* netif tests want to test this, so enable: */ +//#define LWIP_NETIF_EXT_STATUS_CALLBACK 1 + +/* Check lwip_stats.mem.illegal instead of asserting */ +#define LWIP_MEM_ILLEGAL_FREE(msg) /* to nothing */ + +#endif /* LWIP_HDR_LWIPOPTS_H */ diff --git a/project/at_start_f407/examples/emac/telnet/inc/netconf.h b/project/at_start_f407/examples/emac/telnet/inc/netconf.h index 6b0df237..0a6e3fd9 100644 --- a/project/at_start_f407/examples/emac/telnet/inc/netconf.h +++ b/project/at_start_f407/examples/emac/telnet/inc/netconf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief This file contains all the functions prototypes for the netconf.c * file. ************************************************************************** diff --git a/project/at_start_f407/examples/emac/telnet/inc/telnet.h b/project/at_start_f407/examples/emac/telnet/inc/telnet.h index a357a431..22e1b0f2 100644 --- a/project/at_start_f407/examples/emac/telnet/inc/telnet.h +++ b/project/at_start_f407/examples/emac/telnet/inc/telnet.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file telnet.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief telnet implement header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/telnet/mdk_v5/telnet.uvoptx b/project/at_start_f407/examples/emac/telnet/mdk_v5/telnet.uvoptx index 1ad778af..d46a00d9 100644 --- a/project/at_start_f407/examples/emac/telnet/mdk_v5/telnet.uvoptx +++ b/project/at_start_f407/examples/emac/telnet/mdk_v5/telnet.uvoptx @@ -347,6 +347,18 @@ 0 0 + + 3 + 14 + 1 + 0 + 0 + 0 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + at32f403a_407_tmr.c + 0 + 0 + @@ -357,7 +369,7 @@ 0 4 - 14 + 15 1 0 0 @@ -369,7 +381,7 @@ 4 - 15 + 16 2 0 0 @@ -389,7 +401,7 @@ 0 5 - 16 + 17 1 0 0 @@ -401,7 +413,7 @@ 5 - 17 + 18 1 0 0 @@ -413,7 +425,7 @@ 5 - 18 + 19 1 0 0 @@ -425,7 +437,7 @@ 5 - 19 + 20 1 0 0 @@ -437,7 +449,7 @@ 5 - 20 + 21 1 0 0 @@ -449,7 +461,7 @@ 5 - 21 + 22 1 0 0 @@ -461,7 +473,7 @@ 5 - 22 + 23 1 0 0 @@ -473,7 +485,7 @@ 5 - 23 + 24 1 0 0 @@ -485,7 +497,7 @@ 5 - 24 + 25 1 0 0 @@ -497,7 +509,7 @@ 5 - 25 + 26 1 0 0 @@ -509,7 +521,7 @@ 5 - 26 + 27 1 0 0 @@ -521,7 +533,7 @@ 5 - 27 + 28 1 0 0 @@ -533,7 +545,7 @@ 5 - 28 + 29 1 0 0 @@ -545,7 +557,7 @@ 5 - 29 + 30 1 0 0 @@ -557,7 +569,7 @@ 5 - 30 + 31 1 0 0 @@ -569,7 +581,7 @@ 5 - 31 + 32 1 0 0 @@ -581,7 +593,7 @@ 5 - 32 + 33 1 0 0 @@ -593,7 +605,7 @@ 5 - 33 + 34 1 0 0 @@ -605,7 +617,7 @@ 5 - 34 + 35 1 0 0 @@ -617,7 +629,7 @@ 5 - 35 + 36 1 0 0 @@ -629,7 +641,7 @@ 5 - 36 + 37 1 0 0 @@ -641,7 +653,7 @@ 5 - 37 + 38 1 0 0 @@ -653,7 +665,7 @@ 5 - 38 + 39 1 0 0 @@ -665,7 +677,7 @@ 5 - 39 + 40 1 0 0 @@ -677,7 +689,7 @@ 5 - 40 + 41 1 0 0 @@ -689,7 +701,7 @@ 5 - 41 + 42 1 0 0 @@ -701,7 +713,7 @@ 5 - 42 + 43 1 0 0 @@ -713,7 +725,7 @@ 5 - 43 + 44 1 0 0 @@ -725,7 +737,7 @@ 5 - 44 + 45 1 0 0 @@ -737,7 +749,7 @@ 5 - 45 + 46 1 0 0 @@ -749,7 +761,7 @@ 5 - 46 + 47 1 0 0 @@ -761,7 +773,7 @@ 5 - 47 + 48 1 0 0 @@ -773,7 +785,7 @@ 5 - 48 + 49 1 0 0 @@ -785,7 +797,7 @@ 5 - 49 + 50 1 0 0 @@ -797,7 +809,7 @@ 5 - 50 + 51 1 0 0 @@ -809,7 +821,7 @@ 5 - 51 + 52 1 0 0 @@ -821,7 +833,7 @@ 5 - 52 + 53 1 0 0 @@ -833,7 +845,7 @@ 5 - 53 + 54 1 0 0 @@ -845,7 +857,7 @@ 5 - 54 + 55 1 0 0 @@ -857,7 +869,7 @@ 5 - 55 + 56 1 0 0 @@ -877,7 +889,7 @@ 0 6 - 56 + 57 5 0 0 diff --git a/project/at_start_f407/examples/emac/telnet/mdk_v5/telnet.uvprojx b/project/at_start_f407/examples/emac/telnet/mdk_v5/telnet.uvprojx index 1f142d65..9d4f7959 100644 --- a/project/at_start_f407/examples/emac/telnet/mdk_v5/telnet.uvprojx +++ b/project/at_start_f407/examples/emac/telnet/mdk_v5/telnet.uvprojx @@ -10,7 +10,7 @@ telent 0x4 ARM-ADS - 5060061::V5.06 update 1 (build 61)::ARMCC + 5060750::V5.06 update 6 (build 750)::.\ARMCC 0 @@ -457,6 +457,11 @@ 1 ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_misc.c + + at32f403a_407_tmr.c + 1 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + diff --git a/project/at_start_f407/examples/emac/telnet/readme.txt b/project/at_start_f407/examples/emac/telnet/readme.txt index 2c29d56a..769ec64c 100644 --- a/project/at_start_f407/examples/emac/telnet/readme.txt +++ b/project/at_start_f407/examples/emac/telnet/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/emac/telnet/src/at32_emac.c b/project/at_start_f407/examples/emac/telnet/src/at32_emac.c index f4304bd8..0e465d89 100644 --- a/project/at_start_f407/examples/emac/telnet/src/at32_emac.c +++ b/project/at_start_f407/examples/emac/telnet/src/at32_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief emac config program ************************************************************************** * Copyright notice & Disclaimer @@ -26,6 +26,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407_board.h" +#include "lwip/dhcp.h" #include "at32_emac.h" /** @addtogroup AT32F407_periph_examples @@ -36,6 +37,8 @@ * @{ */ +emac_control_config_type mac_control_para; + /** * @brief enable emac clock and gpio clock * @param none @@ -54,6 +57,7 @@ error_status emac_system_init(void) emac_pins_configuration(); status = emac_layer2_configuration(); + emac_tmr_init(); return status; } @@ -227,7 +231,6 @@ void emac_pins_configuration(void) */ error_status emac_layer2_configuration(void) { - emac_control_config_type mac_control_para; emac_dma_config_type dma_control_para; #ifdef MII_MODE gpio_pin_remap_config(MII_RMII_SEL_GMUX, FALSE); @@ -476,15 +479,141 @@ error_status emac_phy_init(emac_control_config_type *control_para) { return ERROR; } - if(emac_speed_config(control_para->auto_nego, control_para->duplex_mode, control_para->fast_ethernet_speed) == ERROR) - { - return ERROR; - } emac_control_config(control_para); return SUCCESS; } +/** + * @brief updates the link states + * @param none + * @retval link state 0: disconnect, 1: connection + */ +uint16_t link_update(void) +{ + uint16_t link_data, link_state; + if(emac_phy_register_read(PHY_ADDRESS, PHY_STATUS_REG, &link_data) == ERROR) + { + return ERROR; + } + + link_state = (link_data & PHY_LINKED_STATUS_BIT)>>2; + return link_state; +} + +/** + * @brief this function sets the netif link status. + * @param netif: the network interface + * @retval none + */ +void ethernetif_set_link(void const *argument) +{ + uint16_t regvalue = 0; + struct netif *netif = (struct netif *)argument; + + /* Read PHY_BSR*/ + regvalue = link_update(); + + if(regvalue > 0) + { + at32_led_on(LED4); + at32_led_off(LED2); + } + else + { + at32_led_on(LED2); + at32_led_off(LED4); + } + /* Check whether the netif link down and the PHY link is up */ + if(!netif_is_link_up(netif) && (regvalue)) + { + /* network cable is connected */ + netif_set_link_up(netif); + } + else if(netif_is_link_up(netif) && (!regvalue)) + { + /* network cable is dis-connected */ + netif_set_link_down(netif); + } +} + +/** + * @brief This function notify user about link status changement. + * @param netif: the network interface + * @retval None + */ +void ethernetif_notify_conn_changed(struct netif *netif) +{ + /* NOTE : This is function could be implemented in user file + when the callback is needed, + */ + + if (netif_is_link_up(netif)) { + netif_set_up(netif); + +#if LWIP_DHCP + /* Creates a new DHCP client for this interface on the first call. + Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at + the predefined regular intervals after starting the client. + You can peek in the netif->dhcp struct for the actual DHCP status.*/ + dhcp_start(netif); +#endif + } + else + netif_set_down(netif); +} + +/** + * @brief Link callback function, this function is called on change of link status + * to update low level driver configuration. +* @param netif: The network interface + * @retval None + */ +void ethernetif_update_config(struct netif *netif) +{ + if(netif_is_link_up(netif)) + { + emac_speed_config(mac_control_para.auto_nego, mac_control_para.duplex_mode, mac_control_para.fast_ethernet_speed); + + delay_ms(300); + /* enable mac and dma transmission and reception */ + emac_start(); + } + else + { + /* disable mac and dma transmission and reception */ + emac_stop(); + } + + ethernetif_notify_conn_changed(netif); +} + +/** + * @brief initialize tmr6 for emac + * @param none + * @retval none + */ +void emac_tmr_init(void) +{ + crm_clocks_freq_type crm_clocks_freq_struct = {0}; + crm_periph_clock_enable(CRM_TMR6_PERIPH_CLOCK, TRUE); + + crm_clocks_freq_get(&crm_clocks_freq_struct); + /* tmr1 configuration */ + /* time base configuration */ + /* systemclock/24000/100 = 100hz */ + tmr_base_init(TMR6, 99, (crm_clocks_freq_struct.ahb_freq / 10000) - 1); + tmr_cnt_dir_set(TMR6, TMR_COUNT_UP); + + /* overflow interrupt enable */ + tmr_interrupt_enable(TMR6, TMR_OVF_INT, TRUE); + + /* tmr1 overflow interrupt nvic init */ + nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); + nvic_irq_enable(TMR6_GLOBAL_IRQn, 0, 0); + tmr_counter_enable(TMR6, TRUE); +} + /** * @} */ diff --git a/project/at_start_f407/examples/emac/telnet/src/at32f403a_407_clock.c b/project/at_start_f407/examples/emac/telnet/src/at32f403a_407_clock.c index 7ddab853..ca7d4a5b 100644 --- a/project/at_start_f407/examples/emac/telnet/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/emac/telnet/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/telnet/src/at32f403a_407_int.c b/project/at_start_f407/examples/emac/telnet/src/at32f403a_407_int.c index 08e9796e..0f3924ff 100644 --- a/project/at_start_f407/examples/emac/telnet/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/emac/telnet/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer @@ -131,8 +131,21 @@ void PendSV_Handler(void) */ void SysTick_Handler(void) { - /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ - time_update(); +} + +/** + * @brief this function handles timer6 overflow handler. + * @param none + * @retval none + */ +void TMR6_GLOBAL_IRQHandler(void) +{ + if(tmr_flag_get(TMR6, TMR_OVF_FLAG) != RESET) + { + /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ + time_update(); + tmr_flag_clear(TMR6, TMR_OVF_FLAG); + } } /** diff --git a/project/at_start_f407/examples/emac/telnet/src/main.c b/project/at_start_f407/examples/emac/telnet/src/main.c index 02165392..6e026a16 100644 --- a/project/at_start_f407/examples/emac/telnet/src/main.c +++ b/project/at_start_f407/examples/emac/telnet/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -72,12 +72,7 @@ int main(void) for(;;) { - at32_led_toggle(LED2); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED3); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED4); - delay_ms(g_speed * DELAY); + lwip_periodic_handle(local_time); } } diff --git a/project/at_start_f407/examples/emac/telnet/src/netconf.c b/project/at_start_f407/examples/emac/telnet/src/netconf.c index 38d6a574..fd2155b3 100644 --- a/project/at_start_f407/examples/emac/telnet/src/netconf.c +++ b/project/at_start_f407/examples/emac/telnet/src/netconf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief network connection configuration ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ #include "ethernetif.h" #include "netconf.h" #include "stdio.h" +#include "at32_emac.h" /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ @@ -45,6 +46,7 @@ extern volatile uint32_t local_time; struct netif netif; volatile uint32_t tcp_timer = 0; volatile uint32_t arp_timer = 0; +volatile uint32_t link_timer = 0; static uint8_t mac_address[MAC_ADDR_LENGTH] = {0, 0, 0x44, 0x45, 0x56, 1};; #if LWIP_DHCP @@ -111,16 +113,11 @@ void tcpip_stack_init(void) /* Registers the default network interface.*/ netif_set_default(&netif); -#if LWIP_DHCP - /* Creates a new DHCP client for this interface on the first call. - Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at - the predefined regular intervals after starting the client. - You can peek in the netif->dhcp struct for the actual DHCP status.*/ - dhcp_start(&netif); -#endif - /* When the netif is fully configured this function must be called.*/ netif_set_up(&netif); + + /* Set the link callback function, this function is called on change of link status*/ + netif_set_link_callback(&netif, ethernetif_update_config); } /** @@ -182,4 +179,13 @@ void lwip_periodic_handle(volatile uint32_t localtime) dhcp_coarse_tmr(); } #endif + +#if (LINK_DETECTION > 0) + /* link detection process every 500 ms */ + if (localtime - link_timer >= 500) + { + link_timer = localtime; + ethernetif_set_link(&netif); + } +#endif } diff --git a/project/at_start_f407/examples/emac/telnet/src/telnet.c b/project/at_start_f407/examples/emac/telnet/src/telnet.c index dfab790c..94ed97fd 100644 --- a/project/at_start_f407/examples/emac/telnet/src/telnet.c +++ b/project/at_start_f407/examples/emac/telnet/src/telnet.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file telnet.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief telnet implement ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/wake_on_lan/inc/at32_emac.h b/project/at_start_f407/examples/emac/wake_on_lan/inc/at32_emac.h index b1b160a9..c614c2ac 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/inc/at32_emac.h +++ b/project/at_start_f407/examples/emac/wake_on_lan/inc/at32_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of emac config program. ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407.h" +#include "netif.h" /** @addtogroup AT32F407_periph_examples * @{ @@ -52,6 +53,8 @@ #define DM9162 //#define DP83848 +#define LINK_DETECTION (1) /*!< link status detection, 0: no detection, 1: detect with polling */ + #if defined (DM9162) #define PHY_ADDRESS (0x00) /*!< relative to at32 board */ #define PHY_CONTROL_REG (0x00) /*!< basic mode control register */ @@ -95,6 +98,12 @@ error_status emac_phy_register_reset(void); error_status emac_speed_config(emac_auto_negotiation_type nego, emac_duplex_type mode, emac_speed_type speed); error_status emac_phy_init(emac_control_config_type *control_para); +uint16_t link_update(void); +void ethernetif_set_link(void const *argument); +void ethernetif_notify_conn_changed(struct netif *netif); +void ethernetif_update_config(struct netif *netif); +void emac_tmr_init(void); + /** * @} */ diff --git a/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_int.h b/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/emac/wake_on_lan/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/wake_on_lan/inc/lwipopts.h b/project/at_start_f407/examples/emac/wake_on_lan/inc/lwipopts.h new file mode 100644 index 00000000..763ceecb --- /dev/null +++ b/project/at_start_f407/examples/emac/wake_on_lan/inc/lwipopts.h @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the lwIP TCP/IP stack. + * + * Author: Simon Goldschmidt + * + */ +#ifndef LWIP_HDR_LWIPOPTS_H +#define LWIP_HDR_LWIPOPTS_H + +//#define LWIP_TESTMODE 0 + +#define LWIP_IPV4 1 + +//#define LWIP_TIMERS 0 + +//#define LWIP_CHECKSUM_ON_COPY 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(printfmsg) LWIP_ASSERT("TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL", 0) + +/* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */ +#define NO_SYS 1 +#define SYS_LIGHTWEIGHT_PROT 0 +#define LWIP_NETCONN !NO_SYS +#define LWIP_SOCKET !NO_SYS +#define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET +#define LWIP_NETBUF_RECVINFO 1 +#define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +//#define TCPIP_THREAD_TEST + +/* Enable DHCP to test it, disable UDP checksum to easier inject packets */ +#define LWIP_DHCP 0 + +/* Minimal changes to opt.h required for tcp unit tests: */ +/* TCP Maximum segment size. */ + +#define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */ +/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which + lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 + byte alignment -> define MEM_ALIGNMENT to 2. */ +#define MEM_ALIGNMENT 4 +#define MEM_SIZE (20*1024) +#define TCP_SND_QUEUELEN (6 * TCP_SND_BUF)/TCP_MSS +#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN +#define TCP_SND_BUF (2 * TCP_MSS) +#define TCP_WND (2 * TCP_MSS) +#define LWIP_WND_SCALE 0 +#define TCP_RCV_SCALE 0 +#define PBUF_POOL_SIZE 10 /* pbuf tests need ~200KByte */ +/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ +#define PBUF_POOL_BUFSIZE 2000 +//#define TCP_QUEUE_OOSEQ 0 + +/* ---------- TCP options ---------- */ +#define LWIP_TCP 1 +#define TCP_TTL 255 + +/* Enable IGMP and MDNS for MDNS tests */ +#define LWIP_IGMP 1 +#define LWIP_MDNS_RESPONDER 1 +#define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER) + +/* Minimal changes to opt.h required for etharp unit tests: */ +#define ETHARP_SUPPORT_STATIC_ENTRIES 1 + +#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 8) + +/* MIB2 stats are required to check IPv4 reassembly results */ +#define MIB2_STATS 1 + +/* netif tests want to test this, so enable: */ +//#define LWIP_NETIF_EXT_STATUS_CALLBACK 1 + +/* Check lwip_stats.mem.illegal instead of asserting */ +#define LWIP_MEM_ILLEGAL_FREE(msg) /* to nothing */ + +#endif /* LWIP_HDR_LWIPOPTS_H */ diff --git a/project/at_start_f407/examples/emac/wake_on_lan/inc/netconf.h b/project/at_start_f407/examples/emac/wake_on_lan/inc/netconf.h index 6b0df237..0a6e3fd9 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/inc/netconf.h +++ b/project/at_start_f407/examples/emac/wake_on_lan/inc/netconf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief This file contains all the functions prototypes for the netconf.c * file. ************************************************************************** diff --git a/project/at_start_f407/examples/emac/wake_on_lan/mdk_v5/wake_on_lan.uvoptx b/project/at_start_f407/examples/emac/wake_on_lan/mdk_v5/wake_on_lan.uvoptx index 9ebf8064..841aba93 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/mdk_v5/wake_on_lan.uvoptx +++ b/project/at_start_f407/examples/emac/wake_on_lan/mdk_v5/wake_on_lan.uvoptx @@ -347,6 +347,18 @@ 0 0 + + 3 + 14 + 1 + 0 + 0 + 0 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + at32f403a_407_tmr.c + 0 + 0 + @@ -357,7 +369,7 @@ 0 4 - 14 + 15 1 0 0 @@ -369,7 +381,7 @@ 4 - 15 + 16 2 0 0 @@ -389,7 +401,7 @@ 0 5 - 16 + 17 1 0 0 @@ -401,7 +413,7 @@ 5 - 17 + 18 1 0 0 @@ -413,7 +425,7 @@ 5 - 18 + 19 1 0 0 @@ -425,7 +437,7 @@ 5 - 19 + 20 1 0 0 @@ -437,7 +449,7 @@ 5 - 20 + 21 1 0 0 @@ -449,7 +461,7 @@ 5 - 21 + 22 1 0 0 @@ -461,7 +473,7 @@ 5 - 22 + 23 1 0 0 @@ -473,7 +485,7 @@ 5 - 23 + 24 1 0 0 @@ -485,7 +497,7 @@ 5 - 24 + 25 1 0 0 @@ -497,7 +509,7 @@ 5 - 25 + 26 1 0 0 @@ -509,7 +521,7 @@ 5 - 26 + 27 1 0 0 @@ -521,7 +533,7 @@ 5 - 27 + 28 1 0 0 @@ -533,7 +545,7 @@ 5 - 28 + 29 1 0 0 @@ -545,7 +557,7 @@ 5 - 29 + 30 1 0 0 @@ -557,7 +569,7 @@ 5 - 30 + 31 1 0 0 @@ -569,7 +581,7 @@ 5 - 31 + 32 1 0 0 @@ -581,7 +593,7 @@ 5 - 32 + 33 1 0 0 @@ -593,7 +605,7 @@ 5 - 33 + 34 1 0 0 @@ -605,7 +617,7 @@ 5 - 34 + 35 1 0 0 @@ -617,7 +629,7 @@ 5 - 35 + 36 1 0 0 @@ -629,7 +641,7 @@ 5 - 36 + 37 1 0 0 @@ -641,7 +653,7 @@ 5 - 37 + 38 1 0 0 @@ -653,7 +665,7 @@ 5 - 38 + 39 1 0 0 @@ -665,7 +677,7 @@ 5 - 39 + 40 1 0 0 @@ -677,7 +689,7 @@ 5 - 40 + 41 1 0 0 @@ -689,7 +701,7 @@ 5 - 41 + 42 1 0 0 @@ -701,7 +713,7 @@ 5 - 42 + 43 1 0 0 @@ -713,7 +725,7 @@ 5 - 43 + 44 1 0 0 @@ -725,7 +737,7 @@ 5 - 44 + 45 1 0 0 @@ -737,7 +749,7 @@ 5 - 45 + 46 1 0 0 @@ -749,7 +761,7 @@ 5 - 46 + 47 1 0 0 @@ -761,7 +773,7 @@ 5 - 47 + 48 1 0 0 @@ -773,7 +785,7 @@ 5 - 48 + 49 1 0 0 @@ -785,7 +797,7 @@ 5 - 49 + 50 1 0 0 @@ -797,7 +809,7 @@ 5 - 50 + 51 1 0 0 @@ -809,7 +821,7 @@ 5 - 51 + 52 1 0 0 @@ -821,7 +833,7 @@ 5 - 52 + 53 1 0 0 @@ -833,7 +845,7 @@ 5 - 53 + 54 1 0 0 @@ -845,7 +857,7 @@ 5 - 54 + 55 1 0 0 @@ -857,7 +869,7 @@ 5 - 55 + 56 1 0 0 @@ -877,7 +889,7 @@ 0 6 - 56 + 57 5 0 0 diff --git a/project/at_start_f407/examples/emac/wake_on_lan/mdk_v5/wake_on_lan.uvprojx b/project/at_start_f407/examples/emac/wake_on_lan/mdk_v5/wake_on_lan.uvprojx index 6d2d1a05..41331061 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/mdk_v5/wake_on_lan.uvprojx +++ b/project/at_start_f407/examples/emac/wake_on_lan/mdk_v5/wake_on_lan.uvprojx @@ -10,7 +10,7 @@ wake_on_lan 0x4 ARM-ADS - 5060061::V5.06 update 1 (build 61)::ARMCC + 5060750::V5.06 update 6 (build 750)::.\ARMCC 0 @@ -457,6 +457,11 @@ 1 ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_pwc.c + + at32f403a_407_tmr.c + 1 + ..\..\..\..\..\..\libraries\drivers\src\at32f403a_407_tmr.c + diff --git a/project/at_start_f407/examples/emac/wake_on_lan/readme.txt b/project/at_start_f407/examples/emac/wake_on_lan/readme.txt new file mode 100644 index 00000000..9a6600b9 --- /dev/null +++ b/project/at_start_f407/examples/emac/wake_on_lan/readme.txt @@ -0,0 +1,12 @@ +/** + ************************************************************************** + * @file readme.txt + * @version v2.0.9 + * @date 2022-04-25 + * @brief readme + ************************************************************************** + */ + + this demo is based on the at-start board, in this demo, shows the wakeup on + LAN operating for at32f4xx series. for more detailed information, please refer + to the application note document AN0055. \ No newline at end of file diff --git a/project/at_start_f407/examples/emac/wake_on_lan/src/at32_emac.c b/project/at_start_f407/examples/emac/wake_on_lan/src/at32_emac.c index dc03b088..99e04b3b 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/src/at32_emac.c +++ b/project/at_start_f407/examples/emac/wake_on_lan/src/at32_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief emac config program ************************************************************************** * Copyright notice & Disclaimer @@ -26,6 +26,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407_board.h" +#include "lwip/dhcp.h" #include "at32_emac.h" /** @addtogroup AT32F407_periph_examples @@ -36,6 +37,8 @@ * @{ */ +emac_control_config_type mac_control_para; + /** * @brief enable emac clock and gpio clock * @param none @@ -54,6 +57,7 @@ error_status emac_system_init(void) emac_pins_configuration(); status = emac_layer2_configuration(); + emac_tmr_init(); return status; } @@ -227,7 +231,6 @@ void emac_pins_configuration(void) */ error_status emac_layer2_configuration(void) { - emac_control_config_type mac_control_para; emac_dma_config_type dma_control_para; #ifdef MII_MODE gpio_pin_remap_config(MII_RMII_SEL_GMUX, FALSE); @@ -476,15 +479,141 @@ error_status emac_phy_init(emac_control_config_type *control_para) { return ERROR; } - if(emac_speed_config(control_para->auto_nego, control_para->duplex_mode, control_para->fast_ethernet_speed) == ERROR) - { - return ERROR; - } emac_control_config(control_para); return SUCCESS; } +/** + * @brief updates the link states + * @param none + * @retval link state 0: disconnect, 1: connection + */ +uint16_t link_update(void) +{ + uint16_t link_data, link_state; + if(emac_phy_register_read(PHY_ADDRESS, PHY_STATUS_REG, &link_data) == ERROR) + { + return ERROR; + } + + link_state = (link_data & PHY_LINKED_STATUS_BIT)>>2; + return link_state; +} + +/** + * @brief this function sets the netif link status. + * @param netif: the network interface + * @retval none + */ +void ethernetif_set_link(void const *argument) +{ + uint16_t regvalue = 0; + struct netif *netif = (struct netif *)argument; + + /* Read PHY_BSR*/ + regvalue = link_update(); + + if(regvalue > 0) + { + at32_led_on(LED4); + at32_led_off(LED2); + } + else + { + at32_led_on(LED2); + at32_led_off(LED4); + } + /* Check whether the netif link down and the PHY link is up */ + if(!netif_is_link_up(netif) && (regvalue)) + { + /* network cable is connected */ + netif_set_link_up(netif); + } + else if(netif_is_link_up(netif) && (!regvalue)) + { + /* network cable is dis-connected */ + netif_set_link_down(netif); + } +} + +/** + * @brief This function notify user about link status changement. + * @param netif: the network interface + * @retval None + */ +void ethernetif_notify_conn_changed(struct netif *netif) +{ + /* NOTE : This is function could be implemented in user file + when the callback is needed, + */ + + if (netif_is_link_up(netif)) { + netif_set_up(netif); + +#if LWIP_DHCP + /* Creates a new DHCP client for this interface on the first call. + Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at + the predefined regular intervals after starting the client. + You can peek in the netif->dhcp struct for the actual DHCP status.*/ + dhcp_start(netif); +#endif + } + else + netif_set_down(netif); +} + +/** + * @brief Link callback function, this function is called on change of link status + * to update low level driver configuration. +* @param netif: The network interface + * @retval None + */ +void ethernetif_update_config(struct netif *netif) +{ + if(netif_is_link_up(netif)) + { + emac_speed_config(mac_control_para.auto_nego, mac_control_para.duplex_mode, mac_control_para.fast_ethernet_speed); + + delay_ms(300); + /* enable mac and dma transmission and reception */ + emac_start(); + } + else + { + /* disable mac and dma transmission and reception */ + emac_stop(); + } + + ethernetif_notify_conn_changed(netif); +} + +/** + * @brief initialize tmr6 for emac + * @param none + * @retval none + */ +void emac_tmr_init(void) +{ + crm_clocks_freq_type crm_clocks_freq_struct = {0}; + crm_periph_clock_enable(CRM_TMR6_PERIPH_CLOCK, TRUE); + + crm_clocks_freq_get(&crm_clocks_freq_struct); + /* tmr1 configuration */ + /* time base configuration */ + /* systemclock/24000/100 = 100hz */ + tmr_base_init(TMR6, 99, (crm_clocks_freq_struct.ahb_freq / 10000) - 1); + tmr_cnt_dir_set(TMR6, TMR_COUNT_UP); + + /* overflow interrupt enable */ + tmr_interrupt_enable(TMR6, TMR_OVF_INT, TRUE); + + /* tmr1 overflow interrupt nvic init */ + nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); + nvic_irq_enable(TMR6_GLOBAL_IRQn, 0, 0); + tmr_counter_enable(TMR6, TRUE); +} + /** * @} */ diff --git a/project/at_start_f407/examples/emac/wake_on_lan/src/at32f403a_407_clock.c b/project/at_start_f407/examples/emac/wake_on_lan/src/at32f403a_407_clock.c index 7ddab853..ca7d4a5b 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/emac/wake_on_lan/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/emac/wake_on_lan/src/at32f403a_407_int.c b/project/at_start_f407/examples/emac/wake_on_lan/src/at32f403a_407_int.c index e9ac1545..77476640 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/emac/wake_on_lan/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer @@ -132,8 +132,21 @@ void PendSV_Handler(void) */ void SysTick_Handler(void) { - /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ - time_update(); +} + +/** + * @brief this function handles timer6 overflow handler. + * @param none + * @retval none + */ +void TMR6_GLOBAL_IRQHandler(void) +{ + if(tmr_flag_get(TMR6, TMR_OVF_FLAG) != RESET) + { + /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ + time_update(); + tmr_flag_clear(TMR6, TMR_OVF_FLAG); + } } /** diff --git a/project/at_start_f407/examples/emac/wake_on_lan/src/main.c b/project/at_start_f407/examples/emac/wake_on_lan/src/main.c index 0203bc08..11130df2 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/src/main.c +++ b/project/at_start_f407/examples/emac/wake_on_lan/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -74,12 +74,7 @@ int main(void) while(1) { - at32_led_toggle(LED2); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED3); - delay_ms(g_speed * DELAY); - at32_led_toggle(LED4); - delay_ms(g_speed * DELAY); + lwip_periodic_handle(local_time); } } diff --git a/project/at_start_f407/examples/emac/wake_on_lan/src/netconf.c b/project/at_start_f407/examples/emac/wake_on_lan/src/netconf.c index 38d6a574..fd2155b3 100644 --- a/project/at_start_f407/examples/emac/wake_on_lan/src/netconf.c +++ b/project/at_start_f407/examples/emac/wake_on_lan/src/netconf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief network connection configuration ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ #include "ethernetif.h" #include "netconf.h" #include "stdio.h" +#include "at32_emac.h" /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ @@ -45,6 +46,7 @@ extern volatile uint32_t local_time; struct netif netif; volatile uint32_t tcp_timer = 0; volatile uint32_t arp_timer = 0; +volatile uint32_t link_timer = 0; static uint8_t mac_address[MAC_ADDR_LENGTH] = {0, 0, 0x44, 0x45, 0x56, 1};; #if LWIP_DHCP @@ -111,16 +113,11 @@ void tcpip_stack_init(void) /* Registers the default network interface.*/ netif_set_default(&netif); -#if LWIP_DHCP - /* Creates a new DHCP client for this interface on the first call. - Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at - the predefined regular intervals after starting the client. - You can peek in the netif->dhcp struct for the actual DHCP status.*/ - dhcp_start(&netif); -#endif - /* When the netif is fully configured this function must be called.*/ netif_set_up(&netif); + + /* Set the link callback function, this function is called on change of link status*/ + netif_set_link_callback(&netif, ethernetif_update_config); } /** @@ -182,4 +179,13 @@ void lwip_periodic_handle(volatile uint32_t localtime) dhcp_coarse_tmr(); } #endif + +#if (LINK_DETECTION > 0) + /* link detection process every 500 ms */ + if (localtime - link_timer >= 500) + { + link_timer = localtime; + ethernetif_set_link(&netif); + } +#endif } diff --git a/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_int.h b/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/exint/exint_config/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_config/readme.txt b/project/at_start_f407/examples/exint/exint_config/readme.txt index b1a5fee1..401bda7d 100644 --- a/project/at_start_f407/examples/exint/exint_config/readme.txt +++ b/project/at_start_f407/examples/exint/exint_config/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,4 @@ this demo is based on the at-start board, in this demo, shows how to configure external interrupt lines. exint line (exint line0 pa0) are configured to generate an interrupt on each rising edge. in the interrupt routine a led2/3/4 is toggled. + for more detailed information. please refer to the application note document AN0104. \ No newline at end of file diff --git a/project/at_start_f407/examples/exint/exint_config/src/at32f403a_407_clock.c b/project/at_start_f407/examples/exint/exint_config/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/exint/exint_config/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/exint/exint_config/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_config/src/at32f403a_407_int.c b/project/at_start_f407/examples/exint/exint_config/src/at32f403a_407_int.c index 769ea1f0..cfb38d90 100644 --- a/project/at_start_f407/examples/exint/exint_config/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/exint/exint_config/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_config/src/main.c b/project/at_start_f407/examples/exint/exint_config/src/main.c index 598c8d88..c17c1df1 100644 --- a/project/at_start_f407/examples/exint/exint_config/src/main.c +++ b/project/at_start_f407/examples/exint/exint_config/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_int.h b/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/exint/exint_software_trigger/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_software_trigger/readme.txt b/project/at_start_f407/examples/exint/exint_software_trigger/readme.txt index bb2cfe2b..bd32f5cb 100644 --- a/project/at_start_f407/examples/exint/exint_software_trigger/readme.txt +++ b/project/at_start_f407/examples/exint/exint_software_trigger/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -12,3 +12,4 @@ software trigger will be generate in tmr1 overflow interrupt. led2 toggle means tmr1 overflow interrupt respond. led3 and led4 toggle means exint line 4 interrupt respond. + for more detailed information. please refer to the application note document AN0104. \ No newline at end of file diff --git a/project/at_start_f407/examples/exint/exint_software_trigger/src/at32f403a_407_clock.c b/project/at_start_f407/examples/exint/exint_software_trigger/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/exint/exint_software_trigger/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/exint/exint_software_trigger/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_software_trigger/src/at32f403a_407_int.c b/project/at_start_f407/examples/exint/exint_software_trigger/src/at32f403a_407_int.c index 9ea291c9..583231a7 100644 --- a/project/at_start_f407/examples/exint/exint_software_trigger/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/exint/exint_software_trigger/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/exint/exint_software_trigger/src/main.c b/project/at_start_f407/examples/exint/exint_software_trigger/src/main.c index c29e5bb6..73d18344 100644 --- a/project/at_start_f407/examples/exint/exint_software_trigger/src/main.c +++ b/project/at_start_f407/examples/exint/exint_software_trigger/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_int.h b/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/flash/flash_write_read/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/flash_write_read/inc/flash.h b/project/at_start_f407/examples/flash/flash_write_read/inc/flash.h index 848c867b..9af1412c 100644 --- a/project/at_start_f407/examples/flash/flash_write_read/inc/flash.h +++ b/project/at_start_f407/examples/flash/flash_write_read/inc/flash.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/flash_write_read/readme.txt b/project/at_start_f407/examples/flash/flash_write_read/readme.txt index 966a2d1c..4cb0e1f4 100644 --- a/project/at_start_f407/examples/flash/flash_write_read/readme.txt +++ b/project/at_start_f407/examples/flash/flash_write_read/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/flash/flash_write_read/src/at32f403a_407_clock.c b/project/at_start_f407/examples/flash/flash_write_read/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/flash/flash_write_read/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/flash/flash_write_read/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/flash_write_read/src/at32f403a_407_int.c b/project/at_start_f407/examples/flash/flash_write_read/src/at32f403a_407_int.c index 9e8d1e16..e3063a1a 100644 --- a/project/at_start_f407/examples/flash/flash_write_read/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/flash/flash_write_read/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/flash_write_read/src/flash.c b/project/at_start_f407/examples/flash/flash_write_read/src/flash.c index 1fa98b9b..09bca292 100644 --- a/project/at_start_f407/examples/flash/flash_write_read/src/flash.c +++ b/project/at_start_f407/examples/flash/flash_write_read/src/flash.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/flash_write_read/src/main.c b/project/at_start_f407/examples/flash/flash_write_read/src/main.c index e545f1b0..52a74d95 100644 --- a/project/at_start_f407/examples/flash/flash_write_read/src/main.c +++ b/project/at_start_f407/examples/flash/flash_write_read/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_int.h b/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/flash/operate_spim/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/operate_spim/inc/operate_spim.h b/project/at_start_f407/examples/flash/operate_spim/inc/operate_spim.h index 74a336a3..481300e2 100644 --- a/project/at_start_f407/examples/flash/operate_spim/inc/operate_spim.h +++ b/project/at_start_f407/examples/flash/operate_spim/inc/operate_spim.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file operate_spim.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief operate_spim header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/operate_spim/readme.txt b/project/at_start_f407/examples/flash/operate_spim/readme.txt index 2db39067..6e59727d 100644 --- a/project/at_start_f407/examples/flash/operate_spim/readme.txt +++ b/project/at_start_f407/examples/flash/operate_spim/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,4 @@ - spim io1 ---> pb11 - spim io2 ---> pb7 - spim io3 ---> pb6 + for more detailed information. please refer to the application note document AN0042. \ No newline at end of file diff --git a/project/at_start_f407/examples/flash/operate_spim/src/at32f403a_407_clock.c b/project/at_start_f407/examples/flash/operate_spim/src/at32f403a_407_clock.c index c4b93b7e..f07ccc4a 100644 --- a/project/at_start_f407/examples/flash/operate_spim/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/flash/operate_spim/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/operate_spim/src/at32f403a_407_int.c b/project/at_start_f407/examples/flash/operate_spim/src/at32f403a_407_int.c index 5499033b..71724b0d 100644 --- a/project/at_start_f407/examples/flash/operate_spim/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/flash/operate_spim/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/operate_spim/src/main.c b/project/at_start_f407/examples/flash/operate_spim/src/main.c index fc0e1f9f..9361f4bd 100644 --- a/project/at_start_f407/examples/flash/operate_spim/src/main.c +++ b/project/at_start_f407/examples/flash/operate_spim/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/operate_spim/src/operate_spim.c b/project/at_start_f407/examples/flash/operate_spim/src/operate_spim.c index fec346ae..f1eca05a 100644 --- a/project/at_start_f407/examples/flash/operate_spim/src/operate_spim.c +++ b/project/at_start_f407/examples/flash/operate_spim/src/operate_spim.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file operate_spim.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief operate spim program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_int.h b/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/flash/run_in_spim/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/run_in_spim/inc/run_in_spim.h b/project/at_start_f407/examples/flash/run_in_spim/inc/run_in_spim.h index 5837dad8..48d9ff4c 100644 --- a/project/at_start_f407/examples/flash/run_in_spim/inc/run_in_spim.h +++ b/project/at_start_f407/examples/flash/run_in_spim/inc/run_in_spim.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file run_in_spim.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief run_in_spim header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/run_in_spim/readme.txt b/project/at_start_f407/examples/flash/run_in_spim/readme.txt index 9382b75e..d6ce485e 100644 --- a/project/at_start_f407/examples/flash/run_in_spim/readme.txt +++ b/project/at_start_f407/examples/flash/run_in_spim/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -20,3 +20,4 @@ - spim io1 ---> pb11 - spim io2 ---> pb7 - spim io3 ---> pb6 + for more detailed information. please refer to the application note document AN0042. \ No newline at end of file diff --git a/project/at_start_f407/examples/flash/run_in_spim/src/at32f403a_407_clock.c b/project/at_start_f407/examples/flash/run_in_spim/src/at32f403a_407_clock.c index c4b93b7e..f07ccc4a 100644 --- a/project/at_start_f407/examples/flash/run_in_spim/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/flash/run_in_spim/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/run_in_spim/src/at32f403a_407_int.c b/project/at_start_f407/examples/flash/run_in_spim/src/at32f403a_407_int.c index ef9297fa..f70867e3 100644 --- a/project/at_start_f407/examples/flash/run_in_spim/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/flash/run_in_spim/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/run_in_spim/src/main.c b/project/at_start_f407/examples/flash/run_in_spim/src/main.c index 0dd29076..bfb5ac4c 100644 --- a/project/at_start_f407/examples/flash/run_in_spim/src/main.c +++ b/project/at_start_f407/examples/flash/run_in_spim/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/flash/run_in_spim/src/run_in_spim.c b/project/at_start_f407/examples/flash/run_in_spim/src/run_in_spim.c index 29cca755..d2f209e4 100644 --- a/project/at_start_f407/examples/flash/run_in_spim/src/run_in_spim.c +++ b/project/at_start_f407/examples/flash/run_in_spim/src/run_in_spim.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file run_in_spim.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief run in spim program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_int.h b/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/gpio/led_toggle/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/led_toggle/readme.txt b/project/at_start_f407/examples/gpio/led_toggle/readme.txt index e64ae3bd..1bd44fef 100644 --- a/project/at_start_f407/examples/gpio/led_toggle/readme.txt +++ b/project/at_start_f407/examples/gpio/led_toggle/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, configure systick timer used for delay function. + for more detailed information. please refer to the application note document AN0110. \ No newline at end of file diff --git a/project/at_start_f407/examples/gpio/led_toggle/src/at32f403a_407_clock.c b/project/at_start_f407/examples/gpio/led_toggle/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/gpio/led_toggle/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/gpio/led_toggle/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/led_toggle/src/at32f403a_407_int.c b/project/at_start_f407/examples/gpio/led_toggle/src/at32f403a_407_int.c index de041df7..df63f2f7 100644 --- a/project/at_start_f407/examples/gpio/led_toggle/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/gpio/led_toggle/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/led_toggle/src/main.c b/project/at_start_f407/examples/gpio/led_toggle/src/main.c index cf8b7ce6..808015f6 100644 --- a/project/at_start_f407/examples/gpio/led_toggle/src/main.c +++ b/project/at_start_f407/examples/gpio/led_toggle/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_int.h b/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/gpio/swjtag_remap/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/swjtag_remap/readme.txt b/project/at_start_f407/examples/gpio/swjtag_remap/readme.txt index 7e2e92b3..8a4ddafc 100644 --- a/project/at_start_f407/examples/gpio/swjtag_remap/readme.txt +++ b/project/at_start_f407/examples/gpio/swjtag_remap/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,4 @@ pb2 is pressed the swj-dp will be disabled. the swj-dp pins are configured as output push-pull. the pa13(jtms/swdat), pa14(jtck/swclk), pa15(jtdi), pb3(jtdo) and pb4(jtrst) pins are toggled in an infinite loop. + for more detailed information. please refer to the application note document AN0110. \ No newline at end of file diff --git a/project/at_start_f407/examples/gpio/swjtag_remap/src/at32f403a_407_clock.c b/project/at_start_f407/examples/gpio/swjtag_remap/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/gpio/swjtag_remap/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/gpio/swjtag_remap/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/swjtag_remap/src/at32f403a_407_int.c b/project/at_start_f407/examples/gpio/swjtag_remap/src/at32f403a_407_int.c index ecce2ad0..183dc3a1 100644 --- a/project/at_start_f407/examples/gpio/swjtag_remap/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/gpio/swjtag_remap/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/gpio/swjtag_remap/src/main.c b/project/at_start_f407/examples/gpio/swjtag_remap/src/main.c index f46b04ec..8e4e85e3 100644 --- a/project/at_start_f407/examples/gpio/swjtag_remap/src/main.c +++ b/project/at_start_f407/examples/gpio/swjtag_remap/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_int.h b/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/i2c/communication_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_dma/readme.txt b/project/at_start_f407/examples/i2c/communication_dma/readme.txt index 89d31449..780778a4 100644 --- a/project/at_start_f407/examples/i2c/communication_dma/readme.txt +++ b/project/at_start_f407/examples/i2c/communication_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file communicationdma/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/i2c/communication_dma/src/at32f403a_407_clock.c b/project/at_start_f407/examples/i2c/communication_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/i2c/communication_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/i2c/communication_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_dma/src/at32f403a_407_int.c b/project/at_start_f407/examples/i2c/communication_dma/src/at32f403a_407_int.c index 61922922..50cef755 100644 --- a/project/at_start_f407/examples/i2c/communication_dma/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/i2c/communication_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_dma/src/main.c b/project/at_start_f407/examples/i2c/communication_dma/src/main.c index def086cb..bf619349 100644 --- a/project/at_start_f407/examples/i2c/communication_dma/src/main.c +++ b/project/at_start_f407/examples/i2c/communication_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_int.h b/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/i2c/communication_int/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_int/readme.txt b/project/at_start_f407/examples/i2c/communication_int/readme.txt index 039336e9..868b6410 100644 --- a/project/at_start_f407/examples/i2c/communication_int/readme.txt +++ b/project/at_start_f407/examples/i2c/communication_int/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file communicationint/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/i2c/communication_int/src/at32f403a_407_clock.c b/project/at_start_f407/examples/i2c/communication_int/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/i2c/communication_int/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/i2c/communication_int/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_int/src/at32f403a_407_int.c b/project/at_start_f407/examples/i2c/communication_int/src/at32f403a_407_int.c index 6c3dcdc9..ad7a2377 100644 --- a/project/at_start_f407/examples/i2c/communication_int/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/i2c/communication_int/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_int/src/main.c b/project/at_start_f407/examples/i2c/communication_int/src/main.c index f8c9b78f..39000bde 100644 --- a/project/at_start_f407/examples/i2c/communication_int/src/main.c +++ b/project/at_start_f407/examples/i2c/communication_int/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_int.h b/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/i2c/communication_poll/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_poll/readme.txt b/project/at_start_f407/examples/i2c/communication_poll/readme.txt index 2f253971..0146a076 100644 --- a/project/at_start_f407/examples/i2c/communication_poll/readme.txt +++ b/project/at_start_f407/examples/i2c/communication_poll/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file communication_poll/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/i2c/communication_poll/src/at32f403a_407_clock.c b/project/at_start_f407/examples/i2c/communication_poll/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/i2c/communication_poll/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/i2c/communication_poll/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_poll/src/at32f403a_407_int.c b/project/at_start_f407/examples/i2c/communication_poll/src/at32f403a_407_int.c index 8fd3127c..775a6eb3 100644 --- a/project/at_start_f407/examples/i2c/communication_poll/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/i2c/communication_poll/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/communication_poll/src/main.c b/project/at_start_f407/examples/i2c/communication_poll/src/main.c index 2ecec8ab..0e66d10b 100644 --- a/project/at_start_f407/examples/i2c/communication_poll/src/main.c +++ b/project/at_start_f407/examples/i2c/communication_poll/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_int.h b/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/i2c/eeprom/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/eeprom/readme.txt b/project/at_start_f407/examples/i2c/eeprom/readme.txt index e07a476a..c05de682 100644 --- a/project/at_start_f407/examples/i2c/eeprom/readme.txt +++ b/project/at_start_f407/examples/i2c/eeprom/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file eeprom/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/i2c/eeprom/src/at32f403a_407_clock.c b/project/at_start_f407/examples/i2c/eeprom/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/i2c/eeprom/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/i2c/eeprom/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/eeprom/src/at32f403a_407_int.c b/project/at_start_f407/examples/i2c/eeprom/src/at32f403a_407_int.c index 8da0c466..4992abd6 100644 --- a/project/at_start_f407/examples/i2c/eeprom/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/i2c/eeprom/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2c/eeprom/src/main.c b/project/at_start_f407/examples/i2c/eeprom/src/main.c index e73d60d2..519f23df 100644 --- a/project/at_start_f407/examples/i2c/eeprom/src/main.c +++ b/project/at_start_f407/examples/i2c/eeprom/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_int.h b/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/i2s/fullduplex_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/fullduplex_dma/readme.txt b/project/at_start_f407/examples/i2s/fullduplex_dma/readme.txt index 4e798a79..64ffe373 100644 --- a/project/at_start_f407/examples/i2s/fullduplex_dma/readme.txt +++ b/project/at_start_f407/examples/i2s/fullduplex_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,3 +15,5 @@ - pb13(sck) <---> pc10(sck) - pb14(miso_ext) rx <---> pc11(miso_ext) tx - pb15(mosi) tx <---> pc12(mosi) rx + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/i2s/fullduplex_dma/src/at32f403a_407_clock.c b/project/at_start_f407/examples/i2s/fullduplex_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/i2s/fullduplex_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/i2s/fullduplex_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/fullduplex_dma/src/at32f403a_407_int.c b/project/at_start_f407/examples/i2s/fullduplex_dma/src/at32f403a_407_int.c index fdfccc4a..ce3898fb 100644 --- a/project/at_start_f407/examples/i2s/fullduplex_dma/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/i2s/fullduplex_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/fullduplex_dma/src/main.c b/project/at_start_f407/examples/i2s/fullduplex_dma/src/main.c index d5a8c430..0db27542 100644 --- a/project/at_start_f407/examples/i2s/fullduplex_dma/src/main.c +++ b/project/at_start_f407/examples/i2s/fullduplex_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_int.h b/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/i2s/halfduplex_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_dma/readme.txt b/project/at_start_f407/examples/i2s/halfduplex_dma/readme.txt index fa245783..621c6cb0 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_dma/readme.txt +++ b/project/at_start_f407/examples/i2s/halfduplex_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ - pb12 <---> pa15 - pb13 <---> pb3 - pb15 <---> pb5 + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/i2s/halfduplex_dma/src/at32f403a_407_clock.c b/project/at_start_f407/examples/i2s/halfduplex_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/i2s/halfduplex_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_dma/src/at32f403a_407_int.c b/project/at_start_f407/examples/i2s/halfduplex_dma/src/at32f403a_407_int.c index d71e9507..cef85c36 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_dma/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/i2s/halfduplex_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_dma/src/main.c b/project/at_start_f407/examples/i2s/halfduplex_dma/src/main.c index 3d8374e3..24bf4c6c 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_dma/src/main.c +++ b/project/at_start_f407/examples/i2s/halfduplex_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_int.h b/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/i2s/halfduplex_interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_interrupt/readme.txt b/project/at_start_f407/examples/i2s/halfduplex_interrupt/readme.txt index 81e2eba8..f86cd26c 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_interrupt/readme.txt +++ b/project/at_start_f407/examples/i2s/halfduplex_interrupt/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ - pb12 <---> pa15 - pb13 <---> pb3 - pb15 <---> pb5 + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/at32f403a_407_clock.c b/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/at32f403a_407_int.c b/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/at32f403a_407_int.c index 6a76c2fc..83b46865 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/main.c b/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/main.c index c1f5723f..8e50452d 100644 --- a/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/main.c +++ b/project/at_start_f407/examples/i2s/halfduplex_interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_int.h b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/readme.txt b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/readme.txt index 9b17da72..26a29c56 100644 --- a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/readme.txt +++ b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ - pb12 <---> pa15 - pb13 <---> pb3 - pb15 <---> pb5 + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_clock.c b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_int.c b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_int.c index 05ccd73b..ab8559e6 100644 --- a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/main.c b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/main.c index 98a3783e..ce6d8b08 100644 --- a/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/main.c +++ b/project/at_start_f407/examples/i2s/spii2s_switch_halfduplex_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_int.h b/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/pwc/deepsleep_rtc/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/deepsleep_rtc/readme.txt b/project/at_start_f407/examples/pwc/deepsleep_rtc/readme.txt index 1aadc3c1..1c00a121 100644 --- a/project/at_start_f407/examples/pwc/deepsleep_rtc/readme.txt +++ b/project/at_start_f407/examples/pwc/deepsleep_rtc/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit deepsleep mode by interrupt of rtc alarm. + + for more detailed information. please refer to the application note document AN0100. \ No newline at end of file diff --git a/project/at_start_f407/examples/pwc/deepsleep_rtc/src/at32f403a_407_clock.c b/project/at_start_f407/examples/pwc/deepsleep_rtc/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/pwc/deepsleep_rtc/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/pwc/deepsleep_rtc/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/deepsleep_rtc/src/at32f403a_407_int.c b/project/at_start_f407/examples/pwc/deepsleep_rtc/src/at32f403a_407_int.c index 9572f53f..973c1f2b 100644 --- a/project/at_start_f407/examples/pwc/deepsleep_rtc/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/pwc/deepsleep_rtc/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/deepsleep_rtc/src/main.c b/project/at_start_f407/examples/pwc/deepsleep_rtc/src/main.c index 77385de5..74663804 100644 --- a/project/at_start_f407/examples/pwc/deepsleep_rtc/src/main.c +++ b/project/at_start_f407/examples/pwc/deepsleep_rtc/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_int.h b/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/pwc/power_voltage_monitor/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/power_voltage_monitor/readme.txt b/project/at_start_f407/examples/pwc/power_voltage_monitor/readme.txt index 28fee7f5..afda20c3 100644 --- a/project/at_start_f407/examples/pwc/power_voltage_monitor/readme.txt +++ b/project/at_start_f407/examples/pwc/power_voltage_monitor/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to configure the power voltage monitoring using external interrupt line. + + for more detailed information. please refer to the application note document AN0100. diff --git a/project/at_start_f407/examples/pwc/power_voltage_monitor/src/at32f403a_407_clock.c b/project/at_start_f407/examples/pwc/power_voltage_monitor/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/pwc/power_voltage_monitor/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/pwc/power_voltage_monitor/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/power_voltage_monitor/src/at32f403a_407_int.c b/project/at_start_f407/examples/pwc/power_voltage_monitor/src/at32f403a_407_int.c index d24fcb72..8606e112 100644 --- a/project/at_start_f407/examples/pwc/power_voltage_monitor/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/pwc/power_voltage_monitor/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/power_voltage_monitor/src/main.c b/project/at_start_f407/examples/pwc/power_voltage_monitor/src/main.c index 87360a9e..49599197 100644 --- a/project/at_start_f407/examples/pwc/power_voltage_monitor/src/main.c +++ b/project/at_start_f407/examples/pwc/power_voltage_monitor/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_int.h b/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/pwc/sleep_tmr2/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_tmr2/readme.txt b/project/at_start_f407/examples/pwc/sleep_tmr2/readme.txt index 7af3d95c..63548f6e 100644 --- a/project/at_start_f407/examples/pwc/sleep_tmr2/readme.txt +++ b/project/at_start_f407/examples/pwc/sleep_tmr2/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit sleep mode by interrupt of timer2 overflow. + + for more detailed information. please refer to the application note document AN0100. \ No newline at end of file diff --git a/project/at_start_f407/examples/pwc/sleep_tmr2/src/at32f403a_407_clock.c b/project/at_start_f407/examples/pwc/sleep_tmr2/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/pwc/sleep_tmr2/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/pwc/sleep_tmr2/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_tmr2/src/at32f403a_407_int.c b/project/at_start_f407/examples/pwc/sleep_tmr2/src/at32f403a_407_int.c index 24a9f449..57b86781 100644 --- a/project/at_start_f407/examples/pwc/sleep_tmr2/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/pwc/sleep_tmr2/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_tmr2/src/main.c b/project/at_start_f407/examples/pwc/sleep_tmr2/src/main.c index 0572297c..aff2856f 100644 --- a/project/at_start_f407/examples/pwc/sleep_tmr2/src/main.c +++ b/project/at_start_f407/examples/pwc/sleep_tmr2/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_int.h b/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/pwc/sleep_usart1/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_usart1/readme.txt b/project/at_start_f407/examples/pwc/sleep_usart1/readme.txt index 8b462913..de45f6f5 100644 --- a/project/at_start_f407/examples/pwc/sleep_usart1/readme.txt +++ b/project/at_start_f407/examples/pwc/sleep_usart1/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit sleep mode by interrupt of usart1 receive data buffer full. + + for more detailed information. please refer to the application note document AN0100. \ No newline at end of file diff --git a/project/at_start_f407/examples/pwc/sleep_usart1/src/at32f403a_407_clock.c b/project/at_start_f407/examples/pwc/sleep_usart1/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/pwc/sleep_usart1/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/pwc/sleep_usart1/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_usart1/src/at32f403a_407_int.c b/project/at_start_f407/examples/pwc/sleep_usart1/src/at32f403a_407_int.c index feddd25f..f80e4ad0 100644 --- a/project/at_start_f407/examples/pwc/sleep_usart1/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/pwc/sleep_usart1/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/sleep_usart1/src/main.c b/project/at_start_f407/examples/pwc/sleep_usart1/src/main.c index f8dd74fa..f0f192d2 100644 --- a/project/at_start_f407/examples/pwc/sleep_usart1/src/main.c +++ b/project/at_start_f407/examples/pwc/sleep_usart1/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_int.h b/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/pwc/standby_rtc/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_rtc/readme.txt b/project/at_start_f407/examples/pwc/standby_rtc/readme.txt index 7b95fc49..2a16887b 100644 --- a/project/at_start_f407/examples/pwc/standby_rtc/readme.txt +++ b/project/at_start_f407/examples/pwc/standby_rtc/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit standby mode by rtc alarm. + + for more detailed information. please refer to the application note document AN0100. \ No newline at end of file diff --git a/project/at_start_f407/examples/pwc/standby_rtc/src/at32f403a_407_clock.c b/project/at_start_f407/examples/pwc/standby_rtc/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/pwc/standby_rtc/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/pwc/standby_rtc/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_rtc/src/at32f403a_407_int.c b/project/at_start_f407/examples/pwc/standby_rtc/src/at32f403a_407_int.c index 5ab358f2..685cf3b0 100644 --- a/project/at_start_f407/examples/pwc/standby_rtc/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/pwc/standby_rtc/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_rtc/src/main.c b/project/at_start_f407/examples/pwc/standby_rtc/src/main.c index bacb08c9..c64d33a0 100644 --- a/project/at_start_f407/examples/pwc/standby_rtc/src/main.c +++ b/project/at_start_f407/examples/pwc/standby_rtc/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_int.h b/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/pwc/standby_wakeup_pin/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_wakeup_pin/readme.txt b/project/at_start_f407/examples/pwc/standby_wakeup_pin/readme.txt index 5353e6c4..696f917c 100644 --- a/project/at_start_f407/examples/pwc/standby_wakeup_pin/readme.txt +++ b/project/at_start_f407/examples/pwc/standby_wakeup_pin/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to exit standby mode by wake-up pin. + + for more detailed information. please refer to the application note document AN0100. diff --git a/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/at32f403a_407_clock.c b/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/at32f403a_407_int.c b/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/at32f403a_407_int.c index 9798b156..65cccee6 100644 --- a/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/main.c b/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/main.c index eae0fee5..40cc80b1 100644 --- a/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/main.c +++ b/project/at_start_f407/examples/pwc/standby_wakeup_pin/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_int.h b/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/rtc/calendar/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/calendar/inc/rtc.h b/project/at_start_f407/examples/rtc/calendar/inc/rtc.h index b89ec21d..6738acc5 100644 --- a/project/at_start_f407/examples/rtc/calendar/inc/rtc.h +++ b/project/at_start_f407/examples/rtc/calendar/inc/rtc.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file rtc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file provides template for calendar api. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/calendar/readme.txt b/project/at_start_f407/examples/rtc/calendar/readme.txt index dd30f1e5..59513009 100644 --- a/project/at_start_f407/examples/rtc/calendar/readme.txt +++ b/project/at_start_f407/examples/rtc/calendar/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ rtc peripherals to implement calendar and alarm clock functions. use usart1 to view calendar information. led3 flashes once when the seconds are updated, and led4 turns on when the alarm is generated. + for more detailed information. please refer to the application note document AN0111. \ No newline at end of file diff --git a/project/at_start_f407/examples/rtc/calendar/src/at32f403a_407_clock.c b/project/at_start_f407/examples/rtc/calendar/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/rtc/calendar/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/rtc/calendar/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/calendar/src/at32f403a_407_int.c b/project/at_start_f407/examples/rtc/calendar/src/at32f403a_407_int.c index b62dc92d..065fa25b 100644 --- a/project/at_start_f407/examples/rtc/calendar/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/rtc/calendar/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/calendar/src/main.c b/project/at_start_f407/examples/rtc/calendar/src/main.c index 5232fd3c..76876d00 100644 --- a/project/at_start_f407/examples/rtc/calendar/src/main.c +++ b/project/at_start_f407/examples/rtc/calendar/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/calendar/src/rtc.c b/project/at_start_f407/examples/rtc/calendar/src/rtc.c index 9b9f57f5..4bac8543 100644 --- a/project/at_start_f407/examples/rtc/calendar/src/rtc.c +++ b/project/at_start_f407/examples/rtc/calendar/src/rtc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file rtc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file provides template for calendar api. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_int.h b/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/rtc/lick_calibration/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/lick_calibration/readme.txt b/project/at_start_f407/examples/rtc/lick_calibration/readme.txt index 51e3dbde..518bb582 100644 --- a/project/at_start_f407/examples/rtc/lick_calibration/readme.txt +++ b/project/at_start_f407/examples/rtc/lick_calibration/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to use timer to calibrate the lick clock. use usart1 to view calibrate information. + for more detailed information. please refer to the application note document AN0111. \ No newline at end of file diff --git a/project/at_start_f407/examples/rtc/lick_calibration/src/at32f403a_407_clock.c b/project/at_start_f407/examples/rtc/lick_calibration/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/rtc/lick_calibration/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/rtc/lick_calibration/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/lick_calibration/src/at32f403a_407_int.c b/project/at_start_f407/examples/rtc/lick_calibration/src/at32f403a_407_int.c index 5fcacd29..15838531 100644 --- a/project/at_start_f407/examples/rtc/lick_calibration/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/rtc/lick_calibration/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/rtc/lick_calibration/src/main.c b/project/at_start_f407/examples/rtc/lick_calibration/src/main.c index 6db941fd..f525f02d 100644 --- a/project/at_start_f407/examples/rtc/lick_calibration/src/main.c +++ b/project/at_start_f407/examples/rtc/lick_calibration/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32_sdio.h b/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32_sdio.h index 7dc74700..11ad6f5d 100644 --- a/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32_sdio.h +++ b/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32_sdio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_sdio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the functions prototypes for the sd/mmc * card at32_sdio driver firmware library. ************************************************************************** @@ -73,8 +73,8 @@ typedef enum typedef enum { /* sdio specific error defines ------------------------------------------*/ - SD_CMD_FAIL = 1, /*!< command response received (but crc check failed) */ - SD_DATA_FAIL = 2, /*!< data bock sent/received (crc check failed) */ + SD_CMD_FAIL = 1, /*!< command response received (but crc check error) */ + SD_DATA_FAIL = 2, /*!< data bock sent/received (crc check error) */ SD_CMD_RSP_TIMEOUT = 3, /*!< command response timeout */ SD_DATA_TIMEOUT = 4, /*!< data time out */ SD_TX_UNDERRUN = 5, /*!< transmit fifo under-run */ @@ -86,10 +86,10 @@ typedef enum SD_ERASE_SEQ_ERR = 11, /*!< an error in the sequence of erase command occurs. */ SD_INVALID_ERASE_PARAM = 12, /*!< an invalid selection for erase groups */ SD_WR_PROTECT_VIOLATION = 13, /*!< attempt to program a write protect block */ - SD_LOCK_UNLOCK_FAILED = 14, /*!< sequence or password error has been detected in unlock command or if there was an attempt to access a locked card */ - SD_CMD_CRC_FAILED = 15, /*!< crc check of the previous command failed */ + SD_LOCK_UNLOCK_ERROR = 14, /*!< sequence or password error has been detected in unlock command or if there was an attempt to access a locked card */ + SD_CMD_CRC_ERROR = 15, /*!< crc check of the previous command error */ SD_ILLEGAL_CMD = 16, /*!< command is not legal for the card state */ - SD_CARD_ECC_FAILED = 17, /*!< card internal ecc was applied but failed to correct the data */ + SD_CARD_ECC_ERROR = 17, /*!< card internal ecc was applied but error to correct the data */ SD_CARD_CONTROLLER_ERR = 18, /*!< internal card controller error */ SD_GENERAL_UNKNOWN_ERROR = 19, /*!< general or unknown error */ SD_STREAM_RD_UNDERRUN = 20, /*!< the card could not sustain data transfer in stream read operation. */ @@ -104,7 +104,7 @@ typedef enum SD_SWITCH_ERROR = 29, /*!< switch error */ SD_SDIO_DISABLED = 30, /*!< sdio disabled */ SD_SDIO_FUNC_BUSY = 31, /*!< function busy */ - SD_SDIO_FUNC_FAILED = 32, /*!< function failed */ + SD_SDIO_FUNC_ERROR = 32, /*!< function error */ SD_SDIO_UNKNOWN_FUNC = 33, /*!< unknown function */ /* standard error defines --------------------------------------------*/ @@ -359,10 +359,10 @@ typedef struct #define SD_OCR_ERASE_SEQ_ERR ((uint32_t)0x10000000) #define SD_OCR_INVALID_ERASE_PARAM ((uint32_t)0x08000000) #define SD_OCR_WR_PROTECT_VIOLATION ((uint32_t)0x04000000) -#define SD_OCR_LOCK_UNLOCK_FAILED ((uint32_t)0x01000000) -#define SD_OCR_CMD_CRC_FAILED ((uint32_t)0x00800000) +#define SD_OCR_LOCK_UNLOCK_ERROR ((uint32_t)0x01000000) +#define SD_OCR_CMD_CRC_ERROR ((uint32_t)0x00800000) #define SD_OCR_ILLEGAL_CMD ((uint32_t)0x00400000) -#define SD_OCR_CARD_ECC_FAILED ((uint32_t)0x00200000) +#define SD_OCR_CARD_ECC_ERROR ((uint32_t)0x00200000) #define SD_OCR_CARD_CONTROLLER_ERR ((uint32_t)0x00100000) #define SD_OCR_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00080000) #define SD_OCR_STREAM_RD_UNDERRUN ((uint32_t)0x00040000) @@ -387,13 +387,13 @@ typedef struct */ #define SD_R6_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00002000) #define SD_R6_ILLEGAL_CMD ((uint32_t)0x00004000) -#define SD_R6_CMD_CRC_FAILED ((uint32_t)0x00008000) +#define SD_R6_CMD_CRC_ERROR ((uint32_t)0x00008000) #define SD_VOLTAGE_WINDOW_SD ((uint32_t)0x80100000) #define SD_HIGH_CAPACITY ((uint32_t)0x40000000) #define SD_STD_CAPACITY ((uint32_t)0x00000000) #define SD_CHECK_PATTERN ((uint32_t)0x000001AA) #define SD_VOLTAGE_WINDOW_MMC ((uint32_t)0x80FF8000) -#define SD_MAX_VOLT_TRIAL ((uint32_t)0x0000FFFF) +#define SD_MAX_VOLT_TRIAL ((uint32_t)0x000000FF) #define SD_ALLZERO ((uint32_t)0x00000000) #define SD_WIDE_BUS_SUPPORT ((uint32_t)0x00040000) #define SD_SINGLE_BUS_SUPPORT ((uint32_t)0x00010000) diff --git a/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_int.h b/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/sdio/sd_mmc_card/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sd_mmc_card/readme.txt b/project/at_start_f407/examples/sdio/sd_mmc_card/readme.txt index 7db332de..647d7aa5 100644 --- a/project/at_start_f407/examples/sdio/sd_mmc_card/readme.txt +++ b/project/at_start_f407/examples/sdio/sd_mmc_card/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,4 +17,5 @@ - sdio1_d2 pc10 ---> dat2 - sdio1_d3 pc11 ---> dat3 - sdio1_ck pc12 ---> clk - - sdio1_cmd pd2 ---> cmd \ No newline at end of file + - sdio1_cmd pd2 ---> cmd + for more detailed information. please refer to the application note document AN0105. \ No newline at end of file diff --git a/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32_sdio.c b/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32_sdio.c index 9e32bd0c..92d46fa6 100644 --- a/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32_sdio.c +++ b/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32_sdio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_sdio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file provides a set of functions needed to manage the * sdio/mmc card memory. ************************************************************************** @@ -73,6 +73,7 @@ sd_error_status_type sd_init(void) uint16_t clkdiv = 0; sd_error_status_type status = SD_OK; gpio_init_type gpio_init_struct = {0}; + uint8_t retry = 0; /* gpioc and gpiod periph clock enable */ crm_periph_clock_enable(CRM_GPIOC_PERIPH_CLOCK, TRUE); @@ -93,12 +94,17 @@ sd_error_status_type sd_init(void) gpio_init_struct.gpio_pins = GPIO_PINS_2; gpio_init(GPIOD, &gpio_init_struct); -/* reset sdio */ - sdio_reset(SDIOx); - - /* power on */ - status = sd_power_on(); - + retry = 10; + while(retry--){ + /* reset sdio */ + sdio_reset(SDIOx); + /* power on */ + status = sd_power_on(); + + if(status == SD_OK) + break; + } + if(status == SD_OK) { /* sdio card initialize */ @@ -138,8 +144,8 @@ sd_error_status_type sd_init(void) { if(sd_card_info.card_type == SDIO_STD_CAPACITY_SD_CARD_V1_1 || sd_card_info.card_type == SDIO_STD_CAPACITY_SD_CARD_V2_0) { - /* set sdio_ck to 4MHz */ - clkdiv = system_core_clock / 4000000; + /* set sdio_ck to 12mhz */ + clkdiv = system_core_clock / 12000000; if(clkdiv >= 2) { @@ -148,8 +154,8 @@ sd_error_status_type sd_init(void) } else { - /* set sdio_ck to 4MHz */ - clkdiv = system_core_clock / 4000000; + /* set sdio_ck to 48mhz */ + clkdiv = system_core_clock / 48000000; if(clkdiv >= 2) { @@ -232,16 +238,6 @@ sd_error_status_type sd_power_on(void) /* get command status */ status = command_error(); - - if(status == SD_OK) - { - break; - } - } - /* if any errors occured, return status */ - if(status != SD_OK) - { - return status; } /* send cmd8, check card interface feature */ @@ -252,7 +248,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R7 */ @@ -273,7 +269,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R1 */ @@ -293,7 +289,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R1 */ @@ -313,7 +309,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R3 */ @@ -357,7 +353,7 @@ sd_error_status_type sd_power_on(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); /* waiting R3 */ @@ -428,7 +424,7 @@ sd_error_status_type sd_card_init(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp2_error(); @@ -455,7 +451,7 @@ sd_error_status_type sd_card_init(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp6_error(SD_CMD_SET_REL_ADDR, &rca_temp); @@ -476,7 +472,7 @@ sd_error_status_type sd_card_init(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp2_error(); @@ -497,7 +493,7 @@ sd_error_status_type sd_card_init(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp2_error(); @@ -806,7 +802,7 @@ sd_error_status_type sd_deselect_select(uint32_t addr) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); return command_rsp1_error(SD_CMD_SEL_DESEL_CARD); @@ -836,7 +832,7 @@ sd_error_status_type sdio_command_data_send(sdio_command_struct_type *sdio_cmd_i /* sdio command config */ sdio_data_config(SDIOx, sdio_data_init_t); - /* enable DCSM */ + /* enable dcsm */ sdio_data_state_machine_enable(SDIOx, TRUE); length = sdio_data_init_t->data_length; @@ -855,7 +851,7 @@ sd_error_status_type sdio_command_data_send(sdio_command_struct_type *sdio_cmd_i /* sdio command config */ sdio_command_config(SDIOx, sdio_cmd_init_t); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(sdio_cmd_init_t->cmd_index); @@ -964,7 +960,7 @@ sd_error_status_type sdio_command_data_send(sdio_command_struct_type *sdio_cmd_i /* sdio command config */ sdio_command_config(SDIOx, sdio_cmd_init_t); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_STOP_TRANSMISSION); @@ -1037,7 +1033,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) end_addr = start_addr + (nblks - 1) * 512; } - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0 ; sdio_data_init_struct.timeout = SD_DATATIMEOUT ; @@ -1052,7 +1048,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_MULTIMEDIA_CARD || card_type == SDIO_HIGH_SPEED_MULTIMEDIA_CARD) @@ -1065,7 +1061,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_ERASE_GRP_START); @@ -1081,7 +1077,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_ERASE_GRP_END); @@ -1097,7 +1093,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_ERASE); @@ -1117,7 +1113,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SD_ERASE_GRP_START); @@ -1133,7 +1129,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); if(status != SD_OK) @@ -1147,7 +1143,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_ERASE); @@ -1196,7 +1192,7 @@ sd_error_status_type sd_block_read(uint8_t *buf, long long addr, uint16_t blk_si addr >>= 9; } - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1211,7 +1207,7 @@ sd_error_status_type sd_block_read(uint8_t *buf, long long addr, uint16_t blk_si /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if((blk_size > 0) && (blk_size <= 2048) && ((blk_size & (blk_size - 1)) == 0)) @@ -1226,7 +1222,7 @@ sd_error_status_type sd_block_read(uint8_t *buf, long long addr, uint16_t blk_si /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -1281,7 +1277,7 @@ sd_error_status_type sd_mult_blocks_read(uint8_t *buf, long long addr, uint16_t addr >>= 9; } - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = (sdio_block_size_type)0; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1296,7 +1292,7 @@ sd_error_status_type sd_mult_blocks_read(uint8_t *buf, long long addr, uint16_t /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if((blk_size > 0) && (blk_size <= 2048) && ((blk_size & (blk_size - 1)) == 0)) @@ -1311,7 +1307,7 @@ sd_error_status_type sd_mult_blocks_read(uint8_t *buf, long long addr, uint16_t /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -1370,7 +1366,7 @@ sd_error_status_type sd_block_write(const uint8_t *buf, long long addr, uint16_t SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = (sdio_block_size_type)0; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1385,7 +1381,7 @@ sd_error_status_type sd_block_write(const uint8_t *buf, long long addr, uint16_t /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_HIGH_CAPACITY_SD_CARD) @@ -1406,7 +1402,7 @@ sd_error_status_type sd_block_write(const uint8_t *buf, long long addr, uint16_t /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -1492,7 +1488,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = (sdio_block_size_type)0; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1507,7 +1503,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_HIGH_CAPACITY_SD_CARD) @@ -1528,7 +1524,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -1574,7 +1570,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_APP_CMD); @@ -1592,7 +1588,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCK_COUNT); @@ -1649,7 +1645,7 @@ sd_error_status_type mmc_stream_read(uint8_t *buf, long long addr, uint32_t len) SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0 ; sdio_data_init_struct.timeout = SD_DATATIMEOUT ; @@ -1664,7 +1660,7 @@ sd_error_status_type mmc_stream_read(uint8_t *buf, long long addr, uint32_t len) /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } /* send cmd11, read data */ sdio_command_init_struct.argument = addr; @@ -1703,7 +1699,7 @@ sd_error_status_type mmc_stream_write(uint8_t *buf, long long addr, uint32_t len SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0; sdio_data_init_struct.timeout = SD_DATATIMEOUT; @@ -1718,7 +1714,7 @@ sd_error_status_type mmc_stream_write(uint8_t *buf, long long addr, uint32_t len /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } /* send cmd20, write data */ sdio_command_init_struct.argument = addr; @@ -1792,7 +1788,7 @@ sd_error_status_type sd_irq_service(void) sdio_command_init_struct.wait_type = SDIO_WAIT_FOR_NO; /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); transfer_error = command_rsp1_error(SD_CMD_STOP_TRANSMISSION); } @@ -2183,7 +2179,7 @@ sd_error_status_type command_rsp6_error(uint8_t cmd, uint16_t *prca) response = sdio_response_get(SDIOx, SDIO_RSP1_INDEX); - if(SD_ALLZERO == (response & (SD_R6_GENERAL_UNKNOWN_ERROR | SD_R6_ILLEGAL_CMD | SD_R6_CMD_CRC_FAILED))) + if(SD_ALLZERO == (response & (SD_R6_GENERAL_UNKNOWN_ERROR | SD_R6_ILLEGAL_CMD | SD_R6_CMD_CRC_ERROR))) { *prca = (uint16_t)(response >> 16); return status; @@ -2199,9 +2195,9 @@ sd_error_status_type command_rsp6_error(uint8_t cmd, uint16_t *prca) return SD_ILLEGAL_CMD; } - if(response & SD_R6_CMD_CRC_FAILED) + if(response & SD_R6_CMD_CRC_ERROR) { - return SD_CMD_CRC_FAILED; + return SD_CMD_CRC_ERROR; } return status; @@ -2233,7 +2229,7 @@ sd_error_status_type sd_bus_wide_enable(confirm_state new_state) /* check card locked or not */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(sd_card_info.sd_scr_reg.sd_bus_width) @@ -2245,7 +2241,7 @@ sd_error_status_type sd_bus_wide_enable(confirm_state new_state) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_APP_CMD); @@ -2262,7 +2258,7 @@ sd_error_status_type sd_bus_wide_enable(confirm_state new_state) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_APP_SD_SET_BUSWIDTH); @@ -2293,7 +2289,7 @@ sd_error_status_type mmc_switch(uint8_t set, uint8_t index, uint8_t value) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_HS_SWITCH); @@ -2355,7 +2351,7 @@ sd_error_status_type sd_switch(uint32_t mode, uint32_t group, uint8_t value, uin /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -2400,7 +2396,7 @@ sd_error_status_type check_card_programming(uint8_t *p_status) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); sts_reg = SDIOx->sts; @@ -2459,7 +2455,7 @@ sd_error_status_type sd_status_send(uint32_t *p_card_status) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SEND_STATUS); @@ -2513,7 +2509,7 @@ sd_error_status_type scr_find(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SET_BLOCKLEN); @@ -2531,7 +2527,7 @@ sd_error_status_type scr_find(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_APP_CMD); @@ -2558,7 +2554,7 @@ sd_error_status_type scr_find(void) /* sdio command config */ sdio_command_config(SDIOx, &sdio_command_init_struct); - /* enable CCSM */ + /* enable ccsm */ sdio_command_state_machine_enable(SDIOx, TRUE); status = command_rsp1_error(SD_CMD_SD_APP_SEND_SCR); diff --git a/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32f403a_407_clock.c b/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32f403a_407_int.c b/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32f403a_407_int.c index 0ec50414..47839aab 100644 --- a/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/sdio/sd_mmc_card/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sd_mmc_card/src/main.c b/project/at_start_f407/examples/sdio/sd_mmc_card/src/main.c index 0c96524f..14bb452d 100644 --- a/project/at_start_f407/examples/sdio/sd_mmc_card/src/main.c +++ b/project/at_start_f407/examples/sdio/sd_mmc_card/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32_sdio.h b/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32_sdio.h index f7a68278..68e6b438 100644 --- a/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32_sdio.h +++ b/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32_sdio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_sdio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the functions prototypes for the sd/mmc * card at32_sdio driver firmware library. ************************************************************************** @@ -73,8 +73,8 @@ typedef enum typedef enum { /* sdio specific error defines ------------------------------------------*/ - SD_CMD_FAIL = 1, /*!< command response received (but crc check failed) */ - SD_DATA_FAIL = 2, /*!< data bock sent/received (crc check failed) */ + SD_CMD_FAIL = 1, /*!< command response received (but crc check error) */ + SD_DATA_FAIL = 2, /*!< data bock sent/received (crc check error) */ SD_CMD_RSP_TIMEOUT = 3, /*!< command response timeout */ SD_DATA_TIMEOUT = 4, /*!< data time out */ SD_TX_UNDERRUN = 5, /*!< transmit fifo under-run */ @@ -86,10 +86,10 @@ typedef enum SD_ERASE_SEQ_ERR = 11, /*!< an error in the sequence of erase command occurs. */ SD_INVALID_ERASE_PARAM = 12, /*!< an invalid selection for erase groups */ SD_WR_PROTECT_VIOLATION = 13, /*!< attempt to program a write protect block */ - SD_LOCK_UNLOCK_FAILED = 14, /*!< sequence or password error has been detected in unlock command or if there was an attempt to access a locked card */ - SD_CMD_CRC_FAILED = 15, /*!< crc check of the previous command failed */ + SD_LOCK_UNLOCK_ERROR = 14, /*!< sequence or password error has been detected in unlock command or if there was an attempt to access a locked card */ + SD_CMD_CRC_ERROR = 15, /*!< crc check of the previous command error */ SD_ILLEGAL_CMD = 16, /*!< command is not legal for the card state */ - SD_CARD_ECC_FAILED = 17, /*!< card internal ecc was applied but failed to correct the data */ + SD_CARD_ECC_ERROR = 17, /*!< card internal ecc was applied but error to correct the data */ SD_CARD_CONTROLLER_ERR = 18, /*!< internal card controller error */ SD_GENERAL_UNKNOWN_ERROR = 19, /*!< general or unknown error */ SD_STREAM_RD_UNDERRUN = 20, /*!< the card could not sustain data transfer in stream read operation. */ @@ -104,7 +104,7 @@ typedef enum SD_SWITCH_ERROR = 29, /*!< switch error */ SD_SDIO_DISABLED = 30, /*!< sdio disabled */ SD_SDIO_FUNC_BUSY = 31, /*!< function busy */ - SD_SDIO_FUNC_FAILED = 32, /*!< function failed */ + SD_SDIO_FUNC_ERROR = 32, /*!< function error */ SD_SDIO_UNKNOWN_FUNC = 33, /*!< unknown function */ /* standard error defines --------------------------------------------*/ @@ -359,10 +359,10 @@ typedef struct #define SD_OCR_ERASE_SEQ_ERR ((uint32_t)0x10000000) #define SD_OCR_INVALID_ERASE_PARAM ((uint32_t)0x08000000) #define SD_OCR_WR_PROTECT_VIOLATION ((uint32_t)0x04000000) -#define SD_OCR_LOCK_UNLOCK_FAILED ((uint32_t)0x01000000) -#define SD_OCR_CMD_CRC_FAILED ((uint32_t)0x00800000) +#define SD_OCR_LOCK_UNLOCK_ERROR ((uint32_t)0x01000000) +#define SD_OCR_CMD_CRC_ERROR ((uint32_t)0x00800000) #define SD_OCR_ILLEGAL_CMD ((uint32_t)0x00400000) -#define SD_OCR_CARD_ECC_FAILED ((uint32_t)0x00200000) +#define SD_OCR_CARD_ECC_ERROR ((uint32_t)0x00200000) #define SD_OCR_CARD_CONTROLLER_ERR ((uint32_t)0x00100000) #define SD_OCR_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00080000) #define SD_OCR_STREAM_RD_UNDERRUN ((uint32_t)0x00040000) @@ -387,13 +387,13 @@ typedef struct */ #define SD_R6_GENERAL_UNKNOWN_ERROR ((uint32_t)0x00002000) #define SD_R6_ILLEGAL_CMD ((uint32_t)0x00004000) -#define SD_R6_CMD_CRC_FAILED ((uint32_t)0x00008000) +#define SD_R6_CMD_CRC_ERROR ((uint32_t)0x00008000) #define SD_VOLTAGE_WINDOW_SD ((uint32_t)0x80100000) #define SD_HIGH_CAPACITY ((uint32_t)0x40000000) #define SD_STD_CAPACITY ((uint32_t)0x00000000) #define SD_CHECK_PATTERN ((uint32_t)0x000001AA) #define SD_VOLTAGE_WINDOW_MMC ((uint32_t)0x80FF8000) -#define SD_MAX_VOLT_TRIAL ((uint32_t)0x0000FFFF) +#define SD_MAX_VOLT_TRIAL ((uint32_t)0x000000FF) #define SD_ALLZERO ((uint32_t)0x00000000) #define SD_WIDE_BUS_SUPPORT ((uint32_t)0x00040000) #define SD_SINGLE_BUS_SUPPORT ((uint32_t)0x00010000) diff --git a/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_int.h b/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/sdio/sdio_fatfs/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sdio_fatfs/readme.txt b/project/at_start_f407/examples/sdio/sdio_fatfs/readme.txt index a066e20c..b4ebeb64 100644 --- a/project/at_start_f407/examples/sdio/sdio_fatfs/readme.txt +++ b/project/at_start_f407/examples/sdio/sdio_fatfs/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,4 @@ - sdio1_d3 pc11 ---> dat3 - sdio1_ck pc12 ---> clk - sdio1_cmd pd2 ---> cmd + for more detailed information. please refer to the application note document AN0105. \ No newline at end of file diff --git a/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32_sdio.c b/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32_sdio.c index 8c3c87b7..c5ff5931 100644 --- a/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32_sdio.c +++ b/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32_sdio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_sdio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file provides a set of functions needed to manage the * sdio/mmc card memory. ************************************************************************** @@ -74,6 +74,7 @@ sd_error_status_type sd_init(void) uint16_t clkdiv = 0; sd_error_status_type status = SD_OK; gpio_init_type gpio_init_struct = {0}; + uint8_t retry = 0; /* gpioc and gpiod periph clock enable */ crm_periph_clock_enable(CRM_GPIOC_PERIPH_CLOCK, TRUE); @@ -94,12 +95,17 @@ sd_error_status_type sd_init(void) gpio_init_struct.gpio_pins = GPIO_PINS_2; gpio_init(GPIOD, &gpio_init_struct); - /* reset sdio */ - sdio_reset(SDIOx); - - /* power on */ - status = sd_power_on(); - + retry = 10; + while(retry--){ + /* reset sdio */ + sdio_reset(SDIOx); + /* power on */ + status = sd_power_on(); + + if(status == SD_OK) + break; + } + if(status == SD_OK) { /* sdio card initialize */ @@ -139,8 +145,8 @@ sd_error_status_type sd_init(void) { if(sd_card_info.card_type == SDIO_STD_CAPACITY_SD_CARD_V1_1 || sd_card_info.card_type == SDIO_STD_CAPACITY_SD_CARD_V2_0) { - /* set sdio_ck to 4mhz */ - clkdiv = system_core_clock / 4000000; + /* set sdio_ck to 12mhz */ + clkdiv = system_core_clock / 12000000; if(clkdiv >= 2) { @@ -149,8 +155,8 @@ sd_error_status_type sd_init(void) } else { - /* set sdio_ck to 4mhz */ - clkdiv = system_core_clock / 4000000; + /* set sdio_ck to 48mhz */ + clkdiv = system_core_clock / 48000000; if(clkdiv >= 2) { @@ -239,16 +245,6 @@ sd_error_status_type sd_power_on(void) /* get command status */ status = command_error(); - - if(status == SD_OK) - { - break; - } - } - /* if any errors occured, return status */ - if(status != SD_OK) - { - return status; } /* send cmd8, check card interface feature */ @@ -1044,7 +1040,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) end_addr = start_addr + (nblks - 1) * 512; } - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0 ; sdio_data_init_struct.timeout = SD_DATATIMEOUT ; @@ -1059,7 +1055,7 @@ sd_error_status_type sd_blocks_erase(long long addr, uint32_t nblks) /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_MULTIMEDIA_CARD || card_type == SDIO_HIGH_SPEED_MULTIMEDIA_CARD) @@ -1218,7 +1214,7 @@ sd_error_status_type sd_block_read(uint8_t *buf, long long addr, uint16_t blk_si /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if((blk_size > 0) && (blk_size <= 2048) && ((blk_size & (blk_size - 1)) == 0)) @@ -1302,7 +1298,7 @@ sd_error_status_type sd_mult_blocks_read(uint8_t *buf, long long addr, uint16_t /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if((blk_size > 0) && (blk_size <= 2048) && ((blk_size & (blk_size - 1)) == 0)) @@ -1391,7 +1387,7 @@ sd_error_status_type sd_block_write(const uint8_t *buf, long long addr, uint16_t /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_HIGH_CAPACITY_SD_CARD) @@ -1513,7 +1509,7 @@ sd_error_status_type sd_mult_blocks_write(const uint8_t *buf, long long addr, ui /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(card_type == SDIO_HIGH_CAPACITY_SD_CARD) @@ -1655,7 +1651,7 @@ sd_error_status_type mmc_stream_read(uint8_t *buf, long long addr, uint32_t len) SDIOx->dtctrl = 0x0; - /* clear DCSM configuration */ + /* clear dcsm configuration */ sdio_data_init_struct.block_size = SDIO_DATA_BLOCK_SIZE_1B; sdio_data_init_struct.data_length = 0 ; sdio_data_init_struct.timeout = SD_DATATIMEOUT ; @@ -1670,7 +1666,7 @@ sd_error_status_type mmc_stream_read(uint8_t *buf, long long addr, uint32_t len) /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } /* send cmd11, read data */ sdio_command_init_struct.argument = addr; @@ -1724,7 +1720,7 @@ sd_error_status_type mmc_stream_write(uint8_t *buf, long long addr, uint32_t len /* check card locked */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } /* send cmd20, write data */ sdio_command_init_struct.argument = addr; @@ -2189,7 +2185,7 @@ sd_error_status_type command_rsp6_error(uint8_t cmd, uint16_t *prca) response = sdio_response_get(SDIOx, SDIO_RSP1_INDEX); - if(SD_ALLZERO == (response & (SD_R6_GENERAL_UNKNOWN_ERROR | SD_R6_ILLEGAL_CMD | SD_R6_CMD_CRC_FAILED))) + if(SD_ALLZERO == (response & (SD_R6_GENERAL_UNKNOWN_ERROR | SD_R6_ILLEGAL_CMD | SD_R6_CMD_CRC_ERROR))) { *prca = (uint16_t)(response >> 16); return status; @@ -2205,9 +2201,9 @@ sd_error_status_type command_rsp6_error(uint8_t cmd, uint16_t *prca) return SD_ILLEGAL_CMD; } - if(response & SD_R6_CMD_CRC_FAILED) + if(response & SD_R6_CMD_CRC_ERROR) { - return SD_CMD_CRC_FAILED; + return SD_CMD_CRC_ERROR; } return status; @@ -2239,7 +2235,7 @@ sd_error_status_type sd_bus_wide_enable(confirm_state new_state) /* check card locked or not */ if(response & SD_CARD_LOCKED) { - return SD_LOCK_UNLOCK_FAILED; + return SD_LOCK_UNLOCK_ERROR; } if(sd_card_info.sd_scr_reg.sd_bus_width) diff --git a/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32f403a_407_clock.c b/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32f403a_407_int.c b/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32f403a_407_int.c index a353784b..77635314 100644 --- a/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/sdio/sdio_fatfs/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sdio/sdio_fatfs/src/main.c b/project/at_start_f407/examples/sdio/sdio_fatfs/src/main.c index 7f6e87e1..a5caab78 100644 --- a/project/at_start_f407/examples/sdio/sdio_fatfs/src/main.c +++ b/project/at_start_f407/examples/sdio/sdio_fatfs/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_int.h b/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/spi/crc_transfer_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/crc_transfer_polling/readme.txt b/project/at_start_f407/examples/spi/crc_transfer_polling/readme.txt index 224f6952..ce5b4aa8 100644 --- a/project/at_start_f407/examples/spi/crc_transfer_polling/readme.txt +++ b/project/at_start_f407/examples/spi/crc_transfer_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ pb13(sck) <---> pa5(sck) pb14(miso) <---> pa6(miso) pb15(mosi) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/spi/crc_transfer_polling/src/at32f403a_407_clock.c b/project/at_start_f407/examples/spi/crc_transfer_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/spi/crc_transfer_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/spi/crc_transfer_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/crc_transfer_polling/src/at32f403a_407_int.c b/project/at_start_f407/examples/spi/crc_transfer_polling/src/at32f403a_407_int.c index 12a901ba..d5313c5c 100644 --- a/project/at_start_f407/examples/spi/crc_transfer_polling/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/spi/crc_transfer_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/crc_transfer_polling/src/main.c b/project/at_start_f407/examples/spi/crc_transfer_polling/src/main.c index f065a84f..9107b950 100644 --- a/project/at_start_f407/examples/spi/crc_transfer_polling/src/main.c +++ b/project/at_start_f407/examples/spi/crc_transfer_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_int.h b/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/spi/fullduplex_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/fullduplex_polling/readme.txt b/project/at_start_f407/examples/spi/fullduplex_polling/readme.txt index 0f6c4717..d9111f46 100644 --- a/project/at_start_f407/examples/spi/fullduplex_polling/readme.txt +++ b/project/at_start_f407/examples/spi/fullduplex_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ pb13(sck) <---> pa5(sck) pb14(miso) <---> pa6(miso) pb15(mosi) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/spi/fullduplex_polling/src/at32f403a_407_clock.c b/project/at_start_f407/examples/spi/fullduplex_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/spi/fullduplex_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/spi/fullduplex_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/fullduplex_polling/src/at32f403a_407_int.c b/project/at_start_f407/examples/spi/fullduplex_polling/src/at32f403a_407_int.c index 90d0c215..910773f3 100644 --- a/project/at_start_f407/examples/spi/fullduplex_polling/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/spi/fullduplex_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/fullduplex_polling/src/main.c b/project/at_start_f407/examples/spi/fullduplex_polling/src/main.c index efccaa3c..8c61e063 100644 --- a/project/at_start_f407/examples/spi/fullduplex_polling/src/main.c +++ b/project/at_start_f407/examples/spi/fullduplex_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_int.h b/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/spi/halfduplex_interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_interrupt/readme.txt b/project/at_start_f407/examples/spi/halfduplex_interrupt/readme.txt index c1348cc3..c1ed22df 100644 --- a/project/at_start_f407/examples/spi/halfduplex_interrupt/readme.txt +++ b/project/at_start_f407/examples/spi/halfduplex_interrupt/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ - spi2 slaver spi1 master pb13(sck) <---> pa5(sck) pb14(miso) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/spi/halfduplex_interrupt/src/at32f403a_407_clock.c b/project/at_start_f407/examples/spi/halfduplex_interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/spi/halfduplex_interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/spi/halfduplex_interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_interrupt/src/at32f403a_407_int.c b/project/at_start_f407/examples/spi/halfduplex_interrupt/src/at32f403a_407_int.c index c40cd4ab..341fc20b 100644 --- a/project/at_start_f407/examples/spi/halfduplex_interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/spi/halfduplex_interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_interrupt/src/main.c b/project/at_start_f407/examples/spi/halfduplex_interrupt/src/main.c index f309f420..8446b319 100644 --- a/project/at_start_f407/examples/spi/halfduplex_interrupt/src/main.c +++ b/project/at_start_f407/examples/spi/halfduplex_interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_int.h b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/readme.txt b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/readme.txt index b2d079a0..da1ed8b3 100644 --- a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/readme.txt +++ b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ - spi2 slaver spi1 master pb13(sck) <---> pa5(sck) pb14(miso) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_clock.c b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_int.c b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_int.c index fbf97800..a8074fc4 100644 --- a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/main.c b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/main.c index 36b1fe39..e731a966 100644 --- a/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/main.c +++ b/project/at_start_f407/examples/spi/halfduplex_transceiver_switch/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_int.h b/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/spi/only_receive_mode_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/only_receive_mode_polling/readme.txt b/project/at_start_f407/examples/spi/only_receive_mode_polling/readme.txt index 49a8538a..87078413 100644 --- a/project/at_start_f407/examples/spi/only_receive_mode_polling/readme.txt +++ b/project/at_start_f407/examples/spi/only_receive_mode_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ - spi2 slaver spi1 master pb13(sck) <---> pa5(sck) pb15(mosi) <---> pa7(mosi) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/spi/only_receive_mode_polling/src/at32f403a_407_clock.c b/project/at_start_f407/examples/spi/only_receive_mode_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/spi/only_receive_mode_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/spi/only_receive_mode_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/only_receive_mode_polling/src/at32f403a_407_int.c b/project/at_start_f407/examples/spi/only_receive_mode_polling/src/at32f403a_407_int.c index db3bd85f..edcb1651 100644 --- a/project/at_start_f407/examples/spi/only_receive_mode_polling/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/spi/only_receive_mode_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/only_receive_mode_polling/src/main.c b/project/at_start_f407/examples/spi/only_receive_mode_polling/src/main.c index 91436598..4c5bf6dd 100644 --- a/project/at_start_f407/examples/spi/only_receive_mode_polling/src/main.c +++ b/project/at_start_f407/examples/spi/only_receive_mode_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_int.h b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/readme.txt b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/readme.txt index cb8c7fc7..c8a662dc 100644 --- a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/readme.txt +++ b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,3 +15,5 @@ - pb12(cs) <---> pa15(cs) pb13(sck) <---> pb3(sck) pb14(miso) <---> pb5(miso) + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_clock.c b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_int.c b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_int.c index a15a7572..8f4b173c 100644 --- a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c index 1eb0d0bd..9cbd5564 100644 --- a/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c +++ b/project/at_start_f407/examples/spi/use_jtagpin_hardwarecs_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -186,6 +186,10 @@ int main(void) { system_clock_config(); at32_board_init(); + + /* button press:ensure code canbe download normally */ + while(at32_button_press() == NO_BUTTON); + gpio_config(); spi_config(); dma_channel_enable(DMA1_CHANNEL4, TRUE); diff --git a/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_int.h b/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/spi/w25q_flash/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/w25q_flash/inc/spi_flash.h b/project/at_start_f407/examples/spi/w25q_flash/inc/spi_flash.h index 41b6b86e..2c78c7ac 100644 --- a/project/at_start_f407/examples/spi/w25q_flash/inc/spi_flash.h +++ b/project/at_start_f407/examples/spi/w25q_flash/inc/spi_flash.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file spi_flash.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of spi_flash ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/w25q_flash/readme.txt b/project/at_start_f407/examples/spi/w25q_flash/readme.txt index bb993e86..c9dc8991 100644 --- a/project/at_start_f407/examples/spi/w25q_flash/readme.txt +++ b/project/at_start_f407/examples/spi/w25q_flash/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,3 +15,5 @@ - miso <---> pa6 - mosi <---> pa7 - usart1_tx <---> pa9 + + for more detailed information. please refer to the application note document AN0102. \ No newline at end of file diff --git a/project/at_start_f407/examples/spi/w25q_flash/src/at32f403a_407_clock.c b/project/at_start_f407/examples/spi/w25q_flash/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/spi/w25q_flash/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/spi/w25q_flash/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/w25q_flash/src/at32f403a_407_int.c b/project/at_start_f407/examples/spi/w25q_flash/src/at32f403a_407_int.c index 6f15ae3a..0fc36bae 100644 --- a/project/at_start_f407/examples/spi/w25q_flash/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/spi/w25q_flash/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/w25q_flash/src/main.c b/project/at_start_f407/examples/spi/w25q_flash/src/main.c index c15c0708..b4d32370 100644 --- a/project/at_start_f407/examples/spi/w25q_flash/src/main.c +++ b/project/at_start_f407/examples/spi/w25q_flash/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/spi/w25q_flash/src/spi_flash.c b/project/at_start_f407/examples/spi/w25q_flash/src/spi_flash.c index adcd0892..9fda6d9f 100644 --- a/project/at_start_f407/examples/spi/w25q_flash/src/spi_flash.c +++ b/project/at_start_f407/examples/spi/w25q_flash/src/spi_flash.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file spi_flash.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief spi_flash source code ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sram/extend_sram/iar_v8.2/startup_at32f403a_407_ext_ram.s b/project/at_start_f407/examples/sram/extend_sram/iar_v8.2/startup_at32f403a_407_ext_ram.s index 0a623fa6..18743669 100644 --- a/project/at_start_f407/examples/sram/extend_sram/iar_v8.2/startup_at32f403a_407_ext_ram.s +++ b/project/at_start_f407/examples/sram/extend_sram/iar_v8.2/startup_at32f403a_407_ext_ram.s @@ -1,7 +1,7 @@ ;************************************************************************** ;* @file startup_at32f403a_407.s -;* @version v2.0.8 -;* @date 2022-04-02 +;* @version v2.0.9 +;* @date 2022-04-25 ;* @brief at32f403a_407 startup file for IAR Systems ;************************************************************************** diff --git a/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_int.h b/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/sram/extend_sram/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sram/extend_sram/mdk_v5/startup_at32f403a_407_ext_ram.s b/project/at_start_f407/examples/sram/extend_sram/mdk_v5/startup_at32f403a_407_ext_ram.s index d9baaa8a..81814b79 100644 --- a/project/at_start_f407/examples/sram/extend_sram/mdk_v5/startup_at32f403a_407_ext_ram.s +++ b/project/at_start_f407/examples/sram/extend_sram/mdk_v5/startup_at32f403a_407_ext_ram.s @@ -1,7 +1,7 @@ ;************************************************************************** ;* @file startup_at32f403a_407.s -;* @version v2.0.8 -;* @date 2022-04-02 +;* @version v2.0.9 +;* @date 2022-04-25 ;* @brief at32f403a_407 startup file for keil ;************************************************************************** ; diff --git a/project/at_start_f407/examples/sram/extend_sram/readme.txt b/project/at_start_f407/examples/sram/extend_sram/readme.txt index 78b7586d..04cb1f35 100644 --- a/project/at_start_f407/examples/sram/extend_sram/readme.txt +++ b/project/at_start_f407/examples/sram/extend_sram/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/examples/sram/extend_sram/src/at32f403a_407_clock.c b/project/at_start_f407/examples/sram/extend_sram/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/sram/extend_sram/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/sram/extend_sram/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sram/extend_sram/src/at32f403a_407_int.c b/project/at_start_f407/examples/sram/extend_sram/src/at32f403a_407_int.c index 66af948d..1755cd91 100644 --- a/project/at_start_f407/examples/sram/extend_sram/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/sram/extend_sram/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/sram/extend_sram/src/main.c b/project/at_start_f407/examples/sram/extend_sram/src/main.c index f7d8592c..0fcb349a 100644 --- a/project/at_start_f407/examples/sram/extend_sram/src/main.c +++ b/project/at_start_f407/examples/sram/extend_sram/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/6_steps/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/6_steps/readme.txt b/project/at_start_f407/examples/tmr/6_steps/readme.txt index 67ddb23e..9bc8a688 100644 --- a/project/at_start_f407/examples/tmr/6_steps/readme.txt +++ b/project/at_start_f407/examples/tmr/6_steps/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -33,4 +33,6 @@ - tmr1_ch2 ---> pa9 - tmr1_ch3c ---> pb15 - tmr1_ch1 ---> pa8 - - tmr1_ch2c ---> pb14 \ No newline at end of file + - tmr1_ch2c ---> pb14 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/6_steps/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/6_steps/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/6_steps/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/6_steps/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/6_steps/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/6_steps/src/at32f403a_407_int.c index 48e6634e..bda8c0fb 100644 --- a/project/at_start_f407/examples/tmr/6_steps/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/6_steps/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/6_steps/src/main.c b/project/at_start_f407/examples/tmr/6_steps/src/main.c index b4293e73..d0151c5a 100644 --- a/project/at_start_f407/examples/tmr/6_steps/src/main.c +++ b/project/at_start_f407/examples/tmr/6_steps/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/7_pwm_output/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/7_pwm_output/readme.txt b/project/at_start_f407/examples/tmr/7_pwm_output/readme.txt index ce70c704..e38a8067 100644 --- a/project/at_start_f407/examples/tmr/7_pwm_output/readme.txt +++ b/project/at_start_f407/examples/tmr/7_pwm_output/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -29,4 +29,6 @@ - tmr1_ch2c ---> pb14 - tmr1_ch3 ---> pa10 - tmr1_ch3c ---> pb15 - - tmr1_ch4 ---> pa11 \ No newline at end of file + - tmr1_ch4 ---> pa11 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/7_pwm_output/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/7_pwm_output/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/7_pwm_output/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/7_pwm_output/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/7_pwm_output/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/7_pwm_output/src/at32f403a_407_int.c index 05c50ec9..47d029ff 100644 --- a/project/at_start_f407/examples/tmr/7_pwm_output/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/7_pwm_output/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/7_pwm_output/src/main.c b/project/at_start_f407/examples/tmr/7_pwm_output/src/main.c index 5553658a..a78d5361 100644 --- a/project/at_start_f407/examples/tmr/7_pwm_output/src/main.c +++ b/project/at_start_f407/examples/tmr/7_pwm_output/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/cascade_synchro/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/cascade_synchro/readme.txt b/project/at_start_f407/examples/tmr/cascade_synchro/readme.txt index 6bcb73b8..3caec544 100644 --- a/project/at_start_f407/examples/tmr/cascade_synchro/readme.txt +++ b/project/at_start_f407/examples/tmr/cascade_synchro/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -51,4 +51,6 @@ connect the following pins to an oscilloscope to monitor the different waveforms: - tmr2 ch1 (pa.00) - tmr3 ch1 (pa.06) - - tmr4 ch1 (pb.06) \ No newline at end of file + - tmr4 ch1 (pb.06) + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/cascade_synchro/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/cascade_synchro/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/cascade_synchro/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/cascade_synchro/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/cascade_synchro/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/cascade_synchro/src/at32f403a_407_int.c index abd6ab4d..24997829 100644 --- a/project/at_start_f407/examples/tmr/cascade_synchro/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/cascade_synchro/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/cascade_synchro/src/main.c b/project/at_start_f407/examples/tmr/cascade_synchro/src/main.c index b9ed7e9a..b48f004a 100644 --- a/project/at_start_f407/examples/tmr/cascade_synchro/src/main.c +++ b/project/at_start_f407/examples/tmr/cascade_synchro/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/complementary_signals/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/complementary_signals/readme.txt b/project/at_start_f407/examples/tmr/complementary_signals/readme.txt index dc3b4692..b5b5577a 100644 --- a/project/at_start_f407/examples/tmr/complementary_signals/readme.txt +++ b/project/at_start_f407/examples/tmr/complementary_signals/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -47,4 +47,6 @@ - tmr1_ch3c pin (pb.15) - connect the tmr1 break pin tmr1_brkin pin (pb.12) to the gnd. to generate a - break event, switch this pin level from 0v to 3.3v. \ No newline at end of file + break event, switch this pin level from 0v to 3.3v. + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/complementary_signals/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/complementary_signals/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/complementary_signals/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/complementary_signals/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/complementary_signals/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/complementary_signals/src/at32f403a_407_int.c index b4ceed1f..1760d190 100644 --- a/project/at_start_f407/examples/tmr/complementary_signals/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/complementary_signals/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/complementary_signals/src/main.c b/project/at_start_f407/examples/tmr/complementary_signals/src/main.c index 5fc07523..ecb23a33 100644 --- a/project/at_start_f407/examples/tmr/complementary_signals/src/main.c +++ b/project/at_start_f407/examples/tmr/complementary_signals/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma/readme.txt b/project/at_start_f407/examples/tmr/dma/readme.txt index 27ed4783..bcab0c3f 100644 --- a/project/at_start_f407/examples/tmr/dma/readme.txt +++ b/project/at_start_f407/examples/tmr/dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -15,4 +15,6 @@ connect the following pins to an oscilloscope to monitor the different waveforms: - tmr1 ch3 ---> pa10 - - tmr1 ch3c ---> pb15 \ No newline at end of file + - tmr1 ch3c ---> pb15 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/dma/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/dma/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/dma/src/at32f403a_407_int.c index 82c67605..c2aefbbe 100644 --- a/project/at_start_f407/examples/tmr/dma/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma/src/main.c b/project/at_start_f407/examples/tmr/dma/src/main.c index 868ba2d0..2caff35b 100644 --- a/project/at_start_f407/examples/tmr/dma/src/main.c +++ b/project/at_start_f407/examples/tmr/dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/dma_burst/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma_burst/readme.txt b/project/at_start_f407/examples/tmr/dma_burst/readme.txt index 81c02bcc..b0e96060 100644 --- a/project/at_start_f407/examples/tmr/dma_burst/readme.txt +++ b/project/at_start_f407/examples/tmr/dma_burst/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -27,4 +27,6 @@ set-up connect the following pins to an oscilloscope to monitor the different waveforms: - - tim1 ch1 ---> pa8 \ No newline at end of file + - tim1 ch1 ---> pa8 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/dma_burst/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/dma_burst/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/dma_burst/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/dma_burst/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma_burst/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/dma_burst/src/at32f403a_407_int.c index 854e60d9..10673a10 100644 --- a/project/at_start_f407/examples/tmr/dma_burst/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/dma_burst/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/dma_burst/src/main.c b/project/at_start_f407/examples/tmr/dma_burst/src/main.c index 34ae0488..add6a9be 100644 --- a/project/at_start_f407/examples/tmr/dma_burst/src/main.c +++ b/project/at_start_f407/examples/tmr/dma_burst/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/encoder_tmr2/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/encoder_tmr2/readme.txt b/project/at_start_f407/examples/tmr/encoder_tmr2/readme.txt index f422521a..b198548c 100644 --- a/project/at_start_f407/examples/tmr/encoder_tmr2/readme.txt +++ b/project/at_start_f407/examples/tmr/encoder_tmr2/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,4 +11,6 @@ added 4 each period. pin connection: - pa0 <---> pa2 - - pa1 <---> pa3 \ No newline at end of file + - pa1 <---> pa3 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/encoder_tmr2/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/encoder_tmr2/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/encoder_tmr2/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/encoder_tmr2/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/encoder_tmr2/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/encoder_tmr2/src/at32f403a_407_int.c index d75c8935..787ae497 100644 --- a/project/at_start_f407/examples/tmr/encoder_tmr2/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/encoder_tmr2/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/encoder_tmr2/src/main.c b/project/at_start_f407/examples/tmr/encoder_tmr2/src/main.c index d0cc08db..a511e1da 100644 --- a/project/at_start_f407/examples/tmr/encoder_tmr2/src/main.c +++ b/project/at_start_f407/examples/tmr/encoder_tmr2/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/external_clock/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/external_clock/readme.txt b/project/at_start_f407/examples/tmr/external_clock/readme.txt index e5cccad9..87f7df4b 100644 --- a/project/at_start_f407/examples/tmr/external_clock/readme.txt +++ b/project/at_start_f407/examples/tmr/external_clock/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,4 +10,6 @@ this demo is based on the at-start board, in this demo, pb0 output pwm waves. connection : - pa0 <---> pa7 - - pb0 output 4.16 hz pwm waveform \ No newline at end of file + - pb0 output 4.16 hz pwm waveform + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/external_clock/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/external_clock/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/external_clock/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/external_clock/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/external_clock/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/external_clock/src/at32f403a_407_int.c index fef29f1d..b23cfd95 100644 --- a/project/at_start_f407/examples/tmr/external_clock/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/external_clock/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/external_clock/src/main.c b/project/at_start_f407/examples/tmr/external_clock/src/main.c index 86ed985f..6c7099e3 100644 --- a/project/at_start_f407/examples/tmr/external_clock/src/main.c +++ b/project/at_start_f407/examples/tmr/external_clock/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/hall_xor_tmr2/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hall_xor_tmr2/readme.txt b/project/at_start_f407/examples/tmr/hall_xor_tmr2/readme.txt index 4fa6d42e..d0fefc46 100644 --- a/project/at_start_f407/examples/tmr/hall_xor_tmr2/readme.txt +++ b/project/at_start_f407/examples/tmr/hall_xor_tmr2/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ - pa0 <---> pa3 - pa1 <---> pa6 - pa2 <---> pa7 + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/at32f403a_407_int.c index 7da8476b..4040999a 100644 --- a/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/main.c b/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/main.c index 8d06e832..70ab3b32 100644 --- a/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/main.c +++ b/project/at_start_f407/examples/tmr/hall_xor_tmr2/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/hang_mode/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hang_mode/readme.txt b/project/at_start_f407/examples/tmr/hang_mode/readme.txt index 7893aaa5..6be35b63 100644 --- a/project/at_start_f407/examples/tmr/hang_mode/readme.txt +++ b/project/at_start_f407/examples/tmr/hang_mode/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -26,4 +26,6 @@ set-up connect the following pins to an oscilloscope to monitor the different waveforms: - - tim1 ch1 ---> pa8 \ No newline at end of file + - tim1 ch1 ---> pa8 + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/hang_mode/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/hang_mode/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/hang_mode/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/hang_mode/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hang_mode/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/hang_mode/src/at32f403a_407_int.c index d2d64167..090371e1 100644 --- a/project/at_start_f407/examples/tmr/hang_mode/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/hang_mode/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/hang_mode/src/main.c b/project/at_start_f407/examples/tmr/hang_mode/src/main.c index 11de2df2..06e5e754 100644 --- a/project/at_start_f407/examples/tmr/hang_mode/src/main.c +++ b/project/at_start_f407/examples/tmr/hang_mode/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/input_capture/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/input_capture/readme.txt b/project/at_start_f407/examples/tmr/input_capture/readme.txt index 573177ca..e85d9cef 100644 --- a/project/at_start_f407/examples/tmr/input_capture/readme.txt +++ b/project/at_start_f407/examples/tmr/input_capture/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,4 +11,6 @@ the tmr peripheral to measure the frequency of an external signal. the minimum frequency value to measure is 3.66 khz(240m/65536). set-up - - connect the external signal to measure to the tim3 ch2 pin (pa7). \ No newline at end of file + - connect the external signal to measure to the tim3 ch2 pin (pa7). + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/input_capture/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/input_capture/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/input_capture/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/input_capture/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/input_capture/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/input_capture/src/at32f403a_407_int.c index bb0d2465..d2db3d4a 100644 --- a/project/at_start_f407/examples/tmr/input_capture/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/input_capture/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/input_capture/src/main.c b/project/at_start_f407/examples/tmr/input_capture/src/main.c index b6cedf73..e1748d43 100644 --- a/project/at_start_f407/examples/tmr/input_capture/src/main.c +++ b/project/at_start_f407/examples/tmr/input_capture/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/oc_high/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_high/readme.txt b/project/at_start_f407/examples/tmr/oc_high/readme.txt index 44862e9a..e395c8f6 100644 --- a/project/at_start_f407/examples/tmr/oc_high/readme.txt +++ b/project/at_start_f407/examples/tmr/oc_high/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -26,3 +26,5 @@ - pc7 - pc8 - pc9 + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f407/examples/tmr/oc_high/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/oc_high/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/oc_high/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/oc_high/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_high/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/oc_high/src/at32f403a_407_int.c index dc36f1ab..d6cdfa17 100644 --- a/project/at_start_f407/examples/tmr/oc_high/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/oc_high/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_high/src/main.c b/project/at_start_f407/examples/tmr/oc_high/src/main.c index 3aeb0111..0344f8e8 100644 --- a/project/at_start_f407/examples/tmr/oc_high/src/main.c +++ b/project/at_start_f407/examples/tmr/oc_high/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/oc_low/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_low/readme.txt b/project/at_start_f407/examples/tmr/oc_low/readme.txt index 595b5566..c28818e8 100644 --- a/project/at_start_f407/examples/tmr/oc_low/readme.txt +++ b/project/at_start_f407/examples/tmr/oc_low/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -26,3 +26,5 @@ - pc7 - pc8 - pc9 + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f407/examples/tmr/oc_low/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/oc_low/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/oc_low/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/oc_low/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_low/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/oc_low/src/at32f403a_407_int.c index 219001da..8910a52e 100644 --- a/project/at_start_f407/examples/tmr/oc_low/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/oc_low/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_low/src/main.c b/project/at_start_f407/examples/tmr/oc_low/src/main.c index 8189f5f4..4d742080 100644 --- a/project/at_start_f407/examples/tmr/oc_low/src/main.c +++ b/project/at_start_f407/examples/tmr/oc_low/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/readme.txt b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/readme.txt index 547a562e..89190a09 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/readme.txt +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ cc2 overflow rate = tmr3 counter clock / c2dt_val = 732.4 hz cc3 overflow rate = tmr3 counter clock / c3dt_val = 1464.8 hz cc4 overflow rate = tmr3 counter clock / c4dt_val = 2929.6 hz + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_int.c index d643763d..6bafe7cc 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/main.c b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/main.c index 7cb3968f..7b91fb83 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/main.c +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr3/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/readme.txt b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/readme.txt index edd00b27..e8445738 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/readme.txt +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,5 @@ waveform. tmr9_ch1 toggling with frequency = 366.2 hz tmr9_ch2 toggling with frequency = 732.4 hz + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_int.c index 6e06f4ed..ac259ec5 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/main.c b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/main.c index a5555b09..d6b3bf76 100644 --- a/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/main.c +++ b/project/at_start_f407/examples/tmr/oc_toggle_tmr9/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/one_cycle/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/one_cycle/readme.txt b/project/at_start_f407/examples/tmr/one_cycle/readme.txt index bc48ca00..62d9329e 100644 --- a/project/at_start_f407/examples/tmr/one_cycle/readme.txt +++ b/project/at_start_f407/examples/tmr/one_cycle/readme.txt @@ -1,11 +1,13 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, pb7 connect to a key, press the key then pb6 output a pulse. pulse width = 2.048 ms. + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f407/examples/tmr/one_cycle/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/one_cycle/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/one_cycle/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/one_cycle/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/one_cycle/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/one_cycle/src/at32f403a_407_int.c index a8bb486a..e7e36b5f 100644 --- a/project/at_start_f407/examples/tmr/one_cycle/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/one_cycle/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/one_cycle/src/main.c b/project/at_start_f407/examples/tmr/one_cycle/src/main.c index d4f4c3c8..ad7f4f25 100644 --- a/project/at_start_f407/examples/tmr/one_cycle/src/main.c +++ b/project/at_start_f407/examples/tmr/one_cycle/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/parallel_synchro/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/parallel_synchro/readme.txt b/project/at_start_f407/examples/tmr/parallel_synchro/readme.txt index 6fec7782..ba631fd3 100644 --- a/project/at_start_f407/examples/tmr/parallel_synchro/readme.txt +++ b/project/at_start_f407/examples/tmr/parallel_synchro/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,5 @@ the tmr4 is running: - at (tmr2 frequency)/ (tmr4 period + 1) = 150 khz and a duty cycle equal to tmr4_c1dt/(tmr4_pr + 1) = 60% + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f407/examples/tmr/parallel_synchro/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/parallel_synchro/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/parallel_synchro/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/parallel_synchro/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/parallel_synchro/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/parallel_synchro/src/at32f403a_407_int.c index 62b8de93..b3ae75db 100644 --- a/project/at_start_f407/examples/tmr/parallel_synchro/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/parallel_synchro/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/parallel_synchro/src/main.c b/project/at_start_f407/examples/tmr/parallel_synchro/src/main.c index 6207a885..5e1a5ea1 100644 --- a/project/at_start_f407/examples/tmr/parallel_synchro/src/main.c +++ b/project/at_start_f407/examples/tmr/parallel_synchro/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/pwm_input/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input/readme.txt b/project/at_start_f407/examples/tmr/pwm_input/readme.txt index c7b0cff3..1e057459 100644 --- a/project/at_start_f407/examples/tmr/pwm_input/readme.txt +++ b/project/at_start_f407/examples/tmr/pwm_input/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,5 @@ this demo is based on the at-start board, in this demo, pa7 input external signal,debug view to see frequency and duty_cycle or use uasrt1 to see frequency and duty_cycle(pa9:usart1_tx). + + for more detailed information. please refer to the application note document AN0085.s diff --git a/project/at_start_f407/examples/tmr/pwm_input/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/pwm_input/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/pwm_input/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/pwm_input/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/pwm_input/src/at32f403a_407_int.c index 6cf70f1e..73b671ae 100644 --- a/project/at_start_f407/examples/tmr/pwm_input/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/pwm_input/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input/src/main.c b/project/at_start_f407/examples/tmr/pwm_input/src/main.c index 0349169c..24c9e434 100644 --- a/project/at_start_f407/examples/tmr/pwm_input/src/main.c +++ b/project/at_start_f407/examples/tmr/pwm_input/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/pwm_input_dma/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input_dma/readme.txt b/project/at_start_f407/examples/tmr/pwm_input_dma/readme.txt index f43f7bc7..79ddd746 100644 --- a/project/at_start_f407/examples/tmr/pwm_input_dma/readme.txt +++ b/project/at_start_f407/examples/tmr/pwm_input_dma/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,5 @@ this demo is based on the at-start-f403 board, in this demo, pa8 input external signal,debug view to see frequency and duty_cycle or use uasrt1 to see frequency and duty_cycle(pa9:usart1_tx). + + for more detailed information. please refer to the application note document AN0085. diff --git a/project/at_start_f407/examples/tmr/pwm_input_dma/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/pwm_input_dma/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/pwm_input_dma/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/pwm_input_dma/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input_dma/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/pwm_input_dma/src/at32f403a_407_int.c index 9cf94623..0727cb5b 100644 --- a/project/at_start_f407/examples/tmr/pwm_input_dma/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/pwm_input_dma/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_input_dma/src/main.c b/project/at_start_f407/examples/tmr/pwm_input_dma/src/main.c index 81bf89fa..7a84cf83 100644 --- a/project/at_start_f407/examples/tmr/pwm_input_dma/src/main.c +++ b/project/at_start_f407/examples/tmr/pwm_input_dma/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/pwm_output_simulate/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_simulate/readme.txt b/project/at_start_f407/examples/tmr/pwm_output_simulate/readme.txt index 5ab695e2..d48f9812 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_simulate/readme.txt +++ b/project/at_start_f407/examples/tmr/pwm_output_simulate/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -12,4 +12,6 @@ cc1 overflow rate = tmr2 counter clock / c1dt_val = 146.48 hz cc2 overflow rate = tmr2 counter clock / c2dt_val = 219.7 hz cc3 overflow rate = tmr2 counter clock / c3dt_val = 439.4 hz - cc4 overflow rate = tmr2 counter clock / c4dt_val = 878.9 hz \ No newline at end of file + cc4 overflow rate = tmr2 counter clock / c4dt_val = 878.9 hz + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/pwm_output_simulate/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/pwm_output_simulate/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_simulate/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/pwm_output_simulate/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_simulate/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/pwm_output_simulate/src/at32f403a_407_int.c index 9dc28fa7..0cbe144b 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_simulate/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/pwm_output_simulate/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_simulate/src/main.c b/project/at_start_f407/examples/tmr/pwm_output_simulate/src/main.c index 838a61a4..d2658d4d 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_simulate/src/main.c +++ b/project/at_start_f407/examples/tmr/pwm_output_simulate/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr10/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr10/readme.txt b/project/at_start_f407/examples/tmr/pwm_output_tmr10/readme.txt index f68edafa..8864f14c 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr10/readme.txt +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr10/readme.txt @@ -1,10 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ - this demo is based on the at-start board, in this demo, pb8 output pwm waveform. \ No newline at end of file + this demo is based on the at-start board, in this demo, pb8 output pwm waveform. + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/at32f403a_407_int.c index 0c1402cb..9d75c7aa 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/main.c b/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/main.c index aa4be71d..7780c207 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/main.c +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr10/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr3/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr3/readme.txt b/project/at_start_f407/examples/tmr/pwm_output_tmr3/readme.txt index cb5d4879..fead807b 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr3/readme.txt +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr3/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -12,4 +12,6 @@ tmr3 channel1 duty cycle = (tmr3_c1dt/ tmr3_pr)* 100 = 50% tmr3 channel2 duty cycle = (tmr3_c2dt/ tmr3_pr)* 100 = 37.5% tmr3 channel3 duty cycle = (tmr3_c3dt/ tmr3_pr)* 100 = 25% - tmr3 channel4 duty cycle = (tmr3_c4dt/ tmr3_pr)* 100 = 12.5% \ No newline at end of file + tmr3 channel4 duty cycle = (tmr3_c4dt/ tmr3_pr)* 100 = 12.5% + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/at32f403a_407_int.c index 6c6300f4..c768fa18 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/main.c b/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/main.c index 976a3e4e..59151faa 100644 --- a/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/main.c +++ b/project/at_start_f407/examples/tmr/pwm_output_tmr3/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/timer_base/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/timer_base/readme.txt b/project/at_start_f407/examples/tmr/timer_base/readme.txt index cc343625..d6a883ac 100644 --- a/project/at_start_f407/examples/tmr/timer_base/readme.txt +++ b/project/at_start_f407/examples/tmr/timer_base/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,5 @@ this demo is based on the at-start board, in this demo, shows how to configure the tmr1 peripheral to a base interrupt. when systermclock/24000/10000 = 1hz will generater overflow interrupt and toggle led3. + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/timer_base/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/timer_base/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/timer_base/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/timer_base/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/timer_base/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/timer_base/src/at32f403a_407_int.c index cb9b94b7..546da1d6 100644 --- a/project/at_start_f407/examples/tmr/timer_base/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/timer_base/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/timer_base/src/main.c b/project/at_start_f407/examples/tmr/timer_base/src/main.c index fa60cf7c..0c5da9ff 100644 --- a/project/at_start_f407/examples/tmr/timer_base/src/main.c +++ b/project/at_start_f407/examples/tmr/timer_base/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/tmr1_synchro/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr1_synchro/readme.txt b/project/at_start_f407/examples/tmr/tmr1_synchro/readme.txt index 6d556c23..28aa7da1 100644 --- a/project/at_start_f407/examples/tmr/tmr1_synchro/readme.txt +++ b/project/at_start_f407/examples/tmr/tmr1_synchro/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -19,4 +19,6 @@ the tmr4 is running at: (tmr1 frequency)/ ((tmr4 period +1)* (repetition_counter+1)) = 74.96 khz and - a duty cycle equal to tmr4_ccr1/(tmr4_arr + 1) = 50% \ No newline at end of file + a duty cycle equal to tmr4_ccr1/(tmr4_arr + 1) = 50% + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/tmr1_synchro/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/tmr1_synchro/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/tmr1_synchro/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/tmr1_synchro/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr1_synchro/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/tmr1_synchro/src/at32f403a_407_int.c index 1e5cbb7f..e8d4dd30 100644 --- a/project/at_start_f407/examples/tmr/tmr1_synchro/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/tmr1_synchro/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr1_synchro/src/main.c b/project/at_start_f407/examples/tmr/tmr1_synchro/src/main.c index 8ebdc7dd..c81c8a24 100644 --- a/project/at_start_f407/examples/tmr/tmr1_synchro/src/main.c +++ b/project/at_start_f407/examples/tmr/tmr1_synchro/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_int.h b/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/tmr/tmr2_32bit/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr2_32bit/readme.txt b/project/at_start_f407/examples/tmr/tmr2_32bit/readme.txt index fcca107f..4b6ba926 100644 --- a/project/at_start_f407/examples/tmr/tmr2_32bit/readme.txt +++ b/project/at_start_f407/examples/tmr/tmr2_32bit/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,4 +14,6 @@ ch1 duty_cycle = 50% ch2 duty_cycle = 25% ch3 duty_cycle = 12.5% - ch4 duty_cycle = 6.25% \ No newline at end of file + ch4 duty_cycle = 6.25% + + for more detailed information. please refer to the application note document AN0085. \ No newline at end of file diff --git a/project/at_start_f407/examples/tmr/tmr2_32bit/src/at32f403a_407_clock.c b/project/at_start_f407/examples/tmr/tmr2_32bit/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/tmr/tmr2_32bit/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/tmr/tmr2_32bit/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr2_32bit/src/at32f403a_407_int.c b/project/at_start_f407/examples/tmr/tmr2_32bit/src/at32f403a_407_int.c index e3e5aebf..78da7f6e 100644 --- a/project/at_start_f407/examples/tmr/tmr2_32bit/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/tmr/tmr2_32bit/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/tmr/tmr2_32bit/src/main.c b/project/at_start_f407/examples/tmr/tmr2_32bit/src/main.c index 2a918529..35b63aa7 100644 --- a/project/at_start_f407/examples/tmr/tmr2_32bit/src/main.c +++ b/project/at_start_f407/examples/tmr/tmr2_32bit/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/half_duplex/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/half_duplex/readme.txt b/project/at_start_f407/examples/usart/half_duplex/readme.txt index f5bfbede..2be93b62 100644 --- a/project/at_start_f407/examples/usart/half_duplex/readme.txt +++ b/project/at_start_f407/examples/usart/half_duplex/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 tx pin (pb10) - connect a pull-up resistor to this line (10k). + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/half_duplex/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/half_duplex/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/half_duplex/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/half_duplex/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/half_duplex/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/half_duplex/src/at32f403a_407_int.c index c7fc971a..2996433f 100644 --- a/project/at_start_f407/examples/usart/half_duplex/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/half_duplex/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/half_duplex/src/main.c b/project/at_start_f407/examples/usart/half_duplex/src/main.c index 7753390c..b5ce6e93 100644 --- a/project/at_start_f407/examples/usart/half_duplex/src/main.c +++ b/project/at_start_f407/examples/usart/half_duplex/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/hw_flow_control/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/hw_flow_control/readme.txt b/project/at_start_f407/examples/usart/hw_flow_control/readme.txt index 9284e535..b1c18ebd 100644 --- a/project/at_start_f407/examples/usart/hw_flow_control/readme.txt +++ b/project/at_start_f407/examples/usart/hw_flow_control/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,4 @@ set-up - connect usart2 tx pin(pd5)/rx pin(pd6)/cts pin(pd3)/rts pin(pd4) + for more detailed information. please refer to the application note document AN0099. diff --git a/project/at_start_f407/examples/usart/hw_flow_control/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/hw_flow_control/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/hw_flow_control/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/hw_flow_control/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/hw_flow_control/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/hw_flow_control/src/at32f403a_407_int.c index b52b6f3f..15a50e1c 100644 --- a/project/at_start_f407/examples/usart/hw_flow_control/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/hw_flow_control/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/hw_flow_control/src/main.c b/project/at_start_f407/examples/usart/hw_flow_control/src/main.c index 184db6f3..e247996a 100644 --- a/project/at_start_f407/examples/usart/hw_flow_control/src/main.c +++ b/project/at_start_f407/examples/usart/hw_flow_control/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/idle_detection/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/idle_detection/readme.txt b/project/at_start_f407/examples/usart/idle_detection/readme.txt index e6afaf9e..b006bf59 100644 --- a/project/at_start_f407/examples/usart/idle_detection/readme.txt +++ b/project/at_start_f407/examples/usart/idle_detection/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin(pa2) to rx pin(pa3) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/idle_detection/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/idle_detection/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/idle_detection/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/idle_detection/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/idle_detection/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/idle_detection/src/at32f403a_407_int.c index 78c6f741..4cb39d36 100644 --- a/project/at_start_f407/examples/usart/idle_detection/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/idle_detection/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/idle_detection/src/main.c b/project/at_start_f407/examples/usart/idle_detection/src/main.c index b3ba25ab..75583df7 100644 --- a/project/at_start_f407/examples/usart/idle_detection/src/main.c +++ b/project/at_start_f407/examples/usart/idle_detection/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/interrupt/readme.txt b/project/at_start_f407/examples/usart/interrupt/readme.txt index 858834bd..3f06efc6 100644 --- a/project/at_start_f407/examples/usart/interrupt/readme.txt +++ b/project/at_start_f407/examples/usart/interrupt/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 rx pin (pb11) - connect usart2 rx pin (pa3) to usart3 tx pin (pb10) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/interrupt/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/interrupt/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/interrupt/src/at32f403a_407_int.c index 8585d4fe..4d0aaea7 100644 --- a/project/at_start_f407/examples/usart/interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/interrupt/src/main.c b/project/at_start_f407/examples/usart/interrupt/src/main.c index 3701dcc2..12f3915d 100644 --- a/project/at_start_f407/examples/usart/interrupt/src/main.c +++ b/project/at_start_f407/examples/usart/interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/irda/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/irda/readme.txt b/project/at_start_f407/examples/usart/irda/readme.txt index d5cb4378..24b44c80 100644 --- a/project/at_start_f407/examples/usart/irda/readme.txt +++ b/project/at_start_f407/examples/usart/irda/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ set-up - use usart2 tx pin (pa2) and rx pin (pa3) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/irda/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/irda/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/irda/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/irda/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/irda/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/irda/src/at32f403a_407_int.c index a7137c3e..aaef2e62 100644 --- a/project/at_start_f407/examples/usart/irda/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/irda/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/irda/src/main.c b/project/at_start_f407/examples/usart/irda/src/main.c index aaccd31e..73a57bea 100644 --- a/project/at_start_f407/examples/usart/irda/src/main.c +++ b/project/at_start_f407/examples/usart/irda/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/polling/readme.txt b/project/at_start_f407/examples/usart/polling/readme.txt index 686a5f9e..59d4bc75 100644 --- a/project/at_start_f407/examples/usart/polling/readme.txt +++ b/project/at_start_f407/examples/usart/polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 rx pin (pb11) - connect usart2 rx pin (pa3) to usart3 tx pin (pb10) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/polling/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/polling/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/polling/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/polling/src/at32f403a_407_int.c index f7947c54..e5bb2596 100644 --- a/project/at_start_f407/examples/usart/polling/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/polling/src/main.c b/project/at_start_f407/examples/usart/polling/src/main.c index 495eceb2..bb2566ab 100644 --- a/project/at_start_f407/examples/usart/polling/src/main.c +++ b/project/at_start_f407/examples/usart/polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/printf/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/printf/readme.txt b/project/at_start_f407/examples/usart/printf/readme.txt index 8dfb088f..89563e7c 100644 --- a/project/at_start_f407/examples/usart/printf/readme.txt +++ b/project/at_start_f407/examples/usart/printf/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,5 @@ this demo is based on the at-start board, in this demo, shows how to retarget the c library printf function to the usart. this implementation output the printf message on the hyperterminal using usart1. using pa9 to transmit data(printf). + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/printf/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/printf/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/printf/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/printf/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/printf/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/printf/src/at32f403a_407_int.c index 087124fe..cc81156c 100644 --- a/project/at_start_f407/examples/usart/printf/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/printf/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/printf/src/main.c b/project/at_start_f407/examples/usart/printf/src/main.c index 4c27be06..14e3bd6b 100644 --- a/project/at_start_f407/examples/usart/printf/src/main.c +++ b/project/at_start_f407/examples/usart/printf/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/receiver_mute/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/receiver_mute/readme.txt b/project/at_start_f407/examples/usart/receiver_mute/readme.txt index 0b3e69b5..bfdaf49f 100644 --- a/project/at_start_f407/examples/usart/receiver_mute/readme.txt +++ b/project/at_start_f407/examples/usart/receiver_mute/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -16,3 +16,5 @@ set-up - connect usart2 tx pin (pa2) -> usart3 rx pin (pb11) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/receiver_mute/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/receiver_mute/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/receiver_mute/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/receiver_mute/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/receiver_mute/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/receiver_mute/src/at32f403a_407_int.c index f43a7e6f..160660e0 100644 --- a/project/at_start_f407/examples/usart/receiver_mute/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/receiver_mute/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/receiver_mute/src/main.c b/project/at_start_f407/examples/usart/receiver_mute/src/main.c index d5adca93..96673f84 100644 --- a/project/at_start_f407/examples/usart/receiver_mute/src/main.c +++ b/project/at_start_f407/examples/usart/receiver_mute/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/smartcard/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/smartcard/inc/smartcard_config.h b/project/at_start_f407/examples/usart/smartcard/inc/smartcard_config.h index ad4ebf79..42b1b3de 100644 --- a/project/at_start_f407/examples/usart/smartcard/inc/smartcard_config.h +++ b/project/at_start_f407/examples/usart/smartcard/inc/smartcard_config.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file smartcard_config.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/smartcard/readme.txt b/project/at_start_f407/examples/usart/smartcard/readme.txt index 36da7abb..466773e2 100644 --- a/project/at_start_f407/examples/usart/smartcard/readme.txt +++ b/project/at_start_f407/examples/usart/smartcard/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -17,3 +17,5 @@ - sc usart reset ---> pa6 - sc usart cmdvcc ---> pa7 - sc usart off ---> pa8 + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/smartcard/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/smartcard/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/smartcard/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/smartcard/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/smartcard/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/smartcard/src/at32f403a_407_int.c index 00a51cdb..8199cb4d 100644 --- a/project/at_start_f407/examples/usart/smartcard/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/smartcard/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/smartcard/src/main.c b/project/at_start_f407/examples/usart/smartcard/src/main.c index b7a1d056..104763a5 100644 --- a/project/at_start_f407/examples/usart/smartcard/src/main.c +++ b/project/at_start_f407/examples/usart/smartcard/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -39,7 +39,10 @@ #define T0_PROTOCOL 0x00 /* t0 protocol */ #define SETUP_LENGTH 20 #define HIST_LENGTH 20 -#define SC_RECEIVE_TIMEOUT 0x4000 /* direction to reader */ +#define SC_RECEIVE_TIMEOUT 0xA000 /* direction to reader */ + +#define SC_USART_DIV_VAL 20 /* ISO 7816-3 protocol: SC_CLOCK_FREQ(PCLK/(2*USART_DIV_VAL)) is between 1 and 5 MHz */ +#define SC_F_DIV_D 372 /* ISO 7816-3 protocol: F/D = 372 */ /* atr structure - answer to reset */ typedef struct @@ -53,13 +56,15 @@ typedef struct } sc_atr_type; sc_atr_type sc_a2r_struct; +uint32_t sc_baud_rate = 0; +uint32_t sc_clock_freq = 0; uint32_t counter = 0; error_status atr_decode_status = ERROR; uint32_t card_inserted = 0, card_protocol = 1; uint8_t dst_buffer[50]= { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; /** @@ -71,7 +76,8 @@ void usart_configuration(void) { gpio_init_type gpio_init_struct; exint_init_type exint_init_struct; - + crm_clocks_freq_type crm_clocks_struct; + /* enable gpio_3_5v, sc_usart_gpio_clk, gpio_reset, gpio_cmdvcc, gpio_off and iomux clocks */ crm_periph_clock_enable(SC_3_5V_CLK, TRUE); crm_periph_clock_enable(SC_USART_GPIO_CLK, TRUE); @@ -160,17 +166,20 @@ void usart_configuration(void) /* clear sc exint line pending bit */ exint_flag_clear(SC_OFF_EXINT); - /* sc_usart clock set to 4.28mhz (apbclk = 120 mhz / 28) */ - usart_irda_smartcard_division_set(SC_USART, 14); + /* sc_usart clock set to (apbclk / (2 * SC_USART_DIV_VAL)) */ + usart_irda_smartcard_division_set(SC_USART, SC_USART_DIV_VAL); /* sc_usart guard time set to 2 bit */ usart_smartcard_guard_time_set(SC_USART, 0x2); /* configure sc usart clk */ usart_clock_config(SC_USART, USART_CLOCK_POLARITY_LOW, USART_CLOCK_PHASE_1EDGE, USART_CLOCK_LAST_BIT_OUTPUT); usart_clock_enable(SC_USART, TRUE); - + + crm_clocks_freq_get(&crm_clocks_struct); + sc_clock_freq = crm_clocks_struct.apb1_freq / (2 * SC_USART_DIV_VAL); /* ISO 7816-3 protocol: the CLK frequency is between 1 and 5 MHz */ + sc_baud_rate = sc_clock_freq / SC_F_DIV_D; /* configure sc usart param */ - usart_init(SC_USART, 12096, USART_DATA_9BITS, USART_STOP_1_5_BIT); + usart_init(SC_USART, sc_baud_rate, USART_DATA_9BITS, USART_STOP_1_5_BIT); usart_parity_selection_config(SC_USART, USART_PARITY_EVEN); usart_transmitter_enable(SC_USART, TRUE); usart_receiver_enable(SC_USART, TRUE); diff --git a/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/synchronous/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/synchronous/readme.txt b/project/at_start_f407/examples/usart/synchronous/readme.txt index b3add982..b6bb7dba 100644 --- a/project/at_start_f407/examples/usart/synchronous/readme.txt +++ b/project/at_start_f407/examples/usart/synchronous/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -36,3 +36,5 @@ - connect usart2_tx(pa2) to spi2_mosi(pb15) - connect usart2_rx(pa3) to spi2_miso(pb14) - connect usart2_ck(pa4) to spi2_sck(pb13) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/synchronous/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/synchronous/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/synchronous/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/synchronous/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/synchronous/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/synchronous/src/at32f403a_407_int.c index 9fa2bb58..98db931d 100644 --- a/project/at_start_f407/examples/usart/synchronous/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/synchronous/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/synchronous/src/main.c b/project/at_start_f407/examples/usart/synchronous/src/main.c index 0a78dad5..f3051d64 100644 --- a/project/at_start_f407/examples/usart/synchronous/src/main.c +++ b/project/at_start_f407/examples/usart/synchronous/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/readme.txt b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/readme.txt index 34528920..386342f7 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/readme.txt +++ b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 rx pin (pb11) - connect usart2 rx pin (pa3) to usart3 tx pin (pb10) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_int.c index 07c655ec..4c1fa51b 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/main.c b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/main.c index 378e0d23..c1327fd5 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/main.c +++ b/project/at_start_f407/examples/usart/transfer_by_dma_interrupt/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usart/transfer_by_dma_polling/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_polling/readme.txt b/project/at_start_f407/examples/usart/transfer_by_dma_polling/readme.txt index fc8c1cd3..063c778e 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_polling/readme.txt +++ b/project/at_start_f407/examples/usart/transfer_by_dma_polling/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,5 @@ set-up - connect usart2 tx pin (pa2) to usart3 rx pin (pb11) - connect usart2 rx pin (pa3) to usart3 tx pin (pb10) + + for more detailed information. please refer to the application note document AN0099. \ No newline at end of file diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/at32f403a_407_int.c b/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/at32f403a_407_int.c index af693b7b..47182bf3 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/main.c b/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/main.c index 301b7636..c19b6b09 100644 --- a/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/main.c +++ b/project/at_start_f407/examples/usart/transfer_by_dma_polling/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/audio/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/audio/inc/audio_codec.h b/project/at_start_f407/examples/usb_device/audio/inc/audio_codec.h index da3aeba6..86d66176 100644 --- a/project/at_start_f407/examples/usb_device/audio/inc/audio_codec.h +++ b/project/at_start_f407/examples/usb_device/audio/inc/audio_codec.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_codec.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief audio codec header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/audio/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/audio/inc/usb_conf.h index 3b9ca8a0..64738d9b 100644 --- a/project/at_start_f407/examples/usb_device/audio/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/audio/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/audio/readme.txt b/project/at_start_f407/examples/usb_device/audio/readme.txt index 8ac5c888..528a67db 100644 --- a/project/at_start_f407/examples/usb_device/audio/readme.txt +++ b/project/at_start_f407/examples/usb_device/audio/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -14,3 +14,4 @@ 2. frequency 16k and 48k 3. bit width 16bit, 4. speaker feedback + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/audio/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/audio/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/audio/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/audio/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/audio/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/audio/src/at32f403a_407_int.c index 3ebe3550..83b470f4 100644 --- a/project/at_start_f407/examples/usb_device/audio/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/audio/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/audio/src/audio_codec.c b/project/at_start_f407/examples/usb_device/audio/src/audio_codec.c index 8f43c54b..b962b6fa 100644 --- a/project/at_start_f407/examples/usb_device/audio/src/audio_codec.c +++ b/project/at_start_f407/examples/usb_device/audio/src/audio_codec.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_codec.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief audio codec function ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/audio/src/main.c b/project/at_start_f407/examples/usb_device/audio/src/main.c index 21f10b4d..5e108ca1 100644 --- a/project/at_start_f407/examples/usb_device/audio/src/main.c +++ b/project/at_start_f407/examples/usb_device/audio/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/audio_codec.h b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/audio_codec.h index 8b607734..fa245382 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/audio_codec.h +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/audio_codec.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_codec.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief audio codec header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/usb_conf.h index e66efacd..7b7418a2 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/readme.txt b/project/at_start_f407/examples/usb_device/composite_audio_hid/readme.txt index d2c58035..102d13ac 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/readme.txt +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,4 +13,5 @@ 1. microphone and speaker 2. frequency 16k and 48k 3. bit width 16bit, - 4. speaker feedback \ No newline at end of file + 4. speaker feedback + for more detailed information, please refer to the application note document AN0097. \ No newline at end of file diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/composite_audio_hid/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/composite_audio_hid/src/at32f403a_407_int.c index 129d93ad..a1c10704 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/src/audio_codec.c b/project/at_start_f407/examples/usb_device/composite_audio_hid/src/audio_codec.c index a771b528..35ec1d22 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/src/audio_codec.c +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/src/audio_codec.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file audio_codec.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief audio codec function ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_audio_hid/src/main.c b/project/at_start_f407/examples/usb_device/composite_audio_hid/src/main.c index 4642e426..a1f6e76c 100644 --- a/project/at_start_f407/examples/usb_device/composite_audio_hid/src/main.c +++ b/project/at_start_f407/examples/usb_device/composite_audio_hid/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/usb_conf.h index 5a2de6f6..d5ca371b 100644 --- a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/readme.txt b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/readme.txt index ef86595d..be430e00 100644 --- a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/readme.txt +++ b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a composite device of usb cdc class and hid keyboard protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_int.c index 17b353b5..351dc980 100644 --- a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/main.c b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/main.c index b3d93ffc..1b26ef2d 100644 --- a/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/main.c +++ b/project/at_start_f407/examples/usb_device/composite_vcp_keyboard/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/custom_hid/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/custom_hid/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/custom_hid/inc/usb_conf.h index 91ba5cd0..a4008a11 100644 --- a/project/at_start_f407/examples/usb_device/custom_hid/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/custom_hid/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/custom_hid/readme.txt b/project/at_start_f407/examples/usb_device/custom_hid/readme.txt index 769b7917..d17254f6 100644 --- a/project/at_start_f407/examples/usb_device/custom_hid/readme.txt +++ b/project/at_start_f407/examples/usb_device/custom_hid/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to build a hid-compliant device use hid class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/custom_hid/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/custom_hid/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/custom_hid/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/custom_hid/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/custom_hid/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/custom_hid/src/at32f403a_407_int.c index 97238e7b..cb22140c 100644 --- a/project/at_start_f407/examples/usb_device/custom_hid/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/custom_hid/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/custom_hid/src/main.c b/project/at_start_f407/examples/usb_device/custom_hid/src/main.c index 3311e526..6654d04a 100644 --- a/project/at_start_f407/examples/usb_device/custom_hid/src/main.c +++ b/project/at_start_f407/examples/usb_device/custom_hid/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/keyboard/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/keyboard/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/keyboard/inc/usb_conf.h index 5ee779b4..2d0ee143 100644 --- a/project/at_start_f407/examples/usb_device/keyboard/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/keyboard/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/keyboard/readme.txt b/project/at_start_f407/examples/usb_device/keyboard/readme.txt index 90b729c2..f7939ed9 100644 --- a/project/at_start_f407/examples/usb_device/keyboard/readme.txt +++ b/project/at_start_f407/examples/usb_device/keyboard/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to build a hid keyboard device use hid class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/keyboard/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/keyboard/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/keyboard/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/keyboard/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/keyboard/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/keyboard/src/at32f403a_407_int.c index 179ea671..a1a8f9a9 100644 --- a/project/at_start_f407/examples/usb_device/keyboard/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/keyboard/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/keyboard/src/main.c b/project/at_start_f407/examples/usb_device/keyboard/src/main.c index 48e423a5..1da7b779 100644 --- a/project/at_start_f407/examples/usb_device/keyboard/src/main.c +++ b/project/at_start_f407/examples/usb_device/keyboard/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/mouse/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/mouse/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/mouse/inc/usb_conf.h index 8f34d87f..c9060db6 100644 --- a/project/at_start_f407/examples/usb_device/mouse/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/mouse/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/mouse/readme.txt b/project/at_start_f407/examples/usb_device/mouse/readme.txt index 96feca8b..282c9a81 100644 --- a/project/at_start_f407/examples/usb_device/mouse/readme.txt +++ b/project/at_start_f407/examples/usb_device/mouse/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, shows how to build a hid mouse device use hid class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/mouse/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/mouse/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/mouse/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/mouse/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/mouse/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/mouse/src/at32f403a_407_int.c index 8d5ea0ab..65000a95 100644 --- a/project/at_start_f407/examples/usb_device/mouse/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/mouse/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/mouse/src/main.c b/project/at_start_f407/examples/usb_device/mouse/src/main.c index ee8f75d0..0d61b2ce 100644 --- a/project/at_start_f407/examples/usb_device/mouse/src/main.c +++ b/project/at_start_f407/examples/usb_device/mouse/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/msc/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/msc/inc/msc_diskio.h b/project/at_start_f407/examples/usb_device/msc/inc/msc_diskio.h index ef9209b4..e477ecf4 100644 --- a/project/at_start_f407/examples/usb_device/msc/inc/msc_diskio.h +++ b/project/at_start_f407/examples/usb_device/msc/inc/msc_diskio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_diskio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage disk interface header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/msc/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/msc/inc/usb_conf.h index 57d2fd46..fd5ce825 100644 --- a/project/at_start_f407/examples/usb_device/msc/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/msc/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/msc/readme.txt b/project/at_start_f407/examples/usb_device/msc/readme.txt index 5cf33579..ad8aa04d 100644 --- a/project/at_start_f407/examples/usb_device/msc/readme.txt +++ b/project/at_start_f407/examples/usb_device/msc/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a device of usb mass storage protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/msc/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/msc/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/msc/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/msc/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/msc/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/msc/src/at32f403a_407_int.c index e98d1486..416015fe 100644 --- a/project/at_start_f407/examples/usb_device/msc/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/msc/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/msc/src/main.c b/project/at_start_f407/examples/usb_device/msc/src/main.c index a6d96b3a..143725e5 100644 --- a/project/at_start_f407/examples/usb_device/msc/src/main.c +++ b/project/at_start_f407/examples/usb_device/msc/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/msc/src/msc_diskio.c b/project/at_start_f407/examples/usb_device/msc/src/msc_diskio.c index 649e06a4..713f4092 100644 --- a/project/at_start_f407/examples/usb_device/msc/src/msc_diskio.c +++ b/project/at_start_f407/examples/usb_device/msc/src/msc_diskio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_diskio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage disk function ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/printer/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/printer/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/printer/inc/usb_conf.h index 02d4d177..5464c252 100644 --- a/project/at_start_f407/examples/usb_device/printer/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/printer/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/printer/readme.txt b/project/at_start_f407/examples/usb_device/printer/readme.txt index 2f279642..3803d568 100644 --- a/project/at_start_f407/examples/usb_device/printer/readme.txt +++ b/project/at_start_f407/examples/usb_device/printer/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a device of usb printer class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/printer/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/printer/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/printer/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/printer/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/printer/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/printer/src/at32f403a_407_int.c index 57e0c4c2..e55da522 100644 --- a/project/at_start_f407/examples/usb_device/printer/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/printer/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/printer/src/main.c b/project/at_start_f407/examples/usb_device/printer/src/main.c index 6d506f8e..92b8020b 100644 --- a/project/at_start_f407/examples/usb_device/printer/src/main.c +++ b/project/at_start_f407/examples/usb_device/printer/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/vcp_loopback/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/vcp_loopback/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/vcp_loopback/inc/usb_conf.h index 7eae9399..4e09683e 100644 --- a/project/at_start_f407/examples/usb_device/vcp_loopback/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/vcp_loopback/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/vcp_loopback/readme.txt b/project/at_start_f407/examples/usb_device/vcp_loopback/readme.txt index 896e2bec..cf89745a 100644 --- a/project/at_start_f407/examples/usb_device/vcp_loopback/readme.txt +++ b/project/at_start_f407/examples/usb_device/vcp_loopback/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a device of usb cdc class protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/vcp_loopback/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/vcp_loopback/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/vcp_loopback/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/vcp_loopback/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/vcp_loopback/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/vcp_loopback/src/at32f403a_407_int.c index 3c508228..3eeb0284 100644 --- a/project/at_start_f407/examples/usb_device/vcp_loopback/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/vcp_loopback/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/vcp_loopback/src/main.c b/project/at_start_f407/examples/usb_device/vcp_loopback/src/main.c index 75e5bf93..e8ba2953 100644 --- a/project/at_start_f407/examples/usb_device/vcp_loopback/src/main.c +++ b/project/at_start_f407/examples/usb_device/vcp_loopback/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/virtual_comport/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_comport/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/virtual_comport/inc/usb_conf.h index fbf6ddea..29273b17 100644 --- a/project/at_start_f407/examples/usb_device/virtual_comport/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/virtual_comport/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_comport/readme.txt b/project/at_start_f407/examples/usb_device/virtual_comport/readme.txt index 46e02ec5..26889210 100644 --- a/project/at_start_f407/examples/usb_device/virtual_comport/readme.txt +++ b/project/at_start_f407/examples/usb_device/virtual_comport/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -10,3 +10,4 @@ this demo is based on the at-start board, in this demo, show how to build a device of usb virtual comport,when use this demo,please connect usart2 tx pin(pa2) and rx pin(pa3). + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/virtual_comport/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/virtual_comport/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/virtual_comport/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/virtual_comport/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_comport/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/virtual_comport/src/at32f403a_407_int.c index 3c508228..3eeb0284 100644 --- a/project/at_start_f407/examples/usb_device/virtual_comport/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/virtual_comport/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_comport/src/main.c b/project/at_start_f407/examples/usb_device/virtual_comport/src/main.c index b2a18b4a..a305f2ca 100644 --- a/project/at_start_f407/examples/usb_device/virtual_comport/src/main.c +++ b/project/at_start_f407/examples/usb_device/virtual_comport/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_int.h b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/flash_fat16.h b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/flash_fat16.h index 3655860f..b44a4e92 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/flash_fat16.h +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/flash_fat16.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash_fat16.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief fat16 file system header file ************************************************************************** * Copyright notice & Disclaimer @@ -52,10 +52,10 @@ extern "C" { #define FAT16_DIR_SIZE 47 #define FLASH_FAT16_BOOT_SECTOR_ADDR 0x00 -#define FLASH_FAT16_1_ADDR 0x1000 -#define FLASH_FAT16_2_ADDR 0x7800 -#define FLASH_FAT16_ROOT_ADDR 0xE000 -#define FLASH_FAT16_FILE_START_ADDR 0x12000 +#define FLASH_FAT16_1_ADDR 0x3000 +#define FLASH_FAT16_2_ADDR 0x3800 +#define FLASH_FAT16_ROOT_ADDR 0x4000 +#define FLASH_FAT16_FILE_START_ADDR 0x8800 #define FLASH_APP_START_ADDR 0x08005000 diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/msc_diskio.h b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/msc_diskio.h index 4e21bb7e..8aba666a 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/msc_diskio.h +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/msc_diskio.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_diskio.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage disk interface header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/usb_conf.h b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/usb_conf.h index 60997d48..b324794d 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/usb_conf.h +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/readme.txt b/project/at_start_f407/examples/usb_device/virtual_msc_iap/readme.txt index ee14f150..5ad432f4 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/readme.txt +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/readme.txt @@ -1,11 +1,12 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, show how to build a virutal msc device of usb mass storage protocol. + for more detailed information, please refer to the application note document AN0097. diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/at32f403a_407_clock.c b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/at32f403a_407_int.c b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/at32f403a_407_int.c index 44add2c5..767b5e69 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/flash_fat16.c b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/flash_fat16.c index e9ea0910..e5f97dd0 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/flash_fat16.c +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/flash_fat16.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash_fat16.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief fat16 file system ************************************************************************** * Copyright notice & Disclaimer @@ -34,49 +34,77 @@ * @{ */ #define FAT16_SECTOR_SIZE 62 -const uint8_t fat16_sector[FAT16_SECTOR_SIZE] = +static uint8_t fat16_sector[FAT16_SECTOR_SIZE] = { - 0xEB, /*00 - BS_jmpBoot */ - 0x3C, /*01 - BS_jmpBoot */ - 0x90, /*02 - BS_jmpBoot */ - 'M','S','D','O','S','5','.','0', /* 03-10 - BS_OEMName */ - 0x00, /*11 - BPB_BytesPerSec = 2048 */ - 0x08, /*11 - BPB_BytesPerSec = 2048 */ - 0x04, /*13 - BPB_Sec_PerClus = 2K*4 = 8K*/ - 2, /*14 - BPB_RsvdSecCnt = 2 */ - 0, /*15 - BPB_RsvdSecCnt = 2 */ - 2, /*16 - BPB_NumFATs = 2 */ - 0x0, /*17 - BPB_RootEntCnt = 512 */ - 0x2, /*18 - BPB_RootEntCnt = 512 */ - 0, /*19 - BPB_TotSec16 = 0 */ - 0, /*20 - BPB_TotSec16 = 0 */ - 0xF8, /*21 - BPB_Media = 0xF8 */ - 0x0D, /*22 - BPBFATSz16 = 0x000D */ - 0, /*23 - BPBFATSz16 = 0x000D */ - 0x3F, /*24 - BPB_SecPerTrk = 0x003F */ - 0, /*25 - BPB_SecPerTrk = 0x003F */ - 0xFF, /*26 - BPB_NumHeads = 255 */ - 0, /*27 - BPB_NumHeads = 255 */ - 0, /*28 - BPB_HiddSec = 0 */ - 0, /*29 - BPB_HiddSec = 0 */ - 0, /*30 - BPB_HiddSec = 0 */ - 0, /*31 - BPB_HiddSec = 0 */ - 0x00, /*32 - BPB_TotSec32 = */ - 0xC8, /*33 - BPB_TotSec32 = 0x0000C800 100Mb*/ - 0x00, /*34 - BPB_TotSec32 = */ - 0x00, /*35 - BPB_TotSec32 = */ - 0x80, /*36 - BS_DrvNum = 0x80 */ - 0, /*37 - BS_Reserved1 = 0 , dirty bit = 0*/ /* Updated from FSL*/ - 0x29, /*38 - BS_BootSig = 0x29 */ - 0xBD, /*39 - BS_VolID = 0x02DDA5BD */ - 0xA5, /*40 - BS_VolID = 0x02DDA5BD */ - 0xDD, /*41 - BS_VolID = 0x02DDA5BD */ - 0x02, /*42 - BS_VolID = 0x02DDA5BD */ - 'N','O',' ','N','A','M','E',' ',' ',' ',' ',/*43-53 - BS_VolLab */ - 'F','A','T','1','6',' ',' ',' ' /*54-61 - BS_FilSysType */ + 0xEB, /*0*/ + 0x3C, /*1*/ + 0x90, /*2*/ + 0x4D, /*3*/ + 0x53, /*4*/ + 0x44, /*5*/ + 0x4F, /*6*/ + 0x53, /*7*/ + 0x35, /*8*/ + 0x2E, /*9*/ + 0x30, /*10*/ + 0x00, /*11*/ + 0x08, /*12*/ //2K + 0x04, /*13*/ + 0x06, /*14*/ + 0x00, /*15*/ + + 0x02, /*16*/ + 0x00, /*17*/ + 0x02, /*18*/ + 0xFF, /*19*/ + 0x0F, /*20*/ + 0xF8, /*21*/ + 0x01, /*22*/ + 0x00, /*23*/ + 0x01, /*24*/ + 0x00, /*25*/ + 0x01, /*26*/ + 0x00, /*27*/ + 0x00, /*28*/ + 0x00, /*29*/ + 0x00, /*30*/ + 0x00, /*31*/ + + 0x00, /*32*/ + 0x00, /*33*/ + 0x00, /*34*/ + 0x00, /*35*/ + 0x00, /*36*/ + 0x00, /*37*/ + 0x29, /*38*/ + 0x96, /*39*/ + 0x16, /*40*/ + 0x66, /*41*/ + 0xD3, /*42*/ + 0x20, /*43*/ + 0x20, /*44*/ + 0x20, /*45*/ + 0x20, /*46*/ + 0x20, /*47*/ + + 0x20, /*48*/ + 0x20, /*49*/ + 0x20, /*50*/ + 0x20, /*51*/ + 0x20, /*52*/ + 0x20, /*53*/ + 0x46, /*54*/ + 0x41, /*55*/ + 0x54, /*56*/ + 0x31, /*57*/ + 0x36, /*58*/ + 0x20, /*59*/ + 0x20, /*60*/ + 0x20 /*61*/ }; + const uint8_t fat16_root_dir_sector[FAT16_DIR_SIZE]= { 0x20, /*11 - Archive Attribute set */ @@ -144,6 +172,7 @@ uint8_t fat16_file_name[FAT16_FILENAME_SIZE] = fat_dir_type g_file_attr; flash_iap_type flash_iap; uint32_t file_write_nr = 0; +uint8_t file_match = 0; uint32_t flash_fat16_boot_dir_write(uint32_t fat_lbk, uint8_t *data, uint32_t len); uint32_t flash_fat16_sector_write(uint32_t fat_lbk, uint8_t *data, uint32_t len); @@ -268,6 +297,8 @@ uint32_t flash_fat16_read(uint32_t fat_lbk, uint8_t *data, uint32_t len) i_index += 2; fat16_memory_memset(data+i_index, 0, FAT16_BYTE_PER_SIZE-i_index); + data[510] = 0x55; + data[511] = 0xAA; break; case FLASH_FAT16_1_ADDR: @@ -372,6 +403,23 @@ uint32_t flash_fat16_boot_dir_write(uint32_t fat_lbk, uint8_t *data, uint32_t le if(i_index <= 512 && loop_len < len) { fat16_memory_copy((uint8_t *)&g_file_attr, (const uint8_t *)pdir, 32); + + if(file_match == 1) + { + file_match = 0; + if(g_file_attr.file_size > 0) + { + if(flash_iap.file_write_nr >= g_file_attr.file_size) + { + /* upgrade finish */ + flash_iap.file_write_nr = 0; + flash_iap.msc_up_status = UPGRADE_SUCCESS; + + /* set the upgrade done flag to flash */ + flash_fat16_set_upgrade_flag(); + } + } + } g_file_attr.write_data = 0; g_file_attr.write_time = 0; flash_iap.file_write_nr = 0; @@ -454,7 +502,15 @@ uint32_t flash_fat16_sector_write(uint32_t fat_lbk, uint8_t *data, uint32_t len) { return 0; } - + + if(g_file_attr.file_size == 0) + { + g_file_attr.file_size = flash_iap.flash_app_size; + file_match = 1; + } + + file_size = g_file_attr.file_size; + if(flash_iap.msc_up_status == UPGRADE_READY) { /* get offset address from filename */ @@ -521,7 +577,6 @@ uint32_t flash_fat16_sector_write(uint32_t fat_lbk, uint8_t *data, uint32_t len) else { /* unkonw upgrade status */ - flash_iap.msc_up_status = UPGRADE_UNKNOWN; } return len; @@ -550,7 +605,7 @@ uint32_t flash_crc_check(uint32_t address, uint8_t *data, uint32_t len) if(remain_len) { wlen += 1; - for(i_index = 0; i_index < remain_len; i_index ++) + for(i_index = 0; i_index < (4 - remain_len); i_index ++) { data[len+i_index] = 0xFF; } @@ -675,6 +730,7 @@ void flash_fat16_init(void) flash_iap.sector_size = FLASH_SECTOR_2K_SIZE; flash_iap.sector_mask = FLASH_SECTOR_2K_ALLGNED; } + } diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/main.c b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/main.c index f13b13d5..c852c1a2 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/main.c +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/msc_diskio.c b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/msc_diskio.c index 6d4a9317..739e6b04 100644 --- a/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/msc_diskio.c +++ b/project/at_start_f407/examples/usb_device/virtual_msc_iap/src/msc_diskio.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file msc_diskio.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb mass storage disk function ************************************************************************** * Copyright notice & Disclaimer @@ -119,8 +119,8 @@ usb_sts_type msc_disk_capacity(uint8_t lun, uint32_t *blk_nbr, uint32_t *blk_siz switch(lun) { case INTERNAL_FLASH_LUN: - *blk_nbr = 100*1024*1024 / flash_iap.sector_size; - *blk_size = flash_iap.sector_size; + *blk_nbr = 0x0FFF; + *blk_size = FLASH_SECTOR_2K_SIZE; break; case SPI_FLASH_LUN: break; diff --git a/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_int.h b/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/wdt/wdt_reset/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_reset/readme.txt b/project/at_start_f407/examples/wdt/wdt_reset/readme.txt index 076649e7..4847842e 100644 --- a/project/at_start_f407/examples/wdt/wdt_reset/readme.txt +++ b/project/at_start_f407/examples/wdt/wdt_reset/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file wdt_reset/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ operation, the wdt count value is continuously reloaded in the main function, and wdt reset will not occur at this time. when the wakeup button is pressed, the function stops reloading the wdt count value, resulting in wdt reset. + for more detailed information. please refer to the application note document AN0045. \ No newline at end of file diff --git a/project/at_start_f407/examples/wdt/wdt_reset/src/at32f403a_407_clock.c b/project/at_start_f407/examples/wdt/wdt_reset/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/wdt/wdt_reset/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/wdt/wdt_reset/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_reset/src/at32f403a_407_int.c b/project/at_start_f407/examples/wdt/wdt_reset/src/at32f403a_407_int.c index ac7a5ea6..3b2c134a 100644 --- a/project/at_start_f407/examples/wdt/wdt_reset/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/wdt/wdt_reset/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_reset/src/main.c b/project/at_start_f407/examples/wdt/wdt_reset/src/main.c index 003bd963..2f98bfbf 100644 --- a/project/at_start_f407/examples/wdt/wdt_reset/src/main.c +++ b/project/at_start_f407/examples/wdt/wdt_reset/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_int.h b/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/wdt/wdt_standby/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_standby/readme.txt b/project/at_start_f407/examples/wdt/wdt_standby/readme.txt index 7bc7ab4d..57e5ad68 100644 --- a/project/at_start_f407/examples/wdt/wdt_standby/readme.txt +++ b/project/at_start_f407/examples/wdt/wdt_standby/readme.txt @@ -1,12 +1,13 @@ /** ************************************************************************** * @file wdt_standby/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ this demo is based on the at-start board, in this demo, the wdt wakeup mcu from standby mode. if the chip is wakeup from standby mode by wdt, led4 - will be on. + will be on.for more detailed information. please refer to the application + note document AN0045. diff --git a/project/at_start_f407/examples/wdt/wdt_standby/src/at32f403a_407_clock.c b/project/at_start_f407/examples/wdt/wdt_standby/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/wdt/wdt_standby/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/wdt/wdt_standby/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_standby/src/at32f403a_407_int.c b/project/at_start_f407/examples/wdt/wdt_standby/src/at32f403a_407_int.c index 57d672b5..d121c3f8 100644 --- a/project/at_start_f407/examples/wdt/wdt_standby/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/wdt/wdt_standby/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wdt/wdt_standby/src/main.c b/project/at_start_f407/examples/wdt/wdt_standby/src/main.c index 6d4af460..29881b49 100644 --- a/project/at_start_f407/examples/wdt/wdt_standby/src/main.c +++ b/project/at_start_f407/examples/wdt/wdt_standby/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_int.h b/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/wwdt/wwdt_reset/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wwdt/wwdt_reset/readme.txt b/project/at_start_f407/examples/wwdt/wwdt_reset/readme.txt index 1b9fe49a..3e6ff7a7 100644 --- a/project/at_start_f407/examples/wwdt/wwdt_reset/readme.txt +++ b/project/at_start_f407/examples/wwdt/wwdt_reset/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file wwdt_reset/readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -11,3 +11,4 @@ operation, the wwdt count value is continuously reloaded in the main function, and wwdt reset will not occur at this time. when the wakeup button is pressed, the function stops reloading the wwdt count value, resulting in wwdt reset. + for more detailed information. please refer to the application note document AN0045. \ No newline at end of file diff --git a/project/at_start_f407/examples/wwdt/wwdt_reset/src/at32f403a_407_clock.c b/project/at_start_f407/examples/wwdt/wwdt_reset/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/wwdt/wwdt_reset/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/wwdt/wwdt_reset/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wwdt/wwdt_reset/src/at32f403a_407_int.c b/project/at_start_f407/examples/wwdt/wwdt_reset/src/at32f403a_407_int.c index 75988293..e095e992 100644 --- a/project/at_start_f407/examples/wwdt/wwdt_reset/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/wwdt/wwdt_reset/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/wwdt/wwdt_reset/src/main.c b/project/at_start_f407/examples/wwdt/wwdt_reset/src/main.c index 02910cda..140fed80 100644 --- a/project/at_start_f407/examples/wwdt/wwdt_reset/src/main.c +++ b/project/at_start_f407/examples/wwdt/wwdt_reset/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_int.h b/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/xmc/lcd_8bit/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/inc/picture.h b/project/at_start_f407/examples/xmc/lcd_8bit/inc/picture.h index f4d51fd0..55f5504d 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/inc/picture.h +++ b/project/at_start_f407/examples/xmc/lcd_8bit/inc/picture.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file picture.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the picture used for lcd display. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/inc/xmc_lcd.h b/project/at_start_f407/examples/xmc/lcd_8bit/inc/xmc_lcd.h index 90f67dd0..3fbedbe7 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/inc/xmc_lcd.h +++ b/project/at_start_f407/examples/xmc/lcd_8bit/inc/xmc_lcd.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_lcd.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief xmc_lcd header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/readme.txt b/project/at_start_f407/examples/xmc/lcd_8bit/readme.txt index 8750c708..02440a5f 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/readme.txt +++ b/project/at_start_f407/examples/xmc/lcd_8bit/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -27,5 +27,5 @@ - xmc_d5 pa3 ---> data[5] - xmc_d6 pa4 ---> data[6] - xmc_d7 pa5 ---> data[7] - + for more detailed information. please refer to the application note document AN0106. diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/src/at32f403a_407_clock.c b/project/at_start_f407/examples/xmc/lcd_8bit/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/xmc/lcd_8bit/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/src/at32f403a_407_int.c b/project/at_start_f407/examples/xmc/lcd_8bit/src/at32f403a_407_int.c index 7bf79a3b..454a72ea 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/xmc/lcd_8bit/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/src/main.c b/project/at_start_f407/examples/xmc/lcd_8bit/src/main.c index bc0140ec..5aa53884 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/src/main.c +++ b/project/at_start_f407/examples/xmc/lcd_8bit/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_8bit/src/xmc_lcd.c b/project/at_start_f407/examples/xmc/lcd_8bit/src/xmc_lcd.c index f80e9028..04005545 100644 --- a/project/at_start_f407/examples/xmc/lcd_8bit/src/xmc_lcd.c +++ b/project/at_start_f407/examples/xmc/lcd_8bit/src/xmc_lcd.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_lcd.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief xmc_lcd config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_int.h b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/touch.h b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/touch.h index 613832c5..af0e6736 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/touch.h +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/touch.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file touch.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the functions prototypes for the * touch firmware driver. ************************************************************************** diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/xmc_lcd.h b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/xmc_lcd.h index 8377a8c8..6d2b1cf5 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/xmc_lcd.h +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/inc/xmc_lcd.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_lcd.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief xmc_lcd program header ************************************************************************** * Copyright notice & Disclaimer @@ -62,7 +62,7 @@ typedef struct * @{ */ -/* the address of write data & command (xmc_a0) */ +/* the address of write data & command (xmc_a16) */ #define XMC_LCD_COMMAND 0x6001FFFE #define XMC_LCD_DATA 0x60020000 diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/readme.txt b/project/at_start_f407/examples/xmc/lcd_touch_16bit/readme.txt index ab627f1b..da140200 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/readme.txt +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -42,6 +42,6 @@ - xmc_d13 pb12 ---> data[13] - xmc_d14 pd9 ---> data[14] - xmc_d15 pd10 ---> data[15] - + for more detailed information. please refer to the application note document AN0106. diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/at32f403a_407_clock.c b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/at32f403a_407_int.c b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/at32f403a_407_int.c index c0db42f3..2dedcb5d 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/main.c b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/main.c index ab7025d2..af353582 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/main.c +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -67,7 +67,6 @@ int main(void) lcd_struct->lcd_clear(point_color); touch_struct->init(); - touch_struct->touch_read_xy(&touch_struct->x_p[0], &touch_struct->y_p[0]); while(1) { diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/touch.c b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/touch.c index 2601e0c6..ada0b161 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/touch.c +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/touch.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file touch.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief this file contains all the functions prototypes for the * touch firmware driver. ************************************************************************** diff --git a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/xmc_lcd.c b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/xmc_lcd.c index 0e4301d4..be5e609b 100644 --- a/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/xmc_lcd.c +++ b/project/at_start_f407/examples/xmc/lcd_touch_16bit/src/xmc_lcd.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_lcd.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief xmc_lcd program file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_int.h b/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/xmc/nand/ecc/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/ecc/inc/xmc_ecc.h b/project/at_start_f407/examples/xmc/nand/ecc/inc/xmc_ecc.h index ee8b93a3..f3431b9d 100644 --- a/project/at_start_f407/examples/xmc/nand/ecc/inc/xmc_ecc.h +++ b/project/at_start_f407/examples/xmc/nand/ecc/inc/xmc_ecc.h @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file xmc_ecc.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file for the nand ecc configuration. ****************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/ecc/readme.txt b/project/at_start_f407/examples/xmc/nand/ecc/readme.txt index ee0257a9..8ea1beb9 100644 --- a/project/at_start_f407/examples/xmc/nand/ecc/readme.txt +++ b/project/at_start_f407/examples/xmc/nand/ecc/readme.txt @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ****************************************************************************** */ @@ -27,5 +27,5 @@ - xmc_noe pd4 ---> re# - xmc_nwe pd5 ---> we# - xmc_wait pd6 ---> r/b# - + for more detailed information. please refer to the application note document AN0106. diff --git a/project/at_start_f407/examples/xmc/nand/ecc/src/at32f403a_407_clock.c b/project/at_start_f407/examples/xmc/nand/ecc/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/xmc/nand/ecc/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/xmc/nand/ecc/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/ecc/src/at32f403a_407_int.c b/project/at_start_f407/examples/xmc/nand/ecc/src/at32f403a_407_int.c index 2cf1449a..9cab1864 100644 --- a/project/at_start_f407/examples/xmc/nand/ecc/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/xmc/nand/ecc/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/ecc/src/main.c b/project/at_start_f407/examples/xmc/nand/ecc/src/main.c index 55d3c872..c49e0b7b 100644 --- a/project/at_start_f407/examples/xmc/nand/ecc/src/main.c +++ b/project/at_start_f407/examples/xmc/nand/ecc/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/ecc/src/xmc_ecc.c b/project/at_start_f407/examples/xmc/nand/ecc/src/xmc_ecc.c index c2813aa0..8e19b821 100644 --- a/project/at_start_f407/examples/xmc/nand/ecc/src/xmc_ecc.c +++ b/project/at_start_f407/examples/xmc/nand/ecc/src/xmc_ecc.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_ecc.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief nand ecc configuration ************************************************************************** * Copyright notice & Disclaimer @@ -157,7 +157,6 @@ uint32_t nand_write_small_page(uint8_t *pbuffer, nand_address_type address_struc while((num_page_to_write != 0x00) && (address_status == NAND_VALID_ADDRESS) && (status == NAND_READY)) { /* page write command and address */ - *(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = NAND_CMD_AREA_A; *(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = NAND_CMD_WRITE0; #ifdef H27U1G8F2CTR diff --git a/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_int.h b/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/xmc/nand/nand/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/nand/inc/xmc_nand.h b/project/at_start_f407/examples/xmc/nand/nand/inc/xmc_nand.h index b81aaf7e..ca6c0406 100644 --- a/project/at_start_f407/examples/xmc/nand/nand/inc/xmc_nand.h +++ b/project/at_start_f407/examples/xmc/nand/nand/inc/xmc_nand.h @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file xmc_nand.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file for the nand configuration. ****************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/nand/readme.txt b/project/at_start_f407/examples/xmc/nand/nand/readme.txt index 4b9d331b..bd2f375a 100644 --- a/project/at_start_f407/examples/xmc/nand/nand/readme.txt +++ b/project/at_start_f407/examples/xmc/nand/nand/readme.txt @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ****************************************************************************** */ @@ -28,3 +28,4 @@ - xmc_noe pd4 ---> re# - xmc_nwe pd5 ---> we# - xmc_wait pd6 ---> r/b# + for more detailed information. please refer to the application note document AN0106. \ No newline at end of file diff --git a/project/at_start_f407/examples/xmc/nand/nand/src/at32f403a_407_clock.c b/project/at_start_f407/examples/xmc/nand/nand/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/xmc/nand/nand/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/xmc/nand/nand/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/nand/src/at32f403a_407_int.c b/project/at_start_f407/examples/xmc/nand/nand/src/at32f403a_407_int.c index b332f090..e9087847 100644 --- a/project/at_start_f407/examples/xmc/nand/nand/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/xmc/nand/nand/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/nand/src/main.c b/project/at_start_f407/examples/xmc/nand/nand/src/main.c index 8e6b6783..e82350c2 100644 --- a/project/at_start_f407/examples/xmc/nand/nand/src/main.c +++ b/project/at_start_f407/examples/xmc/nand/nand/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/nand/nand/src/xmc_nand.c b/project/at_start_f407/examples/xmc/nand/nand/src/xmc_nand.c index d8ec6a29..ae0c3819 100644 --- a/project/at_start_f407/examples/xmc/nand/nand/src/xmc_nand.c +++ b/project/at_start_f407/examples/xmc/nand/nand/src/xmc_nand.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file xmc_nand.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief nand configuration ************************************************************************** * Copyright notice & Disclaimer @@ -165,7 +165,6 @@ uint32_t nand_write_small_page(uint8_t *pbuffer, nand_address_type address_struc while((num_page_to_write != 0x00) && (address_status == NAND_VALID_ADDRESS) && (status == NAND_READY)) { /* page write command and address */ - *(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = NAND_CMD_AREA_A; *(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = NAND_CMD_WRITE0; #ifdef H27U1G8F2CTR *(__IO uint8_t *)(Bank_NAND_ADDR | ADDR_AREA) = addr_1st_cycle(COL_ADDRESS); diff --git a/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_clock.h b/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_conf.h b/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_int.h b/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_int.h +++ b/project/at_start_f407/examples/xmc/psram/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/psram/inc/xmc_psram.h b/project/at_start_f407/examples/xmc/psram/inc/xmc_psram.h index 4f79b3f2..e97ef8c6 100644 --- a/project/at_start_f407/examples/xmc/psram/inc/xmc_psram.h +++ b/project/at_start_f407/examples/xmc/psram/inc/xmc_psram.h @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file xmc_psram.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file for the psram configuration. ****************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/psram/readme.txt b/project/at_start_f407/examples/xmc/psram/readme.txt index 55fba921..7ade74aa 100644 --- a/project/at_start_f407/examples/xmc/psram/readme.txt +++ b/project/at_start_f407/examples/xmc/psram/readme.txt @@ -1,8 +1,8 @@ /** ****************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ****************************************************************************** */ @@ -42,3 +42,4 @@ - xmc_nwe pd5 ---> we# - xmc_lb pe0 ---> lb# - xmc_ub pe1 ---> ub# + for more detailed information. please refer to the application note document AN0106. \ No newline at end of file diff --git a/project/at_start_f407/examples/xmc/psram/src/at32f403a_407_clock.c b/project/at_start_f407/examples/xmc/psram/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/project/at_start_f407/examples/xmc/psram/src/at32f403a_407_clock.c +++ b/project/at_start_f407/examples/xmc/psram/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/psram/src/at32f403a_407_int.c b/project/at_start_f407/examples/xmc/psram/src/at32f403a_407_int.c index 02a116a4..2bdde25d 100644 --- a/project/at_start_f407/examples/xmc/psram/src/at32f403a_407_int.c +++ b/project/at_start_f407/examples/xmc/psram/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/psram/src/main.c b/project/at_start_f407/examples/xmc/psram/src/main.c index dd4dda81..37aa0259 100644 --- a/project/at_start_f407/examples/xmc/psram/src/main.c +++ b/project/at_start_f407/examples/xmc/psram/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/examples/xmc/psram/src/xmc_psram.c b/project/at_start_f407/examples/xmc/psram/src/xmc_psram.c index 2d201fb6..9fcc3687 100644 --- a/project/at_start_f407/examples/xmc/psram/src/xmc_psram.c +++ b/project/at_start_f407/examples/xmc/psram/src/xmc_psram.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file psram.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief psram configuration ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/templates/inc/at32f403a_407_clock.h b/project/at_start_f407/templates/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/project/at_start_f407/templates/inc/at32f403a_407_clock.h +++ b/project/at_start_f407/templates/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/templates/inc/at32f403a_407_conf.h b/project/at_start_f407/templates/inc/at32f403a_407_conf.h index d038025c..880a9542 100644 --- a/project/at_start_f407/templates/inc/at32f403a_407_conf.h +++ b/project/at_start_f407/templates/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/templates/inc/at32f403a_407_int.h b/project/at_start_f407/templates/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/project/at_start_f407/templates/inc/at32f403a_407_int.h +++ b/project/at_start_f407/templates/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/templates/readme.txt b/project/at_start_f407/templates/readme.txt index 84f1f212..8e37a5ec 100644 --- a/project/at_start_f407/templates/readme.txt +++ b/project/at_start_f407/templates/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/project/at_start_f407/templates/src/at32f403a_407_clock.c b/project/at_start_f407/templates/src/at32f403a_407_clock.c index 60a14dc3..ceac78d2 100644 --- a/project/at_start_f407/templates/src/at32f403a_407_clock.c +++ b/project/at_start_f407/templates/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/templates/src/at32f403a_407_int.c b/project/at_start_f407/templates/src/at32f403a_407_int.c index 1d2d41a1..19048be9 100644 --- a/project/at_start_f407/templates/src/at32f403a_407_int.c +++ b/project/at_start_f407/templates/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/project/at_start_f407/templates/src/main.c b/project/at_start_f407/templates/src/main.c index a970a817..15058d25 100644 --- a/project/at_start_f407/templates/src/main.c +++ b/project/at_start_f407/templates/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_int.h b/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_freertos_demo/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_freertos_demo/readme.txt b/utilities/at32f403a_407_freertos_demo/readme.txt index 2bc04f0a..0ee53770 100644 --- a/utilities/at32f403a_407_freertos_demo/readme.txt +++ b/utilities/at32f403a_407_freertos_demo/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ @@ -13,3 +13,5 @@ how to use it ? compiling and download code to at start board,push the reset button will see led2 and led3 blinking. + + for more detailed information. please refer to the application note document AN0025. diff --git a/utilities/at32f403a_407_freertos_demo/src/at32f403a_407_clock.c b/utilities/at32f403a_407_freertos_demo/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/utilities/at32f403a_407_freertos_demo/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_freertos_demo/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_freertos_demo/src/at32f403a_407_int.c b/utilities/at32f403a_407_freertos_demo/src/at32f403a_407_int.c index d0c33f25..cfca2dd5 100644 --- a/utilities/at32f403a_407_freertos_demo/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_freertos_demo/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_freertos_demo/src/main.c b/utilities/at32f403a_407_freertos_demo/src/main.c index bcbc297d..e1ae9449 100644 --- a/utilities/at32f403a_407_freertos_demo/src/main.c +++ b/utilities/at32f403a_407_freertos_demo/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_int.h b/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_gen_random_number_demo/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_gen_random_number_demo/inc/random.h b/utilities/at32f403a_407_gen_random_number_demo/inc/random.h index f222b2ea..04484c36 100644 --- a/utilities/at32f403a_407_gen_random_number_demo/inc/random.h +++ b/utilities/at32f403a_407_gen_random_number_demo/inc/random.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file random.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 random header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_gen_random_number_demo/readme.txt b/utilities/at32f403a_407_gen_random_number_demo/readme.txt index 50dbb775..ed6c2bcd 100644 --- a/utilities/at32f403a_407_gen_random_number_demo/readme.txt +++ b/utilities/at32f403a_407_gen_random_number_demo/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f403a_407_gen_random_number_demo/src/at32f403a_407_clock.c b/utilities/at32f403a_407_gen_random_number_demo/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/utilities/at32f403a_407_gen_random_number_demo/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_gen_random_number_demo/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_gen_random_number_demo/src/at32f403a_407_int.c b/utilities/at32f403a_407_gen_random_number_demo/src/at32f403a_407_int.c index 98e78dfb..2efb849e 100644 --- a/utilities/at32f403a_407_gen_random_number_demo/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_gen_random_number_demo/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_gen_random_number_demo/src/main.c b/utilities/at32f403a_407_gen_random_number_demo/src/main.c index 7b3297af..2a189783 100644 --- a/utilities/at32f403a_407_gen_random_number_demo/src/main.c +++ b/utilities/at32f403a_407_gen_random_number_demo/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_gen_random_number_demo/src/random.c b/utilities/at32f403a_407_gen_random_number_demo/src/random.c index 8bbad038..433052b2 100644 --- a/utilities/at32f403a_407_gen_random_number_demo/src/random.c +++ b/utilities/at32f403a_407_gen_random_number_demo/src/random.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file random.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief set of firmware functions to random function ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_int.h b/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_slib_demo/project_l0/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l0/readme.txt b/utilities/at32f403a_407_slib_demo/project_l0/readme.txt index 785937fd..6c30ef47 100644 --- a/utilities/at32f403a_407_slib_demo/project_l0/readme.txt +++ b/utilities/at32f403a_407_slib_demo/project_l0/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f403a_407_slib_demo/project_l0/src/at32f403a_407_clock.c b/utilities/at32f403a_407_slib_demo/project_l0/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/utilities/at32f403a_407_slib_demo/project_l0/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_slib_demo/project_l0/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l0/src/at32f403a_407_int.c b/utilities/at32f403a_407_slib_demo/project_l0/src/at32f403a_407_int.c index 0cdc82fd..84a0ff92 100644 --- a/utilities/at32f403a_407_slib_demo/project_l0/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_slib_demo/project_l0/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l0/src/main.c b/utilities/at32f403a_407_slib_demo/project_l0/src/main.c index 80280d77..b2c8f075 100644 --- a/utilities/at32f403a_407_slib_demo/project_l0/src/main.c +++ b/utilities/at32f403a_407_slib_demo/project_l0/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_int.h b/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_slib_demo/project_l1/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l1/readme.txt b/utilities/at32f403a_407_slib_demo/project_l1/readme.txt index 4ddf4492..596b1cb4 100644 --- a/utilities/at32f403a_407_slib_demo/project_l1/readme.txt +++ b/utilities/at32f403a_407_slib_demo/project_l1/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f403a_407_slib_demo/project_l1/src/at32f403a_407_clock.c b/utilities/at32f403a_407_slib_demo/project_l1/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/utilities/at32f403a_407_slib_demo/project_l1/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_slib_demo/project_l1/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l1/src/at32f403a_407_int.c b/utilities/at32f403a_407_slib_demo/project_l1/src/at32f403a_407_int.c index 5ba459c7..e1cbd361 100644 --- a/utilities/at32f403a_407_slib_demo/project_l1/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_slib_demo/project_l1/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_slib_demo/project_l1/src/main.c b/utilities/at32f403a_407_slib_demo/project_l1/src/main.c index 79bc6585..4e462300 100644 --- a/utilities/at32f403a_407_slib_demo/project_l1/src/main.c +++ b/utilities/at32f403a_407_slib_demo/project_l1/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/iap.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/iap.h index d14bb441..2980f8bf 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/iap.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/iap.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/tmr.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/tmr.h index 683d145d..c34b7369 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/tmr.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/tmr.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/usart.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/usart.h index 77ebb413..bb3621d7 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/usart.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/inc/usart.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usart.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usart header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/readme.txt b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/readme.txt index b7e49208..ec4b8797 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/readme.txt +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c index e5099f1d..5fa3cce0 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/iap.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/iap.c index f9bf9771..78be6c84 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/iap.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/iap.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/main.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/main.c index 63ee3fda..d2e65998 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/main.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/tmr.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/tmr.c index b1cfb776..2c421289 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/tmr.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/tmr.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/usart.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/usart.c index b86009f5..852392c4 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/usart.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led3_toggle/src/usart.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usart.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usart program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_int.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/iap.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/iap.h index 6591cc16..ff689a5d 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/iap.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/iap.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/tmr.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/tmr.h index 13a8b3c3..9da19fd0 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/tmr.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/tmr.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/usart.h b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/usart.h index 534261d6..0b864100 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/usart.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/inc/usart.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usart.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usart header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/readme.txt b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/readme.txt index ff45b44a..cfa14db5 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/readme.txt +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_clock.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_int.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_int.c index 14ea5eef..8fdea6eb 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/iap.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/iap.c index 9460d27e..8ceff205 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/iap.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/iap.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/main.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/main.c index 2ac920ca..af619b9b 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/main.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/tmr.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/tmr.c index 283685de..1089c585 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/tmr.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/tmr.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/usart.c b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/usart.c index 04eba573..0e02bb60 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/usart.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/app_led4_toggle/src/usart.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usart.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usart program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/flash.h b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/flash.h index c32db1d1..d227de5e 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/flash.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/flash.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/iap.h b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/iap.h index 15d41dd8..04ad146c 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/iap.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/iap.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/tmr.h b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/tmr.h index c785aa0b..e628a747 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/tmr.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/tmr.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/usart.h b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/usart.h index 726e874c..29d8c806 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/usart.h +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/inc/usart.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usart.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usart header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/readme.txt b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/readme.txt index ef6238c4..b2706f94 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/readme.txt +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c index f499037f..8e72d801 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/at32f403a_407_int.c b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/at32f403a_407_int.c index 162b85b8..3c9a7b87 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/flash.c b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/flash.c index b810773c..069520f7 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/flash.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/flash.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/iap.c b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/iap.c index 768c67f5..e6e9e579 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/iap.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/iap.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/main.c b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/main.c index d76cc9e8..08b29828 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/main.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/tmr.c b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/tmr.c index 1f80a7b9..577efd06 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/tmr.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/tmr.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/usart.c b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/usart.c index bc606e07..4cfec9fa 100644 --- a/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/usart.c +++ b/utilities/at32f403a_407_usart_iap_demo/source_code/bootloader/src/usart.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usart.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usart program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/hid_iap_user.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/hid_iap_user.h index 15828e66..4a48f04f 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/hid_iap_user.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/hid_iap_user.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_user.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/usb_conf.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/usb_conf.h index fd6a8e29..fb7a5c13 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/usb_conf.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/readme.txt b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/readme.txt index de2f8434..5d7ec513 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/readme.txt +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c index d3e377db..373a1a6e 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/hid_iap_user.c b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/hid_iap_user.c index 988ac04b..b1a35cb2 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/hid_iap_user.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/hid_iap_user.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_user.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid iap user file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/main.c b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/main.c index bea9db18..e453e3b9 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/main.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led3_toggle/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_int.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/hid_iap_user.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/hid_iap_user.h index b345c086..0b0377ac 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/hid_iap_user.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/hid_iap_user.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_user.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/usb_conf.h b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/usb_conf.h index fd6a8e29..fb7a5c13 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/usb_conf.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/readme.txt b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/readme.txt index 0cd601da..a914c364 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/readme.txt +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_clock.c b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_int.c b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_int.c index 07d9ba69..d27c119e 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/hid_iap_user.c b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/hid_iap_user.c index bffffebe..b881e280 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/hid_iap_user.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/hid_iap_user.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_user.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid iap user file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/main.c b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/main.c index 97995ffe..1150606f 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/main.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/app_led4_toggle/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h index 22fc0fca..1764cac9 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/hid_iap_user.h b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/hid_iap_user.h index db1a6df9..1fd7e361 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/hid_iap_user.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/hid_iap_user.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_user.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/usb_conf.h b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/usb_conf.h index 46e3494d..fb64f084 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/usb_conf.h +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/inc/usb_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file usb_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/readme.txt b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/readme.txt index ecc0b61f..410580aa 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/readme.txt +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c index 7f00bb0b..fa1aef7c 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/at32f403a_407_int.c b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/at32f403a_407_int.c index 16ab8d9a..d62c6a3d 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/at32f403a_407_int.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/hid_iap_user.c b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/hid_iap_user.c index 5b176c98..ee3ad4ec 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/hid_iap_user.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/hid_iap_user.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file hid_iap_user.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief usb hid iap user file ************************************************************************** * Copyright notice & Disclaimer @@ -474,6 +474,7 @@ void iap_loop(void) { if(iap_info.state == IAP_STS_JMP) { + delay_ms(100); jump_to_app(iap_info.app_address); } } diff --git a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/main.c b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/main.c index cd87e4e3..e4860291 100644 --- a/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/main.c +++ b/utilities/at32f403a_407_usb_iap_demo/source_code/bootloader/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32_emac.h b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32_emac.h index 276691ff..a65444f2 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32_emac.h +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of emac config program. ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407.h" +#include "netif.h" /** @addtogroup UTILITIES_examples * @{ @@ -56,6 +57,8 @@ #define DM9162 //#define DP83848 +#define LINK_DETECTION (1) /*!< link status detection, 0: no detection, 1: detect with polling */ + #if defined (DM9162) #define PHY_ADDRESS (0x00) /*!< relative to at32 board */ #define PHY_CONTROL_REG (0x00) /*!< basic mode control register */ @@ -107,6 +110,12 @@ error_status emac_phy_register_reset(void); error_status emac_speed_config(emac_auto_negotiation_type nego, emac_duplex_type mode, emac_speed_type speed); error_status emac_phy_init(emac_control_config_type *control_para); +uint16_t link_update(void); +void ethernetif_set_link(void const *argument); +void ethernetif_notify_conn_changed(struct netif *netif); +void ethernetif_update_config(struct netif *netif); +void emac_tmr_init(void); + /** * @} */ diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h index d76b3343..f85f091a 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/flash.h b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/flash.h index 70e15817..b35f3b95 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/flash.h +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/flash.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/iap.h b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/iap.h index c0cc6fa1..30738c08 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/iap.h +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/iap.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/lwipopts.h b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/lwipopts.h new file mode 100644 index 00000000..344412d3 --- /dev/null +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/lwipopts.h @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the lwIP TCP/IP stack. + * + * Author: Simon Goldschmidt + * + */ +#ifndef LWIP_HDR_LWIPOPTS_H +#define LWIP_HDR_LWIPOPTS_H + +//#define LWIP_TESTMODE 0 + +#define LWIP_IPV4 1 + +//#define LWIP_TIMERS 0 + +//#define LWIP_CHECKSUM_ON_COPY 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(printfmsg) LWIP_ASSERT("TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL", 0) + +/* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */ +#define NO_SYS 1 +#define SYS_LIGHTWEIGHT_PROT 0 +#define LWIP_NETCONN !NO_SYS +#define LWIP_SOCKET !NO_SYS +#define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET +#define LWIP_NETBUF_RECVINFO 1 +#define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +#define LWIP_DNS 1 +#define DNS_DOES_NAME_CHECK 1 +//#define TCPIP_THREAD_TEST + +/* Enable DHCP to test it, disable UDP checksum to easier inject packets */ +#define LWIP_DHCP 0 + +/* Minimal changes to opt.h required for tcp unit tests: */ +/* TCP Maximum segment size. */ + +#define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */ +/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which + lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 + byte alignment -> define MEM_ALIGNMENT to 2. */ +#define MEM_ALIGNMENT 4 +#define MEM_SIZE (20*1024) +#define TCP_SND_QUEUELEN (6 * TCP_SND_BUF)/TCP_MSS +#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN +#define TCP_SND_BUF (2 * TCP_MSS) +#define TCP_WND (2 * TCP_MSS) +#define LWIP_WND_SCALE 0 +#define TCP_RCV_SCALE 0 +#define PBUF_POOL_SIZE 10 /* pbuf tests need ~200KByte */ +/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ +#define PBUF_POOL_BUFSIZE 2000 +//#define TCP_QUEUE_OOSEQ 0 + +/* ---------- TCP options ---------- */ +#define LWIP_TCP 1 +#define TCP_TTL 255 + +/* Enable IGMP and MDNS for MDNS tests */ +#define LWIP_IGMP 1 +#define LWIP_MDNS_RESPONDER 1 +#define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER) + +/* Minimal changes to opt.h required for etharp unit tests: */ +#define ETHARP_SUPPORT_STATIC_ENTRIES 1 + +#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 8) + +/* MIB2 stats are required to check IPv4 reassembly results */ +#define MIB2_STATS 1 + +/* netif tests want to test this, so enable: */ +//#define LWIP_NETIF_EXT_STATUS_CALLBACK 1 + +/* Check lwip_stats.mem.illegal instead of asserting */ +#define LWIP_MEM_ILLEGAL_FREE(msg) /* to nothing */ + +#endif /* LWIP_HDR_LWIPOPTS_H */ diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/netconf.h b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/netconf.h index aa2aee52..aef884bd 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/netconf.h +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/netconf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief This file contains all the functions prototypes for the netconf.c * file. ************************************************************************** @@ -36,6 +36,7 @@ /* Includes ------------------------------------------------------------------*/ void tcpip_stack_init(void); void lwip_pkt_handle(void); +void time_update(void); void lwip_periodic_handle(volatile uint32_t localtime); #ifdef __cplusplus diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/tmr.h b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/tmr.h index ce375e95..bc57900c 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/tmr.h +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/inc/tmr.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/mdk_v5/app_led3_toggle.uvprojx b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/mdk_v5/app_led3_toggle.uvprojx index 470010e0..caf636dd 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/mdk_v5/app_led3_toggle.uvprojx +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/mdk_v5/app_led3_toggle.uvprojx @@ -10,7 +10,7 @@ app_led3_toggle 0x4 ARM-ADS - 5060061::V5.06 update 1 (build 61)::ARMCC + 5060750::V5.06 update 6 (build 750)::.\ARMCC 0 diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/readme.txt b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/readme.txt index 5ae985de..ea677d46 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/readme.txt +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32_emac.c b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32_emac.c index e1228958..39e1172b 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32_emac.c +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief emac config program ************************************************************************** * Copyright notice & Disclaimer @@ -26,6 +26,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407_board.h" +#include "lwip/dhcp.h" #include "at32_emac.h" /** @addtogroup UTILITIES_examples @@ -36,6 +37,8 @@ * @{ */ +emac_control_config_type mac_control_para; + /** * @brief enable emac clock and gpio clock * @param none @@ -54,6 +57,7 @@ error_status emac_system_init(void) emac_pins_configuration(); status = emac_layer2_configuration(); + emac_tmr_init(); return status; } @@ -206,7 +210,6 @@ void emac_pins_configuration(void) */ error_status emac_layer2_configuration(void) { - emac_control_config_type mac_control_para; emac_dma_config_type dma_control_para; #ifdef MII gpio_pin_remap_config(MII_RMII_SEL_GMUX, FALSE); @@ -453,15 +456,131 @@ error_status emac_phy_init(emac_control_config_type *control_para) { return ERROR; } - if(emac_speed_config(control_para->auto_nego, control_para->duplex_mode, control_para->fast_ethernet_speed) == ERROR) - { - return ERROR; - } emac_control_config(control_para); return SUCCESS; } +/** + * @brief updates the link states + * @param none + * @retval link state 0: disconnect, 1: connection + */ +uint16_t link_update(void) +{ + uint16_t link_data, link_state; + if(emac_phy_register_read(PHY_ADDRESS, PHY_STATUS_REG, &link_data) == ERROR) + { + return ERROR; + } + + link_state = (link_data & PHY_LINKED_STATUS_BIT)>>2; + return link_state; +} + +/** + * @brief this function sets the netif link status. + * @param netif: the network interface + * @retval none + */ +void ethernetif_set_link(void const *argument) +{ + uint16_t regvalue = 0; + struct netif *netif = (struct netif *)argument; + + /* read phy_bsr*/ + regvalue = link_update(); + + /* check whether the netif link down and the phy link is up */ + if(!netif_is_link_up(netif) && (regvalue)) + { + /* network cable is connected */ + netif_set_link_up(netif); + } + else if(netif_is_link_up(netif) && (!regvalue)) + { + /* network cable is dis-connected */ + netif_set_link_down(netif); + } +} + +/** + * @brief this function notify user about link status changement. + * @param netif: the network interface + * @retval none + */ +void ethernetif_notify_conn_changed(struct netif *netif) +{ + /* note : this is function could be implemented in user file + when the callback is needed, + */ + + if (netif_is_link_up(netif)) { + netif_set_up(netif); + +#if LWIP_DHCP + /* creates a new dhcp client for this interface on the first call. + note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at + the predefined regular intervals after starting the client. + you can peek in the netif->dhcp struct for the actual dhcp status.*/ + dhcp_start(netif); +#endif + } + else + netif_set_down(netif); +} + +/** + * @brief link callback function, this function is called on change of link status + * to update low level driver configuration. + * @param netif: the network interface + * @retval none + */ +void ethernetif_update_config(struct netif *netif) +{ + if(netif_is_link_up(netif)) + { + emac_speed_config(mac_control_para.auto_nego, mac_control_para.duplex_mode, mac_control_para.fast_ethernet_speed); + + delay_ms(300); + /* enable mac and dma transmission and reception */ + emac_start(); + } + else + { + /* disable mac and dma transmission and reception */ + emac_stop(); + } + + ethernetif_notify_conn_changed(netif); +} + +/** + * @brief initialize tmr6 for emac + * @param none + * @retval none + */ +void emac_tmr_init(void) +{ + crm_clocks_freq_type crm_clocks_freq_struct = {0}; + crm_periph_clock_enable(CRM_TMR6_PERIPH_CLOCK, TRUE); + + crm_clocks_freq_get(&crm_clocks_freq_struct); + /* tmr1 configuration */ + /* time base configuration */ + /* systemclock/24000/100 = 100hz */ + tmr_base_init(TMR6, 99, (crm_clocks_freq_struct.ahb_freq / 10000) - 1); + tmr_cnt_dir_set(TMR6, TMR_COUNT_UP); + + /* overflow interrupt enable */ + tmr_interrupt_enable(TMR6, TMR_OVF_INT, TRUE); + + /* tmr1 overflow interrupt nvic init */ + nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); + nvic_irq_enable(TMR6_GLOBAL_IRQn, 0, 0); + tmr_counter_enable(TMR6, TRUE); +} + /** * @} */ diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c index 7ddab853..ca7d4a5b 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c index d8028056..5e329512 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer @@ -133,6 +133,21 @@ void SysTick_Handler(void) { } +/** + * @brief this function handles timer6 overflow handler. + * @param none + * @retval none + */ +void TMR6_GLOBAL_IRQHandler(void) +{ + if(tmr_flag_get(TMR6, TMR_OVF_FLAG) != RESET) + { + /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ + time_update(); + tmr_flag_clear(TMR6, TMR_OVF_FLAG); + } +} + /** * @brief this function handles emac handler. * @param none diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/flash.c b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/flash.c index b20b1d2f..9b305360 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/flash.c +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/flash.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/iap.c b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/iap.c index c1f6cd39..d23017e9 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/iap.c +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/iap.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/main.c b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/main.c index e430e4a7..d9fa0b40 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/main.c +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -41,6 +41,8 @@ * @{ */ +volatile uint32_t local_time = 0; + /** * @brief main function. * @param none @@ -72,7 +74,10 @@ int main(void) tmr_init(); - while(1); + while(1) + { + lwip_periodic_handle(local_time); + } } /** diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/netconf.c b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/netconf.c index 245da0ed..0263249b 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/netconf.c +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/netconf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief network connection configuration ************************************************************************** * Copyright notice & Disclaimer @@ -34,15 +34,19 @@ #include "ethernetif.h" #include "netconf.h" #include "stdio.h" +#include "at32_emac.h" /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ #define MAC_ADDR_LENGTH (6) #define ADDR_LENGTH (4) +#define SYSTEMTICK_PERIOD_MS 10 /* Private variables ---------------------------------------------------------*/ +extern volatile uint32_t local_time; struct netif netif; volatile uint32_t tcp_timer = 0; volatile uint32_t arp_timer = 0; +volatile uint32_t link_timer = 0; static uint8_t mac_address[MAC_ADDR_LENGTH] = {0, 0, 0x44, 0x45, 0x56, 1};; #if LWIP_DHCP @@ -109,16 +113,11 @@ void tcpip_stack_init(void) /* Registers the default network interface.*/ netif_set_default(&netif); -#if LWIP_DHCP - /* Creates a new DHCP client for this interface on the first call. - Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at - the predefined regular intervals after starting the client. - You can peek in the netif->dhcp struct for the actual DHCP status.*/ - dhcp_start(&netif); -#endif - /* When the netif is fully configured this function must be called.*/ netif_set_up(&netif); + + /* Set the link callback function, this function is called on change of link status*/ + netif_set_link_callback(&netif, ethernetif_update_config); } /** @@ -135,6 +134,16 @@ void lwip_pkt_handle(void) } } +/** + * @brief updates the system local time + * @param none + * @retval none + */ +void time_update(void) +{ + local_time += SYSTEMTICK_PERIOD_MS; +} + /** * @brief LwIP periodic tasks * @param localtime the current LocalTime value @@ -170,4 +179,13 @@ void lwip_periodic_handle(volatile uint32_t localtime) dhcp_coarse_tmr(); } #endif + +#if (LINK_DETECTION > 0) + /* link detection process every 500 ms */ + if (localtime - link_timer >= 500) + { + link_timer = localtime; + ethernetif_set_link(&netif); + } +#endif } diff --git a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/tmr.c b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/tmr.c index b9dcad0d..c132a9a0 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/tmr.c +++ b/utilities/at32f407_emac_iap_demo/source_code/app_led3_toggle/src/tmr.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32_emac.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32_emac.h index 47f0fa3e..5477918a 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32_emac.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32_emac.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of emac config program. ************************************************************************** * Copyright notice & Disclaimer @@ -34,6 +34,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407.h" +#include "netif.h" /** @addtogroup UTILITIES_examples * @{ @@ -56,6 +57,8 @@ #define DM9162 //#define DP83848 +#define LINK_DETECTION (1) /*!< link status detection, 0: no detection, 1: detect with polling */ + #if defined (DM9162) #define PHY_ADDRESS (0x00) /*!< relative to at32 board */ #define PHY_CONTROL_REG (0x00) /*!< basic mode control register */ @@ -107,6 +110,12 @@ error_status emac_phy_register_reset(void); error_status emac_speed_config(emac_auto_negotiation_type nego, emac_duplex_type mode, emac_speed_type speed); error_status emac_phy_init(emac_control_config_type *control_para); +uint16_t link_update(void); +void ethernetif_set_link(void const *argument); +void ethernetif_notify_conn_changed(struct netif *netif); +void ethernetif_update_config(struct netif *netif); +void emac_tmr_init(void); + /** * @} */ diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h index c43dbf68..202d8a51 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_clock.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of clock program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h index c5c2362f..9b0bc385 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_conf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_conf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief at32f403a_407 config header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h index b6878cbc..3526a140 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/at32f403a_407_int.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief header file of main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/flash.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/flash.h index c015d7c6..0c07d83a 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/flash.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/flash.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/fsdata.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/fsdata.h index 3a7a860e..df897b42 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/fsdata.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/fsdata.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file fsdata.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief fsdata header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/httpserver.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/httpserver.h index 887bc96b..4e8e8c5c 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/httpserver.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/httpserver.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file httpserver.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief httpserver header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/iap.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/iap.h index 8454ce38..e3e36fa2 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/iap.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/iap.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/lwipopts.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/lwipopts.h new file mode 100644 index 00000000..344412d3 --- /dev/null +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/lwipopts.h @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2001-2003 Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the lwIP TCP/IP stack. + * + * Author: Simon Goldschmidt + * + */ +#ifndef LWIP_HDR_LWIPOPTS_H +#define LWIP_HDR_LWIPOPTS_H + +//#define LWIP_TESTMODE 0 + +#define LWIP_IPV4 1 + +//#define LWIP_TIMERS 0 + +//#define LWIP_CHECKSUM_ON_COPY 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 1 +//#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(printfmsg) LWIP_ASSERT("TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL", 0) + +/* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */ +#define NO_SYS 1 +#define SYS_LIGHTWEIGHT_PROT 0 +#define LWIP_NETCONN !NO_SYS +#define LWIP_SOCKET !NO_SYS +#define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET +#define LWIP_NETBUF_RECVINFO 1 +#define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +#define LWIP_DNS 1 +#define DNS_DOES_NAME_CHECK 1 +//#define TCPIP_THREAD_TEST + +/* Enable DHCP to test it, disable UDP checksum to easier inject packets */ +#define LWIP_DHCP 0 + +/* Minimal changes to opt.h required for tcp unit tests: */ +/* TCP Maximum segment size. */ + +#define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */ +/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which + lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 + byte alignment -> define MEM_ALIGNMENT to 2. */ +#define MEM_ALIGNMENT 4 +#define MEM_SIZE (20*1024) +#define TCP_SND_QUEUELEN (6 * TCP_SND_BUF)/TCP_MSS +#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN +#define TCP_SND_BUF (2 * TCP_MSS) +#define TCP_WND (2 * TCP_MSS) +#define LWIP_WND_SCALE 0 +#define TCP_RCV_SCALE 0 +#define PBUF_POOL_SIZE 10 /* pbuf tests need ~200KByte */ +/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ +#define PBUF_POOL_BUFSIZE 2000 +//#define TCP_QUEUE_OOSEQ 0 + +/* ---------- TCP options ---------- */ +#define LWIP_TCP 1 +#define TCP_TTL 255 + +/* Enable IGMP and MDNS for MDNS tests */ +#define LWIP_IGMP 1 +#define LWIP_MDNS_RESPONDER 1 +#define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER) + +/* Minimal changes to opt.h required for etharp unit tests: */ +#define ETHARP_SUPPORT_STATIC_ENTRIES 1 + +#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 8) + +/* MIB2 stats are required to check IPv4 reassembly results */ +#define MIB2_STATS 1 + +/* netif tests want to test this, so enable: */ +//#define LWIP_NETIF_EXT_STATUS_CALLBACK 1 + +/* Check lwip_stats.mem.illegal instead of asserting */ +#define LWIP_MEM_ILLEGAL_FREE(msg) /* to nothing */ + +#endif /* LWIP_HDR_LWIPOPTS_H */ diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/netconf.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/netconf.h index aa2aee52..aef884bd 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/netconf.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/netconf.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief This file contains all the functions prototypes for the netconf.c * file. ************************************************************************** @@ -36,6 +36,7 @@ /* Includes ------------------------------------------------------------------*/ void tcpip_stack_init(void); void lwip_pkt_handle(void); +void time_update(void); void lwip_periodic_handle(volatile uint32_t localtime); #ifdef __cplusplus diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/tmr.h b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/tmr.h index 06de9316..0fb43482 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/tmr.h +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/inc/tmr.h @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.h - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr header file ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/mdk_v5/bootloader.uvprojx b/utilities/at32f407_emac_iap_demo/source_code/bootloader/mdk_v5/bootloader.uvprojx index 10da6a76..12cd232c 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/mdk_v5/bootloader.uvprojx +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/mdk_v5/bootloader.uvprojx @@ -10,7 +10,7 @@ bootloader 0x4 ARM-ADS - 5060061::V5.06 update 1 (build 61)::ARMCC + 5060750::V5.06 update 6 (build 750)::.\ARMCC 0 diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/readme.txt b/utilities/at32f407_emac_iap_demo/source_code/bootloader/readme.txt index 116355d8..48c279af 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/readme.txt +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/readme.txt @@ -1,8 +1,8 @@ /** ************************************************************************** * @file readme.txt - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief readme ************************************************************************** */ diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32_emac.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32_emac.c index 33c271ee..6c0b214d 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32_emac.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32_emac.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32_emac.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief emac config program ************************************************************************** * Copyright notice & Disclaimer @@ -26,6 +26,7 @@ /* includes ------------------------------------------------------------------*/ #include "at32f403a_407_board.h" +#include "lwip/dhcp.h" #include "at32_emac.h" /** @addtogroup UTILITIES_examples @@ -36,6 +37,8 @@ * @{ */ +emac_control_config_type mac_control_para; + /** * @brief enable emac clock and gpio clock * @param none @@ -54,6 +57,7 @@ error_status emac_system_init(void) emac_pins_configuration(); status = emac_layer2_configuration(); + emac_tmr_init(); return status; } @@ -227,7 +231,6 @@ void emac_pins_configuration(void) */ error_status emac_layer2_configuration(void) { - emac_control_config_type mac_control_para; emac_dma_config_type dma_control_para; #ifdef MII_MODE gpio_pin_remap_config(MII_RMII_SEL_GMUX, FALSE); @@ -485,6 +488,126 @@ error_status emac_phy_init(emac_control_config_type *control_para) return SUCCESS; } +/** + * @brief updates the link states + * @param none + * @retval link state 0: disconnect, 1: connection + */ +uint16_t link_update(void) +{ + uint16_t link_data, link_state; + if(emac_phy_register_read(PHY_ADDRESS, PHY_STATUS_REG, &link_data) == ERROR) + { + return ERROR; + } + + link_state = (link_data & PHY_LINKED_STATUS_BIT)>>2; + return link_state; +} + +/** + * @brief this function sets the netif link status. + * @param netif: the network interface + * @retval none + */ +void ethernetif_set_link(void const *argument) +{ + uint16_t regvalue = 0; + struct netif *netif = (struct netif *)argument; + + /* read phy_bsr*/ + regvalue = link_update(); + + /* check whether the netif link down and the phy link is up */ + if(!netif_is_link_up(netif) && (regvalue)) + { + /* network cable is connected */ + netif_set_link_up(netif); + } + else if(netif_is_link_up(netif) && (!regvalue)) + { + /* network cable is dis-connected */ + netif_set_link_down(netif); + } +} + +/** + * @brief this function notify user about link status changement. + * @param netif: the network interface + * @retval none + */ +void ethernetif_notify_conn_changed(struct netif *netif) +{ + /* note : this is function could be implemented in user file + when the callback is needed, + */ + + if (netif_is_link_up(netif)) { + netif_set_up(netif); + +#if LWIP_DHCP + /* creates a new dhcp client for this interface on the first call. + note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at + the predefined regular intervals after starting the client. + you can peek in the netif->dhcp struct for the actual dhcp status.*/ + dhcp_start(netif); +#endif + } + else + netif_set_down(netif); +} + +/** + * @brief link callback function, this function is called on change of link status + * to update low level driver configuration. + * @param netif: the network interface + * @retval none + */ +void ethernetif_update_config(struct netif *netif) +{ + if(netif_is_link_up(netif)) + { + emac_speed_config(mac_control_para.auto_nego, mac_control_para.duplex_mode, mac_control_para.fast_ethernet_speed); + + delay_ms(300); + /* enable mac and dma transmission and reception */ + emac_start(); + } + else + { + /* disable mac and dma transmission and reception */ + emac_stop(); + } + + ethernetif_notify_conn_changed(netif); +} + +/** + * @brief initialize tmr6 for emac + * @param none + * @retval none + */ +void emac_tmr_init(void) +{ + crm_clocks_freq_type crm_clocks_freq_struct = {0}; + crm_periph_clock_enable(CRM_TMR6_PERIPH_CLOCK, TRUE); + + crm_clocks_freq_get(&crm_clocks_freq_struct); + /* tmr1 configuration */ + /* time base configuration */ + /* systemclock/24000/100 = 100hz */ + tmr_base_init(TMR6, 99, (crm_clocks_freq_struct.ahb_freq / 10000) - 1); + tmr_cnt_dir_set(TMR6, TMR_COUNT_UP); + + /* overflow interrupt enable */ + tmr_interrupt_enable(TMR6, TMR_OVF_INT, TRUE); + + /* tmr1 overflow interrupt nvic init */ + nvic_priority_group_config(NVIC_PRIORITY_GROUP_4); + nvic_irq_enable(TMR6_GLOBAL_IRQn, 0, 0); + tmr_counter_enable(TMR6, TRUE); +} + /** * @} */ diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c index 7ddab853..ca7d4a5b 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32f403a_407_clock.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_clock.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief system clock config program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32f403a_407_int.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32f403a_407_int.c index 0cfb1c1b..a2d235cb 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32f403a_407_int.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/at32f403a_407_int.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file at32f403a_407_int.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main interrupt service routines. ************************************************************************** * Copyright notice & Disclaimer @@ -133,6 +133,21 @@ void SysTick_Handler(void) { } +/** + * @brief this function handles timer6 overflow handler. + * @param none + * @retval none + */ +void TMR6_GLOBAL_IRQHandler(void) +{ + if(tmr_flag_get(TMR6, TMR_OVF_FLAG) != RESET) + { + /* Update the local_time by adding SYSTEMTICK_PERIOD_MS each SysTick interrupt */ + time_update(); + tmr_flag_clear(TMR6, TMR_OVF_FLAG); + } +} + /** * @brief this function handles emac handler. * @param none diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/flash.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/flash.c index 3c8dfd70..3a98667e 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/flash.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/flash.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file flash.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief flash program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/fsdata.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/fsdata.c index d9b4fe3b..7c139133 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/fsdata.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/fsdata.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file fsdata.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief fsdata ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/httpserver.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/httpserver.c index 08ccbb9b..126901a7 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/httpserver.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/httpserver.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file httpserver.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief httpserver program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/iap.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/iap.c index 66c87dfb..e434efc1 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/iap.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/iap.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file iap.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief iap program ************************************************************************** * Copyright notice & Disclaimer diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/main.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/main.c index 01d6c89f..29eb63ce 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/main.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/main.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file main.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief main program ************************************************************************** * Copyright notice & Disclaimer @@ -44,6 +44,8 @@ * @{ */ +volatile uint32_t local_time = 0; + /** * @brief main function. * @param none @@ -82,8 +84,6 @@ int main(void) tcpip_stack_init(); - tmr_init(); - /* init flash */ flash_unlock(); @@ -101,7 +101,12 @@ int main(void) iap_tftpd_init(); #endif - while(1); + tmr_init(); + + while(1) + { + lwip_periodic_handle(local_time); + } } /** diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/netconf.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/netconf.c index 245da0ed..0263249b 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/netconf.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/netconf.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file netconf.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief network connection configuration ************************************************************************** * Copyright notice & Disclaimer @@ -34,15 +34,19 @@ #include "ethernetif.h" #include "netconf.h" #include "stdio.h" +#include "at32_emac.h" /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ #define MAC_ADDR_LENGTH (6) #define ADDR_LENGTH (4) +#define SYSTEMTICK_PERIOD_MS 10 /* Private variables ---------------------------------------------------------*/ +extern volatile uint32_t local_time; struct netif netif; volatile uint32_t tcp_timer = 0; volatile uint32_t arp_timer = 0; +volatile uint32_t link_timer = 0; static uint8_t mac_address[MAC_ADDR_LENGTH] = {0, 0, 0x44, 0x45, 0x56, 1};; #if LWIP_DHCP @@ -109,16 +113,11 @@ void tcpip_stack_init(void) /* Registers the default network interface.*/ netif_set_default(&netif); -#if LWIP_DHCP - /* Creates a new DHCP client for this interface on the first call. - Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at - the predefined regular intervals after starting the client. - You can peek in the netif->dhcp struct for the actual DHCP status.*/ - dhcp_start(&netif); -#endif - /* When the netif is fully configured this function must be called.*/ netif_set_up(&netif); + + /* Set the link callback function, this function is called on change of link status*/ + netif_set_link_callback(&netif, ethernetif_update_config); } /** @@ -135,6 +134,16 @@ void lwip_pkt_handle(void) } } +/** + * @brief updates the system local time + * @param none + * @retval none + */ +void time_update(void) +{ + local_time += SYSTEMTICK_PERIOD_MS; +} + /** * @brief LwIP periodic tasks * @param localtime the current LocalTime value @@ -170,4 +179,13 @@ void lwip_periodic_handle(volatile uint32_t localtime) dhcp_coarse_tmr(); } #endif + +#if (LINK_DETECTION > 0) + /* link detection process every 500 ms */ + if (localtime - link_timer >= 500) + { + link_timer = localtime; + ethernetif_set_link(&netif); + } +#endif } diff --git a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/tmr.c b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/tmr.c index 67999d17..161aa92c 100644 --- a/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/tmr.c +++ b/utilities/at32f407_emac_iap_demo/source_code/bootloader/src/tmr.c @@ -1,8 +1,8 @@ /** ************************************************************************** * @file tmr.c - * @version v2.0.8 - * @date 2022-04-02 + * @version v2.0.9 + * @date 2022-04-25 * @brief tmr program ************************************************************************** * Copyright notice & Disclaimer