请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC2640 工具/软件:TI-RTOS
这是我的代码
//初始化 Power_setDependency (Periph_GPT1); TimerConfigure (GPT1_base、TIMER_CFG_SPLIT_PAIR | TIMER_CFG_A_CAP_TIME_UP); TimerPrescaleSet (GPT1_base、TIMER_Both、 0); //启动计时 器 void CSB_start () { Power_setConstraint (Power_SB_disallow); TimerEnable (GPT1_base、timer_A); } //停止计时 器 void CSB_stop () { count_yth=TimerValueGet (GPT1_base、timer_A); Power_learen_test (在此);GPB_disable_program (Timer_start );}(GPB_is_disable_t1);(GPB_disable_ise_t1)(在此)(Timer_disable_disable_task_start);(GPB_is_is_is_is_is_disable)()(GPB_
但计时器的计数值始终为0