stm32f1xx_hal_exti.lst 91 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567
  1. ARM GAS /tmp/ccBr5UzG.s page 1
  2. 1 .cpu cortex-m3
  3. 2 .arch armv7-m
  4. 3 .fpu softvfp
  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 "stm32f1xx_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. 24 HAL_EXTI_SetConfigLine:
  25. 25 .LVL0:
  26. 26 .LFB65:
  27. 27 .file 1 "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c"
  28. 1:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  29. 2:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ******************************************************************************
  30. 3:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @file stm32f1xx_hal_exti.c
  31. 4:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @author MCD Application Team
  32. 5:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief EXTI HAL module driver.
  33. 6:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * This file provides firmware functions to manage the following
  34. 7:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * functionalities of the Extended Interrupts and events controller (EXTI) peripheral:
  35. 8:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * + Initialization and de-initialization functions
  36. 9:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * + IO operation functions
  37. 10:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** *
  38. 11:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ******************************************************************************
  39. 12:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @attention
  40. 13:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** *
  41. 14:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * Copyright (c) 2019 STMicroelectronics.
  42. 15:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * All rights reserved.
  43. 16:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** *
  44. 17:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * This software is licensed under terms that can be found in the LICENSE file
  45. 18:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * in the root directory of this software component.
  46. 19:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * If no LICENSE file comes with this software, it is provided AS-IS.
  47. 20:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** *
  48. 21:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ******************************************************************************
  49. 22:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** @verbatim
  50. 23:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ==============================================================================
  51. 24:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ##### EXTI Peripheral features #####
  52. 25:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ==============================================================================
  53. 26:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** [..]
  54. 27:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (+) Each Exti line can be configured within this driver.
  55. 28:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  56. 29:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (+) Exti line can be configured in 3 different modes
  57. 30:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Interrupt
  58. 31:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Event
  59. ARM GAS /tmp/ccBr5UzG.s page 2
  60. 32:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Both of them
  61. 33:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  62. 34:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (+) Configurable Exti lines can be configured with 3 different triggers
  63. 35:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Rising
  64. 36:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Falling
  65. 37:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Both of them
  66. 38:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  67. 39:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (+) When set in interrupt mode, configurable Exti lines have two different
  68. 40:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** interrupts pending registers which allow to distinguish which transition
  69. 41:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** occurs:
  70. 42:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Rising edge pending interrupt
  71. 43:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Falling
  72. 44:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  73. 45:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (+) Exti lines 0 to 15 are linked to gpio pin number 0 to 15. Gpio port can
  74. 46:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** be selected through multiplexer.
  75. 47:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  76. 48:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ##### How to use this driver #####
  77. 49:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ==============================================================================
  78. 50:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** [..]
  79. 51:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  80. 52:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (#) Configure the EXTI line using HAL_EXTI_SetConfigLine().
  81. 53:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Choose the interrupt line number by setting "Line" member from
  82. 54:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI_ConfigTypeDef structure.
  83. 55:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Configure the interrupt and/or event mode using "Mode" member from
  84. 56:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI_ConfigTypeDef structure.
  85. 57:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) For configurable lines, configure rising and/or falling trigger
  86. 58:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** "Trigger" member from EXTI_ConfigTypeDef structure.
  87. 59:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) For Exti lines linked to gpio, choose gpio port using "GPIOSel"
  88. 60:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** member from GPIO_InitTypeDef structure.
  89. 61:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  90. 62:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (#) Get current Exti configuration of a dedicated line using
  91. 63:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** HAL_EXTI_GetConfigLine().
  92. 64:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Provide exiting handle as parameter.
  93. 65:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Provide pointer on EXTI_ConfigTypeDef structure as second parameter.
  94. 66:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  95. 67:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (#) Clear Exti configuration of a dedicated line using HAL_EXTI_ClearConfigLine().
  96. 68:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Provide exiting handle as parameter.
  97. 69:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  98. 70:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (#) Register callback to treat Exti interrupts using HAL_EXTI_RegisterCallback().
  99. 71:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Provide exiting handle as first parameter.
  100. 72:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Provide which callback will be registered using one value from
  101. 73:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI_CallbackIDTypeDef.
  102. 74:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (++) Provide callback function pointer.
  103. 75:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  104. 76:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (#) Get interrupt pending bit using HAL_EXTI_GetPending().
  105. 77:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  106. 78:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (#) Clear interrupt pending bit using HAL_EXTI_ClearPending().
  107. 79:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  108. 80:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** (#) Generate software interrupt using HAL_EXTI_GenerateSWI().
  109. 81:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  110. 82:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** @endverbatim
  111. 83:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  112. 84:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  113. 85:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Includes ------------------------------------------------------------------*/
  114. 86:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** #include "stm32f1xx_hal.h"
  115. 87:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  116. 88:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /** @addtogroup STM32F1xx_HAL_Driver
  117. ARM GAS /tmp/ccBr5UzG.s page 3
  118. 89:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @{
  119. 90:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  120. 91:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  121. 92:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /** @addtogroup EXTI
  122. 93:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @{
  123. 94:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  124. 95:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /** MISRA C:2012 deviation rule has been granted for following rule:
  125. 96:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * Rule-18.1_b - Medium: Array `EXTICR' 1st subscript interval [0,7] may be out
  126. 97:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * of bounds [0,3] in following API :
  127. 98:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * HAL_EXTI_SetConfigLine
  128. 99:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * HAL_EXTI_GetConfigLine
  129. 100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * HAL_EXTI_ClearConfigLine
  130. 101:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  131. 102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  132. 103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** #ifdef HAL_EXTI_MODULE_ENABLED
  133. 104:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  134. 105:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Private typedef -----------------------------------------------------------*/
  135. 106:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Private defines -----------------------------------------------------------*/
  136. 107:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /** @defgroup EXTI_Private_Constants EXTI Private Constants
  137. 108:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @{
  138. 109:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  139. 110:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  140. 111:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  141. 112:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @}
  142. 113:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  143. 114:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  144. 115:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Private macros ------------------------------------------------------------*/
  145. 116:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Private variables ---------------------------------------------------------*/
  146. 117:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Private function prototypes -----------------------------------------------*/
  147. 118:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Exported functions --------------------------------------------------------*/
  148. 119:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  149. 120:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /** @addtogroup EXTI_Exported_Functions
  150. 121:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @{
  151. 122:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  152. 123:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  153. 124:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /** @addtogroup EXTI_Exported_Functions_Group1
  154. 125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Configuration functions
  155. 126:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** *
  156. 127:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** @verbatim
  157. 128:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ===============================================================================
  158. 129:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ##### Configuration functions #####
  159. 130:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ===============================================================================
  160. 131:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  161. 132:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** @endverbatim
  162. 133:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @{
  163. 134:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  164. 135:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  165. 136:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  166. 137:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Set configuration of a dedicated Exti line.
  167. 138:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param hexti Exti handle.
  168. 139:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param pExtiConfig Pointer on EXTI configuration to be set.
  169. 140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @retval HAL Status.
  170. 141:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  171. 142:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_SetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig
  172. 143:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  173. 28 .loc 1 143 1 view -0
  174. 29 .cfi_startproc
  175. ARM GAS /tmp/ccBr5UzG.s page 4
  176. 30 @ args = 0, pretend = 0, frame = 0
  177. 31 @ frame_needed = 0, uses_anonymous_args = 0
  178. 32 @ link register save eliminated.
  179. 144:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t regval;
  180. 33 .loc 1 144 3 view .LVU1
  181. 145:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t linepos;
  182. 34 .loc 1 145 3 view .LVU2
  183. 146:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t maskline;
  184. 35 .loc 1 146 3 view .LVU3
  185. 147:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  186. 148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check null pointer */
  187. 149:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((hexti == NULL) || (pExtiConfig == NULL))
  188. 36 .loc 1 149 3 view .LVU4
  189. 37 .loc 1 149 6 is_stmt 0 view .LVU5
  190. 38 0000 0028 cmp r0, #0
  191. 39 0002 60D0 beq .L11
  192. 40 .loc 1 149 23 discriminator 1 view .LVU6
  193. 41 0004 0029 cmp r1, #0
  194. 42 0006 60D0 beq .L12
  195. 143:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t regval;
  196. 43 .loc 1 143 1 view .LVU7
  197. 44 0008 70B4 push {r4, r5, r6}
  198. 45 .LCFI0:
  199. 46 .cfi_def_cfa_offset 12
  200. 47 .cfi_offset 4, -12
  201. 48 .cfi_offset 5, -8
  202. 49 .cfi_offset 6, -4
  203. 150:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  204. 151:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return HAL_ERROR;
  205. 152:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  206. 153:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  207. 154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check parameters */
  208. 155:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_LINE(pExtiConfig->Line));
  209. 50 .loc 1 155 3 is_stmt 1 view .LVU8
  210. 156:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_MODE(pExtiConfig->Mode));
  211. 51 .loc 1 156 3 view .LVU9
  212. 157:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  213. 158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Assign line number to handle */
  214. 159:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** hexti->Line = pExtiConfig->Line;
  215. 52 .loc 1 159 3 view .LVU10
  216. 53 .loc 1 159 28 is_stmt 0 view .LVU11
  217. 54 000a 0B68 ldr r3, [r1]
  218. 55 .loc 1 159 15 view .LVU12
  219. 56 000c 0360 str r3, [r0]
  220. 160:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  221. 161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Compute line mask */
  222. 162:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** linepos = (pExtiConfig->Line & EXTI_PIN_MASK);
  223. 57 .loc 1 162 3 is_stmt 1 view .LVU13
  224. 58 .loc 1 162 11 is_stmt 0 view .LVU14
  225. 59 000e 03F01F02 and r2, r3, #31
  226. 60 .LVL1:
  227. 163:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** maskline = (1uL << linepos);
  228. 61 .loc 1 163 3 is_stmt 1 view .LVU15
  229. 62 .loc 1 163 12 is_stmt 0 view .LVU16
  230. 63 0012 0120 movs r0, #1
  231. 64 .LVL2:
  232. 65 .loc 1 163 12 view .LVU17
  233. ARM GAS /tmp/ccBr5UzG.s page 5
  234. 66 0014 9040 lsls r0, r0, r2
  235. 67 .LVL3:
  236. 164:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  237. 165:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Configure triggers for configurable lines */
  238. 166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((pExtiConfig->Line & EXTI_CONFIG) != 0x00u)
  239. 68 .loc 1 166 3 is_stmt 1 view .LVU18
  240. 69 .loc 1 166 6 is_stmt 0 view .LVU19
  241. 70 0016 13F0007F tst r3, #33554432
  242. 71 001a 15D0 beq .L3
  243. 167:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  244. 168:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_TRIGGER(pExtiConfig->Trigger));
  245. 72 .loc 1 168 5 is_stmt 1 view .LVU20
  246. 169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  247. 170:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Configure rising trigger */
  248. 171:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Mask or set line */
  249. 172:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((pExtiConfig->Trigger & EXTI_TRIGGER_RISING) != 0x00u)
  250. 73 .loc 1 172 5 view .LVU21
  251. 74 .loc 1 172 8 is_stmt 0 view .LVU22
  252. 75 001c 8C68 ldr r4, [r1, #8]
  253. 76 001e 14F0010F tst r4, #1
  254. 77 0022 24D0 beq .L4
  255. 173:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  256. 174:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->RTSR |= maskline;
  257. 78 .loc 1 174 7 is_stmt 1 view .LVU23
  258. 79 .loc 1 174 18 is_stmt 0 view .LVU24
  259. 80 0024 2A4D ldr r5, .L18
  260. 81 0026 AC68 ldr r4, [r5, #8]
  261. 82 0028 0443 orrs r4, r4, r0
  262. 83 002a AC60 str r4, [r5, #8]
  263. 84 .L5:
  264. 175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  265. 176:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** else
  266. 177:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  267. 178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->RTSR &= ~maskline;
  268. 179:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  269. 180:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  270. 181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Configure falling trigger */
  271. 182:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Mask or set line */
  272. 183:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((pExtiConfig->Trigger & EXTI_TRIGGER_FALLING) != 0x00u)
  273. 85 .loc 1 183 5 is_stmt 1 view .LVU25
  274. 86 .loc 1 183 8 is_stmt 0 view .LVU26
  275. 87 002c 8C68 ldr r4, [r1, #8]
  276. 88 002e 14F0020F tst r4, #2
  277. 89 0032 22D0 beq .L6
  278. 184:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  279. 185:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->FTSR |= maskline;
  280. 90 .loc 1 185 7 is_stmt 1 view .LVU27
  281. 91 .loc 1 185 18 is_stmt 0 view .LVU28
  282. 92 0034 264D ldr r5, .L18
  283. 93 0036 EC68 ldr r4, [r5, #12]
  284. 94 0038 0443 orrs r4, r4, r0
  285. 95 003a EC60 str r4, [r5, #12]
  286. 96 .L7:
  287. 186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  288. 187:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** else
  289. 188:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  290. 189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->FTSR &= ~maskline;
  291. ARM GAS /tmp/ccBr5UzG.s page 6
  292. 190:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  293. 191:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  294. 192:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  295. 193:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Configure gpio port selection in case of gpio exti line */
  296. 194:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((pExtiConfig->Line & EXTI_GPIO) == EXTI_GPIO)
  297. 97 .loc 1 194 5 is_stmt 1 view .LVU29
  298. 98 .loc 1 194 28 is_stmt 0 view .LVU30
  299. 99 003c 0C68 ldr r4, [r1]
  300. 100 003e 04F0C06C and ip, r4, #100663296
  301. 101 .loc 1 194 8 view .LVU31
  302. 102 0042 BCF1C06F cmp ip, #100663296
  303. 103 0046 1ED0 beq .L17
  304. 104 .LVL4:
  305. 105 .L3:
  306. 195:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  307. 196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_GPIO_PORT(pExtiConfig->GPIOSel));
  308. 197:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_GPIO_PIN(linepos));
  309. 198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  310. 199:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval = AFIO->EXTICR[linepos >> 2u];
  311. 200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval &= ~(AFIO_EXTICR1_EXTI0 << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  312. 201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval |= (pExtiConfig->GPIOSel << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  313. 202:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  314. 203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  315. 204:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  316. 205:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  317. 206:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Configure interrupt mode : read current mode */
  318. 207:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Mask or set line */
  319. 208:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((pExtiConfig->Mode & EXTI_MODE_INTERRUPT) != 0x00u)
  320. 106 .loc 1 208 3 is_stmt 1 view .LVU32
  321. 107 .loc 1 208 19 is_stmt 0 view .LVU33
  322. 108 0048 4B68 ldr r3, [r1, #4]
  323. 109 .loc 1 208 6 view .LVU34
  324. 110 004a 13F0010F tst r3, #1
  325. 111 004e 2DD0 beq .L8
  326. 209:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  327. 210:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->IMR |= maskline;
  328. 112 .loc 1 210 5 is_stmt 1 view .LVU35
  329. 113 .loc 1 210 15 is_stmt 0 view .LVU36
  330. 114 0050 1F4A ldr r2, .L18
  331. 115 0052 1368 ldr r3, [r2]
  332. 116 0054 0343 orrs r3, r3, r0
  333. 117 0056 1360 str r3, [r2]
  334. 118 .L9:
  335. 211:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  336. 212:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** else
  337. 213:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  338. 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->IMR &= ~maskline;
  339. 215:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  340. 216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  341. 217:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Configure event mode : read current mode */
  342. 218:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Mask or set line */
  343. 219:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((pExtiConfig->Mode & EXTI_MODE_EVENT) != 0x00u)
  344. 119 .loc 1 219 3 is_stmt 1 view .LVU37
  345. 120 .loc 1 219 19 is_stmt 0 view .LVU38
  346. 121 0058 4B68 ldr r3, [r1, #4]
  347. 122 .loc 1 219 6 view .LVU39
  348. 123 005a 13F0020F tst r3, #2
  349. ARM GAS /tmp/ccBr5UzG.s page 7
  350. 124 005e 2BD0 beq .L10
  351. 220:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  352. 221:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->EMR |= maskline;
  353. 125 .loc 1 221 5 is_stmt 1 view .LVU40
  354. 126 .loc 1 221 15 is_stmt 0 view .LVU41
  355. 127 0060 1B4A ldr r2, .L18
  356. 128 0062 5368 ldr r3, [r2, #4]
  357. 129 0064 1843 orrs r0, r0, r3
  358. 130 .LVL5:
  359. 131 .loc 1 221 15 view .LVU42
  360. 132 0066 5060 str r0, [r2, #4]
  361. 222:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  362. 223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** else
  363. 224:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  364. 225:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->EMR &= ~maskline;
  365. 226:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  366. 227:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  367. 228:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return HAL_OK;
  368. 133 .loc 1 228 10 view .LVU43
  369. 134 0068 0020 movs r0, #0
  370. 135 .L2:
  371. 229:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  372. 136 .loc 1 229 1 view .LVU44
  373. 137 006a 70BC pop {r4, r5, r6}
  374. 138 .LCFI1:
  375. 139 .cfi_remember_state
  376. 140 .cfi_restore 6
  377. 141 .cfi_restore 5
  378. 142 .cfi_restore 4
  379. 143 .cfi_def_cfa_offset 0
  380. 144 006c 7047 bx lr
  381. 145 .LVL6:
  382. 146 .L4:
  383. 147 .LCFI2:
  384. 148 .cfi_restore_state
  385. 178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  386. 149 .loc 1 178 7 is_stmt 1 view .LVU45
  387. 178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  388. 150 .loc 1 178 18 is_stmt 0 view .LVU46
  389. 151 006e 184D ldr r5, .L18
  390. 152 0070 AC68 ldr r4, [r5, #8]
  391. 153 0072 24EA0004 bic r4, r4, r0
  392. 154 0076 AC60 str r4, [r5, #8]
  393. 155 0078 D8E7 b .L5
  394. 156 .L6:
  395. 189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  396. 157 .loc 1 189 7 is_stmt 1 view .LVU47
  397. 189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  398. 158 .loc 1 189 18 is_stmt 0 view .LVU48
  399. 159 007a 154D ldr r5, .L18
  400. 160 007c EC68 ldr r4, [r5, #12]
  401. 161 007e 24EA0004 bic r4, r4, r0
  402. 162 0082 EC60 str r4, [r5, #12]
  403. 163 0084 DAE7 b .L7
  404. 164 .L17:
  405. 196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_GPIO_PIN(linepos));
  406. 165 .loc 1 196 7 is_stmt 1 view .LVU49
  407. ARM GAS /tmp/ccBr5UzG.s page 8
  408. 197:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  409. 166 .loc 1 197 7 view .LVU50
  410. 199:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval &= ~(AFIO_EXTICR1_EXTI0 << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  411. 167 .loc 1 199 7 view .LVU51
  412. 199:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval &= ~(AFIO_EXTICR1_EXTI0 << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  413. 168 .loc 1 199 37 is_stmt 0 view .LVU52
  414. 169 0086 9208 lsrs r2, r2, #2
  415. 170 .LVL7:
  416. 199:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval &= ~(AFIO_EXTICR1_EXTI0 << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  417. 171 .loc 1 199 14 view .LVU53
  418. 172 0088 124E ldr r6, .L18+4
  419. 173 008a 0232 adds r2, r2, #2
  420. 174 008c 56F82240 ldr r4, [r6, r2, lsl #2]
  421. 175 .LVL8:
  422. 200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval |= (pExtiConfig->GPIOSel << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  423. 176 .loc 1 200 7 is_stmt 1 view .LVU54
  424. 200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval |= (pExtiConfig->GPIOSel << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  425. 177 .loc 1 200 76 is_stmt 0 view .LVU55
  426. 178 0090 03F00303 and r3, r3, #3
  427. 179 .LVL9:
  428. 200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval |= (pExtiConfig->GPIOSel << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  429. 180 .loc 1 200 65 view .LVU56
  430. 181 0094 9B00 lsls r3, r3, #2
  431. 200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval |= (pExtiConfig->GPIOSel << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  432. 182 .loc 1 200 38 view .LVU57
  433. 183 0096 0F25 movs r5, #15
  434. 184 0098 9D40 lsls r5, r5, r3
  435. 200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval |= (pExtiConfig->GPIOSel << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  436. 185 .loc 1 200 14 view .LVU58
  437. 186 009a 24EA0504 bic r4, r4, r5
  438. 187 .LVL10:
  439. 201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  440. 188 .loc 1 201 7 is_stmt 1 view .LVU59
  441. 201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  442. 189 .loc 1 201 39 is_stmt 0 view .LVU60
  443. 190 009e CD68 ldr r5, [r1, #12]
  444. 191 00a0 05FA03F3 lsl r3, r5, r3
  445. 201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  446. 192 .loc 1 201 14 view .LVU61
  447. 193 00a4 2343 orrs r3, r3, r4
  448. 194 .LVL11:
  449. 202:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  450. 195 .loc 1 202 7 is_stmt 1 view .LVU62
  451. 202:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  452. 196 .loc 1 202 35 is_stmt 0 view .LVU63
  453. 197 00a6 46F82230 str r3, [r6, r2, lsl #2]
  454. 198 00aa CDE7 b .L3
  455. 199 .LVL12:
  456. 200 .L8:
  457. 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  458. 201 .loc 1 214 5 is_stmt 1 view .LVU64
  459. 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  460. 202 .loc 1 214 15 is_stmt 0 view .LVU65
  461. 203 00ac 084A ldr r2, .L18
  462. 204 00ae 1368 ldr r3, [r2]
  463. 205 00b0 23EA0003 bic r3, r3, r0
  464. 206 00b4 1360 str r3, [r2]
  465. ARM GAS /tmp/ccBr5UzG.s page 9
  466. 207 00b6 CFE7 b .L9
  467. 208 .L10:
  468. 225:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  469. 209 .loc 1 225 5 is_stmt 1 view .LVU66
  470. 225:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  471. 210 .loc 1 225 15 is_stmt 0 view .LVU67
  472. 211 00b8 054A ldr r2, .L18
  473. 212 00ba 5368 ldr r3, [r2, #4]
  474. 213 00bc 23EA0000 bic r0, r3, r0
  475. 214 .LVL13:
  476. 225:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  477. 215 .loc 1 225 15 view .LVU68
  478. 216 00c0 5060 str r0, [r2, #4]
  479. 228:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  480. 217 .loc 1 228 10 view .LVU69
  481. 218 00c2 0020 movs r0, #0
  482. 219 00c4 D1E7 b .L2
  483. 220 .LVL14:
  484. 221 .L11:
  485. 222 .LCFI3:
  486. 223 .cfi_def_cfa_offset 0
  487. 224 .cfi_restore 4
  488. 225 .cfi_restore 5
  489. 226 .cfi_restore 6
  490. 151:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  491. 227 .loc 1 151 12 view .LVU70
  492. 228 00c6 0120 movs r0, #1
  493. 229 .LVL15:
  494. 151:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  495. 230 .loc 1 151 12 view .LVU71
  496. 231 00c8 7047 bx lr
  497. 232 .LVL16:
  498. 233 .L12:
  499. 151:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  500. 234 .loc 1 151 12 view .LVU72
  501. 235 00ca 0120 movs r0, #1
  502. 236 .LVL17:
  503. 237 .loc 1 229 1 view .LVU73
  504. 238 00cc 7047 bx lr
  505. 239 .L19:
  506. 240 00ce 00BF .align 2
  507. 241 .L18:
  508. 242 00d0 00040140 .word 1073808384
  509. 243 00d4 00000140 .word 1073807360
  510. 244 .cfi_endproc
  511. 245 .LFE65:
  512. 247 .section .text.HAL_EXTI_GetConfigLine,"ax",%progbits
  513. 248 .align 1
  514. 249 .global HAL_EXTI_GetConfigLine
  515. 250 .syntax unified
  516. 251 .thumb
  517. 252 .thumb_func
  518. 254 HAL_EXTI_GetConfigLine:
  519. 255 .LVL18:
  520. 256 .LFB66:
  521. 230:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  522. 231:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  523. ARM GAS /tmp/ccBr5UzG.s page 10
  524. 232:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Get configuration of a dedicated Exti line.
  525. 233:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param hexti Exti handle.
  526. 234:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param pExtiConfig Pointer on structure to store Exti configuration.
  527. 235:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @retval HAL Status.
  528. 236:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  529. 237:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_GetConfigLine(EXTI_HandleTypeDef *hexti, EXTI_ConfigTypeDef *pExtiConfig
  530. 238:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  531. 257 .loc 1 238 1 is_stmt 1 view -0
  532. 258 .cfi_startproc
  533. 259 @ args = 0, pretend = 0, frame = 0
  534. 260 @ frame_needed = 0, uses_anonymous_args = 0
  535. 261 @ link register save eliminated.
  536. 239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t regval;
  537. 262 .loc 1 239 3 view .LVU75
  538. 240:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t linepos;
  539. 263 .loc 1 240 3 view .LVU76
  540. 241:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t maskline;
  541. 264 .loc 1 241 3 view .LVU77
  542. 242:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  543. 243:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check null pointer */
  544. 244:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((hexti == NULL) || (pExtiConfig == NULL))
  545. 265 .loc 1 244 3 view .LVU78
  546. 266 .loc 1 244 6 is_stmt 0 view .LVU79
  547. 267 0000 0028 cmp r0, #0
  548. 268 0002 48D0 beq .L27
  549. 269 .loc 1 244 23 discriminator 1 view .LVU80
  550. 270 0004 0029 cmp r1, #0
  551. 271 0006 48D0 beq .L28
  552. 238:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t regval;
  553. 272 .loc 1 238 1 view .LVU81
  554. 273 0008 10B4 push {r4}
  555. 274 .LCFI4:
  556. 275 .cfi_def_cfa_offset 4
  557. 276 .cfi_offset 4, -4
  558. 245:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  559. 246:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return HAL_ERROR;
  560. 247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  561. 248:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  562. 249:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check the parameter */
  563. 250:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  564. 277 .loc 1 250 3 is_stmt 1 view .LVU82
  565. 251:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  566. 252:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Store handle line number to configuration structure */
  567. 253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->Line = hexti->Line;
  568. 278 .loc 1 253 3 view .LVU83
  569. 279 .loc 1 253 28 is_stmt 0 view .LVU84
  570. 280 000a 0468 ldr r4, [r0]
  571. 281 .loc 1 253 21 view .LVU85
  572. 282 000c 0C60 str r4, [r1]
  573. 254:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  574. 255:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Compute line mask */
  575. 256:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** linepos = (pExtiConfig->Line & EXTI_PIN_MASK);
  576. 283 .loc 1 256 3 is_stmt 1 view .LVU86
  577. 284 .loc 1 256 11 is_stmt 0 view .LVU87
  578. 285 000e 04F01F0C and ip, r4, #31
  579. 286 .LVL19:
  580. 257:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** maskline = (1uL << linepos);
  581. ARM GAS /tmp/ccBr5UzG.s page 11
  582. 287 .loc 1 257 3 is_stmt 1 view .LVU88
  583. 288 .loc 1 257 12 is_stmt 0 view .LVU89
  584. 289 0012 0123 movs r3, #1
  585. 290 0014 03FA0CF3 lsl r3, r3, ip
  586. 291 .LVL20:
  587. 258:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  588. 259:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* 1] Get core mode : interrupt */
  589. 260:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  590. 261:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check if selected line is enable */
  591. 262:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((EXTI->IMR & maskline) != 0x00u)
  592. 292 .loc 1 262 3 is_stmt 1 view .LVU90
  593. 293 .loc 1 262 12 is_stmt 0 view .LVU91
  594. 294 0018 2248 ldr r0, .L36
  595. 295 .LVL21:
  596. 296 .loc 1 262 12 view .LVU92
  597. 297 001a 0068 ldr r0, [r0]
  598. 298 .loc 1 262 6 view .LVU93
  599. 299 001c 1842 tst r0, r3
  600. 300 001e 27D0 beq .L22
  601. 263:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  602. 264:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->Mode = EXTI_MODE_INTERRUPT;
  603. 301 .loc 1 264 5 is_stmt 1 view .LVU94
  604. 302 .loc 1 264 23 is_stmt 0 view .LVU95
  605. 303 0020 0122 movs r2, #1
  606. 304 0022 4A60 str r2, [r1, #4]
  607. 305 .L23:
  608. 265:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  609. 266:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** else
  610. 267:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  611. 268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->Mode = EXTI_MODE_NONE;
  612. 269:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  613. 270:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  614. 271:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Get event mode */
  615. 272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check if selected line is enable */
  616. 273:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((EXTI->EMR & maskline) != 0x00u)
  617. 306 .loc 1 273 3 is_stmt 1 view .LVU96
  618. 307 .loc 1 273 12 is_stmt 0 view .LVU97
  619. 308 0024 1F48 ldr r0, .L36
  620. 309 0026 4068 ldr r0, [r0, #4]
  621. 310 .loc 1 273 6 view .LVU98
  622. 311 0028 1842 tst r0, r3
  623. 312 002a 03D0 beq .L24
  624. 274:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  625. 275:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->Mode |= EXTI_MODE_EVENT;
  626. 313 .loc 1 275 5 is_stmt 1 view .LVU99
  627. 314 .loc 1 275 23 is_stmt 0 view .LVU100
  628. 315 002c 4868 ldr r0, [r1, #4]
  629. 316 002e 40F00200 orr r0, r0, #2
  630. 317 0032 4860 str r0, [r1, #4]
  631. 318 .L24:
  632. 276:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  633. 277:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  634. 278:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Get default Trigger and GPIOSel configuration */
  635. 279:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->Trigger = EXTI_TRIGGER_NONE;
  636. 319 .loc 1 279 3 is_stmt 1 view .LVU101
  637. 320 .loc 1 279 24 is_stmt 0 view .LVU102
  638. 321 0034 0022 movs r2, #0
  639. ARM GAS /tmp/ccBr5UzG.s page 12
  640. 322 0036 8A60 str r2, [r1, #8]
  641. 280:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->GPIOSel = 0x00u;
  642. 323 .loc 1 280 3 is_stmt 1 view .LVU103
  643. 324 .loc 1 280 24 is_stmt 0 view .LVU104
  644. 325 0038 CA60 str r2, [r1, #12]
  645. 281:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  646. 282:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* 2] Get trigger for configurable lines : rising */
  647. 283:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((pExtiConfig->Line & EXTI_CONFIG) != 0x00u)
  648. 326 .loc 1 283 3 is_stmt 1 view .LVU105
  649. 327 .loc 1 283 6 is_stmt 0 view .LVU106
  650. 328 003a 14F0007F tst r4, #33554432
  651. 329 003e 2ED0 beq .L29
  652. 284:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  653. 285:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check if configuration of selected line is enable */
  654. 286:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((EXTI->RTSR & maskline) != 0x00u)
  655. 330 .loc 1 286 5 is_stmt 1 view .LVU107
  656. 331 .loc 1 286 14 is_stmt 0 view .LVU108
  657. 332 0040 02F18042 add r2, r2, #1073741824
  658. 333 0044 02F58232 add r2, r2, #66560
  659. 334 0048 9268 ldr r2, [r2, #8]
  660. 335 .loc 1 286 8 view .LVU109
  661. 336 004a 1A42 tst r2, r3
  662. 337 004c 01D0 beq .L25
  663. 287:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  664. 288:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->Trigger = EXTI_TRIGGER_RISING;
  665. 338 .loc 1 288 7 is_stmt 1 view .LVU110
  666. 339 .loc 1 288 28 is_stmt 0 view .LVU111
  667. 340 004e 0122 movs r2, #1
  668. 341 0050 8A60 str r2, [r1, #8]
  669. 342 .L25:
  670. 289:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  671. 290:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  672. 291:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Get falling configuration */
  673. 292:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check if configuration of selected line is enable */
  674. 293:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((EXTI->FTSR & maskline) != 0x00u)
  675. 343 .loc 1 293 5 is_stmt 1 view .LVU112
  676. 344 .loc 1 293 14 is_stmt 0 view .LVU113
  677. 345 0052 144A ldr r2, .L36
  678. 346 0054 D268 ldr r2, [r2, #12]
  679. 347 .loc 1 293 8 view .LVU114
  680. 348 0056 1A42 tst r2, r3
  681. 349 0058 03D0 beq .L26
  682. 294:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  683. 295:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->Trigger |= EXTI_TRIGGER_FALLING;
  684. 350 .loc 1 295 7 is_stmt 1 view .LVU115
  685. 351 .loc 1 295 28 is_stmt 0 view .LVU116
  686. 352 005a 8B68 ldr r3, [r1, #8]
  687. 353 .LVL22:
  688. 354 .loc 1 295 28 view .LVU117
  689. 355 005c 43F00203 orr r3, r3, #2
  690. 356 0060 8B60 str r3, [r1, #8]
  691. 357 .L26:
  692. 296:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  693. 297:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  694. 298:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Get Gpio port selection for gpio lines */
  695. 299:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((pExtiConfig->Line & EXTI_GPIO) == EXTI_GPIO)
  696. 358 .loc 1 299 5 is_stmt 1 view .LVU118
  697. ARM GAS /tmp/ccBr5UzG.s page 13
  698. 359 .loc 1 299 28 is_stmt 0 view .LVU119
  699. 360 0062 04F0C063 and r3, r4, #100663296
  700. 361 .loc 1 299 8 view .LVU120
  701. 362 0066 B3F1C06F cmp r3, #100663296
  702. 363 006a 04D0 beq .L35
  703. 300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  704. 301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_GPIO_PIN(linepos));
  705. 302:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  706. 303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval = AFIO->EXTICR[linepos >> 2u];
  707. 304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->GPIOSel = (regval >> (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u))) & AFIO_EXTICR
  708. 305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  709. 306:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  710. 307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  711. 308:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return HAL_OK;
  712. 364 .loc 1 308 10 view .LVU121
  713. 365 006c 0020 movs r0, #0
  714. 366 006e 17E0 b .L21
  715. 367 .LVL23:
  716. 368 .L22:
  717. 268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  718. 369 .loc 1 268 5 is_stmt 1 view .LVU122
  719. 268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  720. 370 .loc 1 268 23 is_stmt 0 view .LVU123
  721. 371 0070 0022 movs r2, #0
  722. 372 0072 4A60 str r2, [r1, #4]
  723. 373 0074 D6E7 b .L23
  724. 374 .LVL24:
  725. 375 .L35:
  726. 301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  727. 376 .loc 1 301 7 is_stmt 1 view .LVU124
  728. 303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->GPIOSel = (regval >> (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u))) & AFIO_EXTICR
  729. 377 .loc 1 303 7 view .LVU125
  730. 303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->GPIOSel = (regval >> (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u))) & AFIO_EXTICR
  731. 378 .loc 1 303 37 is_stmt 0 view .LVU126
  732. 379 0076 4FEA9C02 lsr r2, ip, #2
  733. 303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** pExtiConfig->GPIOSel = (regval >> (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u))) & AFIO_EXTICR
  734. 380 .loc 1 303 14 view .LVU127
  735. 381 007a 0232 adds r2, r2, #2
  736. 382 007c 0A4B ldr r3, .L36+4
  737. 383 007e 53F82220 ldr r2, [r3, r2, lsl #2]
  738. 384 .LVL25:
  739. 304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  740. 385 .loc 1 304 7 is_stmt 1 view .LVU128
  741. 304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  742. 386 .loc 1 304 76 is_stmt 0 view .LVU129
  743. 387 0082 04F00303 and r3, r4, #3
  744. 304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  745. 388 .loc 1 304 65 view .LVU130
  746. 389 0086 9B00 lsls r3, r3, #2
  747. 304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  748. 390 .loc 1 304 38 view .LVU131
  749. 391 0088 22FA03F3 lsr r3, r2, r3
  750. 304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  751. 392 .loc 1 304 87 view .LVU132
  752. 393 008c 03F00F03 and r3, r3, #15
  753. 304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  754. 394 .loc 1 304 28 view .LVU133
  755. ARM GAS /tmp/ccBr5UzG.s page 14
  756. 395 0090 CB60 str r3, [r1, #12]
  757. 396 .loc 1 308 10 view .LVU134
  758. 397 0092 0020 movs r0, #0
  759. 398 0094 04E0 b .L21
  760. 399 .LVL26:
  761. 400 .L27:
  762. 401 .LCFI5:
  763. 402 .cfi_def_cfa_offset 0
  764. 403 .cfi_restore 4
  765. 246:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  766. 404 .loc 1 246 12 view .LVU135
  767. 405 0096 0120 movs r0, #1
  768. 406 .LVL27:
  769. 246:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  770. 407 .loc 1 246 12 view .LVU136
  771. 408 0098 7047 bx lr
  772. 409 .LVL28:
  773. 410 .L28:
  774. 246:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  775. 411 .loc 1 246 12 view .LVU137
  776. 412 009a 0120 movs r0, #1
  777. 413 .LVL29:
  778. 309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  779. 414 .loc 1 309 1 view .LVU138
  780. 415 009c 7047 bx lr
  781. 416 .LVL30:
  782. 417 .L29:
  783. 418 .LCFI6:
  784. 419 .cfi_def_cfa_offset 4
  785. 420 .cfi_offset 4, -4
  786. 308:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  787. 421 .loc 1 308 10 view .LVU139
  788. 422 009e 0020 movs r0, #0
  789. 423 .LVL31:
  790. 424 .L21:
  791. 425 .loc 1 309 1 view .LVU140
  792. 426 00a0 10BC pop {r4}
  793. 427 .LCFI7:
  794. 428 .cfi_restore 4
  795. 429 .cfi_def_cfa_offset 0
  796. 430 00a2 7047 bx lr
  797. 431 .L37:
  798. 432 .align 2
  799. 433 .L36:
  800. 434 00a4 00040140 .word 1073808384
  801. 435 00a8 00000140 .word 1073807360
  802. 436 .cfi_endproc
  803. 437 .LFE66:
  804. 439 .section .text.HAL_EXTI_ClearConfigLine,"ax",%progbits
  805. 440 .align 1
  806. 441 .global HAL_EXTI_ClearConfigLine
  807. 442 .syntax unified
  808. 443 .thumb
  809. 444 .thumb_func
  810. 446 HAL_EXTI_ClearConfigLine:
  811. 447 .LVL32:
  812. 448 .LFB67:
  813. ARM GAS /tmp/ccBr5UzG.s page 15
  814. 310:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  815. 311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  816. 312:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Clear whole configuration of a dedicated Exti line.
  817. 313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param hexti Exti handle.
  818. 314:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @retval HAL Status.
  819. 315:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  820. 316:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_ClearConfigLine(EXTI_HandleTypeDef *hexti)
  821. 317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  822. 449 .loc 1 317 1 is_stmt 1 view -0
  823. 450 .cfi_startproc
  824. 451 @ args = 0, pretend = 0, frame = 0
  825. 452 @ frame_needed = 0, uses_anonymous_args = 0
  826. 318:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t regval;
  827. 453 .loc 1 318 3 view .LVU142
  828. 319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t linepos;
  829. 454 .loc 1 319 3 view .LVU143
  830. 320:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t maskline;
  831. 455 .loc 1 320 3 view .LVU144
  832. 321:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  833. 322:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check null pointer */
  834. 323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if (hexti == NULL)
  835. 456 .loc 1 323 3 view .LVU145
  836. 457 .loc 1 323 6 is_stmt 0 view .LVU146
  837. 458 0000 0028 cmp r0, #0
  838. 459 0002 38D0 beq .L40
  839. 317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t regval;
  840. 460 .loc 1 317 1 view .LVU147
  841. 461 0004 10B5 push {r4, lr}
  842. 462 .LCFI8:
  843. 463 .cfi_def_cfa_offset 8
  844. 464 .cfi_offset 4, -8
  845. 465 .cfi_offset 14, -4
  846. 466 0006 8446 mov ip, r0
  847. 324:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  848. 325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return HAL_ERROR;
  849. 326:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  850. 327:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  851. 328:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check the parameter */
  852. 329:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  853. 467 .loc 1 329 3 is_stmt 1 view .LVU148
  854. 330:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  855. 331:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* compute line mask */
  856. 332:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** linepos = (hexti->Line & EXTI_PIN_MASK);
  857. 468 .loc 1 332 3 view .LVU149
  858. 469 .loc 1 332 19 is_stmt 0 view .LVU150
  859. 470 0008 0468 ldr r4, [r0]
  860. 471 .loc 1 332 11 view .LVU151
  861. 472 000a 04F01F00 and r0, r4, #31
  862. 473 .LVL33:
  863. 333:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** maskline = (1uL << linepos);
  864. 474 .loc 1 333 3 is_stmt 1 view .LVU152
  865. 475 .loc 1 333 12 is_stmt 0 view .LVU153
  866. 476 000e 0123 movs r3, #1
  867. 477 0010 8340 lsls r3, r3, r0
  868. 478 .LVL34:
  869. 334:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  870. 335:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* 1] Clear interrupt mode */
  871. ARM GAS /tmp/ccBr5UzG.s page 16
  872. 336:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->IMR = (EXTI->IMR & ~maskline);
  873. 479 .loc 1 336 3 is_stmt 1 view .LVU154
  874. 480 .loc 1 336 20 is_stmt 0 view .LVU155
  875. 481 0012 1B4A ldr r2, .L48
  876. 482 0014 1168 ldr r1, [r2]
  877. 483 .loc 1 336 28 view .LVU156
  878. 484 0016 6FEA030E mvn lr, r3
  879. 485 .loc 1 336 26 view .LVU157
  880. 486 001a 21EA0301 bic r1, r1, r3
  881. 487 .loc 1 336 13 view .LVU158
  882. 488 001e 1160 str r1, [r2]
  883. 337:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  884. 338:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* 2] Clear event mode */
  885. 339:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->EMR = (EXTI->EMR & ~maskline);
  886. 489 .loc 1 339 3 is_stmt 1 view .LVU159
  887. 490 .loc 1 339 20 is_stmt 0 view .LVU160
  888. 491 0020 5168 ldr r1, [r2, #4]
  889. 492 .loc 1 339 26 view .LVU161
  890. 493 0022 21EA0303 bic r3, r1, r3
  891. 494 .LVL35:
  892. 495 .loc 1 339 13 view .LVU162
  893. 496 0026 5360 str r3, [r2, #4]
  894. 340:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  895. 341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* 3] Clear triggers in case of configurable lines */
  896. 342:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((hexti->Line & EXTI_CONFIG) != 0x00u)
  897. 497 .loc 1 342 3 is_stmt 1 view .LVU163
  898. 498 .loc 1 342 13 is_stmt 0 view .LVU164
  899. 499 0028 DCF80030 ldr r3, [ip]
  900. 500 .loc 1 342 6 view .LVU165
  901. 501 002c 13F0007F tst r3, #33554432
  902. 502 0030 23D0 beq .L41
  903. 343:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  904. 344:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->RTSR = (EXTI->RTSR & ~maskline);
  905. 503 .loc 1 344 5 is_stmt 1 view .LVU166
  906. 504 .loc 1 344 23 is_stmt 0 view .LVU167
  907. 505 0032 9368 ldr r3, [r2, #8]
  908. 506 .loc 1 344 30 view .LVU168
  909. 507 0034 0EEA0303 and r3, lr, r3
  910. 508 .loc 1 344 16 view .LVU169
  911. 509 0038 9360 str r3, [r2, #8]
  912. 345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->FTSR = (EXTI->FTSR & ~maskline);
  913. 510 .loc 1 345 5 is_stmt 1 view .LVU170
  914. 511 .loc 1 345 23 is_stmt 0 view .LVU171
  915. 512 003a D368 ldr r3, [r2, #12]
  916. 513 .loc 1 345 30 view .LVU172
  917. 514 003c 0EEA0303 and r3, lr, r3
  918. 515 .loc 1 345 16 view .LVU173
  919. 516 0040 D360 str r3, [r2, #12]
  920. 346:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  921. 347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Get Gpio port selection for gpio lines */
  922. 348:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if ((hexti->Line & EXTI_GPIO) == EXTI_GPIO)
  923. 517 .loc 1 348 5 is_stmt 1 view .LVU174
  924. 518 .loc 1 348 15 is_stmt 0 view .LVU175
  925. 519 0042 DCF80030 ldr r3, [ip]
  926. 520 .loc 1 348 22 view .LVU176
  927. 521 0046 03F0C063 and r3, r3, #100663296
  928. 522 .loc 1 348 8 view .LVU177
  929. ARM GAS /tmp/ccBr5UzG.s page 17
  930. 523 004a B3F1C06F cmp r3, #100663296
  931. 524 004e 01D0 beq .L47
  932. 349:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  933. 350:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_GPIO_PIN(linepos));
  934. 351:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  935. 352:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval = AFIO->EXTICR[linepos >> 2u];
  936. 353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval &= ~(AFIO_EXTICR1_EXTI0 << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  937. 354:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  938. 355:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  939. 356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  940. 357:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  941. 358:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return HAL_OK;
  942. 525 .loc 1 358 10 view .LVU178
  943. 526 0050 0020 movs r0, #0
  944. 527 .LVL36:
  945. 528 .loc 1 358 10 view .LVU179
  946. 529 0052 13E0 b .L39
  947. 530 .LVL37:
  948. 531 .L47:
  949. 350:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  950. 532 .loc 1 350 7 is_stmt 1 view .LVU180
  951. 352:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval &= ~(AFIO_EXTICR1_EXTI0 << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  952. 533 .loc 1 352 7 view .LVU181
  953. 352:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval &= ~(AFIO_EXTICR1_EXTI0 << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  954. 534 .loc 1 352 37 is_stmt 0 view .LVU182
  955. 535 0054 8008 lsrs r0, r0, #2
  956. 536 .LVL38:
  957. 352:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval &= ~(AFIO_EXTICR1_EXTI0 << (AFIO_EXTICR1_EXTI1_Pos * (linepos & 0x03u)));
  958. 537 .loc 1 352 14 view .LVU183
  959. 538 0056 0B49 ldr r1, .L48+4
  960. 539 0058 0230 adds r0, r0, #2
  961. 540 005a 51F82030 ldr r3, [r1, r0, lsl #2]
  962. 541 .LVL39:
  963. 353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  964. 542 .loc 1 353 7 is_stmt 1 view .LVU184
  965. 353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  966. 543 .loc 1 353 76 is_stmt 0 view .LVU185
  967. 544 005e 04F00304 and r4, r4, #3
  968. 545 .LVL40:
  969. 353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  970. 546 .loc 1 353 65 view .LVU186
  971. 547 0062 A400 lsls r4, r4, #2
  972. 353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  973. 548 .loc 1 353 38 view .LVU187
  974. 549 0064 0F22 movs r2, #15
  975. 550 0066 02FA04F4 lsl r4, r2, r4
  976. 353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** AFIO->EXTICR[linepos >> 2u] = regval;
  977. 551 .loc 1 353 14 view .LVU188
  978. 552 006a 23EA0404 bic r4, r3, r4
  979. 553 .LVL41:
  980. 354:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  981. 554 .loc 1 354 7 is_stmt 1 view .LVU189
  982. 354:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  983. 555 .loc 1 354 35 is_stmt 0 view .LVU190
  984. 556 006e 41F82040 str r4, [r1, r0, lsl #2]
  985. 557 .loc 1 358 10 view .LVU191
  986. 558 0072 0020 movs r0, #0
  987. ARM GAS /tmp/ccBr5UzG.s page 18
  988. 559 0074 02E0 b .L39
  989. 560 .LVL42:
  990. 561 .L40:
  991. 562 .LCFI9:
  992. 563 .cfi_def_cfa_offset 0
  993. 564 .cfi_restore 4
  994. 565 .cfi_restore 14
  995. 325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  996. 566 .loc 1 325 12 view .LVU192
  997. 567 0076 0120 movs r0, #1
  998. 568 .LVL43:
  999. 359:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1000. 569 .loc 1 359 1 view .LVU193
  1001. 570 0078 7047 bx lr
  1002. 571 .LVL44:
  1003. 572 .L41:
  1004. 573 .LCFI10:
  1005. 574 .cfi_def_cfa_offset 8
  1006. 575 .cfi_offset 4, -8
  1007. 576 .cfi_offset 14, -4
  1008. 358:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1009. 577 .loc 1 358 10 view .LVU194
  1010. 578 007a 0020 movs r0, #0
  1011. 579 .LVL45:
  1012. 580 .L39:
  1013. 581 .loc 1 359 1 view .LVU195
  1014. 582 007c 10BD pop {r4, pc}
  1015. 583 .L49:
  1016. 584 007e 00BF .align 2
  1017. 585 .L48:
  1018. 586 0080 00040140 .word 1073808384
  1019. 587 0084 00000140 .word 1073807360
  1020. 588 .cfi_endproc
  1021. 589 .LFE67:
  1022. 591 .section .text.HAL_EXTI_RegisterCallback,"ax",%progbits
  1023. 592 .align 1
  1024. 593 .global HAL_EXTI_RegisterCallback
  1025. 594 .syntax unified
  1026. 595 .thumb
  1027. 596 .thumb_func
  1028. 598 HAL_EXTI_RegisterCallback:
  1029. 599 .LVL46:
  1030. 600 .LFB68:
  1031. 360:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1032. 361:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  1033. 362:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Register callback for a dedicated Exti line.
  1034. 363:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param hexti Exti handle.
  1035. 364:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param CallbackID User callback identifier.
  1036. 365:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * This parameter can be one of @arg @ref EXTI_CallbackIDTypeDef values.
  1037. 366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param pPendingCbfn function pointer to be stored as callback.
  1038. 367:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @retval HAL Status.
  1039. 368:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  1040. 369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_RegisterCallback(EXTI_HandleTypeDef *hexti, EXTI_CallbackIDTypeDef Callb
  1041. 370:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1042. 601 .loc 1 370 1 is_stmt 1 view -0
  1043. 602 .cfi_startproc
  1044. 603 @ args = 0, pretend = 0, frame = 0
  1045. ARM GAS /tmp/ccBr5UzG.s page 19
  1046. 604 @ frame_needed = 0, uses_anonymous_args = 0
  1047. 605 @ link register save eliminated.
  1048. 606 .loc 1 370 1 is_stmt 0 view .LVU197
  1049. 607 0000 0346 mov r3, r0
  1050. 371:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** HAL_StatusTypeDef status = HAL_OK;
  1051. 608 .loc 1 371 3 is_stmt 1 view .LVU198
  1052. 609 .LVL47:
  1053. 372:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1054. 373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** switch (CallbackID)
  1055. 610 .loc 1 373 3 view .LVU199
  1056. 611 0002 0846 mov r0, r1
  1057. 612 .LVL48:
  1058. 613 .loc 1 373 3 is_stmt 0 view .LVU200
  1059. 614 0004 09B9 cbnz r1, .L52
  1060. 374:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1061. 375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** case HAL_EXTI_COMMON_CB_ID:
  1062. 376:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** hexti->PendingCallback = pPendingCbfn;
  1063. 615 .loc 1 376 7 is_stmt 1 view .LVU201
  1064. 616 .loc 1 376 30 is_stmt 0 view .LVU202
  1065. 617 0006 5A60 str r2, [r3, #4]
  1066. 377:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** break;
  1067. 618 .loc 1 377 7 is_stmt 1 view .LVU203
  1068. 619 0008 7047 bx lr
  1069. 620 .L52:
  1070. 378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1071. 379:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** default:
  1072. 380:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** status = HAL_ERROR;
  1073. 621 .loc 1 380 14 is_stmt 0 view .LVU204
  1074. 622 000a 0120 movs r0, #1
  1075. 623 .LVL49:
  1076. 381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** break;
  1077. 382:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1078. 383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1079. 384:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return status;
  1080. 624 .loc 1 384 3 is_stmt 1 view .LVU205
  1081. 385:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1082. 625 .loc 1 385 1 is_stmt 0 view .LVU206
  1083. 626 000c 7047 bx lr
  1084. 627 .cfi_endproc
  1085. 628 .LFE68:
  1086. 630 .section .text.HAL_EXTI_GetHandle,"ax",%progbits
  1087. 631 .align 1
  1088. 632 .global HAL_EXTI_GetHandle
  1089. 633 .syntax unified
  1090. 634 .thumb
  1091. 635 .thumb_func
  1092. 637 HAL_EXTI_GetHandle:
  1093. 638 .LVL50:
  1094. 639 .LFB69:
  1095. 386:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1096. 387:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  1097. 388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Store line number as handle private field.
  1098. 389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param hexti Exti handle.
  1099. 390:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param ExtiLine Exti line number.
  1100. 391:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * This parameter can be from 0 to @ref EXTI_LINE_NB.
  1101. 392:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @retval HAL Status.
  1102. 393:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  1103. ARM GAS /tmp/ccBr5UzG.s page 20
  1104. 394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** HAL_StatusTypeDef HAL_EXTI_GetHandle(EXTI_HandleTypeDef *hexti, uint32_t ExtiLine)
  1105. 395:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1106. 640 .loc 1 395 1 is_stmt 1 view -0
  1107. 641 .cfi_startproc
  1108. 642 @ args = 0, pretend = 0, frame = 0
  1109. 643 @ frame_needed = 0, uses_anonymous_args = 0
  1110. 644 @ link register save eliminated.
  1111. 396:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check the parameters */
  1112. 397:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_LINE(ExtiLine));
  1113. 645 .loc 1 397 3 view .LVU208
  1114. 398:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1115. 399:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check null pointer */
  1116. 400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if (hexti == NULL)
  1117. 646 .loc 1 400 3 view .LVU209
  1118. 647 .loc 1 400 6 is_stmt 0 view .LVU210
  1119. 648 0000 10B1 cbz r0, .L55
  1120. 401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1121. 402:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return HAL_ERROR;
  1122. 403:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1123. 404:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** else
  1124. 405:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1125. 406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Store line number as handle private field */
  1126. 407:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** hexti->Line = ExtiLine;
  1127. 649 .loc 1 407 5 is_stmt 1 view .LVU211
  1128. 650 .loc 1 407 17 is_stmt 0 view .LVU212
  1129. 651 0002 0160 str r1, [r0]
  1130. 408:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1131. 409:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return HAL_OK;
  1132. 652 .loc 1 409 5 is_stmt 1 view .LVU213
  1133. 653 .loc 1 409 12 is_stmt 0 view .LVU214
  1134. 654 0004 0020 movs r0, #0
  1135. 655 .LVL51:
  1136. 656 .loc 1 409 12 view .LVU215
  1137. 657 0006 7047 bx lr
  1138. 658 .LVL52:
  1139. 659 .L55:
  1140. 402:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1141. 660 .loc 1 402 12 view .LVU216
  1142. 661 0008 0120 movs r0, #1
  1143. 662 .LVL53:
  1144. 410:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1145. 411:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1146. 663 .loc 1 411 1 view .LVU217
  1147. 664 000a 7047 bx lr
  1148. 665 .cfi_endproc
  1149. 666 .LFE69:
  1150. 668 .section .text.HAL_EXTI_IRQHandler,"ax",%progbits
  1151. 669 .align 1
  1152. 670 .global HAL_EXTI_IRQHandler
  1153. 671 .syntax unified
  1154. 672 .thumb
  1155. 673 .thumb_func
  1156. 675 HAL_EXTI_IRQHandler:
  1157. 676 .LVL54:
  1158. 677 .LFB70:
  1159. 412:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1160. 413:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  1161. ARM GAS /tmp/ccBr5UzG.s page 21
  1162. 414:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @}
  1163. 415:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  1164. 416:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1165. 417:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /** @addtogroup EXTI_Exported_Functions_Group2
  1166. 418:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief EXTI IO functions.
  1167. 419:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** *
  1168. 420:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** @verbatim
  1169. 421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ===============================================================================
  1170. 422:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ##### IO operation functions #####
  1171. 423:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** ===============================================================================
  1172. 424:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1173. 425:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** @endverbatim
  1174. 426:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @{
  1175. 427:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  1176. 428:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1177. 429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  1178. 430:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Handle EXTI interrupt request.
  1179. 431:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param hexti Exti handle.
  1180. 432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @retval none.
  1181. 433:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  1182. 434:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** void HAL_EXTI_IRQHandler(EXTI_HandleTypeDef *hexti)
  1183. 435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1184. 678 .loc 1 435 1 is_stmt 1 view -0
  1185. 679 .cfi_startproc
  1186. 680 @ args = 0, pretend = 0, frame = 0
  1187. 681 @ frame_needed = 0, uses_anonymous_args = 0
  1188. 682 .loc 1 435 1 is_stmt 0 view .LVU219
  1189. 683 0000 08B5 push {r3, lr}
  1190. 684 .LCFI11:
  1191. 685 .cfi_def_cfa_offset 8
  1192. 686 .cfi_offset 3, -8
  1193. 687 .cfi_offset 14, -4
  1194. 436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t regval;
  1195. 688 .loc 1 436 3 is_stmt 1 view .LVU220
  1196. 437:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t maskline;
  1197. 689 .loc 1 437 3 view .LVU221
  1198. 438:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1199. 439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Compute line mask */
  1200. 440:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** maskline = (1uL << (hexti->Line & EXTI_PIN_MASK));
  1201. 690 .loc 1 440 3 view .LVU222
  1202. 691 .loc 1 440 28 is_stmt 0 view .LVU223
  1203. 692 0002 0368 ldr r3, [r0]
  1204. 693 .loc 1 440 35 view .LVU224
  1205. 694 0004 03F01F02 and r2, r3, #31
  1206. 695 .loc 1 440 12 view .LVU225
  1207. 696 0008 0123 movs r3, #1
  1208. 697 000a 9340 lsls r3, r3, r2
  1209. 698 .LVL55:
  1210. 441:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1211. 442:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Get pending bit */
  1212. 443:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval = (EXTI->PR & maskline);
  1213. 699 .loc 1 443 3 is_stmt 1 view .LVU226
  1214. 700 .loc 1 443 17 is_stmt 0 view .LVU227
  1215. 701 000c 044A ldr r2, .L59
  1216. 702 000e 5269 ldr r2, [r2, #20]
  1217. 703 .LVL56:
  1218. 444:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if (regval != 0x00u)
  1219. ARM GAS /tmp/ccBr5UzG.s page 22
  1220. 704 .loc 1 444 3 is_stmt 1 view .LVU228
  1221. 705 .loc 1 444 6 is_stmt 0 view .LVU229
  1222. 706 0010 1A42 tst r2, r3
  1223. 707 0012 04D0 beq .L56
  1224. 445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1225. 446:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Clear pending bit */
  1226. 447:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->PR = maskline;
  1227. 708 .loc 1 447 5 is_stmt 1 view .LVU230
  1228. 709 .loc 1 447 14 is_stmt 0 view .LVU231
  1229. 710 0014 024A ldr r2, .L59
  1230. 711 .LVL57:
  1231. 712 .loc 1 447 14 view .LVU232
  1232. 713 0016 5361 str r3, [r2, #20]
  1233. 448:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1234. 449:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Call callback */
  1235. 450:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** if (hexti->PendingCallback != NULL)
  1236. 714 .loc 1 450 5 is_stmt 1 view .LVU233
  1237. 715 .loc 1 450 14 is_stmt 0 view .LVU234
  1238. 716 0018 4368 ldr r3, [r0, #4]
  1239. 717 .LVL58:
  1240. 718 .loc 1 450 8 view .LVU235
  1241. 719 001a 03B1 cbz r3, .L56
  1242. 451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1243. 452:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** hexti->PendingCallback();
  1244. 720 .loc 1 452 7 is_stmt 1 view .LVU236
  1245. 721 001c 9847 blx r3
  1246. 722 .LVL59:
  1247. 723 .L56:
  1248. 453:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1249. 454:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1250. 455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1251. 724 .loc 1 455 1 is_stmt 0 view .LVU237
  1252. 725 001e 08BD pop {r3, pc}
  1253. 726 .L60:
  1254. 727 .align 2
  1255. 728 .L59:
  1256. 729 0020 00040140 .word 1073808384
  1257. 730 .cfi_endproc
  1258. 731 .LFE70:
  1259. 733 .section .text.HAL_EXTI_GetPending,"ax",%progbits
  1260. 734 .align 1
  1261. 735 .global HAL_EXTI_GetPending
  1262. 736 .syntax unified
  1263. 737 .thumb
  1264. 738 .thumb_func
  1265. 740 HAL_EXTI_GetPending:
  1266. 741 .LVL60:
  1267. 742 .LFB71:
  1268. 456:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1269. 457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  1270. 458:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Get interrupt pending bit of a dedicated line.
  1271. 459:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param hexti Exti handle.
  1272. 460:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param Edge Specify which pending edge as to be checked.
  1273. 461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * This parameter can be one of the following values:
  1274. 462:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @arg @ref EXTI_TRIGGER_RISING_FALLING
  1275. 463:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * This parameter is kept for compatibility with other series.
  1276. 464:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @retval 1 if interrupt is pending else 0.
  1277. ARM GAS /tmp/ccBr5UzG.s page 23
  1278. 465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  1279. 466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t HAL_EXTI_GetPending(EXTI_HandleTypeDef *hexti, uint32_t Edge)
  1280. 467:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1281. 743 .loc 1 467 1 is_stmt 1 view -0
  1282. 744 .cfi_startproc
  1283. 745 @ args = 0, pretend = 0, frame = 0
  1284. 746 @ frame_needed = 0, uses_anonymous_args = 0
  1285. 747 @ link register save eliminated.
  1286. 468:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t regval;
  1287. 748 .loc 1 468 3 view .LVU239
  1288. 469:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t maskline;
  1289. 749 .loc 1 469 3 view .LVU240
  1290. 470:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t linepos;
  1291. 750 .loc 1 470 3 view .LVU241
  1292. 471:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1293. 472:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check parameters */
  1294. 473:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  1295. 751 .loc 1 473 3 view .LVU242
  1296. 474:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_CONFIG_LINE(hexti->Line));
  1297. 752 .loc 1 474 3 view .LVU243
  1298. 475:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_PENDING_EDGE(Edge));
  1299. 753 .loc 1 475 3 view .LVU244
  1300. 476:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1301. 477:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Prevent unused argument compilation warning */
  1302. 478:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** UNUSED(Edge);
  1303. 754 .loc 1 478 3 view .LVU245
  1304. 479:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1305. 480:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Compute line mask */
  1306. 481:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** linepos = (hexti->Line & EXTI_PIN_MASK);
  1307. 755 .loc 1 481 3 view .LVU246
  1308. 756 .loc 1 481 19 is_stmt 0 view .LVU247
  1309. 757 0000 0368 ldr r3, [r0]
  1310. 758 .loc 1 481 11 view .LVU248
  1311. 759 0002 03F01F03 and r3, r3, #31
  1312. 760 .LVL61:
  1313. 482:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** maskline = (1uL << linepos);
  1314. 761 .loc 1 482 3 is_stmt 1 view .LVU249
  1315. 762 .loc 1 482 12 is_stmt 0 view .LVU250
  1316. 763 0006 0120 movs r0, #1
  1317. 764 .LVL62:
  1318. 765 .loc 1 482 12 view .LVU251
  1319. 766 0008 00FA03F2 lsl r2, r0, r3
  1320. 767 .LVL63:
  1321. 483:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1322. 484:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* return 1 if bit is set else 0 */
  1323. 485:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** regval = ((EXTI->PR & maskline) >> linepos);
  1324. 768 .loc 1 485 3 is_stmt 1 view .LVU252
  1325. 769 .loc 1 485 18 is_stmt 0 view .LVU253
  1326. 770 000c 0249 ldr r1, .L62
  1327. 771 .LVL64:
  1328. 772 .loc 1 485 18 view .LVU254
  1329. 773 000e 4869 ldr r0, [r1, #20]
  1330. 774 .loc 1 485 23 view .LVU255
  1331. 775 0010 1040 ands r0, r0, r2
  1332. 776 .LVL65:
  1333. 486:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** return regval;
  1334. 777 .loc 1 486 3 is_stmt 1 view .LVU256
  1335. ARM GAS /tmp/ccBr5UzG.s page 24
  1336. 487:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1337. 778 .loc 1 487 1 is_stmt 0 view .LVU257
  1338. 779 0012 D840 lsrs r0, r0, r3
  1339. 780 .LVL66:
  1340. 781 .loc 1 487 1 view .LVU258
  1341. 782 0014 7047 bx lr
  1342. 783 .L63:
  1343. 784 0016 00BF .align 2
  1344. 785 .L62:
  1345. 786 0018 00040140 .word 1073808384
  1346. 787 .cfi_endproc
  1347. 788 .LFE71:
  1348. 790 .section .text.HAL_EXTI_ClearPending,"ax",%progbits
  1349. 791 .align 1
  1350. 792 .global HAL_EXTI_ClearPending
  1351. 793 .syntax unified
  1352. 794 .thumb
  1353. 795 .thumb_func
  1354. 797 HAL_EXTI_ClearPending:
  1355. 798 .LVL67:
  1356. 799 .LFB72:
  1357. 488:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1358. 489:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  1359. 490:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Clear interrupt pending bit of a dedicated line.
  1360. 491:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param hexti Exti handle.
  1361. 492:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param Edge Specify which pending edge as to be clear.
  1362. 493:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * This parameter can be one of the following values:
  1363. 494:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @arg @ref EXTI_TRIGGER_RISING_FALLING
  1364. 495:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * This parameter is kept for compatibility with other series.
  1365. 496:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @retval None.
  1366. 497:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  1367. 498:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** void HAL_EXTI_ClearPending(EXTI_HandleTypeDef *hexti, uint32_t Edge)
  1368. 499:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1369. 800 .loc 1 499 1 is_stmt 1 view -0
  1370. 801 .cfi_startproc
  1371. 802 @ args = 0, pretend = 0, frame = 0
  1372. 803 @ frame_needed = 0, uses_anonymous_args = 0
  1373. 804 @ link register save eliminated.
  1374. 500:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t maskline;
  1375. 805 .loc 1 500 3 view .LVU260
  1376. 501:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1377. 502:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check parameters */
  1378. 503:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  1379. 806 .loc 1 503 3 view .LVU261
  1380. 504:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_CONFIG_LINE(hexti->Line));
  1381. 807 .loc 1 504 3 view .LVU262
  1382. 505:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_PENDING_EDGE(Edge));
  1383. 808 .loc 1 505 3 view .LVU263
  1384. 506:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1385. 507:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Prevent unused argument compilation warning */
  1386. 508:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** UNUSED(Edge);
  1387. 809 .loc 1 508 3 view .LVU264
  1388. 509:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1389. 510:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Compute line mask */
  1390. 511:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** maskline = (1uL << (hexti->Line & EXTI_PIN_MASK));
  1391. 810 .loc 1 511 3 view .LVU265
  1392. 811 .loc 1 511 28 is_stmt 0 view .LVU266
  1393. ARM GAS /tmp/ccBr5UzG.s page 25
  1394. 812 0000 0268 ldr r2, [r0]
  1395. 813 .loc 1 511 35 view .LVU267
  1396. 814 0002 02F01F02 and r2, r2, #31
  1397. 815 .loc 1 511 12 view .LVU268
  1398. 816 0006 0123 movs r3, #1
  1399. 817 0008 9340 lsls r3, r3, r2
  1400. 818 .LVL68:
  1401. 512:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1402. 513:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Clear Pending bit */
  1403. 514:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->PR = maskline;
  1404. 819 .loc 1 514 3 is_stmt 1 view .LVU269
  1405. 820 .loc 1 514 12 is_stmt 0 view .LVU270
  1406. 821 000a 014A ldr r2, .L65
  1407. 822 000c 5361 str r3, [r2, #20]
  1408. 515:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1409. 823 .loc 1 515 1 view .LVU271
  1410. 824 000e 7047 bx lr
  1411. 825 .L66:
  1412. 826 .align 2
  1413. 827 .L65:
  1414. 828 0010 00040140 .word 1073808384
  1415. 829 .cfi_endproc
  1416. 830 .LFE72:
  1417. 832 .section .text.HAL_EXTI_GenerateSWI,"ax",%progbits
  1418. 833 .align 1
  1419. 834 .global HAL_EXTI_GenerateSWI
  1420. 835 .syntax unified
  1421. 836 .thumb
  1422. 837 .thumb_func
  1423. 839 HAL_EXTI_GenerateSWI:
  1424. 840 .LVL69:
  1425. 841 .LFB73:
  1426. 516:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1427. 517:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /**
  1428. 518:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @brief Generate a software interrupt for a dedicated line.
  1429. 519:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @param hexti Exti handle.
  1430. 520:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** * @retval None.
  1431. 521:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** */
  1432. 522:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** void HAL_EXTI_GenerateSWI(EXTI_HandleTypeDef *hexti)
  1433. 523:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** {
  1434. 842 .loc 1 523 1 is_stmt 1 view -0
  1435. 843 .cfi_startproc
  1436. 844 @ args = 0, pretend = 0, frame = 0
  1437. 845 @ frame_needed = 0, uses_anonymous_args = 0
  1438. 846 @ link register save eliminated.
  1439. 524:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** uint32_t maskline;
  1440. 847 .loc 1 524 3 view .LVU273
  1441. 525:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1442. 526:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Check parameters */
  1443. 527:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_LINE(hexti->Line));
  1444. 848 .loc 1 527 3 view .LVU274
  1445. 528:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** assert_param(IS_EXTI_CONFIG_LINE(hexti->Line));
  1446. 849 .loc 1 528 3 view .LVU275
  1447. 529:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1448. 530:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Compute line mask */
  1449. 531:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** maskline = (1uL << (hexti->Line & EXTI_PIN_MASK));
  1450. 850 .loc 1 531 3 view .LVU276
  1451. ARM GAS /tmp/ccBr5UzG.s page 26
  1452. 851 .loc 1 531 28 is_stmt 0 view .LVU277
  1453. 852 0000 0268 ldr r2, [r0]
  1454. 853 .loc 1 531 35 view .LVU278
  1455. 854 0002 02F01F02 and r2, r2, #31
  1456. 855 .loc 1 531 12 view .LVU279
  1457. 856 0006 0123 movs r3, #1
  1458. 857 0008 9340 lsls r3, r3, r2
  1459. 858 .LVL70:
  1460. 532:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c ****
  1461. 533:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** /* Generate Software interrupt */
  1462. 534:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** EXTI->SWIER = maskline;
  1463. 859 .loc 1 534 3 is_stmt 1 view .LVU280
  1464. 860 .loc 1 534 15 is_stmt 0 view .LVU281
  1465. 861 000a 014A ldr r2, .L68
  1466. 862 000c 1361 str r3, [r2, #16]
  1467. 535:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c **** }
  1468. 863 .loc 1 535 1 view .LVU282
  1469. 864 000e 7047 bx lr
  1470. 865 .L69:
  1471. 866 .align 2
  1472. 867 .L68:
  1473. 868 0010 00040140 .word 1073808384
  1474. 869 .cfi_endproc
  1475. 870 .LFE73:
  1476. 872 .text
  1477. 873 .Letext0:
  1478. 874 .file 2 "/opt/gcc-arm/arm-none-eabi/include/machine/_default_types.h"
  1479. 875 .file 3 "/opt/gcc-arm/arm-none-eabi/include/sys/_stdint.h"
  1480. 876 .file 4 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h"
  1481. 877 .file 5 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h"
  1482. 878 .file 6 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h"
  1483. ARM GAS /tmp/ccBr5UzG.s page 27
  1484. DEFINED SYMBOLS
  1485. *ABS*:0000000000000000 stm32f1xx_hal_exti.c
  1486. /tmp/ccBr5UzG.s:18 .text.HAL_EXTI_SetConfigLine:0000000000000000 $t
  1487. /tmp/ccBr5UzG.s:24 .text.HAL_EXTI_SetConfigLine:0000000000000000 HAL_EXTI_SetConfigLine
  1488. /tmp/ccBr5UzG.s:242 .text.HAL_EXTI_SetConfigLine:00000000000000d0 $d
  1489. /tmp/ccBr5UzG.s:248 .text.HAL_EXTI_GetConfigLine:0000000000000000 $t
  1490. /tmp/ccBr5UzG.s:254 .text.HAL_EXTI_GetConfigLine:0000000000000000 HAL_EXTI_GetConfigLine
  1491. /tmp/ccBr5UzG.s:434 .text.HAL_EXTI_GetConfigLine:00000000000000a4 $d
  1492. /tmp/ccBr5UzG.s:440 .text.HAL_EXTI_ClearConfigLine:0000000000000000 $t
  1493. /tmp/ccBr5UzG.s:446 .text.HAL_EXTI_ClearConfigLine:0000000000000000 HAL_EXTI_ClearConfigLine
  1494. /tmp/ccBr5UzG.s:586 .text.HAL_EXTI_ClearConfigLine:0000000000000080 $d
  1495. /tmp/ccBr5UzG.s:592 .text.HAL_EXTI_RegisterCallback:0000000000000000 $t
  1496. /tmp/ccBr5UzG.s:598 .text.HAL_EXTI_RegisterCallback:0000000000000000 HAL_EXTI_RegisterCallback
  1497. /tmp/ccBr5UzG.s:631 .text.HAL_EXTI_GetHandle:0000000000000000 $t
  1498. /tmp/ccBr5UzG.s:637 .text.HAL_EXTI_GetHandle:0000000000000000 HAL_EXTI_GetHandle
  1499. /tmp/ccBr5UzG.s:669 .text.HAL_EXTI_IRQHandler:0000000000000000 $t
  1500. /tmp/ccBr5UzG.s:675 .text.HAL_EXTI_IRQHandler:0000000000000000 HAL_EXTI_IRQHandler
  1501. /tmp/ccBr5UzG.s:729 .text.HAL_EXTI_IRQHandler:0000000000000020 $d
  1502. /tmp/ccBr5UzG.s:734 .text.HAL_EXTI_GetPending:0000000000000000 $t
  1503. /tmp/ccBr5UzG.s:740 .text.HAL_EXTI_GetPending:0000000000000000 HAL_EXTI_GetPending
  1504. /tmp/ccBr5UzG.s:786 .text.HAL_EXTI_GetPending:0000000000000018 $d
  1505. /tmp/ccBr5UzG.s:791 .text.HAL_EXTI_ClearPending:0000000000000000 $t
  1506. /tmp/ccBr5UzG.s:797 .text.HAL_EXTI_ClearPending:0000000000000000 HAL_EXTI_ClearPending
  1507. /tmp/ccBr5UzG.s:828 .text.HAL_EXTI_ClearPending:0000000000000010 $d
  1508. /tmp/ccBr5UzG.s:833 .text.HAL_EXTI_GenerateSWI:0000000000000000 $t
  1509. /tmp/ccBr5UzG.s:839 .text.HAL_EXTI_GenerateSWI:0000000000000000 HAL_EXTI_GenerateSWI
  1510. /tmp/ccBr5UzG.s:868 .text.HAL_EXTI_GenerateSWI:0000000000000010 $d
  1511. NO UNDEFINED SYMBOLS