mirror of
https://github.com/ArteryTek/AT32F415_Firmware_Library.git
synced 2026-05-21 01:12:20 +00:00
update version to v2.0.5
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_adc.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 adc header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_can.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 can header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_cmp.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 cmp header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_crc.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 crc header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_crm.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 crm header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_debug.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 debug header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_def.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 macros header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_dma.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 dma header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_ertc.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 ertc header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_exint.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 exint header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_flash.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 flash header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_gpio.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 gpio header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_i2c.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 i2c header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_misc.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 misc header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_pwc.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 pwc header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_sdio.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 sdio header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_spi.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 spi header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_tmr.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 tmr header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
@@ -834,15 +834,9 @@ typedef struct
|
||||
#define TMR3 ((tmr_type *) TMR3_BASE)
|
||||
#define TMR4 ((tmr_type *) TMR4_BASE)
|
||||
#define TMR5 ((tmr_type *) TMR5_BASE)
|
||||
#define TMR6 ((tmr_type *) TMR6_BASE)
|
||||
#define TMR7 ((tmr_type *) TMR7_BASE)
|
||||
#define TMR8 ((tmr_type *) TMR8_BASE)
|
||||
#define TMR9 ((tmr_type *) TMR9_BASE)
|
||||
#define TMR10 ((tmr_type *) TMR10_BASE)
|
||||
#define TMR11 ((tmr_type *) TMR11_BASE)
|
||||
#define TMR12 ((tmr_type *) TMR12_BASE)
|
||||
#define TMR13 ((tmr_type *) TMR13_BASE)
|
||||
#define TMR14 ((tmr_type *) TMR14_BASE)
|
||||
|
||||
/** @defgroup TMR_exported_functions
|
||||
* @{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_usart.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 usart header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_usb.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 usb header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_wdt.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 wdt header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_wwdt.h
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief at32f415 wwdt header file
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_adc.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the adc firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_can.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the can firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_cmp.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the gpio firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_crc.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the crc firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_crm.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the crm firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
@@ -61,6 +61,9 @@ void crm_reset(void)
|
||||
/* wait sclk switch status */
|
||||
while(CRM->cfg_bit.sclksts != CRM_SCLK_HICK);
|
||||
|
||||
/* reset hexten, hextbyps, cfden and pllen bits */
|
||||
CRM->ctrl &= ~(0x010D0000U);
|
||||
|
||||
/* reset cfg register, include sclk switch, ahbdiv, apb1div, apb2div, adcdiv,
|
||||
clkout pllrcs, pllhextdiv, pllmult, usbdiv and pllrange bits */
|
||||
CRM->cfg = 0;
|
||||
@@ -68,9 +71,6 @@ void crm_reset(void)
|
||||
/* reset pllfr, pllms, pllns and pllfref bits */
|
||||
CRM->pll = (0x00001F10U);
|
||||
|
||||
/* reset hexten, hextbyps, cfden and pllen bits */
|
||||
CRM->ctrl &= ~(0x010D0000U);
|
||||
|
||||
/* reset clkout[3], usbbufs, hickdiv, clkoutdiv */
|
||||
CRM->misc1 = 0x00100000;
|
||||
|
||||
@@ -343,6 +343,7 @@ void crm_flag_clear(uint32_t flag)
|
||||
case CRM_LOWPOWER_RESET_FLAG:
|
||||
case CRM_ALL_RESET_FLAG:
|
||||
CRM->ctrlsts_bit.rstfc = TRUE;
|
||||
while(CRM->ctrlsts_bit.rstfc == TRUE);
|
||||
break;
|
||||
case CRM_LICK_READY_INT_FLAG:
|
||||
CRM->clkint_bit.lickstblfc = TRUE;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_debug.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the debug firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_dma.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the dma firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_ertc.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the ertc firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
@@ -1460,13 +1460,7 @@ flag_status ertc_flag_get(uint32_t flag)
|
||||
*/
|
||||
void ertc_flag_clear(uint32_t flag)
|
||||
{
|
||||
/* disable write protection */
|
||||
ertc_write_protect_disable();
|
||||
|
||||
ERTC->sts = ~(flag | 0x00000080) | (ERTC->sts_bit.imen << 7);
|
||||
|
||||
/* enable write protection */
|
||||
ertc_write_protect_enable();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_exint.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the exint firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_flash.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the flash firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_gpio.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the gpio firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_i2c.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the i2c firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_misc.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the misc firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_pwc.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the pwc firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_sdio.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the sdio firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_spi.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the spi firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_tmr.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the tmr firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_usart.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the usart firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_usb.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the usb firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_wdt.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the wdt firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* @file at32f415_wwdt.c
|
||||
* @version v2.0.4
|
||||
* @date 2022-04-02
|
||||
* @version v2.0.5
|
||||
* @date 2022-05-20
|
||||
* @brief contains all the functions for the wwdt firmware library
|
||||
**************************************************************************
|
||||
* Copyright notice & Disclaimer
|
||||
|
||||
Reference in New Issue
Block a user