1、采用GCC编译器启动文件startup_at32f421c8t7.S中,
... ...
.word TMR1_BRK_UP_TRG_COM_IRQHandler /* TMR1 Break UP TRG COM */
.word TMR1_CC_IRQHandler /* TMR1 Capture Compare */
.word 0 /* 此处增加。 */
.word TMR3_GLOBAL_IRQHandler /* TMR3 */
.word TMR6_GLOBAL_IRQHandler /* TMR6 */
.word 0 /* 此处增加。 */
.word TMR14_GLOBAL_IRQHandler /* TMR14 */
.word TMR15_GLOBAL_IRQHandler /* TMR15 */
... ...
2、头文件at32f4xx_adc.h中,
... ...
#define ADC_ExternalTrig_TMR1_CC3 ((uint32_t)0x00040000) /*!< For ADC1, ADC2 and ADC3 */
#define ADC_ExternalTrig_None ((uint32_t)0x000E0000) /*!< For ADC1, ADC2 and ADC3 */
//#define ADC_ExternalTrig_TMR15_CC1 ((uint32_t)0x02000000) /*!< For ADC1, ADC2 and ADC3 <---- 错误行。*/
#define ADC_ExternalTrig_TMR15_CC1 ((uint32_t)0x000A0000) /*修改后。 */
#if !defined (AT32F421xx)
... ...
|