stm32f3xx_hal_uart_ex.lst 248 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853
  1. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 1
  2. 1 .cpu cortex-m4
  3. 2 .arch armv7e-m
  4. 3 .fpu fpv4-sp-d16
  5. 4 .eabi_attribute 27, 1
  6. 5 .eabi_attribute 28, 1
  7. 6 .eabi_attribute 20, 1
  8. 7 .eabi_attribute 21, 1
  9. 8 .eabi_attribute 23, 3
  10. 9 .eabi_attribute 24, 1
  11. 10 .eabi_attribute 25, 1
  12. 11 .eabi_attribute 26, 1
  13. 12 .eabi_attribute 30, 2
  14. 13 .eabi_attribute 34, 1
  15. 14 .eabi_attribute 18, 4
  16. 15 .file "stm32f3xx_hal_uart_ex.c"
  17. 16 .text
  18. 17 .Ltext0:
  19. 18 .cfi_sections .debug_frame
  20. 19 .section .rodata.HAL_RS485Ex_Init.str1.4,"aMS",%progbits,1
  21. 20 .align 2
  22. 21 .LC0:
  23. 22 0000 44726976 .ascii "Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart"
  24. 22 6572732F
  25. 22 53544D33
  26. 22 32463378
  27. 22 785F4841
  28. 23 0033 5F65782E .ascii "_ex.c\000"
  29. 23 6300
  30. 24 .section .text.HAL_RS485Ex_Init,"ax",%progbits
  31. 25 .align 1
  32. 26 .p2align 2,,3
  33. 27 .global HAL_RS485Ex_Init
  34. 28 .syntax unified
  35. 29 .thumb
  36. 30 .thumb_func
  37. 32 HAL_RS485Ex_Init:
  38. 33 .LVL0:
  39. 34 .LFB130:
  40. 35 .file 1 "Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c"
  41. 1:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  42. 2:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ******************************************************************************
  43. 3:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @file stm32f3xx_hal_uart_ex.c
  44. 4:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @author MCD Application Team
  45. 5:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Extended UART HAL module driver.
  46. 6:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * This file provides firmware functions to manage the following extended
  47. 7:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * functionalities of the Universal Asynchronous Receiver Transmitter Peripheral (UART).
  48. 8:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * + Initialization and de-initialization functions
  49. 9:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * + Peripheral Control functions
  50. 10:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *
  51. 11:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *
  52. 12:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ******************************************************************************
  53. 13:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @attention
  54. 14:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *
  55. 15:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * Copyright (c) 2016 STMicroelectronics.
  56. 16:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * All rights reserved.
  57. 17:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *
  58. 18:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * This software is licensed under terms that can be found in the LICENSE file
  59. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 2
  60. 19:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * in the root directory of this software component.
  61. 20:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * If no LICENSE file comes with this software, it is provided AS-IS.
  62. 21:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *
  63. 22:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ******************************************************************************
  64. 23:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** @verbatim
  65. 24:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ==============================================================================
  66. 25:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ##### UART peripheral extended features #####
  67. 26:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ==============================================================================
  68. 27:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  69. 28:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (#) Declare a UART_HandleTypeDef handle structure.
  70. 29:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  71. 30:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (#) For the UART RS485 Driver Enable mode, initialize the UART registers
  72. 31:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** by calling the HAL_RS485Ex_Init() API.
  73. 32:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  74. 33:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** @endverbatim
  75. 34:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ******************************************************************************
  76. 35:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  77. 36:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  78. 37:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Includes ------------------------------------------------------------------*/
  79. 38:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** #include "stm32f3xx_hal.h"
  80. 39:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  81. 40:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /** @addtogroup STM32F3xx_HAL_Driver
  82. 41:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @{
  83. 42:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  84. 43:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  85. 44:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /** @defgroup UARTEx UARTEx
  86. 45:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief UART Extended HAL module driver
  87. 46:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @{
  88. 47:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  89. 48:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  90. 49:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** #ifdef HAL_UART_MODULE_ENABLED
  91. 50:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  92. 51:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Private typedef -----------------------------------------------------------*/
  93. 52:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Private define ------------------------------------------------------------*/
  94. 53:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  95. 54:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Private macros ------------------------------------------------------------*/
  96. 55:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Private variables ---------------------------------------------------------*/
  97. 56:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Private function prototypes -----------------------------------------------*/
  98. 57:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /** @defgroup UARTEx_Private_Functions UARTEx Private Functions
  99. 58:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @{
  100. 59:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  101. 60:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** static void UARTEx_Wakeup_AddressConfig(UART_HandleTypeDef *huart, UART_WakeUpTypeDef WakeUpSelecti
  102. 61:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  103. 62:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @}
  104. 63:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  105. 64:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  106. 65:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Exported functions --------------------------------------------------------*/
  107. 66:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  108. 67:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /** @defgroup UARTEx_Exported_Functions UARTEx Exported Functions
  109. 68:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @{
  110. 69:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  111. 70:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  112. 71:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /** @defgroup UARTEx_Exported_Functions_Group1 Initialization and de-initialization functions
  113. 72:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Extended Initialization and Configuration Functions
  114. 73:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *
  115. 74:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** @verbatim
  116. 75:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ===============================================================================
  117. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 3
  118. 76:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ##### Initialization and Configuration functions #####
  119. 77:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ===============================================================================
  120. 78:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** [..]
  121. 79:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** This subsection provides a set of functions allowing to initialize the USARTx or the UARTy
  122. 80:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** in asynchronous mode.
  123. 81:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) For the asynchronous mode the parameters below can be configured:
  124. 82:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) Baud Rate
  125. 83:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) Word Length
  126. 84:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) Stop Bit
  127. 85:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) Parity: If the parity is enabled, then the MSB bit of the data written
  128. 86:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** in the data register is transmitted but is changed by the parity bit.
  129. 87:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) Hardware flow control
  130. 88:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) Receiver/transmitter modes
  131. 89:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) Over Sampling Method
  132. 90:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) One-Bit Sampling Method
  133. 91:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) For the asynchronous mode, the following advanced features can be configured as well:
  134. 92:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) TX and/or RX pin level inversion
  135. 93:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) data logical level inversion
  136. 94:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) RX and TX pins swap
  137. 95:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) RX overrun detection disabling
  138. 96:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) DMA disabling on RX error
  139. 97:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) MSB first on communication line
  140. 98:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) auto Baud rate detection
  141. 99:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** [..]
  142. 100:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** The HAL_RS485Ex_Init() API follows the UART RS485 mode configuration
  143. 101:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** procedures (details for the procedures are available in reference manual).
  144. 102:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  145. 103:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** @endverbatim
  146. 104:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  147. 105:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** Depending on the frame length defined by the M1 and M0 bits (7-bit,
  148. 106:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** 8-bit or 9-bit), the possible UART formats are listed in the
  149. 107:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** following table.
  150. 108:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  151. 109:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** Table 1. UART frame format.
  152. 110:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** +-----------------------------------------------------------------------+
  153. 111:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** | M1 bit | M0 bit | PCE bit | UART frame |
  154. 112:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** |---------|---------|-----------|---------------------------------------|
  155. 113:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** | 0 | 0 | 0 | | SB | 8 bit data | STB | |
  156. 114:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** |---------|---------|-----------|---------------------------------------|
  157. 115:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** | 0 | 0 | 1 | | SB | 7 bit data | PB | STB | |
  158. 116:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** |---------|---------|-----------|---------------------------------------|
  159. 117:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** | 0 | 1 | 0 | | SB | 9 bit data | STB | |
  160. 118:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** |---------|---------|-----------|---------------------------------------|
  161. 119:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** | 0 | 1 | 1 | | SB | 8 bit data | PB | STB | |
  162. 120:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** |---------|---------|-----------|---------------------------------------|
  163. 121:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** | 1 | 0 | 0 | | SB | 7 bit data | STB | |
  164. 122:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** |---------|---------|-----------|---------------------------------------|
  165. 123:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** | 1 | 0 | 1 | | SB | 6 bit data | PB | STB | |
  166. 124:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** +-----------------------------------------------------------------------+
  167. 125:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  168. 126:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @{
  169. 127:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  170. 128:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  171. 129:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  172. 130:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Initialize the RS485 Driver enable feature according to the specified
  173. 131:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * parameters in the UART_InitTypeDef and creates the associated handle.
  174. 132:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  175. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 4
  176. 133:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param Polarity Select the driver enable polarity.
  177. 134:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * This parameter can be one of the following values:
  178. 135:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @arg @ref UART_DE_POLARITY_HIGH DE signal is active high
  179. 136:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @arg @ref UART_DE_POLARITY_LOW DE signal is active low
  180. 137:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param AssertionTime Driver Enable assertion time:
  181. 138:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * 5-bit value defining the time between the activation of the DE (Driver Enable)
  182. 139:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * signal and the beginning of the start bit. It is expressed in sample time
  183. 140:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * units (1/8 or 1/16 bit time, depending on the oversampling rate)
  184. 141:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param DeassertionTime Driver Enable deassertion time:
  185. 142:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * 5-bit value defining the time between the end of the last stop bit, in a
  186. 143:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * transmitted message, and the de-activation of the DE (Driver Enable) signal.
  187. 144:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * It is expressed in sample time units (1/8 or 1/16 bit time, depending on the
  188. 145:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * oversampling rate).
  189. 146:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval HAL status
  190. 147:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  191. 148:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef HAL_RS485Ex_Init(UART_HandleTypeDef *huart, uint32_t Polarity, uint32_t Assertion
  192. 149:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint32_t DeassertionTime)
  193. 150:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  194. 36 .loc 1 150 1 view -0
  195. 37 .cfi_startproc
  196. 38 @ args = 0, pretend = 0, frame = 0
  197. 39 @ frame_needed = 0, uses_anonymous_args = 0
  198. 151:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint32_t temp;
  199. 40 .loc 1 151 3 view .LVU1
  200. 152:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  201. 153:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check the UART handle allocation */
  202. 154:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart == NULL)
  203. 41 .loc 1 154 3 view .LVU2
  204. 42 .loc 1 154 6 is_stmt 0 view .LVU3
  205. 43 0000 0028 cmp r0, #0
  206. 44 0002 6DD0 beq .L21
  207. 150:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint32_t temp;
  208. 45 .loc 1 150 1 view .LVU4
  209. 46 0004 2DE9F041 push {r4, r5, r6, r7, r8, lr}
  210. 47 .LCFI0:
  211. 48 .cfi_def_cfa_offset 24
  212. 49 .cfi_offset 4, -24
  213. 50 .cfi_offset 5, -20
  214. 51 .cfi_offset 6, -16
  215. 52 .cfi_offset 7, -12
  216. 53 .cfi_offset 8, -8
  217. 54 .cfi_offset 14, -4
  218. 55 0008 9046 mov r8, r2
  219. 56 000a 1D46 mov r5, r3
  220. 155:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  221. 156:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_ERROR;
  222. 157:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  223. 158:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check the Driver Enable UART instance */
  224. 159:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** assert_param(IS_UART_DRIVER_ENABLE_INSTANCE(huart->Instance));
  225. 57 .loc 1 159 3 view .LVU5
  226. 58 000c 354A ldr r2, .L30
  227. 59 .LVL1:
  228. 60 .loc 1 159 3 view .LVU6
  229. 61 000e 0368 ldr r3, [r0]
  230. 62 .LVL2:
  231. 63 .loc 1 159 3 view .LVU7
  232. 64 0010 9342 cmp r3, r2
  233. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 5
  234. 65 0012 0F46 mov r7, r1
  235. 66 0014 0446 mov r4, r0
  236. 67 .loc 1 159 3 is_stmt 1 view .LVU8
  237. 68 0016 0BD0 beq .L4
  238. 69 .loc 1 159 3 is_stmt 0 discriminator 1 view .LVU9
  239. 70 0018 A2F57442 sub r2, r2, #62464
  240. 71 001c 9342 cmp r3, r2
  241. 72 001e 07D0 beq .L4
  242. 73 .loc 1 159 3 discriminator 2 view .LVU10
  243. 74 0020 02F58062 add r2, r2, #1024
  244. 75 0024 9342 cmp r3, r2
  245. 76 0026 03D0 beq .L4
  246. 77 .loc 1 159 3 discriminator 3 view .LVU11
  247. 78 0028 2F48 ldr r0, .L30+4
  248. 79 .LVL3:
  249. 80 .loc 1 159 3 discriminator 3 view .LVU12
  250. 81 002a 9F21 movs r1, #159
  251. 82 .LVL4:
  252. 83 .loc 1 159 3 discriminator 3 view .LVU13
  253. 84 002c FFF7FEFF bl assert_failed
  254. 85 .LVL5:
  255. 86 .L4:
  256. 160:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  257. 161:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check the Driver Enable polarity */
  258. 162:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** assert_param(IS_UART_DE_POLARITY(Polarity));
  259. 87 .loc 1 162 3 is_stmt 1 view .LVU14
  260. 88 0030 37F40043 bics r3, r7, #32768
  261. 89 0034 33D1 bne .L25
  262. 163:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  263. 164:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check the Driver Enable assertion time */
  264. 165:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** assert_param(IS_UART_ASSERTIONTIME(AssertionTime));
  265. 90 .loc 1 165 3 view .LVU15
  266. 91 0036 B8F11F0F cmp r8, #31
  267. 92 003a 37D8 bhi .L26
  268. 93 .L6:
  269. 166:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  270. 167:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check the Driver Enable deassertion time */
  271. 168:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** assert_param(IS_UART_DEASSERTIONTIME(DeassertionTime));
  272. 94 .loc 1 168 3 view .LVU16
  273. 95 003c 1F2D cmp r5, #31
  274. 96 003e 3BD8 bhi .L27
  275. 97 .L7:
  276. 169:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  277. 170:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart->gState == HAL_UART_STATE_RESET)
  278. 98 .loc 1 170 3 view .LVU17
  279. 99 .loc 1 170 12 is_stmt 0 view .LVU18
  280. 100 0040 E36F ldr r3, [r4, #124]
  281. 101 .loc 1 170 6 view .LVU19
  282. 102 0042 002B cmp r3, #0
  283. 103 0044 3FD0 beq .L28
  284. 104 .L8:
  285. 171:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  286. 172:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Allocate lock resource and initialize it */
  287. 173:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->Lock = HAL_UNLOCKED;
  288. 174:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  289. 175:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  290. 176:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** UART_InitCallbacksToDefault(huart);
  291. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 6
  292. 177:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  293. 178:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart->MspInitCallback == NULL)
  294. 179:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  295. 180:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->MspInitCallback = HAL_UART_MspInit;
  296. 181:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  297. 182:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  298. 183:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Init the low level hardware */
  299. 184:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->MspInitCallback(huart);
  300. 185:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** #else
  301. 186:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Init the low level hardware : GPIO, CLOCK, CORTEX */
  302. 187:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_UART_MspInit(huart);
  303. 188:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  304. 189:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  305. 190:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  306. 191:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->gState = HAL_UART_STATE_BUSY;
  307. 105 .loc 1 191 3 is_stmt 1 view .LVU20
  308. 192:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  309. 193:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Disable the Peripheral */
  310. 194:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UART_DISABLE(huart);
  311. 106 .loc 1 194 3 is_stmt 0 view .LVU21
  312. 107 0046 2268 ldr r2, [r4]
  313. 195:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  314. 196:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Perform advanced settings configuration */
  315. 197:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* For some items, configuration requires to be done prior TE and RE bits are set */
  316. 198:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  317. 108 .loc 1 198 6 view .LVU22
  318. 109 0048 616A ldr r1, [r4, #36]
  319. 191:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  320. 110 .loc 1 191 17 view .LVU23
  321. 111 004a 2423 movs r3, #36
  322. 112 004c E367 str r3, [r4, #124]
  323. 194:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  324. 113 .loc 1 194 3 is_stmt 1 view .LVU24
  325. 114 004e 1368 ldr r3, [r2]
  326. 115 0050 23F00103 bic r3, r3, #1
  327. 116 0054 1360 str r3, [r2]
  328. 117 .loc 1 198 3 view .LVU25
  329. 118 .loc 1 198 6 is_stmt 0 view .LVU26
  330. 119 0056 0029 cmp r1, #0
  331. 120 0058 3ED1 bne .L29
  332. 121 .L9:
  333. 199:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  334. 200:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** UART_AdvFeatureConfig(huart);
  335. 201:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  336. 202:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  337. 203:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set the UART Communication parameters */
  338. 204:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (UART_SetConfig(huart) == HAL_ERROR)
  339. 122 .loc 1 204 3 is_stmt 1 view .LVU27
  340. 123 .loc 1 204 7 is_stmt 0 view .LVU28
  341. 124 005a 2046 mov r0, r4
  342. 125 005c FFF7FEFF bl UART_SetConfig
  343. 126 .LVL6:
  344. 127 .loc 1 204 6 view .LVU29
  345. 128 0060 0128 cmp r0, #1
  346. 129 0062 36D0 beq .L3
  347. 205:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  348. 206:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_ERROR;
  349. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 7
  350. 207:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  351. 208:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  352. 209:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Enable the Driver Enable mode by setting the DEM bit in the CR3 register */
  353. 210:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** SET_BIT(huart->Instance->CR3, USART_CR3_DEM);
  354. 130 .loc 1 210 3 is_stmt 1 view .LVU30
  355. 131 0064 2668 ldr r6, [r4]
  356. 211:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  357. 212:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set the Driver Enable polarity */
  358. 213:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** MODIFY_REG(huart->Instance->CR3, USART_CR3_DEP, Polarity);
  359. 214:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  360. 215:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set the Driver Enable assertion and deassertion times */
  361. 216:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** temp = (AssertionTime << UART_CR1_DEAT_ADDRESS_LSB_POS);
  362. 217:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** temp |= (DeassertionTime << UART_CR1_DEDT_ADDRESS_LSB_POS);
  363. 132 .loc 1 217 28 is_stmt 0 view .LVU31
  364. 133 0066 2B04 lsls r3, r5, #16
  365. 134 .loc 1 217 8 view .LVU32
  366. 135 0068 43EA4855 orr r5, r3, r8, lsl #21
  367. 136 .LVL7:
  368. 210:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  369. 137 .loc 1 210 3 view .LVU33
  370. 138 006c B368 ldr r3, [r6, #8]
  371. 139 006e 43F48043 orr r3, r3, #16384
  372. 140 0072 B360 str r3, [r6, #8]
  373. 213:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  374. 141 .loc 1 213 3 is_stmt 1 view .LVU34
  375. 142 0074 B168 ldr r1, [r6, #8]
  376. 143 0076 21F40041 bic r1, r1, #32768
  377. 144 007a 0F43 orrs r7, r7, r1
  378. 145 .LVL8:
  379. 213:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  380. 146 .loc 1 213 3 is_stmt 0 view .LVU35
  381. 147 007c B760 str r7, [r6, #8]
  382. 216:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** temp |= (DeassertionTime << UART_CR1_DEDT_ADDRESS_LSB_POS);
  383. 148 .loc 1 216 3 is_stmt 1 view .LVU36
  384. 149 .LVL9:
  385. 150 .loc 1 217 3 view .LVU37
  386. 218:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** MODIFY_REG(huart->Instance->CR1, (USART_CR1_DEDT | USART_CR1_DEAT), temp);
  387. 151 .loc 1 218 3 view .LVU38
  388. 152 007e 3268 ldr r2, [r6]
  389. 153 0080 22F07F72 bic r2, r2, #66846720
  390. 154 0084 22F44032 bic r2, r2, #196608
  391. 155 0088 1543 orrs r5, r5, r2
  392. 156 008a 3560 str r5, [r6]
  393. 219:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  394. 220:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Enable the Peripheral */
  395. 221:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UART_ENABLE(huart);
  396. 157 .loc 1 221 3 view .LVU39
  397. 158 008c 3368 ldr r3, [r6]
  398. 159 008e 43F00103 orr r3, r3, #1
  399. 222:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  400. 223:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  401. 224:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return (UART_CheckIdleState(huart));
  402. 160 .loc 1 224 11 is_stmt 0 view .LVU40
  403. 161 0092 2046 mov r0, r4
  404. 221:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  405. 162 .loc 1 221 3 view .LVU41
  406. 163 0094 3360 str r3, [r6]
  407. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 8
  408. 164 .loc 1 224 3 is_stmt 1 view .LVU42
  409. 225:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  410. 165 .loc 1 225 1 is_stmt 0 view .LVU43
  411. 166 0096 BDE8F041 pop {r4, r5, r6, r7, r8, lr}
  412. 167 .LCFI1:
  413. 168 .cfi_remember_state
  414. 169 .cfi_restore 14
  415. 170 .cfi_restore 8
  416. 171 .cfi_restore 7
  417. 172 .cfi_restore 6
  418. 173 .cfi_restore 5
  419. 174 .cfi_restore 4
  420. 175 .cfi_def_cfa_offset 0
  421. 176 .LVL10:
  422. 224:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  423. 177 .loc 1 224 11 view .LVU44
  424. 178 009a FFF7FEBF b UART_CheckIdleState
  425. 179 .LVL11:
  426. 180 .L25:
  427. 181 .LCFI2:
  428. 182 .cfi_restore_state
  429. 162:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  430. 183 .loc 1 162 3 discriminator 2 view .LVU45
  431. 184 009e 1248 ldr r0, .L30+4
  432. 185 00a0 A221 movs r1, #162
  433. 186 00a2 FFF7FEFF bl assert_failed
  434. 187 .LVL12:
  435. 165:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  436. 188 .loc 1 165 3 is_stmt 1 discriminator 2 view .LVU46
  437. 189 00a6 B8F11F0F cmp r8, #31
  438. 190 00aa C7D9 bls .L6
  439. 191 .L26:
  440. 165:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  441. 192 .loc 1 165 3 is_stmt 0 discriminator 1 view .LVU47
  442. 193 00ac 0E48 ldr r0, .L30+4
  443. 194 00ae A521 movs r1, #165
  444. 195 00b0 FFF7FEFF bl assert_failed
  445. 196 .LVL13:
  446. 168:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  447. 197 .loc 1 168 3 is_stmt 1 discriminator 1 view .LVU48
  448. 198 00b4 1F2D cmp r5, #31
  449. 199 00b6 C3D9 bls .L7
  450. 200 .L27:
  451. 168:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  452. 201 .loc 1 168 3 is_stmt 0 discriminator 1 view .LVU49
  453. 202 00b8 0B48 ldr r0, .L30+4
  454. 203 00ba A821 movs r1, #168
  455. 204 00bc FFF7FEFF bl assert_failed
  456. 205 .LVL14:
  457. 170:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  458. 206 .loc 1 170 3 is_stmt 1 discriminator 1 view .LVU50
  459. 170:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  460. 207 .loc 1 170 12 is_stmt 0 discriminator 1 view .LVU51
  461. 208 00c0 E36F ldr r3, [r4, #124]
  462. 170:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  463. 209 .loc 1 170 6 discriminator 1 view .LVU52
  464. 210 00c2 002B cmp r3, #0
  465. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 9
  466. 211 00c4 BFD1 bne .L8
  467. 212 .L28:
  468. 173:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  469. 213 .loc 1 173 5 is_stmt 1 view .LVU53
  470. 173:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  471. 214 .loc 1 173 17 is_stmt 0 view .LVU54
  472. 215 00c6 84F87830 strb r3, [r4, #120]
  473. 187:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  474. 216 .loc 1 187 5 is_stmt 1 view .LVU55
  475. 217 00ca 2046 mov r0, r4
  476. 218 00cc FFF7FEFF bl HAL_UART_MspInit
  477. 219 .LVL15:
  478. 220 00d0 B9E7 b .L8
  479. 221 .L3:
  480. 222 .loc 1 225 1 is_stmt 0 view .LVU56
  481. 223 00d2 0120 movs r0, #1
  482. 224 00d4 BDE8F081 pop {r4, r5, r6, r7, r8, pc}
  483. 225 .LVL16:
  484. 226 .L29:
  485. 200:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  486. 227 .loc 1 200 5 is_stmt 1 view .LVU57
  487. 228 00d8 2046 mov r0, r4
  488. 229 00da FFF7FEFF bl UART_AdvFeatureConfig
  489. 230 .LVL17:
  490. 231 00de BCE7 b .L9
  491. 232 .LVL18:
  492. 233 .L21:
  493. 234 .LCFI3:
  494. 235 .cfi_def_cfa_offset 0
  495. 236 .cfi_restore 4
  496. 237 .cfi_restore 5
  497. 238 .cfi_restore 6
  498. 239 .cfi_restore 7
  499. 240 .cfi_restore 8
  500. 241 .cfi_restore 14
  501. 242 .loc 1 225 1 is_stmt 0 view .LVU58
  502. 243 00e0 0120 movs r0, #1
  503. 244 .LVL19:
  504. 245 .loc 1 225 1 view .LVU59
  505. 246 00e2 7047 bx lr
  506. 247 .L31:
  507. 248 .align 2
  508. 249 .L30:
  509. 250 00e4 00380140 .word 1073821696
  510. 251 00e8 00000000 .word .LC0
  511. 252 .cfi_endproc
  512. 253 .LFE130:
  513. 255 .section .text.HAL_UARTEx_WakeupCallback,"ax",%progbits
  514. 256 .align 1
  515. 257 .p2align 2,,3
  516. 258 .weak HAL_UARTEx_WakeupCallback
  517. 259 .syntax unified
  518. 260 .thumb
  519. 261 .thumb_func
  520. 263 HAL_UARTEx_WakeupCallback:
  521. 264 .LVL20:
  522. 265 .LFB131:
  523. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 10
  524. 226:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  525. 227:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  526. 228:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @}
  527. 229:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  528. 230:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  529. 231:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /** @defgroup UARTEx_Exported_Functions_Group2 IO operation functions
  530. 232:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Extended functions
  531. 233:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *
  532. 234:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** @verbatim
  533. 235:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ===============================================================================
  534. 236:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ##### IO operation functions #####
  535. 237:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ===============================================================================
  536. 238:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** This subsection provides a set of Wakeup and FIFO mode related callback functions.
  537. 239:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  538. 240:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (#) Wakeup from Stop mode Callback:
  539. 241:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) HAL_UARTEx_WakeupCallback()
  540. 242:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  541. 243:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** @endverbatim
  542. 244:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @{
  543. 245:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  544. 246:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  545. 247:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  546. 248:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief UART wakeup from Stop mode callback.
  547. 249:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  548. 250:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval None
  549. 251:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  550. 252:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  551. 253:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  552. 266 .loc 1 253 1 is_stmt 1 view -0
  553. 267 .cfi_startproc
  554. 268 @ args = 0, pretend = 0, frame = 0
  555. 269 @ frame_needed = 0, uses_anonymous_args = 0
  556. 270 @ link register save eliminated.
  557. 254:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Prevent unused argument(s) compilation warning */
  558. 255:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** UNUSED(huart);
  559. 271 .loc 1 255 3 view .LVU61
  560. 256:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  561. 257:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* NOTE : This function should not be modified, when the callback is needed,
  562. 258:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  563. 259:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  564. 260:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  565. 272 .loc 1 260 1 is_stmt 0 view .LVU62
  566. 273 0000 7047 bx lr
  567. 274 .cfi_endproc
  568. 275 .LFE131:
  569. 277 0002 00BF .section .text.HAL_MultiProcessorEx_AddressLength_Set,"ax",%progbits
  570. 278 .align 1
  571. 279 .p2align 2,,3
  572. 280 .global HAL_MultiProcessorEx_AddressLength_Set
  573. 281 .syntax unified
  574. 282 .thumb
  575. 283 .thumb_func
  576. 285 HAL_MultiProcessorEx_AddressLength_Set:
  577. 286 .LVL21:
  578. 287 .LFB132:
  579. 261:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  580. 262:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  581. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 11
  582. 263:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  583. 264:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @}
  584. 265:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  585. 266:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  586. 267:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /** @defgroup UARTEx_Exported_Functions_Group3 Peripheral Control functions
  587. 268:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Extended Peripheral Control functions
  588. 269:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *
  589. 270:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** @verbatim
  590. 271:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ===============================================================================
  591. 272:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ##### Peripheral Control functions #####
  592. 273:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ===============================================================================
  593. 274:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** [..] This section provides the following functions:
  594. 275:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) HAL_MultiProcessorEx_AddressLength_Set() API optionally sets the UART node address
  595. 276:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** detection length to more than 4 bits for multiprocessor address mark wake up.
  596. 277:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) HAL_UARTEx_StopModeWakeUpSourceConfig() API defines the wake-up from stop mode
  597. 278:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** trigger: address match, Start Bit detection or RXNE bit status.
  598. 279:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) HAL_UARTEx_EnableStopMode() API enables the UART to wake up the MCU from stop mode
  599. 280:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) HAL_UARTEx_DisableStopMode() API disables the above functionality
  600. 281:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  601. 282:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** [..] This subsection also provides a set of additional functions providing enhanced reception
  602. 283:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** services to user. (For example, these functions allow application to handle use cases
  603. 284:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** where number of data to be received is unknown).
  604. 285:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  605. 286:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (#) Compared to standard reception services which only consider number of received
  606. 287:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** data elements as reception completion criteria, these functions also consider additional ev
  607. 288:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** as triggers for updating reception status to caller :
  608. 289:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) Detection of inactivity period (RX line has not been active for a given period).
  609. 290:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) RX inactivity detected by IDLE event, i.e. RX line has been in idle state (normally
  610. 291:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** for 1 frame time, after last received byte.
  611. 292:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (++) RX inactivity detected by RTO, i.e. line has been in idle state
  612. 293:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** for a programmable time, after last received byte.
  613. 294:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) Detection that a specific character has been received.
  614. 295:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  615. 296:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (#) There are two mode of transfer:
  616. 297:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) Blocking mode: The reception is performed in polling mode, until either expected number
  617. 298:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** or till IDLE event occurs. Reception is handled only during function execution.
  618. 299:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** When function exits, no data reception could occur. HAL status and number of actually re
  619. 300:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** are returned by function after finishing transfer.
  620. 301:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) Non-Blocking mode: The reception is performed using Interrupts or DMA.
  621. 302:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** These API's return the HAL status.
  622. 303:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** The end of the data processing will be indicated through the
  623. 304:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** dedicated UART IRQ when using Interrupt mode or the DMA IRQ when using DMA mode.
  624. 305:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** The HAL_UARTEx_RxEventCallback() user callback will be executed during Receive process
  625. 306:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** The HAL_UART_ErrorCallback()user callback will be executed when a reception error is det
  626. 307:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  627. 308:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (#) Blocking mode API:
  628. 309:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) HAL_UARTEx_ReceiveToIdle()
  629. 310:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  630. 311:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (#) Non-Blocking mode API with Interrupt:
  631. 312:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) HAL_UARTEx_ReceiveToIdle_IT()
  632. 313:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  633. 314:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (#) Non-Blocking mode API with DMA:
  634. 315:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (+) HAL_UARTEx_ReceiveToIdle_DMA()
  635. 316:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  636. 317:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** @endverbatim
  637. 318:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @{
  638. 319:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  639. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 12
  640. 320:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  641. 321:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  642. 322:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief By default in multiprocessor mode, when the wake up method is set
  643. 323:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * to address mark, the UART handles only 4-bit long addresses detection;
  644. 324:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * this API allows to enable longer addresses detection (6-, 7- or 8-bit
  645. 325:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * long).
  646. 326:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note Addresses detection lengths are: 6-bit address detection in 7-bit data mode,
  647. 327:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * 7-bit address detection in 8-bit data mode, 8-bit address detection in 9-bit data mode.
  648. 328:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  649. 329:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param AddressLength This parameter can be one of the following values:
  650. 330:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @arg @ref UART_ADDRESS_DETECT_4B 4-bit long address
  651. 331:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @arg @ref UART_ADDRESS_DETECT_7B 6-, 7- or 8-bit long address
  652. 332:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval HAL status
  653. 333:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  654. 334:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef HAL_MultiProcessorEx_AddressLength_Set(UART_HandleTypeDef *huart, uint32_t Addres
  655. 335:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  656. 288 .loc 1 335 1 is_stmt 1 view -0
  657. 289 .cfi_startproc
  658. 290 @ args = 0, pretend = 0, frame = 0
  659. 291 @ frame_needed = 0, uses_anonymous_args = 0
  660. 336:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check the UART handle allocation */
  661. 337:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart == NULL)
  662. 292 .loc 1 337 3 view .LVU64
  663. 293 .loc 1 337 6 is_stmt 0 view .LVU65
  664. 294 0000 F8B1 cbz r0, .L34
  665. 338:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  666. 339:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_ERROR;
  667. 340:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  668. 341:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  669. 342:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check the address length parameter */
  670. 343:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** assert_param(IS_UART_ADDRESSLENGTH_DETECT(AddressLength));
  671. 295 .loc 1 343 3 is_stmt 1 view .LVU66
  672. 335:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check the UART handle allocation */
  673. 296 .loc 1 335 1 is_stmt 0 view .LVU67
  674. 297 0002 38B5 push {r3, r4, r5, lr}
  675. 298 .LCFI4:
  676. 299 .cfi_def_cfa_offset 16
  677. 300 .cfi_offset 3, -16
  678. 301 .cfi_offset 4, -12
  679. 302 .cfi_offset 5, -8
  680. 303 .cfi_offset 14, -4
  681. 304 .loc 1 343 3 view .LVU68
  682. 305 0004 31F01003 bics r3, r1, #16
  683. 306 0008 0D46 mov r5, r1
  684. 307 000a 0446 mov r4, r0
  685. 308 000c 04D0 beq .L35
  686. 309 .loc 1 343 3 discriminator 2 view .LVU69
  687. 310 000e 0E48 ldr r0, .L42
  688. 311 .LVL22:
  689. 312 .loc 1 343 3 discriminator 2 view .LVU70
  690. 313 0010 40F25711 movw r1, #343
  691. 314 .LVL23:
  692. 315 .loc 1 343 3 discriminator 2 view .LVU71
  693. 316 0014 FFF7FEFF bl assert_failed
  694. 317 .LVL24:
  695. 318 .L35:
  696. 344:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  697. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 13
  698. 345:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->gState = HAL_UART_STATE_BUSY;
  699. 319 .loc 1 345 3 is_stmt 1 view .LVU72
  700. 346:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  701. 347:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Disable the Peripheral */
  702. 348:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UART_DISABLE(huart);
  703. 320 .loc 1 348 3 is_stmt 0 view .LVU73
  704. 321 0018 2368 ldr r3, [r4]
  705. 345:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  706. 322 .loc 1 345 17 view .LVU74
  707. 323 001a 2422 movs r2, #36
  708. 324 001c E267 str r2, [r4, #124]
  709. 325 .loc 1 348 3 is_stmt 1 view .LVU75
  710. 326 001e 1A68 ldr r2, [r3]
  711. 327 0020 22F00102 bic r2, r2, #1
  712. 328 0024 1A60 str r2, [r3]
  713. 349:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  714. 350:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set the address length */
  715. 351:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** MODIFY_REG(huart->Instance->CR2, USART_CR2_ADDM7, AddressLength);
  716. 329 .loc 1 351 3 view .LVU76
  717. 330 0026 5A68 ldr r2, [r3, #4]
  718. 331 0028 22F01002 bic r2, r2, #16
  719. 332 002c 2A43 orrs r2, r2, r5
  720. 333 002e 5A60 str r2, [r3, #4]
  721. 352:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  722. 353:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Enable the Peripheral */
  723. 354:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UART_ENABLE(huart);
  724. 334 .loc 1 354 3 view .LVU77
  725. 335 0030 1A68 ldr r2, [r3]
  726. 336 0032 42F00102 orr r2, r2, #1
  727. 355:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  728. 356:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* TEACK and/or REACK to check before moving huart->gState to Ready */
  729. 357:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return (UART_CheckIdleState(huart));
  730. 337 .loc 1 357 11 is_stmt 0 view .LVU78
  731. 338 0036 2046 mov r0, r4
  732. 354:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  733. 339 .loc 1 354 3 view .LVU79
  734. 340 0038 1A60 str r2, [r3]
  735. 341 .loc 1 357 3 is_stmt 1 view .LVU80
  736. 358:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  737. 342 .loc 1 358 1 is_stmt 0 view .LVU81
  738. 343 003a BDE83840 pop {r3, r4, r5, lr}
  739. 344 .LCFI5:
  740. 345 .cfi_restore 14
  741. 346 .cfi_restore 5
  742. 347 .cfi_restore 4
  743. 348 .cfi_restore 3
  744. 349 .cfi_def_cfa_offset 0
  745. 350 .LVL25:
  746. 357:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  747. 351 .loc 1 357 11 view .LVU82
  748. 352 003e FFF7FEBF b UART_CheckIdleState
  749. 353 .LVL26:
  750. 354 .L34:
  751. 355 .loc 1 358 1 view .LVU83
  752. 356 0042 0120 movs r0, #1
  753. 357 .LVL27:
  754. 358 .loc 1 358 1 view .LVU84
  755. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 14
  756. 359 0044 7047 bx lr
  757. 360 .L43:
  758. 361 0046 00BF .align 2
  759. 362 .L42:
  760. 363 0048 00000000 .word .LC0
  761. 364 .cfi_endproc
  762. 365 .LFE132:
  763. 367 .section .text.HAL_UARTEx_StopModeWakeUpSourceConfig,"ax",%progbits
  764. 368 .align 1
  765. 369 .p2align 2,,3
  766. 370 .global HAL_UARTEx_StopModeWakeUpSourceConfig
  767. 371 .syntax unified
  768. 372 .thumb
  769. 373 .thumb_func
  770. 375 HAL_UARTEx_StopModeWakeUpSourceConfig:
  771. 376 .LVL28:
  772. 377 .LFB133:
  773. 359:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  774. 360:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  775. 361:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Set Wakeup from Stop mode interrupt flag selection.
  776. 362:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note It is the application responsibility to enable the interrupt used as
  777. 363:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * usart_wkup interrupt source before entering low-power mode.
  778. 364:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  779. 365:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param WakeUpSelection Address match, Start Bit detection or RXNE/RXFNE bit status.
  780. 366:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * This parameter can be one of the following values:
  781. 367:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @arg @ref UART_WAKEUP_ON_ADDRESS
  782. 368:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @arg @ref UART_WAKEUP_ON_STARTBIT
  783. 369:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @arg @ref UART_WAKEUP_ON_READDATA_NONEMPTY
  784. 370:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval HAL status
  785. 371:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  786. 372:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef HAL_UARTEx_StopModeWakeUpSourceConfig(UART_HandleTypeDef *huart, UART_WakeUpTypeD
  787. 373:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  788. 378 .loc 1 373 1 is_stmt 1 view -0
  789. 379 .cfi_startproc
  790. 380 @ args = 0, pretend = 0, frame = 8
  791. 381 @ frame_needed = 0, uses_anonymous_args = 0
  792. 382 .loc 1 373 1 is_stmt 0 view .LVU86
  793. 383 0000 70B5 push {r4, r5, r6, lr}
  794. 384 .LCFI6:
  795. 385 .cfi_def_cfa_offset 16
  796. 386 .cfi_offset 4, -16
  797. 387 .cfi_offset 5, -12
  798. 388 .cfi_offset 6, -8
  799. 389 .cfi_offset 14, -4
  800. 390 0002 84B0 sub sp, sp, #16
  801. 391 .LCFI7:
  802. 392 .cfi_def_cfa_offset 32
  803. 393 .loc 1 373 1 view .LVU87
  804. 394 0004 04AB add r3, sp, #16
  805. 395 0006 03E90600 stmdb r3, {r1, r2}
  806. 374:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef status = HAL_OK;
  807. 375:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint32_t tickstart;
  808. 376:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  809. 377:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* check the wake-up from stop mode UART instance */
  810. 378:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** assert_param(IS_UART_WAKEUP_FROMSTOP_INSTANCE(huart->Instance));
  811. 396 .loc 1 378 3 view .LVU88
  812. 397 000a 0368 ldr r3, [r0]
  813. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 15
  814. 398 000c 404A ldr r2, .L66
  815. 399 000e 9342 cmp r3, r2
  816. 373:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef status = HAL_OK;
  817. 400 .loc 1 373 1 view .LVU89
  818. 401 0010 0446 mov r4, r0
  819. 402 0012 0D46 mov r5, r1
  820. 403 .LVL29:
  821. 374:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef status = HAL_OK;
  822. 404 .loc 1 374 3 is_stmt 1 view .LVU90
  823. 375:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  824. 405 .loc 1 375 3 view .LVU91
  825. 406 .loc 1 378 3 view .LVU92
  826. 407 0014 14D0 beq .L45
  827. 408 .loc 1 378 3 is_stmt 0 discriminator 1 view .LVU93
  828. 409 0016 A2F57442 sub r2, r2, #62464
  829. 410 001a 9342 cmp r3, r2
  830. 411 001c 10D0 beq .L45
  831. 412 .loc 1 378 3 discriminator 2 view .LVU94
  832. 413 001e 02F58062 add r2, r2, #1024
  833. 414 0022 9342 cmp r3, r2
  834. 415 0024 0CD0 beq .L45
  835. 416 .loc 1 378 3 discriminator 3 view .LVU95
  836. 417 0026 02F58062 add r2, r2, #1024
  837. 418 002a 9342 cmp r3, r2
  838. 419 002c 08D0 beq .L45
  839. 420 .loc 1 378 3 discriminator 4 view .LVU96
  840. 421 002e 02F58062 add r2, r2, #1024
  841. 422 0032 9342 cmp r3, r2
  842. 423 0034 04D0 beq .L45
  843. 424 .loc 1 378 3 discriminator 5 view .LVU97
  844. 425 0036 3748 ldr r0, .L66+4
  845. 426 .LVL30:
  846. 427 .loc 1 378 3 discriminator 5 view .LVU98
  847. 428 0038 4FF4BD71 mov r1, #378
  848. 429 .LVL31:
  849. 430 .loc 1 378 3 discriminator 5 view .LVU99
  850. 431 003c FFF7FEFF bl assert_failed
  851. 432 .LVL32:
  852. 433 .L45:
  853. 379:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* check the wake-up selection parameter */
  854. 380:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** assert_param(IS_UART_WAKEUP_SELECTION(WakeUpSelection.WakeUpEvent));
  855. 434 .loc 1 380 3 is_stmt 1 view .LVU100
  856. 435 0040 002D cmp r5, #0
  857. 436 0042 34D0 beq .L46
  858. 437 .loc 1 380 3 is_stmt 0 discriminator 1 view .LVU101
  859. 438 0044 25F48013 bic r3, r5, #1048576
  860. 439 0048 B3F5001F cmp r3, #2097152
  861. 440 004c 04D0 beq .L47
  862. 441 .loc 1 380 3 discriminator 3 view .LVU102
  863. 442 004e 3148 ldr r0, .L66+4
  864. 443 0050 4FF4BE71 mov r1, #380
  865. 444 0054 FFF7FEFF bl assert_failed
  866. 445 .LVL33:
  867. 446 .L47:
  868. 381:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  869. 382:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Process Locked */
  870. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_LOCK(huart);
  871. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 16
  872. 447 .loc 1 383 3 is_stmt 1 view .LVU103
  873. 448 .loc 1 383 3 view .LVU104
  874. 449 0058 94F87830 ldrb r3, [r4, #120] @ zero_extendqisi2
  875. 450 005c 012B cmp r3, #1
  876. 451 005e 53D0 beq .L54
  877. 452 .loc 1 383 3 view .LVU105
  878. 384:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  879. 385:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->gState = HAL_UART_STATE_BUSY;
  880. 386:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  881. 387:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Disable the Peripheral */
  882. 388:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UART_DISABLE(huart);
  883. 453 .loc 1 388 3 is_stmt 0 view .LVU106
  884. 454 0060 2368 ldr r3, [r4]
  885. 385:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  886. 455 .loc 1 385 17 view .LVU107
  887. 456 0062 2422 movs r2, #36
  888. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  889. 457 .loc 1 383 3 view .LVU108
  890. 458 0064 0121 movs r1, #1
  891. 459 0066 84F87810 strb r1, [r4, #120]
  892. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  893. 460 .loc 1 383 3 is_stmt 1 view .LVU109
  894. 385:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  895. 461 .loc 1 385 3 view .LVU110
  896. 385:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  897. 462 .loc 1 385 17 is_stmt 0 view .LVU111
  898. 463 006a E267 str r2, [r4, #124]
  899. 464 .loc 1 388 3 is_stmt 1 view .LVU112
  900. 465 006c 1A68 ldr r2, [r3]
  901. 466 006e 22F00102 bic r2, r2, #1
  902. 467 0072 1A60 str r2, [r3]
  903. 389:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  904. 390:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set the wake-up selection scheme */
  905. 391:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** MODIFY_REG(huart->Instance->CR3, USART_CR3_WUS, WakeUpSelection.WakeUpEvent);
  906. 468 .loc 1 391 3 view .LVU113
  907. 469 0074 9A68 ldr r2, [r3, #8]
  908. 470 0076 22F44012 bic r2, r2, #3145728
  909. 471 007a 1543 orrs r5, r5, r2
  910. 472 .LVL34:
  911. 473 .loc 1 391 3 is_stmt 0 view .LVU114
  912. 474 007c 9D60 str r5, [r3, #8]
  913. 392:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  914. 393:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (WakeUpSelection.WakeUpEvent == UART_WAKEUP_ON_ADDRESS)
  915. 475 .loc 1 393 3 is_stmt 1 view .LVU115
  916. 476 .L53:
  917. 394:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  918. 395:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** UARTEx_Wakeup_AddressConfig(huart, WakeUpSelection);
  919. 396:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  920. 397:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  921. 398:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Enable the Peripheral */
  922. 399:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UART_ENABLE(huart);
  923. 477 .loc 1 399 3 view .LVU116
  924. 478 007e 1A68 ldr r2, [r3]
  925. 479 0080 42F00102 orr r2, r2, #1
  926. 480 0084 1A60 str r2, [r3]
  927. 400:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  928. 401:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Init tickstart for timeout management */
  929. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 17
  930. 402:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** tickstart = HAL_GetTick();
  931. 481 .loc 1 402 3 view .LVU117
  932. 482 .loc 1 402 15 is_stmt 0 view .LVU118
  933. 483 0086 FFF7FEFF bl HAL_GetTick
  934. 484 .LVL35:
  935. 403:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  936. 404:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Wait until REACK flag is set */
  937. 405:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE)
  938. 485 .loc 1 405 7 view .LVU119
  939. 486 008a 6FF07E42 mvn r2, #-33554432
  940. 402:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  941. 487 .loc 1 402 15 view .LVU120
  942. 488 008e 0346 mov r3, r0
  943. 489 .LVL36:
  944. 490 .loc 1 405 3 is_stmt 1 view .LVU121
  945. 491 .loc 1 405 7 is_stmt 0 view .LVU122
  946. 492 0090 0092 str r2, [sp]
  947. 493 0092 4FF48001 mov r1, #4194304
  948. 494 0096 0022 movs r2, #0
  949. 495 0098 2046 mov r0, r4
  950. 496 .LVL37:
  951. 497 .loc 1 405 7 view .LVU123
  952. 498 009a FFF7FEFF bl UART_WaitOnFlagUntilTimeout
  953. 499 .LVL38:
  954. 500 .loc 1 405 6 view .LVU124
  955. 501 009e 88BB cbnz r0, .L56
  956. 406:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  957. 407:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** status = HAL_TIMEOUT;
  958. 408:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  959. 409:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** else
  960. 410:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  961. 411:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Initialize the UART State */
  962. 412:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->gState = HAL_UART_STATE_READY;
  963. 502 .loc 1 412 5 is_stmt 1 view .LVU125
  964. 503 .loc 1 412 19 is_stmt 0 view .LVU126
  965. 504 00a0 2023 movs r3, #32
  966. 505 00a2 E367 str r3, [r4, #124]
  967. 506 .L48:
  968. 507 .LVL39:
  969. 413:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  970. 414:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  971. 415:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Process Unlocked */
  972. 416:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UNLOCK(huart);
  973. 508 .loc 1 416 3 is_stmt 1 view .LVU127
  974. 509 .loc 1 416 3 view .LVU128
  975. 510 00a4 0023 movs r3, #0
  976. 511 00a6 84F87830 strb r3, [r4, #120]
  977. 512 .loc 1 416 3 view .LVU129
  978. 417:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  979. 418:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return status;
  980. 513 .loc 1 418 3 view .LVU130
  981. 419:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  982. 514 .loc 1 419 1 is_stmt 0 view .LVU131
  983. 515 00aa 04B0 add sp, sp, #16
  984. 516 .LCFI8:
  985. 517 .cfi_remember_state
  986. 518 .cfi_def_cfa_offset 16
  987. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 18
  988. 519 .LVL40:
  989. 520 .loc 1 419 1 view .LVU132
  990. 521 @ sp needed
  991. 522 00ac 70BD pop {r4, r5, r6, pc}
  992. 523 .LVL41:
  993. 524 .L46:
  994. 525 .LCFI9:
  995. 526 .cfi_restore_state
  996. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  997. 527 .loc 1 383 3 is_stmt 1 view .LVU133
  998. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  999. 528 .loc 1 383 3 view .LVU134
  1000. 529 00ae 94F87830 ldrb r3, [r4, #120] @ zero_extendqisi2
  1001. 530 00b2 012B cmp r3, #1
  1002. 531 00b4 28D0 beq .L54
  1003. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1004. 532 .loc 1 383 3 view .LVU135
  1005. 388:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1006. 533 .loc 1 388 3 is_stmt 0 view .LVU136
  1007. 534 00b6 2368 ldr r3, [r4]
  1008. 535 00b8 BDF80C60 ldrh r6, [sp, #12]
  1009. 536 00bc 9DF80E50 ldrb r5, [sp, #14] @ zero_extendqisi2
  1010. 537 .LVL42:
  1011. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1012. 538 .loc 1 383 3 view .LVU137
  1013. 539 00c0 0121 movs r1, #1
  1014. 385:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1015. 540 .loc 1 385 17 view .LVU138
  1016. 541 00c2 2422 movs r2, #36
  1017. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1018. 542 .loc 1 383 3 view .LVU139
  1019. 543 00c4 84F87810 strb r1, [r4, #120]
  1020. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1021. 544 .loc 1 383 3 is_stmt 1 view .LVU140
  1022. 385:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1023. 545 .loc 1 385 3 view .LVU141
  1024. 385:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1025. 546 .loc 1 385 17 is_stmt 0 view .LVU142
  1026. 547 00c8 E267 str r2, [r4, #124]
  1027. 388:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1028. 548 .loc 1 388 3 is_stmt 1 view .LVU143
  1029. 549 00ca 1A68 ldr r2, [r3]
  1030. 550 00cc 22F00102 bic r2, r2, #1
  1031. 551 00d0 1A60 str r2, [r3]
  1032. 391:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1033. 552 .loc 1 391 3 view .LVU144
  1034. 553 00d2 9968 ldr r1, [r3, #8]
  1035. 554 .LBB24:
  1036. 555 .LBB25:
  1037. 420:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1038. 421:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  1039. 422:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Enable UART Stop Mode.
  1040. 423:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note The UART is able to wake up the MCU from Stop 1 mode as long as UART clock is HSI or LSE.
  1041. 424:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  1042. 425:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval HAL status
  1043. 426:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1044. 427:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef HAL_UARTEx_EnableStopMode(UART_HandleTypeDef *huart)
  1045. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 19
  1046. 428:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1047. 429:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Process Locked */
  1048. 430:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_LOCK(huart);
  1049. 431:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1050. 432:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set UESM bit */
  1051. 433:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_UESM);
  1052. 434:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1053. 435:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Process Unlocked */
  1054. 436:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UNLOCK(huart);
  1055. 437:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1056. 438:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_OK;
  1057. 439:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1058. 440:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1059. 441:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  1060. 442:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Disable UART Stop Mode.
  1061. 443:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  1062. 444:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval HAL status
  1063. 445:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1064. 446:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef HAL_UARTEx_DisableStopMode(UART_HandleTypeDef *huart)
  1065. 447:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1066. 448:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Process Locked */
  1067. 449:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_LOCK(huart);
  1068. 450:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1069. 451:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Clear UESM bit */
  1070. 452:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_UESM);
  1071. 453:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1072. 454:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Process Unlocked */
  1073. 455:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UNLOCK(huart);
  1074. 456:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1075. 457:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_OK;
  1076. 458:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1077. 459:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1078. 460:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  1079. 461:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Receive an amount of data in blocking mode till either the expected number of data
  1080. 462:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * is received or an IDLE event occurs.
  1081. 463:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note HAL_OK is returned if reception is completed (expected number of data has been received)
  1082. 464:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * or if reception is stopped after IDLE event (less than the expected number of data has b
  1083. 465:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * In this case, RxLen output parameter indicates number of data available in reception buf
  1084. 466:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M
  1085. 467:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * the received data is handled as a set of uint16_t. In this case, Size must indicate the
  1086. 468:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * of uint16_t available through pData.
  1087. 469:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  1088. 470:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  1089. 471:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  1090. 472:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param RxLen Number of data elements finally received
  1091. 473:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * (could be lower than Size, in case reception ends on IDLE event)
  1092. 474:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param Timeout Timeout duration expressed in ms (covers the whole reception sequence).
  1093. 475:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval HAL status
  1094. 476:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1095. 477:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size
  1096. 478:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint32_t Timeout)
  1097. 479:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1098. 480:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint8_t *pdata8bits;
  1099. 481:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint16_t *pdata16bits;
  1100. 482:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint16_t uhMask;
  1101. 483:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint32_t tickstart;
  1102. 484:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1103. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 20
  1104. 485:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check that a Rx process is not already ongoing */
  1105. 486:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart->RxState == HAL_UART_STATE_READY)
  1106. 487:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1107. 488:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if ((pData == NULL) || (Size == 0U))
  1108. 489:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1109. 490:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_ERROR;
  1110. 491:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1111. 492:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1112. 493:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->ErrorCode = HAL_UART_ERROR_NONE;
  1113. 494:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_BUSY_RX;
  1114. 495:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  1115. 496:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_TC;
  1116. 497:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1117. 498:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Init tickstart for timeout management */
  1118. 499:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** tickstart = HAL_GetTick();
  1119. 500:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1120. 501:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxXferSize = Size;
  1121. 502:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxXferCount = Size;
  1122. 503:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1123. 504:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Computation of UART mask to apply to RDR register */
  1124. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** UART_MASK_COMPUTATION(huart);
  1125. 506:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  1126. 507:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1127. 508:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* In case of 9bits/No Parity transfer, pRxData needs to be handled as a uint16_t pointer */
  1128. 509:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  1129. 510:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1130. 511:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata8bits = NULL;
  1131. 512:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits = (uint16_t *) pData;
  1132. 513:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1133. 514:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** else
  1134. 515:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1135. 516:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata8bits = pData;
  1136. 517:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits = NULL;
  1137. 518:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1138. 519:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1139. 520:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Initialize output number of received elements */
  1140. 521:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *RxLen = 0U;
  1141. 522:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1142. 523:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* as long as data have to be received */
  1143. 524:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** while (huart->RxXferCount > 0U)
  1144. 525:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1145. 526:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check if IDLE flag is set */
  1146. 527:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE))
  1147. 528:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1148. 529:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Clear IDLE flag in ISR */
  1149. 530:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  1150. 531:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1151. 532:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* If Set, but no data ever received, clear flag without exiting loop */
  1152. 533:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* If Set, and data has already been received, this means Idle Event is valid : End recepti
  1153. 534:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (*RxLen > 0U)
  1154. 535:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1155. 536:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  1156. 537:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_READY;
  1157. 538:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1158. 539:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_OK;
  1159. 540:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1160. 541:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1161. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 21
  1162. 542:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1163. 543:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check if RXNE flag is set */
  1164. 544:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RXNE))
  1165. 545:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1166. 546:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (pdata8bits == NULL)
  1167. 547:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1168. 548:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *pdata16bits = (uint16_t)(huart->Instance->RDR & uhMask);
  1169. 549:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits++;
  1170. 550:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1171. 551:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** else
  1172. 552:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1173. 553:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *pdata8bits = (uint8_t)(huart->Instance->RDR & (uint8_t)uhMask);
  1174. 554:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata8bits++;
  1175. 555:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1176. 556:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Increment number of received elements */
  1177. 557:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *RxLen += 1U;
  1178. 558:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxXferCount--;
  1179. 559:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1180. 560:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1181. 561:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check for the Timeout */
  1182. 562:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (Timeout != HAL_MAX_DELAY)
  1183. 563:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1184. 564:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U))
  1185. 565:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1186. 566:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_READY;
  1187. 567:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1188. 568:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_TIMEOUT;
  1189. 569:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1190. 570:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1191. 571:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1192. 572:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1193. 573:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set number of received elements in output parameter : RxLen */
  1194. 574:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** *RxLen = huart->RxXferSize - huart->RxXferCount;
  1195. 575:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* At end of Rx process, restore huart->RxState to Ready */
  1196. 576:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_READY;
  1197. 577:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1198. 578:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_OK;
  1199. 579:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1200. 580:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** else
  1201. 581:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1202. 582:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_BUSY;
  1203. 583:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1204. 584:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1205. 585:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1206. 586:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  1207. 587:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Receive an amount of data in interrupt mode till either the expected number of data
  1208. 588:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * is received or an IDLE event occurs.
  1209. 589:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note Reception is initiated by this function call. Further progress of reception is achieved
  1210. 590:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * to UART interrupts raised by RXNE and IDLE events. Callback is called at end of receptio
  1211. 591:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * number of received data elements.
  1212. 592:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M
  1213. 593:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * the received data is handled as a set of uint16_t. In this case, Size must indicate the
  1214. 594:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * of uint16_t available through pData.
  1215. 595:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  1216. 596:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  1217. 597:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  1218. 598:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval HAL status
  1219. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 22
  1220. 599:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1221. 600:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t S
  1222. 601:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1223. 602:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef status = HAL_OK;
  1224. 603:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1225. 604:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check that a Rx process is not already ongoing */
  1226. 605:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart->RxState == HAL_UART_STATE_READY)
  1227. 606:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1228. 607:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if ((pData == NULL) || (Size == 0U))
  1229. 608:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1230. 609:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_ERROR;
  1231. 610:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1232. 611:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1233. 612:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set Reception type to reception till IDLE Event*/
  1234. 613:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  1235. 614:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_TC;
  1236. 615:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1237. 616:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (void)UART_Start_Receive_IT(huart, pData, Size);
  1238. 617:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1239. 618:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  1240. 619:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1241. 620:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  1242. 621:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  1243. 622:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1244. 623:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** else
  1245. 624:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1246. 625:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* In case of errors already pending when reception is started,
  1247. 626:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** Interrupts may have already been raised and lead to reception abortion.
  1248. 627:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (Overrun error for instance).
  1249. 628:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  1250. 629:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** status = HAL_ERROR;
  1251. 630:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1252. 631:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1253. 632:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return status;
  1254. 633:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1255. 634:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** else
  1256. 635:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1257. 636:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_BUSY;
  1258. 637:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1259. 638:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1260. 639:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1261. 640:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  1262. 641:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Receive an amount of data in DMA mode till either the expected number
  1263. 642:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * of data is received or an IDLE event occurs.
  1264. 643:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note Reception is initiated by this function call. Further progress of reception is achieved
  1265. 644:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * to DMA services, transferring automatically received data elements in user reception buf
  1266. 645:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * calling registered callbacks at half/end of reception. UART IDLE events are also used to
  1267. 646:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * reception phase as ended. In all cases, callback execution will indicate number of recei
  1268. 647:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note When the UART parity is enabled (PCE = 1), the received data contain
  1269. 648:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * the parity bit (MSB position).
  1270. 649:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note When UART parity is not enabled (PCE = 0), and Word Length is configured to 9 bits (M1-M
  1271. 650:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * the received data is handled as a set of uint16_t. In this case, Size must indicate the
  1272. 651:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * of uint16_t available through pData.
  1273. 652:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  1274. 653:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  1275. 654:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  1276. 655:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval HAL status
  1277. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 23
  1278. 656:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1279. 657:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t
  1280. 658:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1281. 659:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef status;
  1282. 660:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1283. 661:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check that a Rx process is not already ongoing */
  1284. 662:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart->RxState == HAL_UART_STATE_READY)
  1285. 663:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1286. 664:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if ((pData == NULL) || (Size == 0U))
  1287. 665:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1288. 666:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_ERROR;
  1289. 667:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1290. 668:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1291. 669:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set Reception type to reception till IDLE Event*/
  1292. 670:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  1293. 671:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_TC;
  1294. 672:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1295. 673:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** status = UART_Start_Receive_DMA(huart, pData, Size);
  1296. 674:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1297. 675:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Check Rx process has been successfully started */
  1298. 676:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (status == HAL_OK)
  1299. 677:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1300. 678:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  1301. 679:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1302. 680:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  1303. 681:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  1304. 682:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1305. 683:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** else
  1306. 684:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1307. 685:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* In case of errors already pending when reception is started,
  1308. 686:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** Interrupts may have already been raised and lead to reception abortion.
  1309. 687:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** (Overrun error for instance).
  1310. 688:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  1311. 689:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** status = HAL_ERROR;
  1312. 690:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1313. 691:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1314. 692:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1315. 693:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return status;
  1316. 694:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1317. 695:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** else
  1318. 696:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1319. 697:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return HAL_BUSY;
  1320. 698:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1321. 699:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1322. 700:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1323. 701:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  1324. 702:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Provide Rx Event type that has lead to RxEvent callback execution.
  1325. 703:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note When HAL_UARTEx_ReceiveToIdle_IT() or HAL_UARTEx_ReceiveToIdle_DMA() API are called, pro
  1326. 704:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * of reception process is provided to application through calls of Rx Event callback (eith
  1327. 705:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * HAL_UARTEx_RxEventCallback() or user registered one). As several types of events could o
  1328. 706:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * Half Transfer, or Transfer Complete), this function allows to retrieve the Rx Event type
  1329. 707:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * to Rx Event callback execution.
  1330. 708:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @note This function is expected to be called within the user implementation of Rx Event Callba
  1331. 709:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * in order to provide the accurate value :
  1332. 710:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * In Interrupt Mode :
  1333. 711:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * - HAL_UART_RXEVENT_TC : when Reception has been completed (expected nb of data has be
  1334. 712:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * - HAL_UART_RXEVENT_IDLE : when Idle event occurred prior reception has been completed
  1335. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 24
  1336. 713:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * received data is lower than expected one)
  1337. 714:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * In DMA Mode :
  1338. 715:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * - HAL_UART_RXEVENT_TC : when Reception has been completed (expected nb of data has be
  1339. 716:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * - HAL_UART_RXEVENT_HT : when half of expected nb of data has been received
  1340. 717:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * - HAL_UART_RXEVENT_IDLE : when Idle event occurred prior reception has been completed
  1341. 718:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * received data is lower than expected one).
  1342. 719:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * In DMA mode, RxEvent callback could be called several times;
  1343. 720:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * When DMA is configured in Normal Mode, HT event does not stop Reception process;
  1344. 721:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * When DMA is configured in Circular Mode, HT, TC or IDLE events don't stop Reception proc
  1345. 722:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  1346. 723:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval Rx Event Type (return vale will be a value of @ref UART_RxEvent_Type_Values)
  1347. 724:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1348. 725:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_UART_RxEventTypeTypeDef HAL_UARTEx_GetRxEventType(const UART_HandleTypeDef *huart)
  1349. 726:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1350. 727:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Return Rx Event type value, as stored in UART handle */
  1351. 728:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** return (huart->RxEventType);
  1352. 729:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1353. 730:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1354. 731:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  1355. 732:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @}
  1356. 733:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1357. 734:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1358. 735:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  1359. 736:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @}
  1360. 737:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1361. 738:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1362. 739:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /** @addtogroup UARTEx_Private_Functions
  1363. 740:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @{
  1364. 741:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1365. 742:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1366. 743:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /**
  1367. 744:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @brief Initialize the UART wake-up from stop mode parameters when triggered by address detectio
  1368. 745:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param huart UART handle.
  1369. 746:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @param WakeUpSelection UART wake up from stop mode parameters.
  1370. 747:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** * @retval None
  1371. 748:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** */
  1372. 749:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** static void UARTEx_Wakeup_AddressConfig(UART_HandleTypeDef *huart, UART_WakeUpTypeDef WakeUpSelecti
  1373. 750:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1374. 751:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** assert_param(IS_UART_ADDRESSLENGTH_DETECT(WakeUpSelection.AddressLength));
  1375. 556 .loc 1 751 3 is_stmt 0 view .LVU145
  1376. 557 00d4 26F01002 bic r2, r6, #16
  1377. 558 .LBE25:
  1378. 559 .LBE24:
  1379. 391:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1380. 560 .loc 1 391 3 view .LVU146
  1381. 561 00d8 21F44011 bic r1, r1, #3145728
  1382. 562 00dc 9960 str r1, [r3, #8]
  1383. 393:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1384. 563 .loc 1 393 3 is_stmt 1 view .LVU147
  1385. 395:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1386. 564 .loc 1 395 5 view .LVU148
  1387. 565 .LVL43:
  1388. 566 .LBB27:
  1389. 567 .LBI24:
  1390. 749:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  1391. 568 .loc 1 749 13 view .LVU149
  1392. 569 .LBB26:
  1393. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 25
  1394. 570 .loc 1 751 3 view .LVU150
  1395. 571 00de 2AB1 cbz r2, .L50
  1396. 572 00e0 0C48 ldr r0, .L66+4
  1397. 573 00e2 40F2EF21 movw r1, #751
  1398. 574 00e6 FFF7FEFF bl assert_failed
  1399. 575 .LVL44:
  1400. 752:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1401. 753:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set the USART address length */
  1402. 754:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** MODIFY_REG(huart->Instance->CR2, USART_CR2_ADDM7, WakeUpSelection.AddressLength);
  1403. 576 .loc 1 754 3 is_stmt 0 view .LVU151
  1404. 577 00ea 2368 ldr r3, [r4]
  1405. 578 .L50:
  1406. 579 .loc 1 754 3 is_stmt 1 view .LVU152
  1407. 580 00ec 5968 ldr r1, [r3, #4]
  1408. 581 00ee 21F01001 bic r1, r1, #16
  1409. 582 00f2 3143 orrs r1, r1, r6
  1410. 583 00f4 5960 str r1, [r3, #4]
  1411. 755:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1412. 756:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Set the USART address node */
  1413. 757:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** MODIFY_REG(huart->Instance->CR2, USART_CR2_ADD, ((uint32_t)WakeUpSelection.Address << UART_CR2_AD
  1414. 584 .loc 1 757 3 view .LVU153
  1415. 585 00f6 5A68 ldr r2, [r3, #4]
  1416. 586 00f8 22F07F42 bic r2, r2, #-16777216
  1417. 587 00fc 42EA0562 orr r2, r2, r5, lsl #24
  1418. 588 0100 5A60 str r2, [r3, #4]
  1419. 758:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1420. 589 .loc 1 758 1 is_stmt 0 view .LVU154
  1421. 590 0102 BCE7 b .L53
  1422. 591 .LVL45:
  1423. 592 .L56:
  1424. 593 .loc 1 758 1 view .LVU155
  1425. 594 .LBE26:
  1426. 595 .LBE27:
  1427. 407:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  1428. 596 .loc 1 407 12 view .LVU156
  1429. 597 0104 0320 movs r0, #3
  1430. 598 0106 CDE7 b .L48
  1431. 599 .LVL46:
  1432. 600 .L54:
  1433. 383:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1434. 601 .loc 1 383 3 view .LVU157
  1435. 602 0108 0220 movs r0, #2
  1436. 419:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1437. 603 .loc 1 419 1 view .LVU158
  1438. 604 010a 04B0 add sp, sp, #16
  1439. 605 .LCFI10:
  1440. 606 .cfi_def_cfa_offset 16
  1441. 607 @ sp needed
  1442. 608 010c 70BD pop {r4, r5, r6, pc}
  1443. 609 .LVL47:
  1444. 610 .L67:
  1445. 419:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1446. 611 .loc 1 419 1 view .LVU159
  1447. 612 010e 00BF .align 2
  1448. 613 .L66:
  1449. 614 0110 00380140 .word 1073821696
  1450. 615 0114 00000000 .word .LC0
  1451. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 26
  1452. 616 .cfi_endproc
  1453. 617 .LFE133:
  1454. 619 .section .text.HAL_UARTEx_EnableStopMode,"ax",%progbits
  1455. 620 .align 1
  1456. 621 .p2align 2,,3
  1457. 622 .global HAL_UARTEx_EnableStopMode
  1458. 623 .syntax unified
  1459. 624 .thumb
  1460. 625 .thumb_func
  1461. 627 HAL_UARTEx_EnableStopMode:
  1462. 628 .LVL48:
  1463. 629 .LFB134:
  1464. 428:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Process Locked */
  1465. 630 .loc 1 428 1 is_stmt 1 view -0
  1466. 631 .cfi_startproc
  1467. 632 @ args = 0, pretend = 0, frame = 0
  1468. 633 @ frame_needed = 0, uses_anonymous_args = 0
  1469. 634 @ link register save eliminated.
  1470. 430:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1471. 635 .loc 1 430 3 view .LVU161
  1472. 430:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1473. 636 .loc 1 430 3 view .LVU162
  1474. 637 0000 90F87830 ldrb r3, [r0, #120] @ zero_extendqisi2
  1475. 638 0004 012B cmp r3, #1
  1476. 639 0006 0FD0 beq .L71
  1477. 430:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1478. 640 .loc 1 430 3 discriminator 2 view .LVU163
  1479. 641 0008 0123 movs r3, #1
  1480. 642 000a 0168 ldr r1, [r0]
  1481. 643 000c 80F87830 strb r3, [r0, #120]
  1482. 644 .L70:
  1483. 430:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1484. 645 .loc 1 430 3 discriminator 1 view .LVU164
  1485. 433:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1486. 646 .loc 1 433 3 discriminator 1 view .LVU165
  1487. 647 .LBB28:
  1488. 433:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1489. 648 .loc 1 433 3 discriminator 1 view .LVU166
  1490. 433:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1491. 649 .loc 1 433 3 discriminator 1 view .LVU167
  1492. 433:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  1493. 650 .loc 1 433 3 discriminator 1 view .LVU168
  1494. 651 .LVL49:
  1495. 652 .LBB29:
  1496. 653 .LBI29:
  1497. 654 .file 2 "Drivers/CMSIS/Include/cmsis_gcc.h"
  1498. 1:Drivers/CMSIS/Include/cmsis_gcc.h **** /**************************************************************************//**
  1499. 2:Drivers/CMSIS/Include/cmsis_gcc.h **** * @file cmsis_gcc.h
  1500. 3:Drivers/CMSIS/Include/cmsis_gcc.h **** * @brief CMSIS compiler GCC header file
  1501. 4:Drivers/CMSIS/Include/cmsis_gcc.h **** * @version V5.0.4
  1502. 5:Drivers/CMSIS/Include/cmsis_gcc.h **** * @date 09. April 2018
  1503. 6:Drivers/CMSIS/Include/cmsis_gcc.h **** ******************************************************************************/
  1504. 7:Drivers/CMSIS/Include/cmsis_gcc.h **** /*
  1505. 8:Drivers/CMSIS/Include/cmsis_gcc.h **** * Copyright (c) 2009-2018 Arm Limited. All rights reserved.
  1506. 9:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  1507. 10:Drivers/CMSIS/Include/cmsis_gcc.h **** * SPDX-License-Identifier: Apache-2.0
  1508. 11:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  1509. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 27
  1510. 12:Drivers/CMSIS/Include/cmsis_gcc.h **** * Licensed under the Apache License, Version 2.0 (the License); you may
  1511. 13:Drivers/CMSIS/Include/cmsis_gcc.h **** * not use this file except in compliance with the License.
  1512. 14:Drivers/CMSIS/Include/cmsis_gcc.h **** * You may obtain a copy of the License at
  1513. 15:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  1514. 16:Drivers/CMSIS/Include/cmsis_gcc.h **** * www.apache.org/licenses/LICENSE-2.0
  1515. 17:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  1516. 18:Drivers/CMSIS/Include/cmsis_gcc.h **** * Unless required by applicable law or agreed to in writing, software
  1517. 19:Drivers/CMSIS/Include/cmsis_gcc.h **** * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  1518. 20:Drivers/CMSIS/Include/cmsis_gcc.h **** * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1519. 21:Drivers/CMSIS/Include/cmsis_gcc.h **** * See the License for the specific language governing permissions and
  1520. 22:Drivers/CMSIS/Include/cmsis_gcc.h **** * limitations under the License.
  1521. 23:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1522. 24:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1523. 25:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __CMSIS_GCC_H
  1524. 26:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_H
  1525. 27:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1526. 28:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ignore some GCC warnings */
  1527. 29:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1528. 30:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion"
  1529. 31:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion"
  1530. 32:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter"
  1531. 33:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1532. 34:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Fallback for __has_builtin */
  1533. 35:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __has_builtin
  1534. 36:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __has_builtin(x) (0)
  1535. 37:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1536. 38:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1537. 39:Drivers/CMSIS/Include/cmsis_gcc.h **** /* CMSIS compiler specific defines */
  1538. 40:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ASM
  1539. 41:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ASM __asm
  1540. 42:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1541. 43:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __INLINE
  1542. 44:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __INLINE inline
  1543. 45:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1544. 46:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_INLINE
  1545. 47:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_INLINE static inline
  1546. 48:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1547. 49:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_FORCEINLINE
  1548. 50:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline
  1549. 51:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1550. 52:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __NO_RETURN
  1551. 53:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NO_RETURN __attribute__((__noreturn__))
  1552. 54:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1553. 55:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __USED
  1554. 56:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __USED __attribute__((used))
  1555. 57:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1556. 58:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __WEAK
  1557. 59:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WEAK __attribute__((weak))
  1558. 60:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1559. 61:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED
  1560. 62:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED __attribute__((packed, aligned(1)))
  1561. 63:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1562. 64:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_STRUCT
  1563. 65:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_STRUCT struct __attribute__((packed, aligned(1)))
  1564. 66:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1565. 67:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_UNION
  1566. 68:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_UNION union __attribute__((packed, aligned(1)))
  1567. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 28
  1568. 69:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1569. 70:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32 /* deprecated */
  1570. 71:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1571. 72:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1572. 73:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1573. 74:Drivers/CMSIS/Include/cmsis_gcc.h **** struct __attribute__((packed)) T_UINT32 { uint32_t v; };
  1574. 75:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1575. 76:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
  1576. 77:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1577. 78:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_WRITE
  1578. 79:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1579. 80:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1580. 81:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1581. 82:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; };
  1582. 83:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1583. 84:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))-
  1584. 85:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1585. 86:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_READ
  1586. 87:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1587. 88:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1588. 89:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1589. 90:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_READ { uint16_t v; };
  1590. 91:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1591. 92:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(add
  1592. 93:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1593. 94:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_WRITE
  1594. 95:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1595. 96:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1596. 97:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1597. 98:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; };
  1598. 99:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1599. 100:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))-
  1600. 101:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1601. 102:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_READ
  1602. 103:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1603. 104:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1604. 105:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1605. 106:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_READ { uint32_t v; };
  1606. 107:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1607. 108:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(add
  1608. 109:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1609. 110:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ALIGNED
  1610. 111:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ALIGNED(x) __attribute__((aligned(x)))
  1611. 112:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1612. 113:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __RESTRICT
  1613. 114:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __RESTRICT __restrict
  1614. 115:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1615. 116:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1616. 117:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1617. 118:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################### Core Function Access ########################### */
  1618. 119:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \ingroup CMSIS_Core_FunctionInterface
  1619. 120:Drivers/CMSIS/Include/cmsis_gcc.h **** \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions
  1620. 121:Drivers/CMSIS/Include/cmsis_gcc.h **** @{
  1621. 122:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1622. 123:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1623. 124:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1624. 125:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable IRQ Interrupts
  1625. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 29
  1626. 126:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables IRQ interrupts by clearing the I-bit in the CPSR.
  1627. 127:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  1628. 128:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1629. 129:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __enable_irq(void)
  1630. 130:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1631. 131:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie i" : : : "memory");
  1632. 132:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1633. 133:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1634. 134:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1635. 135:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1636. 136:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable IRQ Interrupts
  1637. 137:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables IRQ interrupts by setting the I-bit in the CPSR.
  1638. 138:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  1639. 139:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1640. 140:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __disable_irq(void)
  1641. 141:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1642. 142:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid i" : : : "memory");
  1643. 143:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1644. 144:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1645. 145:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1646. 146:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1647. 147:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register
  1648. 148:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the Control Register.
  1649. 149:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Control Register value
  1650. 150:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1651. 151:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_CONTROL(void)
  1652. 152:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1653. 153:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1654. 154:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1655. 155:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control" : "=r" (result) );
  1656. 156:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1657. 157:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1658. 158:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1659. 159:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1660. 160:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1661. 161:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1662. 162:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register (non-secure)
  1663. 163:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the non-secure Control Register when in secure mode.
  1664. 164:Drivers/CMSIS/Include/cmsis_gcc.h **** \return non-secure Control Register value
  1665. 165:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1666. 166:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void)
  1667. 167:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1668. 168:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1669. 169:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1670. 170:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control_ns" : "=r" (result) );
  1671. 171:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1672. 172:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1673. 173:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1674. 174:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1675. 175:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1676. 176:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1677. 177:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register
  1678. 178:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the Control Register.
  1679. 179:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set
  1680. 180:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1681. 181:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_CONTROL(uint32_t control)
  1682. 182:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1683. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 30
  1684. 183:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control, %0" : : "r" (control) : "memory");
  1685. 184:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1686. 185:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1687. 186:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1688. 187:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1689. 188:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1690. 189:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register (non-secure)
  1691. 190:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the non-secure Control Register when in secure state.
  1692. 191:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set
  1693. 192:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1694. 193:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control)
  1695. 194:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1696. 195:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory");
  1697. 196:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1698. 197:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1699. 198:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1700. 199:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1701. 200:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1702. 201:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get IPSR Register
  1703. 202:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the IPSR Register.
  1704. 203:Drivers/CMSIS/Include/cmsis_gcc.h **** \return IPSR Register value
  1705. 204:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1706. 205:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_IPSR(void)
  1707. 206:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1708. 207:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1709. 208:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1710. 209:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  1711. 210:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1712. 211:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1713. 212:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1714. 213:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1715. 214:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1716. 215:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get APSR Register
  1717. 216:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the APSR Register.
  1718. 217:Drivers/CMSIS/Include/cmsis_gcc.h **** \return APSR Register value
  1719. 218:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1720. 219:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_APSR(void)
  1721. 220:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1722. 221:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1723. 222:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1724. 223:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, apsr" : "=r" (result) );
  1725. 224:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1726. 225:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1727. 226:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1728. 227:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1729. 228:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1730. 229:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get xPSR Register
  1731. 230:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the xPSR Register.
  1732. 231:Drivers/CMSIS/Include/cmsis_gcc.h **** \return xPSR Register value
  1733. 232:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1734. 233:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_xPSR(void)
  1735. 234:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1736. 235:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1737. 236:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1738. 237:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, xpsr" : "=r" (result) );
  1739. 238:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1740. 239:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1741. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 31
  1742. 240:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1743. 241:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1744. 242:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1745. 243:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer
  1746. 244:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer (PSP).
  1747. 245:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value
  1748. 246:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1749. 247:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PSP(void)
  1750. 248:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1751. 249:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1752. 250:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1753. 251:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp" : "=r" (result) );
  1754. 252:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1755. 253:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1756. 254:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1757. 255:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1758. 256:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1759. 257:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1760. 258:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer (non-secure)
  1761. 259:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure s
  1762. 260:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value
  1763. 261:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1764. 262:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void)
  1765. 263:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1766. 264:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1767. 265:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1768. 266:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp_ns" : "=r" (result) );
  1769. 267:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1770. 268:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1771. 269:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1772. 270:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1773. 271:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1774. 272:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1775. 273:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer
  1776. 274:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer (PSP).
  1777. 275:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set
  1778. 276:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1779. 277:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack)
  1780. 278:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1781. 279:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : );
  1782. 280:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1783. 281:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1784. 282:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1785. 283:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1786. 284:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1787. 285:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer (non-secure)
  1788. 286:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure sta
  1789. 287:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set
  1790. 288:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1791. 289:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack)
  1792. 290:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1793. 291:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : );
  1794. 292:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1795. 293:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1796. 294:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1797. 295:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1798. 296:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1799. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 32
  1800. 297:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer
  1801. 298:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer (MSP).
  1802. 299:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value
  1803. 300:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1804. 301:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_MSP(void)
  1805. 302:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1806. 303:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1807. 304:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1808. 305:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp" : "=r" (result) );
  1809. 306:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1810. 307:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1811. 308:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1812. 309:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1813. 310:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1814. 311:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1815. 312:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer (non-secure)
  1816. 313:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure stat
  1817. 314:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value
  1818. 315:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1819. 316:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void)
  1820. 317:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1821. 318:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1822. 319:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1823. 320:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp_ns" : "=r" (result) );
  1824. 321:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1825. 322:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1826. 323:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1827. 324:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1828. 325:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1829. 326:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1830. 327:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer
  1831. 328:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer (MSP).
  1832. 329:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set
  1833. 330:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1834. 331:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack)
  1835. 332:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1836. 333:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : );
  1837. 334:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1838. 335:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1839. 336:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1840. 337:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1841. 338:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1842. 339:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer (non-secure)
  1843. 340:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state.
  1844. 341:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set
  1845. 342:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1846. 343:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack)
  1847. 344:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1848. 345:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : );
  1849. 346:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1850. 347:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1851. 348:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1852. 349:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1853. 350:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1854. 351:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1855. 352:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Stack Pointer (non-secure)
  1856. 353:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state.
  1857. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 33
  1858. 354:Drivers/CMSIS/Include/cmsis_gcc.h **** \return SP Register value
  1859. 355:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1860. 356:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void)
  1861. 357:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1862. 358:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1863. 359:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1864. 360:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, sp_ns" : "=r" (result) );
  1865. 361:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1866. 362:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1867. 363:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1868. 364:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1869. 365:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1870. 366:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Stack Pointer (non-secure)
  1871. 367:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state.
  1872. 368:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfStack Stack Pointer value to set
  1873. 369:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1874. 370:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack)
  1875. 371:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1876. 372:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : );
  1877. 373:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1878. 374:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1879. 375:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1880. 376:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1881. 377:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1882. 378:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask
  1883. 379:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the priority mask bit from the Priority Mask Register.
  1884. 380:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value
  1885. 381:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1886. 382:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PRIMASK(void)
  1887. 383:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1888. 384:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1889. 385:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1890. 386:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
  1891. 387:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1892. 388:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1893. 389:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1894. 390:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1895. 391:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1896. 392:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1897. 393:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask (non-secure)
  1898. 394:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the non-secure priority mask bit from the Priority Mask Reg
  1899. 395:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value
  1900. 396:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1901. 397:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void)
  1902. 398:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1903. 399:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1904. 400:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1905. 401:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask_ns" : "=r" (result) :: "memory");
  1906. 402:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1907. 403:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1908. 404:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1909. 405:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1910. 406:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1911. 407:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1912. 408:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask
  1913. 409:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Priority Mask Register.
  1914. 410:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask
  1915. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 34
  1916. 411:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1917. 412:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask)
  1918. 413:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1919. 414:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  1920. 415:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1921. 416:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1922. 417:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1923. 418:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1924. 419:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1925. 420:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask (non-secure)
  1926. 421:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Priority Mask Register when in secure state.
  1927. 422:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask
  1928. 423:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1929. 424:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask)
  1930. 425:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1931. 426:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory");
  1932. 427:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1933. 428:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1934. 429:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1935. 430:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1936. 431:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  1937. 432:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  1938. 433:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  1939. 434:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1940. 435:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable FIQ
  1941. 436:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables FIQ interrupts by clearing the F-bit in the CPSR.
  1942. 437:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  1943. 438:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1944. 439:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __enable_fault_irq(void)
  1945. 440:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1946. 441:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie f" : : : "memory");
  1947. 442:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1948. 443:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1949. 444:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1950. 445:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1951. 446:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable FIQ
  1952. 447:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables FIQ interrupts by setting the F-bit in the CPSR.
  1953. 448:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  1954. 449:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1955. 450:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __disable_fault_irq(void)
  1956. 451:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1957. 452:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid f" : : : "memory");
  1958. 453:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1959. 454:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1960. 455:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1961. 456:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1962. 457:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority
  1963. 458:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Base Priority register.
  1964. 459:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value
  1965. 460:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1966. 461:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_BASEPRI(void)
  1967. 462:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1968. 463:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1969. 464:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1970. 465:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri" : "=r" (result) );
  1971. 466:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1972. 467:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1973. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 35
  1974. 468:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1975. 469:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1976. 470:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1977. 471:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1978. 472:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority (non-secure)
  1979. 473:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Base Priority register when in secure state.
  1980. 474:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value
  1981. 475:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1982. 476:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void)
  1983. 477:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1984. 478:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1985. 479:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1986. 480:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) );
  1987. 481:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1988. 482:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1989. 483:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1990. 484:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1991. 485:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1992. 486:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1993. 487:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority
  1994. 488:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register.
  1995. 489:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set
  1996. 490:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1997. 491:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri)
  1998. 492:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1999. 493:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory");
  2000. 494:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2001. 495:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2002. 496:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2003. 497:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2004. 498:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2005. 499:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority (non-secure)
  2006. 500:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Base Priority register when in secure state.
  2007. 501:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set
  2008. 502:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2009. 503:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri)
  2010. 504:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2011. 505:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory");
  2012. 506:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2013. 507:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2014. 508:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2015. 509:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2016. 510:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2017. 511:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority with condition
  2018. 512:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register only if BASEPRI masking is disable
  2019. 513:Drivers/CMSIS/Include/cmsis_gcc.h **** or the new value increases the BASEPRI priority level.
  2020. 514:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set
  2021. 515:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2022. 516:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri)
  2023. 517:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2024. 518:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory");
  2025. 519:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2026. 520:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2027. 521:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2028. 522:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2029. 523:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask
  2030. 524:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Fault Mask register.
  2031. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 36
  2032. 525:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value
  2033. 526:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2034. 527:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void)
  2035. 528:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2036. 529:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2037. 530:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2038. 531:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask" : "=r" (result) );
  2039. 532:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2040. 533:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2041. 534:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2042. 535:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2043. 536:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2044. 537:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2045. 538:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask (non-secure)
  2046. 539:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Fault Mask register when in secure state.
  2047. 540:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value
  2048. 541:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2049. 542:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void)
  2050. 543:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2051. 544:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2052. 545:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2053. 546:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) );
  2054. 547:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2055. 548:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2056. 549:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2057. 550:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2058. 551:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2059. 552:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2060. 553:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask
  2061. 554:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Fault Mask register.
  2062. 555:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set
  2063. 556:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2064. 557:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask)
  2065. 558:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2066. 559:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory");
  2067. 560:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2068. 561:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2069. 562:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2070. 563:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2071. 564:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2072. 565:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask (non-secure)
  2073. 566:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Fault Mask register when in secure state.
  2074. 567:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set
  2075. 568:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2076. 569:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask)
  2077. 570:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2078. 571:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory");
  2079. 572:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2080. 573:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2081. 574:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2082. 575:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  2083. 576:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  2084. 577:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */
  2085. 578:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2086. 579:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2087. 580:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
  2088. 581:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) )
  2089. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 37
  2090. 582:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2091. 583:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2092. 584:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer Limit
  2093. 585:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2094. 586:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always in non-secure
  2095. 587:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  2096. 588:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2097. 589:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer Limit (PSPLIM).
  2098. 590:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSPLIM Register value
  2099. 591:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2100. 592:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PSPLIM(void)
  2101. 593:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2102. 594:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  2103. 595:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  2104. 596:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  2105. 597:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  2106. 598:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2107. 599:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2108. 600:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psplim" : "=r" (result) );
  2109. 601:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2110. 602:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2111. 603:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2112. 604:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2113. 605:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3))
  2114. 606:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2115. 607:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer Limit (non-secure)
  2116. 608:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2117. 609:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always.
  2118. 610:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2119. 611:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in
  2120. 612:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSPLIM Register value
  2121. 613:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2122. 614:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void)
  2123. 615:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2124. 616:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  2125. 617:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  2126. 618:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  2127. 619:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2128. 620:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2129. 621:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) );
  2130. 622:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2131. 623:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2132. 624:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2133. 625:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2134. 626:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2135. 627:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2136. 628:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2137. 629:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer Limit
  2138. 630:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2139. 631:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored in non-secure
  2140. 632:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  2141. 633:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2142. 634:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM).
  2143. 635:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set
  2144. 636:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2145. 637:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit)
  2146. 638:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2147. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 38
  2148. 639:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  2149. 640:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  2150. 641:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  2151. 642:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)ProcStackPtrLimit;
  2152. 643:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2153. 644:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit));
  2154. 645:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2155. 646:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2156. 647:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2157. 648:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2158. 649:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2159. 650:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2160. 651:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer (non-secure)
  2161. 652:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2162. 653:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored.
  2163. 654:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2164. 655:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in s
  2165. 656:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set
  2166. 657:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2167. 658:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit)
  2168. 659:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2169. 660:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  2170. 661:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  2171. 662:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)ProcStackPtrLimit;
  2172. 663:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2173. 664:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit));
  2174. 665:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2175. 666:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2176. 667:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2177. 668:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2178. 669:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2179. 670:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2180. 671:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer Limit
  2181. 672:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2182. 673:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always in non-secure
  2183. 674:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  2184. 675:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2185. 676:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer Limit (MSPLIM).
  2186. 677:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSPLIM Register value
  2187. 678:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2188. 679:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_MSPLIM(void)
  2189. 680:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2190. 681:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  2191. 682:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  2192. 683:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  2193. 684:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  2194. 685:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2195. 686:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2196. 687:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msplim" : "=r" (result) );
  2197. 688:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2198. 689:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2199. 690:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2200. 691:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2201. 692:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2202. 693:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2203. 694:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2204. 695:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer Limit (non-secure)
  2205. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 39
  2206. 696:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2207. 697:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always.
  2208. 698:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2209. 699:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in sec
  2210. 700:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSPLIM Register value
  2211. 701:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2212. 702:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void)
  2213. 703:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2214. 704:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  2215. 705:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  2216. 706:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  2217. 707:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2218. 708:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2219. 709:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) );
  2220. 710:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2221. 711:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2222. 712:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2223. 713:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2224. 714:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2225. 715:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2226. 716:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2227. 717:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer Limit
  2228. 718:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2229. 719:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored in non-secure
  2230. 720:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  2231. 721:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2232. 722:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM).
  2233. 723:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set
  2234. 724:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2235. 725:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit)
  2236. 726:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2237. 727:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  2238. 728:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  2239. 729:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  2240. 730:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)MainStackPtrLimit;
  2241. 731:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2242. 732:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit));
  2243. 733:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2244. 734:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2245. 735:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2246. 736:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2247. 737:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2248. 738:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2249. 739:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer Limit (non-secure)
  2250. 740:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2251. 741:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored.
  2252. 742:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2253. 743:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secu
  2254. 744:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] MainStackPtrLimit Main Stack Pointer value to set
  2255. 745:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2256. 746:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit)
  2257. 747:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2258. 748:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  2259. 749:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  2260. 750:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)MainStackPtrLimit;
  2261. 751:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2262. 752:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit));
  2263. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 40
  2264. 753:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2265. 754:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2266. 755:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2267. 756:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2268. 757:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
  2269. 758:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */
  2270. 759:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2271. 760:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2272. 761:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2273. 762:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get FPSCR
  2274. 763:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Floating Point Status/Control register.
  2275. 764:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Floating Point Status/Control register value
  2276. 765:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2277. 766:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_FPSCR(void)
  2278. 767:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2279. 768:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
  2280. 769:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__FPU_USED ) && (__FPU_USED == 1U)) )
  2281. 770:Drivers/CMSIS/Include/cmsis_gcc.h **** #if __has_builtin(__builtin_arm_get_fpscr)
  2282. 771:Drivers/CMSIS/Include/cmsis_gcc.h **** // Re-enable using built-in when GCC has been fixed
  2283. 772:Drivers/CMSIS/Include/cmsis_gcc.h **** // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2)
  2284. 773:Drivers/CMSIS/Include/cmsis_gcc.h **** /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */
  2285. 774:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_arm_get_fpscr();
  2286. 775:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2287. 776:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2288. 777:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2289. 778:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMRS %0, fpscr" : "=r" (result) );
  2290. 779:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2291. 780:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2292. 781:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2293. 782:Drivers/CMSIS/Include/cmsis_gcc.h **** return(0U);
  2294. 783:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2295. 784:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2296. 785:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2297. 786:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2298. 787:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2299. 788:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set FPSCR
  2300. 789:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Floating Point Status/Control register.
  2301. 790:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] fpscr Floating Point Status/Control value to set
  2302. 791:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2303. 792:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_FPSCR(uint32_t fpscr)
  2304. 793:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2305. 794:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
  2306. 795:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__FPU_USED ) && (__FPU_USED == 1U)) )
  2307. 796:Drivers/CMSIS/Include/cmsis_gcc.h **** #if __has_builtin(__builtin_arm_set_fpscr)
  2308. 797:Drivers/CMSIS/Include/cmsis_gcc.h **** // Re-enable using built-in when GCC has been fixed
  2309. 798:Drivers/CMSIS/Include/cmsis_gcc.h **** // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2)
  2310. 799:Drivers/CMSIS/Include/cmsis_gcc.h **** /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */
  2311. 800:Drivers/CMSIS/Include/cmsis_gcc.h **** __builtin_arm_set_fpscr(fpscr);
  2312. 801:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2313. 802:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc", "memory");
  2314. 803:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2315. 804:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2316. 805:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)fpscr;
  2317. 806:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2318. 807:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2319. 808:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2320. 809:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2321. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 41
  2322. 810:Drivers/CMSIS/Include/cmsis_gcc.h **** /*@} end of CMSIS_Core_RegAccFunctions */
  2323. 811:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2324. 812:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2325. 813:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################## Core Instruction Access ######################### */
  2326. 814:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
  2327. 815:Drivers/CMSIS/Include/cmsis_gcc.h **** Access to dedicated instructions
  2328. 816:Drivers/CMSIS/Include/cmsis_gcc.h **** @{
  2329. 817:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2330. 818:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2331. 819:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Define macros for porting to both thumb1 and thumb2.
  2332. 820:Drivers/CMSIS/Include/cmsis_gcc.h **** * For thumb1, use low register (r0-r7), specified by constraint "l"
  2333. 821:Drivers/CMSIS/Include/cmsis_gcc.h **** * Otherwise, use general registers, specified by constraint "r" */
  2334. 822:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined (__thumb__) && !defined (__thumb2__)
  2335. 823:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=l" (r)
  2336. 824:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+l" (r)
  2337. 825:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "l" (r)
  2338. 826:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2339. 827:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=r" (r)
  2340. 828:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+r" (r)
  2341. 829:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "r" (r)
  2342. 830:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2343. 831:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2344. 832:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2345. 833:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief No Operation
  2346. 834:Drivers/CMSIS/Include/cmsis_gcc.h **** \details No Operation does nothing. This instruction can be used for code alignment purposes.
  2347. 835:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2348. 836:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NOP() __ASM volatile ("nop")
  2349. 837:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2350. 838:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2351. 839:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Interrupt
  2352. 840:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Interrupt is a hint instruction that suspends execution until one of a number o
  2353. 841:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2354. 842:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFI() __ASM volatile ("wfi")
  2355. 843:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2356. 844:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2357. 845:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2358. 846:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Event
  2359. 847:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Event is a hint instruction that permits the processor to enter
  2360. 848:Drivers/CMSIS/Include/cmsis_gcc.h **** a low-power state until one of a number of events occurs.
  2361. 849:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2362. 850:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFE() __ASM volatile ("wfe")
  2363. 851:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2364. 852:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2365. 853:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2366. 854:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Send Event
  2367. 855:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Send Event is a hint instruction. It causes an event to be signaled to the CPU.
  2368. 856:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2369. 857:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __SEV() __ASM volatile ("sev")
  2370. 858:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2371. 859:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2372. 860:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2373. 861:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Instruction Synchronization Barrier
  2374. 862:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Instruction Synchronization Barrier flushes the pipeline in the processor,
  2375. 863:Drivers/CMSIS/Include/cmsis_gcc.h **** so that all instructions following the ISB are fetched from cache or memory,
  2376. 864:Drivers/CMSIS/Include/cmsis_gcc.h **** after the instruction has been completed.
  2377. 865:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2378. 866:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __ISB(void)
  2379. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 42
  2380. 867:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2381. 868:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("isb 0xF":::"memory");
  2382. 869:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2383. 870:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2384. 871:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2385. 872:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2386. 873:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Synchronization Barrier
  2387. 874:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Acts as a special kind of Data Memory Barrier.
  2388. 875:Drivers/CMSIS/Include/cmsis_gcc.h **** It completes when all explicit memory accesses before this instruction complete.
  2389. 876:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2390. 877:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __DSB(void)
  2391. 878:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2392. 879:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dsb 0xF":::"memory");
  2393. 880:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2394. 881:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2395. 882:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2396. 883:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2397. 884:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Memory Barrier
  2398. 885:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Ensures the apparent order of the explicit memory operations before
  2399. 886:Drivers/CMSIS/Include/cmsis_gcc.h **** and after the instruction, without ensuring their completion.
  2400. 887:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2401. 888:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __DMB(void)
  2402. 889:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2403. 890:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dmb 0xF":::"memory");
  2404. 891:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2405. 892:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2406. 893:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2407. 894:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2408. 895:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (32 bit)
  2409. 896:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x785
  2410. 897:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
  2411. 898:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
  2412. 899:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2413. 900:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __REV(uint32_t value)
  2414. 901:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2415. 902:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
  2416. 903:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_bswap32(value);
  2417. 904:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2418. 905:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2419. 906:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2420. 907:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
  2421. 908:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2422. 909:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2423. 910:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2424. 911:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2425. 912:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2426. 913:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2427. 914:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (16 bit)
  2428. 915:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes
  2429. 916:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
  2430. 917:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
  2431. 918:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2432. 919:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __REV16(uint32_t value)
  2433. 920:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2434. 921:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2435. 922:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2436. 923:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
  2437. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 43
  2438. 924:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2439. 925:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2440. 926:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2441. 927:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2442. 928:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2443. 929:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (16 bit)
  2444. 930:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For exam
  2445. 931:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
  2446. 932:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
  2447. 933:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2448. 934:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE int16_t __REVSH(int16_t value)
  2449. 935:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2450. 936:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
  2451. 937:Drivers/CMSIS/Include/cmsis_gcc.h **** return (int16_t)__builtin_bswap16(value);
  2452. 938:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2453. 939:Drivers/CMSIS/Include/cmsis_gcc.h **** int16_t result;
  2454. 940:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2455. 941:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
  2456. 942:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2457. 943:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2458. 944:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2459. 945:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2460. 946:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2461. 947:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2462. 948:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Rotate Right in unsigned value (32 bit)
  2463. 949:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Rotate Right (immediate) provides the value of the contents of a register rotated by a v
  2464. 950:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] op1 Value to rotate
  2465. 951:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] op2 Number of Bits to rotate
  2466. 952:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Rotated value
  2467. 953:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2468. 954:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
  2469. 955:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2470. 956:Drivers/CMSIS/Include/cmsis_gcc.h **** op2 %= 32U;
  2471. 957:Drivers/CMSIS/Include/cmsis_gcc.h **** if (op2 == 0U)
  2472. 958:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2473. 959:Drivers/CMSIS/Include/cmsis_gcc.h **** return op1;
  2474. 960:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2475. 961:Drivers/CMSIS/Include/cmsis_gcc.h **** return (op1 >> op2) | (op1 << (32U - op2));
  2476. 962:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2477. 963:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2478. 964:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2479. 965:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2480. 966:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Breakpoint
  2481. 967:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Causes the processor to enter Debug state.
  2482. 968:Drivers/CMSIS/Include/cmsis_gcc.h **** Debug tools can use this to investigate system state when the instruction at a particula
  2483. 969:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value is ignored by the processor.
  2484. 970:Drivers/CMSIS/Include/cmsis_gcc.h **** If required, a debugger can use it to store additional information about the break
  2485. 971:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2486. 972:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __BKPT(value) __ASM volatile ("bkpt "#value)
  2487. 973:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2488. 974:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2489. 975:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2490. 976:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse bit order of value
  2491. 977:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the bit order of the given value.
  2492. 978:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
  2493. 979:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
  2494. 980:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2495. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 44
  2496. 981:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value)
  2497. 982:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2498. 983:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2499. 984:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2500. 985:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  2501. 986:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  2502. 987:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  2503. 988:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  2504. 989:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2505. 990:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t s = (4U /*sizeof(v)*/ * 8U) - 1U; /* extra shift needed at end */
  2506. 991:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2507. 992:Drivers/CMSIS/Include/cmsis_gcc.h **** result = value; /* r will be reversed bits of v; first get LSB of v */
  2508. 993:Drivers/CMSIS/Include/cmsis_gcc.h **** for (value >>= 1U; value != 0U; value >>= 1U)
  2509. 994:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2510. 995:Drivers/CMSIS/Include/cmsis_gcc.h **** result <<= 1U;
  2511. 996:Drivers/CMSIS/Include/cmsis_gcc.h **** result |= value & 1U;
  2512. 997:Drivers/CMSIS/Include/cmsis_gcc.h **** s--;
  2513. 998:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2514. 999:Drivers/CMSIS/Include/cmsis_gcc.h **** result <<= s; /* shift when v's highest bits are zero */
  2515. 1000:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2516. 1001:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2517. 1002:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2518. 1003:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2519. 1004:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2520. 1005:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2521. 1006:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Count leading zeros
  2522. 1007:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Counts the number of leading zeros of a data value.
  2523. 1008:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to count the leading zeros
  2524. 1009:Drivers/CMSIS/Include/cmsis_gcc.h **** \return number of leading zeros in value
  2525. 1010:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2526. 1011:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CLZ (uint8_t)__builtin_clz
  2527. 1012:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2528. 1013:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2529. 1014:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  2530. 1015:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  2531. 1016:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
  2532. 1017:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) )
  2533. 1018:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2534. 1019:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief LDR Exclusive (8 bit)
  2535. 1020:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive LDR instruction for 8 bit value.
  2536. 1021:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
  2537. 1022:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint8_t at (*ptr)
  2538. 1023:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2539. 1024:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint8_t __LDREXB(volatile uint8_t *addr)
  2540. 1025:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2541. 1026:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2542. 1027:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2543. 1028:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
  2544. 1029:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) );
  2545. 1030:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2546. 1031:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not
  2547. 1032:Drivers/CMSIS/Include/cmsis_gcc.h **** accepted by assembler. So has to use following less efficient pattern.
  2548. 1033:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2549. 1034:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" );
  2550. 1035:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2551. 1036:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint8_t) result); /* Add explicit type cast here */
  2552. 1037:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2553. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 45
  2554. 1038:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2555. 1039:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2556. 1040:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2557. 1041:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief LDR Exclusive (16 bit)
  2558. 1042:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive LDR instruction for 16 bit values.
  2559. 1043:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
  2560. 1044:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint16_t at (*ptr)
  2561. 1045:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2562. 1046:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint16_t __LDREXH(volatile uint16_t *addr)
  2563. 1047:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2564. 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2565. 1049:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2566. 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
  2567. 1051:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) );
  2568. 1052:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2569. 1053:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not
  2570. 1054:Drivers/CMSIS/Include/cmsis_gcc.h **** accepted by assembler. So has to use following less efficient pattern.
  2571. 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2572. 1056:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" );
  2573. 1057:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2574. 1058:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint16_t) result); /* Add explicit type cast here */
  2575. 1059:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2576. 1060:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2577. 1061:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2578. 1062:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2579. 1063:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief LDR Exclusive (32 bit)
  2580. 1064:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive LDR instruction for 32 bit values.
  2581. 1065:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
  2582. 1066:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint32_t at (*ptr)
  2583. 1067:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2584. 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  2585. 655 .loc 2 1068 31 discriminator 1 view .LVU169
  2586. 656 .LBB30:
  2587. 1069:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2588. 1070:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2589. 657 .loc 2 1070 5 discriminator 1 view .LVU170
  2590. 1071:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2591. 1072:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  2592. 658 .loc 2 1072 4 discriminator 1 view .LVU171
  2593. 659 .syntax unified
  2594. 660 @ 1072 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  2595. 661 0010 51E8003F ldrex r3, [r1]
  2596. 662 @ 0 "" 2
  2597. 663 .LVL50:
  2598. 1073:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2599. 664 .loc 2 1073 4 discriminator 1 view .LVU172
  2600. 665 .loc 2 1073 4 is_stmt 0 discriminator 1 view .LVU173
  2601. 666 .thumb
  2602. 667 .syntax unified
  2603. 668 .LBE30:
  2604. 669 .LBE29:
  2605. 433:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2606. 670 .loc 1 433 3 discriminator 1 view .LVU174
  2607. 671 0014 43F00203 orr r3, r3, #2
  2608. 672 .LVL51:
  2609. 433:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2610. 673 .loc 1 433 3 is_stmt 1 discriminator 1 view .LVU175
  2611. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 46
  2612. 674 .LBB31:
  2613. 675 .LBI31:
  2614. 1074:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2615. 1075:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2616. 1076:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2617. 1077:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2618. 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief STR Exclusive (8 bit)
  2619. 1079:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive STR instruction for 8 bit values.
  2620. 1080:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
  2621. 1081:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
  2622. 1082:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 0 Function succeeded
  2623. 1083:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 1 Function failed
  2624. 1084:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2625. 1085:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr)
  2626. 1086:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2627. 1087:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2628. 1088:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2629. 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) );
  2630. 1090:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2631. 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2632. 1092:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2633. 1093:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2634. 1094:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2635. 1095:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief STR Exclusive (16 bit)
  2636. 1096:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive STR instruction for 16 bit values.
  2637. 1097:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
  2638. 1098:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
  2639. 1099:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 0 Function succeeded
  2640. 1100:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 1 Function failed
  2641. 1101:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2642. 1102:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr)
  2643. 1103:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2644. 1104:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2645. 1105:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2646. 1106:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) );
  2647. 1107:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2648. 1108:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2649. 1109:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2650. 1110:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2651. 1111:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2652. 1112:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief STR Exclusive (32 bit)
  2653. 1113:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive STR instruction for 32 bit values.
  2654. 1114:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
  2655. 1115:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
  2656. 1116:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 0 Function succeeded
  2657. 1117:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 1 Function failed
  2658. 1118:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2659. 1119:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  2660. 676 .loc 2 1119 31 discriminator 1 view .LVU176
  2661. 677 .LBB32:
  2662. 1120:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2663. 1121:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2664. 678 .loc 2 1121 4 discriminator 1 view .LVU177
  2665. 1122:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2666. 1123:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  2667. 679 .loc 2 1123 4 discriminator 1 view .LVU178
  2668. 680 .syntax unified
  2669. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 47
  2670. 681 @ 1123 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  2671. 682 0018 41E80032 strex r2, r3, [r1]
  2672. 683 @ 0 "" 2
  2673. 684 .LVL52:
  2674. 1124:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2675. 685 .loc 2 1124 4 discriminator 1 view .LVU179
  2676. 686 .loc 2 1124 4 is_stmt 0 discriminator 1 view .LVU180
  2677. 687 .thumb
  2678. 688 .syntax unified
  2679. 689 .LBE32:
  2680. 690 .LBE31:
  2681. 433:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2682. 691 .loc 1 433 3 discriminator 1 view .LVU181
  2683. 692 001c 002A cmp r2, #0
  2684. 693 001e F7D1 bne .L70
  2685. 694 .LBE28:
  2686. 433:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2687. 695 .loc 1 433 3 is_stmt 1 discriminator 2 view .LVU182
  2688. 436:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2689. 696 .loc 1 436 3 discriminator 2 view .LVU183
  2690. 436:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2691. 697 .loc 1 436 3 discriminator 2 view .LVU184
  2692. 698 0020 80F87820 strb r2, [r0, #120]
  2693. 436:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2694. 699 .loc 1 436 3 discriminator 2 view .LVU185
  2695. 438:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  2696. 700 .loc 1 438 3 discriminator 2 view .LVU186
  2697. 438:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  2698. 701 .loc 1 438 10 is_stmt 0 discriminator 2 view .LVU187
  2699. 702 0024 1046 mov r0, r2
  2700. 703 .LVL53:
  2701. 438:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  2702. 704 .loc 1 438 10 discriminator 2 view .LVU188
  2703. 705 0026 7047 bx lr
  2704. 706 .LVL54:
  2705. 707 .L71:
  2706. 430:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2707. 708 .loc 1 430 3 view .LVU189
  2708. 709 0028 0220 movs r0, #2
  2709. 710 .LVL55:
  2710. 439:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2711. 711 .loc 1 439 1 view .LVU190
  2712. 712 002a 7047 bx lr
  2713. 713 .cfi_endproc
  2714. 714 .LFE134:
  2715. 716 .section .text.HAL_UARTEx_DisableStopMode,"ax",%progbits
  2716. 717 .align 1
  2717. 718 .p2align 2,,3
  2718. 719 .global HAL_UARTEx_DisableStopMode
  2719. 720 .syntax unified
  2720. 721 .thumb
  2721. 722 .thumb_func
  2722. 724 HAL_UARTEx_DisableStopMode:
  2723. 725 .LVL56:
  2724. 726 .LFB135:
  2725. 447:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Process Locked */
  2726. 727 .loc 1 447 1 is_stmt 1 view -0
  2727. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 48
  2728. 728 .cfi_startproc
  2729. 729 @ args = 0, pretend = 0, frame = 0
  2730. 730 @ frame_needed = 0, uses_anonymous_args = 0
  2731. 731 @ link register save eliminated.
  2732. 449:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2733. 732 .loc 1 449 3 view .LVU192
  2734. 449:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2735. 733 .loc 1 449 3 view .LVU193
  2736. 734 0000 90F87830 ldrb r3, [r0, #120] @ zero_extendqisi2
  2737. 735 0004 012B cmp r3, #1
  2738. 736 0006 0FD0 beq .L76
  2739. 449:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2740. 737 .loc 1 449 3 discriminator 2 view .LVU194
  2741. 738 0008 0123 movs r3, #1
  2742. 739 000a 0168 ldr r1, [r0]
  2743. 740 000c 80F87830 strb r3, [r0, #120]
  2744. 741 .L75:
  2745. 449:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2746. 742 .loc 1 449 3 discriminator 1 view .LVU195
  2747. 452:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2748. 743 .loc 1 452 3 discriminator 1 view .LVU196
  2749. 744 .LBB33:
  2750. 452:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2751. 745 .loc 1 452 3 discriminator 1 view .LVU197
  2752. 452:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2753. 746 .loc 1 452 3 discriminator 1 view .LVU198
  2754. 452:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2755. 747 .loc 1 452 3 discriminator 1 view .LVU199
  2756. 748 .LVL57:
  2757. 749 .LBB34:
  2758. 750 .LBI34:
  2759. 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2760. 751 .loc 2 1068 31 discriminator 1 view .LVU200
  2761. 752 .LBB35:
  2762. 1070:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2763. 753 .loc 2 1070 5 discriminator 1 view .LVU201
  2764. 1072:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2765. 754 .loc 2 1072 4 discriminator 1 view .LVU202
  2766. 755 .syntax unified
  2767. 756 @ 1072 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  2768. 757 0010 51E8003F ldrex r3, [r1]
  2769. 758 @ 0 "" 2
  2770. 759 .LVL58:
  2771. 1073:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2772. 760 .loc 2 1073 4 discriminator 1 view .LVU203
  2773. 1073:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2774. 761 .loc 2 1073 4 is_stmt 0 discriminator 1 view .LVU204
  2775. 762 .thumb
  2776. 763 .syntax unified
  2777. 764 .LBE35:
  2778. 765 .LBE34:
  2779. 452:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2780. 766 .loc 1 452 3 discriminator 1 view .LVU205
  2781. 767 0014 23F00203 bic r3, r3, #2
  2782. 768 .LVL59:
  2783. 452:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2784. 769 .loc 1 452 3 is_stmt 1 discriminator 1 view .LVU206
  2785. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 49
  2786. 770 .LBB36:
  2787. 771 .LBI36:
  2788. 1119:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2789. 772 .loc 2 1119 31 discriminator 1 view .LVU207
  2790. 773 .LBB37:
  2791. 1121:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2792. 774 .loc 2 1121 4 discriminator 1 view .LVU208
  2793. 1123:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2794. 775 .loc 2 1123 4 discriminator 1 view .LVU209
  2795. 776 .syntax unified
  2796. 777 @ 1123 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  2797. 778 0018 41E80032 strex r2, r3, [r1]
  2798. 779 @ 0 "" 2
  2799. 780 .LVL60:
  2800. 781 .loc 2 1124 4 discriminator 1 view .LVU210
  2801. 782 .loc 2 1124 4 is_stmt 0 discriminator 1 view .LVU211
  2802. 783 .thumb
  2803. 784 .syntax unified
  2804. 785 .LBE37:
  2805. 786 .LBE36:
  2806. 452:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2807. 787 .loc 1 452 3 discriminator 1 view .LVU212
  2808. 788 001c 002A cmp r2, #0
  2809. 789 001e F7D1 bne .L75
  2810. 790 .LBE33:
  2811. 452:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2812. 791 .loc 1 452 3 is_stmt 1 discriminator 2 view .LVU213
  2813. 455:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2814. 792 .loc 1 455 3 discriminator 2 view .LVU214
  2815. 455:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2816. 793 .loc 1 455 3 discriminator 2 view .LVU215
  2817. 794 0020 80F87820 strb r2, [r0, #120]
  2818. 455:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2819. 795 .loc 1 455 3 discriminator 2 view .LVU216
  2820. 457:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  2821. 796 .loc 1 457 3 discriminator 2 view .LVU217
  2822. 457:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  2823. 797 .loc 1 457 10 is_stmt 0 discriminator 2 view .LVU218
  2824. 798 0024 1046 mov r0, r2
  2825. 799 .LVL61:
  2826. 457:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  2827. 800 .loc 1 457 10 discriminator 2 view .LVU219
  2828. 801 0026 7047 bx lr
  2829. 802 .LVL62:
  2830. 803 .L76:
  2831. 449:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2832. 804 .loc 1 449 3 view .LVU220
  2833. 805 0028 0220 movs r0, #2
  2834. 806 .LVL63:
  2835. 458:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2836. 807 .loc 1 458 1 view .LVU221
  2837. 808 002a 7047 bx lr
  2838. 809 .cfi_endproc
  2839. 810 .LFE135:
  2840. 812 .section .text.HAL_UARTEx_ReceiveToIdle,"ax",%progbits
  2841. 813 .align 1
  2842. 814 .p2align 2,,3
  2843. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 50
  2844. 815 .global HAL_UARTEx_ReceiveToIdle
  2845. 816 .syntax unified
  2846. 817 .thumb
  2847. 818 .thumb_func
  2848. 820 HAL_UARTEx_ReceiveToIdle:
  2849. 821 .LVL64:
  2850. 822 .LFB136:
  2851. 479:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint8_t *pdata8bits;
  2852. 823 .loc 1 479 1 is_stmt 1 view -0
  2853. 824 .cfi_startproc
  2854. 825 @ args = 4, pretend = 0, frame = 0
  2855. 826 @ frame_needed = 0, uses_anonymous_args = 0
  2856. 480:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint16_t *pdata16bits;
  2857. 827 .loc 1 480 3 view .LVU223
  2858. 481:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint16_t uhMask;
  2859. 828 .loc 1 481 3 view .LVU224
  2860. 482:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint32_t tickstart;
  2861. 829 .loc 1 482 3 view .LVU225
  2862. 483:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2863. 830 .loc 1 483 3 view .LVU226
  2864. 486:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  2865. 831 .loc 1 486 3 view .LVU227
  2866. 479:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint8_t *pdata8bits;
  2867. 832 .loc 1 479 1 is_stmt 0 view .LVU228
  2868. 833 0000 2DE9F84F push {r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
  2869. 834 .LCFI11:
  2870. 835 .cfi_def_cfa_offset 40
  2871. 836 .cfi_offset 3, -40
  2872. 837 .cfi_offset 4, -36
  2873. 838 .cfi_offset 5, -32
  2874. 839 .cfi_offset 6, -28
  2875. 840 .cfi_offset 7, -24
  2876. 841 .cfi_offset 8, -20
  2877. 842 .cfi_offset 9, -16
  2878. 843 .cfi_offset 10, -12
  2879. 844 .cfi_offset 11, -8
  2880. 845 .cfi_offset 14, -4
  2881. 479:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint8_t *pdata8bits;
  2882. 846 .loc 1 479 1 view .LVU229
  2883. 847 0004 9946 mov r9, r3
  2884. 486:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  2885. 848 .loc 1 486 12 view .LVU230
  2886. 849 0006 D0F88030 ldr r3, [r0, #128]
  2887. 850 .LVL65:
  2888. 479:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uint8_t *pdata8bits;
  2889. 851 .loc 1 479 1 view .LVU231
  2890. 852 000a DDF828A0 ldr r10, [sp, #40]
  2891. 486:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  2892. 853 .loc 1 486 6 view .LVU232
  2893. 854 000e 202B cmp r3, #32
  2894. 855 0010 23D1 bne .L95
  2895. 488:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  2896. 856 .loc 1 488 5 is_stmt 1 view .LVU233
  2897. 857 0012 8B46 mov fp, r1
  2898. 488:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  2899. 858 .loc 1 488 8 is_stmt 0 view .LVU234
  2900. 859 0014 09B1 cbz r1, .L97
  2901. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 51
  2902. 860 0016 1746 mov r7, r2
  2903. 488:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  2904. 861 .loc 1 488 25 discriminator 1 view .LVU235
  2905. 862 0018 12B9 cbnz r2, .L115
  2906. 863 .L97:
  2907. 490:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  2908. 864 .loc 1 490 15 view .LVU236
  2909. 865 001a 0120 movs r0, #1
  2910. 866 .LVL66:
  2911. 867 .L113:
  2912. 584:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2913. 868 .loc 1 584 1 view .LVU237
  2914. 869 001c BDE8F88F pop {r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
  2915. 870 .LVL67:
  2916. 871 .L115:
  2917. 493:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_BUSY_RX;
  2918. 872 .loc 1 493 22 view .LVU238
  2919. 873 0020 0025 movs r5, #0
  2920. 494:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  2921. 874 .loc 1 494 20 view .LVU239
  2922. 875 0022 2223 movs r3, #34
  2923. 876 0024 0446 mov r4, r0
  2924. 493:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_BUSY_RX;
  2925. 877 .loc 1 493 5 is_stmt 1 view .LVU240
  2926. 493:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_BUSY_RX;
  2927. 878 .loc 1 493 22 is_stmt 0 view .LVU241
  2928. 879 0026 C0F88450 str r5, [r0, #132]
  2929. 494:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  2930. 880 .loc 1 494 5 is_stmt 1 view .LVU242
  2931. 494:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  2932. 881 .loc 1 494 20 is_stmt 0 view .LVU243
  2933. 882 002a C0F88030 str r3, [r0, #128]
  2934. 495:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_TC;
  2935. 883 .loc 1 495 5 is_stmt 1 view .LVU244
  2936. 495:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_TC;
  2937. 884 .loc 1 495 26 is_stmt 0 view .LVU245
  2938. 885 002e 0123 movs r3, #1
  2939. 886 0030 0366 str r3, [r0, #96]
  2940. 496:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2941. 887 .loc 1 496 5 is_stmt 1 view .LVU246
  2942. 496:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2943. 888 .loc 1 496 24 is_stmt 0 view .LVU247
  2944. 889 0032 4566 str r5, [r0, #100]
  2945. 499:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2946. 890 .loc 1 499 5 is_stmt 1 view .LVU248
  2947. 499:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2948. 891 .loc 1 499 17 is_stmt 0 view .LVU249
  2949. 892 0034 FFF7FEFF bl HAL_GetTick
  2950. 893 .LVL68:
  2951. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  2952. 894 .loc 1 505 5 view .LVU250
  2953. 895 0038 A368 ldr r3, [r4, #8]
  2954. 501:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxXferCount = Size;
  2955. 896 .loc 1 501 24 view .LVU251
  2956. 897 003a A4F85870 strh r7, [r4, #88] @ movhi
  2957. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  2958. 898 .loc 1 505 5 view .LVU252
  2959. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 52
  2960. 899 003e B3F5805F cmp r3, #4096
  2961. 502:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2962. 900 .loc 1 502 24 view .LVU253
  2963. 901 0042 A4F85A70 strh r7, [r4, #90] @ movhi
  2964. 499:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2965. 902 .loc 1 499 17 view .LVU254
  2966. 903 0046 0646 mov r6, r0
  2967. 904 .LVL69:
  2968. 501:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxXferCount = Size;
  2969. 905 .loc 1 501 5 is_stmt 1 view .LVU255
  2970. 502:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2971. 906 .loc 1 502 5 view .LVU256
  2972. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  2973. 907 .loc 1 505 5 view .LVU257
  2974. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  2975. 908 .loc 1 505 5 view .LVU258
  2976. 909 0048 0AD0 beq .L116
  2977. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  2978. 910 .loc 1 505 5 discriminator 2 view .LVU259
  2979. 911 004a 9BB9 cbnz r3, .L83
  2980. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  2981. 912 .loc 1 505 5 discriminator 5 view .LVU260
  2982. 913 004c 2369 ldr r3, [r4, #16]
  2983. 914 004e 002B cmp r3, #0
  2984. 915 0050 6AD1 bne .L84
  2985. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  2986. 916 .loc 1 505 5 discriminator 7 view .LVU261
  2987. 917 0052 FF25 movs r5, #255
  2988. 918 0054 A4F85C50 strh r5, [r4, #92] @ movhi
  2989. 919 0058 0EE0 b .L85
  2990. 920 .LVL70:
  2991. 921 .L95:
  2992. 582:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  2993. 922 .loc 1 582 12 is_stmt 0 view .LVU262
  2994. 923 005a 0220 movs r0, #2
  2995. 924 .LVL71:
  2996. 584:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  2997. 925 .loc 1 584 1 view .LVU263
  2998. 926 005c BDE8F88F pop {r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
  2999. 927 .LVL72:
  3000. 928 .L116:
  3001. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  3002. 929 .loc 1 505 5 is_stmt 1 discriminator 1 view .LVU264
  3003. 930 0060 2369 ldr r3, [r4, #16]
  3004. 931 0062 002B cmp r3, #0
  3005. 932 0064 5BD1 bne .L117
  3006. 933 0066 40F2FF15 movw r5, #511
  3007. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  3008. 934 .loc 1 505 5 is_stmt 0 view .LVU265
  3009. 935 006a D846 mov r8, fp
  3010. 936 006c A4F85C50 strh r5, [r4, #92] @ movhi
  3011. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  3012. 937 .loc 1 505 5 is_stmt 1 view .LVU266
  3013. 506:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3014. 938 .loc 1 506 5 view .LVU267
  3015. 939 .LVL73:
  3016. 509:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3017. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 53
  3018. 940 .loc 1 509 5 view .LVU268
  3019. 511:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits = (uint16_t *) pData;
  3020. 941 .loc 1 511 19 is_stmt 0 view .LVU269
  3021. 942 0070 9B46 mov fp, r3
  3022. 943 .LVL74:
  3023. 511:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits = (uint16_t *) pData;
  3024. 944 .loc 1 511 19 view .LVU270
  3025. 945 0072 03E0 b .L94
  3026. 946 .LVL75:
  3027. 947 .L83:
  3028. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  3029. 948 .loc 1 505 5 is_stmt 1 discriminator 6 view .LVU271
  3030. 949 0074 A4F85C50 strh r5, [r4, #92] @ movhi
  3031. 950 .L85:
  3032. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  3033. 951 .loc 1 505 5 view .LVU272
  3034. 506:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3035. 952 .loc 1 506 5 view .LVU273
  3036. 953 .LVL76:
  3037. 509:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3038. 954 .loc 1 509 5 view .LVU274
  3039. 516:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits = NULL;
  3040. 955 .loc 1 516 7 view .LVU275
  3041. 517:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3042. 956 .loc 1 517 7 view .LVU276
  3043. 517:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3044. 957 .loc 1 517 19 is_stmt 0 view .LVU277
  3045. 958 0078 4FF00008 mov r8, #0
  3046. 959 .LVL77:
  3047. 960 .L94:
  3048. 521:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3049. 961 .loc 1 521 5 is_stmt 1 view .LVU278
  3050. 521:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3051. 962 .loc 1 521 12 is_stmt 0 view .LVU279
  3052. 963 007c 0023 movs r3, #0
  3053. 964 007e A9F80030 strh r3, [r9] @ movhi
  3054. 524:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3055. 965 .loc 1 524 5 is_stmt 1 view .LVU280
  3056. 524:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3057. 966 .loc 1 524 11 view .LVU281
  3058. 524:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3059. 967 .loc 1 524 17 is_stmt 0 view .LVU282
  3060. 968 0082 B4F85A30 ldrh r3, [r4, #90]
  3061. 969 0086 9BB2 uxth r3, r3
  3062. 524:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3063. 970 .loc 1 524 11 view .LVU283
  3064. 971 0088 83B3 cbz r3, .L93
  3065. 530:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3066. 972 .loc 1 530 9 view .LVU284
  3067. 973 008a 1027 movs r7, #16
  3068. 974 008c 1BE0 b .L86
  3069. 975 .LVL78:
  3070. 976 .L89:
  3071. 553:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata8bits++;
  3072. 977 .loc 1 553 11 is_stmt 1 view .LVU285
  3073. 553:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata8bits++;
  3074. 978 .loc 1 553 23 is_stmt 0 view .LVU286
  3075. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 54
  3076. 979 008e 0BF8013B strb r3, [fp], #1
  3077. 980 .LVL79:
  3078. 554:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3079. 981 .loc 1 554 11 is_stmt 1 view .LVU287
  3080. 982 .L90:
  3081. 557:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxXferCount--;
  3082. 983 .loc 1 557 9 view .LVU288
  3083. 557:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxXferCount--;
  3084. 984 .loc 1 557 16 is_stmt 0 view .LVU289
  3085. 985 0092 B9F80030 ldrh r3, [r9]
  3086. 986 0096 0133 adds r3, r3, #1
  3087. 987 0098 A9F80030 strh r3, [r9] @ movhi
  3088. 558:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3089. 988 .loc 1 558 9 is_stmt 1 view .LVU290
  3090. 558:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3091. 989 .loc 1 558 14 is_stmt 0 view .LVU291
  3092. 990 009c B4F85A30 ldrh r3, [r4, #90]
  3093. 558:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3094. 991 .loc 1 558 27 view .LVU292
  3095. 992 00a0 013B subs r3, r3, #1
  3096. 993 00a2 9BB2 uxth r3, r3
  3097. 994 00a4 A4F85A30 strh r3, [r4, #90] @ movhi
  3098. 995 .L88:
  3099. 562:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3100. 996 .loc 1 562 7 is_stmt 1 view .LVU293
  3101. 562:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3102. 997 .loc 1 562 10 is_stmt 0 view .LVU294
  3103. 998 00a8 BAF1FF3F cmp r10, #-1
  3104. 999 00ac 07D0 beq .L91
  3105. 564:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3106. 1000 .loc 1 564 9 is_stmt 1 view .LVU295
  3107. 564:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3108. 1001 .loc 1 564 15 is_stmt 0 view .LVU296
  3109. 1002 00ae FFF7FEFF bl HAL_GetTick
  3110. 1003 .LVL80:
  3111. 564:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3112. 1004 .loc 1 564 29 view .LVU297
  3113. 1005 00b2 801B subs r0, r0, r6
  3114. 564:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3115. 1006 .loc 1 564 12 view .LVU298
  3116. 1007 00b4 5045 cmp r0, r10
  3117. 1008 00b6 26D8 bhi .L92
  3118. 564:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3119. 1009 .loc 1 564 53 discriminator 1 view .LVU299
  3120. 1010 00b8 BAF1000F cmp r10, #0
  3121. 1011 00bc 23D0 beq .L92
  3122. 1012 .L91:
  3123. 524:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3124. 1013 .loc 1 524 11 is_stmt 1 view .LVU300
  3125. 524:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3126. 1014 .loc 1 524 17 is_stmt 0 view .LVU301
  3127. 1015 00be B4F85A20 ldrh r2, [r4, #90]
  3128. 1016 00c2 92B2 uxth r2, r2
  3129. 524:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3130. 1017 .loc 1 524 11 view .LVU302
  3131. 1018 00c4 92B1 cbz r2, .L93
  3132. 1019 .L86:
  3133. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 55
  3134. 527:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3135. 1020 .loc 1 527 7 is_stmt 1 view .LVU303
  3136. 527:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3137. 1021 .loc 1 527 11 is_stmt 0 view .LVU304
  3138. 1022 00c6 2268 ldr r2, [r4]
  3139. 1023 00c8 D369 ldr r3, [r2, #28]
  3140. 527:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3141. 1024 .loc 1 527 10 view .LVU305
  3142. 1025 00ca D906 lsls r1, r3, #27
  3143. 1026 00cc 03D5 bpl .L87
  3144. 530:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3145. 1027 .loc 1 530 9 is_stmt 1 view .LVU306
  3146. 534:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3147. 1028 .loc 1 534 12 is_stmt 0 view .LVU307
  3148. 1029 00ce B9F80030 ldrh r3, [r9]
  3149. 530:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3150. 1030 .loc 1 530 9 view .LVU308
  3151. 1031 00d2 1762 str r7, [r2, #32]
  3152. 534:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3153. 1032 .loc 1 534 9 is_stmt 1 view .LVU309
  3154. 534:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3155. 1033 .loc 1 534 12 is_stmt 0 view .LVU310
  3156. 1034 00d4 E3B9 cbnz r3, .L118
  3157. 1035 .L87:
  3158. 544:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3159. 1036 .loc 1 544 7 is_stmt 1 view .LVU311
  3160. 544:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3161. 1037 .loc 1 544 11 is_stmt 0 view .LVU312
  3162. 1038 00d6 D369 ldr r3, [r2, #28]
  3163. 544:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3164. 1039 .loc 1 544 10 view .LVU313
  3165. 1040 00d8 9B06 lsls r3, r3, #26
  3166. 1041 00da E5D5 bpl .L88
  3167. 546:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3168. 1042 .loc 1 546 9 is_stmt 1 view .LVU314
  3169. 548:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits++;
  3170. 1043 .loc 1 548 52 is_stmt 0 view .LVU315
  3171. 1044 00dc 938C ldrh r3, [r2, #36]
  3172. 548:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits++;
  3173. 1045 .loc 1 548 26 view .LVU316
  3174. 1046 00de 2B40 ands r3, r3, r5
  3175. 546:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3176. 1047 .loc 1 546 12 view .LVU317
  3177. 1048 00e0 BBF1000F cmp fp, #0
  3178. 1049 00e4 D3D1 bne .L89
  3179. 548:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits++;
  3180. 1050 .loc 1 548 11 is_stmt 1 view .LVU318
  3181. 548:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits++;
  3182. 1051 .loc 1 548 24 is_stmt 0 view .LVU319
  3183. 1052 00e6 28F8023B strh r3, [r8], #2 @ movhi
  3184. 1053 .LVL81:
  3185. 549:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3186. 1054 .loc 1 549 11 is_stmt 1 view .LVU320
  3187. 549:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3188. 1055 .loc 1 549 11 is_stmt 0 view .LVU321
  3189. 1056 00ea D2E7 b .L90
  3190. 1057 .L93:
  3191. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 56
  3192. 574:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* At end of Rx process, restore huart->RxState to Ready */
  3193. 1058 .loc 1 574 5 is_stmt 1 view .LVU322
  3194. 574:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* At end of Rx process, restore huart->RxState to Ready */
  3195. 1059 .loc 1 574 39 is_stmt 0 view .LVU323
  3196. 1060 00ec B4F85A10 ldrh r1, [r4, #90]
  3197. 574:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* At end of Rx process, restore huart->RxState to Ready */
  3198. 1061 .loc 1 574 32 view .LVU324
  3199. 1062 00f0 B4F85830 ldrh r3, [r4, #88]
  3200. 576:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3201. 1063 .loc 1 576 20 view .LVU325
  3202. 1064 00f4 2022 movs r2, #32
  3203. 574:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* At end of Rx process, restore huart->RxState to Ready */
  3204. 1065 .loc 1 574 32 view .LVU326
  3205. 1066 00f6 5B1A subs r3, r3, r1
  3206. 574:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* At end of Rx process, restore huart->RxState to Ready */
  3207. 1067 .loc 1 574 12 view .LVU327
  3208. 1068 00f8 A9F80030 strh r3, [r9] @ movhi
  3209. 576:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3210. 1069 .loc 1 576 5 is_stmt 1 view .LVU328
  3211. 578:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3212. 1070 .loc 1 578 12 is_stmt 0 view .LVU329
  3213. 1071 00fc 0020 movs r0, #0
  3214. 576:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3215. 1072 .loc 1 576 20 view .LVU330
  3216. 1073 00fe C4F88020 str r2, [r4, #128]
  3217. 578:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3218. 1074 .loc 1 578 5 is_stmt 1 view .LVU331
  3219. 584:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3220. 1075 .loc 1 584 1 is_stmt 0 view .LVU332
  3221. 1076 0102 BDE8F88F pop {r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
  3222. 1077 .LVL82:
  3223. 1078 .L92:
  3224. 566:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3225. 1079 .loc 1 566 11 is_stmt 1 view .LVU333
  3226. 566:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3227. 1080 .loc 1 566 26 is_stmt 0 view .LVU334
  3228. 1081 0106 2023 movs r3, #32
  3229. 1082 0108 C4F88030 str r3, [r4, #128]
  3230. 568:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3231. 1083 .loc 1 568 11 is_stmt 1 view .LVU335
  3232. 568:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3233. 1084 .loc 1 568 18 is_stmt 0 view .LVU336
  3234. 1085 010c 0320 movs r0, #3
  3235. 1086 010e 85E7 b .L113
  3236. 1087 .L118:
  3237. 536:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_READY;
  3238. 1088 .loc 1 536 11 is_stmt 1 view .LVU337
  3239. 536:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_READY;
  3240. 1089 .loc 1 536 30 is_stmt 0 view .LVU338
  3241. 1090 0110 0222 movs r2, #2
  3242. 537:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3243. 1091 .loc 1 537 26 view .LVU339
  3244. 1092 0112 2023 movs r3, #32
  3245. 536:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxState = HAL_UART_STATE_READY;
  3246. 1093 .loc 1 536 30 view .LVU340
  3247. 1094 0114 6266 str r2, [r4, #100]
  3248. 537:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3249. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 57
  3250. 1095 .loc 1 537 11 is_stmt 1 view .LVU341
  3251. 539:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3252. 1096 .loc 1 539 18 is_stmt 0 view .LVU342
  3253. 1097 0116 0020 movs r0, #0
  3254. 537:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3255. 1098 .loc 1 537 26 view .LVU343
  3256. 1099 0118 C4F88030 str r3, [r4, #128]
  3257. 539:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3258. 1100 .loc 1 539 11 is_stmt 1 view .LVU344
  3259. 539:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3260. 1101 .loc 1 539 18 is_stmt 0 view .LVU345
  3261. 1102 011c 7EE7 b .L113
  3262. 1103 .LVL83:
  3263. 1104 .L117:
  3264. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  3265. 1105 .loc 1 505 5 is_stmt 1 view .LVU346
  3266. 517:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3267. 1106 .loc 1 517 19 is_stmt 0 view .LVU347
  3268. 1107 011e A846 mov r8, r5
  3269. 1108 0120 FF25 movs r5, #255
  3270. 1109 0122 A4F85C50 strh r5, [r4, #92] @ movhi
  3271. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  3272. 1110 .loc 1 505 5 is_stmt 1 view .LVU348
  3273. 506:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3274. 1111 .loc 1 506 5 view .LVU349
  3275. 1112 .LVL84:
  3276. 509:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3277. 1113 .loc 1 509 5 view .LVU350
  3278. 516:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** pdata16bits = NULL;
  3279. 1114 .loc 1 516 7 view .LVU351
  3280. 517:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3281. 1115 .loc 1 517 7 view .LVU352
  3282. 517:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3283. 1116 .loc 1 517 7 is_stmt 0 view .LVU353
  3284. 1117 0126 A9E7 b .L94
  3285. 1118 .LVL85:
  3286. 1119 .L84:
  3287. 505:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** uhMask = huart->Mask;
  3288. 1120 .loc 1 505 5 is_stmt 1 discriminator 8 view .LVU354
  3289. 1121 0128 7F25 movs r5, #127
  3290. 1122 012a A4F85C50 strh r5, [r4, #92] @ movhi
  3291. 1123 012e A3E7 b .L85
  3292. 1124 .cfi_endproc
  3293. 1125 .LFE136:
  3294. 1127 .section .text.HAL_UARTEx_ReceiveToIdle_IT,"ax",%progbits
  3295. 1128 .align 1
  3296. 1129 .p2align 2,,3
  3297. 1130 .global HAL_UARTEx_ReceiveToIdle_IT
  3298. 1131 .syntax unified
  3299. 1132 .thumb
  3300. 1133 .thumb_func
  3301. 1135 HAL_UARTEx_ReceiveToIdle_IT:
  3302. 1136 .LVL86:
  3303. 1137 .LFB137:
  3304. 601:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef status = HAL_OK;
  3305. 1138 .loc 1 601 1 view -0
  3306. 1139 .cfi_startproc
  3307. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 58
  3308. 1140 @ args = 0, pretend = 0, frame = 0
  3309. 1141 @ frame_needed = 0, uses_anonymous_args = 0
  3310. 602:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3311. 1142 .loc 1 602 3 view .LVU356
  3312. 605:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3313. 1143 .loc 1 605 3 view .LVU357
  3314. 601:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef status = HAL_OK;
  3315. 1144 .loc 1 601 1 is_stmt 0 view .LVU358
  3316. 1145 0000 70B5 push {r4, r5, r6, lr}
  3317. 1146 .LCFI12:
  3318. 1147 .cfi_def_cfa_offset 16
  3319. 1148 .cfi_offset 4, -16
  3320. 1149 .cfi_offset 5, -12
  3321. 1150 .cfi_offset 6, -8
  3322. 1151 .cfi_offset 14, -4
  3323. 605:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3324. 1152 .loc 1 605 12 view .LVU359
  3325. 1153 0002 D0F88060 ldr r6, [r0, #128]
  3326. 605:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3327. 1154 .loc 1 605 6 view .LVU360
  3328. 1155 0006 202E cmp r6, #32
  3329. 1156 0008 03D1 bne .L124
  3330. 607:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3331. 1157 .loc 1 607 5 is_stmt 1 view .LVU361
  3332. 607:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3333. 1158 .loc 1 607 8 is_stmt 0 view .LVU362
  3334. 1159 000a 01B1 cbz r1, .L122
  3335. 607:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3336. 1160 .loc 1 607 25 discriminator 1 view .LVU363
  3337. 1161 000c 1AB9 cbnz r2, .L130
  3338. 1162 .LVL87:
  3339. 1163 .L122:
  3340. 609:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3341. 1164 .loc 1 609 14 view .LVU364
  3342. 1165 000e 0120 movs r0, #1
  3343. 1166 .LVL88:
  3344. 638:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3345. 1167 .loc 1 638 1 view .LVU365
  3346. 1168 0010 70BD pop {r4, r5, r6, pc}
  3347. 1169 .LVL89:
  3348. 1170 .L124:
  3349. 636:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3350. 1171 .loc 1 636 12 view .LVU366
  3351. 1172 0012 0220 movs r0, #2
  3352. 1173 .LVL90:
  3353. 638:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3354. 1174 .loc 1 638 1 view .LVU367
  3355. 1175 0014 70BD pop {r4, r5, r6, pc}
  3356. 1176 .LVL91:
  3357. 1177 .L130:
  3358. 613:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_TC;
  3359. 1178 .loc 1 613 26 view .LVU368
  3360. 1179 0016 0123 movs r3, #1
  3361. 1180 0018 0366 str r3, [r0, #96]
  3362. 1181 001a 0446 mov r4, r0
  3363. 613:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_TC;
  3364. 1182 .loc 1 613 5 is_stmt 1 view .LVU369
  3365. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 59
  3366. 614:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3367. 1183 .loc 1 614 5 view .LVU370
  3368. 614:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3369. 1184 .loc 1 614 24 is_stmt 0 view .LVU371
  3370. 1185 001c 0023 movs r3, #0
  3371. 1186 001e 4366 str r3, [r0, #100]
  3372. 616:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3373. 1187 .loc 1 616 5 is_stmt 1 view .LVU372
  3374. 616:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3375. 1188 .loc 1 616 11 is_stmt 0 view .LVU373
  3376. 1189 0020 FFF7FEFF bl UART_Start_Receive_IT
  3377. 1190 .LVL92:
  3378. 618:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3379. 1191 .loc 1 618 5 is_stmt 1 view .LVU374
  3380. 618:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3381. 1192 .loc 1 618 14 is_stmt 0 view .LVU375
  3382. 1193 0024 236E ldr r3, [r4, #96]
  3383. 618:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3384. 1194 .loc 1 618 8 view .LVU376
  3385. 1195 0026 012B cmp r3, #1
  3386. 1196 0028 F1D1 bne .L122
  3387. 620:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  3388. 1197 .loc 1 620 7 is_stmt 1 view .LVU377
  3389. 1198 002a 2268 ldr r2, [r4]
  3390. 1199 002c 1023 movs r3, #16
  3391. 1200 002e 1362 str r3, [r2, #32]
  3392. 1201 .L123:
  3393. 621:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3394. 1202 .loc 1 621 7 discriminator 1 view .LVU378
  3395. 1203 .LBB38:
  3396. 621:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3397. 1204 .loc 1 621 7 discriminator 1 view .LVU379
  3398. 621:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3399. 1205 .loc 1 621 7 discriminator 1 view .LVU380
  3400. 621:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3401. 1206 .loc 1 621 7 discriminator 1 view .LVU381
  3402. 1207 .LVL93:
  3403. 1208 .LBB39:
  3404. 1209 .LBI39:
  3405. 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  3406. 1210 .loc 2 1068 31 discriminator 1 view .LVU382
  3407. 1211 .LBB40:
  3408. 1070:Drivers/CMSIS/Include/cmsis_gcc.h ****
  3409. 1212 .loc 2 1070 5 discriminator 1 view .LVU383
  3410. 1072:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  3411. 1213 .loc 2 1072 4 discriminator 1 view .LVU384
  3412. 1214 .syntax unified
  3413. 1215 @ 1072 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  3414. 1216 0030 52E8003F ldrex r3, [r2]
  3415. 1217 @ 0 "" 2
  3416. 1218 .LVL94:
  3417. 1073:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  3418. 1219 .loc 2 1073 4 discriminator 1 view .LVU385
  3419. 1073:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  3420. 1220 .loc 2 1073 4 is_stmt 0 discriminator 1 view .LVU386
  3421. 1221 .thumb
  3422. 1222 .syntax unified
  3423. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 60
  3424. 1223 .LBE40:
  3425. 1224 .LBE39:
  3426. 621:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3427. 1225 .loc 1 621 7 discriminator 1 view .LVU387
  3428. 1226 0034 43F01003 orr r3, r3, #16
  3429. 1227 .LVL95:
  3430. 621:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3431. 1228 .loc 1 621 7 is_stmt 1 discriminator 1 view .LVU388
  3432. 1229 .LBB41:
  3433. 1230 .LBI41:
  3434. 1119:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  3435. 1231 .loc 2 1119 31 discriminator 1 view .LVU389
  3436. 1232 .LBB42:
  3437. 1121:Drivers/CMSIS/Include/cmsis_gcc.h ****
  3438. 1233 .loc 2 1121 4 discriminator 1 view .LVU390
  3439. 1123:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  3440. 1234 .loc 2 1123 4 discriminator 1 view .LVU391
  3441. 1235 .syntax unified
  3442. 1236 @ 1123 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  3443. 1237 0038 42E80030 strex r0, r3, [r2]
  3444. 1238 @ 0 "" 2
  3445. 1239 .LVL96:
  3446. 1240 .loc 2 1124 4 discriminator 1 view .LVU392
  3447. 1241 .loc 2 1124 4 is_stmt 0 discriminator 1 view .LVU393
  3448. 1242 .thumb
  3449. 1243 .syntax unified
  3450. 1244 .LBE42:
  3451. 1245 .LBE41:
  3452. 621:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3453. 1246 .loc 1 621 7 discriminator 1 view .LVU394
  3454. 1247 003c 0028 cmp r0, #0
  3455. 1248 003e F7D1 bne .L123
  3456. 1249 .LVL97:
  3457. 621:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3458. 1250 .loc 1 621 7 discriminator 1 view .LVU395
  3459. 1251 .LBE38:
  3460. 638:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3461. 1252 .loc 1 638 1 view .LVU396
  3462. 1253 0040 70BD pop {r4, r5, r6, pc}
  3463. 638:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3464. 1254 .loc 1 638 1 view .LVU397
  3465. 1255 .cfi_endproc
  3466. 1256 .LFE137:
  3467. 1258 0042 00BF .section .text.HAL_UARTEx_ReceiveToIdle_DMA,"ax",%progbits
  3468. 1259 .align 1
  3469. 1260 .p2align 2,,3
  3470. 1261 .global HAL_UARTEx_ReceiveToIdle_DMA
  3471. 1262 .syntax unified
  3472. 1263 .thumb
  3473. 1264 .thumb_func
  3474. 1266 HAL_UARTEx_ReceiveToIdle_DMA:
  3475. 1267 .LVL98:
  3476. 1268 .LFB138:
  3477. 658:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef status;
  3478. 1269 .loc 1 658 1 is_stmt 1 view -0
  3479. 1270 .cfi_startproc
  3480. 1271 @ args = 0, pretend = 0, frame = 0
  3481. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 61
  3482. 1272 @ frame_needed = 0, uses_anonymous_args = 0
  3483. 659:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3484. 1273 .loc 1 659 3 view .LVU399
  3485. 662:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3486. 1274 .loc 1 662 3 view .LVU400
  3487. 658:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** HAL_StatusTypeDef status;
  3488. 1275 .loc 1 658 1 is_stmt 0 view .LVU401
  3489. 1276 0000 70B5 push {r4, r5, r6, lr}
  3490. 1277 .LCFI13:
  3491. 1278 .cfi_def_cfa_offset 16
  3492. 1279 .cfi_offset 4, -16
  3493. 1280 .cfi_offset 5, -12
  3494. 1281 .cfi_offset 6, -8
  3495. 1282 .cfi_offset 14, -4
  3496. 662:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3497. 1283 .loc 1 662 12 view .LVU402
  3498. 1284 0002 D0F88060 ldr r6, [r0, #128]
  3499. 662:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3500. 1285 .loc 1 662 6 view .LVU403
  3501. 1286 0006 202E cmp r6, #32
  3502. 1287 0008 03D1 bne .L136
  3503. 664:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3504. 1288 .loc 1 664 5 is_stmt 1 view .LVU404
  3505. 664:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3506. 1289 .loc 1 664 8 is_stmt 0 view .LVU405
  3507. 1290 000a 01B1 cbz r1, .L134
  3508. 664:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3509. 1291 .loc 1 664 25 discriminator 1 view .LVU406
  3510. 1292 000c 1AB9 cbnz r2, .L144
  3511. 1293 .LVL99:
  3512. 1294 .L134:
  3513. 666:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3514. 1295 .loc 1 666 14 view .LVU407
  3515. 1296 000e 0120 movs r0, #1
  3516. 1297 .L132:
  3517. 699:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3518. 1298 .loc 1 699 1 view .LVU408
  3519. 1299 0010 70BD pop {r4, r5, r6, pc}
  3520. 1300 .LVL100:
  3521. 1301 .L136:
  3522. 697:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3523. 1302 .loc 1 697 12 view .LVU409
  3524. 1303 0012 0220 movs r0, #2
  3525. 1304 .LVL101:
  3526. 699:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3527. 1305 .loc 1 699 1 view .LVU410
  3528. 1306 0014 70BD pop {r4, r5, r6, pc}
  3529. 1307 .LVL102:
  3530. 1308 .L144:
  3531. 670:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_TC;
  3532. 1309 .loc 1 670 5 is_stmt 1 view .LVU411
  3533. 670:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** huart->RxEventType = HAL_UART_RXEVENT_TC;
  3534. 1310 .loc 1 670 26 is_stmt 0 view .LVU412
  3535. 1311 0016 0123 movs r3, #1
  3536. 1312 0018 0366 str r3, [r0, #96]
  3537. 671:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3538. 1313 .loc 1 671 5 is_stmt 1 view .LVU413
  3539. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 62
  3540. 671:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3541. 1314 .loc 1 671 24 is_stmt 0 view .LVU414
  3542. 1315 001a 0023 movs r3, #0
  3543. 1316 001c 4366 str r3, [r0, #100]
  3544. 673:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3545. 1317 .loc 1 673 5 is_stmt 1 view .LVU415
  3546. 1318 001e 0446 mov r4, r0
  3547. 673:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3548. 1319 .loc 1 673 15 is_stmt 0 view .LVU416
  3549. 1320 0020 FFF7FEFF bl UART_Start_Receive_DMA
  3550. 1321 .LVL103:
  3551. 676:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3552. 1322 .loc 1 676 5 is_stmt 1 view .LVU417
  3553. 676:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3554. 1323 .loc 1 676 8 is_stmt 0 view .LVU418
  3555. 1324 0024 0028 cmp r0, #0
  3556. 1325 0026 F3D1 bne .L132
  3557. 678:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3558. 1326 .loc 1 678 7 is_stmt 1 view .LVU419
  3559. 678:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3560. 1327 .loc 1 678 16 is_stmt 0 view .LVU420
  3561. 1328 0028 236E ldr r3, [r4, #96]
  3562. 678:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** {
  3563. 1329 .loc 1 678 10 view .LVU421
  3564. 1330 002a 012B cmp r3, #1
  3565. 1331 002c EFD1 bne .L134
  3566. 680:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  3567. 1332 .loc 1 680 9 is_stmt 1 view .LVU422
  3568. 1333 002e 2268 ldr r2, [r4]
  3569. 1334 0030 1023 movs r3, #16
  3570. 1335 0032 1362 str r3, [r2, #32]
  3571. 1336 .L135:
  3572. 681:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3573. 1337 .loc 1 681 9 discriminator 1 view .LVU423
  3574. 1338 .LBB43:
  3575. 681:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3576. 1339 .loc 1 681 9 discriminator 1 view .LVU424
  3577. 681:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3578. 1340 .loc 1 681 9 discriminator 1 view .LVU425
  3579. 681:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3580. 1341 .loc 1 681 9 discriminator 1 view .LVU426
  3581. 1342 .LVL104:
  3582. 1343 .LBB44:
  3583. 1344 .LBI44:
  3584. 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  3585. 1345 .loc 2 1068 31 discriminator 1 view .LVU427
  3586. 1346 .LBB45:
  3587. 1070:Drivers/CMSIS/Include/cmsis_gcc.h ****
  3588. 1347 .loc 2 1070 5 discriminator 1 view .LVU428
  3589. 1072:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  3590. 1348 .loc 2 1072 4 discriminator 1 view .LVU429
  3591. 1349 .syntax unified
  3592. 1350 @ 1072 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  3593. 1351 0034 52E8003F ldrex r3, [r2]
  3594. 1352 @ 0 "" 2
  3595. 1353 .LVL105:
  3596. 1073:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  3597. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 63
  3598. 1354 .loc 2 1073 4 discriminator 1 view .LVU430
  3599. 1073:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  3600. 1355 .loc 2 1073 4 is_stmt 0 discriminator 1 view .LVU431
  3601. 1356 .thumb
  3602. 1357 .syntax unified
  3603. 1358 .LBE45:
  3604. 1359 .LBE44:
  3605. 681:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3606. 1360 .loc 1 681 9 discriminator 1 view .LVU432
  3607. 1361 0038 43F01003 orr r3, r3, #16
  3608. 1362 .LVL106:
  3609. 681:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3610. 1363 .loc 1 681 9 is_stmt 1 discriminator 1 view .LVU433
  3611. 1364 .LBB46:
  3612. 1365 .LBI46:
  3613. 1119:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  3614. 1366 .loc 2 1119 31 discriminator 1 view .LVU434
  3615. 1367 .LBB47:
  3616. 1121:Drivers/CMSIS/Include/cmsis_gcc.h ****
  3617. 1368 .loc 2 1121 4 discriminator 1 view .LVU435
  3618. 1123:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  3619. 1369 .loc 2 1123 4 discriminator 1 view .LVU436
  3620. 1370 .syntax unified
  3621. 1371 @ 1123 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  3622. 1372 003c 42E80031 strex r1, r3, [r2]
  3623. 1373 @ 0 "" 2
  3624. 1374 .LVL107:
  3625. 1375 .loc 2 1124 4 discriminator 1 view .LVU437
  3626. 1376 .loc 2 1124 4 is_stmt 0 discriminator 1 view .LVU438
  3627. 1377 .thumb
  3628. 1378 .syntax unified
  3629. 1379 .LBE47:
  3630. 1380 .LBE46:
  3631. 681:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3632. 1381 .loc 1 681 9 discriminator 1 view .LVU439
  3633. 1382 0040 0029 cmp r1, #0
  3634. 1383 0042 F7D1 bne .L135
  3635. 1384 .LVL108:
  3636. 681:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3637. 1385 .loc 1 681 9 discriminator 1 view .LVU440
  3638. 1386 .LBE43:
  3639. 699:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3640. 1387 .loc 1 699 1 view .LVU441
  3641. 1388 0044 70BD pop {r4, r5, r6, pc}
  3642. 699:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3643. 1389 .loc 1 699 1 view .LVU442
  3644. 1390 .cfi_endproc
  3645. 1391 .LFE138:
  3646. 1393 0046 00BF .section .text.HAL_UARTEx_GetRxEventType,"ax",%progbits
  3647. 1394 .align 1
  3648. 1395 .p2align 2,,3
  3649. 1396 .global HAL_UARTEx_GetRxEventType
  3650. 1397 .syntax unified
  3651. 1398 .thumb
  3652. 1399 .thumb_func
  3653. 1401 HAL_UARTEx_GetRxEventType:
  3654. 1402 .LVL109:
  3655. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 64
  3656. 1403 .LFB139:
  3657. 726:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** /* Return Rx Event type value, as stored in UART handle */
  3658. 1404 .loc 1 726 1 is_stmt 1 view -0
  3659. 1405 .cfi_startproc
  3660. 1406 @ args = 0, pretend = 0, frame = 0
  3661. 1407 @ frame_needed = 0, uses_anonymous_args = 0
  3662. 1408 @ link register save eliminated.
  3663. 728:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3664. 1409 .loc 1 728 3 view .LVU444
  3665. 728:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c **** }
  3666. 1410 .loc 1 728 16 is_stmt 0 view .LVU445
  3667. 1411 0000 406E ldr r0, [r0, #100]
  3668. 1412 .LVL110:
  3669. 729:Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c ****
  3670. 1413 .loc 1 729 1 view .LVU446
  3671. 1414 0002 7047 bx lr
  3672. 1415 .cfi_endproc
  3673. 1416 .LFE139:
  3674. 1418 .text
  3675. 1419 .Letext0:
  3676. 1420 .file 3 "d:\\arm-gcc\\arm-none-eabi\\include\\machine\\_default_types.h"
  3677. 1421 .file 4 "d:\\arm-gcc\\arm-none-eabi\\include\\sys\\_stdint.h"
  3678. 1422 .file 5 "Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302xc.h"
  3679. 1423 .file 6 "Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f3xx.h"
  3680. 1424 .file 7 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_def.h"
  3681. 1425 .file 8 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_dma.h"
  3682. 1426 .file 9 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_uart.h"
  3683. 1427 .file 10 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_uart_ex.h"
  3684. 1428 .file 11 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h"
  3685. 1429 .file 12 "Core/Inc/stm32f3xx_hal_conf.h"
  3686. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s page 65
  3687. DEFINED SYMBOLS
  3688. *ABS*:00000000 stm32f3xx_hal_uart_ex.c
  3689. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:20 .rodata.HAL_RS485Ex_Init.str1.4:00000000 $d
  3690. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:25 .text.HAL_RS485Ex_Init:00000000 $t
  3691. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:32 .text.HAL_RS485Ex_Init:00000000 HAL_RS485Ex_Init
  3692. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:250 .text.HAL_RS485Ex_Init:000000e4 $d
  3693. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:256 .text.HAL_UARTEx_WakeupCallback:00000000 $t
  3694. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:263 .text.HAL_UARTEx_WakeupCallback:00000000 HAL_UARTEx_WakeupCallback
  3695. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:278 .text.HAL_MultiProcessorEx_AddressLength_Set:00000000 $t
  3696. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:285 .text.HAL_MultiProcessorEx_AddressLength_Set:00000000 HAL_MultiProcessorEx_AddressLength_Set
  3697. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:363 .text.HAL_MultiProcessorEx_AddressLength_Set:00000048 $d
  3698. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:368 .text.HAL_UARTEx_StopModeWakeUpSourceConfig:00000000 $t
  3699. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:375 .text.HAL_UARTEx_StopModeWakeUpSourceConfig:00000000 HAL_UARTEx_StopModeWakeUpSourceConfig
  3700. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:614 .text.HAL_UARTEx_StopModeWakeUpSourceConfig:00000110 $d
  3701. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:620 .text.HAL_UARTEx_EnableStopMode:00000000 $t
  3702. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:627 .text.HAL_UARTEx_EnableStopMode:00000000 HAL_UARTEx_EnableStopMode
  3703. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:717 .text.HAL_UARTEx_DisableStopMode:00000000 $t
  3704. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:724 .text.HAL_UARTEx_DisableStopMode:00000000 HAL_UARTEx_DisableStopMode
  3705. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:813 .text.HAL_UARTEx_ReceiveToIdle:00000000 $t
  3706. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:820 .text.HAL_UARTEx_ReceiveToIdle:00000000 HAL_UARTEx_ReceiveToIdle
  3707. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:1128 .text.HAL_UARTEx_ReceiveToIdle_IT:00000000 $t
  3708. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:1135 .text.HAL_UARTEx_ReceiveToIdle_IT:00000000 HAL_UARTEx_ReceiveToIdle_IT
  3709. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:1259 .text.HAL_UARTEx_ReceiveToIdle_DMA:00000000 $t
  3710. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:1266 .text.HAL_UARTEx_ReceiveToIdle_DMA:00000000 HAL_UARTEx_ReceiveToIdle_DMA
  3711. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:1394 .text.HAL_UARTEx_GetRxEventType:00000000 $t
  3712. C:\Users\zl835\AppData\Local\Temp\ccXY9Cq2.s:1401 .text.HAL_UARTEx_GetRxEventType:00000000 HAL_UARTEx_GetRxEventType
  3713. UNDEFINED SYMBOLS
  3714. assert_failed
  3715. UART_SetConfig
  3716. UART_CheckIdleState
  3717. HAL_UART_MspInit
  3718. UART_AdvFeatureConfig
  3719. HAL_GetTick
  3720. UART_WaitOnFlagUntilTimeout
  3721. UART_Start_Receive_IT
  3722. UART_Start_Receive_DMA