ubinos
include
ubinos
bsp
intr.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2009 Sung Ho Park
3
Contact: ubinos.org@gmail.com
4
5
This file is part of the itf_ubinos component of the Ubinos.
6
7
GNU General Public License Usage
8
This file may be used under the terms of the GNU
9
General Public License version 3.0 as published by the Free Software
10
Foundation and appearing in the file license_gpl3.txt included in the
11
packaging of this file. Please review the following information to
12
ensure the GNU General Public License version 3.0 requirements will be
13
met: http://www.gnu.org/copyleft/gpl.html.
14
15
GNU Lesser General Public License Usage
16
Alternatively, this file may be used under the terms of the GNU Lesser
17
General Public License version 2.1 as published by the Free Software
18
Foundation and appearing in the file license_lgpl.txt included in the
19
packaging of this file. Please review the following information to
20
ensure the GNU Lesser General Public License version 2.1 requirements
21
will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22
23
Commercial Usage
24
Alternatively, licensees holding valid commercial licenses may
25
use this file in accordance with the commercial license agreement
26
provided with the software or, alternatively, in accordance with the
27
terms contained in a written agreement between you and rightful owner.
28
*/
29
30
#ifndef UBINOS_BSP_INTR_H_
31
#define UBINOS_BSP_INTR_H_
32
33
#ifdef __cplusplus
34
extern
"C"
35
{
36
#endif
37
65
#include <ubinos_config.h>
66
#include <
ubinos/type.h
>
67
69
#define INTR_OPT__EDGE 0x00
70
72
#define INTR_OPT__LEVEL 0x80
73
76
#define INTR_OPT__LOW 0x00
77
80
#define INTR_OPT__HIGH 0x40
81
83
typedef
void (*
isr_ft
)(void);
84
106
int
intr_connectisr
(
int
no,
isr_ft
isr,
int
priority,
unsigned
int
option);
107
119
int
intr_enable
(
int
no);
120
132
int
intr_disable
(
int
no);
133
145
int
intr_clearpending
(
int
no);
146
152
int
intr_gethighestpriority
(
void
);
153
159
int
intr_getlowestpriority
(
void
);
160
161
#ifdef __cplusplus
162
}
163
#endif
164
165
#endif
/* UBINOS_BSP_INTR_H_ */
intr_disable
int intr_disable(int no)
intr_enable
int intr_enable(int no)
type.h
ubinos basic data type
intr_connectisr
int intr_connectisr(int no, isr_ft isr, int priority, unsigned int option)
intr_getlowestpriority
int intr_getlowestpriority(void)
intr_gethighestpriority
int intr_gethighestpriority(void)
isr_ft
void(* isr_ft)(void)
Definition:
intr.h:83
intr_clearpending
int intr_clearpending(int no)
Generated by
1.8.17