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 /**\file
33  *\if russian_lng
34  * Файл описывает основные характеристики платформы
35  *\else
36  * This file is used to describe main platphorm definitions
37  *\endif
38  *\ingroup xgc_portiRTOS_API
39  */
40 #ifndef _iPORT_ARCH_H_
41 #define _iPORT_ARCH_H_ 1
42 
43 #ifndef iGENERIC_ARCH
44  #define iGENERIC_ARCH iGENERIC_ARCH
45 #endif
46 /*-----------Документация Doxygen -- Doxygen documentation -----------------*/
47 /**
48  * \addtogroup xgc_portiRTOS_API
49  * @{
50  */
51 /**\def iarch
52  *\if russian_lng
53  * \brief Тип данных соотвестующий архитектуре ЦП.
54  *
55  * Самый быстрый тип данных. Вообще то это аналогия int. Но
56  в 8 битных ЦП это char.
57  *\else
58  * \brief MCU Architecture type.
59  *
60  * The fastest type. The type of main CPU ALU registers.
61  * On 8 bit MCU is char.
62  * On 16 bit and 32 bit MCU is int.
63  The analog of int type in C.
64  *\endif
65  */
66 #define iarch char_or_int
67 
68 /**\def sizeof_iarch
69  *\if russian_lng
70  * \brief Размер основного типа даннных.
71  *
72  *\else
73  * \brief The size of main architecture type.
74  *
75  *\endif
76  */
77 #define sizeof_iarch sizeof(iarch)
78 
79 
80 /** @} end of group xgc_portiRTOS_API */
81 
82 #endif /* _iPORT_ARCH_H_ */