User | Revision | Line number | New contents of line |
mbed714 |
0:331db0b44b67
|
1
|
//******************************************************************************
|
mbed714 |
0:331db0b44b67
|
2
|
//*
|
mbed714 |
0:331db0b44b67
|
3
|
//* FULLNAME: Single-Chip Microcontroller Real-Time Operating System
|
mbed714 |
0:331db0b44b67
|
4
|
//*
|
mbed714 |
0:331db0b44b67
|
5
|
//* NICKNAME: scmRTOS
|
mbed714 |
0:331db0b44b67
|
6
|
//*
|
mbed714 |
0:331db0b44b67
|
7
|
//* PROCESSOR: ARM Cortex-M3
|
mbed714 |
0:331db0b44b67
|
8
|
//*
|
mbed714 |
0:331db0b44b67
|
9
|
//* TOOLKIT: EWARM (IAR Systems)
|
mbed714 |
0:331db0b44b67
|
10
|
//*
|
mbed714 |
0:331db0b44b67
|
11
|
//* PURPOSE: Common Type Definitions
|
mbed714 |
0:331db0b44b67
|
12
|
//*
|
mbed714 |
0:331db0b44b67
|
13
|
//* Version: 3.10
|
mbed714 |
0:331db0b44b67
|
14
|
//*
|
mbed714 |
0:331db0b44b67
|
15
|
//* $Revision: 195 $
|
mbed714 |
0:331db0b44b67
|
16
|
//* $Date:: 2008-06-19 #$
|
mbed714 |
0:331db0b44b67
|
17
|
//*
|
mbed714 |
0:331db0b44b67
|
18
|
//* Copyright (c) 2003-2010, Harry E. Zhurov
|
mbed714 |
0:331db0b44b67
|
19
|
//*
|
mbed714 |
0:331db0b44b67
|
20
|
//* Permission is hereby granted, free of charge, to any person
|
mbed714 |
0:331db0b44b67
|
21
|
//* obtaining a copy of this software and associated documentation
|
mbed714 |
0:331db0b44b67
|
22
|
//* files (the "Software"), to deal in the Software without restriction,
|
mbed714 |
0:331db0b44b67
|
23
|
//* including without limitation the rights to use, copy, modify, merge,
|
mbed714 |
0:331db0b44b67
|
24
|
//* publish, distribute, sublicense, and/or sell copies of the Software,
|
mbed714 |
0:331db0b44b67
|
25
|
//* and to permit persons to whom the Software is furnished to do so,
|
mbed714 |
0:331db0b44b67
|
26
|
//* subject to the following conditions:
|
mbed714 |
0:331db0b44b67
|
27
|
//*
|
mbed714 |
0:331db0b44b67
|
28
|
//* The above copyright notice and this permission notice shall be included
|
mbed714 |
0:331db0b44b67
|
29
|
//* in all copies or substantial portions of the Software.
|
mbed714 |
0:331db0b44b67
|
30
|
//*
|
mbed714 |
0:331db0b44b67
|
31
|
//* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
mbed714 |
0:331db0b44b67
|
32
|
//* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
mbed714 |
0:331db0b44b67
|
33
|
//* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
mbed714 |
0:331db0b44b67
|
34
|
//* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
mbed714 |
0:331db0b44b67
|
35
|
//* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
mbed714 |
0:331db0b44b67
|
36
|
//* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
|
mbed714 |
0:331db0b44b67
|
37
|
//* THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
mbed714 |
0:331db0b44b67
|
38
|
//*
|
mbed714 |
0:331db0b44b67
|
39
|
//* =================================================================
|
mbed714 |
0:331db0b44b67
|
40
|
//* See http://scmrtos.sourceforge.net for documentation, latest
|
mbed714 |
0:331db0b44b67
|
41
|
//* information, license and contact details.
|
mbed714 |
0:331db0b44b67
|
42
|
//* =================================================================
|
mbed714 |
0:331db0b44b67
|
43
|
//*
|
mbed714 |
0:331db0b44b67
|
44
|
//******************************************************************************
|
mbed714 |
0:331db0b44b67
|
45
|
//* Ported by Andrey Chuikin, Copyright (c) 2008-2010
|
mbed714 |
0:331db0b44b67
|
46
|
|
mbed714 |
0:331db0b44b67
|
47
|
|
mbed714 |
0:331db0b44b67
|
48
|
#ifndef COMMONDEFS_H
|
mbed714 |
0:331db0b44b67
|
49
|
#define COMMONDEFS_H
|
mbed714 |
0:331db0b44b67
|
50
|
|
mbed714 |
0:331db0b44b67
|
51
|
#define DEBUG_STACK
|
mbed714 |
0:331db0b44b67
|
52
|
#define STACK_FILL_CONST 0xFFF7FFFF
|
mbed714 |
0:331db0b44b67
|
53
|
|
mbed714 |
0:331db0b44b67
|
54
|
#ifndef __IAR_SYSTEMS_ASM__
|
mbed714 |
0:331db0b44b67
|
55
|
|
mbed714 |
0:331db0b44b67
|
56
|
typedef unsigned char byte;
|
mbed714 |
0:331db0b44b67
|
57
|
typedef signed char sbyte;
|
mbed714 |
0:331db0b44b67
|
58
|
typedef unsigned short word;
|
mbed714 |
0:331db0b44b67
|
59
|
typedef unsigned long dword;
|
mbed714 |
0:331db0b44b67
|
60
|
|
mbed714 |
0:331db0b44b67
|
61
|
typedef volatile byte sfr_byte;
|
mbed714 |
0:331db0b44b67
|
62
|
typedef volatile word sfr_word;
|
mbed714 |
0:331db0b44b67
|
63
|
typedef volatile dword sfr_dword;
|
mbed714 |
0:331db0b44b67
|
64
|
|
mbed714 |
0:331db0b44b67
|
65
|
#define INLINE _Pragma("inline=forced")
|
mbed714 |
0:331db0b44b67
|
66
|
|
mbed714 |
0:331db0b44b67
|
67
|
#endif // __IAR_SYSTEMS_ASM__
|
mbed714 |
0:331db0b44b67
|
68
|
|
mbed714 |
0:331db0b44b67
|
69
|
#endif // COMMONDEFS_H
|
mbed714 |
0:331db0b44b67
|
70
|
|
mbed714 |
0:331db0b44b67
|
71
|
//-----------------------------------------------------------------------------
|
mbed714 |
0:331db0b44b67
|
72
|
|
mbed714 |
0:331db0b44b67
|
73
|
/*============================================================================*/
|
mbed714 |
0:331db0b44b67
|
74
|
|