ubinos
intr.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 Sung Ho Park
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef UBINOS_BSP_INTR_H_
8 #define UBINOS_BSP_INTR_H_
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14 
42 #include <ubinos_config.h>
43 #include <ubinos/type.h>
44 
46 #define INTR_OPT__EDGE 0x00
47 
49 #define INTR_OPT__LEVEL 0x80
50 
53 #define INTR_OPT__LOW 0x00
54 
57 #define INTR_OPT__HIGH 0x40
58 
60 typedef void (*isr_ft)(void);
61 
83 int intr_connectisr(int no, isr_ft isr, int priority, unsigned int option);
84 
96 int intr_enable(int no);
97 
109 int intr_disable(int no);
110 
122 int intr_clearpending(int no);
123 
130 
137 
138 #ifdef __cplusplus
139 }
140 #endif
141 
142 #endif /* UBINOS_BSP_INTR_H_ */
int intr_clearpending(int no)
int intr_getlowestpriority(void)
int intr_enable(int no)
void(* isr_ft)(void)
Definition: intr.h:60
int intr_connectisr(int no, isr_ft isr, int priority, unsigned int option)
int intr_disable(int no)
int intr_gethighestpriority(void)
ubinos basic data type