📄 resetprg.lst
字号:
H8S,H8/300 SERIES C/C++ COMPILER (V.6.01.02.003) 28-Mar-2008 12:31:39 PAGE 1
************ SOURCE LISTING ************
Line Pi 0----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+--
FILE NAME: E:\Study\ucOS-II\ucOS-II\PLATFORM\Public\resetprg.c
1 /*****************************************************************************************
2 ** FILE : ResetPrg.C **
3 ** DESCRIPTION : Reset Program. User must include this MODIFIED file in their **
4 ** applictions. **
5 **-------------------------------------------------------------------------------------**
6 ** **
7 ** Copyright (c) 2001-2002 Hitachi Micro Systems Europe Ltd UK. **
8 ** **
9 ** This program is distributed in the hope that it will be useful, **
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of **
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. **
12 ** **
13 *****************************************************************************************/
14
15 /*
16 *********************************************************************************************************
17 * hardware reset and initialization
18 *
19 * Filename : resetprg.c
20 * Programmer : Dengtieshan
21 *********************************************************************************************************/
22
23
24 #include <machine.h>
FILE NAME: c:\hew3\tools\renesas\h8\6_1_2\include\machine.h
1 /*-----------------------------------------------------------------------*/
2 /* H8S,H8/300 SERIES C/C++ Compiler Ver. 6.0 */
3 /* Copyright (C) 1994,2002, Renesas Technology Corp. */
4 /* All Rights Reserved. */
5 /*-----------------------------------------------------------------------*/
6
7 #ifndef _MACHINE_H
8 #define _MACHINE_H
9
10 #ifdef __cplusplus
11 X extern "C" {
12 #endif
13 extern void _builtin_set_imask_ccr(unsigned char);
14 extern unsigned char _builtin_get_imask_ccr(void);
15 extern void _builtin_set_ccr(unsigned char);
16 extern unsigned char _builtin_get_ccr(void);
17 extern void _builtin_and_ccr(unsigned char);
18 extern void _builtin_or_ccr(unsigned char);
19 extern void _builtin_xor_ccr(unsigned char);
20 extern void _builtin_set_imask_exr(unsigned char);
21 extern unsigned char _builtin_get_imask_exr(void);
22 extern void _builtin_set_exr(unsigned char);
23 extern unsigned char _builtin_get_exr(void);
24 extern void _builtin_and_exr(unsigned char);
25 extern void _builtin_or_exr(unsigned char);
26 extern void _builtin_xor_exr(unsigned char);
27 extern void _builtin_trapa(unsigned int);
28 extern void _builtin_sleep(void);
29 #ifndef __V4_ENGINE__
30 X extern char _builtin_movfpe(char *);
31 X extern void _builtin_eepmovi(void *, const void *, unsigned int);
32 X extern void _builtin_eepmovb(void *, const void *, unsigned char);
33 X extern void _builtin_eepmovw(void *, const void *, unsigned int);
34 #else
35 extern void _builtin_movfpe(char *, char);
36 #endif
37
38 E #if 0L || 0L || 0L || 0L || 0L
41 X extern long _builtin_mulsu(long, long);
42 X extern unsigned long _builtin_muluu(unsigned long, unsigned long);
43 X extern void _builtin_movmdb(void *, const void *, unsigned int);
44 X extern void _builtin_movmdw(int *, const int *, unsigned int);
45 X extern void _builtin_movmdl(long *, const long *, unsigned int);
46 X extern unsigned int _builtin_movsd(char *, const char *, unsigned int);
47 X extern void _builtin_set_vbr(void *);
48 X #ifndef _EEPROM_H
49 X unsigned char _builtin_eepromb(void *, const void *, unsigned char,
50 X volatile unsigned char *, unsigned char,
51 X volatile unsigned char *, unsigned char);
52 X unsigned int _builtin_eepromw(void *, const void *, unsigned int,
53 X volatile unsigned char *, unsigned char,
54 X volatile unsigned char *, unsigned char);
55 X #endif
56 #endif
57 extern void _builtin_movtpe(char, char *);
58 extern void _builtin_tas(char *);
59 E #if 1L || 0L
60 extern void _builtin_eepmov(void *, const void *, unsigned char);
61 #else
62 X extern void _builtin_eepmov(void *, const void *, unsigned int);
63 #endif
64 extern long _builtin_mac(long,int *, int *, unsigned long);
65 extern long _builtin_macl(long,int *, int *, unsigned long, unsigned long);
66 extern char _builtin_rotlc(int, char);
67 extern int _builtin_rotlw(int, int);
68 extern long _builtin_rotll(int, long);
69 extern char _builtin_rotrc(int, char);
70 extern int _builtin_rotrw(int, int);
71 extern long _builtin_rotrl(int, long);
72 extern int _builtin_ovfaddc(char, char, char *);
73 extern int _builtin_ovfaddw(int, int, int *);
74 extern int _builtin_ovfaddl(long, long, long *);
75 extern int _builtin_ovfsubc(char, char, char *);
76 extern int _builtin_ovfsubw(int, int, int *);
77 extern int _builtin_ovfsubl(long, long, long *);
78 extern int _builtin_ovfshalc(char, char *);
79 extern int _builtin_ovfshalw(int, int *);
80 extern int _builtin_ovfshall(long, long *);
81 extern int _builtin_ovfnegc(char, char *);
82 extern int _builtin_ovfnegw(int, int *);
83 extern int _builtin_ovfnegl(long, long *);
84 extern int _builtin_ovfadduc(unsigned char, unsigned char, unsigned char *);
85 extern int _builtin_ovfadduw(unsigned int, unsigned int, unsigned int *);
86 extern int _builtin_ovfaddul(unsigned long, unsigned long, unsigned long *);
87 extern int _builtin_ovfsubuc(unsigned char, unsigned char, unsigned char *);
88 extern int _builtin_ovfsubuw(unsigned int, unsigned int, unsigned int *);
89 extern int _builtin_ovfsubul(unsigned long, unsigned long, unsigned long *);
90 extern int _builtin_ovfshlluc(unsigned char, unsigned char *);
91 extern int _builtin_ovfshlluw(unsigned int, unsigned int *);
92 extern int _builtin_ovfshllul(unsigned long, unsigned long *);
93 extern void _builtin_dadd(unsigned char, char *, char *, char *);
94 extern void _builtin_dsub(unsigned char, char *, char *, char *);
95 extern void _builtin_nop(void);
96 #ifdef __cplusplus
97 X }
98 #endif
99
100 #define set_imask_ccr(m) _builtin_set_imask_ccr(m)
101 #define get_imask_ccr() _builtin_get_imask_ccr()
102 #define set_ccr(ccr) _builtin_set_ccr(ccr)
103 #define get_ccr() _builtin_get_ccr()
104 #define and_ccr(ccr) _builtin_and_ccr(ccr)
105 #define or_ccr(ccr) _builtin_or_ccr(ccr)
106 #define xor_ccr(ccr) _builtin_xor_ccr(ccr)
107 #define set_imask_exr(m) _builtin_set_imask_exr(m)
108 #define get_imask_exr() _builtin_get_imask_exr()
109 #define set_exr(exr) _builtin_set_exr(exr)
110 #define get_exr() _builtin_get_exr()
111 #define and_exr(exr) _builtin_and_exr(exr)
112 #define or_exr(exr) _builtin_or_exr(exr)
113 #define xor_exr(exr) _builtin_xor_exr(exr)
114 #define trapa(no) _builtin_trapa(no)
115 #define sleep() _builtin_sleep()
116 #ifndef __V4_ENGINE__
117 X #define eepmovi(dst,src,sz) _builtin_eepmovi(dst,src,sz)
118 X #define eepmovb(dst,src,sz) _builtin_eepmovb(dst,src,sz)
119 X #define eepmovw(dst,src,sz) _builtin_eepmovw(dst,src,sz)
120 X #define _movfpe(a) _builtin_movfpe(a)
121 X #define movfpe(a,d) (d = _builtin_movfpe(a))
122 #else
123 #define movfpe(a,d) _builtin_movfpe(a,d)
124 #endif
125
126 E #if 0L || 0L || 0L || 0L || 0L
129 X #define mulsu(d1,d2) _builtin_mulsu(d1,d2)
130 X #define muluu(d1,d2) _builtin_muluu(d1,d2)
131 X #define movmdb(dst,src,sz) _builtin_movmdb(dst,src,sz)
132 X #define movmdw(dst,src,sz) _builtin_movmdw(dst,src,sz)
133 X #define movmdl(dst,src,sz) _builtin_movmdl(dst,src,sz)
134 X #define movsd(dst,src,sz) _builtin_movsd(dst,src,sz)
135 X #define set_vbr(vbr) _builtin_set_vbr(vbr)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -