Mayank Gupta / Mbed OS pelion-example-frdm

Dependencies:   FXAS21002 FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbedOS_SST.h Source File

mbedOS_SST.h

00001 /*******************************************************************************
00002 * Copyright 2016, 2017 ARM Ltd.
00003 *
00004 * Licensed under the Apache License, Version 2.0 (the "License");
00005 * you may not use this file except in compliance with the License.
00006 * You may obtain a copy of the License at
00007 *
00008 *     http://www.apache.org/licenses/LICENSE-2.0
00009 *
00010 * Unless required by applicable law or agreed to in writing, software
00011 * distributed under the License is distributed on an "AS IS" BASIS,
00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013 * See the License for the specific language governing permissions and
00014 * limitations under the License.
00015 *******************************************************************************/
00016 
00017 #ifndef PAL_MBEDOS_SST_CONFIGURATION_H_
00018 #define PAL_MBEDOS_SST_CONFIGURATION_H_
00019 
00020 /*!
00021 * \brief This file is for more specific definitions (per board or module if needed).
00022 *        if this file is defined it will be included from pal_configuration.h
00023 *        if not, the default file will be included - if needed
00024 */
00025 
00026 //define sst (kvstore) support flag
00027 #ifndef MBED_CONF_MBED_CLOUD_CLIENT_EXTERNAL_SST_SUPPORT
00028     #define MBED_CONF_MBED_CLOUD_CLIENT_EXTERNAL_SST_SUPPORT
00029 #endif
00030 
00031 //mount fs to MBED_CONF_STORAGE_DEFAULT_KV mount point (same mount point as kvstore defines)
00032 #ifndef PAL_FS_MOUNT_POINT_PRIMARY
00033     #define EXPANSION_STR(x) STR(x) //stringification of macro value
00034     #define STR(x) #x //stringification of the macro
00035     #define PAL_FS_MOUNT_POINT_PRIMARY "/" EXPANSION_STR(MBED_CONF_STORAGE_DEFAULT_KV)
00036 #endif
00037 
00038 //define secondary mount point to the same mount point as primary
00039 #ifndef PAL_FS_MOUNT_POINT_SECONDARY
00040     #define PAL_FS_MOUNT_POINT_SECONDARY PAL_FS_MOUNT_POINT_PRIMARY
00041 #endif
00042 
00043 //issue a warning if PAL_USE_INTERNAL_FLASH!=0 and or define PAL_USE_INTERNAL_FLASH=0
00044 #if PAL_USE_INTERNAL_FLASH //PAL_USE_INTERNAL_FLASH != 0
00045     #warning "Internal flash APIs should be disabled with KVStore"
00046 #else
00047     #define PAL_USE_INTERNAL_FLASH 0
00048 #endif
00049 
00050 #include "mbedOS_default.h"
00051 
00052 #endif /* PAL_MBEDOS_SST_CONFIGURATION_H_ */