Mistake on this page?
Report an issue in GitHub or email us
common_defines_fs_test.h
1 /*
2  * mbed Microcontroller Library
3  * Copyright (c) 2006-2019 ARM Limited
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 #define FS_FAT 1
21 #define FS_LFS 2
22 
23 #if COMPONENT_SPIF
24 #define TEST_BLOCK_DEVICE_TYPE "SPIF"
25 #elif COMPONENT_QSPIF
26 #define TEST_BLOCK_DEVICE_TYPE "QSPIF"
27 #elif COMPONENT_DATAFLASH
28 #define TEST_BLOCK_DEVICE_TYPE "DATAFLASH"
29 #elif COMPONENT_SD
30 #define TEST_BLOCK_DEVICE_TYPE "SD"
31 #define TEST_USE_FILESYSTEM FS_FAT
32 #elif COMPONENT_SDIO
33 #define TEST_BLOCK_DEVICE_TYPE "SDIO"
34 #elif COMPONENT_NUSD
35 #define TEST_BLOCK_DEVICE_TYPE "NUSD"
36 #define TEST_USE_FILESYSTEM FS_FAT
37 #elif COMPONENT_FLASHIAP && MBED_CONF_FLASHIAP_BLOCK_DEVICE_SIZE
38 #define TEST_BLOCK_DEVICE_TYPE "FLASHIAP"
39 #else
40 #define TEST_BLOCK_DEVICE_TYPE "UNKNOWN"
41 #error [NOT_SUPPORTED] no valid block device enabled for this target
42 #endif
43 
44 #if !defined(TEST_USE_FILESYSTEM)
45 #define TEST_USE_FILESYSTEM FS_LFS
46 #endif
47 
48 #if TEST_USE_FILESYSTEM == FS_FAT
49 #define TEST_FILESYSTEM_TYPE "FAT"
50 #elif TEST_USE_FILESYSTEM == FS_LFS
51 #define TEST_FILESYSTEM_TYPE "LFS"
52 #else
53 #define TEST_FILESYSTEM_TYPE "UNKNOWN"
54 #endif
55 
56 #define TEST_MEMORY_SIZE_10K 10240
57 #define TEST_MEMORY_SIZE_20K 20480
58 #define TEST_MEMORY_SIZE_40K 40960
59 #define TEST_MEMORY_SIZE_60K 61440
60 #define TEST_MEMORY_SIZE_80K 81920
61 #define TEST_MEMORY_SIZE_100K 102400
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.