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.
Dependencies: FXAS21002 FXOS8700Q
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 00029 // if no partition setup given, get the default from system configuration 00030 #include "ffconf.h" 00031 00032 #if _MULTI_PARTITION 00033 #define PAL_NUMBER_OF_PARTITIONS 1 00034 #else 00035 #define PAL_NUMBER_OF_PARTITIONS 0 00036 #endif 00037 #endif 00038 00039 // On ChaN/FAT the mount point states the physical drive directly if multi-partition is not enabled. 00040 // 2 equals to SDDISK and RAMDISK to 0. 00041 00042 //!< Mount point for primary file system partition 00043 #ifndef PAL_FS_MOUNT_POINT_PRIMARY 00044 #if (PAL_NUMBER_OF_PARTITIONS == 0) 00045 #define PAL_FS_MOUNT_POINT_PRIMARY "2:" //!< User should change this for the his working folder 00046 #elif (PAL_NUMBER_OF_PARTITIONS == 1) 00047 #define PAL_FS_MOUNT_POINT_PRIMARY "0:" 00048 #else 00049 #define PAL_FS_MOUNT_POINT_PRIMARY "0:" 00050 #endif 00051 #endif 00052 00053 //!< Mount point for secondary file system partition 00054 #ifndef PAL_FS_MOUNT_POINT_SECONDARY 00055 #if (PAL_NUMBER_OF_PARTITIONS == 0) 00056 #define PAL_FS_MOUNT_POINT_SECONDARY "2:" 00057 #elif (PAL_NUMBER_OF_PARTITIONS == 1) 00058 #define PAL_FS_MOUNT_POINT_SECONDARY "0:" 00059 #else 00060 #define PAL_FS_MOUNT_POINT_SECONDARY "1:" //!< User should change this for the his working folder 00061 #endif 00062 #endif 00063 00064 //!< Max number of allowed timer 00065 #ifndef PAL_MAX_NUM_OF_TIMERS 00066 #define PAL_MAX_NUM_OF_TIMERS 5 00067 #endif 00068 00069 //!< Max given token for a semaphore 00070 #ifndef PAL_SEMAPHORE_MAX_COUNT 00071 #define PAL_SEMAPHORE_MAX_COUNT 255 00072 #endif 00073 00074 #ifndef PAL_INT_FLASH_NUM_SECTIONS 00075 #define PAL_INT_FLASH_NUM_SECTIONS 2 00076 #endif 00077 00078 /*\brief Starting Address for section 1 Minimum requirement size is 1KB and section must be consecutive sectors*/ 00079 #ifndef PAL_INTERNAL_FLASH_SECTION_1_ADDRESS 00080 #define PAL_INTERNAL_FLASH_SECTION_1_ADDRESS 0xFE000 00081 #endif 00082 00083 /*\brief Starting Address for section 2 Minimum requirement size is 1KB and section must be consecutive sectors*/ 00084 #ifndef PAL_INTERNAL_FLASH_SECTION_2_ADDRESS 00085 #define PAL_INTERNAL_FLASH_SECTION_2_ADDRESS 0xFF000 00086 #endif 00087 00088 /*\brief Size for section 1*/ 00089 #ifndef PAL_INTERNAL_FLASH_SECTION_1_SIZE 00090 #define PAL_INTERNAL_FLASH_SECTION_1_SIZE 0x1000 00091 #endif 00092 00093 /*\brief Size for section 2*/ 00094 #ifndef PAL_INTERNAL_FLASH_SECTION_2_SIZE 00095 #define PAL_INTERNAL_FLASH_SECTION_2_SIZE 0x1000 00096 #endif 00097 00098 #ifndef PAL_USE_INTERNAL_FLASH 00099 #define PAL_USE_INTERNAL_FLASH 1 00100 #endif 00101 00102 #ifndef PAL_USE_HW_ROT 00103 #define PAL_USE_HW_ROT 0 00104 #endif 00105 00106 #ifndef PAL_USE_HW_RTC 00107 #define PAL_USE_HW_RTC 0 00108 #endif 00109 #endif /* PAL_FREERTOS_CONFIGURATION_H_ */
Generated on Tue Jul 12 2022 20:20:59 by
