os-core/kernel/leos/irq.h

35 lines
805 B
C
Raw Normal View History

2019-05-29 11:10:01 +02:00
/******************************************************************************
*
* Copyright (c) 2017-2019 by Löwenware Ltd
* Please, refer LICENSE file for legal information
*
******************************************************************************/
/**
2019-12-01 22:57:02 +01:00
* @file irq.h
2019-05-29 11:10:01 +02:00
* @author Ilja Kartašov <ik@lowenware.com>
* @brief
*
* @see https://lowenware.com/
*/
2019-12-01 22:57:02 +01:00
#ifndef IRQ_H_037ADD8D_3AAA_4541_A876_843DFF3A59E8
#define IRQ_H_037ADD8D_3AAA_4541_A876_843DFF3A59E8
2019-05-29 11:10:01 +02:00
2019-12-01 22:57:02 +01:00
#include <aarch64/aarch64.h>
2019-05-29 11:10:01 +02:00
void
2020-01-15 10:56:04 +01:00
IRQ_init(void);
2019-05-29 11:10:01 +02:00
2020-01-15 10:56:04 +01:00
unsigned long
IRQ_onInterrupt(void);
2019-05-29 11:10:01 +02:00
void
2020-01-15 10:56:04 +01:00
IRQ_fallback(int type, unsigned long esr, unsigned long address);
2020-01-15 10:56:04 +01:00
#define IRQ_enable(...) AArch64_enableIRQ(__VA_ARGS__)
2020-01-15 10:56:04 +01:00
#define IRQ_disable(...) AArch64_disableIRQ(__VA_ARGS__)
2019-12-01 22:57:02 +01:00
#endif /* !IRQ_H */