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.
sxos_default.h
00001 // ---------------------------------------------------------------------------- 00002 // Copyright 2018-2019 ARM Ltd. 00003 // 00004 // SPDX-License-Identifier: Apache-2.0 00005 // 00006 // Licensed under the Apache License, Version 2.0 (the "License"); 00007 // you may not use this file except in compliance with the License. 00008 // You may obtain a copy of the License at 00009 // 00010 // http://www.apache.org/licenses/LICENSE-2.0 00011 // 00012 // Unless required by applicable law or agreed to in writing, software 00013 // distributed under the License is distributed on an "AS IS" BASIS, 00014 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 // See the License for the specific language governing permissions and 00016 // limitations under the License. 00017 // ---------------------------------------------------------------------------- 00018 00019 #ifndef PAL_SXOS_CONFIGURATION_H_ 00020 /*! \brief This file sets configuration for PAL porting on SXOS. 00021 \note All configurations that are configured in this file overwrite their defaults values 00022 \note Default Values can be found at Sources/PAL-impl/Services-API/pal_configuration.h 00023 \note 00024 */ 00025 00026 // __BYTE_ORDER not defined by the compiler 00027 #ifndef PAL_COMPILATION_ENDIANITY 00028 #define PAL_COMPILATION_ENDIANITY 0 00029 #endif 00030 00031 00032 //!< Number partitions on SD card used by PAL File System 00033 #ifndef PAL_NUMBER_OF_PARTITIONS 00034 #define PAL_NUMBER_OF_PARTITIONS 1 00035 #endif 00036 00037 // On ChaN/FAT the mount point states the physical drive directly if multi-partition is not enabled. 00038 // 2 equals to SDDISK and RAMDISK to 0. 00039 00040 //!< Mount point for primary file system partition 00041 #ifndef PAL_FS_MOUNT_POINT_PRIMARY 00042 #if (PAL_NUMBER_OF_PARTITIONS == 1) 00043 #define PAL_FS_MOUNT_POINT_PRIMARY "/mcc" 00044 #else 00045 #error "only single-partition mode supported" 00046 #endif 00047 #endif 00048 00049 //!< Mount point for secondary file system partition 00050 #ifndef PAL_FS_MOUNT_POINT_SECONDARY 00051 #if (PAL_NUMBER_OF_PARTITIONS == 1) 00052 #define PAL_FS_MOUNT_POINT_SECONDARY "/mcc" 00053 #else 00054 #error "only single-partition mode supported" 00055 #endif 00056 #endif 00057 00058 //!< Max number of allowed timer 00059 #ifndef PAL_MAX_NUM_OF_TIMERS 00060 #define PAL_MAX_NUM_OF_TIMERS 5 00061 #endif 00062 00063 //!< Max given token for a semaphore 00064 #ifndef PAL_SEMAPHORE_MAX_COUNT 00065 #define PAL_SEMAPHORE_MAX_COUNT 255 00066 #endif 00067 00068 #ifndef PAL_INT_FLASH_NUM_SECTIONS 00069 #define PAL_INT_FLASH_NUM_SECTIONS 2 00070 #endif 00071 00072 // This file is a copy of FreeRTOS_default.h and eg. flash addresses are not reflecting reality, 00073 // but the sizes need to be there and match somewhat other platforms to have functional SOTP. 00074 00075 00076 /*\brief Starting Address for section 1 Minimum requirement size is 1KB and section must be consecutive sectors*/ 00077 #ifndef PAL_INTERNAL_FLASH_SECTION_1_ADDRESS 00078 #define PAL_INTERNAL_FLASH_SECTION_1_ADDRESS 0xFE000 00079 #endif 00080 00081 /*\brief Starting Address for section 2 Minimum requirement size is 1KB and section must be consecutive sectors*/ 00082 #ifndef PAL_INTERNAL_FLASH_SECTION_2_ADDRESS 00083 #define PAL_INTERNAL_FLASH_SECTION_2_ADDRESS 0xFF000 00084 #endif 00085 00086 /*\brief Size for section 1*/ 00087 #ifndef PAL_INTERNAL_FLASH_SECTION_1_SIZE 00088 #define PAL_INTERNAL_FLASH_SECTION_1_SIZE 0x1000 00089 #endif 00090 00091 /*\brief Size for section 2*/ 00092 #ifndef PAL_INTERNAL_FLASH_SECTION_2_SIZE 00093 #define PAL_INTERNAL_FLASH_SECTION_2_SIZE 0x1000 00094 #endif 00095 00096 #ifndef PAL_USE_INTERNAL_FLASH 00097 #define PAL_USE_INTERNAL_FLASH 1 00098 #endif 00099 00100 #ifndef PAL_SIMULATOR_FLASH_OVER_FILE_SYSTEM 00101 #define PAL_SIMULATOR_FLASH_OVER_FILE_SYSTEM 1 00102 #endif 00103 00104 #ifndef PAL_SIMULATOR_FS_RM_INSTEAD_OF_FORMAT 00105 #define PAL_SIMULATOR_FS_RM_INSTEAD_OF_FORMAT 1 00106 #endif 00107 00108 #ifndef PAL_USE_HW_ROT 00109 #define PAL_USE_HW_ROT 1 00110 #endif 00111 00112 #ifndef PAL_USE_HW_RTC 00113 #define PAL_USE_HW_RTC 0 00114 #endif 00115 00116 #ifndef PAL_USE_SECURE_TIME 00117 #define PAL_USE_SECURE_TIME 0 00118 #endif 00119 00120 #ifndef PAL_USE_SOTP 00121 #define PAL_USE_SOTP 0 00122 #endif 00123 00124 /* To relax some pal_init/pal_destroy tests when running unit tests from testapp. 00125 * Can be that unit test is not only instance that initializes pal. */ 00126 #ifndef PAL_INITIALIZED_BEFORE_TESTS 00127 #define PAL_INITIALIZED_BEFORE_TESTS 0 00128 #endif 00129 00130 #endif /* PAL_SXOS_CONFIGURATION_H_ */
Generated on Mon Aug 29 2022 19:53:42 by
