amiro-blt / Target / Source / ARMCM3_STM32 / types.h @ 69661903
History | View | Annotate | Download (3.33 KB)
1 |
/************************************************************************************//** |
---|---|
2 |
* \file Source\ARMCM3_STM32\types.h
|
3 |
* \brief Bootloader types header file.
|
4 |
* \ingroup Target_ARMCM3_STM32
|
5 |
* \internal
|
6 |
*----------------------------------------------------------------------------------------
|
7 |
* C O P Y R I G H T
|
8 |
*----------------------------------------------------------------------------------------
|
9 |
* Copyright (c) 2011 by Feaser http://www.feaser.com All rights reserved
|
10 |
*
|
11 |
*----------------------------------------------------------------------------------------
|
12 |
* L I C E N S E
|
13 |
*----------------------------------------------------------------------------------------
|
14 |
* This file is part of OpenBLT. OpenBLT is free software: you can redistribute it and/or
|
15 |
* modify it under the terms of the GNU General Public License as published by the Free
|
16 |
* Software Foundation, either version 3 of the License, or (at your option) any later
|
17 |
* version.
|
18 |
*
|
19 |
* OpenBLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
20 |
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
21 |
* PURPOSE. See the GNU General Public License for more details.
|
22 |
*
|
23 |
* You should have received a copy of the GNU General Public License along with OpenBLT.
|
24 |
* If not, see <http://www.gnu.org/licenses/>.
|
25 |
*
|
26 |
* A special exception to the GPL is included to allow you to distribute a combined work
|
27 |
* that includes OpenBLT without being obliged to provide the source code for any
|
28 |
* proprietary components. The exception text is included at the bottom of the license
|
29 |
* file <license.html>.
|
30 |
*
|
31 |
* \endinternal
|
32 |
****************************************************************************************/
|
33 |
#ifndef TYPES_H
|
34 |
#define TYPES_H
|
35 |
|
36 |
|
37 |
/****************************************************************************************
|
38 |
* Macro definitions
|
39 |
****************************************************************************************/
|
40 |
/** \brief Boolean true value. */
|
41 |
#define BLT_TRUE (1) |
42 |
/** \brief Boolean false value. */
|
43 |
#define BLT_FALSE (0) |
44 |
/** \brief NULL pointer value. */
|
45 |
#define BLT_NULL ((void *)0) |
46 |
|
47 |
|
48 |
/****************************************************************************************
|
49 |
* Type definitions
|
50 |
****************************************************************************************/
|
51 |
typedef unsigned char blt_bool; /**< boolean type */ |
52 |
typedef char blt_char; /**< character type */ |
53 |
typedef unsigned long blt_addr; /**< memory address type */ |
54 |
typedef unsigned char blt_int8u; /**< 8-bit unsigned integer */ |
55 |
typedef signed char blt_int8s; /**< 8-bit signed integer */ |
56 |
typedef unsigned short blt_int16u; /**< 16-bit unsigned integer */ |
57 |
typedef signed short blt_int16s; /**< 16-bit signed integer */ |
58 |
typedef unsigned int blt_int32u; /**< 32-bit unsigned integer */ |
59 |
typedef signed int blt_int32s; /**< 32-bit signed integer */ |
60 |
|
61 |
|
62 |
#endif /* TYPES_H */ |
63 |
/*********************************** end of types.h ************************************/
|