5个帖子/ 0新
最后一篇
prasanth.velliy ...
离线
最后一次露面:2年2个月前
加入:2016-02-18 12:18
定时器中断

如何将Timer0中断添加到DSPS,SPS_DEVICE项目中,我要做的更改是什么?请使用Timer0中断提供示例代码,用于DSPS,SPS_Device项目,如果有任何其他选项Plese提供示例代码......我正在使用此计时器延迟来从I2C设备读取,在DSPS SPS_DEVICE项目中,

设备:
Gongyu_dialog.
离线
最后一次露面:6天1小时前
加入:2016-04-27 07:07
为什么不打电话

为什么不调用“app_easy_timer”函数来执行此操作,它更方便。

prasanth.velliy ...
离线
最后一次露面:2年2个月前
加入:2016-02-18 12:18
如果你发帖会很棒

如果您发布示例代码延迟使用 - > app_easy_timer会很棒

prasanth.velliy ...
离线
最后一次露面:2年2个月前
加入:2016-02-18 12:18
i2c_read()

i2c_read()
{
wrbl_env.sensor_read_time = app_easy_timer(1000,wrbl_env.wrbl_timer_cb);// 延迟

for(Uint8_t i = 0;一世

Gongyu_dialog.
离线
最后一次露面:6天1小时前
加入:2016-04-27 07:07
void user_i2c_read(void)

void user_i2c_read(void)
{
.......
sensor_timer = app_easy_timer(延迟,user_i2c_read);
返回;
}

//只需拨打无限地完成工作。
如果要停止,那么只需调用app_easy_timer_cancel(Sensor_Timer)。

主题锁定