Mbed Cloud example program for workshop in W27 2018.

Dependencies:   MMA7660 LM75B

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers palInclude_Linux.h Source File

palInclude_Linux.h

00001 /*
00002  * pal_mbedOS_configuration.h
00003  *
00004  *  Created on: Sep 4, 2017
00005  *      Author: pal
00006  */
00007 #ifndef PAL_MBEDOS_CONFIGURATION_H_
00008 /*! \brief This file sets configuration for PAL porting on Linux.
00009     \note All configurations that are configured in this file overwrite their defaults values
00010     \note Default Values can be found at Sources/PAL-impl/Services-API/pal_configuration.h
00011     \note
00012   */
00013 
00014 //!< Number partitions on SD card used by PAL File System
00015 #ifndef PAL_NUMBER_OF_PARTITIONS
00016     #define PAL_NUMBER_OF_PARTITIONS 1
00017 #endif
00018 
00019 //!< User should change this for the his working folder
00020 #ifndef PAL_FS_MOUNT_POINT_PRIMARY
00021     #if (PAL_NUMBER_OF_PARTITIONS == 2)
00022         #define PAL_FS_MOUNT_POINT_PRIMARY    "./pal_pri"
00023     #else
00024         #define PAL_FS_MOUNT_POINT_PRIMARY    "./pal"
00025     #endif
00026 #endif
00027 
00028  //!< User should change this for the his working folder
00029 #ifndef PAL_FS_MOUNT_POINT_SECONDARY
00030     #if (PAL_NUMBER_OF_PARTITIONS == 2)
00031         #define PAL_FS_MOUNT_POINT_SECONDARY    "./pal_sec"
00032     #else
00033         #define PAL_FS_MOUNT_POINT_SECONDARY    "./pal"
00034     #endif
00035 #endif
00036 
00037 #ifndef PAL_NET_MAX_IF_NAME_LENGTH
00038     #define PAL_NET_MAX_IF_NAME_LENGTH   16  //15 + '\0'
00039 #endif
00040 
00041 #ifndef PAL_NET_TEST_MAX_ASYNC_SOCKETS
00042     #define PAL_NET_TEST_MAX_ASYNC_SOCKETS 5
00043 #endif
00044 
00045 #ifndef PAL_NET_TEST_ASYNC_SOCKET_MANAGER_THREAD_STACK_SIZE
00046     #define PAL_NET_TEST_ASYNC_SOCKET_MANAGER_THREAD_STACK_SIZE (1024*4)
00047 #endif
00048 
00049 #ifndef PAL_RTOS_HIGH_RES_TIMER_THREAD_STACK_SIZE
00050     #define PAL_RTOS_HIGH_RES_TIMER_THREAD_STACK_SIZE (4096*4)
00051 #endif
00052 
00053 #ifndef PAL_FORMAT_CMD_MAX_LENGTH
00054     #define PAL_FORMAT_CMD_MAX_LENGTH 256
00055 #endif
00056 
00057 #ifndef PAL_DEVICE_NAME_MAX_LENGTH
00058     #define PAL_DEVICE_NAME_MAX_LENGTH  128
00059 #endif
00060 
00061 #ifndef PAL_PARTITION_FORMAT_TYPE
00062     #define PAL_PARTITION_FORMAT_TYPE "ext4"
00063 #endif
00064 
00065 /*\brief  overwrite format command with remove all file and directory*/
00066 #ifndef PAL_FS_RM_INSTEAD_OF_FORMAT
00067     #define PAL_FS_RM_INSTEAD_OF_FORMAT 0
00068 #endif
00069 
00070 #ifndef PAL_FS_FORMAT_COMMAND
00071     #define PAL_FS_FORMAT_COMMAND "mkfs -F -t %s %s"
00072 #endif
00073 
00074 
00075 #ifndef PARTITION_FORMAT_ADDITIONAL_PARAMS
00076     #define PARTITION_FORMAT_ADDITIONAL_PARAMS NULL
00077 #endif
00078 
00079  /*\brief  Starting Address for section 1 Minimum requirement size is 1KB and section must be consecutive sectors*/
00080 #ifndef PAL_INTERNAL_FLASH_SECTION_1_ADDRESS
00081     #define PAL_INTERNAL_FLASH_SECTION_1_ADDRESS    0
00082 #endif
00083 
00084 /*\brief  Starting Address for section 2 Minimum requirement size is 1KB and section must be consecutive sectors*/
00085 #ifndef PAL_INTERNAL_FLASH_SECTION_2_ADDRESS
00086     #define PAL_INTERNAL_FLASH_SECTION_2_ADDRESS    0
00087 #endif
00088 
00089 /*\brief  Size for section 1*/
00090 #ifndef PAL_INTERNAL_FLASH_SECTION_1_SIZE
00091     #define PAL_INTERNAL_FLASH_SECTION_1_SIZE       0
00092 #endif
00093 
00094 /*\brief  Size for section 2*/
00095 #ifndef PAL_INTERNAL_FLASH_SECTION_2_SIZE
00096     #define PAL_INTERNAL_FLASH_SECTION_2_SIZE       0
00097 #endif
00098 
00099 
00100 #endif /* PAL_MBEDOS_CONFIGURATION_H_ */