Warning[Pe223]: function "TIM1_ITConfig" declared implicitly
Error[Pe020]: identifier "TIM1_IT_UPDATE" is undefined
Warning[Pe223]: function "TIM1_Cmd" declared implicitly
Error while running C/C++ Compiler
用IAR make时出现这个错误,哪个大神可以解决
void Tim1_Init(void)
{
/* 初始化TIM1为外部时钟24分频 向上计数模式 计数周期1000 计数初始值0 -- 1ms进一次中断*/
TIM1_TimeBaseInit(23, TIM1_COUNTERMODE_UP, 999, 0);
TIM1_SetCounter(0);/* 将计数器初值设为0 */
TIM1_ARRPreloadConfig(DISABLE); /* 预装载不使能 */
TIM1_ITConfig(TIM1_IT_UPDATE , ENABLE); /* 计数器向上计数/向下计数溢出更新中断 */
TIM1_Cmd(ENABLE); /* 使能TIM1 */
} |