test public

Dependencies:   HttpServer_snapshot_mbed-os

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers r_ospl_config.h Source File

r_ospl_config.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 * DISCLAIMER
00003 * This software is supplied by Renesas Electronics Corporation and is only
00004 * intended for use with Renesas products. No other uses are authorized. This
00005 * software is owned by Renesas Electronics Corporation and is protected under
00006 * all applicable laws, including copyright laws.
00007 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
00008 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
00009 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
00010 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
00011 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
00012 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
00013 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
00014 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
00015 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
00016 * Renesas reserves the right, without notice, to make changes to this software
00017 * and to discontinue the availability of this software. By using this software,
00018 * you agree to the additional terms and conditions found by accessing the
00019 * following link:
00020 * http://www.renesas.com/disclaimer
00021 * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 /**
00024 * @file  r_ospl_config.h
00025 * @brief   Configuration of OSPL.
00026 *
00027 * $Module: OSPL $ $PublicVersion: 0.90 $ (=R_OSPL_VERSION)
00028 * $Rev: 35 $
00029 * $Date:: 2014-04-15 21:38:18 +0900#$
00030 */
00031 
00032 
00033 
00034 /* This file is included from "Project_Config.h" */
00035 
00036 
00037 #ifndef R_OSPL_CONFIG_H
00038 #define R_OSPL_CONFIG_H
00039 
00040 
00041 /******************************************************************************
00042 Includes   <System Includes> , "Project Includes"
00043 ******************************************************************************/
00044 #include  "platform_config.h"
00045 
00046 #ifdef __cplusplus
00047 extern "C" {
00048 #endif /* __cplusplus */
00049 
00050 
00051 /******************************************************************************
00052 Typedef definitions
00053 ******************************************************************************/
00054 
00055 /******************************************************************************
00056 Macro definitions
00057 ******************************************************************************/
00058 
00059 /**
00060 * @def  R_OSPL_VERSION
00061 * @brief  Version number of OSPL
00062 * @par Parameters
00063 *    None
00064 * @return  None.
00065 *
00066 * @par Description
00067 *    The value can not be changed.
00068 *    101 = version 1.01.
00069 *    Hundreds place is version number of OSPL specification.
00070 *    Tens place and one's place are minor version number in specified OS and board.
00071 */
00072 #define  R_OSPL_VERSION  90
00073 
00074 
00075 /**
00076 * @def  R_OSPL_VERSION_STRING
00077 * @brief  String of version number of OSPL.
00078 * @par Parameters
00079 *    None
00080 * @return  None.
00081 *
00082 * @par Description
00083 *    The value can not be changed.
00084 */
00085 #define  R_OSPL_VERSION_STRING  "0.90"
00086 
00087 
00088 /**
00089 * @def  R_OSPL_IS_PREEMPTION
00090 * @brief  Whether preemptive RTOS or not.
00091 * @par Parameters
00092 *    None
00093 * @return  None.
00094 *
00095 * @par Description
00096 *    The value can not be changed.
00097 *    The value is 1 or 0.
00098 *    This value is 0, if the environment was OS less.
00099 *    It is necessary to configure to pseudo multithreading, if this value was 0.
00100 */
00101 #define  R_OSPL_IS_PREEMPTION   BSP_CFG_RTOS_USED
00102 
00103 
00104 /**
00105 * @def  R_OSPL_NDEBUG
00106 * @brief  Debug configuration or Release configuration.
00107 * @par Parameters
00108 *    None
00109 * @return  None.
00110 *
00111 * @par Description
00112 *    The value can be changed.
00113 *    Define (=Release) or not define (=Debug).
00114 *    This is same as "NDEBUG" of standard library.
00115 *    The system can run with the debug configuration OSPL and the release
00116 *    configuration application.
00117 *    If the library (compiled binary) called the debug configuration OSPL,
00118 *    compile the OSPL source with debug configuration.
00119 */
00120 #ifndef  R_OSPL_NDEBUG
00121 #define  R_OSPL_NDEBUG
00122 #endif
00123 
00124 
00125 /**
00126 * @def  R_OSPL_ERROR_BREAK
00127 * @brief  Whether it is supported to break, when error was raised.
00128 * @par Parameters
00129 *    None
00130 * @return  None.
00131 *
00132 * @par Description
00133 *    The value can be changed.
00134 *    The value is 1 or 0.
00135 */
00136 #ifndef  R_OSPL_ERROR_BREAK
00137 #ifdef  R_OSPL_NDEBUG
00138 #define  R_OSPL_ERROR_BREAK  0
00139 #else
00140 #define  R_OSPL_ERROR_BREAK  1
00141 #endif
00142 #endif
00143 
00144 
00145 /**
00146 * @def  R_OSPL_TLS_ERROR_CODE
00147 * @brief  Whether it is supported that error code is stored in thread local storage
00148 * @par Parameters
00149 *    None
00150 * @return  None.
00151 *
00152 * @par Description
00153 *    The value can be changed.
00154 *    The value is 1 or 0.
00155 *    This value must be 1 by some application or some library with OSPL.
00156 */
00157 #ifndef  R_OSPL_TLS_ERROR_CODE
00158 #define  R_OSPL_TLS_ERROR_CODE  1
00159 #endif
00160 
00161 
00162 /**
00163 * @def  R_OSPL_LIBRARY_MAKING
00164 * @brief  Whether current project makes library.
00165 * @par Parameters
00166 *    None
00167 * @return  None.
00168 *
00169 * @par Description
00170 *    The value can be changed.
00171 *    The value is 1 or 0.
00172 */
00173 #ifndef  R_OSPL_LIBRARY_MAKING
00174 #define  R_OSPL_LIBRARY_MAKING  0
00175 #endif
00176 
00177 
00178 /**
00179 * @def  R_BOOL_IS_SIGNED
00180 * @brief  Whether compiler defines that bool_t type is signed.
00181 * @par Parameters
00182 *    None
00183 * @return  None.
00184 *
00185 * @par Description
00186 *    The value can be changed.
00187 *    The value is 1 or 0.
00188 */
00189 #define  R_BOOL_IS_SIGNED  1
00190 
00191 
00192 /**
00193 * @def  R_OSPL_BIT_FIELD_ACCESS_MACRO
00194 * @brief  Whether bit field access function is provided as macro or function.
00195 * @par Parameters
00196 *    None
00197 * @return  None.
00198 *
00199 * @par Description
00200 *    The value can be changed.
00201 *    The value is 1 (=macro) or 0 (=function).
00202 */
00203 #define  R_OSPL_BIT_FIELD_ACCESS_MACRO  1
00204 
00205 
00206 /***********************************************************************
00207 * Macros: R_OSPL_FTIMER_IS
00208 *    Which channel of timer to use.
00209 *
00210 *    : R_OSPL_FTIMER_IS_OSTM0    - OSTM0
00211 *    : R_OSPL_FTIMER_IS_OSTM1    - OSTM1
00212 *    : R_OSPL_FTIMER_IS_MTU2_1_2 - MTU2 ch1 and ch2
00213 *
00214 * Description:
00215 *    The value can be changed.
00216 ************************************************************************/
00217 #define  R_OSPL_FTIMER_IS        R_OSPL_FTIMER_IS_MTU2_1_2
00218 #define  R_OSPL_FTIMER_IS_OSTM0     0
00219 #define  R_OSPL_FTIMER_IS_OSTM1     1
00220 #define  R_OSPL_FTIMER_IS_MTU2_1_2  2
00221 
00222 #if R_OSPL_FTIMER_IS == R_OSPL_FTIMER_IS_OSTM0
00223 #error  OSTM0 is used by RTX
00224 #endif
00225 
00226 
00227 /******************************************************************************
00228 Variable Externs
00229 ******************************************************************************/
00230 
00231 /******************************************************************************
00232 Functions Prototypes
00233 ******************************************************************************/
00234 
00235 /***********************************************************************
00236 * End of File:
00237 ************************************************************************/
00238 #ifdef __cplusplus
00239 }  /* extern "C" */
00240 #endif /* __cplusplus */
00241 
00242 #endif /* R_OSPL_H */
00243