初级会员

- 积分
- 150
- 金钱
- 150
- 注册时间
- 2014-8-19
- 在线时间
- 23 小时
|

楼主 |
发表于 2015-4-26 21:03:29
|
显示全部楼层
回复【4楼】正点原子:
---------------------------------
原子哥 我刚又屏蔽了 TIM6_Int_Init(1000,719);//100Khz????????????????1000??10ms 然后就没事了 u32 uip_timer=0;//uip ???,?10ms??1.
void TIM6_IRQHandler(void)
{
OSIntEnter();
if (TIM_GetITStatus(TIM6, TIM_IT_Update) != RESET) //?????TIM??????:TIM ???
{
uip_timer++;//uip?????1
}
TIM_ClearITPendingBit(TIM6, TIM_IT_Update ); //??TIMx???????:TIM ???
OSIntExit();
}
但这个是必须要的啊 你们在UCOS里都是如何处理 uip_timer 的呀 |
|