Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXAS21002 FXOS8700Q
common_defines_test.h
00001 /* 00002 * mbed Microcontroller Library 00003 * Copyright (c) 2006-2018 ARM Limited 00004 * 00005 * SPDX-License-Identifier: Apache-2.0 00006 * 00007 * Licensed under the Apache License, Version 2.0 (the "License"); 00008 * you may not use this file except in compliance with the License. 00009 * You may obtain a copy of the License at 00010 * 00011 * http://www.apache.org/licenses/LICENSE-2.0 00012 * 00013 * Unless required by applicable law or agreed to in writing, software 00014 * distributed under the License is distributed on an "AS IS" BASIS, 00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00016 * See the License for the specific language governing permissions and 00017 * limitations under the License. 00018 */ 00019 00020 #define ETHERNET 1 00021 #define WIFI 2 00022 #define MESH 3 00023 #define CELLULAR 4 00024 00025 #if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) 00026 #error [NOT_SUPPORTED] No network interface found on this target. 00027 #endif 00028 00029 #if MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == ETHERNET 00030 #define TEST_NETWORK_TYPE "Ethernet" 00031 #elif MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI 00032 #define TEST_NETWORK_TYPE "WiFi" 00033 #elif MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == MESH 00034 #define TEST_NETWORK_TYPE "Mesh" 00035 #elif MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == CELLULAR 00036 #define TEST_NETWORK_TYPE "Cellular" 00037 #else 00038 #error [NOT_SUPPORTED] Either WiFi, Ethernet or Cellular network interface need to be enabled 00039 #endif 00040 00041 #define FS_FAT 1 00042 #define FS_LFS 2 00043 00044 #if COMPONENT_SPIF 00045 #define TEST_BLOCK_DEVICE_TYPE "SPIF" 00046 #elif COMPONENT_QSPIF 00047 #define TEST_BLOCK_DEVICE_TYPE "QSPIF" 00048 #elif COMPONENT_DATAFLASH 00049 #define TEST_BLOCK_DEVICE_TYPE "DATAFLASH" 00050 #elif COMPONENT_SD 00051 #define TEST_BLOCK_DEVICE_TYPE "SD" 00052 #define TEST_USE_FILESYSTEM FS_FAT 00053 #elif COMPONENT_FLASHIAP 00054 #define TEST_BLOCK_DEVICE_TYPE "FLASHIAP" 00055 #elif COMPONENT_SDIO 00056 #define TEST_BLOCK_DEVICE_TYPE "SDIO" 00057 #elif COMPONENT_NUSD 00058 #define TEST_BLOCK_DEVICE_TYPE "NUSD" 00059 #define TEST_USE_FILESYSTEM FS_FAT 00060 #else 00061 #define TEST_BLOCK_DEVICE_TYPE "UNKNOWN" 00062 #endif 00063 00064 #if !defined(TEST_USE_FILESYSTEM) 00065 #define TEST_USE_FILESYSTEM FS_LFS 00066 #endif 00067 00068 #if TEST_USE_FILESYSTEM == FS_FAT 00069 #define TEST_FILESYSTEM_TYPE "FAT" 00070 #elif TEST_USE_FILESYSTEM == FS_LFS 00071 #define TEST_FILESYSTEM_TYPE "LFS" 00072 #else 00073 #define TEST_FILESYSTEM_TYPE "UNKNOWN" 00074 #endif 00075 00076 #define TEST_MEMORY_SIZE_10K 10240 00077 #define TEST_MEMORY_SIZE_20K 20480 00078 #define TEST_MEMORY_SIZE_40K 40960 00079 #define TEST_MEMORY_SIZE_60K 61440 00080 #define TEST_MEMORY_SIZE_80K 81920 00081 #define TEST_MEMORY_SIZE_100K 102400
Generated on Tue Jul 12 2022 20:20:58 by
