Rtos API example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cfstore_config.h Source File

cfstore_config.h

00001 /** @file cfstore_debug.h
00002  *
00003  * component debug header file.
00004  */
00005 
00006 
00007 #ifndef __CFSTORE_CONFIG_H
00008 #define __CFSTORE_CONFIG_H
00009 
00010 /*
00011  * CFSTORE_CONFIG_BACKEND_FLASH_ENABLED
00012  *  = 1 >1 build with the flash
00013  * CFSTORE_CONFIG_BACKEND_UVISOR_ENABLED
00014  * CFSTORE_CONFIG_MBED_OS_VERSION
00015  *  3 => mbedosV3
00016  *  4 => morpheus
00017  */
00018 
00019 /* default values */
00020 #define CFSTORE_CONFIG_BACKEND_UVISOR_ENABLED   0
00021 #define CFSTORE_CONFIG_MBED_OS_VERSION          3
00022 
00023 /* default build config overridden by package manager configuration
00024  *
00025  * __MBED__
00026  *   Morpheus build system (mbed-classic) defines the __MBED__ symbol
00027  *
00028  * YOTTA_CFG_CFSTORE_BACKEND_SRAM
00029  *   build only for sram backend (no flash integration)
00030  * YOTTA_CFG_CFSTORE_UVISOR_ENABLE
00031  *   build with uvisor enable
00032  *
00033  * */
00034 
00035 #ifdef __MBED__
00036 #undef CFSTORE_CONFIG_MBED_OS_VERSION
00037 #define CFSTORE_CONFIG_MBED_OS_VERSION    4
00038 
00039 
00040 /* at present time building for sram so set yotta symbol for sync mode i.e. async_ops = 0*/
00041 #define YOTTA_CFG_CONFIG_HARDWARE_MTD_ASYNC_OPS     0
00042 #endif /* __MBED__ */
00043 
00044 /* DEVICE_STORAGE
00045  *   defined by the mbed configuration system if a target supports flash storage
00046  *   back-end. See targets.json for target flash support.
00047  *    - If a target supports storage then by default cfstore will persist KVs to
00048  *      storage.
00049  *    - If a target does not support storage then (by default) cfstore will store KVs
00050  *      in SRAM only (i.e. operate in SRAM in-memory mode).
00051  *
00052  * CFSTORE_STORAGE_DISABLE
00053  *   Disable use of storage support (if present)
00054  */
00055 #if defined DEVICE_STORAGE && CFSTORE_STORAGE_DISABLE==0
00056 #define CFSTORE_CONFIG_BACKEND_FLASH_ENABLED
00057 #endif
00058 
00059 #if defined STORAGE_CONFIG_HARDWARE_MTD_K64F_ASYNC_OPS
00060 #define CFSTORE_STORAGE_DRIVER_CONFIG_HARDWARE_MTD_ASYNC_OPS STORAGE_CONFIG_HARDWARE_MTD_K64F_ASYNC_OPS
00061 #endif
00062 
00063 
00064 #endif /*__CFSTORE_CONFIG_H*/