stm32f4xx_hal_exti.lst 133 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090
  1. ARM GAS /tmp/ccuBsENf.s page 1
  2. 1 .cpu cortex-m4
  3. 2 .eabi_attribute 27, 1
  4. 3 .eabi_attribute 28, 1
  5. 4 .eabi_attribute 20, 1
  6. 5 .eabi_attribute 21, 1
  7. 6 .eabi_attribute 23, 3
  8. 7 .eabi_attribute 24, 1
  9. 8 .eabi_attribute 25, 1
  10. 9 .eabi_attribute 26, 1
  11. 10 .eabi_attribute 30, 1
  12. 11 .eabi_attribute 34, 1
  13. 12 .eabi_attribute 18, 4
  14. 13 .file "stm32f4xx_hal_exti.c"
  15. 14 .text
  16. 15 .Ltext0:
  17. 16 .cfi_sections .debug_frame
  18. 17 .section .text.HAL_EXTI_SetConfigLine,"ax",%progbits
  19. 18 .align 1
  20. 19 .global HAL_EXTI_SetConfigLine
  21. 20 .syntax unified
  22. 21 .thumb
  23. 22 .thumb_func
  24. 23 .fpu fpv4-sp-d16
  25. 25 HAL_EXTI_SetConfigLine:
  26. 26 .LFB130:
  27. 27 .file 1 "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c"
  28. 1:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  29. 2:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ******************************************************************************
  30. 3:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @file stm32f4xx_hal_exti.c
  31. 4:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @author MCD Application Team
  32. 5:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief EXTI HAL module driver.
  33. 6:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * This file provides firmware functions to manage the following
  34. 7:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * functionalities of the Extended Interrupts and events controller (EXTI) peripheral:
  35. 8:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * + Initialization and de-initialization functions
  36. 9:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * + IO operation functions
  37. 10:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** *
  38. 11:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** @verbatim
  39. 12:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ==============================================================================
  40. 13:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ##### EXTI Peripheral features #####
  41. 14:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ==============================================================================
  42. 15:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** [..]
  43. 16:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (+) Each Exti line can be configured within this driver.
  44. 17:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  45. 18:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (+) Exti line can be configured in 3 different modes
  46. 19:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Interrupt
  47. 20:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Event
  48. 21:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Both of them
  49. 22:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  50. 23:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (+) Configurable Exti lines can be configured with 3 different triggers
  51. 24:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Rising
  52. 25:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Falling
  53. 26:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Both of them
  54. 27:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  55. 28:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (+) When set in interrupt mode, configurable Exti lines have two different
  56. 29:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** interrupts pending registers which allow to distinguish which transition
  57. 30:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** occurs:
  58. 31:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Rising edge pending interrupt
  59. ARM GAS /tmp/ccuBsENf.s page 2
  60. 32:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Falling
  61. 33:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  62. 34:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (+) Exti lines 0 to 15 are linked to gpio pin number 0 to 15. Gpio port can
  63. 35:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** be selected through multiplexer.
  64. 36:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  65. 37:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ##### How to use this driver #####
  66. 38:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ==============================================================================
  67. 39:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** [..]
  68. 40:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  69. 41:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (#) Configure the EXTI line using HAL_EXTI_SetConfigLine().
  70. 42:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Choose the interrupt line number by setting "Line" member from
  71. 43:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI_ConfigTypeDef structure.
  72. 44:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Configure the interrupt and/or event mode using "Mode" member from
  73. 45:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI_ConfigTypeDef structure.
  74. 46:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) For configurable lines, configure rising and/or falling trigger
  75. 47:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** "Trigger" member from EXTI_ConfigTypeDef structure.
  76. 48:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  77. 49:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (#) Get current Exti configuration of a dedicated line using
  78. 50:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** HAL_EXTI_GetConfigLine().
  79. 51:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Provide exiting handle as parameter.
  80. 52:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Provide pointer on EXTI_ConfigTypeDef structure as second parameter.
  81. 53:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  82. 54:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (#) Clear Exti configuration of a dedicated line using HAL_EXTI_GetConfigLine().
  83. 55:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Provide exiting handle as parameter.
  84. 56:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  85. 57:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (#) Register callback to treat Exti interrupts using HAL_EXTI_RegisterCallback().
  86. 58:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Provide exiting handle as first parameter.
  87. 59:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Provide which callback will be registered using one value from
  88. 60:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI_CallbackIDTypeDef.
  89. 61:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (++) Provide callback function pointer.
  90. 62:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  91. 63:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (#) Get interrupt pending bit using HAL_EXTI_GetPending().
  92. 64:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  93. 65:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (#) Clear interrupt pending bit using HAL_EXTI_GetPending().
  94. 66:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  95. 67:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** (#) Generate software interrupt using HAL_EXTI_GenerateSWI().
  96. 68:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  97. 69:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** @endverbatim
  98. 70:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ******************************************************************************
  99. 71:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @attention
  100. 72:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** *
  101. 73:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * <h2><center>&copy; Copyright (c) 2018 STMicroelectronics.
  102. 74:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * All rights reserved.</center></h2>
  103. 75:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** *
  104. 76:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * This software component is licensed by ST under BSD 3-Clause license,
  105. 77:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * the "License"; You may not use this file except in compliance with the
  106. 78:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * License. You may obtain a copy of the License at:
  107. 79:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * opensource.org/licenses/BSD-3-Clause
  108. 80:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** *
  109. 81:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ******************************************************************************
  110. 82:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  111. 83:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  112. 84:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Includes ------------------------------------------------------------------*/
  113. 85:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** #include "stm32f4xx_hal.h"
  114. 86:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  115. 87:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /** @addtogroup STM32F4xx_HAL_Driver
  116. 88:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @{
  117. ARM GAS /tmp/ccuBsENf.s page 3
  118. 89:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  119. 90:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  120. 91:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /** @addtogroup EXTI
  121. 92:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @{
  122. 93:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  123. 94:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /** MISRA C:2012 deviation rule has been granted for following rule:
  124. 95:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * Rule-18.1_b - Medium: Array `EXTICR' 1st subscript interval [0,7] may be out
  125. 96:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * of bounds [0,3] in following API :
  126. 97:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * HAL_EXTI_SetConfigLine
  127. 98:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * HAL_EXTI_GetConfigLine
  128. 99:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * HAL_EXTI_ClearConfigLine
  129. 100:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  130. 101:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  131. 102:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** #ifdef HAL_EXTI_MODULE_ENABLED
  132. 103:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  133. 104:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Private typedef -----------------------------------------------------------*/
  134. 105:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Private defines -----------------------------------------------------------*/
  135. 106:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /** @defgroup EXTI_Private_Constants EXTI Private Constants
  136. 107:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @{
  137. 108:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  138. 109:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  139. 110:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  140. 111:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @}
  141. 112:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  142. 113:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  143. 114:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Private macros ------------------------------------------------------------*/
  144. 115:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Private variables ---------------------------------------------------------*/
  145. 116:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Private function prototypes -----------------------------------------------*/
  146. 117:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Exported functions --------------------------------------------------------*/
  147. 118:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  148. 119:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /** @addtogroup EXTI_Exported_Functions
  149. 120:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @{
  150. 121:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  151. 122:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  152. 123:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /** @addtogroup EXTI_Exported_Functions_Group1
  153. 124:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Configuration functions
  154. 125:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** *
  155. 126:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** @verbatim
  156. 127:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ===============================================================================
  157. 128:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ##### Configuration functions #####
  158. 129:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ===============================================================================
  159. 130:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  160. 131:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** @endverbatim
  161. 132:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @{
  162. 133:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  163. 134:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  164. 135:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  165. 136:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Set configuration of a dedicated Exti line.
  166. 137:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param hexti Exti handle.
  167. 138:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param pExtiConfig Pointer on EXTI configuration to be set.
  168. 139:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @retval HAL Status.
  169. 140:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  170. 141:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_SetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig
  171. 142:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  172. 28 .loc 1 142 0
  173. 29 .cfi_startproc
  174. 30 @ args = 0, pretend = 0, frame = 0
  175. ARM GAS /tmp/ccuBsENf.s page 4
  176. 31 @ frame_needed = 0, uses_anonymous_args = 0
  177. 32 @ link register save eliminated.
  178. 33 .LVL0:
  179. 143:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** uint32_t regval;
  180. 144:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  181. 145:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check null pointer */
  182. 146:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if ((hexti == NULL) || (pExtiConfig == NULL))
  183. 34 .loc 1 146 0
  184. 35 0000 0028 cmp r0, #0
  185. 36 0002 3CD0 beq .L4
  186. 37 .loc 1 146 0 is_stmt 0 discriminator 1
  187. 38 0004 0029 cmp r1, #0
  188. 39 0006 3CD0 beq .L5
  189. 142:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** uint32_t regval;
  190. 40 .loc 1 142 0 is_stmt 1
  191. 41 0008 10B4 push {r4}
  192. 42 .LCFI0:
  193. 43 .cfi_def_cfa_offset 4
  194. 44 .cfi_offset 4, -4
  195. 147:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  196. 148:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return HAL_ERROR;
  197. 149:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  198. 150:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  199. 151:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check parameters */
  200. 152:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_LINE(pExtiConfig->Line));
  201. 153:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_MODE(pExtiConfig->Mode));
  202. 154:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_TRIGGER(pExtiConfig->Trigger));
  203. 155:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  204. 156:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Assign line number to handle */
  205. 157:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** hexti->Line = pExtiConfig->Line;
  206. 45 .loc 1 157 0
  207. 46 000a 0A68 ldr r2, [r1]
  208. 47 000c 0260 str r2, [r0]
  209. 158:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  210. 159:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Clear EXTI line configuration */
  211. 160:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->IMR &= ~pExtiConfig->Line;
  212. 48 .loc 1 160 0
  213. 49 000e 1E4B ldr r3, .L11
  214. 50 0010 1A68 ldr r2, [r3]
  215. 51 0012 0868 ldr r0, [r1]
  216. 52 .LVL1:
  217. 53 0014 22EA0002 bic r2, r2, r0
  218. 54 0018 1A60 str r2, [r3]
  219. 161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->EMR &= ~pExtiConfig->Line;
  220. 55 .loc 1 161 0
  221. 56 001a 5A68 ldr r2, [r3, #4]
  222. 57 001c 0868 ldr r0, [r1]
  223. 58 001e 22EA0002 bic r2, r2, r0
  224. 59 0022 5A60 str r2, [r3, #4]
  225. 60 .LVL2:
  226. 162:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  227. 163:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Select the Mode for the selected external interrupts */
  228. 164:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** regval = (uint32_t)EXTI_BASE;
  229. 165:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** regval += pExtiConfig->Mode;
  230. 61 .loc 1 165 0
  231. 62 0024 4A68 ldr r2, [r1, #4]
  232. 63 0026 02F18042 add r2, r2, #1073741824
  233. ARM GAS /tmp/ccuBsENf.s page 5
  234. 64 002a 02F59E32 add r2, r2, #80896
  235. 65 .LVL3:
  236. 166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** *(__IO uint32_t *) regval |= pExtiConfig->Line;
  237. 66 .loc 1 166 0
  238. 67 002e 1068 ldr r0, [r2]
  239. 68 0030 0C68 ldr r4, [r1]
  240. 69 0032 2043 orrs r0, r0, r4
  241. 70 0034 1060 str r0, [r2]
  242. 167:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  243. 168:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Clear Rising Falling edge configuration */
  244. 169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->RTSR &= ~pExtiConfig->Line;
  245. 71 .loc 1 169 0
  246. 72 0036 9A68 ldr r2, [r3, #8]
  247. 73 .LVL4:
  248. 74 0038 0868 ldr r0, [r1]
  249. 75 003a 22EA0002 bic r2, r2, r0
  250. 76 003e 9A60 str r2, [r3, #8]
  251. 170:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->FTSR &= ~pExtiConfig->Line;
  252. 77 .loc 1 170 0
  253. 78 0040 DA68 ldr r2, [r3, #12]
  254. 79 0042 0868 ldr r0, [r1]
  255. 80 0044 22EA0002 bic r2, r2, r0
  256. 81 0048 DA60 str r2, [r3, #12]
  257. 171:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  258. 172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Select the trigger for the selected external interrupts */
  259. 173:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if (pExtiConfig->Trigger == EXTI_TRIGGER_RISING_FALLING)
  260. 82 .loc 1 173 0
  261. 83 004a 8B68 ldr r3, [r1, #8]
  262. 84 004c 102B cmp r3, #16
  263. 85 004e 0BD0 beq .L10
  264. 86 .LVL5:
  265. 174:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  266. 175:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Rising Falling edge */
  267. 176:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->RTSR |= pExtiConfig->Line;
  268. 177:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->FTSR |= pExtiConfig->Line;
  269. 178:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  270. 179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** else
  271. 180:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  272. 181:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** regval = (uint32_t)EXTI_BASE;
  273. 182:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** regval += pExtiConfig->Trigger;
  274. 87 .loc 1 182 0
  275. 88 0050 03F18043 add r3, r3, #1073741824
  276. 89 0054 03F59E33 add r3, r3, #80896
  277. 90 .LVL6:
  278. 183:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** *(__IO uint32_t *) regval |= pExtiConfig->Line;
  279. 91 .loc 1 183 0
  280. 92 0058 1A68 ldr r2, [r3]
  281. 93 005a 0968 ldr r1, [r1]
  282. 94 .LVL7:
  283. 95 005c 0A43 orrs r2, r2, r1
  284. 96 005e 1A60 str r2, [r3]
  285. 184:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  286. 185:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return HAL_OK;
  287. 97 .loc 1 185 0
  288. 98 0060 0020 movs r0, #0
  289. 99 .LVL8:
  290. 100 .L2:
  291. ARM GAS /tmp/ccuBsENf.s page 6
  292. 186:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  293. 101 .loc 1 186 0
  294. 102 0062 5DF8044B ldr r4, [sp], #4
  295. 103 .LCFI1:
  296. 104 .cfi_remember_state
  297. 105 .cfi_restore 4
  298. 106 .cfi_def_cfa_offset 0
  299. 107 0066 7047 bx lr
  300. 108 .LVL9:
  301. 109 .L10:
  302. 110 .LCFI2:
  303. 111 .cfi_restore_state
  304. 176:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->FTSR |= pExtiConfig->Line;
  305. 112 .loc 1 176 0
  306. 113 0068 074B ldr r3, .L11
  307. 114 006a 9A68 ldr r2, [r3, #8]
  308. 115 006c 0868 ldr r0, [r1]
  309. 116 006e 0243 orrs r2, r2, r0
  310. 117 0070 9A60 str r2, [r3, #8]
  311. 177:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  312. 118 .loc 1 177 0
  313. 119 0072 DA68 ldr r2, [r3, #12]
  314. 120 0074 0968 ldr r1, [r1]
  315. 121 .LVL10:
  316. 122 0076 0A43 orrs r2, r2, r1
  317. 123 0078 DA60 str r2, [r3, #12]
  318. 185:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  319. 124 .loc 1 185 0
  320. 125 007a 0020 movs r0, #0
  321. 126 007c F1E7 b .L2
  322. 127 .LVL11:
  323. 128 .L4:
  324. 129 .LCFI3:
  325. 130 .cfi_def_cfa_offset 0
  326. 131 .cfi_restore 4
  327. 148:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  328. 132 .loc 1 148 0
  329. 133 007e 0120 movs r0, #1
  330. 134 .LVL12:
  331. 135 0080 7047 bx lr
  332. 136 .LVL13:
  333. 137 .L5:
  334. 138 0082 0120 movs r0, #1
  335. 139 .LVL14:
  336. 140 0084 7047 bx lr
  337. 141 .L12:
  338. 142 0086 00BF .align 2
  339. 143 .L11:
  340. 144 0088 003C0140 .word 1073822720
  341. 145 .cfi_endproc
  342. 146 .LFE130:
  343. 148 .section .text.HAL_EXTI_GetConfigLine,"ax",%progbits
  344. 149 .align 1
  345. 150 .global HAL_EXTI_GetConfigLine
  346. 151 .syntax unified
  347. 152 .thumb
  348. 153 .thumb_func
  349. ARM GAS /tmp/ccuBsENf.s page 7
  350. 154 .fpu fpv4-sp-d16
  351. 156 HAL_EXTI_GetConfigLine:
  352. 157 .LFB131:
  353. 187:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  354. 188:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  355. 189:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Get configuration of a dedicated Exti line.
  356. 190:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param hexti Exti handle.
  357. 191:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param pExtiConfig Pointer on structure to store Exti configuration.
  358. 192:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @retval HAL Status.
  359. 193:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  360. 194:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_GetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig
  361. 195:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  362. 158 .loc 1 195 0
  363. 159 .cfi_startproc
  364. 160 @ args = 0, pretend = 0, frame = 0
  365. 161 @ frame_needed = 0, uses_anonymous_args = 0
  366. 162 @ link register save eliminated.
  367. 163 .LVL15:
  368. 196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check null pointer */
  369. 197:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if ((hexti == NULL) || (pExtiConfig == NULL))
  370. 164 .loc 1 197 0
  371. 165 0000 0346 mov r3, r0
  372. 166 0002 0028 cmp r0, #0
  373. 167 0004 32D0 beq .L21
  374. 168 .loc 1 197 0 is_stmt 0 discriminator 1
  375. 169 0006 0029 cmp r1, #0
  376. 170 0008 32D0 beq .L22
  377. 198:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  378. 199:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return HAL_ERROR;
  379. 200:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  380. 201:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  381. 202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check the parameter */
  382. 203:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  383. 204:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  384. 205:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Store handle line number to configuration structure */
  385. 206:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** pExtiConfig->Line = hexti->Line;
  386. 171 .loc 1 206 0 is_stmt 1
  387. 172 000a 0268 ldr r2, [r0]
  388. 173 000c 0A60 str r2, [r1]
  389. 207:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  390. 208:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Get EXTI mode to configiguration structure */
  391. 209:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if ((EXTI->IMR & hexti->Line) == hexti->Line)
  392. 174 .loc 1 209 0
  393. 175 000e 194A ldr r2, .L28
  394. 176 0010 1068 ldr r0, [r2]
  395. 177 .LVL16:
  396. 178 0012 1A68 ldr r2, [r3]
  397. 179 0014 32EA0000 bics r0, r2, r0
  398. 180 0018 12D0 beq .L23
  399. 210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  400. 211:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** pExtiConfig->Mode = EXTI_MODE_INTERRUPT;
  401. 212:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  402. 213:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** else if ((EXTI->EMR & hexti->Line) == hexti->Line)
  403. 181 .loc 1 213 0
  404. 182 001a 1648 ldr r0, .L28
  405. 183 001c 4068 ldr r0, [r0, #4]
  406. 184 001e 8243 bics r2, r2, r0
  407. ARM GAS /tmp/ccuBsENf.s page 8
  408. 185 0020 11D0 beq .L24
  409. 214:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  410. 215:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** pExtiConfig->Mode = EXTI_MODE_EVENT;
  411. 216:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  412. 217:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** else
  413. 218:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  414. 219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* No MODE selected */
  415. 220:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** pExtiConfig->Mode = 0x0Bu;
  416. 186 .loc 1 220 0
  417. 187 0022 0B22 movs r2, #11
  418. 188 0024 4A60 str r2, [r1, #4]
  419. 189 .L16:
  420. 221:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  421. 222:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  422. 223:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Get EXTI Trigger to configiguration structure */
  423. 224:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if ((EXTI->RTSR & hexti->Line) == hexti->Line)
  424. 190 .loc 1 224 0
  425. 191 0026 134A ldr r2, .L28
  426. 192 0028 9268 ldr r2, [r2, #8]
  427. 193 002a 1B68 ldr r3, [r3]
  428. 194 .LVL17:
  429. 195 002c 33EA0202 bics r2, r3, r2
  430. 196 0030 0CD0 beq .L25
  431. 225:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  432. 226:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if ((EXTI->FTSR & hexti->Line) == hexti->Line)
  433. 227:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  434. 228:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** pExtiConfig->Trigger = EXTI_TRIGGER_RISING_FALLING;
  435. 229:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  436. 230:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** else
  437. 231:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  438. 232:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** pExtiConfig->Trigger = EXTI_TRIGGER_RISING;
  439. 233:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  440. 234:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  441. 235:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** else if ((EXTI->FTSR & hexti->Line) == hexti->Line)
  442. 197 .loc 1 235 0
  443. 198 0032 104A ldr r2, .L28
  444. 199 0034 D268 ldr r2, [r2, #12]
  445. 200 0036 9343 bics r3, r3, r2
  446. 201 0038 14D0 beq .L26
  447. 236:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  448. 237:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** pExtiConfig->Trigger = EXTI_TRIGGER_FALLING;
  449. 238:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  450. 239:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** else
  451. 240:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  452. 241:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* No Trigger selected */
  453. 242:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** pExtiConfig->Trigger = 0x00u;
  454. 202 .loc 1 242 0
  455. 203 003a 0020 movs r0, #0
  456. 204 003c 8860 str r0, [r1, #8]
  457. 205 003e 7047 bx lr
  458. 206 .LVL18:
  459. 207 .L23:
  460. 211:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  461. 208 .loc 1 211 0
  462. 209 0040 0022 movs r2, #0
  463. 210 0042 4A60 str r2, [r1, #4]
  464. 211 0044 EFE7 b .L16
  465. ARM GAS /tmp/ccuBsENf.s page 9
  466. 212 .L24:
  467. 215:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  468. 213 .loc 1 215 0
  469. 214 0046 0422 movs r2, #4
  470. 215 0048 4A60 str r2, [r1, #4]
  471. 216 004a ECE7 b .L16
  472. 217 .LVL19:
  473. 218 .L25:
  474. 226:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  475. 219 .loc 1 226 0
  476. 220 004c 094A ldr r2, .L28
  477. 221 004e D268 ldr r2, [r2, #12]
  478. 222 0050 9343 bics r3, r3, r2
  479. 223 0052 03D0 beq .L27
  480. 232:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  481. 224 .loc 1 232 0
  482. 225 0054 0823 movs r3, #8
  483. 226 0056 8B60 str r3, [r1, #8]
  484. 243:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  485. 244:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  486. 245:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return HAL_OK;
  487. 227 .loc 1 245 0
  488. 228 0058 0020 movs r0, #0
  489. 229 005a 7047 bx lr
  490. 230 .L27:
  491. 228:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  492. 231 .loc 1 228 0
  493. 232 005c 1023 movs r3, #16
  494. 233 005e 8B60 str r3, [r1, #8]
  495. 234 .loc 1 245 0
  496. 235 0060 0020 movs r0, #0
  497. 236 0062 7047 bx lr
  498. 237 .L26:
  499. 237:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  500. 238 .loc 1 237 0
  501. 239 0064 0C23 movs r3, #12
  502. 240 0066 8B60 str r3, [r1, #8]
  503. 241 .loc 1 245 0
  504. 242 0068 0020 movs r0, #0
  505. 243 006a 7047 bx lr
  506. 244 .LVL20:
  507. 245 .L21:
  508. 199:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  509. 246 .loc 1 199 0
  510. 247 006c 0120 movs r0, #1
  511. 248 .LVL21:
  512. 249 006e 7047 bx lr
  513. 250 .LVL22:
  514. 251 .L22:
  515. 252 0070 0120 movs r0, #1
  516. 253 .LVL23:
  517. 246:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  518. 254 .loc 1 246 0
  519. 255 0072 7047 bx lr
  520. 256 .L29:
  521. 257 .align 2
  522. 258 .L28:
  523. ARM GAS /tmp/ccuBsENf.s page 10
  524. 259 0074 003C0140 .word 1073822720
  525. 260 .cfi_endproc
  526. 261 .LFE131:
  527. 263 .section .text.HAL_EXTI_ClearConfigLine,"ax",%progbits
  528. 264 .align 1
  529. 265 .global HAL_EXTI_ClearConfigLine
  530. 266 .syntax unified
  531. 267 .thumb
  532. 268 .thumb_func
  533. 269 .fpu fpv4-sp-d16
  534. 271 HAL_EXTI_ClearConfigLine:
  535. 272 .LFB132:
  536. 247:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  537. 248:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  538. 249:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Clear whole configuration of a dedicated Exti line.
  539. 250:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param hexti Exti handle.
  540. 251:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @retval HAL Status.
  541. 252:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  542. 253:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_ClearConfigLine(EXTI_HandleTypeDef *hexti)
  543. 254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  544. 273 .loc 1 254 0
  545. 274 .cfi_startproc
  546. 275 @ args = 0, pretend = 0, frame = 0
  547. 276 @ frame_needed = 0, uses_anonymous_args = 0
  548. 277 @ link register save eliminated.
  549. 278 .LVL24:
  550. 255:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check null pointer */
  551. 256:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if (hexti == NULL)
  552. 279 .loc 1 256 0
  553. 280 0000 0246 mov r2, r0
  554. 281 0002 B0B1 cbz r0, .L32
  555. 257:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  556. 258:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return HAL_ERROR;
  557. 259:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  558. 260:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  559. 261:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check the parameter */
  560. 262:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  561. 263:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  562. 264:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* 1] Clear interrupt mode */
  563. 265:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->IMR = (EXTI->IMR & ~hexti->Line);
  564. 282 .loc 1 265 0
  565. 283 0004 0C4B ldr r3, .L33
  566. 284 0006 1968 ldr r1, [r3]
  567. 285 0008 0068 ldr r0, [r0]
  568. 286 .LVL25:
  569. 287 000a 21EA0001 bic r1, r1, r0
  570. 288 000e 1960 str r1, [r3]
  571. 266:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  572. 267:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* 2] Clear event mode */
  573. 268:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->EMR = (EXTI->EMR & ~hexti->Line);
  574. 289 .loc 1 268 0
  575. 290 0010 5968 ldr r1, [r3, #4]
  576. 291 0012 1068 ldr r0, [r2]
  577. 292 0014 21EA0001 bic r1, r1, r0
  578. 293 0018 5960 str r1, [r3, #4]
  579. 269:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  580. 270:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* 3] Clear triggers */
  581. ARM GAS /tmp/ccuBsENf.s page 11
  582. 271:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->RTSR = (EXTI->RTSR & ~hexti->Line);
  583. 294 .loc 1 271 0
  584. 295 001a 9968 ldr r1, [r3, #8]
  585. 296 001c 1068 ldr r0, [r2]
  586. 297 001e 21EA0001 bic r1, r1, r0
  587. 298 0022 9960 str r1, [r3, #8]
  588. 272:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->FTSR = (EXTI->FTSR & ~hexti->Line);
  589. 299 .loc 1 272 0
  590. 300 0024 D968 ldr r1, [r3, #12]
  591. 301 0026 1268 ldr r2, [r2]
  592. 302 .LVL26:
  593. 303 0028 21EA0202 bic r2, r1, r2
  594. 304 002c DA60 str r2, [r3, #12]
  595. 273:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  596. 274:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return HAL_OK;
  597. 305 .loc 1 274 0
  598. 306 002e 0020 movs r0, #0
  599. 307 0030 7047 bx lr
  600. 308 .LVL27:
  601. 309 .L32:
  602. 258:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  603. 310 .loc 1 258 0
  604. 311 0032 0120 movs r0, #1
  605. 312 .LVL28:
  606. 275:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  607. 313 .loc 1 275 0
  608. 314 0034 7047 bx lr
  609. 315 .L34:
  610. 316 0036 00BF .align 2
  611. 317 .L33:
  612. 318 0038 003C0140 .word 1073822720
  613. 319 .cfi_endproc
  614. 320 .LFE132:
  615. 322 .section .text.HAL_EXTI_RegisterCallback,"ax",%progbits
  616. 323 .align 1
  617. 324 .global HAL_EXTI_RegisterCallback
  618. 325 .syntax unified
  619. 326 .thumb
  620. 327 .thumb_func
  621. 328 .fpu fpv4-sp-d16
  622. 330 HAL_EXTI_RegisterCallback:
  623. 331 .LFB133:
  624. 276:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  625. 277:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  626. 278:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Register callback for a dedicated Exti line.
  627. 279:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param hexti Exti handle.
  628. 280:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param CallbackID User callback identifier.
  629. 281:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * This parameter can be one of @arg @ref EXTI_CallbackIDTypeDef values.
  630. 282:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param pPendingCbfn function pointer to be stored as callback.
  631. 283:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @retval HAL Status.
  632. 284:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  633. 285:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_RegisterCallback(EXTI_HandleTypeDef *hexti, EXTI_CallbackIDTypeDef Callb
  634. 286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  635. 332 .loc 1 286 0
  636. 333 .cfi_startproc
  637. 334 @ args = 0, pretend = 0, frame = 0
  638. 335 @ frame_needed = 0, uses_anonymous_args = 0
  639. ARM GAS /tmp/ccuBsENf.s page 12
  640. 336 @ link register save eliminated.
  641. 337 .LVL29:
  642. 287:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** HAL_StatusTypeDef status = HAL_OK;
  643. 288:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  644. 289:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** switch (CallbackID)
  645. 338 .loc 1 289 0
  646. 339 0000 11B9 cbnz r1, .L39
  647. 290:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  648. 291:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** case HAL_EXTI_COMMON_CB_ID:
  649. 292:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** hexti->RisingCallback = pPendingCbfn;
  650. 340 .loc 1 292 0
  651. 341 0002 4260 str r2, [r0, #4]
  652. 287:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** HAL_StatusTypeDef status = HAL_OK;
  653. 342 .loc 1 287 0
  654. 343 0004 0020 movs r0, #0
  655. 344 .LVL30:
  656. 293:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** break;
  657. 345 .loc 1 293 0
  658. 346 0006 7047 bx lr
  659. 347 .LVL31:
  660. 348 .L39:
  661. 294:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  662. 295:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** default:
  663. 296:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** status = HAL_ERROR;
  664. 349 .loc 1 296 0
  665. 350 0008 0120 movs r0, #1
  666. 351 .LVL32:
  667. 297:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** break;
  668. 298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  669. 299:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  670. 300:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return status;
  671. 301:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  672. 352 .loc 1 301 0
  673. 353 000a 7047 bx lr
  674. 354 .cfi_endproc
  675. 355 .LFE133:
  676. 357 .section .text.HAL_EXTI_GetHandle,"ax",%progbits
  677. 358 .align 1
  678. 359 .global HAL_EXTI_GetHandle
  679. 360 .syntax unified
  680. 361 .thumb
  681. 362 .thumb_func
  682. 363 .fpu fpv4-sp-d16
  683. 365 HAL_EXTI_GetHandle:
  684. 366 .LFB134:
  685. 302:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  686. 303:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  687. 304:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Store line number as handle private field.
  688. 305:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param hexti Exti handle.
  689. 306:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param ExtiLine Exti line number.
  690. 307:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * This parameter can be from 0 to @ref EXTI_LINE_NB.
  691. 308:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @retval HAL Status.
  692. 309:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  693. 310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_GetHandle(EXTI_HandleTypeDef *hexti, uint32_t ExtiLine)
  694. 311:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  695. 367 .loc 1 311 0
  696. 368 .cfi_startproc
  697. ARM GAS /tmp/ccuBsENf.s page 13
  698. 369 @ args = 0, pretend = 0, frame = 0
  699. 370 @ frame_needed = 0, uses_anonymous_args = 0
  700. 371 @ link register save eliminated.
  701. 372 .LVL33:
  702. 312:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check the parameters */
  703. 313:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_LINE(ExtiLine));
  704. 314:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  705. 315:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check null pointer */
  706. 316:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if (hexti == NULL)
  707. 373 .loc 1 316 0
  708. 374 0000 10B1 cbz r0, .L42
  709. 317:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  710. 318:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return HAL_ERROR;
  711. 319:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  712. 320:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** else
  713. 321:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  714. 322:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Store line number as handle private field */
  715. 323:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** hexti->Line = ExtiLine;
  716. 375 .loc 1 323 0
  717. 376 0002 0160 str r1, [r0]
  718. 324:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  719. 325:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return HAL_OK;
  720. 377 .loc 1 325 0
  721. 378 0004 0020 movs r0, #0
  722. 379 .LVL34:
  723. 380 0006 7047 bx lr
  724. 381 .LVL35:
  725. 382 .L42:
  726. 318:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  727. 383 .loc 1 318 0
  728. 384 0008 0120 movs r0, #1
  729. 385 .LVL36:
  730. 326:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  731. 327:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  732. 386 .loc 1 327 0
  733. 387 000a 7047 bx lr
  734. 388 .cfi_endproc
  735. 389 .LFE134:
  736. 391 .section .text.HAL_EXTI_IRQHandler,"ax",%progbits
  737. 392 .align 1
  738. 393 .global HAL_EXTI_IRQHandler
  739. 394 .syntax unified
  740. 395 .thumb
  741. 396 .thumb_func
  742. 397 .fpu fpv4-sp-d16
  743. 399 HAL_EXTI_IRQHandler:
  744. 400 .LFB135:
  745. 328:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  746. 329:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  747. 330:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @}
  748. 331:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  749. 332:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  750. 333:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /** @addtogroup EXTI_Exported_Functions_Group2
  751. 334:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief EXTI IO functions.
  752. 335:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** *
  753. 336:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** @verbatim
  754. 337:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ===============================================================================
  755. ARM GAS /tmp/ccuBsENf.s page 14
  756. 338:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ##### IO operation functions #####
  757. 339:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** ===============================================================================
  758. 340:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  759. 341:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** @endverbatim
  760. 342:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @{
  761. 343:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  762. 344:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  763. 345:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  764. 346:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Handle EXTI interrupt request.
  765. 347:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param hexti Exti handle.
  766. 348:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @retval none.
  767. 349:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  768. 350:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** void HAL_EXTI_IRQHandler(EXTI_HandleTypeDef *hexti)
  769. 351:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  770. 401 .loc 1 351 0
  771. 402 .cfi_startproc
  772. 403 @ args = 0, pretend = 0, frame = 0
  773. 404 @ frame_needed = 0, uses_anonymous_args = 0
  774. 405 .LVL37:
  775. 406 0000 08B5 push {r3, lr}
  776. 407 .LCFI4:
  777. 408 .cfi_def_cfa_offset 8
  778. 409 .cfi_offset 3, -8
  779. 410 .cfi_offset 14, -4
  780. 352:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if (EXTI->PR != 0x00u)
  781. 411 .loc 1 352 0
  782. 412 0002 054B ldr r3, .L46
  783. 413 0004 5B69 ldr r3, [r3, #20]
  784. 414 0006 2BB1 cbz r3, .L43
  785. 353:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  786. 354:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Clear pending bit */
  787. 355:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->PR = hexti->Line;
  788. 415 .loc 1 355 0
  789. 416 0008 0268 ldr r2, [r0]
  790. 417 000a 034B ldr r3, .L46
  791. 418 000c 5A61 str r2, [r3, #20]
  792. 356:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  793. 357:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Call callback */
  794. 358:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** if (hexti->RisingCallback != NULL)
  795. 419 .loc 1 358 0
  796. 420 000e 4368 ldr r3, [r0, #4]
  797. 421 0010 03B1 cbz r3, .L43
  798. 359:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  799. 360:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** hexti->RisingCallback();
  800. 422 .loc 1 360 0
  801. 423 0012 9847 blx r3
  802. 424 .LVL38:
  803. 425 .L43:
  804. 426 0014 08BD pop {r3, pc}
  805. 427 .L47:
  806. 428 0016 00BF .align 2
  807. 429 .L46:
  808. 430 0018 003C0140 .word 1073822720
  809. 431 .cfi_endproc
  810. 432 .LFE135:
  811. 434 .section .text.HAL_EXTI_GetPending,"ax",%progbits
  812. 435 .align 1
  813. ARM GAS /tmp/ccuBsENf.s page 15
  814. 436 .global HAL_EXTI_GetPending
  815. 437 .syntax unified
  816. 438 .thumb
  817. 439 .thumb_func
  818. 440 .fpu fpv4-sp-d16
  819. 442 HAL_EXTI_GetPending:
  820. 443 .LFB136:
  821. 361:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  822. 362:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  823. 363:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  824. 364:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  825. 365:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  826. 366:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Get interrupt pending bit of a dedicated line.
  827. 367:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param hexti Exti handle.
  828. 368:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param Edge Specify which pending edge as to be checked.
  829. 369:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * This parameter can be one of the following values:
  830. 370:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @arg @ref EXTI_TRIGGER_RISING_FALLING
  831. 371:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * This parameter is kept for compatibility with other series.
  832. 372:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @retval 1 if interrupt is pending else 0.
  833. 373:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  834. 374:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** uint32_t HAL_EXTI_GetPending(EXTI_HandleTypeDef *hexti, uint32_t Edge)
  835. 375:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  836. 444 .loc 1 375 0
  837. 445 .cfi_startproc
  838. 446 @ args = 0, pretend = 0, frame = 0
  839. 447 @ frame_needed = 0, uses_anonymous_args = 0
  840. 448 @ link register save eliminated.
  841. 449 .LVL39:
  842. 376:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** __IO uint32_t *regaddr;
  843. 377:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** uint32_t regval;
  844. 378:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  845. 379:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check parameters */
  846. 380:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  847. 381:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_PENDING_EDGE(Edge));
  848. 382:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  849. 383:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Get pending bit */
  850. 384:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** regaddr = &EXTI->PR;
  851. 385:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  852. 386:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* return 1 if bit is set else 0 */
  853. 387:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** regval = ((*regaddr & hexti->Line) >> POSITION_VAL(hexti->Line));
  854. 450 .loc 1 387 0
  855. 451 0000 054B ldr r3, .L49
  856. 452 0002 1A68 ldr r2, [r3]
  857. 453 0004 0368 ldr r3, [r0]
  858. 454 0006 02EA0300 and r0, r2, r3
  859. 455 .LVL40:
  860. 456 .LBB4:
  861. 457 .LBB5:
  862. 458 .file 2 "Drivers/CMSIS/Include/cmsis_gcc.h"
  863. 1:Drivers/CMSIS/Include/cmsis_gcc.h **** /**************************************************************************//**
  864. 2:Drivers/CMSIS/Include/cmsis_gcc.h **** * @file cmsis_gcc.h
  865. 3:Drivers/CMSIS/Include/cmsis_gcc.h **** * @brief CMSIS compiler GCC header file
  866. 4:Drivers/CMSIS/Include/cmsis_gcc.h **** * @version V5.0.4
  867. 5:Drivers/CMSIS/Include/cmsis_gcc.h **** * @date 09. April 2018
  868. 6:Drivers/CMSIS/Include/cmsis_gcc.h **** ******************************************************************************/
  869. 7:Drivers/CMSIS/Include/cmsis_gcc.h **** /*
  870. 8:Drivers/CMSIS/Include/cmsis_gcc.h **** * Copyright (c) 2009-2018 Arm Limited. All rights reserved.
  871. ARM GAS /tmp/ccuBsENf.s page 16
  872. 9:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  873. 10:Drivers/CMSIS/Include/cmsis_gcc.h **** * SPDX-License-Identifier: Apache-2.0
  874. 11:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  875. 12:Drivers/CMSIS/Include/cmsis_gcc.h **** * Licensed under the Apache License, Version 2.0 (the License); you may
  876. 13:Drivers/CMSIS/Include/cmsis_gcc.h **** * not use this file except in compliance with the License.
  877. 14:Drivers/CMSIS/Include/cmsis_gcc.h **** * You may obtain a copy of the License at
  878. 15:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  879. 16:Drivers/CMSIS/Include/cmsis_gcc.h **** * www.apache.org/licenses/LICENSE-2.0
  880. 17:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  881. 18:Drivers/CMSIS/Include/cmsis_gcc.h **** * Unless required by applicable law or agreed to in writing, software
  882. 19:Drivers/CMSIS/Include/cmsis_gcc.h **** * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  883. 20:Drivers/CMSIS/Include/cmsis_gcc.h **** * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  884. 21:Drivers/CMSIS/Include/cmsis_gcc.h **** * See the License for the specific language governing permissions and
  885. 22:Drivers/CMSIS/Include/cmsis_gcc.h **** * limitations under the License.
  886. 23:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  887. 24:Drivers/CMSIS/Include/cmsis_gcc.h ****
  888. 25:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __CMSIS_GCC_H
  889. 26:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_H
  890. 27:Drivers/CMSIS/Include/cmsis_gcc.h ****
  891. 28:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ignore some GCC warnings */
  892. 29:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  893. 30:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion"
  894. 31:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion"
  895. 32:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter"
  896. 33:Drivers/CMSIS/Include/cmsis_gcc.h ****
  897. 34:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Fallback for __has_builtin */
  898. 35:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __has_builtin
  899. 36:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __has_builtin(x) (0)
  900. 37:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  901. 38:Drivers/CMSIS/Include/cmsis_gcc.h ****
  902. 39:Drivers/CMSIS/Include/cmsis_gcc.h **** /* CMSIS compiler specific defines */
  903. 40:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ASM
  904. 41:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ASM __asm
  905. 42:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  906. 43:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __INLINE
  907. 44:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __INLINE inline
  908. 45:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  909. 46:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_INLINE
  910. 47:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_INLINE static inline
  911. 48:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  912. 49:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_FORCEINLINE
  913. 50:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline
  914. 51:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  915. 52:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __NO_RETURN
  916. 53:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NO_RETURN __attribute__((__noreturn__))
  917. 54:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  918. 55:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __USED
  919. 56:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __USED __attribute__((used))
  920. 57:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  921. 58:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __WEAK
  922. 59:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WEAK __attribute__((weak))
  923. 60:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  924. 61:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED
  925. 62:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED __attribute__((packed, aligned(1)))
  926. 63:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  927. 64:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_STRUCT
  928. 65:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_STRUCT struct __attribute__((packed, aligned(1)))
  929. ARM GAS /tmp/ccuBsENf.s page 17
  930. 66:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  931. 67:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_UNION
  932. 68:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_UNION union __attribute__((packed, aligned(1)))
  933. 69:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  934. 70:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32 /* deprecated */
  935. 71:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  936. 72:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  937. 73:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  938. 74:Drivers/CMSIS/Include/cmsis_gcc.h **** struct __attribute__((packed)) T_UINT32 { uint32_t v; };
  939. 75:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  940. 76:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
  941. 77:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  942. 78:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_WRITE
  943. 79:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  944. 80:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  945. 81:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  946. 82:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; };
  947. 83:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  948. 84:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))-
  949. 85:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  950. 86:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_READ
  951. 87:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  952. 88:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  953. 89:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  954. 90:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_READ { uint16_t v; };
  955. 91:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  956. 92:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(add
  957. 93:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  958. 94:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_WRITE
  959. 95:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  960. 96:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  961. 97:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  962. 98:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; };
  963. 99:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  964. 100:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))-
  965. 101:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  966. 102:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_READ
  967. 103:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  968. 104:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  969. 105:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  970. 106:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_READ { uint32_t v; };
  971. 107:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  972. 108:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(add
  973. 109:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  974. 110:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ALIGNED
  975. 111:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ALIGNED(x) __attribute__((aligned(x)))
  976. 112:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  977. 113:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __RESTRICT
  978. 114:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __RESTRICT __restrict
  979. 115:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  980. 116:Drivers/CMSIS/Include/cmsis_gcc.h ****
  981. 117:Drivers/CMSIS/Include/cmsis_gcc.h ****
  982. 118:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################### Core Function Access ########################### */
  983. 119:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \ingroup CMSIS_Core_FunctionInterface
  984. 120:Drivers/CMSIS/Include/cmsis_gcc.h **** \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions
  985. 121:Drivers/CMSIS/Include/cmsis_gcc.h **** @{
  986. 122:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  987. ARM GAS /tmp/ccuBsENf.s page 18
  988. 123:Drivers/CMSIS/Include/cmsis_gcc.h ****
  989. 124:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  990. 125:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable IRQ Interrupts
  991. 126:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables IRQ interrupts by clearing the I-bit in the CPSR.
  992. 127:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  993. 128:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  994. 129:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __enable_irq(void)
  995. 130:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  996. 131:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie i" : : : "memory");
  997. 132:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  998. 133:Drivers/CMSIS/Include/cmsis_gcc.h ****
  999. 134:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1000. 135:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1001. 136:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable IRQ Interrupts
  1002. 137:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables IRQ interrupts by setting the I-bit in the CPSR.
  1003. 138:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  1004. 139:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1005. 140:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __disable_irq(void)
  1006. 141:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1007. 142:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid i" : : : "memory");
  1008. 143:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1009. 144:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1010. 145:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1011. 146:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1012. 147:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register
  1013. 148:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the Control Register.
  1014. 149:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Control Register value
  1015. 150:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1016. 151:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_CONTROL(void)
  1017. 152:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1018. 153:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1019. 154:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1020. 155:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control" : "=r" (result) );
  1021. 156:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1022. 157:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1023. 158:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1024. 159:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1025. 160:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1026. 161:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1027. 162:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register (non-secure)
  1028. 163:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the non-secure Control Register when in secure mode.
  1029. 164:Drivers/CMSIS/Include/cmsis_gcc.h **** \return non-secure Control Register value
  1030. 165:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1031. 166:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void)
  1032. 167:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1033. 168:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1034. 169:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1035. 170:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control_ns" : "=r" (result) );
  1036. 171:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1037. 172:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1038. 173:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1039. 174:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1040. 175:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1041. 176:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1042. 177:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register
  1043. 178:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the Control Register.
  1044. 179:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set
  1045. ARM GAS /tmp/ccuBsENf.s page 19
  1046. 180:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1047. 181:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_CONTROL(uint32_t control)
  1048. 182:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1049. 183:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control, %0" : : "r" (control) : "memory");
  1050. 184:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1051. 185:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1052. 186:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1053. 187:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1054. 188:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1055. 189:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register (non-secure)
  1056. 190:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the non-secure Control Register when in secure state.
  1057. 191:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set
  1058. 192:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1059. 193:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control)
  1060. 194:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1061. 195:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory");
  1062. 196:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1063. 197:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1064. 198:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1065. 199:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1066. 200:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1067. 201:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get IPSR Register
  1068. 202:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the IPSR Register.
  1069. 203:Drivers/CMSIS/Include/cmsis_gcc.h **** \return IPSR Register value
  1070. 204:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1071. 205:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_IPSR(void)
  1072. 206:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1073. 207:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1074. 208:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1075. 209:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  1076. 210:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1077. 211:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1078. 212:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1079. 213:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1080. 214:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1081. 215:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get APSR Register
  1082. 216:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the APSR Register.
  1083. 217:Drivers/CMSIS/Include/cmsis_gcc.h **** \return APSR Register value
  1084. 218:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1085. 219:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_APSR(void)
  1086. 220:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1087. 221:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1088. 222:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1089. 223:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, apsr" : "=r" (result) );
  1090. 224:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1091. 225:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1092. 226:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1093. 227:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1094. 228:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1095. 229:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get xPSR Register
  1096. 230:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the xPSR Register.
  1097. 231:Drivers/CMSIS/Include/cmsis_gcc.h **** \return xPSR Register value
  1098. 232:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1099. 233:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_xPSR(void)
  1100. 234:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1101. 235:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1102. 236:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1103. ARM GAS /tmp/ccuBsENf.s page 20
  1104. 237:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, xpsr" : "=r" (result) );
  1105. 238:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1106. 239:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1107. 240:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1108. 241:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1109. 242:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1110. 243:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer
  1111. 244:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer (PSP).
  1112. 245:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value
  1113. 246:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1114. 247:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PSP(void)
  1115. 248:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1116. 249:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1117. 250:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1118. 251:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp" : "=r" (result) );
  1119. 252:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1120. 253:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1121. 254:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1122. 255:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1123. 256:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1124. 257:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1125. 258:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer (non-secure)
  1126. 259:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure s
  1127. 260:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value
  1128. 261:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1129. 262:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void)
  1130. 263:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1131. 264:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1132. 265:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1133. 266:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp_ns" : "=r" (result) );
  1134. 267:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1135. 268:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1136. 269:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1137. 270:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1138. 271:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1139. 272:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1140. 273:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer
  1141. 274:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer (PSP).
  1142. 275:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set
  1143. 276:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1144. 277:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack)
  1145. 278:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1146. 279:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : );
  1147. 280:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1148. 281:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1149. 282:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1150. 283:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1151. 284:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1152. 285:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer (non-secure)
  1153. 286:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure sta
  1154. 287:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set
  1155. 288:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1156. 289:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack)
  1157. 290:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1158. 291:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : );
  1159. 292:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1160. 293:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1161. ARM GAS /tmp/ccuBsENf.s page 21
  1162. 294:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1163. 295:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1164. 296:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1165. 297:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer
  1166. 298:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer (MSP).
  1167. 299:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value
  1168. 300:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1169. 301:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_MSP(void)
  1170. 302:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1171. 303:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1172. 304:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1173. 305:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp" : "=r" (result) );
  1174. 306:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1175. 307:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1176. 308:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1177. 309:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1178. 310:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1179. 311:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1180. 312:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer (non-secure)
  1181. 313:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure stat
  1182. 314:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value
  1183. 315:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1184. 316:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void)
  1185. 317:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1186. 318:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1187. 319:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1188. 320:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp_ns" : "=r" (result) );
  1189. 321:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1190. 322:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1191. 323:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1192. 324:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1193. 325:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1194. 326:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1195. 327:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer
  1196. 328:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer (MSP).
  1197. 329:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set
  1198. 330:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1199. 331:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack)
  1200. 332:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1201. 333:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : );
  1202. 334:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1203. 335:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1204. 336:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1205. 337:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1206. 338:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1207. 339:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer (non-secure)
  1208. 340:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state.
  1209. 341:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set
  1210. 342:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1211. 343:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack)
  1212. 344:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1213. 345:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : );
  1214. 346:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1215. 347:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1216. 348:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1217. 349:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1218. 350:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1219. ARM GAS /tmp/ccuBsENf.s page 22
  1220. 351:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1221. 352:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Stack Pointer (non-secure)
  1222. 353:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state.
  1223. 354:Drivers/CMSIS/Include/cmsis_gcc.h **** \return SP Register value
  1224. 355:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1225. 356:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void)
  1226. 357:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1227. 358:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1228. 359:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1229. 360:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, sp_ns" : "=r" (result) );
  1230. 361:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1231. 362:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1232. 363:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1233. 364:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1234. 365:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1235. 366:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Stack Pointer (non-secure)
  1236. 367:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state.
  1237. 368:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfStack Stack Pointer value to set
  1238. 369:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1239. 370:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack)
  1240. 371:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1241. 372:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : );
  1242. 373:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1243. 374:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1244. 375:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1245. 376:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1246. 377:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1247. 378:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask
  1248. 379:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the priority mask bit from the Priority Mask Register.
  1249. 380:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value
  1250. 381:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1251. 382:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PRIMASK(void)
  1252. 383:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1253. 384:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1254. 385:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1255. 386:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
  1256. 387:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1257. 388:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1258. 389:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1259. 390:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1260. 391:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1261. 392:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1262. 393:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask (non-secure)
  1263. 394:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the non-secure priority mask bit from the Priority Mask Reg
  1264. 395:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value
  1265. 396:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1266. 397:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void)
  1267. 398:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1268. 399:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1269. 400:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1270. 401:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask_ns" : "=r" (result) :: "memory");
  1271. 402:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1272. 403:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1273. 404:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1274. 405:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1275. 406:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1276. 407:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1277. ARM GAS /tmp/ccuBsENf.s page 23
  1278. 408:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask
  1279. 409:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Priority Mask Register.
  1280. 410:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask
  1281. 411:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1282. 412:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask)
  1283. 413:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1284. 414:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  1285. 415:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1286. 416:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1287. 417:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1288. 418:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1289. 419:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1290. 420:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask (non-secure)
  1291. 421:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Priority Mask Register when in secure state.
  1292. 422:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask
  1293. 423:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1294. 424:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask)
  1295. 425:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1296. 426:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory");
  1297. 427:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1298. 428:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1299. 429:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1300. 430:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1301. 431:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  1302. 432:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  1303. 433:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  1304. 434:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1305. 435:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable FIQ
  1306. 436:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables FIQ interrupts by clearing the F-bit in the CPSR.
  1307. 437:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  1308. 438:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1309. 439:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __enable_fault_irq(void)
  1310. 440:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1311. 441:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie f" : : : "memory");
  1312. 442:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1313. 443:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1314. 444:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1315. 445:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1316. 446:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable FIQ
  1317. 447:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables FIQ interrupts by setting the F-bit in the CPSR.
  1318. 448:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  1319. 449:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1320. 450:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __disable_fault_irq(void)
  1321. 451:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1322. 452:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid f" : : : "memory");
  1323. 453:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1324. 454:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1325. 455:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1326. 456:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1327. 457:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority
  1328. 458:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Base Priority register.
  1329. 459:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value
  1330. 460:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1331. 461:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_BASEPRI(void)
  1332. 462:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1333. 463:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1334. 464:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1335. ARM GAS /tmp/ccuBsENf.s page 24
  1336. 465:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri" : "=r" (result) );
  1337. 466:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1338. 467:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1339. 468:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1340. 469:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1341. 470:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1342. 471:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1343. 472:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority (non-secure)
  1344. 473:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Base Priority register when in secure state.
  1345. 474:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value
  1346. 475:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1347. 476:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void)
  1348. 477:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1349. 478:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1350. 479:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1351. 480:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) );
  1352. 481:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1353. 482:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1354. 483:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1355. 484:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1356. 485:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1357. 486:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1358. 487:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority
  1359. 488:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register.
  1360. 489:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set
  1361. 490:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1362. 491:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri)
  1363. 492:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1364. 493:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory");
  1365. 494:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1366. 495:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1367. 496:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1368. 497:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1369. 498:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1370. 499:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority (non-secure)
  1371. 500:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Base Priority register when in secure state.
  1372. 501:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set
  1373. 502:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1374. 503:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri)
  1375. 504:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1376. 505:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory");
  1377. 506:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1378. 507:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1379. 508:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1380. 509:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1381. 510:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1382. 511:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority with condition
  1383. 512:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register only if BASEPRI masking is disable
  1384. 513:Drivers/CMSIS/Include/cmsis_gcc.h **** or the new value increases the BASEPRI priority level.
  1385. 514:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set
  1386. 515:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1387. 516:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri)
  1388. 517:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1389. 518:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory");
  1390. 519:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1391. 520:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1392. 521:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1393. ARM GAS /tmp/ccuBsENf.s page 25
  1394. 522:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1395. 523:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask
  1396. 524:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Fault Mask register.
  1397. 525:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value
  1398. 526:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1399. 527:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void)
  1400. 528:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1401. 529:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1402. 530:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1403. 531:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask" : "=r" (result) );
  1404. 532:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1405. 533:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1406. 534:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1407. 535:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1408. 536:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1409. 537:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1410. 538:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask (non-secure)
  1411. 539:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Fault Mask register when in secure state.
  1412. 540:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value
  1413. 541:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1414. 542:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void)
  1415. 543:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1416. 544:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1417. 545:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1418. 546:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) );
  1419. 547:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1420. 548:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1421. 549:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1422. 550:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1423. 551:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1424. 552:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1425. 553:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask
  1426. 554:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Fault Mask register.
  1427. 555:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set
  1428. 556:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1429. 557:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask)
  1430. 558:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1431. 559:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory");
  1432. 560:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1433. 561:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1434. 562:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1435. 563:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1436. 564:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1437. 565:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask (non-secure)
  1438. 566:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Fault Mask register when in secure state.
  1439. 567:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set
  1440. 568:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1441. 569:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask)
  1442. 570:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1443. 571:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory");
  1444. 572:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1445. 573:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1446. 574:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1447. 575:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  1448. 576:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  1449. 577:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */
  1450. 578:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1451. ARM GAS /tmp/ccuBsENf.s page 26
  1452. 579:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1453. 580:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
  1454. 581:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) )
  1455. 582:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1456. 583:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1457. 584:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer Limit
  1458. 585:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  1459. 586:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always in non-secure
  1460. 587:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  1461. 588:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1462. 589:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer Limit (PSPLIM).
  1463. 590:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSPLIM Register value
  1464. 591:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1465. 592:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PSPLIM(void)
  1466. 593:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1467. 594:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  1468. 595:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  1469. 596:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  1470. 597:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  1471. 598:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1472. 599:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1473. 600:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psplim" : "=r" (result) );
  1474. 601:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  1475. 602:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1476. 603:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1477. 604:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1478. 605:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3))
  1479. 606:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1480. 607:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer Limit (non-secure)
  1481. 608:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  1482. 609:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always.
  1483. 610:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1484. 611:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in
  1485. 612:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSPLIM Register value
  1486. 613:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1487. 614:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void)
  1488. 615:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1489. 616:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  1490. 617:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  1491. 618:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  1492. 619:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1493. 620:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1494. 621:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) );
  1495. 622:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  1496. 623:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1497. 624:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1498. 625:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1499. 626:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1500. 627:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1501. 628:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1502. 629:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer Limit
  1503. 630:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  1504. 631:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored in non-secure
  1505. 632:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  1506. 633:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1507. 634:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM).
  1508. 635:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set
  1509. ARM GAS /tmp/ccuBsENf.s page 27
  1510. 636:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1511. 637:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit)
  1512. 638:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1513. 639:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  1514. 640:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  1515. 641:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  1516. 642:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)ProcStackPtrLimit;
  1517. 643:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1518. 644:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit));
  1519. 645:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1520. 646:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1521. 647:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1522. 648:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1523. 649:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1524. 650:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1525. 651:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer (non-secure)
  1526. 652:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  1527. 653:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored.
  1528. 654:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1529. 655:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in s
  1530. 656:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set
  1531. 657:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1532. 658:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit)
  1533. 659:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1534. 660:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  1535. 661:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  1536. 662:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)ProcStackPtrLimit;
  1537. 663:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1538. 664:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit));
  1539. 665:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1540. 666:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1541. 667:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1542. 668:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1543. 669:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1544. 670:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1545. 671:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer Limit
  1546. 672:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  1547. 673:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always in non-secure
  1548. 674:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  1549. 675:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1550. 676:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer Limit (MSPLIM).
  1551. 677:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSPLIM Register value
  1552. 678:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1553. 679:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_MSPLIM(void)
  1554. 680:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1555. 681:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  1556. 682:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  1557. 683:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  1558. 684:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  1559. 685:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1560. 686:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1561. 687:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msplim" : "=r" (result) );
  1562. 688:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  1563. 689:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1564. 690:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1565. 691:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1566. 692:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1567. ARM GAS /tmp/ccuBsENf.s page 28
  1568. 693:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1569. 694:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1570. 695:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer Limit (non-secure)
  1571. 696:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  1572. 697:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always.
  1573. 698:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1574. 699:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in sec
  1575. 700:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSPLIM Register value
  1576. 701:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1577. 702:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void)
  1578. 703:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1579. 704:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  1580. 705:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  1581. 706:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  1582. 707:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1583. 708:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1584. 709:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) );
  1585. 710:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  1586. 711:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1587. 712:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1588. 713:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1589. 714:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1590. 715:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1591. 716:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1592. 717:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer Limit
  1593. 718:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  1594. 719:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored in non-secure
  1595. 720:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  1596. 721:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1597. 722:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM).
  1598. 723:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set
  1599. 724:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1600. 725:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit)
  1601. 726:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1602. 727:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  1603. 728:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  1604. 729:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  1605. 730:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)MainStackPtrLimit;
  1606. 731:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1607. 732:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit));
  1608. 733:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1609. 734:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1610. 735:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1611. 736:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1612. 737:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1613. 738:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1614. 739:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer Limit (non-secure)
  1615. 740:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  1616. 741:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored.
  1617. 742:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1618. 743:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secu
  1619. 744:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] MainStackPtrLimit Main Stack Pointer value to set
  1620. 745:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1621. 746:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit)
  1622. 747:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1623. 748:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  1624. 749:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  1625. ARM GAS /tmp/ccuBsENf.s page 29
  1626. 750:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)MainStackPtrLimit;
  1627. 751:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1628. 752:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit));
  1629. 753:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1630. 754:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1631. 755:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1632. 756:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1633. 757:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
  1634. 758:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */
  1635. 759:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1636. 760:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1637. 761:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1638. 762:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get FPSCR
  1639. 763:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Floating Point Status/Control register.
  1640. 764:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Floating Point Status/Control register value
  1641. 765:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1642. 766:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_FPSCR(void)
  1643. 767:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1644. 768:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
  1645. 769:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__FPU_USED ) && (__FPU_USED == 1U)) )
  1646. 770:Drivers/CMSIS/Include/cmsis_gcc.h **** #if __has_builtin(__builtin_arm_get_fpscr)
  1647. 771:Drivers/CMSIS/Include/cmsis_gcc.h **** // Re-enable using built-in when GCC has been fixed
  1648. 772:Drivers/CMSIS/Include/cmsis_gcc.h **** // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2)
  1649. 773:Drivers/CMSIS/Include/cmsis_gcc.h **** /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */
  1650. 774:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_arm_get_fpscr();
  1651. 775:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1652. 776:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1653. 777:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1654. 778:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMRS %0, fpscr" : "=r" (result) );
  1655. 779:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1656. 780:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1657. 781:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1658. 782:Drivers/CMSIS/Include/cmsis_gcc.h **** return(0U);
  1659. 783:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1660. 784:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1661. 785:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1662. 786:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1663. 787:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1664. 788:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set FPSCR
  1665. 789:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Floating Point Status/Control register.
  1666. 790:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] fpscr Floating Point Status/Control value to set
  1667. 791:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1668. 792:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_FPSCR(uint32_t fpscr)
  1669. 793:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1670. 794:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
  1671. 795:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__FPU_USED ) && (__FPU_USED == 1U)) )
  1672. 796:Drivers/CMSIS/Include/cmsis_gcc.h **** #if __has_builtin(__builtin_arm_set_fpscr)
  1673. 797:Drivers/CMSIS/Include/cmsis_gcc.h **** // Re-enable using built-in when GCC has been fixed
  1674. 798:Drivers/CMSIS/Include/cmsis_gcc.h **** // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2)
  1675. 799:Drivers/CMSIS/Include/cmsis_gcc.h **** /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */
  1676. 800:Drivers/CMSIS/Include/cmsis_gcc.h **** __builtin_arm_set_fpscr(fpscr);
  1677. 801:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1678. 802:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc", "memory");
  1679. 803:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1680. 804:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1681. 805:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)fpscr;
  1682. 806:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1683. ARM GAS /tmp/ccuBsENf.s page 30
  1684. 807:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1685. 808:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1686. 809:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1687. 810:Drivers/CMSIS/Include/cmsis_gcc.h **** /*@} end of CMSIS_Core_RegAccFunctions */
  1688. 811:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1689. 812:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1690. 813:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################## Core Instruction Access ######################### */
  1691. 814:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
  1692. 815:Drivers/CMSIS/Include/cmsis_gcc.h **** Access to dedicated instructions
  1693. 816:Drivers/CMSIS/Include/cmsis_gcc.h **** @{
  1694. 817:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1695. 818:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1696. 819:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Define macros for porting to both thumb1 and thumb2.
  1697. 820:Drivers/CMSIS/Include/cmsis_gcc.h **** * For thumb1, use low register (r0-r7), specified by constraint "l"
  1698. 821:Drivers/CMSIS/Include/cmsis_gcc.h **** * Otherwise, use general registers, specified by constraint "r" */
  1699. 822:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined (__thumb__) && !defined (__thumb2__)
  1700. 823:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=l" (r)
  1701. 824:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+l" (r)
  1702. 825:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "l" (r)
  1703. 826:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1704. 827:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=r" (r)
  1705. 828:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+r" (r)
  1706. 829:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "r" (r)
  1707. 830:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1708. 831:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1709. 832:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1710. 833:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief No Operation
  1711. 834:Drivers/CMSIS/Include/cmsis_gcc.h **** \details No Operation does nothing. This instruction can be used for code alignment purposes.
  1712. 835:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1713. 836:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NOP() __ASM volatile ("nop")
  1714. 837:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1715. 838:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1716. 839:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Interrupt
  1717. 840:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Interrupt is a hint instruction that suspends execution until one of a number o
  1718. 841:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1719. 842:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFI() __ASM volatile ("wfi")
  1720. 843:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1721. 844:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1722. 845:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1723. 846:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Event
  1724. 847:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Event is a hint instruction that permits the processor to enter
  1725. 848:Drivers/CMSIS/Include/cmsis_gcc.h **** a low-power state until one of a number of events occurs.
  1726. 849:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1727. 850:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFE() __ASM volatile ("wfe")
  1728. 851:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1729. 852:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1730. 853:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1731. 854:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Send Event
  1732. 855:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Send Event is a hint instruction. It causes an event to be signaled to the CPU.
  1733. 856:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1734. 857:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __SEV() __ASM volatile ("sev")
  1735. 858:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1736. 859:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1737. 860:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1738. 861:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Instruction Synchronization Barrier
  1739. 862:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Instruction Synchronization Barrier flushes the pipeline in the processor,
  1740. 863:Drivers/CMSIS/Include/cmsis_gcc.h **** so that all instructions following the ISB are fetched from cache or memory,
  1741. ARM GAS /tmp/ccuBsENf.s page 31
  1742. 864:Drivers/CMSIS/Include/cmsis_gcc.h **** after the instruction has been completed.
  1743. 865:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1744. 866:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __ISB(void)
  1745. 867:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1746. 868:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("isb 0xF":::"memory");
  1747. 869:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1748. 870:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1749. 871:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1750. 872:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1751. 873:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Synchronization Barrier
  1752. 874:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Acts as a special kind of Data Memory Barrier.
  1753. 875:Drivers/CMSIS/Include/cmsis_gcc.h **** It completes when all explicit memory accesses before this instruction complete.
  1754. 876:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1755. 877:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __DSB(void)
  1756. 878:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1757. 879:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dsb 0xF":::"memory");
  1758. 880:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1759. 881:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1760. 882:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1761. 883:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1762. 884:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Memory Barrier
  1763. 885:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Ensures the apparent order of the explicit memory operations before
  1764. 886:Drivers/CMSIS/Include/cmsis_gcc.h **** and after the instruction, without ensuring their completion.
  1765. 887:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1766. 888:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __DMB(void)
  1767. 889:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1768. 890:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dmb 0xF":::"memory");
  1769. 891:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1770. 892:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1771. 893:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1772. 894:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1773. 895:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (32 bit)
  1774. 896:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x785
  1775. 897:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
  1776. 898:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
  1777. 899:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1778. 900:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __REV(uint32_t value)
  1779. 901:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1780. 902:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
  1781. 903:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_bswap32(value);
  1782. 904:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1783. 905:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1784. 906:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1785. 907:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
  1786. 908:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  1787. 909:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1788. 910:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1789. 911:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1790. 912:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1791. 913:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1792. 914:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (16 bit)
  1793. 915:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes
  1794. 916:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
  1795. 917:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
  1796. 918:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1797. 919:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __REV16(uint32_t value)
  1798. 920:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1799. ARM GAS /tmp/ccuBsENf.s page 32
  1800. 921:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1801. 922:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1802. 923:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
  1803. 924:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  1804. 925:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1805. 926:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1806. 927:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1807. 928:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1808. 929:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (16 bit)
  1809. 930:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For exam
  1810. 931:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
  1811. 932:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
  1812. 933:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1813. 934:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE int16_t __REVSH(int16_t value)
  1814. 935:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1815. 936:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
  1816. 937:Drivers/CMSIS/Include/cmsis_gcc.h **** return (int16_t)__builtin_bswap16(value);
  1817. 938:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  1818. 939:Drivers/CMSIS/Include/cmsis_gcc.h **** int16_t result;
  1819. 940:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1820. 941:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
  1821. 942:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  1822. 943:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1823. 944:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1824. 945:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1825. 946:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1826. 947:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1827. 948:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Rotate Right in unsigned value (32 bit)
  1828. 949:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Rotate Right (immediate) provides the value of the contents of a register rotated by a v
  1829. 950:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] op1 Value to rotate
  1830. 951:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] op2 Number of Bits to rotate
  1831. 952:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Rotated value
  1832. 953:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1833. 954:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
  1834. 955:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1835. 956:Drivers/CMSIS/Include/cmsis_gcc.h **** op2 %= 32U;
  1836. 957:Drivers/CMSIS/Include/cmsis_gcc.h **** if (op2 == 0U)
  1837. 958:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1838. 959:Drivers/CMSIS/Include/cmsis_gcc.h **** return op1;
  1839. 960:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1840. 961:Drivers/CMSIS/Include/cmsis_gcc.h **** return (op1 >> op2) | (op1 << (32U - op2));
  1841. 962:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1842. 963:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1843. 964:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1844. 965:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1845. 966:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Breakpoint
  1846. 967:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Causes the processor to enter Debug state.
  1847. 968:Drivers/CMSIS/Include/cmsis_gcc.h **** Debug tools can use this to investigate system state when the instruction at a particula
  1848. 969:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value is ignored by the processor.
  1849. 970:Drivers/CMSIS/Include/cmsis_gcc.h **** If required, a debugger can use it to store additional information about the break
  1850. 971:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1851. 972:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __BKPT(value) __ASM volatile ("bkpt "#value)
  1852. 973:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1853. 974:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1854. 975:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1855. 976:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse bit order of value
  1856. 977:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the bit order of the given value.
  1857. ARM GAS /tmp/ccuBsENf.s page 33
  1858. 978:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
  1859. 979:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
  1860. 980:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1861. 981:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value)
  1862. 982:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1863. 983:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1864. 984:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1865. 985:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  1866. 986:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  1867. 987:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  1868. 988:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  1869. 459 .loc 2 988 0
  1870. 460 .syntax unified
  1871. 461 @ 988 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  1872. 462 000a 93FAA3F3 rbit r3, r3
  1873. 463 @ 0 "" 2
  1874. 464 .LVL41:
  1875. 465 .thumb
  1876. 466 .syntax unified
  1877. 467 .LBE5:
  1878. 468 .LBE4:
  1879. 469 .loc 1 387 0
  1880. 470 000e B3FA83F3 clz r3, r3
  1881. 471 .LVL42:
  1882. 388:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  1883. 389:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** return regval;
  1884. 390:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  1885. 472 .loc 1 390 0
  1886. 473 0012 D840 lsrs r0, r0, r3
  1887. 474 .LVL43:
  1888. 475 0014 7047 bx lr
  1889. 476 .L50:
  1890. 477 0016 00BF .align 2
  1891. 478 .L49:
  1892. 479 0018 143C0140 .word 1073822740
  1893. 480 .cfi_endproc
  1894. 481 .LFE136:
  1895. 483 .section .text.HAL_EXTI_ClearPending,"ax",%progbits
  1896. 484 .align 1
  1897. 485 .global HAL_EXTI_ClearPending
  1898. 486 .syntax unified
  1899. 487 .thumb
  1900. 488 .thumb_func
  1901. 489 .fpu fpv4-sp-d16
  1902. 491 HAL_EXTI_ClearPending:
  1903. 492 .LFB137:
  1904. 391:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  1905. 392:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  1906. 393:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Clear interrupt pending bit of a dedicated line.
  1907. 394:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param hexti Exti handle.
  1908. 395:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param Edge Specify which pending edge as to be clear.
  1909. 396:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * This parameter can be one of the following values:
  1910. 397:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @arg @ref EXTI_TRIGGER_RISING_FALLING
  1911. 398:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * This parameter is kept for compatibility with other series.
  1912. 399:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @retval None.
  1913. 400:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  1914. 401:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** void HAL_EXTI_ClearPending(EXTI_HandleTypeDef *hexti, uint32_t Edge)
  1915. ARM GAS /tmp/ccuBsENf.s page 34
  1916. 402:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  1917. 493 .loc 1 402 0
  1918. 494 .cfi_startproc
  1919. 495 @ args = 0, pretend = 0, frame = 0
  1920. 496 @ frame_needed = 0, uses_anonymous_args = 0
  1921. 497 @ link register save eliminated.
  1922. 498 .LVL44:
  1923. 403:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check parameters */
  1924. 404:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  1925. 405:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_PENDING_EDGE(Edge));
  1926. 406:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  1927. 407:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->PR = hexti->Line;
  1928. 499 .loc 1 407 0
  1929. 500 0000 0268 ldr r2, [r0]
  1930. 501 0002 014B ldr r3, .L52
  1931. 502 0004 5A61 str r2, [r3, #20]
  1932. 503 0006 7047 bx lr
  1933. 504 .L53:
  1934. 505 .align 2
  1935. 506 .L52:
  1936. 507 0008 003C0140 .word 1073822720
  1937. 508 .cfi_endproc
  1938. 509 .LFE137:
  1939. 511 .section .text.HAL_EXTI_GenerateSWI,"ax",%progbits
  1940. 512 .align 1
  1941. 513 .global HAL_EXTI_GenerateSWI
  1942. 514 .syntax unified
  1943. 515 .thumb
  1944. 516 .thumb_func
  1945. 517 .fpu fpv4-sp-d16
  1946. 519 HAL_EXTI_GenerateSWI:
  1947. 520 .LFB138:
  1948. 408:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** }
  1949. 409:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  1950. 410:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /**
  1951. 411:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @brief Generate a software interrupt for a dedicated line.
  1952. 412:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @param hexti Exti handle.
  1953. 413:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** * @retval None.
  1954. 414:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** */
  1955. 415:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** void HAL_EXTI_GenerateSWI(EXTI_HandleTypeDef *hexti)
  1956. 416:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** {
  1957. 521 .loc 1 416 0
  1958. 522 .cfi_startproc
  1959. 523 @ args = 0, pretend = 0, frame = 0
  1960. 524 @ frame_needed = 0, uses_anonymous_args = 0
  1961. 525 @ link register save eliminated.
  1962. 526 .LVL45:
  1963. 417:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** /* Check parameters */
  1964. 418:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  1965. 419:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c ****
  1966. 420:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c **** EXTI->SWIER = hexti->Line;
  1967. 527 .loc 1 420 0
  1968. 528 0000 0268 ldr r2, [r0]
  1969. 529 0002 014B ldr r3, .L55
  1970. 530 0004 1A61 str r2, [r3, #16]
  1971. 531 0006 7047 bx lr
  1972. 532 .L56:
  1973. ARM GAS /tmp/ccuBsENf.s page 35
  1974. 533 .align 2
  1975. 534 .L55:
  1976. 535 0008 003C0140 .word 1073822720
  1977. 536 .cfi_endproc
  1978. 537 .LFE138:
  1979. 539 .text
  1980. 540 .Letext0:
  1981. 541 .file 3 "/usr/include/newlib/machine/_default_types.h"
  1982. 542 .file 4 "/usr/include/newlib/sys/_stdint.h"
  1983. 543 .file 5 "Drivers/CMSIS/Include/core_cm4.h"
  1984. 544 .file 6 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h"
  1985. 545 .file 7 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h"
  1986. 546 .file 8 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h"
  1987. 547 .file 9 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h"
  1988. ARM GAS /tmp/ccuBsENf.s page 36
  1989. DEFINED SYMBOLS
  1990. *ABS*:0000000000000000 stm32f4xx_hal_exti.c
  1991. /tmp/ccuBsENf.s:18 .text.HAL_EXTI_SetConfigLine:0000000000000000 $t
  1992. /tmp/ccuBsENf.s:25 .text.HAL_EXTI_SetConfigLine:0000000000000000 HAL_EXTI_SetConfigLine
  1993. /tmp/ccuBsENf.s:144 .text.HAL_EXTI_SetConfigLine:0000000000000088 $d
  1994. /tmp/ccuBsENf.s:149 .text.HAL_EXTI_GetConfigLine:0000000000000000 $t
  1995. /tmp/ccuBsENf.s:156 .text.HAL_EXTI_GetConfigLine:0000000000000000 HAL_EXTI_GetConfigLine
  1996. /tmp/ccuBsENf.s:259 .text.HAL_EXTI_GetConfigLine:0000000000000074 $d
  1997. /tmp/ccuBsENf.s:264 .text.HAL_EXTI_ClearConfigLine:0000000000000000 $t
  1998. /tmp/ccuBsENf.s:271 .text.HAL_EXTI_ClearConfigLine:0000000000000000 HAL_EXTI_ClearConfigLine
  1999. /tmp/ccuBsENf.s:318 .text.HAL_EXTI_ClearConfigLine:0000000000000038 $d
  2000. /tmp/ccuBsENf.s:323 .text.HAL_EXTI_RegisterCallback:0000000000000000 $t
  2001. /tmp/ccuBsENf.s:330 .text.HAL_EXTI_RegisterCallback:0000000000000000 HAL_EXTI_RegisterCallback
  2002. /tmp/ccuBsENf.s:358 .text.HAL_EXTI_GetHandle:0000000000000000 $t
  2003. /tmp/ccuBsENf.s:365 .text.HAL_EXTI_GetHandle:0000000000000000 HAL_EXTI_GetHandle
  2004. /tmp/ccuBsENf.s:392 .text.HAL_EXTI_IRQHandler:0000000000000000 $t
  2005. /tmp/ccuBsENf.s:399 .text.HAL_EXTI_IRQHandler:0000000000000000 HAL_EXTI_IRQHandler
  2006. /tmp/ccuBsENf.s:430 .text.HAL_EXTI_IRQHandler:0000000000000018 $d
  2007. /tmp/ccuBsENf.s:435 .text.HAL_EXTI_GetPending:0000000000000000 $t
  2008. /tmp/ccuBsENf.s:442 .text.HAL_EXTI_GetPending:0000000000000000 HAL_EXTI_GetPending
  2009. /tmp/ccuBsENf.s:479 .text.HAL_EXTI_GetPending:0000000000000018 $d
  2010. /tmp/ccuBsENf.s:484 .text.HAL_EXTI_ClearPending:0000000000000000 $t
  2011. /tmp/ccuBsENf.s:491 .text.HAL_EXTI_ClearPending:0000000000000000 HAL_EXTI_ClearPending
  2012. /tmp/ccuBsENf.s:507 .text.HAL_EXTI_ClearPending:0000000000000008 $d
  2013. /tmp/ccuBsENf.s:512 .text.HAL_EXTI_GenerateSWI:0000000000000000 $t
  2014. /tmp/ccuBsENf.s:519 .text.HAL_EXTI_GenerateSWI:0000000000000000 HAL_EXTI_GenerateSWI
  2015. /tmp/ccuBsENf.s:535 .text.HAL_EXTI_GenerateSWI:0000000000000008 $d
  2016. .debug_frame:0000000000000010 $d
  2017. NO UNDEFINED SYMBOLS