ubinos
include
ubinos
bsp
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
129
int
intr_gethighestpriority
(
void
);
130
136
int
intr_getlowestpriority
(
void
);
137
138
#ifdef __cplusplus
139
}
140
#endif
141
142
#endif
/* UBINOS_BSP_INTR_H_ */
intr_clearpending
int intr_clearpending(int no)
intr_getlowestpriority
int intr_getlowestpriority(void)
intr_enable
int intr_enable(int no)
isr_ft
void(* isr_ft)(void)
Definition:
intr.h:60
intr_connectisr
int intr_connectisr(int no, isr_ft isr, int priority, unsigned int option)
intr_disable
int intr_disable(int no)
intr_gethighestpriority
int intr_gethighestpriority(void)
type.h
ubinos basic data type
Generated by
1.9.1