Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1
173
Ver.1.0.0
}
Initialization:
blt_soft_timer_init();
blt_soft_timer_add(&gpio_test0, 23000);
blt_soft_timer_add(&gpio_test1, 7000);
blt_soft_timer_add(&gpio_test2, 13000);
blt_soft_timer_add(&gpio_test3, 27000);
Four tasks are defined with differenet features:
1) Toggle gpio_test0 once every 23ms.
2) gpio_test1 uses 7ms/17ms toggle timer.
3) Delete gpio_test2 after 5s, which can be implemented by invoking
“blt_soft_timer_delete(&gpio_test2)” or “return -1”.
4) Toggle gpio_test3 once every 27ms.