API for managing TRAPA handlers
More...
API for managing TRAPA handlers
This API allows for the setting and retrieving of a handler associated with a particular TRAPA
value.
◆ trapa_handler
The type of a TRAPA handler.
- Parameters
-
trap | The IRQ that caused the handler to be called. |
context | The CPU's context. |
data | Arbitrary userdata associated with the handler. |
◆ trapa_get_handler()
Get an existing TRAPA handler.
- Parameters
-
trap | The value passed to the trapa opcode. |
data | A pointer to a void* which will be filled in with the handler's userdata, or NULL if not interested. |
- Returns
- A pointer to the procedure to handle the TRAP code.
- See also
- trapa_set_handler()
◆ trapa_set_handler()
Set or remove a handler for a trapa code.
- Parameters
-
trap | The value passed to the trapa opcode. |
hnd | A pointer to the procedure to handle the trap. |
data | A pointer that will be passed along to the callback. |
- Return values
-
- See also
- trapa_get_handler()