#include <revolution/os.h>
typedef void (* OSAlarmHandler ) (OSAlarm* alarm, OSContext* context);
void OSSetPeriodicAlarm(
OSAlarm* alarm,
OSTime start,
OSTime period,
OSAlarmHandler handler);
alarm |
Pointer to alarm to set. |
|---|---|
| start | Period origin. |
period |
Ticks for counting each period. |
handler |
Alarm handler to call. |
None.
Sets a periodic alarm.
Note: If you are going to reset an active alarm that was set by the OSSetPeriodicAlarm function, call the OSCancelAlarm function and delete that alarm before setting it again. Operations are not guaranteed if you reset an alarm without first deleting it.
Alarm Functions
OSCancelAlarm
OSCreateAlarm
OSSetAlarm
2009/09/24 Added a note about resetting alarms.
2006/03/01 Initial version.
CONFIDENTIAL