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:

why not call the function "app_easy_timer"to do this , it is much more convenient.
it would be great , if u post example code for delay using --> app_easy_timer
i2c_read()
{
wrbl_env.sensor_read_time = app_easy_timer( 1000, wrbl_env.wrbl_timer_cb ); // DELAY
for(uint8_t i=0;i
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).