|
PebbleOS
|
System resources used by the applib animation module. More...
Functions | |
| void | animation_service_timer_schedule (uint32_t ms) |
| Schedule the calling task's animation timer. | |
| void | animation_service_timer_event_received (void) |
| Acknowledge the event posted by the calling task's animation timer. | |
| void | animation_service_cleanup (PebbleTask task) |
| Free the animation resources of a task. | |
System resources used by the applib animation module.
Keeps one timer per task (KernelMain and App) that drives the applib animation scheduler. When the timer fires, a callback event running animation_private_timer_callback() with the task's animation state is posted to that task. Only one such event is kept pending per task.
| void animation_service_cleanup | ( | PebbleTask | task | ) |
Free the animation resources of a task.
Called by the process manager on KernelMain when a process exits.
| task | Task whose timer is deleted. |
| void animation_service_timer_event_received | ( | void | ) |
Acknowledge the event posted by the calling task's animation timer.
Allows the next timer expiry to post a new event. Syscall.
| void animation_service_timer_schedule | ( | uint32_t | ms | ) |
Schedule the calling task's animation timer.
Syscall; only valid from the KernelMain and App tasks.
| ms | Delay until the timer fires, in milliseconds. |