![]() |
PDL for FM0+
Version1.0
Peripheral Driverl Library for FM0+
|
00001 /******************************************************************************* 00002 * Copyright (C) 2013 Spansion LLC. All Rights Reserved. 00003 * 00004 * This software is owned and published by: 00005 * Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). 00006 * 00007 * BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND 00008 * BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. 00009 * 00010 * This software contains source code for use with Spansion 00011 * components. This software is licensed by Spansion to be adapted only 00012 * for use in systems utilizing Spansion components. Spansion shall not be 00013 * responsible for misuse or illegal use of this software for devices not 00014 * supported herein. Spansion is providing this software "AS IS" and will 00015 * not be responsible for issues arising from incorrect user implementation 00016 * of the software. 00017 * 00018 * SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, 00019 * REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), 00020 * ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, 00021 * WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED 00022 * WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED 00023 * WARRANTY OF NONINFRINGEMENT. 00024 * SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, 00025 * NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT 00026 * LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, 00027 * LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR 00028 * INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, 00029 * INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, 00030 * SAVINGS OR PROFITS, 00031 * EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 00032 * YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR 00033 * INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED 00034 * FROM, THE SOFTWARE. 00035 * 00036 * This software may be replicated in part or whole for the licensed use, 00037 * with the restriction that this Disclaimer and Copyright notice must be 00038 * included with each copy of this software, whether used in part or whole, 00039 * at all times. 00040 */ 00041 /******************************************************************************/ 00051 #ifndef __BASE_TYPES_H__ 00052 #define __BASE_TYPES_H__ 00053 00054 /*****************************************************************************/ 00055 /* Include files */ 00056 /*****************************************************************************/ 00057 #include <stddef.h> 00058 #include "stdint.h" 00059 00060 /*****************************************************************************/ 00061 /* Global pre-processor symbols/macros ('#define') */ 00062 /*****************************************************************************/ 00063 #ifndef TRUE 00064 00065 #define TRUE ((boolean_t) 1) 00066 #endif 00067 00068 #ifndef FALSE 00069 00070 #define FALSE ((boolean_t) 0) 00071 #endif 00072 00074 #define MIN( X, Y ) ((X) < (Y) ? (X) : (Y)) 00075 00077 #define MAX( X, Y ) ((X) > (Y) ? (X) : (Y)) 00078 00080 #define DIM( X ) (sizeof(X) / sizeof(X[0])) 00081 00082 /****************************************************************************** 00083 * Global type definitions 00084 ******************************************************************************/ 00085 00087 typedef uint8_t boolean_t; 00088 00090 typedef float float32_t; 00091 00093 typedef double float64_t; 00094 00096 typedef char char_t; 00097 00099 typedef void (*func_ptr_t)(void); 00100 00102 typedef void (*func_ptr_arg1_t)(uint8_t); 00103 00105 typedef enum en_result 00106 { 00107 Ok = 0, 00108 Error = 1, 00109 ErrorAddressAlignment = 2, 00110 ErrorAccessRights = 3, 00111 ErrorInvalidParameter = 4, 00112 ErrorOperationInProgress = 5, 00113 ErrorInvalidMode = 6, 00114 ErrorUninitialized = 7, 00115 ErrorBufferFull = 8, 00116 ErrorTimeout = 9, 00117 ErrorNotReady = 10, 00118 OperationInProgress = 11 00119 } en_result_t; 00120 00121 00122 /*****************************************************************************/ 00123 /* Global variable declarations ('extern', definition in C source) */ 00124 /*****************************************************************************/ 00125 00126 /*****************************************************************************/ 00127 /* Global function prototypes ('extern', definition in C source) */ 00128 /*****************************************************************************/ 00129 00130 #endif /* __BASE_TYPES_H__ */ 00131 00132 /******************************************************************************/ 00133 /* EOF (not truncated) */ 00134 /******************************************************************************/