update version to v2.1.1

This commit is contained in:
Artery-MCU
2022-07-25 16:31:10 +08:00
parent 25f12a4ab3
commit eb3198540f
2205 changed files with 7712 additions and 4602 deletions

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @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 (0x01) /*!< [23:16] middle version */
#define __AT32F403A_407_LIBRARY_VERSION_MINOR (0x00) /*!< [15:8] minor version */
#define __AT32F403A_407_LIBRARY_VERSION_MINOR (0x01) /*!< [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) | \

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_conf.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 config header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
******************************************************************************
* @file startup_at32f403a_407.s
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407xx devices vector table for gcc toolchain.
* this module performs:
* - set the initial sp

View File

@@ -1,7 +1,7 @@
;**************************************************************************
;* @file startup_at32f403a_407.s
;* @version v2.1.0
;* @date 2022-06-09
;* @version v2.1.1
;* @date 2022-07-22
;* @brief at32f403a_407 startup file for IAR Systems
;**************************************************************************
;

View File

@@ -1,7 +1,7 @@
;**************************************************************************
;* @file startup_at32f403a_407.s
;* @version v2.1.0
;* @date 2022-06-09
;* @version v2.1.1
;* @date 2022-07-22
;* @brief at32f403a_407 startup file for keil
;**************************************************************************
;

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file system_at32f403a_407.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for cmsis cortex-m4 system source file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file system_at32f403a_407.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief cmsis cortex-m4 system header file.
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,7 +1,7 @@
/******************************************************************************
* @file arm_sorting.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief Private header file for CMSIS DSP Library
******************************************************************************/
/*

View File

@@ -1,7 +1,7 @@
/******************************************************************************
* @file arm_vec_fft.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief Private header file for CMSIS DSP Library
******************************************************************************/
/*

View File

@@ -1,7 +1,7 @@
/******************************************************************************
* @file arm_vec_filtering.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief Private header file for CMSIS DSP Library
******************************************************************************/
/*

View File

@@ -1,7 +1,7 @@
/******************************************************************************
* @file arm_math.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief Public header file for CMSIS DSP Library
******************************************************************************/
/*

View File

@@ -1,7 +1,7 @@
/******************************************************************************
* @file arm_vec_math.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief Public header file for CMSIS DSP Library
******************************************************************************/
/*

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_acc.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 acc header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_adc.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 adc header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_bpr.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 bpr header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_can.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 can header file
**************************************************************************
* Copyright notice & Disclaimer
@@ -352,7 +352,7 @@ typedef struct
*/
typedef struct
{
uint16_t baudrate_div; /*!< baudrate division,this parameter can be 0x001~0x400.*/
uint16_t baudrate_div; /*!< baudrate division,this parameter can be 0x001~0x1000.*/
can_rsaw_type rsaw_size; /*!< resynchronization adjust width */

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_crc.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 crc header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_crm.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 crm header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_dac.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 dac header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_debug.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 debug header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_def.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 macros header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_dma.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 dma header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_emac.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 emac header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_exint.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 exint header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_flash.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 flash header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_gpio.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 gpio header file
**************************************************************************
* Copyright notice & Disclaimer
@@ -914,7 +914,7 @@ uint16_t gpio_output_data_read(gpio_type *gpio_x);
void gpio_bits_set(gpio_type *gpio_x, uint16_t pins);
void gpio_bits_reset(gpio_type *gpio_x, uint16_t pins);
void gpio_bits_write(gpio_type *gpio_x, uint16_t pins, confirm_state bit_state);
void gpio_port_wirte(gpio_type *gpio_x, uint16_t port_value);
void gpio_port_write(gpio_type *gpio_x, uint16_t port_value);
void gpio_pin_wp_config(gpio_type *gpio_x, uint16_t pins);
void gpio_pins_huge_driven_config(gpio_type *gpio_x, uint16_t pins, confirm_state new_state);
void gpio_event_output_config(gpio_port_source_type gpio_port_source, gpio_pins_source_type gpio_pin_source);

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_i2c.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 i2c header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_misc.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 misc header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_pwc.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 pwc header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_rtc.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 rtc header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_sdio.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 sdio header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_spi.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 spi header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_tmr.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 tmr header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_usart.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 usart header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_usb.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 usb header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_wdt.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 wdt header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_wwdt.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 wwdt header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_xmc.h
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief at32f403a_407 xmc header file
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_acc.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the acc firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_adc.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the adc firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_bpr.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the bpr firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_can.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the can firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_crc.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the crc firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_crm.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the crm firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_dac.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the dac firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_debug.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the debug firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_dma.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the dma firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_emac.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the emac firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_exint.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the exint firmware library
**************************************************************************
* Copyright notice & Disclaimer
@@ -125,7 +125,15 @@ void exint_init(exint_init_type *exint_struct)
*/
void exint_flag_clear(uint32_t exint_line)
{
EXINT->intsts = exint_line;
if((EXINT->swtrg & exint_line) == exint_line)
{
EXINT->intsts = exint_line;
EXINT->intsts = exint_line;
}
else
{
EXINT->intsts = exint_line;
}
}
/**

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_flash.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the flash firmware library
**************************************************************************
* Copyright notice & Disclaimer
@@ -781,6 +781,12 @@ flash_status_type flash_byte_program(uint32_t address, uint8_t data)
flash_status_type flash_user_system_data_program(uint32_t address, uint8_t data)
{
flash_status_type status = FLASH_OPERATE_DONE;
if(address == USD_BASE)
{
if(data != 0xA5)
return FLASH_OPERATE_DONE;
}
/* unlock the user system data */
FLASH->usd_unlock = FLASH_UNLOCK_KEY1;

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_gpio.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the gpio firmware library
**************************************************************************
* Copyright notice & Disclaimer
@@ -390,7 +390,7 @@ void gpio_bits_write(gpio_type *gpio_x, uint16_t pins, confirm_state bit_state)
* @param port_value: specifies the value to be written to the port output data register.
* @retval none
*/
void gpio_port_wirte(gpio_type *gpio_x, uint16_t port_value)
void gpio_port_write(gpio_type *gpio_x, uint16_t port_value)
{
gpio_x->odt = port_value;
}

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_i2c.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the i2c firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_misc.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the misc firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_pwc.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the pwc firmware library
**************************************************************************
* Copyright notice & Disclaimer
@@ -228,7 +228,10 @@ void pwc_standby_mode_enter(void)
#if defined (__CC_ARM)
__force_stores();
#endif
__WFI();
while(1)
{
__WFI();
}
}
/**

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_rtc.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the rtc firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_sdio.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the sdio firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_spi.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the spi firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_tmr.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the tmr firmware library
**************************************************************************
* Copyright notice & Disclaimer
@@ -344,23 +344,26 @@ uint32_t tmr_div_value_get(tmr_type *tmr_x)
void tmr_output_channel_config(tmr_type *tmr_x, tmr_channel_select_type tmr_channel,
tmr_output_config_type *tmr_output_struct)
{
uint16_t channel_index = 0, channel_c_index = 0, channel = 0;
uint16_t channel_index = 0, channel_c_index = 0, channel = 0, chx_offset, chcx_offset;
chx_offset = (8 + tmr_channel);
chcx_offset = (9 + tmr_channel);
/* get channel idle state bit position in ctrl2 register */
channel_index = (uint16_t)(tmr_output_struct->oc_idle_state << (8 + tmr_channel));
channel_index = (uint16_t)(tmr_output_struct->oc_idle_state << chx_offset);
/* get channel complementary idle state bit position in ctrl2 register */
channel_c_index = (uint16_t)(tmr_output_struct->occ_idle_state << (9 + tmr_channel));
channel_c_index = (uint16_t)(tmr_output_struct->occ_idle_state << chcx_offset);
if((tmr_x == TMR1) || (tmr_x == TMR8))
{
/* set output channel complementary idle state */
tmr_x->ctrl2 &= ~channel_c_index;
tmr_x->ctrl2 &= ~(1<<chcx_offset);
tmr_x->ctrl2 |= channel_c_index;
}
/* set output channel idle state */
tmr_x->ctrl2 &= ~channel_index;
tmr_x->ctrl2 &= ~(1<<chx_offset);
tmr_x->ctrl2 |= channel_index;
/* set channel output mode */
@@ -388,23 +391,29 @@ void tmr_output_channel_config(tmr_type *tmr_x, tmr_channel_select_type tmr_chan
break;
}
chx_offset = ((tmr_channel * 2) + 1);
chcx_offset = ((tmr_channel * 2) + 3);
/* get channel polarity bit position in cctrl register */
channel_index = (uint16_t)(tmr_output_struct->oc_polarity << ((tmr_channel * 2) + 1));
channel_index = (uint16_t)(tmr_output_struct->oc_polarity << chx_offset);
/* get channel complementary polarity bit position in cctrl register */
channel_c_index = (uint16_t)(tmr_output_struct->occ_polarity << ((tmr_channel * 2) + 3));
channel_c_index = (uint16_t)(tmr_output_struct->occ_polarity << chcx_offset);
if((tmr_x == TMR1) || (tmr_x == TMR8))
{
/* set output channel complementary polarity */
tmr_x->cctrl &= ~channel_c_index;
tmr_x->cctrl &= ~(1<<chcx_offset);
tmr_x->cctrl |= channel_c_index;
}
/* set output channel polarity */
tmr_x->cctrl &= ~channel_index;
tmr_x->cctrl &= ~(1<<chx_offset);
tmr_x->cctrl |= channel_index;
chx_offset = (tmr_channel * 2);
chcx_offset = ((tmr_channel * 2) + 2);
/* get channel enable bit position in cctrl register */
channel_index = (uint16_t)(tmr_output_struct->oc_output_state << (tmr_channel * 2));
@@ -414,12 +423,12 @@ void tmr_output_channel_config(tmr_type *tmr_x, tmr_channel_select_type tmr_chan
if((tmr_x == TMR1) || (tmr_x == TMR8))
{
/* set output channel complementary enable bit */
tmr_x->cctrl &= ~channel_c_index;
tmr_x->cctrl &= ~(1<<chcx_offset);
tmr_x->cctrl |= channel_c_index;
}
/* set output channel enable bit */
tmr_x->cctrl &= ~channel_index;
tmr_x->cctrl &= ~(1<<chx_offset);
tmr_x->cctrl |= channel_index;
}

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_usart.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the usart firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_usb.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains the functions for the usb firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_wdt.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the wdt firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_wwdt.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the wwdt firmware library
**************************************************************************
* Copyright notice & Disclaimer

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f403a_407_xmc.c
* @version v2.1.0
* @date 2022-06-09
* @version v2.1.1
* @date 2022-07-22
* @brief contains all the functions for the xmc firmware library
**************************************************************************
* Copyright notice & Disclaimer