1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2011-01-13 weety first version 9 */ 10 11 #ifndef __IRQ_H__ 12 #define __IRQ_H__ 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 /* 19 * IRQ line status. 20 * 21 * Bits 0-7 are reserved 22 * 23 * IRQ types 24 */ 25 #define IRQ_TYPE_NONE 0x00000000 /* Default, unspecified type */ 26 #define IRQ_TYPE_EDGE_RISING 0x00000001 /* Edge rising type */ 27 #define IRQ_TYPE_EDGE_FALLING 0x00000002 /* Edge falling type */ 28 #define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) 29 #define IRQ_TYPE_LEVEL_HIGH 0x00000004 /* Level high type */ 30 #define IRQ_TYPE_LEVEL_LOW 0x00000008 /* Level low type */ 31 #define IRQ_TYPE_SENSE_MASK 0x0000000f /* Mask of the above */ 32 #define IRQ_TYPE_PROBE 0x00000010 /* Probing in progress */ 33 34 #ifdef __cplusplus 35 } 36 #endif 37 38 #endif 39