#include <io.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
#include <common.h>
#include <log.h>
Go to the source code of this file.
◆ interrupt_handler_t
| typedef void() interrupt_handler_t(void *) |
Type definition for interrupt handler function.
- Parameters
-
| Pointer | to data associated with the interrupt handler |
◆ irq_handler_t
Structure for IRQ handler.
- Parameters
-
| data | Pointer to data associated with the IRQ handler |
| func | Function pointer to the IRQ handler function |
◆ irq_disable()
| int irq_disable |
( |
int |
irq_no | ) |
|
Disables the specified IRQ.
- Parameters
-
| irq_no | IRQ number to be disabled |
- Returns
- 0 on success, or an error code
◆ irq_enable()
| int irq_enable |
( |
int |
irq_no | ) |
|
Enables the specified IRQ.
- Parameters
-
| irq_no | IRQ number to be enabled |
- Returns
- 0 on success, or an error code
◆ irq_free_handler()
| void irq_free_handler |
( |
int |
irq | ) |
|
Frees the resources associated with the specified IRQ handler.
- Parameters
-
◆ irq_install_handler()
Installs a handler for the specified IRQ.
- Parameters
-
| irq | IRQ number |
| handle_irq | Function pointer to the interrupt handler function |
| data | Pointer to data associated with the interrupt handler |