5 posts / 0 new
Last post
prasanth.velliy...
Offline
Last seen:1 year 8 months ago
加入:2016-02-18 12:18
timer interrupt

How to add the timer0 interrupt into the DSPS, sps_device project , what all are the changes that i have to do ?Please provide the example code for delay using timer0 interrupt, for DSPS , sps_device project , if any other options plese provide the example code...I am using this timer delay to read from i2c device , in DSPS sps_device project ,

Device:
Gongyu_Dialog
Offline
Last seen:4 days 44 min ago
加入:2016-04-27 07:07
why not call the function

why not call the function "app_easy_timer"to do this , it is much more convenient.

prasanth.velliy...
Offline
Last seen:1 year 8 months ago
加入:2016-02-18 12:18
it would be great , if u post

it would be great , if u post example code for delay using --> app_easy_timer

prasanth.velliy...
Offline
Last seen:1 year 8 months ago
加入:2016-02-18 12:18
i2c_read()

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

for(uint8_t i=0;i

Gongyu_Dialog
Offline
Last seen:4 days 44 min ago
加入:2016-04-27 07:07
void user_i2c_read(void)

void user_i2c_read(void)
{
.......
sensor_timer= app_easy_timer(delay, user_i2c_read);
return;
}

//just call the function to do the job infinitely.
如果你想要停止,然后就叫美联社p_easy_timer_cancel(sensor_timer).

Topic locked