amiro-blt / Host / Source / SerialBoot / sb_types.h @ 69661903
History | View | Annotate | Download (3.12 KB)
1 | 69661903 | Thomas Schöpping | /************************************************************************************//** |
---|---|---|---|
2 | * \file sb_types.h
|
||
3 | * \brief Serial Boot type definitions header file.
|
||
4 | * \ingroup SerialBoot
|
||
5 | * \internal
|
||
6 | *----------------------------------------------------------------------------------------
|
||
7 | * C O P Y R I G H T
|
||
8 | *----------------------------------------------------------------------------------------
|
||
9 | * Copyright (c) 2014 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 SB_TYPES_H
|
||
34 | #define SB_TYPES_H
|
||
35 | |||
36 | /****************************************************************************************
|
||
37 | * Include files
|
||
38 | ****************************************************************************************/
|
||
39 | #include <stdio.h> /* standard I/O library */ |
||
40 | |||
41 | |||
42 | /****************************************************************************************
|
||
43 | * Macro definitions
|
||
44 | ****************************************************************************************/
|
||
45 | /** \brief Generic boolean true value. */
|
||
46 | #define SB_TRUE (1u) |
||
47 | |||
48 | /** \brief Ceneric boolean false value. */
|
||
49 | #define SB_FALSE (0u) |
||
50 | |||
51 | /** \brief NULL pointer value. */
|
||
52 | #define SB_NULL ((void *)0) |
||
53 | |||
54 | |||
55 | /****************************************************************************************
|
||
56 | * Type definitions
|
||
57 | ****************************************************************************************/
|
||
58 | typedef signed char sb_char; |
||
59 | typedef signed char sb_int8; |
||
60 | typedef signed short sb_int16; |
||
61 | typedef signed int sb_int32; |
||
62 | typedef unsigned char sb_uint8; |
||
63 | typedef unsigned short sb_uint16; |
||
64 | typedef unsigned int sb_uint32; |
||
65 | typedef FILE * sb_file;
|
||
66 | |||
67 | |||
68 | |||
69 | #endif /* SB_TYPES_H */ |
||
70 | /*********************************** end of sb_types.h *********************************/
|