Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

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 #ifndef PAL_NET_TEST_ASYNC_SOCKET_MANAGER_THREAD_STACK_SIZE
00057     #define PAL_NET_TEST_ASYNC_SOCKET_MANAGER_THREAD_STACK_SIZE (1024 * 16)
00058 #endif
00059 
00060 
00061 #ifndef PAL_RTOS_HIGH_RES_TIMER_THREAD_STACK_SIZE
00062     #define PAL_RTOS_HIGH_RES_TIMER_THREAD_STACK_SIZE (1024 * 16)
00063 #endif
00064 
00065 #ifndef PAL_FORMAT_CMD_MAX_LENGTH
00066     #define PAL_FORMAT_CMD_MAX_LENGTH 256
00067 #endif
00068 
00069 #ifndef PAL_DEVICE_NAME_MAX_LENGTH
00070     #define PAL_DEVICE_NAME_MAX_LENGTH  128
00071 #endif
00072 
00073 #ifndef PAL_PARTITION_FORMAT_TYPE
00074     #define PAL_PARTITION_FORMAT_TYPE "ext4"
00075 #endif
00076 
00077 /*\brief  overwrite format command with remove all file and directory*/
00078 #ifndef PAL_SIMULATOR_FS_RM_INSTEAD_OF_FORMAT
00079     #define PAL_SIMULATOR_FS_RM_INSTEAD_OF_FORMAT 0
00080 #endif
00081 
00082 #ifndef PAL_FS_FORMAT_COMMAND
00083     #define PAL_FS_FORMAT_COMMAND "mkfs -F -t %s %s"
00084 #endif
00085 
00086 
00087 #ifndef PARTITION_FORMAT_ADDITIONAL_PARAMS
00088     #define PARTITION_FORMAT_ADDITIONAL_PARAMS NULL
00089 #endif
00090 
00091  /*\brief  Starting Address for section 1 Minimum requirement size is 1KB and section must be consecutive sectors*/
00092 #ifndef PAL_INTERNAL_FLASH_SECTION_1_ADDRESS
00093     #define PAL_INTERNAL_FLASH_SECTION_1_ADDRESS    0
00094 #endif
00095 
00096 /*\brief  Starting Address for section 2 Minimum requirement size is 1KB and section must be consecutive sectors*/
00097 #ifndef PAL_INTERNAL_FLASH_SECTION_2_ADDRESS
00098     #define PAL_INTERNAL_FLASH_SECTION_2_ADDRESS    0
00099 #endif
00100 
00101 /*\brief  Size for section 1*/
00102 #ifndef PAL_INTERNAL_FLASH_SECTION_1_SIZE
00103     #define PAL_INTERNAL_FLASH_SECTION_1_SIZE       0
00104 #endif
00105 
00106 /*\brief  Size for section 2*/
00107 #ifndef PAL_INTERNAL_FLASH_SECTION_2_SIZE
00108     #define PAL_INTERNAL_FLASH_SECTION_2_SIZE       0
00109 #endif
00110 
00111 //!< Stack size for thread created when calling pal_getAddressInfoAsync
00112 #ifndef PAL_NET_ASYNC_DNS_THREAD_STACK_SIZE
00113     #define PAL_NET_ASYNC_DNS_THREAD_STACK_SIZE (1024 * 32)
00114 #endif
00115 
00116 #ifndef PAL_USE_HW_TRNG
00117     #define PAL_USE_HW_TRNG    1
00118 #endif // PAL_USE_HW_TRNG
00119 
00120 #if PAL_USE_HW_TRNG
00121     //! Stack size for TRNG noise collecting thread
00122     #ifndef PAL_NOISE_TRNG_THREAD_STACK_SIZE
00123         #define PAL_NOISE_TRNG_THREAD_STACK_SIZE (1024 * 16)
00124     #endif
00125 #endif
00126 
00127 #ifndef PAL_TIMER_SIGNAL
00128     // Signal number for timer completition signal, a RT signal is needed to get signal queueing
00129     #define PAL_TIMER_SIGNAL (SIGRTMIN+0)
00130 #endif
00131 
00132 #endif /* PAL_DEFAULT_LINUX_CONFIGURATION_H_ */