ff_old_config_defines.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. /*
  2. * FreeRTOS+FAT V2.3.3
  3. * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining a copy of
  6. * this software and associated documentation files (the "Software"), to deal in
  7. * the Software without restriction, including without limitation the rights to
  8. * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  9. * the Software, and to permit persons to whom the Software is furnished to do so,
  10. * subject to the following conditions:
  11. *
  12. * The above copyright notice and this permission notice shall be included in all
  13. * copies or substantial portions of the Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  17. * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  18. * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  19. * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  20. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21. *
  22. * https://www.FreeRTOS.org
  23. * https://github.com/FreeRTOS
  24. *
  25. */
  26. /*
  27. * As of 15/3/2015 all +FAT configuration items changed their prefix,
  28. * e.g. FF_LITTLE_ENDIAN has become ffconfigLITTLE_ENDIAN
  29. * This tempoary header file checks for the presence old configuration items
  30. * and issue a compiler error if any is defined.
  31. */
  32. #ifdef FF_LITTLE_ENDIAN
  33. #error FF_LITTLE_ENDIAN was dropped and replaced with 'ffconfigBYTE_ORDER == pdFREERTOS_LITTLE_ENDIAN'
  34. #endif
  35. #ifdef FF_BIG_ENDIAN
  36. #error FF_BIG_ENDIAN was dropped and replaced with 'ffconfigBYTE_ORDER == pdFREERTOS_BIG_ENDIAN'
  37. #endif
  38. #ifdef ffconfigLITTLE_ENDIAN
  39. #error ffconfigLITTLE_ENDIAN was dropped.
  40. #endif
  41. #ifdef ffconfigBIG_ENDIAN
  42. #error ffconfigBIG_ENDIAN was dropped.
  43. #endif
  44. #ifdef FF_HAS_CWD
  45. #error FF_HAS_CWD still defined. Please use ffconfig prefix.
  46. #endif
  47. #if !defined( pdFREERTOS_LITTLE_ENDIAN ) || !defined( pdFREERTOS_BIG_ENDIAN )
  48. #error Missing defines from FreeRTOS
  49. #endif
  50. #ifdef FF_LFN_SUPPORT
  51. #error FF_LFN_SUPPORT still defined. Please use ffconfig prefix.
  52. #endif
  53. #ifdef FF_INCLUDE_SHORT_NAME
  54. #error FF_INCLUDE_SHORT_NAME still defined. Please use ffconfig prefix.
  55. #endif
  56. #ifdef FF_SHORTNAME_CASE
  57. #error FF_SHORTNAME_CASE still defined. Please use ffconfig prefix.
  58. #endif
  59. #ifdef FF_UNICODE_UTF16_SUPPORT
  60. #error FF_UNICODE_UTF16_SUPPORT still defined. Please use ffconfig prefix.
  61. #endif
  62. #ifdef FF_UNICODE_UTF8_SUPPORT
  63. #error FF_UNICODE_UTF8_SUPPORT still defined. Please use ffconfig prefix.
  64. #endif
  65. #ifdef FF_FAT12_SUPPORT
  66. #error FF_FAT12_SUPPORT still defined. Please use ffconfig prefix.
  67. #endif
  68. #ifdef FF_OPTIMISE_UNALIGNED_ACCESS
  69. #error FF_OPTIMISE_UNALIGNED_ACCESS still defined. Please use ffconfig prefix.
  70. #endif
  71. #ifdef FF_CACHE_WRITE_THROUGH
  72. #error FF_CACHE_WRITE_THROUGH still defined. Please use ffconfig prefix.
  73. #endif
  74. #ifdef FF_WRITE_BOTH_FATS
  75. #error FF_WRITE_BOTH_FATS still defined. Please use ffconfig prefix.
  76. #endif
  77. #ifdef FF_WRITE_FREE_COUNT
  78. #error FF_WRITE_FREE_COUNT still defined. Please use ffconfig prefix.
  79. #endif
  80. #ifdef FF_TIME_SUPPORT
  81. #error FF_TIME_SUPPORT still defined. Please use ffconfig prefix.
  82. #endif
  83. #ifdef FF_REMOVABLE_MEDIA
  84. #error FF_REMOVABLE_MEDIA still defined. Please use ffconfig prefix.
  85. #endif
  86. #ifdef FF_MOUNT_FIND_FREE
  87. #error FF_MOUNT_FIND_FREE still defined. Please use ffconfig prefix.
  88. #endif
  89. #ifdef FF_FINDAPI_ALLOW_WILDCARDS
  90. #error FF_FINDAPI_ALLOW_WILDCARDS still defined. Please use ffconfig prefix.
  91. #endif
  92. #ifdef FF_WILDCARD_CASE_INSENSITIVE
  93. #error FF_WILDCARD_CASE_INSENSITIVE still defined. Please use ffconfig prefix.
  94. #endif
  95. #ifdef FF_PATH_CACHE
  96. #error FF_PATH_CACHE still defined. Please use ffconfig prefix.
  97. #endif
  98. #ifdef FF_PATH_CACHE_DEPTH
  99. #error FF_PATH_CACHE_DEPTH still defined. Please use ffconfig prefix.
  100. #endif
  101. #ifdef FF_HASH_CACHE
  102. #error FF_HASH_CACHE still defined. Please use ffconfig prefix.
  103. #endif
  104. #ifdef FF_HASH_FUNCTION
  105. #error FF_HASH_FUNCTION still defined. Please use ffconfig prefix.
  106. #endif
  107. #ifdef FF_HASH_TABLE_SIZE
  108. #error FF_HASH_TABLE_SIZE still defined. Please use ffconfig prefix.
  109. #endif
  110. #ifdef FF_HASH_TABLE_SIZE
  111. #error FF_HASH_TABLE_SIZE still defined. Please use ffconfig prefix.
  112. #endif
  113. #ifdef FF_MKDIR_RECURSIVE
  114. #error FF_MKDIR_RECURSIVE still defined. Please use ffconfig prefix.
  115. #endif
  116. #ifdef FF_BLKDEV_USES_SEM
  117. #error FF_BLKDEV_USES_SEM is not used any more
  118. #endif
  119. #ifdef ffconfigBLKDEV_USES_SEM
  120. #error ffconfigBLKDEV_USES_SEM is not used any more
  121. #endif
  122. #ifdef FF_MALLOC
  123. #error FF_MALLOC still defined. Please use ffconfig prefix.
  124. #endif
  125. #ifdef FF_FREE
  126. #error FF_FREE still defined. Please use ffconfig prefix.
  127. #endif
  128. #ifdef FF_64_NUM_SUPPORT
  129. #error FF_64_NUM_SUPPORT still defined. Please use ffconfig prefix.
  130. #endif
  131. #ifdef FF_MAX_PARTITIONS
  132. #error FF_MAX_PARTITIONS still defined. Please use ffconfig prefix.
  133. #endif
  134. #ifdef FF_MAX_FILE_SYS
  135. #error FF_MAX_FILE_SYS still defined. Please use ffconfig prefix.
  136. #endif
  137. #ifdef FF_DRIVER_BUSY_SLEEP_MS
  138. #error FF_DRIVER_BUSY_SLEEP_MS still defined. Please use ffconfig prefix.
  139. #endif
  140. #ifdef FF_FPRINTF_SUPPORT
  141. #error FF_FPRINTF_SUPPORT still defined. Please use ffconfig prefix.
  142. #endif
  143. #ifdef FF_FPRINTF_BUFFER_LENGTH
  144. #error FF_FPRINTF_BUFFER_LENGTH still defined. Please use ffconfig prefix.
  145. #endif
  146. #ifdef FF_DEBUG
  147. #error FF_DEBUG still defined. Please use ffconfig prefix.
  148. #endif
  149. #ifdef FF_HAS_FUNCTION_TAB
  150. #error FF_HAS_FUNCTION_TAB still defined. Please use ffconfig prefix.
  151. #endif
  152. #ifdef FF_FAT_CHECK
  153. #error FF_FAT_CHECK still defined. Please use ffconfig prefix.
  154. #endif
  155. #ifdef FF_MAX_FILENAME
  156. #error FF_MAX_FILENAME still defined. Please use ffconfig prefix.
  157. #endif
  158. #ifdef FF_PRINTFFF_PRINTF
  159. #error FF_PRINTFFF_PRINTF still defined. Please use ffconfig prefix.
  160. #endif
  161. #ifdef FF_FAT_USES_STAT
  162. #error FF_FAT_USES_STAT still defined. Please use ffconfig prefix.
  163. #endif
  164. #ifdef BUF_STORE_COUNT
  165. #error BUF_STORE_COUNT still defined. Please use ffconfig prefix.
  166. #endif
  167. #ifdef FF_USE_NOTIFY
  168. #error FF_USE_NOTIFY still defined. Please use ffconfig prefix.
  169. #endif
  170. #ifdef FF_DEV_SUPPORT
  171. #error FF_DEV_SUPPORT still defined. Please use ffconfig prefix.
  172. #endif
  173. #ifdef FF_FSINFO_TRUSTED
  174. #error FF_FSINFO_TRUSTED still defined. Please use ffconfig prefix.
  175. #endif
  176. #ifdef FF_LONG_ERR_MSG
  177. #error FF_LONG_ERR_MSG still defined. Please use ffconfig prefix.
  178. #endif
  179. #ifdef FF_INLINE_MEMORY_ACCESS
  180. #error FF_INLINE_MEMORY_ACCESS still defined. Please use ffconfig prefix.
  181. #endif
  182. #ifdef FF_MIRROR_FATS_UMOUNT
  183. #error FF_MIRROR_FATS_UMOUNT still defined. Please use ffconfig prefix.
  184. #endif
  185. #ifdef FF_HASH_CACHE_DEPTH
  186. #error FF_HASH_CACHE_DEPTH still defined. Please use ffconfig prefix.
  187. #endif
  188. #ifdef FF_HASH_TABLE_SUPPORT
  189. #error FF_HASH_TABLE_SUPPORT was dropped
  190. #endif
  191. #ifdef FF_INLINE_BLOCK_CALCULATIONS
  192. #error FF_INLINE_BLOCK_CALCULATIONS was dropped
  193. #endif
  194. #ifdef FF_CWD_THREAD_LOCAL_INDEX
  195. #error FF_CWD_THREAD_LOCAL_INDEX is now called ffconfigCWD_THREAD_LOCAL_INDEX
  196. #endif
  197. #ifdef FF_DEV_PATH
  198. #error FF_DEV_PATH was dropped
  199. #endif