MOS Source Code
Loading...
Searching...
No Matches
interrupt.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
5#include <mos/types.h>
6
11typedef bool (*irq_serve_t)(u32 irq, void *data);
12
13void interrupt_entry(u32 irq);
14
22void interrupt_handler_register(u32 irq, irq_serve_t handler, void *data);
bool(* irq_serve_t)(u32 irq, void *data)
Function pointer type for interrupt handlers.
Definition interrupt.h:11
void interrupt_entry(u32 irq)
Definition interrupt.c:24
void interrupt_handler_register(u32 irq, irq_serve_t handler, void *data)
Register an interrupt handler.
Definition interrupt.c:38
int bool
Definition pb_syshdr.h:57
unsigned int u32
Definition types.h:21