如图所示cfg可视化配置中Timer是否是属于Hwi?使用该Timer模块是否等价于使用以下代码配置定时器?cc2652的HWI的Interrupt number怎么看?使用可视化创建HWI如何设置HwiHooks?
Timer_Handle timer0;Timer_Params params;Timer_init();Timer_Params_init(¶ms);params.period = 1000000;params.periodUnits = Timer_PERIOD_US;params.timerMode = Timer_CONTINUOUS_CALLBACK;params.timerCallback = hwi_ledController;timer0 = Timer_open(CONFIG_TIMER_0, ¶ms);if (timer0 == NULL) {while (1) {}}if (Timer_start(timer0) == Timer_STATUS_ERROR) {while (1) {}}
Viki Shi:
timer产生的中断是硬件中断,选择了timer模块就等价于下面的代码配置