FreeRTOS.h 107 KB

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