Mayank Gupta / Mbed OS pelion-example-frdm

Dependencies:   FXAS21002 FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Linux_default.h Source File

Linux_default.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_DEFAULT_LINUX_CONFIGURATION_H_
00018 
00019 
00020 #ifndef PAL_BOARD_SPECIFIC_CONFIG
00021     #if defined(TARGET_X86_X64)
00022         #include "x86_x64_default.h"
00023     #endif
00024 #endif
00025 
00026 
00027 #ifndef PAL_NUMBER_OF_PARTITIONS
00028     #define PAL_NUMBER_OF_PARTITIONS 1
00029 #endif
00030 
00031 
00032 #ifndef PAL_FS_MOUNT_POINT_PRIMARY
00033     #if (PAL_NUMBER_OF_PARTITIONS == 2)
00034         #define PAL_FS_MOUNT_POINT_PRIMARY    "./pal_pri"                                                       //!< User should change this for the his working folder
00035     #else
00036         #define PAL_FS_MOUNT_POINT_PRIMARY    "./pal"
00037     #endif
00038 #endif
00039 
00040 #ifndef PAL_FS_MOUNT_POINT_SECONDARY
00041     #if (PAL_NUMBER_OF_PARTITIONS == 2)
00042         #define PAL_FS_MOUNT_POINT_SECONDARY    "./pal_sec"
00043     #else
00044         #define PAL_FS_MOUNT_POINT_SECONDARY    "./pal"                                                    //!< User should change this for the his working folder
00045     #endif
00046 #endif
00047 
00048 #ifndef PAL_NET_MAX_IF_NAME_LENGTH
00049     #define PAL_NET_MAX_IF_NAME_LENGTH   16  //15 + '\0'
00050 #endif
00051 
00052 #ifndef PAL_NET_TEST_MAX_ASYNC_SOCKETS
00053     #define PAL_NET_TEST_MAX_ASYNC_SOCKETS 5
00054 #endif
00055 
00056 // 16KB does not seem to be enough, some tests are failing with it
00057 #ifndef PAL_NET_TEST_ASYNC_SOCKET_MANAGER_THREAD_STACK_SIZE
00058     #define PAL_NET_TEST_ASYNC_SOCKET_MANAGER_THREAD_STACK_SIZE (1024 * 24)
00059 #endif
00060 
00061 
00062 #ifndef PAL_RTOS_HIGH_RES_TIMER_THREAD_STACK_SIZE
00063     #define PAL_RTOS_HIGH_RES_TIMER_THREAD_STACK_SIZE (1024 * 16)
00064 #endif
00065 
00066 #ifndef PAL_FORMAT_CMD_MAX_LENGTH
00067     #define PAL_FORMAT_CMD_MAX_LENGTH 256
00068 #endif
00069 
00070 #ifndef PAL_DEVICE_NAME_MAX_LENGTH
00071     #define PAL_DEVICE_NAME_MAX_LENGTH  128
00072 #endif
00073 
00074 #ifndef PAL_PARTITION_FORMAT_TYPE
00075     #define PAL_PARTITION_FORMAT_TYPE "ext4"
00076 #endif
00077 
00078 /*\brief  overwrite format command with remove all file and directory*/
00079 #ifndef PAL_SIMULATOR_FS_RM_INSTEAD_OF_FORMAT
00080     #define PAL_SIMULATOR_FS_RM_INSTEAD_OF_FORMAT 0
00081 #endif
00082 
00083 #ifndef PAL_FS_FORMAT_COMMAND
00084     #define PAL_FS_FORMAT_COMMAND "mkfs -F -t %s %s"
00085 #endif
00086 
00087 
00088 #ifndef PARTITION_FORMAT_ADDITIONAL_PARAMS
00089     #define PARTITION_FORMAT_ADDITIONAL_PARAMS NULL
00090 #endif
00091 
00092  /*\brief  Starting Address for section 1 Minimum requirement size is 1KB and section must be consecutive sectors*/
00093 #ifndef PAL_INTERNAL_FLASH_SECTION_1_ADDRESS
00094     #define PAL_INTERNAL_FLASH_SECTION_1_ADDRESS    0
00095 #endif
00096 
00097 /*\brief  Starting Address for section 2 Minimum requirement size is 1KB and section must be consecutive sectors*/
00098 #ifndef PAL_INTERNAL_FLASH_SECTION_2_ADDRESS
00099     #define PAL_INTERNAL_FLASH_SECTION_2_ADDRESS    0
00100 #endif
00101 
00102 /*\brief  Size for section 1*/
00103 #ifndef PAL_INTERNAL_FLASH_SECTION_1_SIZE
00104     #define PAL_INTERNAL_FLASH_SECTION_1_SIZE       0
00105 #endif
00106 
00107 /*\brief  Size for section 2*/
00108 #ifndef PAL_INTERNAL_FLASH_SECTION_2_SIZE
00109     #define PAL_INTERNAL_FLASH_SECTION_2_SIZE       0
00110 #endif
00111 
00112 //!< Stack size for thread created when calling pal_getAddressInfoAsync
00113 #ifndef PAL_NET_ASYNC_DNS_THREAD_STACK_SIZE
00114     #define PAL_NET_ASYNC_DNS_THREAD_STACK_SIZE (1024 * 32)
00115 #endif
00116 
00117 #ifndef PAL_USE_HW_TRNG
00118     #define PAL_USE_HW_TRNG    1
00119 #endif // PAL_USE_HW_TRNG
00120 
00121 #if PAL_USE_HW_TRNG
00122     //! Stack size for TRNG noise collecting thread
00123     #ifndef PAL_NOISE_TRNG_THREAD_STACK_SIZE
00124         #define PAL_NOISE_TRNG_THREAD_STACK_SIZE (1024 * 32)
00125     #endif
00126 #endif
00127 
00128 #ifndef PAL_TIMER_SIGNAL
00129     // Signal number for timer completition signal, a RT signal is needed to get signal queueing
00130     #define PAL_TIMER_SIGNAL (SIGRTMIN+0)
00131 #endif
00132 
00133 #endif /* PAL_DEFAULT_LINUX_CONFIGURATION_H_ */