Interrupt subsystem.
More...
#include <gctypes.h>
#include "context.h"
Go to the source code of this file.
◆ IM_AI
◆ IM_DSP
◆ IM_DSP_AI
◆ IM_DSP_ARAM
◆ IM_DSP_DSP
◆ IM_EXI
◆ IM_EXI0
◆ IM_EXI0_EXI
◆ IM_EXI0_EXT
◆ IM_EXI0_TC
◆ IM_EXI1
◆ IM_EXI1_EXI
◆ IM_EXI1_EXT
◆ IM_EXI1_TC
◆ IM_EXI2
◆ IM_EXI2_EXI
◆ IM_EXI2_TC
◆ IM_MEM
◆ IM_MEM0
◆ IM_MEM1
◆ IM_MEM2
◆ IM_MEM3
◆ IM_MEMADDRESS
◆ IM_NONE
#define IM_NONE (0xffffffff) |
◆ IM_PI_CP
◆ IM_PI_DEBUG
◆ IM_PI_DI
◆ IM_PI_ERROR
◆ IM_PI_HSP
◆ IM_PI_PEFINISH
◆ IM_PI_PETOKEN
◆ IM_PI_RSW
◆ IM_PI_SI
◆ IM_PI_VI
◆ IRQ_AI
◆ IRQ_DSP_AI
◆ IRQ_DSP_ARAM
◆ IRQ_DSP_DSP
◆ IRQ_EXI0_EXI
◆ IRQ_EXI0_EXT
◆ IRQ_EXI0_TC
◆ IRQ_EXI1_EXI
◆ IRQ_EXI1_EXT
◆ IRQ_EXI1_TC
◆ IRQ_EXI2_EXI
◆ IRQ_EXI2_TC
◆ IRQ_MAX
◆ IRQ_MEM0
◆ IRQ_MEM1
◆ IRQ_MEM2
◆ IRQ_MEM3
◆ IRQ_MEMADDRESS
◆ IRQ_PI_CP
◆ IRQ_PI_DEBUG
◆ IRQ_PI_DI
◆ IRQ_PI_ERROR
◆ IRQ_PI_HSP
◆ IRQ_PI_PEFINISH
#define IRQ_PI_PEFINISH 19 |
◆ IRQ_PI_PETOKEN
#define IRQ_PI_PETOKEN 18 |
◆ IRQ_PI_RSW
◆ IRQ_PI_SI
◆ IRQ_PI_VI
◆ IRQMASK
#define IRQMASK |
( |
|
irq | ) |
(0x80000000u>>irq) |
◆ raw_irq_handler_t
function pointer typedef for the interrupt handler callback
- Parameters
-
[in] | irq | interrupt number of triggered interrupt. |
[in] | ctx | pointer to the user data. |
◆ __MaskIrq()
◆ __UnmaskIrq()
◆ IRQ_Disable()
Disable the complete IRQ subsystem. No interrupts will be served. Multithreading kernel fully disabled.
- Returns
- Old state of the IRQ subsystem
◆ IRQ_Free()
Free an interrupt handler.
- Parameters
-
[in] | nIrq | interrupt number for which to free the handler |
- Returns
- Old interrupt handler, else NULL
◆ IRQ_GetHandler()
Get the handler from interrupt number.
- Parameters
-
[in] | nIrq | interrupt number for which to retrieve the handler |
- Returns
- interrupt handler, else NULL
◆ IRQ_Request()
Register an interrupt handler.
- Parameters
-
[in] | nIrq | interrupt number to which to register the handler |
[in] | pHndl | pointer to the handler callback function which to call when interrupt has triggered |
[in] | pCtx | pointer to user data to pass with, when handler is called |
- Returns
- Old interrupt handler, else NULL
◆ IRQ_Restore()
Restore the IRQ subsystem with the given level. This is function should be used together with IRQ_Disable()
- Parameters
-
[in] | level | IRQ level to restore to. |
- Returns
- none