OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [exec/] [itron/] [include/] [itronsys/] [intr.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 158 chris
/*
2
 *  COPYRIGHT (c) 1989-1999.
3
 *  On-Line Applications Research Corporation (OAR).
4
 *
5
 *  The license and distribution terms for this file may be
6
 *  found in the file LICENSE in this distribution or at
7
 *  http://www.OARcorp.com/rtems/license.html.
8
 *
9 208 chris
 *  $Id: intr.h,v 1.2 2001-09-27 11:59:12 chris Exp $
10 158 chris
 */
11
 
12
#ifndef __ITRON_INTERRUPT_h_
13
#define __ITRON_INTERRUPT_h_
14
 
15
#ifdef __cplusplus
16
extern "C" {
17
#endif
18
 
19
/*
20
 *  Define Interrupt (def_int) Structure
21
 */
22
 
23
typedef struct t_dint {
24
  ATR   intatr;   /* interrupt handler attributes */
25
  FP    inthdr;   /* interrupt handler address */
26
  /* additional information may be included depending on the implementation */
27
} T_DINT;
28
 
29
/*
30
 *  Interrupt Functions
31
 */
32
 
33
/*
34
 *  def_int - Define Interrupt Handler
35
 */
36
 
37
ER def_int(
38
  UINT dintno,
39
  T_DINT *pk_dint
40
);
41
 
42
/*
43
 *  ret_int - Return from Interrupt Handler
44
 */
45
 
46
void ret_int( void );
47
 
48
/*
49
 *  ret_wup - Return and Wakeup Task
50
 */
51
 
52
void ret_wup(
53
  ID tskid
54
);
55
 
56
/*
57
 *  loc_cpu - Lock CPU
58
 */
59
 
60
ER loc_cpu( void );
61
 
62
/*
63
 *  unl_cpu - Unlock CPU
64
 */
65
 
66
ER unl_cpu( void );
67
 
68
/*
69
 *  dis_int - Disable Interrupt
70
 */
71
 
72
ER dis_int(
73
  UINT eintno
74
);
75
 
76
/*
77
 *  ena_int - Enable Interrupt
78
 */
79
 
80
ER ena_int(
81
  UINT eintno
82
);
83
 
84
/*
85
 *  chg_iXX - Change Interrupt Mask(Level or Priority)
86
 */
87
 
88
ER chg_iXX(
89
  UINT iXXXX
90
);
91
 
92
/*
93
 *  ref_iXX - Reference Interrupt Mask(Level or Priority)
94
 */
95
 
96
ER ref_iXX(
97
  UINT *p_iXXXX
98
);
99
 
100
#ifdef __cplusplus
101
}
102
#endif
103
 
104
#endif
105
/* end of include file */
106
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.