core/system/irq.c File Reference

#include "sceptre.h"

Go to the source code of this file.

Functions

void irq_vic_init (void)
bool_t irq_install (uint32_t number, void *p_handler)
bool_t irq_uninstall (uint32_t number)

Detailed Description

Interrupt handler management.

Definition in file irq.c.


Function Documentation

bool_t irq_install ( uint32_t  number,
void *  p_handler 
)

Install interrupt handler.

The maximum VIC size is 16 but there are 32 interrupt request inputs. Not all of them can be installed into the VIC table at the same time. The order of the interrupt request installation is first come, first served.

Parameters:
number Number of interrupt.
p_handler Address of interrupt handler.
Returns:
true on success, false if the table was full.

Definition at line 79 of file irq.c.

bool_t irq_uninstall ( uint32_t  number  ) 

Uninstall interrupt handler.

Find the interrupt handler installed in the VIC based on the interrupt number, set the location back to NULL to uninstall it.

Parameters:
number Number of interrupt.
Returns:
true on success, false if the interrupt number was not found.

Definition at line 121 of file irq.c.

void irq_vic_init ( void   ) 

Initialize VIC interrupt controller.

Definition at line 42 of file irq.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2