Simple interface for Mbed Cloud Client
Embed:
(wiki syntax)
Show/hide line numbers
FreeRTOS_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 00018 #ifndef PAL_FREERTOS_CONFIGURATION_H_ 00019 /*! \brief This file sets configuration for PAL porting on FreeRTOS. 00020 \note All configurations that are configured in this file overwrite their defaults values 00021 \note Default Values can be found at Sources/PAL-impl/Services-API/pal_configuration.h 00022 \note 00023 */ 00024 00025 00026 //!< Number partitions on SD card used by PAL File System; 00027 #ifndef PAL_NUMBER_OF_PARTITIONS 00028 #define PAL_NUMBER_OF_PARTITIONS 1 00029 #endif 00030 00031 //!< Mount point for primary file system partition 00032 #ifndef PAL_FS_MOUNT_POINT_PRIMARY 00033 #if (PAL_NUMBER_OF_PARTITIONS == 0) 00034 #define PAL_FS_MOUNT_POINT_PRIMARY "2:" //!< User should change this for the his working folder 00035 #elif (PAL_NUMBER_OF_PARTITIONS == 1) 00036 #define PAL_FS_MOUNT_POINT_PRIMARY "0:" 00037 #else 00038 #define PAL_FS_MOUNT_POINT_PRIMARY "0:" 00039 #endif 00040 #endif 00041 00042 //!< Mount point for secondary file system partition 00043 #ifndef PAL_FS_MOUNT_POINT_SECONDARY 00044 #if (PAL_NUMBER_OF_PARTITIONS == 0) 00045 #define PAL_FS_MOUNT_POINT_SECONDARY "2:" 00046 #elif (PAL_NUMBER_OF_PARTITIONS == 1) 00047 #define PAL_FS_MOUNT_POINT_SECONDARY "0:" 00048 #else 00049 #define PAL_FS_MOUNT_POINT_SECONDARY "1:" //!< User should change this for the his working folder 00050 #endif 00051 #endif 00052 00053 //!< Max number of allowed timer 00054 #ifndef PAL_MAX_NUM_OF_TIMERS 00055 #define PAL_MAX_NUM_OF_TIMERS 5 00056 #endif 00057 00058 //!< Max given token for a semaphore 00059 #ifndef PAL_SEMAPHORE_MAX_COUNT 00060 #define PAL_SEMAPHORE_MAX_COUNT 255 00061 #endif 00062 00063 #ifndef PAL_INT_FLASH_NUM_SECTIONS 00064 #define PAL_INT_FLASH_NUM_SECTIONS 2 00065 #endif 00066 00067 /*\brief Starting Address for section 1 Minimum requirement size is 1KB and section must be consecutive sectors*/ 00068 #ifndef PAL_INTERNAL_FLASH_SECTION_1_ADDRESS 00069 #define PAL_INTERNAL_FLASH_SECTION_1_ADDRESS 0xFE000 00070 #endif 00071 00072 /*\brief Starting Address for section 2 Minimum requirement size is 1KB and section must be consecutive sectors*/ 00073 #ifndef PAL_INTERNAL_FLASH_SECTION_2_ADDRESS 00074 #define PAL_INTERNAL_FLASH_SECTION_2_ADDRESS 0xFF000 00075 #endif 00076 00077 /*\brief Size for section 1*/ 00078 #ifndef PAL_INTERNAL_FLASH_SECTION_1_SIZE 00079 #define PAL_INTERNAL_FLASH_SECTION_1_SIZE 0x1000 00080 #endif 00081 00082 /*\brief Size for section 2*/ 00083 #ifndef PAL_INTERNAL_FLASH_SECTION_2_SIZE 00084 #define PAL_INTERNAL_FLASH_SECTION_2_SIZE 0x1000 00085 #endif 00086 00087 #ifndef PAL_USE_INTERNAL_FLASH 00088 #define PAL_USE_INTERNAL_FLASH 1 00089 #endif 00090 00091 #ifndef PAL_USE_HW_ROT 00092 #define PAL_USE_HW_ROT 0 00093 #endif 00094 00095 #ifndef PAL_USE_HW_RTC 00096 #define PAL_USE_HW_RTC 0 00097 #endif 00098 #endif /* PAL_FREERTOS_CONFIGURATION_H_ */
Generated on Tue Jul 12 2022 19:01:34 by 1.7.2