Mistake on this page?
Report an issue in GitHub or email us
kv_config.h
1 /*
2  * Copyright (c) 2018 ARM Limited. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  * Licensed under the Apache License, Version 2.0 (the License); you may
5  * not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef _KV_CONFIG
17 #define _KV_CONFIG
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #ifndef MBED_CONF_STORAGE_STORAGE
24 #define MBED_CONF_STORAGE_STORAGE USER_DEFINED
25 #endif
26 
27 #define _STORAGE_CONFIG_concat(dev) _storage_config_##dev()
28 #define _STORAGE_CONFIG(dev) _STORAGE_CONFIG_concat(dev)
29 
30 /**
31  * @brief This function initializes one of the configuration that exists in Mbed OS. To overwrite
32  * the default configuration, please overwrite this function.
33  *
34  * @returns 0 on success or negative value on failure.
35  */
36 int kv_init_storage_config();
37 
38 /**
39  * @brief A getter for filesystemstore folder path configuration
40  *
41  * @returns string with the file folder path or NULL if not set
42  */
43 const char *get_filesystemstore_folder_path();
44 
45 #ifdef __cplusplus
46 } // closing brace for extern "C"
47 #endif
48 #endif
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.