PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
Main Page
Modules
Data Structures
Files
File List
Globals
base_types.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2013 Spansion LLC. All Rights Reserved.
3
*
4
* This software is owned and published by:
5
* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion").
6
*
7
* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND
8
* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.
9
*
10
* This software contains source code for use with Spansion
11
* components. This software is licensed by Spansion to be adapted only
12
* for use in systems utilizing Spansion components. Spansion shall not be
13
* responsible for misuse or illegal use of this software for devices not
14
* supported herein. Spansion is providing this software "AS IS" and will
15
* not be responsible for issues arising from incorrect user implementation
16
* of the software.
17
*
18
* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE,
19
* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS),
20
* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING,
21
* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED
22
* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED
23
* WARRANTY OF NONINFRINGEMENT.
24
* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT,
25
* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT
26
* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION,
27
* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR
28
* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT,
29
* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA,
30
* SAVINGS OR PROFITS,
31
* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32
* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR
33
* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED
34
* FROM, THE SOFTWARE.
35
*
36
* This software may be replicated in part or whole for the licensed use,
37
* with the restriction that this Disclaimer and Copyright notice must be
38
* included with each copy of this software, whether used in part or whole,
39
* at all times.
40
*/
41
/******************************************************************************/
52
#ifndef __BASE_TYPES_H__
53
#define __BASE_TYPES_H__
54
55
/*****************************************************************************/
56
/* Include files */
57
/*****************************************************************************/
58
#include <stddef.h>
59
#include "stdint.h"
60
61
/*****************************************************************************/
62
/* Global pre-processor symbols/macros ('#define') */
63
/*****************************************************************************/
64
#ifndef TRUE
65
66
#define TRUE ((boolean_t) 1)
67
#endif
68
69
#ifndef FALSE
70
71
#define FALSE ((boolean_t) 0)
72
#endif
73
75
#define MIN( X, Y ) ((X) < (Y) ? (X) : (Y))
76
78
#define MAX( X, Y ) ((X) > (Y) ? (X) : (Y))
79
81
#define DIM( X ) (sizeof(X) / sizeof(X[0]))
82
83
/******************************************************************************
84
* Global type definitions
85
******************************************************************************/
86
88
typedef
uint8_t
boolean_t
;
89
91
typedef
float
float32_t
;
92
94
typedef
double
float64_t
;
95
97
typedef
char
char_t
;
98
100
typedef
void (*
func_ptr_t
)(void);
101
103
typedef
void (*
func_ptr_arg1_t
)(uint8_t);
104
106
typedef
enum
en_result
107
{
108
Ok
= 0,
109
Error
= 1,
110
ErrorAddressAlignment
= 2,
111
ErrorAccessRights
= 3,
112
ErrorInvalidParameter
= 4,
113
ErrorOperationInProgress
= 5,
114
ErrorInvalidMode
= 6,
115
ErrorUninitialized
= 7,
116
ErrorBufferFull
= 8,
117
ErrorTimeout
= 9,
118
ErrorNotReady
= 10,
119
OperationInProgress
= 11
120
}
en_result_t
;
121
129
typedef
enum
en_level
130
{
131
PDLLow
= 0,
132
PDLHigh
= 1
133
}
en_level_t
;
134
142
typedef
enum
en_flag
143
{
144
PdlClr
= 0,
145
PdlSet
= 1
146
}
en_stat_flag_t
,
en_int_flag_t
;
147
148
/*****************************************************************************/
149
/* Global variable declarations ('extern', definition in C source) */
150
/*****************************************************************************/
151
152
/*****************************************************************************/
153
/* Global function prototypes ('extern', definition in C source) */
154
/*****************************************************************************/
155
156
#endif
/* __BASE_TYPES_H__ */
157
158
/******************************************************************************/
159
/* EOF (not truncated) */
160
/******************************************************************************/
PDL_1_2
common
base_types.h
Generated on Wed May 28 2014 09:28:09 for PDL for FM4 by
1.8.3.1