CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
iArch.h
Go to the documentation of this file.
1 /*
2  * CMSIS2000
3  * CMSIS-like sources for LPC2xxx series MCUs
4  *
5  * (C) Copyright 2011-2012, Dmitriy Cherepanov, All Rights Reserved
6  *
7  * Version: 0.0.7
8  * Date of the Last Update: 2013-03-04
9  *
10  * Permission is hereby granted, free of charge, to any person obtaining a copy
11  * of this software and associated documentation files (the "Software"), to
12  * deal in the Software without restriction, including without limitation the
13  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
14  * sell copies of the Software, and to permit persons to whom the Software is
15  * furnished to do so, subject to the following conditions:
16  *
17  * The above copyright notice and this permission notice shall be included in
18  * all copies or substantial portions of the Software.
19  *
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26  * IN THE SOFTWARE.
27  *
28  * Do not be lasy! For the latest version see http://irtos.sourceforge.net .
29  *
30  *
31 #*/
32 /**
33  *\addtogroup xgc_portWINNT
34  * @{
35  *
36  * \file
37  *\if russian_lng
38  * Файл определяющий общие макросы под Windows
39  *\else
40  * This file is used define macroses for Windows
41  */
42 
43 #ifndef _iPORT_ARCH_H_
44 #define _iPORT_ARCH_H_ 1
45 /*----------------------------------------------------------------------------*/
46 #ifndef i_ARCH
47  #define i_ARCH WIN_NT
48 #endif
49 
50 /**
51  *\if russian_lng
52  * \brief Тип данных соотвестующий архитектуре ЦП.
53  *
54  * Самый быстрый тип данных. Вообще то это аналогия int. Но
55  в 8 битных ЦП это char.
56  *\else
57  * \brief MCU Architecture type.
58  *
59  * The fastest type. The type of main CPU ALU registers.
60  * On 8 bit MCU is char.
61  * On 16 bit and 32 bit MCU is int.
62  The analog of int type in C.
63  *\endif
64  */
65 #define iarch int
66 /**
67  *\if russian_lng
68  * \brief Размер основного типа даннных.
69  *
70  *\else
71  * \brief The size of main architecture type.
72  *
73  *\endif
74  */
75 #define sizeof_iarch 4
76 /** \if russian_lng
77  * \brief Стековый тип для данной архитектуры.
78  *
79  Для POSIX архитектуры стек не используеться
80  *\else
81  * \brief Architecture stack type.
82  *
83  * POSIX arch does not use Stack_t let it be pthread_t
84  *\endif
85  */
86 #define iStack_t pthread_t
87 /*----------------------------------------------------------------------------*/
88 #if (iSCHEDULER_TYPE != iCOOPERATIVE_SCHEDULER)
89 #error IN POSIX ARCH WE COULD BE ONLY IN COOPERATIVE MODE :-(
90 #endif
91 /**
92  * there is no way to stop thread even change it priority
93  * that is why this should be always 0.
94  * To see more
95  * look at void timer_imitation_function (void) in glib/os_port.c
96  */
97 
98 /** @} end of group xgc_portWINNT */
99 
100 #endif /* _iPORT_ARCH_H_ */