| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- /*
- * FreeRTOS+FAT V2.3.3
- * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
- * the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * https://www.FreeRTOS.org
- * https://github.com/FreeRTOS
- *
- */
- /*
- * As of 15/3/2015 all +FAT configuration items changed their prefix,
- * e.g. FF_LITTLE_ENDIAN has become ffconfigLITTLE_ENDIAN
- * This tempoary header file checks for the presence old configuration items
- * and issue a compiler error if any is defined.
- */
- #ifdef FF_LITTLE_ENDIAN
- #error FF_LITTLE_ENDIAN was dropped and replaced with 'ffconfigBYTE_ORDER == pdFREERTOS_LITTLE_ENDIAN'
- #endif
- #ifdef FF_BIG_ENDIAN
- #error FF_BIG_ENDIAN was dropped and replaced with 'ffconfigBYTE_ORDER == pdFREERTOS_BIG_ENDIAN'
- #endif
- #ifdef ffconfigLITTLE_ENDIAN
- #error ffconfigLITTLE_ENDIAN was dropped.
- #endif
- #ifdef ffconfigBIG_ENDIAN
- #error ffconfigBIG_ENDIAN was dropped.
- #endif
- #ifdef FF_HAS_CWD
- #error FF_HAS_CWD still defined. Please use ffconfig prefix.
- #endif
- #if !defined( pdFREERTOS_LITTLE_ENDIAN ) || !defined( pdFREERTOS_BIG_ENDIAN )
- #error Missing defines from FreeRTOS
- #endif
- #ifdef FF_LFN_SUPPORT
- #error FF_LFN_SUPPORT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_INCLUDE_SHORT_NAME
- #error FF_INCLUDE_SHORT_NAME still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_SHORTNAME_CASE
- #error FF_SHORTNAME_CASE still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_UNICODE_UTF16_SUPPORT
- #error FF_UNICODE_UTF16_SUPPORT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_UNICODE_UTF8_SUPPORT
- #error FF_UNICODE_UTF8_SUPPORT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_FAT12_SUPPORT
- #error FF_FAT12_SUPPORT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_OPTIMISE_UNALIGNED_ACCESS
- #error FF_OPTIMISE_UNALIGNED_ACCESS still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_CACHE_WRITE_THROUGH
- #error FF_CACHE_WRITE_THROUGH still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_WRITE_BOTH_FATS
- #error FF_WRITE_BOTH_FATS still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_WRITE_FREE_COUNT
- #error FF_WRITE_FREE_COUNT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_TIME_SUPPORT
- #error FF_TIME_SUPPORT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_REMOVABLE_MEDIA
- #error FF_REMOVABLE_MEDIA still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_MOUNT_FIND_FREE
- #error FF_MOUNT_FIND_FREE still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_FINDAPI_ALLOW_WILDCARDS
- #error FF_FINDAPI_ALLOW_WILDCARDS still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_WILDCARD_CASE_INSENSITIVE
- #error FF_WILDCARD_CASE_INSENSITIVE still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_PATH_CACHE
- #error FF_PATH_CACHE still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_PATH_CACHE_DEPTH
- #error FF_PATH_CACHE_DEPTH still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_HASH_CACHE
- #error FF_HASH_CACHE still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_HASH_FUNCTION
- #error FF_HASH_FUNCTION still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_HASH_TABLE_SIZE
- #error FF_HASH_TABLE_SIZE still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_HASH_TABLE_SIZE
- #error FF_HASH_TABLE_SIZE still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_MKDIR_RECURSIVE
- #error FF_MKDIR_RECURSIVE still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_BLKDEV_USES_SEM
- #error FF_BLKDEV_USES_SEM is not used any more
- #endif
- #ifdef ffconfigBLKDEV_USES_SEM
- #error ffconfigBLKDEV_USES_SEM is not used any more
- #endif
- #ifdef FF_MALLOC
- #error FF_MALLOC still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_FREE
- #error FF_FREE still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_64_NUM_SUPPORT
- #error FF_64_NUM_SUPPORT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_MAX_PARTITIONS
- #error FF_MAX_PARTITIONS still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_MAX_FILE_SYS
- #error FF_MAX_FILE_SYS still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_DRIVER_BUSY_SLEEP_MS
- #error FF_DRIVER_BUSY_SLEEP_MS still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_FPRINTF_SUPPORT
- #error FF_FPRINTF_SUPPORT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_FPRINTF_BUFFER_LENGTH
- #error FF_FPRINTF_BUFFER_LENGTH still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_DEBUG
- #error FF_DEBUG still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_HAS_FUNCTION_TAB
- #error FF_HAS_FUNCTION_TAB still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_FAT_CHECK
- #error FF_FAT_CHECK still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_MAX_FILENAME
- #error FF_MAX_FILENAME still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_PRINTFFF_PRINTF
- #error FF_PRINTFFF_PRINTF still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_FAT_USES_STAT
- #error FF_FAT_USES_STAT still defined. Please use ffconfig prefix.
- #endif
- #ifdef BUF_STORE_COUNT
- #error BUF_STORE_COUNT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_USE_NOTIFY
- #error FF_USE_NOTIFY still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_DEV_SUPPORT
- #error FF_DEV_SUPPORT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_FSINFO_TRUSTED
- #error FF_FSINFO_TRUSTED still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_LONG_ERR_MSG
- #error FF_LONG_ERR_MSG still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_INLINE_MEMORY_ACCESS
- #error FF_INLINE_MEMORY_ACCESS still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_MIRROR_FATS_UMOUNT
- #error FF_MIRROR_FATS_UMOUNT still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_HASH_CACHE_DEPTH
- #error FF_HASH_CACHE_DEPTH still defined. Please use ffconfig prefix.
- #endif
- #ifdef FF_HASH_TABLE_SUPPORT
- #error FF_HASH_TABLE_SUPPORT was dropped
- #endif
- #ifdef FF_INLINE_BLOCK_CALCULATIONS
- #error FF_INLINE_BLOCK_CALCULATIONS was dropped
- #endif
- #ifdef FF_CWD_THREAD_LOCAL_INDEX
- #error FF_CWD_THREAD_LOCAL_INDEX is now called ffconfigCWD_THREAD_LOCAL_INDEX
- #endif
- #ifdef FF_DEV_PATH
- #error FF_DEV_PATH was dropped
- #endif
|