FreeRTOS.h 103 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334
  1. /*
  2. * FreeRTOS Kernel V11.1.0
  3. * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  4. *
  5. * SPDX-License-Identifier: MIT
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a copy of
  8. * this software and associated documentation files (the "Software"), to deal in
  9. * the Software without restriction, including without limitation the rights to
  10. * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  11. * the Software, and to permit persons to whom the Software is furnished to do so,
  12. * subject to the following conditions:
  13. *
  14. * The above copyright notice and this permission notice shall be included in all
  15. * copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  19. * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  20. * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  21. * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23. *
  24. * https://www.FreeRTOS.org
  25. * https://github.com/FreeRTOS
  26. *
  27. */
  28. #ifndef INC_FREERTOS_H
  29. #define INC_FREERTOS_H
  30. /*
  31. * Include the generic headers required for the FreeRTOS port being used.
  32. */
  33. #include <stddef.h>
  34. /*
  35. * If stdint.h cannot be located then:
  36. * + If using GCC ensure the -nostdint options is *not* being used.
  37. * + Ensure the project's include path includes the directory in which your
  38. * compiler stores stdint.h.
  39. * + Set any compiler options necessary for it to support C99, as technically
  40. * stdint.h is only mandatory with C99 (FreeRTOS does not require C99 in any
  41. * other way).
  42. * + The FreeRTOS download includes a simple stdint.h definition that can be
  43. * used in cases where none is provided by the compiler. The files only
  44. * contains the typedefs required to build FreeRTOS. Read the instructions
  45. * in FreeRTOS/source/stdint.readme for more information.
  46. */
  47. #include <stdint.h> /* READ COMMENT ABOVE. */
  48. /* *INDENT-OFF* */
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif
  52. /* *INDENT-ON* */
  53. /* Acceptable values for configTICK_TYPE_WIDTH_IN_BITS. */
  54. #define TICK_TYPE_WIDTH_16_BITS 0
  55. #define TICK_TYPE_WIDTH_32_BITS 1
  56. #define TICK_TYPE_WIDTH_64_BITS 2
  57. /* Application specific configuration options. */
  58. #include "FreeRTOSConfig.h"
  59. #if !defined( configUSE_16_BIT_TICKS ) && !defined( configTICK_TYPE_WIDTH_IN_BITS )
  60. #error Missing definition: One of configUSE_16_BIT_TICKS and configTICK_TYPE_WIDTH_IN_BITS must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
  61. #endif
  62. #if defined( configUSE_16_BIT_TICKS ) && defined( configTICK_TYPE_WIDTH_IN_BITS )
  63. #error Only one of configUSE_16_BIT_TICKS and configTICK_TYPE_WIDTH_IN_BITS must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
  64. #endif
  65. /* Define configTICK_TYPE_WIDTH_IN_BITS according to the
  66. * value of configUSE_16_BIT_TICKS for backward compatibility. */
  67. #ifndef configTICK_TYPE_WIDTH_IN_BITS
  68. #if ( configUSE_16_BIT_TICKS == 1 )
  69. #define configTICK_TYPE_WIDTH_IN_BITS TICK_TYPE_WIDTH_16_BITS
  70. #else
  71. #define configTICK_TYPE_WIDTH_IN_BITS TICK_TYPE_WIDTH_32_BITS
  72. #endif
  73. #endif
  74. /* Set configUSE_MPU_WRAPPERS_V1 to 1 to use MPU wrappers v1. */
  75. #ifndef configUSE_MPU_WRAPPERS_V1
  76. #define configUSE_MPU_WRAPPERS_V1 0
  77. #endif
  78. /* Set configENABLE_ACCESS_CONTROL_LIST to 1 to enable access control list support. */
  79. #ifndef configENABLE_ACCESS_CONTROL_LIST
  80. #define configENABLE_ACCESS_CONTROL_LIST 0
  81. #endif
  82. /* Set default value of configNUMBER_OF_CORES to 1 to use single core FreeRTOS. */
  83. #ifndef configNUMBER_OF_CORES
  84. #define configNUMBER_OF_CORES 1
  85. #endif
  86. #ifndef configUSE_MALLOC_FAILED_HOOK
  87. #define configUSE_MALLOC_FAILED_HOOK 0
  88. #endif
  89. /* Basic FreeRTOS definitions. */
  90. #include "projdefs.h"
  91. /* Definitions specific to the port being used. */
  92. #include "portable.h"
  93. /* Must be defaulted before configUSE_NEWLIB_REENTRANT is used below. */
  94. #ifndef configUSE_NEWLIB_REENTRANT
  95. #define configUSE_NEWLIB_REENTRANT 0
  96. #endif
  97. /* Required if struct _reent is used. */
  98. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  99. #include "newlib-freertos.h"
  100. #endif /* if ( configUSE_NEWLIB_REENTRANT == 1 ) */
  101. /* Must be defaulted before configUSE_PICOLIBC_TLS is used below. */
  102. #ifndef configUSE_PICOLIBC_TLS
  103. #define configUSE_PICOLIBC_TLS 0
  104. #endif
  105. #if ( configUSE_PICOLIBC_TLS == 1 )
  106. #include "picolibc-freertos.h"
  107. #endif /* if ( configUSE_PICOLIBC_TLS == 1 ) */
  108. #ifndef configUSE_C_RUNTIME_TLS_SUPPORT
  109. #define configUSE_C_RUNTIME_TLS_SUPPORT 0
  110. #endif
  111. #if ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 )
  112. #ifndef configTLS_BLOCK_TYPE
  113. #error Missing definition: configTLS_BLOCK_TYPE must be defined in FreeRTOSConfig.h when configUSE_C_RUNTIME_TLS_SUPPORT is set to 1.
  114. #endif
  115. #ifndef configINIT_TLS_BLOCK
  116. #error Missing definition: configINIT_TLS_BLOCK must be defined in FreeRTOSConfig.h when configUSE_C_RUNTIME_TLS_SUPPORT is set to 1.
  117. #endif
  118. #ifndef configSET_TLS_BLOCK
  119. #error Missing definition: configSET_TLS_BLOCK must be defined in FreeRTOSConfig.h when configUSE_C_RUNTIME_TLS_SUPPORT is set to 1.
  120. #endif
  121. #ifndef configDEINIT_TLS_BLOCK
  122. #error Missing definition: configDEINIT_TLS_BLOCK must be defined in FreeRTOSConfig.h when configUSE_C_RUNTIME_TLS_SUPPORT is set to 1.
  123. #endif
  124. #endif /* if ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 ) */
  125. /*
  126. * Check all the required application specific macros have been defined.
  127. * These macros are application specific and (as downloaded) are defined
  128. * within FreeRTOSConfig.h.
  129. */
  130. #ifndef configMINIMAL_STACK_SIZE
  131. #error Missing definition: configMINIMAL_STACK_SIZE must be defined in FreeRTOSConfig.h. configMINIMAL_STACK_SIZE defines the size (in words) of the stack allocated to the idle task. Refer to the demo project provided for your port for a suitable value.
  132. #endif
  133. #ifndef configMAX_PRIORITIES
  134. #error Missing definition: configMAX_PRIORITIES must be defined in FreeRTOSConfig.h. See the Configuration section of the FreeRTOS API documentation for details.
  135. #endif
  136. #if configMAX_PRIORITIES < 1
  137. #error configMAX_PRIORITIES must be defined to be greater than or equal to 1.
  138. #endif
  139. #ifndef configUSE_PREEMPTION
  140. #error Missing definition: configUSE_PREEMPTION must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
  141. #endif
  142. #ifndef configUSE_IDLE_HOOK
  143. #error Missing definition: configUSE_IDLE_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
  144. #endif
  145. #if ( configNUMBER_OF_CORES > 1 )
  146. #ifndef configUSE_PASSIVE_IDLE_HOOK
  147. #error Missing definition: configUSE_PASSIVE_IDLE_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
  148. #endif
  149. #endif
  150. #ifndef configUSE_TICK_HOOK
  151. #error Missing definition: configUSE_TICK_HOOK must be defined in FreeRTOSConfig.h as either 1 or 0. See the Configuration section of the FreeRTOS API documentation for details.
  152. #endif
  153. #if ( ( configTICK_TYPE_WIDTH_IN_BITS != TICK_TYPE_WIDTH_16_BITS ) && \
  154. ( configTICK_TYPE_WIDTH_IN_BITS != TICK_TYPE_WIDTH_32_BITS ) && \
  155. ( configTICK_TYPE_WIDTH_IN_BITS != TICK_TYPE_WIDTH_64_BITS ) )
  156. #error Macro configTICK_TYPE_WIDTH_IN_BITS is defined to incorrect value. See the Configuration section of the FreeRTOS API documentation for details.
  157. #endif
  158. #ifndef configUSE_CO_ROUTINES
  159. #define configUSE_CO_ROUTINES 0
  160. #endif
  161. #ifndef INCLUDE_vTaskPrioritySet
  162. #define INCLUDE_vTaskPrioritySet 0
  163. #endif
  164. #ifndef INCLUDE_uxTaskPriorityGet
  165. #define INCLUDE_uxTaskPriorityGet 0
  166. #endif
  167. #ifndef INCLUDE_vTaskDelete
  168. #define INCLUDE_vTaskDelete 0
  169. #endif
  170. #ifndef INCLUDE_vTaskSuspend
  171. #define INCLUDE_vTaskSuspend 0
  172. #endif
  173. #ifdef INCLUDE_xTaskDelayUntil
  174. #ifdef INCLUDE_vTaskDelayUntil
  175. /* INCLUDE_vTaskDelayUntil was replaced by INCLUDE_xTaskDelayUntil. Backward
  176. * compatibility is maintained if only one or the other is defined, but
  177. * there is a conflict if both are defined. */
  178. #error INCLUDE_vTaskDelayUntil and INCLUDE_xTaskDelayUntil are both defined. INCLUDE_vTaskDelayUntil is no longer required and should be removed
  179. #endif
  180. #endif
  181. #ifndef INCLUDE_xTaskDelayUntil
  182. #ifdef INCLUDE_vTaskDelayUntil
  183. /* If INCLUDE_vTaskDelayUntil is set but INCLUDE_xTaskDelayUntil is not then
  184. * the project's FreeRTOSConfig.h probably pre-dates the introduction of
  185. * xTaskDelayUntil and setting INCLUDE_xTaskDelayUntil to whatever
  186. * INCLUDE_vTaskDelayUntil is set to will ensure backward compatibility.
  187. */
  188. #define INCLUDE_xTaskDelayUntil INCLUDE_vTaskDelayUntil
  189. #endif
  190. #endif
  191. #ifndef INCLUDE_xTaskDelayUntil
  192. #define INCLUDE_xTaskDelayUntil 0
  193. #endif
  194. #ifndef INCLUDE_vTaskDelay
  195. #define INCLUDE_vTaskDelay 0
  196. #endif
  197. #ifndef INCLUDE_xTaskGetIdleTaskHandle
  198. #define INCLUDE_xTaskGetIdleTaskHandle 0
  199. #endif
  200. #ifndef INCLUDE_xTaskAbortDelay
  201. #define INCLUDE_xTaskAbortDelay 0
  202. #endif
  203. #ifndef INCLUDE_xQueueGetMutexHolder
  204. #define INCLUDE_xQueueGetMutexHolder 0
  205. #endif
  206. #ifndef INCLUDE_xSemaphoreGetMutexHolder
  207. #define INCLUDE_xSemaphoreGetMutexHolder INCLUDE_xQueueGetMutexHolder
  208. #endif
  209. #ifndef INCLUDE_xTaskGetHandle
  210. #define INCLUDE_xTaskGetHandle 0
  211. #endif
  212. #ifndef INCLUDE_uxTaskGetStackHighWaterMark
  213. #define INCLUDE_uxTaskGetStackHighWaterMark 0
  214. #endif
  215. #ifndef INCLUDE_uxTaskGetStackHighWaterMark2
  216. #define INCLUDE_uxTaskGetStackHighWaterMark2 0
  217. #endif
  218. #ifndef INCLUDE_eTaskGetState
  219. #define INCLUDE_eTaskGetState 0
  220. #endif
  221. #ifndef INCLUDE_xTaskResumeFromISR
  222. #define INCLUDE_xTaskResumeFromISR 1
  223. #endif
  224. #ifndef INCLUDE_xTimerPendFunctionCall
  225. #define INCLUDE_xTimerPendFunctionCall 0
  226. #endif
  227. #ifndef INCLUDE_xTaskGetSchedulerState
  228. #define INCLUDE_xTaskGetSchedulerState 0
  229. #endif
  230. #ifndef INCLUDE_xTaskGetCurrentTaskHandle
  231. #define INCLUDE_xTaskGetCurrentTaskHandle 1
  232. #endif
  233. #if configUSE_CO_ROUTINES != 0
  234. #ifndef configMAX_CO_ROUTINE_PRIORITIES
  235. #error configMAX_CO_ROUTINE_PRIORITIES must be greater than or equal to 1.
  236. #endif
  237. #endif
  238. #ifndef configUSE_APPLICATION_TASK_TAG
  239. #define configUSE_APPLICATION_TASK_TAG 0
  240. #endif
  241. #ifndef configNUM_THREAD_LOCAL_STORAGE_POINTERS
  242. #define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0
  243. #endif
  244. #ifndef configUSE_RECURSIVE_MUTEXES
  245. #define configUSE_RECURSIVE_MUTEXES 0
  246. #endif
  247. #ifndef configUSE_MUTEXES
  248. #define configUSE_MUTEXES 0
  249. #endif
  250. #ifndef configUSE_TIMERS
  251. #define configUSE_TIMERS 0
  252. #endif
  253. #ifndef configUSE_EVENT_GROUPS
  254. #define configUSE_EVENT_GROUPS 1
  255. #endif
  256. #ifndef configUSE_STREAM_BUFFERS
  257. #define configUSE_STREAM_BUFFERS 1
  258. #endif
  259. #ifndef configUSE_DAEMON_TASK_STARTUP_HOOK
  260. #define configUSE_DAEMON_TASK_STARTUP_HOOK 0
  261. #endif
  262. #if ( configUSE_DAEMON_TASK_STARTUP_HOOK != 0 )
  263. #if ( configUSE_TIMERS == 0 )
  264. #error configUSE_DAEMON_TASK_STARTUP_HOOK is set, but the daemon task is not created because configUSE_TIMERS is 0.
  265. #endif
  266. #endif
  267. #ifndef configUSE_COUNTING_SEMAPHORES
  268. #define configUSE_COUNTING_SEMAPHORES 0
  269. #endif
  270. #ifndef configUSE_TASK_PREEMPTION_DISABLE
  271. #define configUSE_TASK_PREEMPTION_DISABLE 0
  272. #endif
  273. #ifndef configUSE_ALTERNATIVE_API
  274. #define configUSE_ALTERNATIVE_API 0
  275. #endif
  276. #ifndef portCRITICAL_NESTING_IN_TCB
  277. #define portCRITICAL_NESTING_IN_TCB 0
  278. #endif
  279. #ifndef configMAX_TASK_NAME_LEN
  280. #define configMAX_TASK_NAME_LEN 16
  281. #endif
  282. #ifndef configIDLE_SHOULD_YIELD
  283. #define configIDLE_SHOULD_YIELD 1
  284. #endif
  285. #if configMAX_TASK_NAME_LEN < 1
  286. #error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
  287. #endif
  288. #ifndef configASSERT
  289. #define configASSERT( x )
  290. #define configASSERT_DEFINED 0
  291. #else
  292. #define configASSERT_DEFINED 1
  293. #endif
  294. /* configPRECONDITION should be defined as configASSERT.
  295. * The CBMC proofs need a way to track assumptions and assertions.
  296. * A configPRECONDITION statement should express an implicit invariant or
  297. * assumption made. A configASSERT statement should express an invariant that must
  298. * hold explicit before calling the code. */
  299. #ifndef configPRECONDITION
  300. #define configPRECONDITION( X ) configASSERT( X )
  301. #define configPRECONDITION_DEFINED 0
  302. #else
  303. #define configPRECONDITION_DEFINED 1
  304. #endif
  305. #ifndef configCHECK_HANDLER_INSTALLATION
  306. #define configCHECK_HANDLER_INSTALLATION 1
  307. #else
  308. /* The application has explicitly defined configCHECK_HANDLER_INSTALLATION
  309. * to 1. The checks requires configASSERT() to be defined. */
  310. #if ( ( configCHECK_HANDLER_INSTALLATION == 1 ) && ( configASSERT_DEFINED == 0 ) )
  311. #error You must define configASSERT() when configCHECK_HANDLER_INSTALLATION is 1.
  312. #endif
  313. #endif
  314. #ifndef portMEMORY_BARRIER
  315. #define portMEMORY_BARRIER()
  316. #endif
  317. #ifndef portSOFTWARE_BARRIER
  318. #define portSOFTWARE_BARRIER()
  319. #endif
  320. #ifndef configRUN_MULTIPLE_PRIORITIES
  321. #define configRUN_MULTIPLE_PRIORITIES 0
  322. #endif
  323. #ifndef portGET_CORE_ID
  324. #if ( configNUMBER_OF_CORES == 1 )
  325. #define portGET_CORE_ID() 0
  326. #else
  327. #error configNUMBER_OF_CORES is set to more than 1 then portGET_CORE_ID must also be defined.
  328. #endif /* configNUMBER_OF_CORES */
  329. #endif /* portGET_CORE_ID */
  330. #ifndef portYIELD_CORE
  331. #if ( configNUMBER_OF_CORES == 1 )
  332. #define portYIELD_CORE( x ) portYIELD()
  333. #else
  334. #error configNUMBER_OF_CORES is set to more than 1 then portYIELD_CORE must also be defined.
  335. #endif /* configNUMBER_OF_CORES */
  336. #endif /* portYIELD_CORE */
  337. #ifndef portSET_INTERRUPT_MASK
  338. #if ( configNUMBER_OF_CORES > 1 )
  339. #error portSET_INTERRUPT_MASK is required in SMP
  340. #endif
  341. #endif /* portSET_INTERRUPT_MASK */
  342. #ifndef portCLEAR_INTERRUPT_MASK
  343. #if ( configNUMBER_OF_CORES > 1 )
  344. #error portCLEAR_INTERRUPT_MASK is required in SMP
  345. #endif
  346. #endif /* portCLEAR_INTERRUPT_MASK */
  347. #ifndef portRELEASE_TASK_LOCK
  348. #if ( configNUMBER_OF_CORES == 1 )
  349. #define portRELEASE_TASK_LOCK()
  350. #else
  351. #error portRELEASE_TASK_LOCK is required in SMP
  352. #endif
  353. #endif /* portRELEASE_TASK_LOCK */
  354. #ifndef portGET_TASK_LOCK
  355. #if ( configNUMBER_OF_CORES == 1 )
  356. #define portGET_TASK_LOCK()
  357. #else
  358. #error portGET_TASK_LOCK is required in SMP
  359. #endif
  360. #endif /* portGET_TASK_LOCK */
  361. #ifndef portRELEASE_ISR_LOCK
  362. #if ( configNUMBER_OF_CORES == 1 )
  363. #define portRELEASE_ISR_LOCK()
  364. #else
  365. #error portRELEASE_ISR_LOCK is required in SMP
  366. #endif
  367. #endif /* portRELEASE_ISR_LOCK */
  368. #ifndef portGET_ISR_LOCK
  369. #if ( configNUMBER_OF_CORES == 1 )
  370. #define portGET_ISR_LOCK()
  371. #else
  372. #error portGET_ISR_LOCK is required in SMP
  373. #endif
  374. #endif /* portGET_ISR_LOCK */
  375. #ifndef portENTER_CRITICAL_FROM_ISR
  376. #if ( configNUMBER_OF_CORES > 1 )
  377. #error portENTER_CRITICAL_FROM_ISR is required in SMP
  378. #endif
  379. #endif
  380. #ifndef portEXIT_CRITICAL_FROM_ISR
  381. #if ( configNUMBER_OF_CORES > 1 )
  382. #error portEXIT_CRITICAL_FROM_ISR is required in SMP
  383. #endif
  384. #endif
  385. #ifndef configUSE_CORE_AFFINITY
  386. #define configUSE_CORE_AFFINITY 0
  387. #endif /* configUSE_CORE_AFFINITY */
  388. #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_CORE_AFFINITY == 1 ) )
  389. #ifndef configTASK_DEFAULT_CORE_AFFINITY
  390. #define configTASK_DEFAULT_CORE_AFFINITY tskNO_AFFINITY
  391. #endif
  392. #endif
  393. #ifndef configUSE_PASSIVE_IDLE_HOOK
  394. #define configUSE_PASSIVE_IDLE_HOOK 0
  395. #endif /* configUSE_PASSIVE_IDLE_HOOK */
  396. /* The timers module relies on xTaskGetSchedulerState(). */
  397. #if configUSE_TIMERS == 1
  398. #ifndef configTIMER_TASK_PRIORITY
  399. #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_PRIORITY must also be defined.
  400. #endif /* configTIMER_TASK_PRIORITY */
  401. #ifndef configTIMER_QUEUE_LENGTH
  402. #error If configUSE_TIMERS is set to 1 then configTIMER_QUEUE_LENGTH must also be defined.
  403. #endif /* configTIMER_QUEUE_LENGTH */
  404. #ifndef configTIMER_TASK_STACK_DEPTH
  405. #error If configUSE_TIMERS is set to 1 then configTIMER_TASK_STACK_DEPTH must also be defined.
  406. #endif /* configTIMER_TASK_STACK_DEPTH */
  407. #ifndef portTIMER_CALLBACK_ATTRIBUTE
  408. #define portTIMER_CALLBACK_ATTRIBUTE
  409. #endif /* portTIMER_CALLBACK_ATTRIBUTE */
  410. #endif /* configUSE_TIMERS */
  411. #ifndef portHAS_NESTED_INTERRUPTS
  412. #if defined( portSET_INTERRUPT_MASK_FROM_ISR ) && defined( portCLEAR_INTERRUPT_MASK_FROM_ISR )
  413. #define portHAS_NESTED_INTERRUPTS 1
  414. #else
  415. #define portHAS_NESTED_INTERRUPTS 0
  416. #endif
  417. #endif
  418. #ifndef portSET_INTERRUPT_MASK_FROM_ISR
  419. #if ( portHAS_NESTED_INTERRUPTS == 1 )
  420. #error portSET_INTERRUPT_MASK_FROM_ISR must be defined for ports that support nested interrupts (i.e. portHAS_NESTED_INTERRUPTS is set to 1)
  421. #else
  422. #define portSET_INTERRUPT_MASK_FROM_ISR() 0
  423. #endif
  424. #else
  425. #if ( portHAS_NESTED_INTERRUPTS == 0 )
  426. #error portSET_INTERRUPT_MASK_FROM_ISR must not be defined for ports that do not support nested interrupts (i.e. portHAS_NESTED_INTERRUPTS is set to 0)
  427. #endif
  428. #endif
  429. #ifndef portCLEAR_INTERRUPT_MASK_FROM_ISR
  430. #if ( portHAS_NESTED_INTERRUPTS == 1 )
  431. #error portCLEAR_INTERRUPT_MASK_FROM_ISR must be defined for ports that support nested interrupts (i.e. portHAS_NESTED_INTERRUPTS is set to 1)
  432. #else
  433. #define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedStatusValue ) ( void ) ( uxSavedStatusValue )
  434. #endif
  435. #else
  436. #if ( portHAS_NESTED_INTERRUPTS == 0 )
  437. #error portCLEAR_INTERRUPT_MASK_FROM_ISR must not be defined for ports that do not support nested interrupts (i.e. portHAS_NESTED_INTERRUPTS is set to 0)
  438. #endif
  439. #endif
  440. #ifndef portCLEAN_UP_TCB
  441. #define portCLEAN_UP_TCB( pxTCB ) ( void ) ( pxTCB )
  442. #endif
  443. #ifndef portPRE_TASK_DELETE_HOOK
  444. #define portPRE_TASK_DELETE_HOOK( pvTaskToDelete, pxYieldPending )
  445. #endif
  446. #ifndef portSETUP_TCB
  447. #define portSETUP_TCB( pxTCB ) ( void ) ( pxTCB )
  448. #endif
  449. #ifndef portTASK_SWITCH_HOOK
  450. #define portTASK_SWITCH_HOOK( pxTCB ) ( void ) ( pxTCB )
  451. #endif
  452. #ifndef configQUEUE_REGISTRY_SIZE
  453. #define configQUEUE_REGISTRY_SIZE 0U
  454. #endif
  455. #if ( configQUEUE_REGISTRY_SIZE < 1 )
  456. #define vQueueAddToRegistry( xQueue, pcName )
  457. #define vQueueUnregisterQueue( xQueue )
  458. #define pcQueueGetName( xQueue )
  459. #endif
  460. #ifndef configUSE_MINI_LIST_ITEM
  461. #define configUSE_MINI_LIST_ITEM 1
  462. #endif
  463. #ifndef portPOINTER_SIZE_TYPE
  464. #define portPOINTER_SIZE_TYPE uint32_t
  465. #endif
  466. /* Remove any unused trace macros. */
  467. #ifndef traceSTART
  468. /* Used to perform any necessary initialisation - for example, open a file
  469. * into which trace is to be written. */
  470. #define traceSTART()
  471. #endif
  472. #ifndef traceEND
  473. /* Use to close a trace, for example close a file into which trace has been
  474. * written. */
  475. #define traceEND()
  476. #endif
  477. #ifndef traceTASK_SWITCHED_IN
  478. /* Called after a task has been selected to run. pxCurrentTCB holds a pointer
  479. * to the task control block of the selected task. */
  480. #define traceTASK_SWITCHED_IN()
  481. #endif
  482. #ifndef traceINCREASE_TICK_COUNT
  483. /* Called before stepping the tick count after waking from tickless idle
  484. * sleep. */
  485. #define traceINCREASE_TICK_COUNT( x )
  486. #endif
  487. #ifndef traceLOW_POWER_IDLE_BEGIN
  488. /* Called immediately before entering tickless idle. */
  489. #define traceLOW_POWER_IDLE_BEGIN()
  490. #endif
  491. #ifndef traceLOW_POWER_IDLE_END
  492. /* Called when returning to the Idle task after a tickless idle. */
  493. #define traceLOW_POWER_IDLE_END()
  494. #endif
  495. #ifndef traceTASK_SWITCHED_OUT
  496. /* Called before a task has been selected to run. pxCurrentTCB holds a pointer
  497. * to the task control block of the task being switched out. */
  498. #define traceTASK_SWITCHED_OUT()
  499. #endif
  500. #ifndef traceTASK_PRIORITY_INHERIT
  501. /* Called when a task attempts to take a mutex that is already held by a
  502. * lower priority task. pxTCBOfMutexHolder is a pointer to the TCB of the task
  503. * that holds the mutex. uxInheritedPriority is the priority the mutex holder
  504. * will inherit (the priority of the task that is attempting to obtain the
  505. * muted. */
  506. #define traceTASK_PRIORITY_INHERIT( pxTCBOfMutexHolder, uxInheritedPriority )
  507. #endif
  508. #ifndef traceTASK_PRIORITY_DISINHERIT
  509. /* Called when a task releases a mutex, the holding of which had resulted in
  510. * the task inheriting the priority of a higher priority task.
  511. * pxTCBOfMutexHolder is a pointer to the TCB of the task that is releasing the
  512. * mutex. uxOriginalPriority is the task's configured (base) priority. */
  513. #define traceTASK_PRIORITY_DISINHERIT( pxTCBOfMutexHolder, uxOriginalPriority )
  514. #endif
  515. #ifndef traceBLOCKING_ON_QUEUE_RECEIVE
  516. /* Task is about to block because it cannot read from a
  517. * queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
  518. * upon which the read was attempted. pxCurrentTCB points to the TCB of the
  519. * task that attempted the read. */
  520. #define traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue )
  521. #endif
  522. #ifndef traceBLOCKING_ON_QUEUE_PEEK
  523. /* Task is about to block because it cannot read from a
  524. * queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
  525. * upon which the read was attempted. pxCurrentTCB points to the TCB of the
  526. * task that attempted the read. */
  527. #define traceBLOCKING_ON_QUEUE_PEEK( pxQueue )
  528. #endif
  529. #ifndef traceBLOCKING_ON_QUEUE_SEND
  530. /* Task is about to block because it cannot write to a
  531. * queue/mutex/semaphore. pxQueue is a pointer to the queue/mutex/semaphore
  532. * upon which the write was attempted. pxCurrentTCB points to the TCB of the
  533. * task that attempted the write. */
  534. #define traceBLOCKING_ON_QUEUE_SEND( pxQueue )
  535. #endif
  536. #ifndef configCHECK_FOR_STACK_OVERFLOW
  537. #define configCHECK_FOR_STACK_OVERFLOW 0
  538. #endif
  539. #ifndef configRECORD_STACK_HIGH_ADDRESS
  540. #define configRECORD_STACK_HIGH_ADDRESS 0
  541. #endif
  542. #ifndef configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H
  543. #define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 0
  544. #endif
  545. /* The following event macros are embedded in the kernel API calls. */
  546. #ifndef traceMOVED_TASK_TO_READY_STATE
  547. #define traceMOVED_TASK_TO_READY_STATE( pxTCB )
  548. #endif
  549. #ifndef tracePOST_MOVED_TASK_TO_READY_STATE
  550. #define tracePOST_MOVED_TASK_TO_READY_STATE( pxTCB )
  551. #endif
  552. #ifndef traceMOVED_TASK_TO_DELAYED_LIST
  553. #define traceMOVED_TASK_TO_DELAYED_LIST()
  554. #endif
  555. #ifndef traceMOVED_TASK_TO_OVERFLOW_DELAYED_LIST
  556. #define traceMOVED_TASK_TO_OVERFLOW_DELAYED_LIST()
  557. #endif
  558. #ifndef traceQUEUE_CREATE
  559. #define traceQUEUE_CREATE( pxNewQueue )
  560. #endif
  561. #ifndef traceQUEUE_CREATE_FAILED
  562. #define traceQUEUE_CREATE_FAILED( ucQueueType )
  563. #endif
  564. #ifndef traceCREATE_MUTEX
  565. #define traceCREATE_MUTEX( pxNewQueue )
  566. #endif
  567. #ifndef traceCREATE_MUTEX_FAILED
  568. #define traceCREATE_MUTEX_FAILED()
  569. #endif
  570. #ifndef traceGIVE_MUTEX_RECURSIVE
  571. #define traceGIVE_MUTEX_RECURSIVE( pxMutex )
  572. #endif
  573. #ifndef traceGIVE_MUTEX_RECURSIVE_FAILED
  574. #define traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex )
  575. #endif
  576. #ifndef traceTAKE_MUTEX_RECURSIVE
  577. #define traceTAKE_MUTEX_RECURSIVE( pxMutex )
  578. #endif
  579. #ifndef traceTAKE_MUTEX_RECURSIVE_FAILED
  580. #define traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex )
  581. #endif
  582. #ifndef traceCREATE_COUNTING_SEMAPHORE
  583. #define traceCREATE_COUNTING_SEMAPHORE()
  584. #endif
  585. #ifndef traceCREATE_COUNTING_SEMAPHORE_FAILED
  586. #define traceCREATE_COUNTING_SEMAPHORE_FAILED()
  587. #endif
  588. #ifndef traceQUEUE_SET_SEND
  589. #define traceQUEUE_SET_SEND traceQUEUE_SEND
  590. #endif
  591. #ifndef traceQUEUE_SEND
  592. #define traceQUEUE_SEND( pxQueue )
  593. #endif
  594. #ifndef traceQUEUE_SEND_FAILED
  595. #define traceQUEUE_SEND_FAILED( pxQueue )
  596. #endif
  597. #ifndef traceQUEUE_RECEIVE
  598. #define traceQUEUE_RECEIVE( pxQueue )
  599. #endif
  600. #ifndef traceQUEUE_PEEK
  601. #define traceQUEUE_PEEK( pxQueue )
  602. #endif
  603. #ifndef traceQUEUE_PEEK_FAILED
  604. #define traceQUEUE_PEEK_FAILED( pxQueue )
  605. #endif
  606. #ifndef traceQUEUE_PEEK_FROM_ISR
  607. #define traceQUEUE_PEEK_FROM_ISR( pxQueue )
  608. #endif
  609. #ifndef traceQUEUE_RECEIVE_FAILED
  610. #define traceQUEUE_RECEIVE_FAILED( pxQueue )
  611. #endif
  612. #ifndef traceQUEUE_SEND_FROM_ISR
  613. #define traceQUEUE_SEND_FROM_ISR( pxQueue )
  614. #endif
  615. #ifndef traceQUEUE_SEND_FROM_ISR_FAILED
  616. #define traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue )
  617. #endif
  618. #ifndef traceQUEUE_RECEIVE_FROM_ISR
  619. #define traceQUEUE_RECEIVE_FROM_ISR( pxQueue )
  620. #endif
  621. #ifndef traceQUEUE_RECEIVE_FROM_ISR_FAILED
  622. #define traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue )
  623. #endif
  624. #ifndef traceQUEUE_PEEK_FROM_ISR_FAILED
  625. #define traceQUEUE_PEEK_FROM_ISR_FAILED( pxQueue )
  626. #endif
  627. #ifndef traceQUEUE_DELETE
  628. #define traceQUEUE_DELETE( pxQueue )
  629. #endif
  630. #ifndef traceTASK_CREATE
  631. #define traceTASK_CREATE( pxNewTCB )
  632. #endif
  633. #ifndef traceTASK_CREATE_FAILED
  634. #define traceTASK_CREATE_FAILED()
  635. #endif
  636. #ifndef traceTASK_DELETE
  637. #define traceTASK_DELETE( pxTaskToDelete )
  638. #endif
  639. #ifndef traceTASK_DELAY_UNTIL
  640. #define traceTASK_DELAY_UNTIL( x )
  641. #endif
  642. #ifndef traceTASK_DELAY
  643. #define traceTASK_DELAY()
  644. #endif
  645. #ifndef traceTASK_PRIORITY_SET
  646. #define traceTASK_PRIORITY_SET( pxTask, uxNewPriority )
  647. #endif
  648. #ifndef traceTASK_SUSPEND
  649. #define traceTASK_SUSPEND( pxTaskToSuspend )
  650. #endif
  651. #ifndef traceTASK_RESUME
  652. #define traceTASK_RESUME( pxTaskToResume )
  653. #endif
  654. #ifndef traceTASK_RESUME_FROM_ISR
  655. #define traceTASK_RESUME_FROM_ISR( pxTaskToResume )
  656. #endif
  657. #ifndef traceTASK_INCREMENT_TICK
  658. #define traceTASK_INCREMENT_TICK( xTickCount )
  659. #endif
  660. #ifndef traceTIMER_CREATE
  661. #define traceTIMER_CREATE( pxNewTimer )
  662. #endif
  663. #ifndef traceTIMER_CREATE_FAILED
  664. #define traceTIMER_CREATE_FAILED()
  665. #endif
  666. #ifndef traceTIMER_COMMAND_SEND
  667. #define traceTIMER_COMMAND_SEND( xTimer, xMessageID, xMessageValueValue, xReturn )
  668. #endif
  669. #ifndef traceTIMER_EXPIRED
  670. #define traceTIMER_EXPIRED( pxTimer )
  671. #endif
  672. #ifndef traceTIMER_COMMAND_RECEIVED
  673. #define traceTIMER_COMMAND_RECEIVED( pxTimer, xMessageID, xMessageValue )
  674. #endif
  675. #ifndef traceMALLOC
  676. #define traceMALLOC( pvAddress, uiSize )
  677. #endif
  678. #ifndef traceFREE
  679. #define traceFREE( pvAddress, uiSize )
  680. #endif
  681. #ifndef traceEVENT_GROUP_CREATE
  682. #define traceEVENT_GROUP_CREATE( xEventGroup )
  683. #endif
  684. #ifndef traceEVENT_GROUP_CREATE_FAILED
  685. #define traceEVENT_GROUP_CREATE_FAILED()
  686. #endif
  687. #ifndef traceEVENT_GROUP_SYNC_BLOCK
  688. #define traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor )
  689. #endif
  690. #ifndef traceEVENT_GROUP_SYNC_END
  691. #define traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) ( xTimeoutOccurred )
  692. #endif
  693. #ifndef traceEVENT_GROUP_WAIT_BITS_BLOCK
  694. #define traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor )
  695. #endif
  696. #ifndef traceEVENT_GROUP_WAIT_BITS_END
  697. #define traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred ) ( void ) ( xTimeoutOccurred )
  698. #endif
  699. #ifndef traceEVENT_GROUP_CLEAR_BITS
  700. #define traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear )
  701. #endif
  702. #ifndef traceEVENT_GROUP_CLEAR_BITS_FROM_ISR
  703. #define traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear )
  704. #endif
  705. #ifndef traceEVENT_GROUP_SET_BITS
  706. #define traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet )
  707. #endif
  708. #ifndef traceEVENT_GROUP_SET_BITS_FROM_ISR
  709. #define traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet )
  710. #endif
  711. #ifndef traceEVENT_GROUP_DELETE
  712. #define traceEVENT_GROUP_DELETE( xEventGroup )
  713. #endif
  714. #ifndef tracePEND_FUNC_CALL
  715. #define tracePEND_FUNC_CALL( xFunctionToPend, pvParameter1, ulParameter2, ret )
  716. #endif
  717. #ifndef tracePEND_FUNC_CALL_FROM_ISR
  718. #define tracePEND_FUNC_CALL_FROM_ISR( xFunctionToPend, pvParameter1, ulParameter2, ret )
  719. #endif
  720. #ifndef traceQUEUE_REGISTRY_ADD
  721. #define traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName )
  722. #endif
  723. #ifndef traceTASK_NOTIFY_TAKE_BLOCK
  724. #define traceTASK_NOTIFY_TAKE_BLOCK( uxIndexToWait )
  725. #endif
  726. #ifndef traceTASK_NOTIFY_TAKE
  727. #define traceTASK_NOTIFY_TAKE( uxIndexToWait )
  728. #endif
  729. #ifndef traceTASK_NOTIFY_WAIT_BLOCK
  730. #define traceTASK_NOTIFY_WAIT_BLOCK( uxIndexToWait )
  731. #endif
  732. #ifndef traceTASK_NOTIFY_WAIT
  733. #define traceTASK_NOTIFY_WAIT( uxIndexToWait )
  734. #endif
  735. #ifndef traceTASK_NOTIFY
  736. #define traceTASK_NOTIFY( uxIndexToNotify )
  737. #endif
  738. #ifndef traceTASK_NOTIFY_FROM_ISR
  739. #define traceTASK_NOTIFY_FROM_ISR( uxIndexToNotify )
  740. #endif
  741. #ifndef traceTASK_NOTIFY_GIVE_FROM_ISR
  742. #define traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify )
  743. #endif
  744. #ifndef traceISR_EXIT_TO_SCHEDULER
  745. #define traceISR_EXIT_TO_SCHEDULER()
  746. #endif
  747. #ifndef traceISR_EXIT
  748. #define traceISR_EXIT()
  749. #endif
  750. #ifndef traceISR_ENTER
  751. #define traceISR_ENTER()
  752. #endif
  753. #ifndef traceSTREAM_BUFFER_CREATE_FAILED
  754. #define traceSTREAM_BUFFER_CREATE_FAILED( xStreamBufferType )
  755. #endif
  756. #ifndef traceSTREAM_BUFFER_CREATE_STATIC_FAILED
  757. #define traceSTREAM_BUFFER_CREATE_STATIC_FAILED( xReturn, xStreamBufferType )
  758. #endif
  759. #ifndef traceSTREAM_BUFFER_CREATE
  760. #define traceSTREAM_BUFFER_CREATE( pxStreamBuffer, xStreamBufferType )
  761. #endif
  762. #ifndef traceSTREAM_BUFFER_DELETE
  763. #define traceSTREAM_BUFFER_DELETE( xStreamBuffer )
  764. #endif
  765. #ifndef traceSTREAM_BUFFER_RESET
  766. #define traceSTREAM_BUFFER_RESET( xStreamBuffer )
  767. #endif
  768. #ifndef traceSTREAM_BUFFER_RESET_FROM_ISR
  769. #define traceSTREAM_BUFFER_RESET_FROM_ISR( xStreamBuffer )
  770. #endif
  771. #ifndef traceBLOCKING_ON_STREAM_BUFFER_SEND
  772. #define traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer )
  773. #endif
  774. #ifndef traceSTREAM_BUFFER_SEND
  775. #define traceSTREAM_BUFFER_SEND( xStreamBuffer, xBytesSent )
  776. #endif
  777. #ifndef traceSTREAM_BUFFER_SEND_FAILED
  778. #define traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer )
  779. #endif
  780. #ifndef traceSTREAM_BUFFER_SEND_FROM_ISR
  781. #define traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xBytesSent )
  782. #endif
  783. #ifndef traceBLOCKING_ON_STREAM_BUFFER_RECEIVE
  784. #define traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer )
  785. #endif
  786. #ifndef traceSTREAM_BUFFER_RECEIVE
  787. #define traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength )
  788. #endif
  789. #ifndef traceSTREAM_BUFFER_RECEIVE_FAILED
  790. #define traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer )
  791. #endif
  792. #ifndef traceSTREAM_BUFFER_RECEIVE_FROM_ISR
  793. #define traceSTREAM_BUFFER_RECEIVE_FROM_ISR( xStreamBuffer, xReceivedLength )
  794. #endif
  795. #ifndef traceENTER_xEventGroupCreateStatic
  796. #define traceENTER_xEventGroupCreateStatic( pxEventGroupBuffer )
  797. #endif
  798. #ifndef traceRETURN_xEventGroupCreateStatic
  799. #define traceRETURN_xEventGroupCreateStatic( pxEventBits )
  800. #endif
  801. #ifndef traceENTER_xEventGroupCreate
  802. #define traceENTER_xEventGroupCreate()
  803. #endif
  804. #ifndef traceRETURN_xEventGroupCreate
  805. #define traceRETURN_xEventGroupCreate( pxEventBits )
  806. #endif
  807. #ifndef traceENTER_xEventGroupSync
  808. #define traceENTER_xEventGroupSync( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTicksToWait )
  809. #endif
  810. #ifndef traceRETURN_xEventGroupSync
  811. #define traceRETURN_xEventGroupSync( uxReturn )
  812. #endif
  813. #ifndef traceENTER_xEventGroupWaitBits
  814. #define traceENTER_xEventGroupWaitBits( xEventGroup, uxBitsToWaitFor, xClearOnExit, xWaitForAllBits, xTicksToWait )
  815. #endif
  816. #ifndef traceRETURN_xEventGroupWaitBits
  817. #define traceRETURN_xEventGroupWaitBits( uxReturn )
  818. #endif
  819. #ifndef traceENTER_xEventGroupClearBits
  820. #define traceENTER_xEventGroupClearBits( xEventGroup, uxBitsToClear )
  821. #endif
  822. #ifndef traceRETURN_xEventGroupClearBits
  823. #define traceRETURN_xEventGroupClearBits( uxReturn )
  824. #endif
  825. #ifndef traceENTER_xEventGroupClearBitsFromISR
  826. #define traceENTER_xEventGroupClearBitsFromISR( xEventGroup, uxBitsToClear )
  827. #endif
  828. #ifndef traceRETURN_xEventGroupClearBitsFromISR
  829. #define traceRETURN_xEventGroupClearBitsFromISR( xReturn )
  830. #endif
  831. #ifndef traceENTER_xEventGroupGetBitsFromISR
  832. #define traceENTER_xEventGroupGetBitsFromISR( xEventGroup )
  833. #endif
  834. #ifndef traceRETURN_xEventGroupGetBitsFromISR
  835. #define traceRETURN_xEventGroupGetBitsFromISR( uxReturn )
  836. #endif
  837. #ifndef traceENTER_xEventGroupSetBits
  838. #define traceENTER_xEventGroupSetBits( xEventGroup, uxBitsToSet )
  839. #endif
  840. #ifndef traceRETURN_xEventGroupSetBits
  841. #define traceRETURN_xEventGroupSetBits( uxEventBits )
  842. #endif
  843. #ifndef traceENTER_vEventGroupDelete
  844. #define traceENTER_vEventGroupDelete( xEventGroup )
  845. #endif
  846. #ifndef traceRETURN_vEventGroupDelete
  847. #define traceRETURN_vEventGroupDelete()
  848. #endif
  849. #ifndef traceENTER_xEventGroupGetStaticBuffer
  850. #define traceENTER_xEventGroupGetStaticBuffer( xEventGroup, ppxEventGroupBuffer )
  851. #endif
  852. #ifndef traceRETURN_xEventGroupGetStaticBuffer
  853. #define traceRETURN_xEventGroupGetStaticBuffer( xReturn )
  854. #endif
  855. #ifndef traceENTER_vEventGroupSetBitsCallback
  856. #define traceENTER_vEventGroupSetBitsCallback( pvEventGroup, ulBitsToSet )
  857. #endif
  858. #ifndef traceRETURN_vEventGroupSetBitsCallback
  859. #define traceRETURN_vEventGroupSetBitsCallback()
  860. #endif
  861. #ifndef traceENTER_vEventGroupClearBitsCallback
  862. #define traceENTER_vEventGroupClearBitsCallback( pvEventGroup, ulBitsToClear )
  863. #endif
  864. #ifndef traceRETURN_vEventGroupClearBitsCallback
  865. #define traceRETURN_vEventGroupClearBitsCallback()
  866. #endif
  867. #ifndef traceENTER_xEventGroupSetBitsFromISR
  868. #define traceENTER_xEventGroupSetBitsFromISR( xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken )
  869. #endif
  870. #ifndef traceRETURN_xEventGroupSetBitsFromISR
  871. #define traceRETURN_xEventGroupSetBitsFromISR( xReturn )
  872. #endif
  873. #ifndef traceENTER_uxEventGroupGetNumber
  874. #define traceENTER_uxEventGroupGetNumber( xEventGroup )
  875. #endif
  876. #ifndef traceRETURN_uxEventGroupGetNumber
  877. #define traceRETURN_uxEventGroupGetNumber( xReturn )
  878. #endif
  879. #ifndef traceENTER_vEventGroupSetNumber
  880. #define traceENTER_vEventGroupSetNumber( xEventGroup, uxEventGroupNumber )
  881. #endif
  882. #ifndef traceRETURN_vEventGroupSetNumber
  883. #define traceRETURN_vEventGroupSetNumber()
  884. #endif
  885. #ifndef traceENTER_xQueueGenericReset
  886. #define traceENTER_xQueueGenericReset( xQueue, xNewQueue )
  887. #endif
  888. #ifndef traceRETURN_xQueueGenericReset
  889. #define traceRETURN_xQueueGenericReset( xReturn )
  890. #endif
  891. #ifndef traceENTER_xQueueGenericCreateStatic
  892. #define traceENTER_xQueueGenericCreateStatic( uxQueueLength, uxItemSize, pucQueueStorage, pxStaticQueue, ucQueueType )
  893. #endif
  894. #ifndef traceRETURN_xQueueGenericCreateStatic
  895. #define traceRETURN_xQueueGenericCreateStatic( pxNewQueue )
  896. #endif
  897. #ifndef traceENTER_xQueueGenericGetStaticBuffers
  898. #define traceENTER_xQueueGenericGetStaticBuffers( xQueue, ppucQueueStorage, ppxStaticQueue )
  899. #endif
  900. #ifndef traceRETURN_xQueueGenericGetStaticBuffers
  901. #define traceRETURN_xQueueGenericGetStaticBuffers( xReturn )
  902. #endif
  903. #ifndef traceENTER_xQueueGenericCreate
  904. #define traceENTER_xQueueGenericCreate( uxQueueLength, uxItemSize, ucQueueType )
  905. #endif
  906. #ifndef traceRETURN_xQueueGenericCreate
  907. #define traceRETURN_xQueueGenericCreate( pxNewQueue )
  908. #endif
  909. #ifndef traceENTER_xQueueCreateMutex
  910. #define traceENTER_xQueueCreateMutex( ucQueueType )
  911. #endif
  912. #ifndef traceRETURN_xQueueCreateMutex
  913. #define traceRETURN_xQueueCreateMutex( xNewQueue )
  914. #endif
  915. #ifndef traceENTER_xQueueCreateMutexStatic
  916. #define traceENTER_xQueueCreateMutexStatic( ucQueueType, pxStaticQueue )
  917. #endif
  918. #ifndef traceRETURN_xQueueCreateMutexStatic
  919. #define traceRETURN_xQueueCreateMutexStatic( xNewQueue )
  920. #endif
  921. #ifndef traceENTER_xQueueGetMutexHolder
  922. #define traceENTER_xQueueGetMutexHolder( xSemaphore )
  923. #endif
  924. #ifndef traceRETURN_xQueueGetMutexHolder
  925. #define traceRETURN_xQueueGetMutexHolder( pxReturn )
  926. #endif
  927. #ifndef traceENTER_xQueueGetMutexHolderFromISR
  928. #define traceENTER_xQueueGetMutexHolderFromISR( xSemaphore )
  929. #endif
  930. #ifndef traceRETURN_xQueueGetMutexHolderFromISR
  931. #define traceRETURN_xQueueGetMutexHolderFromISR( pxReturn )
  932. #endif
  933. #ifndef traceENTER_xQueueGiveMutexRecursive
  934. #define traceENTER_xQueueGiveMutexRecursive( xMutex )
  935. #endif
  936. #ifndef traceRETURN_xQueueGiveMutexRecursive
  937. #define traceRETURN_xQueueGiveMutexRecursive( xReturn )
  938. #endif
  939. #ifndef traceENTER_xQueueTakeMutexRecursive
  940. #define traceENTER_xQueueTakeMutexRecursive( xMutex, xTicksToWait )
  941. #endif
  942. #ifndef traceRETURN_xQueueTakeMutexRecursive
  943. #define traceRETURN_xQueueTakeMutexRecursive( xReturn )
  944. #endif
  945. #ifndef traceENTER_xQueueCreateCountingSemaphoreStatic
  946. #define traceENTER_xQueueCreateCountingSemaphoreStatic( uxMaxCount, uxInitialCount, pxStaticQueue )
  947. #endif
  948. #ifndef traceRETURN_xQueueCreateCountingSemaphoreStatic
  949. #define traceRETURN_xQueueCreateCountingSemaphoreStatic( xHandle )
  950. #endif
  951. #ifndef traceENTER_xQueueCreateCountingSemaphore
  952. #define traceENTER_xQueueCreateCountingSemaphore( uxMaxCount, uxInitialCount )
  953. #endif
  954. #ifndef traceRETURN_xQueueCreateCountingSemaphore
  955. #define traceRETURN_xQueueCreateCountingSemaphore( xHandle )
  956. #endif
  957. #ifndef traceENTER_xQueueGenericSend
  958. #define traceENTER_xQueueGenericSend( xQueue, pvItemToQueue, xTicksToWait, xCopyPosition )
  959. #endif
  960. #ifndef traceRETURN_xQueueGenericSend
  961. #define traceRETURN_xQueueGenericSend( xReturn )
  962. #endif
  963. #ifndef traceENTER_xQueueGenericSendFromISR
  964. #define traceENTER_xQueueGenericSendFromISR( xQueue, pvItemToQueue, pxHigherPriorityTaskWoken, xCopyPosition )
  965. #endif
  966. #ifndef traceRETURN_xQueueGenericSendFromISR
  967. #define traceRETURN_xQueueGenericSendFromISR( xReturn )
  968. #endif
  969. #ifndef traceENTER_xQueueGiveFromISR
  970. #define traceENTER_xQueueGiveFromISR( xQueue, pxHigherPriorityTaskWoken )
  971. #endif
  972. #ifndef traceRETURN_xQueueGiveFromISR
  973. #define traceRETURN_xQueueGiveFromISR( xReturn )
  974. #endif
  975. #ifndef traceENTER_xQueueReceive
  976. #define traceENTER_xQueueReceive( xQueue, pvBuffer, xTicksToWait )
  977. #endif
  978. #ifndef traceRETURN_xQueueReceive
  979. #define traceRETURN_xQueueReceive( xReturn )
  980. #endif
  981. #ifndef traceENTER_xQueueSemaphoreTake
  982. #define traceENTER_xQueueSemaphoreTake( xQueue, xTicksToWait )
  983. #endif
  984. #ifndef traceRETURN_xQueueSemaphoreTake
  985. #define traceRETURN_xQueueSemaphoreTake( xReturn )
  986. #endif
  987. #ifndef traceENTER_xQueuePeek
  988. #define traceENTER_xQueuePeek( xQueue, pvBuffer, xTicksToWait )
  989. #endif
  990. #ifndef traceRETURN_xQueuePeek
  991. #define traceRETURN_xQueuePeek( xReturn )
  992. #endif
  993. #ifndef traceENTER_xQueueReceiveFromISR
  994. #define traceENTER_xQueueReceiveFromISR( xQueue, pvBuffer, pxHigherPriorityTaskWoken )
  995. #endif
  996. #ifndef traceRETURN_xQueueReceiveFromISR
  997. #define traceRETURN_xQueueReceiveFromISR( xReturn )
  998. #endif
  999. #ifndef traceENTER_xQueuePeekFromISR
  1000. #define traceENTER_xQueuePeekFromISR( xQueue, pvBuffer )
  1001. #endif
  1002. #ifndef traceRETURN_xQueuePeekFromISR
  1003. #define traceRETURN_xQueuePeekFromISR( xReturn )
  1004. #endif
  1005. #ifndef traceENTER_uxQueueMessagesWaiting
  1006. #define traceENTER_uxQueueMessagesWaiting( xQueue )
  1007. #endif
  1008. #ifndef traceRETURN_uxQueueMessagesWaiting
  1009. #define traceRETURN_uxQueueMessagesWaiting( uxReturn )
  1010. #endif
  1011. #ifndef traceENTER_uxQueueSpacesAvailable
  1012. #define traceENTER_uxQueueSpacesAvailable( xQueue )
  1013. #endif
  1014. #ifndef traceRETURN_uxQueueSpacesAvailable
  1015. #define traceRETURN_uxQueueSpacesAvailable( uxReturn )
  1016. #endif
  1017. #ifndef traceENTER_uxQueueMessagesWaitingFromISR
  1018. #define traceENTER_uxQueueMessagesWaitingFromISR( xQueue )
  1019. #endif
  1020. #ifndef traceRETURN_uxQueueMessagesWaitingFromISR
  1021. #define traceRETURN_uxQueueMessagesWaitingFromISR( uxReturn )
  1022. #endif
  1023. #ifndef traceENTER_vQueueDelete
  1024. #define traceENTER_vQueueDelete( xQueue )
  1025. #endif
  1026. #ifndef traceRETURN_vQueueDelete
  1027. #define traceRETURN_vQueueDelete()
  1028. #endif
  1029. #ifndef traceENTER_uxQueueGetQueueNumber
  1030. #define traceENTER_uxQueueGetQueueNumber( xQueue )
  1031. #endif
  1032. #ifndef traceRETURN_uxQueueGetQueueNumber
  1033. #define traceRETURN_uxQueueGetQueueNumber( uxQueueNumber )
  1034. #endif
  1035. #ifndef traceENTER_vQueueSetQueueNumber
  1036. #define traceENTER_vQueueSetQueueNumber( xQueue, uxQueueNumber )
  1037. #endif
  1038. #ifndef traceRETURN_vQueueSetQueueNumber
  1039. #define traceRETURN_vQueueSetQueueNumber()
  1040. #endif
  1041. #ifndef traceENTER_ucQueueGetQueueType
  1042. #define traceENTER_ucQueueGetQueueType( xQueue )
  1043. #endif
  1044. #ifndef traceRETURN_ucQueueGetQueueType
  1045. #define traceRETURN_ucQueueGetQueueType( ucQueueType )
  1046. #endif
  1047. #ifndef traceENTER_uxQueueGetQueueItemSize
  1048. #define traceENTER_uxQueueGetQueueItemSize( xQueue )
  1049. #endif
  1050. #ifndef traceRETURN_uxQueueGetQueueItemSize
  1051. #define traceRETURN_uxQueueGetQueueItemSize( uxItemSize )
  1052. #endif
  1053. #ifndef traceENTER_uxQueueGetQueueLength
  1054. #define traceENTER_uxQueueGetQueueLength( xQueue )
  1055. #endif
  1056. #ifndef traceRETURN_uxQueueGetQueueLength
  1057. #define traceRETURN_uxQueueGetQueueLength( uxLength )
  1058. #endif
  1059. #ifndef traceENTER_xQueueIsQueueEmptyFromISR
  1060. #define traceENTER_xQueueIsQueueEmptyFromISR( xQueue )
  1061. #endif
  1062. #ifndef traceRETURN_xQueueIsQueueEmptyFromISR
  1063. #define traceRETURN_xQueueIsQueueEmptyFromISR( xReturn )
  1064. #endif
  1065. #ifndef traceENTER_xQueueIsQueueFullFromISR
  1066. #define traceENTER_xQueueIsQueueFullFromISR( xQueue )
  1067. #endif
  1068. #ifndef traceRETURN_xQueueIsQueueFullFromISR
  1069. #define traceRETURN_xQueueIsQueueFullFromISR( xReturn )
  1070. #endif
  1071. #ifndef traceENTER_xQueueCRSend
  1072. #define traceENTER_xQueueCRSend( xQueue, pvItemToQueue, xTicksToWait )
  1073. #endif
  1074. #ifndef traceRETURN_xQueueCRSend
  1075. #define traceRETURN_xQueueCRSend( xReturn )
  1076. #endif
  1077. #ifndef traceENTER_xQueueCRReceive
  1078. #define traceENTER_xQueueCRReceive( xQueue, pvBuffer, xTicksToWait )
  1079. #endif
  1080. #ifndef traceRETURN_xQueueCRReceive
  1081. #define traceRETURN_xQueueCRReceive( xReturn )
  1082. #endif
  1083. #ifndef traceENTER_xQueueCRSendFromISR
  1084. #define traceENTER_xQueueCRSendFromISR( xQueue, pvItemToQueue, xCoRoutinePreviouslyWoken )
  1085. #endif
  1086. #ifndef traceRETURN_xQueueCRSendFromISR
  1087. #define traceRETURN_xQueueCRSendFromISR( xCoRoutinePreviouslyWoken )
  1088. #endif
  1089. #ifndef traceENTER_xQueueCRReceiveFromISR
  1090. #define traceENTER_xQueueCRReceiveFromISR( xQueue, pvBuffer, pxCoRoutineWoken )
  1091. #endif
  1092. #ifndef traceRETURN_xQueueCRReceiveFromISR
  1093. #define traceRETURN_xQueueCRReceiveFromISR( xReturn )
  1094. #endif
  1095. #ifndef traceENTER_vQueueAddToRegistry
  1096. #define traceENTER_vQueueAddToRegistry( xQueue, pcQueueName )
  1097. #endif
  1098. #ifndef traceRETURN_vQueueAddToRegistry
  1099. #define traceRETURN_vQueueAddToRegistry()
  1100. #endif
  1101. #ifndef traceENTER_pcQueueGetName
  1102. #define traceENTER_pcQueueGetName( xQueue )
  1103. #endif
  1104. #ifndef traceRETURN_pcQueueGetName
  1105. #define traceRETURN_pcQueueGetName( pcReturn )
  1106. #endif
  1107. #ifndef traceENTER_vQueueUnregisterQueue
  1108. #define traceENTER_vQueueUnregisterQueue( xQueue )
  1109. #endif
  1110. #ifndef traceRETURN_vQueueUnregisterQueue
  1111. #define traceRETURN_vQueueUnregisterQueue()
  1112. #endif
  1113. #ifndef traceENTER_vQueueWaitForMessageRestricted
  1114. #define traceENTER_vQueueWaitForMessageRestricted( xQueue, xTicksToWait, xWaitIndefinitely )
  1115. #endif
  1116. #ifndef traceRETURN_vQueueWaitForMessageRestricted
  1117. #define traceRETURN_vQueueWaitForMessageRestricted()
  1118. #endif
  1119. #ifndef traceENTER_xQueueCreateSet
  1120. #define traceENTER_xQueueCreateSet( uxEventQueueLength )
  1121. #endif
  1122. #ifndef traceRETURN_xQueueCreateSet
  1123. #define traceRETURN_xQueueCreateSet( pxQueue )
  1124. #endif
  1125. #ifndef traceENTER_xQueueAddToSet
  1126. #define traceENTER_xQueueAddToSet( xQueueOrSemaphore, xQueueSet )
  1127. #endif
  1128. #ifndef traceRETURN_xQueueAddToSet
  1129. #define traceRETURN_xQueueAddToSet( xReturn )
  1130. #endif
  1131. #ifndef traceENTER_xQueueRemoveFromSet
  1132. #define traceENTER_xQueueRemoveFromSet( xQueueOrSemaphore, xQueueSet )
  1133. #endif
  1134. #ifndef traceRETURN_xQueueRemoveFromSet
  1135. #define traceRETURN_xQueueRemoveFromSet( xReturn )
  1136. #endif
  1137. #ifndef traceENTER_xQueueSelectFromSet
  1138. #define traceENTER_xQueueSelectFromSet( xQueueSet, xTicksToWait )
  1139. #endif
  1140. #ifndef traceRETURN_xQueueSelectFromSet
  1141. #define traceRETURN_xQueueSelectFromSet( xReturn )
  1142. #endif
  1143. #ifndef traceENTER_xQueueSelectFromSetFromISR
  1144. #define traceENTER_xQueueSelectFromSetFromISR( xQueueSet )
  1145. #endif
  1146. #ifndef traceRETURN_xQueueSelectFromSetFromISR
  1147. #define traceRETURN_xQueueSelectFromSetFromISR( xReturn )
  1148. #endif
  1149. #ifndef traceENTER_xTimerCreateTimerTask
  1150. #define traceENTER_xTimerCreateTimerTask()
  1151. #endif
  1152. #ifndef traceRETURN_xTimerCreateTimerTask
  1153. #define traceRETURN_xTimerCreateTimerTask( xReturn )
  1154. #endif
  1155. #ifndef traceENTER_xTimerCreate
  1156. #define traceENTER_xTimerCreate( pcTimerName, xTimerPeriodInTicks, xAutoReload, pvTimerID, pxCallbackFunction )
  1157. #endif
  1158. #ifndef traceRETURN_xTimerCreate
  1159. #define traceRETURN_xTimerCreate( pxNewTimer )
  1160. #endif
  1161. #ifndef traceENTER_xTimerCreateStatic
  1162. #define traceENTER_xTimerCreateStatic( pcTimerName, xTimerPeriodInTicks, xAutoReload, pvTimerID, pxCallbackFunction, pxTimerBuffer )
  1163. #endif
  1164. #ifndef traceRETURN_xTimerCreateStatic
  1165. #define traceRETURN_xTimerCreateStatic( pxNewTimer )
  1166. #endif
  1167. #ifndef traceENTER_xTimerGenericCommandFromTask
  1168. #define traceENTER_xTimerGenericCommandFromTask( xTimer, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait )
  1169. #endif
  1170. #ifndef traceRETURN_xTimerGenericCommandFromTask
  1171. #define traceRETURN_xTimerGenericCommandFromTask( xReturn )
  1172. #endif
  1173. #ifndef traceENTER_xTimerGenericCommandFromISR
  1174. #define traceENTER_xTimerGenericCommandFromISR( xTimer, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait )
  1175. #endif
  1176. #ifndef traceRETURN_xTimerGenericCommandFromISR
  1177. #define traceRETURN_xTimerGenericCommandFromISR( xReturn )
  1178. #endif
  1179. #ifndef traceENTER_xTimerGetTimerDaemonTaskHandle
  1180. #define traceENTER_xTimerGetTimerDaemonTaskHandle()
  1181. #endif
  1182. #ifndef traceRETURN_xTimerGetTimerDaemonTaskHandle
  1183. #define traceRETURN_xTimerGetTimerDaemonTaskHandle( xTimerTaskHandle )
  1184. #endif
  1185. #ifndef traceENTER_xTimerGetPeriod
  1186. #define traceENTER_xTimerGetPeriod( xTimer )
  1187. #endif
  1188. #ifndef traceRETURN_xTimerGetPeriod
  1189. #define traceRETURN_xTimerGetPeriod( xTimerPeriodInTicks )
  1190. #endif
  1191. #ifndef traceENTER_vTimerSetReloadMode
  1192. #define traceENTER_vTimerSetReloadMode( xTimer, xAutoReload )
  1193. #endif
  1194. #ifndef traceRETURN_vTimerSetReloadMode
  1195. #define traceRETURN_vTimerSetReloadMode()
  1196. #endif
  1197. #ifndef traceENTER_xTimerGetReloadMode
  1198. #define traceENTER_xTimerGetReloadMode( xTimer )
  1199. #endif
  1200. #ifndef traceRETURN_xTimerGetReloadMode
  1201. #define traceRETURN_xTimerGetReloadMode( xReturn )
  1202. #endif
  1203. #ifndef traceENTER_uxTimerGetReloadMode
  1204. #define traceENTER_uxTimerGetReloadMode( xTimer )
  1205. #endif
  1206. #ifndef traceRETURN_uxTimerGetReloadMode
  1207. #define traceRETURN_uxTimerGetReloadMode( uxReturn )
  1208. #endif
  1209. #ifndef traceENTER_xTimerGetExpiryTime
  1210. #define traceENTER_xTimerGetExpiryTime( xTimer )
  1211. #endif
  1212. #ifndef traceRETURN_xTimerGetExpiryTime
  1213. #define traceRETURN_xTimerGetExpiryTime( xReturn )
  1214. #endif
  1215. #ifndef traceENTER_xTimerGetStaticBuffer
  1216. #define traceENTER_xTimerGetStaticBuffer( xTimer, ppxTimerBuffer )
  1217. #endif
  1218. #ifndef traceRETURN_xTimerGetStaticBuffer
  1219. #define traceRETURN_xTimerGetStaticBuffer( xReturn )
  1220. #endif
  1221. #ifndef traceENTER_pcTimerGetName
  1222. #define traceENTER_pcTimerGetName( xTimer )
  1223. #endif
  1224. #ifndef traceRETURN_pcTimerGetName
  1225. #define traceRETURN_pcTimerGetName( pcTimerName )
  1226. #endif
  1227. #ifndef traceENTER_xTimerIsTimerActive
  1228. #define traceENTER_xTimerIsTimerActive( xTimer )
  1229. #endif
  1230. #ifndef traceRETURN_xTimerIsTimerActive
  1231. #define traceRETURN_xTimerIsTimerActive( xReturn )
  1232. #endif
  1233. #ifndef traceENTER_pvTimerGetTimerID
  1234. #define traceENTER_pvTimerGetTimerID( xTimer )
  1235. #endif
  1236. #ifndef traceRETURN_pvTimerGetTimerID
  1237. #define traceRETURN_pvTimerGetTimerID( pvReturn )
  1238. #endif
  1239. #ifndef traceENTER_vTimerSetTimerID
  1240. #define traceENTER_vTimerSetTimerID( xTimer, pvNewID )
  1241. #endif
  1242. #ifndef traceRETURN_vTimerSetTimerID
  1243. #define traceRETURN_vTimerSetTimerID()
  1244. #endif
  1245. #ifndef traceENTER_xTimerPendFunctionCallFromISR
  1246. #define traceENTER_xTimerPendFunctionCallFromISR( xFunctionToPend, pvParameter1, ulParameter2, pxHigherPriorityTaskWoken )
  1247. #endif
  1248. #ifndef traceRETURN_xTimerPendFunctionCallFromISR
  1249. #define traceRETURN_xTimerPendFunctionCallFromISR( xReturn )
  1250. #endif
  1251. #ifndef traceENTER_xTimerPendFunctionCall
  1252. #define traceENTER_xTimerPendFunctionCall( xFunctionToPend, pvParameter1, ulParameter2, xTicksToWait )
  1253. #endif
  1254. #ifndef traceRETURN_xTimerPendFunctionCall
  1255. #define traceRETURN_xTimerPendFunctionCall( xReturn )
  1256. #endif
  1257. #ifndef traceENTER_uxTimerGetTimerNumber
  1258. #define traceENTER_uxTimerGetTimerNumber( xTimer )
  1259. #endif
  1260. #ifndef traceRETURN_uxTimerGetTimerNumber
  1261. #define traceRETURN_uxTimerGetTimerNumber( uxTimerNumber )
  1262. #endif
  1263. #ifndef traceENTER_vTimerSetTimerNumber
  1264. #define traceENTER_vTimerSetTimerNumber( xTimer, uxTimerNumber )
  1265. #endif
  1266. #ifndef traceRETURN_vTimerSetTimerNumber
  1267. #define traceRETURN_vTimerSetTimerNumber()
  1268. #endif
  1269. #ifndef traceENTER_xTaskCreateStatic
  1270. #define traceENTER_xTaskCreateStatic( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, puxStackBuffer, pxTaskBuffer )
  1271. #endif
  1272. #ifndef traceRETURN_xTaskCreateStatic
  1273. #define traceRETURN_xTaskCreateStatic( xReturn )
  1274. #endif
  1275. #ifndef traceENTER_xTaskCreateStaticAffinitySet
  1276. #define traceENTER_xTaskCreateStaticAffinitySet( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, puxStackBuffer, pxTaskBuffer, uxCoreAffinityMask )
  1277. #endif
  1278. #ifndef traceRETURN_xTaskCreateStaticAffinitySet
  1279. #define traceRETURN_xTaskCreateStaticAffinitySet( xReturn )
  1280. #endif
  1281. #ifndef traceENTER_xTaskCreateRestrictedStatic
  1282. #define traceENTER_xTaskCreateRestrictedStatic( pxTaskDefinition, pxCreatedTask )
  1283. #endif
  1284. #ifndef traceRETURN_xTaskCreateRestrictedStatic
  1285. #define traceRETURN_xTaskCreateRestrictedStatic( xReturn )
  1286. #endif
  1287. #ifndef traceENTER_xTaskCreateRestrictedStaticAffinitySet
  1288. #define traceENTER_xTaskCreateRestrictedStaticAffinitySet( pxTaskDefinition, uxCoreAffinityMask, pxCreatedTask )
  1289. #endif
  1290. #ifndef traceRETURN_xTaskCreateRestrictedStaticAffinitySet
  1291. #define traceRETURN_xTaskCreateRestrictedStaticAffinitySet( xReturn )
  1292. #endif
  1293. #ifndef traceENTER_xTaskCreateRestricted
  1294. #define traceENTER_xTaskCreateRestricted( pxTaskDefinition, pxCreatedTask )
  1295. #endif
  1296. #ifndef traceRETURN_xTaskCreateRestricted
  1297. #define traceRETURN_xTaskCreateRestricted( xReturn )
  1298. #endif
  1299. #ifndef traceENTER_xTaskCreateRestrictedAffinitySet
  1300. #define traceENTER_xTaskCreateRestrictedAffinitySet( pxTaskDefinition, uxCoreAffinityMask, pxCreatedTask )
  1301. #endif
  1302. #ifndef traceRETURN_xTaskCreateRestrictedAffinitySet
  1303. #define traceRETURN_xTaskCreateRestrictedAffinitySet( xReturn )
  1304. #endif
  1305. #ifndef traceENTER_xTaskCreate
  1306. #define traceENTER_xTaskCreate( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, pxCreatedTask )
  1307. #endif
  1308. #ifndef traceRETURN_xTaskCreate
  1309. #define traceRETURN_xTaskCreate( xReturn )
  1310. #endif
  1311. #ifndef traceENTER_xTaskCreateAffinitySet
  1312. #define traceENTER_xTaskCreateAffinitySet( pxTaskCode, pcName, uxStackDepth, pvParameters, uxPriority, uxCoreAffinityMask, pxCreatedTask )
  1313. #endif
  1314. #ifndef traceRETURN_xTaskCreateAffinitySet
  1315. #define traceRETURN_xTaskCreateAffinitySet( xReturn )
  1316. #endif
  1317. #ifndef traceENTER_vTaskDelete
  1318. #define traceENTER_vTaskDelete( xTaskToDelete )
  1319. #endif
  1320. #ifndef traceRETURN_vTaskDelete
  1321. #define traceRETURN_vTaskDelete()
  1322. #endif
  1323. #ifndef traceENTER_xTaskDelayUntil
  1324. #define traceENTER_xTaskDelayUntil( pxPreviousWakeTime, xTimeIncrement )
  1325. #endif
  1326. #ifndef traceRETURN_xTaskDelayUntil
  1327. #define traceRETURN_xTaskDelayUntil( xShouldDelay )
  1328. #endif
  1329. #ifndef traceENTER_vTaskDelay
  1330. #define traceENTER_vTaskDelay( xTicksToDelay )
  1331. #endif
  1332. #ifndef traceRETURN_vTaskDelay
  1333. #define traceRETURN_vTaskDelay()
  1334. #endif
  1335. #ifndef traceENTER_eTaskGetState
  1336. #define traceENTER_eTaskGetState( xTask )
  1337. #endif
  1338. #ifndef traceRETURN_eTaskGetState
  1339. #define traceRETURN_eTaskGetState( eReturn )
  1340. #endif
  1341. #ifndef traceENTER_uxTaskPriorityGet
  1342. #define traceENTER_uxTaskPriorityGet( xTask )
  1343. #endif
  1344. #ifndef traceRETURN_uxTaskPriorityGet
  1345. #define traceRETURN_uxTaskPriorityGet( uxReturn )
  1346. #endif
  1347. #ifndef traceENTER_uxTaskPriorityGetFromISR
  1348. #define traceENTER_uxTaskPriorityGetFromISR( xTask )
  1349. #endif
  1350. #ifndef traceRETURN_uxTaskPriorityGetFromISR
  1351. #define traceRETURN_uxTaskPriorityGetFromISR( uxReturn )
  1352. #endif
  1353. #ifndef traceENTER_uxTaskBasePriorityGet
  1354. #define traceENTER_uxTaskBasePriorityGet( xTask )
  1355. #endif
  1356. #ifndef traceRETURN_uxTaskBasePriorityGet
  1357. #define traceRETURN_uxTaskBasePriorityGet( uxReturn )
  1358. #endif
  1359. #ifndef traceENTER_uxTaskBasePriorityGetFromISR
  1360. #define traceENTER_uxTaskBasePriorityGetFromISR( xTask )
  1361. #endif
  1362. #ifndef traceRETURN_uxTaskBasePriorityGetFromISR
  1363. #define traceRETURN_uxTaskBasePriorityGetFromISR( uxReturn )
  1364. #endif
  1365. #ifndef traceENTER_vTaskPrioritySet
  1366. #define traceENTER_vTaskPrioritySet( xTask, uxNewPriority )
  1367. #endif
  1368. #ifndef traceRETURN_vTaskPrioritySet
  1369. #define traceRETURN_vTaskPrioritySet()
  1370. #endif
  1371. #ifndef traceENTER_vTaskCoreAffinitySet
  1372. #define traceENTER_vTaskCoreAffinitySet( xTask, uxCoreAffinityMask )
  1373. #endif
  1374. #ifndef traceRETURN_vTaskCoreAffinitySet
  1375. #define traceRETURN_vTaskCoreAffinitySet()
  1376. #endif
  1377. #ifndef traceENTER_vTaskCoreAffinityGet
  1378. #define traceENTER_vTaskCoreAffinityGet( xTask )
  1379. #endif
  1380. #ifndef traceRETURN_vTaskCoreAffinityGet
  1381. #define traceRETURN_vTaskCoreAffinityGet( uxCoreAffinityMask )
  1382. #endif
  1383. #ifndef traceENTER_vTaskPreemptionDisable
  1384. #define traceENTER_vTaskPreemptionDisable( xTask )
  1385. #endif
  1386. #ifndef traceRETURN_vTaskPreemptionDisable
  1387. #define traceRETURN_vTaskPreemptionDisable()
  1388. #endif
  1389. #ifndef traceENTER_vTaskPreemptionEnable
  1390. #define traceENTER_vTaskPreemptionEnable( xTask )
  1391. #endif
  1392. #ifndef traceRETURN_vTaskPreemptionEnable
  1393. #define traceRETURN_vTaskPreemptionEnable()
  1394. #endif
  1395. #ifndef traceENTER_vTaskSuspend
  1396. #define traceENTER_vTaskSuspend( xTaskToSuspend )
  1397. #endif
  1398. #ifndef traceRETURN_vTaskSuspend
  1399. #define traceRETURN_vTaskSuspend()
  1400. #endif
  1401. #ifndef traceENTER_vTaskResume
  1402. #define traceENTER_vTaskResume( xTaskToResume )
  1403. #endif
  1404. #ifndef traceRETURN_vTaskResume
  1405. #define traceRETURN_vTaskResume()
  1406. #endif
  1407. #ifndef traceENTER_xTaskResumeFromISR
  1408. #define traceENTER_xTaskResumeFromISR( xTaskToResume )
  1409. #endif
  1410. #ifndef traceRETURN_xTaskResumeFromISR
  1411. #define traceRETURN_xTaskResumeFromISR( xYieldRequired )
  1412. #endif
  1413. #ifndef traceENTER_vTaskStartScheduler
  1414. #define traceENTER_vTaskStartScheduler()
  1415. #endif
  1416. #ifndef traceRETURN_vTaskStartScheduler
  1417. #define traceRETURN_vTaskStartScheduler()
  1418. #endif
  1419. #ifndef traceENTER_vTaskEndScheduler
  1420. #define traceENTER_vTaskEndScheduler()
  1421. #endif
  1422. #ifndef traceRETURN_vTaskEndScheduler
  1423. #define traceRETURN_vTaskEndScheduler()
  1424. #endif
  1425. #ifndef traceENTER_vTaskSuspendAll
  1426. #define traceENTER_vTaskSuspendAll()
  1427. #endif
  1428. #ifndef traceRETURN_vTaskSuspendAll
  1429. #define traceRETURN_vTaskSuspendAll()
  1430. #endif
  1431. #ifndef traceENTER_xTaskResumeAll
  1432. #define traceENTER_xTaskResumeAll()
  1433. #endif
  1434. #ifndef traceRETURN_xTaskResumeAll
  1435. #define traceRETURN_xTaskResumeAll( xAlreadyYielded )
  1436. #endif
  1437. #ifndef traceENTER_xTaskGetTickCount
  1438. #define traceENTER_xTaskGetTickCount()
  1439. #endif
  1440. #ifndef traceRETURN_xTaskGetTickCount
  1441. #define traceRETURN_xTaskGetTickCount( xTicks )
  1442. #endif
  1443. #ifndef traceENTER_xTaskGetTickCountFromISR
  1444. #define traceENTER_xTaskGetTickCountFromISR()
  1445. #endif
  1446. #ifndef traceRETURN_xTaskGetTickCountFromISR
  1447. #define traceRETURN_xTaskGetTickCountFromISR( xReturn )
  1448. #endif
  1449. #ifndef traceENTER_uxTaskGetNumberOfTasks
  1450. #define traceENTER_uxTaskGetNumberOfTasks()
  1451. #endif
  1452. #ifndef traceRETURN_uxTaskGetNumberOfTasks
  1453. #define traceRETURN_uxTaskGetNumberOfTasks( uxCurrentNumberOfTasks )
  1454. #endif
  1455. #ifndef traceENTER_pcTaskGetName
  1456. #define traceENTER_pcTaskGetName( xTaskToQuery )
  1457. #endif
  1458. #ifndef traceRETURN_pcTaskGetName
  1459. #define traceRETURN_pcTaskGetName( pcTaskName )
  1460. #endif
  1461. #ifndef traceENTER_xTaskGetHandle
  1462. #define traceENTER_xTaskGetHandle( pcNameToQuery )
  1463. #endif
  1464. #ifndef traceRETURN_xTaskGetHandle
  1465. #define traceRETURN_xTaskGetHandle( pxTCB )
  1466. #endif
  1467. #ifndef traceENTER_xTaskGetStaticBuffers
  1468. #define traceENTER_xTaskGetStaticBuffers( xTask, ppuxStackBuffer, ppxTaskBuffer )
  1469. #endif
  1470. #ifndef traceRETURN_xTaskGetStaticBuffers
  1471. #define traceRETURN_xTaskGetStaticBuffers( xReturn )
  1472. #endif
  1473. #ifndef traceENTER_uxTaskGetSystemState
  1474. #define traceENTER_uxTaskGetSystemState( pxTaskStatusArray, uxArraySize, pulTotalRunTime )
  1475. #endif
  1476. #ifndef traceRETURN_uxTaskGetSystemState
  1477. #define traceRETURN_uxTaskGetSystemState( uxTask )
  1478. #endif
  1479. #if ( configNUMBER_OF_CORES == 1 )
  1480. #ifndef traceENTER_xTaskGetIdleTaskHandle
  1481. #define traceENTER_xTaskGetIdleTaskHandle()
  1482. #endif
  1483. #endif
  1484. #if ( configNUMBER_OF_CORES == 1 )
  1485. #ifndef traceRETURN_xTaskGetIdleTaskHandle
  1486. #define traceRETURN_xTaskGetIdleTaskHandle( xIdleTaskHandle )
  1487. #endif
  1488. #endif
  1489. #ifndef traceENTER_xTaskGetIdleTaskHandleForCore
  1490. #define traceENTER_xTaskGetIdleTaskHandleForCore( xCoreID )
  1491. #endif
  1492. #ifndef traceRETURN_xTaskGetIdleTaskHandleForCore
  1493. #define traceRETURN_xTaskGetIdleTaskHandleForCore( xIdleTaskHandle )
  1494. #endif
  1495. #ifndef traceENTER_vTaskStepTick
  1496. #define traceENTER_vTaskStepTick( xTicksToJump )
  1497. #endif
  1498. #ifndef traceRETURN_vTaskStepTick
  1499. #define traceRETURN_vTaskStepTick()
  1500. #endif
  1501. #ifndef traceENTER_xTaskCatchUpTicks
  1502. #define traceENTER_xTaskCatchUpTicks( xTicksToCatchUp )
  1503. #endif
  1504. #ifndef traceRETURN_xTaskCatchUpTicks
  1505. #define traceRETURN_xTaskCatchUpTicks( xYieldOccurred )
  1506. #endif
  1507. #ifndef traceENTER_xTaskAbortDelay
  1508. #define traceENTER_xTaskAbortDelay( xTask )
  1509. #endif
  1510. #ifndef traceRETURN_xTaskAbortDelay
  1511. #define traceRETURN_xTaskAbortDelay( xReturn )
  1512. #endif
  1513. #ifndef traceENTER_xTaskIncrementTick
  1514. #define traceENTER_xTaskIncrementTick()
  1515. #endif
  1516. #ifndef traceRETURN_xTaskIncrementTick
  1517. #define traceRETURN_xTaskIncrementTick( xSwitchRequired )
  1518. #endif
  1519. #ifndef traceENTER_vTaskSetApplicationTaskTag
  1520. #define traceENTER_vTaskSetApplicationTaskTag( xTask, pxHookFunction )
  1521. #endif
  1522. #ifndef traceRETURN_vTaskSetApplicationTaskTag
  1523. #define traceRETURN_vTaskSetApplicationTaskTag()
  1524. #endif
  1525. #ifndef traceENTER_xTaskGetApplicationTaskTag
  1526. #define traceENTER_xTaskGetApplicationTaskTag( xTask )
  1527. #endif
  1528. #ifndef traceRETURN_xTaskGetApplicationTaskTag
  1529. #define traceRETURN_xTaskGetApplicationTaskTag( xReturn )
  1530. #endif
  1531. #ifndef traceENTER_xTaskGetApplicationTaskTagFromISR
  1532. #define traceENTER_xTaskGetApplicationTaskTagFromISR( xTask )
  1533. #endif
  1534. #ifndef traceRETURN_xTaskGetApplicationTaskTagFromISR
  1535. #define traceRETURN_xTaskGetApplicationTaskTagFromISR( xReturn )
  1536. #endif
  1537. #ifndef traceENTER_xTaskCallApplicationTaskHook
  1538. #define traceENTER_xTaskCallApplicationTaskHook( xTask, pvParameter )
  1539. #endif
  1540. #ifndef traceRETURN_xTaskCallApplicationTaskHook
  1541. #define traceRETURN_xTaskCallApplicationTaskHook( xReturn )
  1542. #endif
  1543. #ifndef traceENTER_vTaskSwitchContext
  1544. #define traceENTER_vTaskSwitchContext()
  1545. #endif
  1546. #ifndef traceRETURN_vTaskSwitchContext
  1547. #define traceRETURN_vTaskSwitchContext()
  1548. #endif
  1549. #ifndef traceENTER_vTaskPlaceOnEventList
  1550. #define traceENTER_vTaskPlaceOnEventList( pxEventList, xTicksToWait )
  1551. #endif
  1552. #ifndef traceRETURN_vTaskPlaceOnEventList
  1553. #define traceRETURN_vTaskPlaceOnEventList()
  1554. #endif
  1555. #ifndef traceENTER_vTaskPlaceOnUnorderedEventList
  1556. #define traceENTER_vTaskPlaceOnUnorderedEventList( pxEventList, xItemValue, xTicksToWait )
  1557. #endif
  1558. #ifndef traceRETURN_vTaskPlaceOnUnorderedEventList
  1559. #define traceRETURN_vTaskPlaceOnUnorderedEventList()
  1560. #endif
  1561. #ifndef traceENTER_vTaskPlaceOnEventListRestricted
  1562. #define traceENTER_vTaskPlaceOnEventListRestricted( pxEventList, xTicksToWait, xWaitIndefinitely )
  1563. #endif
  1564. #ifndef traceRETURN_vTaskPlaceOnEventListRestricted
  1565. #define traceRETURN_vTaskPlaceOnEventListRestricted()
  1566. #endif
  1567. #ifndef traceENTER_xTaskRemoveFromEventList
  1568. #define traceENTER_xTaskRemoveFromEventList( pxEventList )
  1569. #endif
  1570. #ifndef traceRETURN_xTaskRemoveFromEventList
  1571. #define traceRETURN_xTaskRemoveFromEventList( xReturn )
  1572. #endif
  1573. #ifndef traceENTER_vTaskRemoveFromUnorderedEventList
  1574. #define traceENTER_vTaskRemoveFromUnorderedEventList( pxEventListItem, xItemValue )
  1575. #endif
  1576. #ifndef traceRETURN_vTaskRemoveFromUnorderedEventList
  1577. #define traceRETURN_vTaskRemoveFromUnorderedEventList()
  1578. #endif
  1579. #ifndef traceENTER_vTaskSetTimeOutState
  1580. #define traceENTER_vTaskSetTimeOutState( pxTimeOut )
  1581. #endif
  1582. #ifndef traceRETURN_vTaskSetTimeOutState
  1583. #define traceRETURN_vTaskSetTimeOutState()
  1584. #endif
  1585. #ifndef traceENTER_vTaskInternalSetTimeOutState
  1586. #define traceENTER_vTaskInternalSetTimeOutState( pxTimeOut )
  1587. #endif
  1588. #ifndef traceRETURN_vTaskInternalSetTimeOutState
  1589. #define traceRETURN_vTaskInternalSetTimeOutState()
  1590. #endif
  1591. #ifndef traceENTER_xTaskCheckForTimeOut
  1592. #define traceENTER_xTaskCheckForTimeOut( pxTimeOut, pxTicksToWait )
  1593. #endif
  1594. #ifndef traceRETURN_xTaskCheckForTimeOut
  1595. #define traceRETURN_xTaskCheckForTimeOut( xReturn )
  1596. #endif
  1597. #ifndef traceENTER_vTaskMissedYield
  1598. #define traceENTER_vTaskMissedYield()
  1599. #endif
  1600. #ifndef traceRETURN_vTaskMissedYield
  1601. #define traceRETURN_vTaskMissedYield()
  1602. #endif
  1603. #ifndef traceENTER_uxTaskGetTaskNumber
  1604. #define traceENTER_uxTaskGetTaskNumber( xTask )
  1605. #endif
  1606. #ifndef traceRETURN_uxTaskGetTaskNumber
  1607. #define traceRETURN_uxTaskGetTaskNumber( uxReturn )
  1608. #endif
  1609. #ifndef traceENTER_vTaskSetTaskNumber
  1610. #define traceENTER_vTaskSetTaskNumber( xTask, uxHandle )
  1611. #endif
  1612. #ifndef traceRETURN_vTaskSetTaskNumber
  1613. #define traceRETURN_vTaskSetTaskNumber()
  1614. #endif
  1615. #ifndef traceENTER_eTaskConfirmSleepModeStatus
  1616. #define traceENTER_eTaskConfirmSleepModeStatus()
  1617. #endif
  1618. #ifndef traceRETURN_eTaskConfirmSleepModeStatus
  1619. #define traceRETURN_eTaskConfirmSleepModeStatus( eReturn )
  1620. #endif
  1621. #ifndef traceENTER_vTaskSetThreadLocalStoragePointer
  1622. #define traceENTER_vTaskSetThreadLocalStoragePointer( xTaskToSet, xIndex, pvValue )
  1623. #endif
  1624. #ifndef traceRETURN_vTaskSetThreadLocalStoragePointer
  1625. #define traceRETURN_vTaskSetThreadLocalStoragePointer()
  1626. #endif
  1627. #ifndef traceENTER_pvTaskGetThreadLocalStoragePointer
  1628. #define traceENTER_pvTaskGetThreadLocalStoragePointer( xTaskToQuery, xIndex )
  1629. #endif
  1630. #ifndef traceRETURN_pvTaskGetThreadLocalStoragePointer
  1631. #define traceRETURN_pvTaskGetThreadLocalStoragePointer( pvReturn )
  1632. #endif
  1633. #ifndef traceENTER_vTaskAllocateMPURegions
  1634. #define traceENTER_vTaskAllocateMPURegions( xTaskToModify, pxRegions )
  1635. #endif
  1636. #ifndef traceRETURN_vTaskAllocateMPURegions
  1637. #define traceRETURN_vTaskAllocateMPURegions()
  1638. #endif
  1639. #ifndef traceENTER_vTaskGetInfo
  1640. #define traceENTER_vTaskGetInfo( xTask, pxTaskStatus, xGetFreeStackSpace, eState )
  1641. #endif
  1642. #ifndef traceRETURN_vTaskGetInfo
  1643. #define traceRETURN_vTaskGetInfo()
  1644. #endif
  1645. #ifndef traceENTER_uxTaskGetStackHighWaterMark2
  1646. #define traceENTER_uxTaskGetStackHighWaterMark2( xTask )
  1647. #endif
  1648. #ifndef traceRETURN_uxTaskGetStackHighWaterMark2
  1649. #define traceRETURN_uxTaskGetStackHighWaterMark2( uxReturn )
  1650. #endif
  1651. #ifndef traceENTER_uxTaskGetStackHighWaterMark
  1652. #define traceENTER_uxTaskGetStackHighWaterMark( xTask )
  1653. #endif
  1654. #ifndef traceRETURN_uxTaskGetStackHighWaterMark
  1655. #define traceRETURN_uxTaskGetStackHighWaterMark( uxReturn )
  1656. #endif
  1657. #ifndef traceENTER_xTaskGetCurrentTaskHandle
  1658. #define traceENTER_xTaskGetCurrentTaskHandle()
  1659. #endif
  1660. #ifndef traceRETURN_xTaskGetCurrentTaskHandle
  1661. #define traceRETURN_xTaskGetCurrentTaskHandle( xReturn )
  1662. #endif
  1663. #ifndef traceENTER_xTaskGetCurrentTaskHandleForCore
  1664. #define traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID )
  1665. #endif
  1666. #ifndef traceRETURN_xTaskGetCurrentTaskHandleForCore
  1667. #define traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn )
  1668. #endif
  1669. #ifndef traceENTER_xTaskGetSchedulerState
  1670. #define traceENTER_xTaskGetSchedulerState()
  1671. #endif
  1672. #ifndef traceRETURN_xTaskGetSchedulerState
  1673. #define traceRETURN_xTaskGetSchedulerState( xReturn )
  1674. #endif
  1675. #ifndef traceENTER_xTaskPriorityInherit
  1676. #define traceENTER_xTaskPriorityInherit( pxMutexHolder )
  1677. #endif
  1678. #ifndef traceRETURN_xTaskPriorityInherit
  1679. #define traceRETURN_xTaskPriorityInherit( xReturn )
  1680. #endif
  1681. #ifndef traceENTER_xTaskPriorityDisinherit
  1682. #define traceENTER_xTaskPriorityDisinherit( pxMutexHolder )
  1683. #endif
  1684. #ifndef traceRETURN_xTaskPriorityDisinherit
  1685. #define traceRETURN_xTaskPriorityDisinherit( xReturn )
  1686. #endif
  1687. #ifndef traceENTER_vTaskPriorityDisinheritAfterTimeout
  1688. #define traceENTER_vTaskPriorityDisinheritAfterTimeout( pxMutexHolder, uxHighestPriorityWaitingTask )
  1689. #endif
  1690. #ifndef traceRETURN_vTaskPriorityDisinheritAfterTimeout
  1691. #define traceRETURN_vTaskPriorityDisinheritAfterTimeout()
  1692. #endif
  1693. #ifndef traceENTER_vTaskYieldWithinAPI
  1694. #define traceENTER_vTaskYieldWithinAPI()
  1695. #endif
  1696. #ifndef traceRETURN_vTaskYieldWithinAPI
  1697. #define traceRETURN_vTaskYieldWithinAPI()
  1698. #endif
  1699. #ifndef traceENTER_vTaskEnterCritical
  1700. #define traceENTER_vTaskEnterCritical()
  1701. #endif
  1702. #ifndef traceRETURN_vTaskEnterCritical
  1703. #define traceRETURN_vTaskEnterCritical()
  1704. #endif
  1705. #ifndef traceENTER_vTaskEnterCriticalFromISR
  1706. #define traceENTER_vTaskEnterCriticalFromISR()
  1707. #endif
  1708. #ifndef traceRETURN_vTaskEnterCriticalFromISR
  1709. #define traceRETURN_vTaskEnterCriticalFromISR( uxSavedInterruptStatus )
  1710. #endif
  1711. #ifndef traceENTER_vTaskExitCritical
  1712. #define traceENTER_vTaskExitCritical()
  1713. #endif
  1714. #ifndef traceRETURN_vTaskExitCritical
  1715. #define traceRETURN_vTaskExitCritical()
  1716. #endif
  1717. #ifndef traceENTER_vTaskExitCriticalFromISR
  1718. #define traceENTER_vTaskExitCriticalFromISR( uxSavedInterruptStatus )
  1719. #endif
  1720. #ifndef traceRETURN_vTaskExitCriticalFromISR
  1721. #define traceRETURN_vTaskExitCriticalFromISR()
  1722. #endif
  1723. #ifndef traceENTER_vTaskListTasks
  1724. #define traceENTER_vTaskListTasks( pcWriteBuffer, uxBufferLength )
  1725. #endif
  1726. #ifndef traceRETURN_vTaskListTasks
  1727. #define traceRETURN_vTaskListTasks()
  1728. #endif
  1729. #ifndef traceENTER_vTaskGetRunTimeStatistics
  1730. #define traceENTER_vTaskGetRunTimeStatistics( pcWriteBuffer, uxBufferLength )
  1731. #endif
  1732. #ifndef traceRETURN_vTaskGetRunTimeStatistics
  1733. #define traceRETURN_vTaskGetRunTimeStatistics()
  1734. #endif
  1735. #ifndef traceENTER_uxTaskResetEventItemValue
  1736. #define traceENTER_uxTaskResetEventItemValue()
  1737. #endif
  1738. #ifndef traceRETURN_uxTaskResetEventItemValue
  1739. #define traceRETURN_uxTaskResetEventItemValue( uxReturn )
  1740. #endif
  1741. #ifndef traceENTER_pvTaskIncrementMutexHeldCount
  1742. #define traceENTER_pvTaskIncrementMutexHeldCount()
  1743. #endif
  1744. #ifndef traceRETURN_pvTaskIncrementMutexHeldCount
  1745. #define traceRETURN_pvTaskIncrementMutexHeldCount( pxTCB )
  1746. #endif
  1747. #ifndef traceENTER_ulTaskGenericNotifyTake
  1748. #define traceENTER_ulTaskGenericNotifyTake( uxIndexToWaitOn, xClearCountOnExit, xTicksToWait )
  1749. #endif
  1750. #ifndef traceRETURN_ulTaskGenericNotifyTake
  1751. #define traceRETURN_ulTaskGenericNotifyTake( ulReturn )
  1752. #endif
  1753. #ifndef traceENTER_xTaskGenericNotifyWait
  1754. #define traceENTER_xTaskGenericNotifyWait( uxIndexToWaitOn, ulBitsToClearOnEntry, ulBitsToClearOnExit, pulNotificationValue, xTicksToWait )
  1755. #endif
  1756. #ifndef traceRETURN_xTaskGenericNotifyWait
  1757. #define traceRETURN_xTaskGenericNotifyWait( xReturn )
  1758. #endif
  1759. #ifndef traceENTER_xTaskGenericNotify
  1760. #define traceENTER_xTaskGenericNotify( xTaskToNotify, uxIndexToNotify, ulValue, eAction, pulPreviousNotificationValue )
  1761. #endif
  1762. #ifndef traceRETURN_xTaskGenericNotify
  1763. #define traceRETURN_xTaskGenericNotify( xReturn )
  1764. #endif
  1765. #ifndef traceENTER_xTaskGenericNotifyFromISR
  1766. #define traceENTER_xTaskGenericNotifyFromISR( xTaskToNotify, uxIndexToNotify, ulValue, eAction, pulPreviousNotificationValue, pxHigherPriorityTaskWoken )
  1767. #endif
  1768. #ifndef traceRETURN_xTaskGenericNotifyFromISR
  1769. #define traceRETURN_xTaskGenericNotifyFromISR( xReturn )
  1770. #endif
  1771. #ifndef traceENTER_vTaskGenericNotifyGiveFromISR
  1772. #define traceENTER_vTaskGenericNotifyGiveFromISR( xTaskToNotify, uxIndexToNotify, pxHigherPriorityTaskWoken )
  1773. #endif
  1774. #ifndef traceRETURN_vTaskGenericNotifyGiveFromISR
  1775. #define traceRETURN_vTaskGenericNotifyGiveFromISR()
  1776. #endif
  1777. #ifndef traceENTER_xTaskGenericNotifyStateClear
  1778. #define traceENTER_xTaskGenericNotifyStateClear( xTask, uxIndexToClear )
  1779. #endif
  1780. #ifndef traceRETURN_xTaskGenericNotifyStateClear
  1781. #define traceRETURN_xTaskGenericNotifyStateClear( xReturn )
  1782. #endif
  1783. #ifndef traceENTER_ulTaskGenericNotifyValueClear
  1784. #define traceENTER_ulTaskGenericNotifyValueClear( xTask, uxIndexToClear, ulBitsToClear )
  1785. #endif
  1786. #ifndef traceRETURN_ulTaskGenericNotifyValueClear
  1787. #define traceRETURN_ulTaskGenericNotifyValueClear( ulReturn )
  1788. #endif
  1789. #ifndef traceENTER_ulTaskGetRunTimeCounter
  1790. #define traceENTER_ulTaskGetRunTimeCounter( xTask )
  1791. #endif
  1792. #ifndef traceRETURN_ulTaskGetRunTimeCounter
  1793. #define traceRETURN_ulTaskGetRunTimeCounter( ulRunTimeCounter )
  1794. #endif
  1795. #ifndef traceENTER_ulTaskGetRunTimePercent
  1796. #define traceENTER_ulTaskGetRunTimePercent( xTask )
  1797. #endif
  1798. #ifndef traceRETURN_ulTaskGetRunTimePercent
  1799. #define traceRETURN_ulTaskGetRunTimePercent( ulReturn )
  1800. #endif
  1801. #ifndef traceENTER_ulTaskGetIdleRunTimeCounter
  1802. #define traceENTER_ulTaskGetIdleRunTimeCounter()
  1803. #endif
  1804. #ifndef traceRETURN_ulTaskGetIdleRunTimeCounter
  1805. #define traceRETURN_ulTaskGetIdleRunTimeCounter( ulReturn )
  1806. #endif
  1807. #ifndef traceENTER_ulTaskGetIdleRunTimePercent
  1808. #define traceENTER_ulTaskGetIdleRunTimePercent()
  1809. #endif
  1810. #ifndef traceRETURN_ulTaskGetIdleRunTimePercent
  1811. #define traceRETURN_ulTaskGetIdleRunTimePercent( ulReturn )
  1812. #endif
  1813. #ifndef traceENTER_xTaskGetMPUSettings
  1814. #define traceENTER_xTaskGetMPUSettings( xTask )
  1815. #endif
  1816. #ifndef traceRETURN_xTaskGetMPUSettings
  1817. #define traceRETURN_xTaskGetMPUSettings( xMPUSettings )
  1818. #endif
  1819. #ifndef traceENTER_xStreamBufferGenericCreate
  1820. #define traceENTER_xStreamBufferGenericCreate( xBufferSizeBytes, xTriggerLevelBytes, xStreamBufferType, pxSendCompletedCallback, pxReceiveCompletedCallback )
  1821. #endif
  1822. #ifndef traceRETURN_xStreamBufferGenericCreate
  1823. #define traceRETURN_xStreamBufferGenericCreate( pvAllocatedMemory )
  1824. #endif
  1825. #ifndef traceENTER_xStreamBufferGenericCreateStatic
  1826. #define traceENTER_xStreamBufferGenericCreateStatic( xBufferSizeBytes, xTriggerLevelBytes, xStreamBufferType, pucStreamBufferStorageArea, pxStaticStreamBuffer, pxSendCompletedCallback, pxReceiveCompletedCallback )
  1827. #endif
  1828. #ifndef traceRETURN_xStreamBufferGenericCreateStatic
  1829. #define traceRETURN_xStreamBufferGenericCreateStatic( xReturn )
  1830. #endif
  1831. #ifndef traceENTER_xStreamBufferGetStaticBuffers
  1832. #define traceENTER_xStreamBufferGetStaticBuffers( xStreamBuffer, ppucStreamBufferStorageArea, ppxStaticStreamBuffer )
  1833. #endif
  1834. #ifndef traceRETURN_xStreamBufferGetStaticBuffers
  1835. #define traceRETURN_xStreamBufferGetStaticBuffers( xReturn )
  1836. #endif
  1837. #ifndef traceENTER_vStreamBufferDelete
  1838. #define traceENTER_vStreamBufferDelete( xStreamBuffer )
  1839. #endif
  1840. #ifndef traceRETURN_vStreamBufferDelete
  1841. #define traceRETURN_vStreamBufferDelete()
  1842. #endif
  1843. #ifndef traceENTER_xStreamBufferReset
  1844. #define traceENTER_xStreamBufferReset( xStreamBuffer )
  1845. #endif
  1846. #ifndef traceRETURN_xStreamBufferReset
  1847. #define traceRETURN_xStreamBufferReset( xReturn )
  1848. #endif
  1849. #ifndef traceENTER_xStreamBufferResetFromISR
  1850. #define traceENTER_xStreamBufferResetFromISR( xStreamBuffer )
  1851. #endif
  1852. #ifndef traceRETURN_xStreamBufferResetFromISR
  1853. #define traceRETURN_xStreamBufferResetFromISR( xReturn )
  1854. #endif
  1855. #ifndef traceENTER_xStreamBufferSetTriggerLevel
  1856. #define traceENTER_xStreamBufferSetTriggerLevel( xStreamBuffer, xTriggerLevel )
  1857. #endif
  1858. #ifndef traceRETURN_xStreamBufferSetTriggerLevel
  1859. #define traceRETURN_xStreamBufferSetTriggerLevel( xReturn )
  1860. #endif
  1861. #ifndef traceENTER_xStreamBufferSpacesAvailable
  1862. #define traceENTER_xStreamBufferSpacesAvailable( xStreamBuffer )
  1863. #endif
  1864. #ifndef traceRETURN_xStreamBufferSpacesAvailable
  1865. #define traceRETURN_xStreamBufferSpacesAvailable( xSpace )
  1866. #endif
  1867. #ifndef traceENTER_xStreamBufferBytesAvailable
  1868. #define traceENTER_xStreamBufferBytesAvailable( xStreamBuffer )
  1869. #endif
  1870. #ifndef traceRETURN_xStreamBufferBytesAvailable
  1871. #define traceRETURN_xStreamBufferBytesAvailable( xReturn )
  1872. #endif
  1873. #ifndef traceENTER_xStreamBufferSend
  1874. #define traceENTER_xStreamBufferSend( xStreamBuffer, pvTxData, xDataLengthBytes, xTicksToWait )
  1875. #endif
  1876. #ifndef traceRETURN_xStreamBufferSend
  1877. #define traceRETURN_xStreamBufferSend( xReturn )
  1878. #endif
  1879. #ifndef traceENTER_xStreamBufferSendFromISR
  1880. #define traceENTER_xStreamBufferSendFromISR( xStreamBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken )
  1881. #endif
  1882. #ifndef traceRETURN_xStreamBufferSendFromISR
  1883. #define traceRETURN_xStreamBufferSendFromISR( xReturn )
  1884. #endif
  1885. #ifndef traceENTER_xStreamBufferReceive
  1886. #define traceENTER_xStreamBufferReceive( xStreamBuffer, pvRxData, xBufferLengthBytes, xTicksToWait )
  1887. #endif
  1888. #ifndef traceRETURN_xStreamBufferReceive
  1889. #define traceRETURN_xStreamBufferReceive( xReceivedLength )
  1890. #endif
  1891. #ifndef traceENTER_xStreamBufferNextMessageLengthBytes
  1892. #define traceENTER_xStreamBufferNextMessageLengthBytes( xStreamBuffer )
  1893. #endif
  1894. #ifndef traceRETURN_xStreamBufferNextMessageLengthBytes
  1895. #define traceRETURN_xStreamBufferNextMessageLengthBytes( xReturn )
  1896. #endif
  1897. #ifndef traceENTER_xStreamBufferReceiveFromISR
  1898. #define traceENTER_xStreamBufferReceiveFromISR( xStreamBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken )
  1899. #endif
  1900. #ifndef traceRETURN_xStreamBufferReceiveFromISR
  1901. #define traceRETURN_xStreamBufferReceiveFromISR( xReceivedLength )
  1902. #endif
  1903. #ifndef traceENTER_xStreamBufferIsEmpty
  1904. #define traceENTER_xStreamBufferIsEmpty( xStreamBuffer )
  1905. #endif
  1906. #ifndef traceRETURN_xStreamBufferIsEmpty
  1907. #define traceRETURN_xStreamBufferIsEmpty( xReturn )
  1908. #endif
  1909. #ifndef traceENTER_xStreamBufferIsFull
  1910. #define traceENTER_xStreamBufferIsFull( xStreamBuffer )
  1911. #endif
  1912. #ifndef traceRETURN_xStreamBufferIsFull
  1913. #define traceRETURN_xStreamBufferIsFull( xReturn )
  1914. #endif
  1915. #ifndef traceENTER_xStreamBufferSendCompletedFromISR
  1916. #define traceENTER_xStreamBufferSendCompletedFromISR( xStreamBuffer, pxHigherPriorityTaskWoken )
  1917. #endif
  1918. #ifndef traceRETURN_xStreamBufferSendCompletedFromISR
  1919. #define traceRETURN_xStreamBufferSendCompletedFromISR( xReturn )
  1920. #endif
  1921. #ifndef traceENTER_xStreamBufferReceiveCompletedFromISR
  1922. #define traceENTER_xStreamBufferReceiveCompletedFromISR( xStreamBuffer, pxHigherPriorityTaskWoken )
  1923. #endif
  1924. #ifndef traceRETURN_xStreamBufferReceiveCompletedFromISR
  1925. #define traceRETURN_xStreamBufferReceiveCompletedFromISR( xReturn )
  1926. #endif
  1927. #ifndef traceENTER_uxStreamBufferGetStreamBufferNotificationIndex
  1928. #define traceENTER_uxStreamBufferGetStreamBufferNotificationIndex( xStreamBuffer )
  1929. #endif
  1930. #ifndef traceRETURN_uxStreamBufferGetStreamBufferNotificationIndex
  1931. #define traceRETURN_uxStreamBufferGetStreamBufferNotificationIndex( uxNotificationIndex )
  1932. #endif
  1933. #ifndef traceENTER_vStreamBufferSetStreamBufferNotificationIndex
  1934. #define traceENTER_vStreamBufferSetStreamBufferNotificationIndex( xStreamBuffer, uxNotificationIndex )
  1935. #endif
  1936. #ifndef traceRETURN_vStreamBufferSetStreamBufferNotificationIndex
  1937. #define traceRETURN_vStreamBufferSetStreamBufferNotificationIndex()
  1938. #endif
  1939. #ifndef traceENTER_uxStreamBufferGetStreamBufferNumber
  1940. #define traceENTER_uxStreamBufferGetStreamBufferNumber( xStreamBuffer )
  1941. #endif
  1942. #ifndef traceRETURN_uxStreamBufferGetStreamBufferNumber
  1943. #define traceRETURN_uxStreamBufferGetStreamBufferNumber( uxStreamBufferNumber )
  1944. #endif
  1945. #ifndef traceENTER_vStreamBufferSetStreamBufferNumber
  1946. #define traceENTER_vStreamBufferSetStreamBufferNumber( xStreamBuffer, uxStreamBufferNumber )
  1947. #endif
  1948. #ifndef traceRETURN_vStreamBufferSetStreamBufferNumber
  1949. #define traceRETURN_vStreamBufferSetStreamBufferNumber()
  1950. #endif
  1951. #ifndef traceENTER_ucStreamBufferGetStreamBufferType
  1952. #define traceENTER_ucStreamBufferGetStreamBufferType( xStreamBuffer )
  1953. #endif
  1954. #ifndef traceRETURN_ucStreamBufferGetStreamBufferType
  1955. #define traceRETURN_ucStreamBufferGetStreamBufferType( ucStreamBufferType )
  1956. #endif
  1957. #ifndef traceENTER_vListInitialise
  1958. #define traceENTER_vListInitialise( pxList )
  1959. #endif
  1960. #ifndef traceRETURN_vListInitialise
  1961. #define traceRETURN_vListInitialise()
  1962. #endif
  1963. #ifndef traceENTER_vListInitialiseItem
  1964. #define traceENTER_vListInitialiseItem( pxItem )
  1965. #endif
  1966. #ifndef traceRETURN_vListInitialiseItem
  1967. #define traceRETURN_vListInitialiseItem()
  1968. #endif
  1969. #ifndef traceENTER_vListInsertEnd
  1970. #define traceENTER_vListInsertEnd( pxList, pxNewListItem )
  1971. #endif
  1972. #ifndef traceRETURN_vListInsertEnd
  1973. #define traceRETURN_vListInsertEnd()
  1974. #endif
  1975. #ifndef traceENTER_vListInsert
  1976. #define traceENTER_vListInsert( pxList, pxNewListItem )
  1977. #endif
  1978. #ifndef traceRETURN_vListInsert
  1979. #define traceRETURN_vListInsert()
  1980. #endif
  1981. #ifndef traceENTER_uxListRemove
  1982. #define traceENTER_uxListRemove( pxItemToRemove )
  1983. #endif
  1984. #ifndef traceRETURN_uxListRemove
  1985. #define traceRETURN_uxListRemove( uxNumberOfItems )
  1986. #endif
  1987. #ifndef traceENTER_xCoRoutineCreate
  1988. #define traceENTER_xCoRoutineCreate( pxCoRoutineCode, uxPriority, uxIndex )
  1989. #endif
  1990. #ifndef traceRETURN_xCoRoutineCreate
  1991. #define traceRETURN_xCoRoutineCreate( xReturn )
  1992. #endif
  1993. #ifndef traceENTER_vCoRoutineAddToDelayedList
  1994. #define traceENTER_vCoRoutineAddToDelayedList( xTicksToDelay, pxEventList )
  1995. #endif
  1996. #ifndef traceRETURN_vCoRoutineAddToDelayedList
  1997. #define traceRETURN_vCoRoutineAddToDelayedList()
  1998. #endif
  1999. #ifndef traceENTER_vCoRoutineSchedule
  2000. #define traceENTER_vCoRoutineSchedule()
  2001. #endif
  2002. #ifndef traceRETURN_vCoRoutineSchedule
  2003. #define traceRETURN_vCoRoutineSchedule()
  2004. #endif
  2005. #ifndef traceENTER_xCoRoutineRemoveFromEventList
  2006. #define traceENTER_xCoRoutineRemoveFromEventList( pxEventList )
  2007. #endif
  2008. #ifndef traceRETURN_xCoRoutineRemoveFromEventList
  2009. #define traceRETURN_xCoRoutineRemoveFromEventList( xReturn )
  2010. #endif
  2011. #ifndef configGENERATE_RUN_TIME_STATS
  2012. #define configGENERATE_RUN_TIME_STATS 0
  2013. #endif
  2014. #if ( configGENERATE_RUN_TIME_STATS == 1 )
  2015. #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
  2016. #error If configGENERATE_RUN_TIME_STATS is defined then portCONFIGURE_TIMER_FOR_RUN_TIME_STATS must also be defined. portCONFIGURE_TIMER_FOR_RUN_TIME_STATS should call a port layer function to setup a peripheral timer/counter that can then be used as the run time counter time base.
  2017. #endif /* portCONFIGURE_TIMER_FOR_RUN_TIME_STATS */
  2018. #ifndef portGET_RUN_TIME_COUNTER_VALUE
  2019. #ifndef portALT_GET_RUN_TIME_COUNTER_VALUE
  2020. #error If configGENERATE_RUN_TIME_STATS is defined then either portGET_RUN_TIME_COUNTER_VALUE or portALT_GET_RUN_TIME_COUNTER_VALUE must also be defined. See the examples provided and the FreeRTOS web site for more information.
  2021. #endif /* portALT_GET_RUN_TIME_COUNTER_VALUE */
  2022. #endif /* portGET_RUN_TIME_COUNTER_VALUE */
  2023. #endif /* configGENERATE_RUN_TIME_STATS */
  2024. #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
  2025. #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
  2026. #endif
  2027. #ifndef portPRIVILEGE_BIT
  2028. #define portPRIVILEGE_BIT ( ( UBaseType_t ) 0x00 )
  2029. #endif
  2030. #ifndef portYIELD_WITHIN_API
  2031. #define portYIELD_WITHIN_API portYIELD
  2032. #endif
  2033. #ifndef portSUPPRESS_TICKS_AND_SLEEP
  2034. #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime )
  2035. #endif
  2036. #ifndef configEXPECTED_IDLE_TIME_BEFORE_SLEEP
  2037. #define configEXPECTED_IDLE_TIME_BEFORE_SLEEP 2
  2038. #endif
  2039. #if configEXPECTED_IDLE_TIME_BEFORE_SLEEP < 2
  2040. #error configEXPECTED_IDLE_TIME_BEFORE_SLEEP must not be less than 2
  2041. #endif
  2042. #ifndef configUSE_TICKLESS_IDLE
  2043. #define configUSE_TICKLESS_IDLE 0
  2044. #endif
  2045. #ifndef configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING
  2046. #define configPRE_SUPPRESS_TICKS_AND_SLEEP_PROCESSING( x )
  2047. #endif
  2048. #ifndef configPRE_SLEEP_PROCESSING
  2049. #define configPRE_SLEEP_PROCESSING( x )
  2050. #endif
  2051. #ifndef configPOST_SLEEP_PROCESSING
  2052. #define configPOST_SLEEP_PROCESSING( x )
  2053. #endif
  2054. #ifndef configUSE_QUEUE_SETS
  2055. #define configUSE_QUEUE_SETS 0
  2056. #endif
  2057. #ifndef portTASK_USES_FLOATING_POINT
  2058. #define portTASK_USES_FLOATING_POINT()
  2059. #endif
  2060. #ifndef portALLOCATE_SECURE_CONTEXT
  2061. #define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
  2062. #endif
  2063. #ifndef portDONT_DISCARD
  2064. #define portDONT_DISCARD
  2065. #endif
  2066. #ifndef configUSE_TIME_SLICING
  2067. #define configUSE_TIME_SLICING 1
  2068. #endif
  2069. #ifndef configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS
  2070. #define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0
  2071. #endif
  2072. #ifndef configUSE_STATS_FORMATTING_FUNCTIONS
  2073. #define configUSE_STATS_FORMATTING_FUNCTIONS 0
  2074. #endif
  2075. #ifndef portASSERT_IF_INTERRUPT_PRIORITY_INVALID
  2076. #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID()
  2077. #endif
  2078. #ifndef configUSE_TRACE_FACILITY
  2079. #define configUSE_TRACE_FACILITY 0
  2080. #endif
  2081. #ifndef mtCOVERAGE_TEST_MARKER
  2082. #define mtCOVERAGE_TEST_MARKER()
  2083. #endif
  2084. #ifndef mtCOVERAGE_TEST_DELAY
  2085. #define mtCOVERAGE_TEST_DELAY()
  2086. #endif
  2087. #ifndef portASSERT_IF_IN_ISR
  2088. #define portASSERT_IF_IN_ISR()
  2089. #endif
  2090. #ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION
  2091. #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
  2092. #endif
  2093. #ifndef configAPPLICATION_ALLOCATED_HEAP
  2094. #define configAPPLICATION_ALLOCATED_HEAP 0
  2095. #endif
  2096. #ifndef configENABLE_HEAP_PROTECTOR
  2097. #define configENABLE_HEAP_PROTECTOR 0
  2098. #endif
  2099. #ifndef configUSE_TASK_NOTIFICATIONS
  2100. #define configUSE_TASK_NOTIFICATIONS 1
  2101. #endif
  2102. #ifndef configTASK_NOTIFICATION_ARRAY_ENTRIES
  2103. #define configTASK_NOTIFICATION_ARRAY_ENTRIES 1
  2104. #endif
  2105. #if configTASK_NOTIFICATION_ARRAY_ENTRIES < 1
  2106. #error configTASK_NOTIFICATION_ARRAY_ENTRIES must be at least 1
  2107. #endif
  2108. #ifndef configUSE_POSIX_ERRNO
  2109. #define configUSE_POSIX_ERRNO 0
  2110. #endif
  2111. #ifndef configUSE_SB_COMPLETED_CALLBACK
  2112. /* By default per-instance callbacks are not enabled for stream buffer or message buffer. */
  2113. #define configUSE_SB_COMPLETED_CALLBACK 0
  2114. #endif
  2115. #ifndef portTICK_TYPE_IS_ATOMIC
  2116. #define portTICK_TYPE_IS_ATOMIC 0
  2117. #endif
  2118. #ifndef configSUPPORT_STATIC_ALLOCATION
  2119. /* Defaults to 0 for backward compatibility. */
  2120. #define configSUPPORT_STATIC_ALLOCATION 0
  2121. #endif
  2122. #ifndef configKERNEL_PROVIDED_STATIC_MEMORY
  2123. #define configKERNEL_PROVIDED_STATIC_MEMORY 0
  2124. #endif
  2125. #ifndef configSUPPORT_DYNAMIC_ALLOCATION
  2126. /* Defaults to 1 for backward compatibility. */
  2127. #define configSUPPORT_DYNAMIC_ALLOCATION 1
  2128. #endif
  2129. #if ( ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION != 1 ) )
  2130. #error configUSE_STATS_FORMATTING_FUNCTIONS cannot be used without dynamic allocation, but configSUPPORT_DYNAMIC_ALLOCATION is not set to 1.
  2131. #endif
  2132. #if ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 )
  2133. #if ( ( configUSE_TRACE_FACILITY != 1 ) && ( configGENERATE_RUN_TIME_STATS != 1 ) )
  2134. #error configUSE_STATS_FORMATTING_FUNCTIONS is 1 but the functions it enables are not used because neither configUSE_TRACE_FACILITY or configGENERATE_RUN_TIME_STATS are 1. Set configUSE_STATS_FORMATTING_FUNCTIONS to 0 in FreeRTOSConfig.h.
  2135. #endif
  2136. #endif
  2137. #ifndef configSTATS_BUFFER_MAX_LENGTH
  2138. #define configSTATS_BUFFER_MAX_LENGTH 0xFFFF
  2139. #endif
  2140. #ifndef configSTACK_DEPTH_TYPE
  2141. /* Defaults to StackType_t for backward compatibility, but can be overridden
  2142. * in FreeRTOSConfig.h if StackType_t is too restrictive. */
  2143. #define configSTACK_DEPTH_TYPE StackType_t
  2144. #endif
  2145. #ifndef configRUN_TIME_COUNTER_TYPE
  2146. /* Defaults to uint32_t for backward compatibility, but can be overridden in
  2147. * FreeRTOSConfig.h if uint32_t is too restrictive. */
  2148. #define configRUN_TIME_COUNTER_TYPE uint32_t
  2149. #endif
  2150. #ifndef configMESSAGE_BUFFER_LENGTH_TYPE
  2151. /* Defaults to size_t for backward compatibility, but can be overridden
  2152. * in FreeRTOSConfig.h if lengths will always be less than the number of bytes
  2153. * in a size_t. */
  2154. #define configMESSAGE_BUFFER_LENGTH_TYPE size_t
  2155. #endif
  2156. /* Sanity check the configuration. */
  2157. #if ( ( configSUPPORT_STATIC_ALLOCATION == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 0 ) )
  2158. #error configSUPPORT_STATIC_ALLOCATION and configSUPPORT_DYNAMIC_ALLOCATION cannot both be 0, but can both be 1.
  2159. #endif
  2160. #if ( ( configUSE_RECURSIVE_MUTEXES == 1 ) && ( configUSE_MUTEXES != 1 ) )
  2161. #error configUSE_MUTEXES must be set to 1 to use recursive mutexes
  2162. #endif
  2163. #if ( ( configRUN_MULTIPLE_PRIORITIES == 0 ) && ( configUSE_TASK_PREEMPTION_DISABLE != 0 ) )
  2164. #error configRUN_MULTIPLE_PRIORITIES must be set to 1 to use task preemption disable
  2165. #endif
  2166. #if ( ( configUSE_PREEMPTION == 0 ) && ( configUSE_TASK_PREEMPTION_DISABLE != 0 ) )
  2167. #error configUSE_PREEMPTION must be set to 1 to use task preemption disable
  2168. #endif
  2169. #if ( ( configNUMBER_OF_CORES == 1 ) && ( configUSE_TASK_PREEMPTION_DISABLE != 0 ) )
  2170. #error configUSE_TASK_PREEMPTION_DISABLE is not supported in single core FreeRTOS
  2171. #endif
  2172. #if ( ( configNUMBER_OF_CORES == 1 ) && ( configUSE_CORE_AFFINITY != 0 ) )
  2173. #error configUSE_CORE_AFFINITY is not supported in single core FreeRTOS
  2174. #endif
  2175. #if ( ( configNUMBER_OF_CORES > 1 ) && ( configUSE_PORT_OPTIMISED_TASK_SELECTION != 0 ) )
  2176. #error configUSE_PORT_OPTIMISED_TASK_SELECTION is not supported in SMP FreeRTOS
  2177. #endif
  2178. #ifndef configINITIAL_TICK_COUNT
  2179. #define configINITIAL_TICK_COUNT 0
  2180. #endif
  2181. #if ( portTICK_TYPE_IS_ATOMIC == 0 )
  2182. /* Either variables of tick type cannot be read atomically, or
  2183. * portTICK_TYPE_IS_ATOMIC was not set - map the critical sections used when
  2184. * the tick count is returned to the standard critical section macros. */
  2185. #define portTICK_TYPE_ENTER_CRITICAL() portENTER_CRITICAL()
  2186. #define portTICK_TYPE_EXIT_CRITICAL() portEXIT_CRITICAL()
  2187. #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR()
  2188. #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) portCLEAR_INTERRUPT_MASK_FROM_ISR( ( x ) )
  2189. #else
  2190. /* The tick type can be read atomically, so critical sections used when the
  2191. * tick count is returned can be defined away. */
  2192. #define portTICK_TYPE_ENTER_CRITICAL()
  2193. #define portTICK_TYPE_EXIT_CRITICAL()
  2194. #define portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR() 0
  2195. #define portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( x ) ( void ) ( x )
  2196. #endif /* if ( portTICK_TYPE_IS_ATOMIC == 0 ) */
  2197. /* Definitions to allow backward compatibility with FreeRTOS versions prior to
  2198. * V8 if desired. */
  2199. #ifndef configENABLE_BACKWARD_COMPATIBILITY
  2200. #define configENABLE_BACKWARD_COMPATIBILITY 1
  2201. #endif
  2202. #ifndef configPRINTF
  2203. /* configPRINTF() was not defined, so define it away to nothing. To use
  2204. * configPRINTF() then define it as follows (where MyPrintFunction() is
  2205. * provided by the application writer):
  2206. *
  2207. * void MyPrintFunction(const char *pcFormat, ... );
  2208. #define configPRINTF( X ) MyPrintFunction X
  2209. *
  2210. * Then call like a standard printf() function, but placing brackets around
  2211. * all parameters so they are passed as a single parameter. For example:
  2212. * configPRINTF( ("Value = %d", MyVariable) ); */
  2213. #define configPRINTF( X )
  2214. #endif
  2215. #ifndef configMAX
  2216. /* The application writer has not provided their own MAX macro, so define
  2217. * the following generic implementation. */
  2218. #define configMAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
  2219. #endif
  2220. #ifndef configMIN
  2221. /* The application writer has not provided their own MIN macro, so define
  2222. * the following generic implementation. */
  2223. #define configMIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
  2224. #endif
  2225. #if configENABLE_BACKWARD_COMPATIBILITY == 1
  2226. #define eTaskStateGet eTaskGetState
  2227. #define portTickType TickType_t
  2228. #define xTaskHandle TaskHandle_t
  2229. #define xQueueHandle QueueHandle_t
  2230. #define xSemaphoreHandle SemaphoreHandle_t
  2231. #define xQueueSetHandle QueueSetHandle_t
  2232. #define xQueueSetMemberHandle QueueSetMemberHandle_t
  2233. #define xTimeOutType TimeOut_t
  2234. #define xMemoryRegion MemoryRegion_t
  2235. #define xTaskParameters TaskParameters_t
  2236. #define xTaskStatusType TaskStatus_t
  2237. #define xTimerHandle TimerHandle_t
  2238. #define xCoRoutineHandle CoRoutineHandle_t
  2239. #define pdTASK_HOOK_CODE TaskHookFunction_t
  2240. #define portTICK_RATE_MS portTICK_PERIOD_MS
  2241. #define pcTaskGetTaskName pcTaskGetName
  2242. #define pcTimerGetTimerName pcTimerGetName
  2243. #define pcQueueGetQueueName pcQueueGetName
  2244. #define vTaskGetTaskInfo vTaskGetInfo
  2245. #define xTaskGetIdleRunTimeCounter ulTaskGetIdleRunTimeCounter
  2246. /* Backward compatibility within the scheduler code only - these definitions
  2247. * are not really required but are included for completeness. */
  2248. #define tmrTIMER_CALLBACK TimerCallbackFunction_t
  2249. #define pdTASK_CODE TaskFunction_t
  2250. #define xListItem ListItem_t
  2251. #define xList List_t
  2252. /* For libraries that break the list data hiding, and access list structure
  2253. * members directly (which is not supposed to be done). */
  2254. #define pxContainer pvContainer
  2255. #endif /* configENABLE_BACKWARD_COMPATIBILITY */
  2256. #if ( configUSE_ALTERNATIVE_API != 0 )
  2257. #error The alternative API was deprecated some time ago, and was removed in FreeRTOS V9.0 0
  2258. #endif
  2259. /* Set configUSE_TASK_FPU_SUPPORT to 0 to omit floating point support even
  2260. * if floating point hardware is otherwise supported by the FreeRTOS port in use.
  2261. * This constant is not supported by all FreeRTOS ports that include floating
  2262. * point support. */
  2263. #ifndef configUSE_TASK_FPU_SUPPORT
  2264. #define configUSE_TASK_FPU_SUPPORT 1
  2265. #endif
  2266. /* Set configENABLE_MPU to 1 to enable MPU support and 0 to disable it. This is
  2267. * currently used in ARMv8M ports. */
  2268. #ifndef configENABLE_MPU
  2269. #define configENABLE_MPU 0
  2270. #endif
  2271. /* Set configENABLE_FPU to 1 to enable FPU support and 0 to disable it. This is
  2272. * currently used in ARMv8M ports. */
  2273. #ifndef configENABLE_FPU
  2274. #define configENABLE_FPU 1
  2275. #endif
  2276. /* Set configENABLE_MVE to 1 to enable MVE support and 0 to disable it. This is
  2277. * currently used in ARMv8M ports. */
  2278. #ifndef configENABLE_MVE
  2279. #define configENABLE_MVE 0
  2280. #endif
  2281. /* Set configENABLE_TRUSTZONE to 1 enable TrustZone support and 0 to disable it.
  2282. * This is currently used in ARMv8M ports. */
  2283. #ifndef configENABLE_TRUSTZONE
  2284. #define configENABLE_TRUSTZONE 1
  2285. #endif
  2286. /* Set configRUN_FREERTOS_SECURE_ONLY to 1 to run the FreeRTOS ARMv8M port on
  2287. * the Secure Side only. */
  2288. #ifndef configRUN_FREERTOS_SECURE_ONLY
  2289. #define configRUN_FREERTOS_SECURE_ONLY 0
  2290. #endif
  2291. #ifndef configRUN_ADDITIONAL_TESTS
  2292. #define configRUN_ADDITIONAL_TESTS 0
  2293. #endif
  2294. /* The following config allows infinite loop control. For example, control the
  2295. * infinite loop in idle task function when performing unit tests. */
  2296. #ifndef configCONTROL_INFINITE_LOOP
  2297. #define configCONTROL_INFINITE_LOOP()
  2298. #endif
  2299. /* Sometimes the FreeRTOSConfig.h settings only allow a task to be created using
  2300. * dynamically allocated RAM, in which case when any task is deleted it is known
  2301. * that both the task's stack and TCB need to be freed. Sometimes the
  2302. * FreeRTOSConfig.h settings only allow a task to be created using statically
  2303. * allocated RAM, in which case when any task is deleted it is known that neither
  2304. * the task's stack or TCB should be freed. Sometimes the FreeRTOSConfig.h
  2305. * settings allow a task to be created using either statically or dynamically
  2306. * allocated RAM, in which case a member of the TCB is used to record whether the
  2307. * stack and/or TCB were allocated statically or dynamically, so when a task is
  2308. * deleted the RAM that was allocated dynamically is freed again and no attempt is
  2309. * made to free the RAM that was allocated statically.
  2310. * tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE is only true if it is possible for a
  2311. * task to be created using either statically or dynamically allocated RAM. Note
  2312. * that if portUSING_MPU_WRAPPERS is 1 then a protected task can be created with
  2313. * a statically allocated stack and a dynamically allocated TCB.
  2314. *
  2315. * The following table lists various combinations of portUSING_MPU_WRAPPERS,
  2316. * configSUPPORT_DYNAMIC_ALLOCATION and configSUPPORT_STATIC_ALLOCATION and
  2317. * when it is possible to have both static and dynamic allocation:
  2318. * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+
  2319. * | MPU | Dynamic | Static | Available Functions | Possible Allocations | Both Dynamic and | Need Free |
  2320. * | | | | | | Static Possible | |
  2321. * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+
  2322. * | 0 | 0 | 1 | xTaskCreateStatic | TCB - Static, Stack - Static | No | No |
  2323. * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
  2324. * | 0 | 1 | 0 | xTaskCreate | TCB - Dynamic, Stack - Dynamic | No | Yes |
  2325. * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
  2326. * | 0 | 1 | 1 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes |
  2327. * | | | | xTaskCreateStatic | 2. TCB - Static, Stack - Static | | |
  2328. * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
  2329. * | 1 | 0 | 1 | xTaskCreateStatic, | TCB - Static, Stack - Static | No | No |
  2330. * | | | | xTaskCreateRestrictedStatic | | | |
  2331. * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
  2332. * | 1 | 1 | 0 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes |
  2333. * | | | | xTaskCreateRestricted | 2. TCB - Dynamic, Stack - Static | | |
  2334. * +-----|---------|--------|-----------------------------|-----------------------------------|------------------|-----------|
  2335. * | 1 | 1 | 1 | xTaskCreate, | 1. TCB - Dynamic, Stack - Dynamic | Yes | Yes |
  2336. * | | | | xTaskCreateStatic, | 2. TCB - Dynamic, Stack - Static | | |
  2337. * | | | | xTaskCreateRestricted, | 3. TCB - Static, Stack - Static | | |
  2338. * | | | | xTaskCreateRestrictedStatic | | | |
  2339. * +-----+---------+--------+-----------------------------+-----------------------------------+------------------+-----------+
  2340. */
  2341. #define tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE \
  2342. ( ( ( portUSING_MPU_WRAPPERS == 0 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) || \
  2343. ( ( portUSING_MPU_WRAPPERS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) )
  2344. /*
  2345. * In line with software engineering best practice, FreeRTOS implements a strict
  2346. * data hiding policy, so the real structures used by FreeRTOS to maintain the
  2347. * state of tasks, queues, semaphores, etc. are not accessible to the application
  2348. * code. However, if the application writer wants to statically allocate such
  2349. * an object then the size of the object needs to be known. Dummy structures
  2350. * that are guaranteed to have the same size and alignment requirements of the
  2351. * real objects are used for this purpose. The dummy list and list item
  2352. * structures below are used for inclusion in such a dummy structure.
  2353. */
  2354. struct xSTATIC_LIST_ITEM
  2355. {
  2356. #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
  2357. TickType_t xDummy1;
  2358. #endif
  2359. TickType_t xDummy2;
  2360. void * pvDummy3[ 4 ];
  2361. #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
  2362. TickType_t xDummy4;
  2363. #endif
  2364. };
  2365. typedef struct xSTATIC_LIST_ITEM StaticListItem_t;
  2366. #if ( configUSE_MINI_LIST_ITEM == 1 )
  2367. /* See the comments above the struct xSTATIC_LIST_ITEM definition. */
  2368. struct xSTATIC_MINI_LIST_ITEM
  2369. {
  2370. #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
  2371. TickType_t xDummy1;
  2372. #endif
  2373. TickType_t xDummy2;
  2374. void * pvDummy3[ 2 ];
  2375. };
  2376. typedef struct xSTATIC_MINI_LIST_ITEM StaticMiniListItem_t;
  2377. #else /* if ( configUSE_MINI_LIST_ITEM == 1 ) */
  2378. typedef struct xSTATIC_LIST_ITEM StaticMiniListItem_t;
  2379. #endif /* if ( configUSE_MINI_LIST_ITEM == 1 ) */
  2380. /* See the comments above the struct xSTATIC_LIST_ITEM definition. */
  2381. typedef struct xSTATIC_LIST
  2382. {
  2383. #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
  2384. TickType_t xDummy1;
  2385. #endif
  2386. UBaseType_t uxDummy2;
  2387. void * pvDummy3;
  2388. StaticMiniListItem_t xDummy4;
  2389. #if ( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 1 )
  2390. TickType_t xDummy5;
  2391. #endif
  2392. } StaticList_t;
  2393. /*
  2394. * In line with software engineering best practice, especially when supplying a
  2395. * library that is likely to change in future versions, FreeRTOS implements a
  2396. * strict data hiding policy. This means the Task structure used internally by
  2397. * FreeRTOS is not accessible to application code. However, if the application
  2398. * writer wants to statically allocate the memory required to create a task then
  2399. * the size of the task object needs to be known. The StaticTask_t structure
  2400. * below is provided for this purpose. Its sizes and alignment requirements are
  2401. * guaranteed to match those of the genuine structure, no matter which
  2402. * architecture is being used, and no matter how the values in FreeRTOSConfig.h
  2403. * are set. Its contents are somewhat obfuscated in the hope users will
  2404. * recognise that it would be unwise to make direct use of the structure members.
  2405. */
  2406. typedef struct xSTATIC_TCB
  2407. {
  2408. void * pxDummy1;
  2409. #if ( portUSING_MPU_WRAPPERS == 1 )
  2410. xMPU_SETTINGS xDummy2;
  2411. #endif
  2412. #if ( configUSE_CORE_AFFINITY == 1 ) && ( configNUMBER_OF_CORES > 1 )
  2413. UBaseType_t uxDummy26;
  2414. #endif
  2415. StaticListItem_t xDummy3[ 2 ];
  2416. UBaseType_t uxDummy5;
  2417. void * pxDummy6;
  2418. #if ( configNUMBER_OF_CORES > 1 )
  2419. BaseType_t xDummy23;
  2420. UBaseType_t uxDummy24;
  2421. #endif
  2422. uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ];
  2423. #if ( configUSE_TASK_PREEMPTION_DISABLE == 1 )
  2424. BaseType_t xDummy25;
  2425. #endif
  2426. #if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
  2427. void * pxDummy8;
  2428. #endif
  2429. #if ( portCRITICAL_NESTING_IN_TCB == 1 )
  2430. UBaseType_t uxDummy9;
  2431. #endif
  2432. #if ( configUSE_TRACE_FACILITY == 1 )
  2433. UBaseType_t uxDummy10[ 2 ];
  2434. #endif
  2435. #if ( configUSE_MUTEXES == 1 )
  2436. UBaseType_t uxDummy12[ 2 ];
  2437. #endif
  2438. #if ( configUSE_APPLICATION_TASK_TAG == 1 )
  2439. void * pxDummy14;
  2440. #endif
  2441. #if ( configNUM_THREAD_LOCAL_STORAGE_POINTERS > 0 )
  2442. void * pvDummy15[ configNUM_THREAD_LOCAL_STORAGE_POINTERS ];
  2443. #endif
  2444. #if ( configGENERATE_RUN_TIME_STATS == 1 )
  2445. configRUN_TIME_COUNTER_TYPE ulDummy16;
  2446. #endif
  2447. #if ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 )
  2448. configTLS_BLOCK_TYPE xDummy17;
  2449. #endif
  2450. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  2451. uint32_t ulDummy18[ configTASK_NOTIFICATION_ARRAY_ENTRIES ];
  2452. uint8_t ucDummy19[ configTASK_NOTIFICATION_ARRAY_ENTRIES ];
  2453. #endif
  2454. #if ( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 )
  2455. uint8_t uxDummy20;
  2456. #endif
  2457. #if ( INCLUDE_xTaskAbortDelay == 1 )
  2458. uint8_t ucDummy21;
  2459. #endif
  2460. #if ( configUSE_POSIX_ERRNO == 1 )
  2461. int iDummy22;
  2462. #endif
  2463. } StaticTask_t;
  2464. /*
  2465. * In line with software engineering best practice, especially when supplying a
  2466. * library that is likely to change in future versions, FreeRTOS implements a
  2467. * strict data hiding policy. This means the Queue structure used internally by
  2468. * FreeRTOS is not accessible to application code. However, if the application
  2469. * writer wants to statically allocate the memory required to create a queue
  2470. * then the size of the queue object needs to be known. The StaticQueue_t
  2471. * structure below is provided for this purpose. Its sizes and alignment
  2472. * requirements are guaranteed to match those of the genuine structure, no
  2473. * matter which architecture is being used, and no matter how the values in
  2474. * FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in the hope
  2475. * users will recognise that it would be unwise to make direct use of the
  2476. * structure members.
  2477. */
  2478. typedef struct xSTATIC_QUEUE
  2479. {
  2480. void * pvDummy1[ 3 ];
  2481. union
  2482. {
  2483. void * pvDummy2;
  2484. UBaseType_t uxDummy2;
  2485. } u;
  2486. StaticList_t xDummy3[ 2 ];
  2487. UBaseType_t uxDummy4[ 3 ];
  2488. uint8_t ucDummy5[ 2 ];
  2489. #if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  2490. uint8_t ucDummy6;
  2491. #endif
  2492. #if ( configUSE_QUEUE_SETS == 1 )
  2493. void * pvDummy7;
  2494. #endif
  2495. #if ( configUSE_TRACE_FACILITY == 1 )
  2496. UBaseType_t uxDummy8;
  2497. uint8_t ucDummy9;
  2498. #endif
  2499. } StaticQueue_t;
  2500. typedef StaticQueue_t StaticSemaphore_t;
  2501. /*
  2502. * In line with software engineering best practice, especially when supplying a
  2503. * library that is likely to change in future versions, FreeRTOS implements a
  2504. * strict data hiding policy. This means the event group structure used
  2505. * internally by FreeRTOS is not accessible to application code. However, if
  2506. * the application writer wants to statically allocate the memory required to
  2507. * create an event group then the size of the event group object needs to be
  2508. * know. The StaticEventGroup_t structure below is provided for this purpose.
  2509. * Its sizes and alignment requirements are guaranteed to match those of the
  2510. * genuine structure, no matter which architecture is being used, and no matter
  2511. * how the values in FreeRTOSConfig.h are set. Its contents are somewhat
  2512. * obfuscated in the hope users will recognise that it would be unwise to make
  2513. * direct use of the structure members.
  2514. */
  2515. typedef struct xSTATIC_EVENT_GROUP
  2516. {
  2517. TickType_t xDummy1;
  2518. StaticList_t xDummy2;
  2519. #if ( configUSE_TRACE_FACILITY == 1 )
  2520. UBaseType_t uxDummy3;
  2521. #endif
  2522. #if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  2523. uint8_t ucDummy4;
  2524. #endif
  2525. } StaticEventGroup_t;
  2526. /*
  2527. * In line with software engineering best practice, especially when supplying a
  2528. * library that is likely to change in future versions, FreeRTOS implements a
  2529. * strict data hiding policy. This means the software timer structure used
  2530. * internally by FreeRTOS is not accessible to application code. However, if
  2531. * the application writer wants to statically allocate the memory required to
  2532. * create a software timer then the size of the queue object needs to be known.
  2533. * The StaticTimer_t structure below is provided for this purpose. Its sizes
  2534. * and alignment requirements are guaranteed to match those of the genuine
  2535. * structure, no matter which architecture is being used, and no matter how the
  2536. * values in FreeRTOSConfig.h are set. Its contents are somewhat obfuscated in
  2537. * the hope users will recognise that it would be unwise to make direct use of
  2538. * the structure members.
  2539. */
  2540. typedef struct xSTATIC_TIMER
  2541. {
  2542. void * pvDummy1;
  2543. StaticListItem_t xDummy2;
  2544. TickType_t xDummy3;
  2545. void * pvDummy5;
  2546. TaskFunction_t pvDummy6;
  2547. #if ( configUSE_TRACE_FACILITY == 1 )
  2548. UBaseType_t uxDummy7;
  2549. #endif
  2550. uint8_t ucDummy8;
  2551. } StaticTimer_t;
  2552. /*
  2553. * In line with software engineering best practice, especially when supplying a
  2554. * library that is likely to change in future versions, FreeRTOS implements a
  2555. * strict data hiding policy. This means the stream buffer structure used
  2556. * internally by FreeRTOS is not accessible to application code. However, if
  2557. * the application writer wants to statically allocate the memory required to
  2558. * create a stream buffer then the size of the stream buffer object needs to be
  2559. * known. The StaticStreamBuffer_t structure below is provided for this
  2560. * purpose. Its size and alignment requirements are guaranteed to match those
  2561. * of the genuine structure, no matter which architecture is being used, and
  2562. * no matter how the values in FreeRTOSConfig.h are set. Its contents are
  2563. * somewhat obfuscated in the hope users will recognise that it would be unwise
  2564. * to make direct use of the structure members.
  2565. */
  2566. typedef struct xSTATIC_STREAM_BUFFER
  2567. {
  2568. size_t uxDummy1[ 4 ];
  2569. void * pvDummy2[ 3 ];
  2570. uint8_t ucDummy3;
  2571. #if ( configUSE_TRACE_FACILITY == 1 )
  2572. UBaseType_t uxDummy4;
  2573. #endif
  2574. #if ( configUSE_SB_COMPLETED_CALLBACK == 1 )
  2575. void * pvDummy5[ 2 ];
  2576. #endif
  2577. UBaseType_t uxDummy6;
  2578. } StaticStreamBuffer_t;
  2579. /* Message buffers are built on stream buffers. */
  2580. typedef StaticStreamBuffer_t StaticMessageBuffer_t;
  2581. /* *INDENT-OFF* */
  2582. #ifdef __cplusplus
  2583. }
  2584. #endif
  2585. /* *INDENT-ON* */
  2586. #endif /* INC_FREERTOS_H */