ao_ir_alarm.h
Alarm interrupt

Notes

This module declares functions for controlling the alarm interrupt as well as a callback function for the interrupt handler.

Include

ao_ir_ct.h
xc.h

Functions

ao_ir_alarm

void ao_ir_alarm();

Notifies the kernel of an expired alarm. This function is the callback for the alarm interrupt handler. It is implemented by the ao_alarm.h module.

ao_ir_alarm_enable

ao_ir_alarm_disable

#define ao_ir_alarm_enable()  ao_ir_ct_enable()
#define ao_ir_alarm_disable() ao_ir_ct_disable()

Enables or disables the interrupt.

ao_ir_alarm_request

ao_ir_alarm_reply

#define ao_ir_alarm_request() ao_ir_ct_request()
#define ao_ir_alarm_reply()   ao_ir_ct_reply()

Requests the interrupt or replies thereto.

ao_ir_alarm_set

#define ao_ir_alarm_set(time) \
{                             \
    _CP0_SET_COMPARE(time);   \
}

Sets the time for the next interrupt.