Contiki-NG
|
Master interrupt manipulation routines for the CC2538 CPU. More...
Files | |
file | int-master.c |
Master interrupt manipulation implementation for the TI CC2538. | |
Functions | |
void | int_master_enable (void) |
Enable the master interrupt. More... | |
int_master_status_t | int_master_read_and_disable (void) |
Disable the master interrupt. More... | |
void | int_master_status_set (int_master_status_t status) |
Set the status of the master interrupt. More... | |
bool | int_master_is_enabled (void) |
Retrieve the status of the master interrupt. More... | |
Master interrupt manipulation routines for the CC2538 CPU.
void int_master_enable | ( | void | ) |
Enable the master interrupt.
The platform developer must provide this function
Definition at line 52 of file int-master.c.
bool int_master_is_enabled | ( | void | ) |
Retrieve the status of the master interrupt.
false | Interrupts are disabled |
true | Interrupts are enabled |
This function can be used to retrieve the status of the master interrupt in a platform-independent fashion.
The platform developer must provide this function
Definition at line 74 of file int-master.c.
int_master_status_t int_master_read_and_disable | ( | void | ) |
Disable the master interrupt.
This function will return the status of the master interrupt as it was before it got disabled.
The semantics of the return value are entirely platform-specific. The calling code should not try to determine whether the master interrupt was previously enabled/disabled by interpreting the return value of this function. The return value should only be used as an argument to int_master_status_set()
To determine the status of the master interrupt in a platform-independent fashion you should use int_master_is_enabled().
The platform developer must provide this function
Definition at line 58 of file int-master.c.
void int_master_status_set | ( | int_master_status_t | status | ) |
Set the status of the master interrupt.
status | The new status |
The semantics of status are platform-dependent. Normally, the argument provided to this function will be a value previously retrieved through a call to int_master_read_and_disable()
The platform developer must provide this function
Definition at line 68 of file int-master.c.