OZE_Sensor.list 2.4 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815
  1. OZE_Sensor.elf: file format elf32-littlearm
  2. Sections:
  3. Idx Name Size VMA LMA File off Algn
  4. 0 .isr_vector 00000298 08000000 08000000 00001000 2**0
  5. CONTENTS, ALLOC, LOAD, READONLY, DATA
  6. 1 .text 00018628 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 000001d4 080188c8 080188c8 000198c8 2**2
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 08018a9c 08018a9c 00019a9c 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 08018aa4 08018aa4 00019aa4 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 08018aa8 08018aa8 00019aa8 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 000000a4 24000000 08018aac 0001a000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 00012d20 240000c0 08018b50 0001a0c0 2**5
  19. ALLOC
  20. 8 ._user_heap_stack 00000600 24012de0 08018b50 0001ade0 2**0
  21. ALLOC
  22. 9 .ARM.attributes 0000002e 00000000 00000000 0001a0a4 2**0
  23. CONTENTS, READONLY
  24. 10 .debug_info 000340b6 00000000 00000000 0001a0d2 2**0
  25. CONTENTS, READONLY, DEBUGGING, OCTETS
  26. 11 .debug_abbrev 000062fd 00000000 00000000 0004e188 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_aranges 000024e0 00000000 00000000 00054488 2**3
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_macro 0003f37d 00000000 00000000 00056968 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_line 000307a6 00000000 00000000 00095ce5 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_str 00187dfb 00000000 00000000 000c648b 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .comment 00000043 00000000 00000000 0024e286 2**0
  37. CONTENTS, READONLY
  38. 17 .debug_rnglists 00001c67 00000000 00000000 0024e2c9 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_frame 0000a318 00000000 00000000 0024ff30 2**2
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .debug_line_str 00000066 00000000 00000000 0025a248 2**0
  43. CONTENTS, READONLY, DEBUGGING, OCTETS
  44. Disassembly of section .text:
  45. 080002a0 <__do_global_dtors_aux>:
  46. 80002a0: b510 push {r4, lr}
  47. 80002a2: 4c05 ldr r4, [pc, #20] @ (80002b8 <__do_global_dtors_aux+0x18>)
  48. 80002a4: 7823 ldrb r3, [r4, #0]
  49. 80002a6: b933 cbnz r3, 80002b6 <__do_global_dtors_aux+0x16>
  50. 80002a8: 4b04 ldr r3, [pc, #16] @ (80002bc <__do_global_dtors_aux+0x1c>)
  51. 80002aa: b113 cbz r3, 80002b2 <__do_global_dtors_aux+0x12>
  52. 80002ac: 4804 ldr r0, [pc, #16] @ (80002c0 <__do_global_dtors_aux+0x20>)
  53. 80002ae: f3af 8000 nop.w
  54. 80002b2: 2301 movs r3, #1
  55. 80002b4: 7023 strb r3, [r4, #0]
  56. 80002b6: bd10 pop {r4, pc}
  57. 80002b8: 240000c0 .word 0x240000c0
  58. 80002bc: 00000000 .word 0x00000000
  59. 80002c0: 080188b0 .word 0x080188b0
  60. 080002c4 <frame_dummy>:
  61. 80002c4: b508 push {r3, lr}
  62. 80002c6: 4b03 ldr r3, [pc, #12] @ (80002d4 <frame_dummy+0x10>)
  63. 80002c8: b11b cbz r3, 80002d2 <frame_dummy+0xe>
  64. 80002ca: 4903 ldr r1, [pc, #12] @ (80002d8 <frame_dummy+0x14>)
  65. 80002cc: 4803 ldr r0, [pc, #12] @ (80002dc <frame_dummy+0x18>)
  66. 80002ce: f3af 8000 nop.w
  67. 80002d2: bd08 pop {r3, pc}
  68. 80002d4: 00000000 .word 0x00000000
  69. 80002d8: 240000c4 .word 0x240000c4
  70. 80002dc: 080188b0 .word 0x080188b0
  71. 080002e0 <memchr>:
  72. 80002e0: f001 01ff and.w r1, r1, #255 @ 0xff
  73. 80002e4: 2a10 cmp r2, #16
  74. 80002e6: db2b blt.n 8000340 <memchr+0x60>
  75. 80002e8: f010 0f07 tst.w r0, #7
  76. 80002ec: d008 beq.n 8000300 <memchr+0x20>
  77. 80002ee: f810 3b01 ldrb.w r3, [r0], #1
  78. 80002f2: 3a01 subs r2, #1
  79. 80002f4: 428b cmp r3, r1
  80. 80002f6: d02d beq.n 8000354 <memchr+0x74>
  81. 80002f8: f010 0f07 tst.w r0, #7
  82. 80002fc: b342 cbz r2, 8000350 <memchr+0x70>
  83. 80002fe: d1f6 bne.n 80002ee <memchr+0xe>
  84. 8000300: b4f0 push {r4, r5, r6, r7}
  85. 8000302: ea41 2101 orr.w r1, r1, r1, lsl #8
  86. 8000306: ea41 4101 orr.w r1, r1, r1, lsl #16
  87. 800030a: f022 0407 bic.w r4, r2, #7
  88. 800030e: f07f 0700 mvns.w r7, #0
  89. 8000312: 2300 movs r3, #0
  90. 8000314: e8f0 5602 ldrd r5, r6, [r0], #8
  91. 8000318: 3c08 subs r4, #8
  92. 800031a: ea85 0501 eor.w r5, r5, r1
  93. 800031e: ea86 0601 eor.w r6, r6, r1
  94. 8000322: fa85 f547 uadd8 r5, r5, r7
  95. 8000326: faa3 f587 sel r5, r3, r7
  96. 800032a: fa86 f647 uadd8 r6, r6, r7
  97. 800032e: faa5 f687 sel r6, r5, r7
  98. 8000332: b98e cbnz r6, 8000358 <memchr+0x78>
  99. 8000334: d1ee bne.n 8000314 <memchr+0x34>
  100. 8000336: bcf0 pop {r4, r5, r6, r7}
  101. 8000338: f001 01ff and.w r1, r1, #255 @ 0xff
  102. 800033c: f002 0207 and.w r2, r2, #7
  103. 8000340: b132 cbz r2, 8000350 <memchr+0x70>
  104. 8000342: f810 3b01 ldrb.w r3, [r0], #1
  105. 8000346: 3a01 subs r2, #1
  106. 8000348: ea83 0301 eor.w r3, r3, r1
  107. 800034c: b113 cbz r3, 8000354 <memchr+0x74>
  108. 800034e: d1f8 bne.n 8000342 <memchr+0x62>
  109. 8000350: 2000 movs r0, #0
  110. 8000352: 4770 bx lr
  111. 8000354: 3801 subs r0, #1
  112. 8000356: 4770 bx lr
  113. 8000358: 2d00 cmp r5, #0
  114. 800035a: bf06 itte eq
  115. 800035c: 4635 moveq r5, r6
  116. 800035e: 3803 subeq r0, #3
  117. 8000360: 3807 subne r0, #7
  118. 8000362: f015 0f01 tst.w r5, #1
  119. 8000366: d107 bne.n 8000378 <memchr+0x98>
  120. 8000368: 3001 adds r0, #1
  121. 800036a: f415 7f80 tst.w r5, #256 @ 0x100
  122. 800036e: bf02 ittt eq
  123. 8000370: 3001 addeq r0, #1
  124. 8000372: f415 3fc0 tsteq.w r5, #98304 @ 0x18000
  125. 8000376: 3001 addeq r0, #1
  126. 8000378: bcf0 pop {r4, r5, r6, r7}
  127. 800037a: 3801 subs r0, #1
  128. 800037c: 4770 bx lr
  129. 800037e: bf00 nop
  130. 08000380 <__aeabi_uldivmod>:
  131. 8000380: b953 cbnz r3, 8000398 <__aeabi_uldivmod+0x18>
  132. 8000382: b94a cbnz r2, 8000398 <__aeabi_uldivmod+0x18>
  133. 8000384: 2900 cmp r1, #0
  134. 8000386: bf08 it eq
  135. 8000388: 2800 cmpeq r0, #0
  136. 800038a: bf1c itt ne
  137. 800038c: f04f 31ff movne.w r1, #4294967295 @ 0xffffffff
  138. 8000390: f04f 30ff movne.w r0, #4294967295 @ 0xffffffff
  139. 8000394: f000 b96a b.w 800066c <__aeabi_idiv0>
  140. 8000398: f1ad 0c08 sub.w ip, sp, #8
  141. 800039c: e96d ce04 strd ip, lr, [sp, #-16]!
  142. 80003a0: f000 f806 bl 80003b0 <__udivmoddi4>
  143. 80003a4: f8dd e004 ldr.w lr, [sp, #4]
  144. 80003a8: e9dd 2302 ldrd r2, r3, [sp, #8]
  145. 80003ac: b004 add sp, #16
  146. 80003ae: 4770 bx lr
  147. 080003b0 <__udivmoddi4>:
  148. 80003b0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  149. 80003b4: 9d08 ldr r5, [sp, #32]
  150. 80003b6: 460c mov r4, r1
  151. 80003b8: 2b00 cmp r3, #0
  152. 80003ba: d14e bne.n 800045a <__udivmoddi4+0xaa>
  153. 80003bc: 4694 mov ip, r2
  154. 80003be: 458c cmp ip, r1
  155. 80003c0: 4686 mov lr, r0
  156. 80003c2: fab2 f282 clz r2, r2
  157. 80003c6: d962 bls.n 800048e <__udivmoddi4+0xde>
  158. 80003c8: b14a cbz r2, 80003de <__udivmoddi4+0x2e>
  159. 80003ca: f1c2 0320 rsb r3, r2, #32
  160. 80003ce: 4091 lsls r1, r2
  161. 80003d0: fa20 f303 lsr.w r3, r0, r3
  162. 80003d4: fa0c fc02 lsl.w ip, ip, r2
  163. 80003d8: 4319 orrs r1, r3
  164. 80003da: fa00 fe02 lsl.w lr, r0, r2
  165. 80003de: ea4f 471c mov.w r7, ip, lsr #16
  166. 80003e2: fa1f f68c uxth.w r6, ip
  167. 80003e6: fbb1 f4f7 udiv r4, r1, r7
  168. 80003ea: ea4f 431e mov.w r3, lr, lsr #16
  169. 80003ee: fb07 1114 mls r1, r7, r4, r1
  170. 80003f2: ea43 4301 orr.w r3, r3, r1, lsl #16
  171. 80003f6: fb04 f106 mul.w r1, r4, r6
  172. 80003fa: 4299 cmp r1, r3
  173. 80003fc: d90a bls.n 8000414 <__udivmoddi4+0x64>
  174. 80003fe: eb1c 0303 adds.w r3, ip, r3
  175. 8000402: f104 30ff add.w r0, r4, #4294967295 @ 0xffffffff
  176. 8000406: f080 8112 bcs.w 800062e <__udivmoddi4+0x27e>
  177. 800040a: 4299 cmp r1, r3
  178. 800040c: f240 810f bls.w 800062e <__udivmoddi4+0x27e>
  179. 8000410: 3c02 subs r4, #2
  180. 8000412: 4463 add r3, ip
  181. 8000414: 1a59 subs r1, r3, r1
  182. 8000416: fa1f f38e uxth.w r3, lr
  183. 800041a: fbb1 f0f7 udiv r0, r1, r7
  184. 800041e: fb07 1110 mls r1, r7, r0, r1
  185. 8000422: ea43 4301 orr.w r3, r3, r1, lsl #16
  186. 8000426: fb00 f606 mul.w r6, r0, r6
  187. 800042a: 429e cmp r6, r3
  188. 800042c: d90a bls.n 8000444 <__udivmoddi4+0x94>
  189. 800042e: eb1c 0303 adds.w r3, ip, r3
  190. 8000432: f100 31ff add.w r1, r0, #4294967295 @ 0xffffffff
  191. 8000436: f080 80fc bcs.w 8000632 <__udivmoddi4+0x282>
  192. 800043a: 429e cmp r6, r3
  193. 800043c: f240 80f9 bls.w 8000632 <__udivmoddi4+0x282>
  194. 8000440: 4463 add r3, ip
  195. 8000442: 3802 subs r0, #2
  196. 8000444: 1b9b subs r3, r3, r6
  197. 8000446: ea40 4004 orr.w r0, r0, r4, lsl #16
  198. 800044a: 2100 movs r1, #0
  199. 800044c: b11d cbz r5, 8000456 <__udivmoddi4+0xa6>
  200. 800044e: 40d3 lsrs r3, r2
  201. 8000450: 2200 movs r2, #0
  202. 8000452: e9c5 3200 strd r3, r2, [r5]
  203. 8000456: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  204. 800045a: 428b cmp r3, r1
  205. 800045c: d905 bls.n 800046a <__udivmoddi4+0xba>
  206. 800045e: b10d cbz r5, 8000464 <__udivmoddi4+0xb4>
  207. 8000460: e9c5 0100 strd r0, r1, [r5]
  208. 8000464: 2100 movs r1, #0
  209. 8000466: 4608 mov r0, r1
  210. 8000468: e7f5 b.n 8000456 <__udivmoddi4+0xa6>
  211. 800046a: fab3 f183 clz r1, r3
  212. 800046e: 2900 cmp r1, #0
  213. 8000470: d146 bne.n 8000500 <__udivmoddi4+0x150>
  214. 8000472: 42a3 cmp r3, r4
  215. 8000474: d302 bcc.n 800047c <__udivmoddi4+0xcc>
  216. 8000476: 4290 cmp r0, r2
  217. 8000478: f0c0 80f0 bcc.w 800065c <__udivmoddi4+0x2ac>
  218. 800047c: 1a86 subs r6, r0, r2
  219. 800047e: eb64 0303 sbc.w r3, r4, r3
  220. 8000482: 2001 movs r0, #1
  221. 8000484: 2d00 cmp r5, #0
  222. 8000486: d0e6 beq.n 8000456 <__udivmoddi4+0xa6>
  223. 8000488: e9c5 6300 strd r6, r3, [r5]
  224. 800048c: e7e3 b.n 8000456 <__udivmoddi4+0xa6>
  225. 800048e: 2a00 cmp r2, #0
  226. 8000490: f040 8090 bne.w 80005b4 <__udivmoddi4+0x204>
  227. 8000494: eba1 040c sub.w r4, r1, ip
  228. 8000498: ea4f 481c mov.w r8, ip, lsr #16
  229. 800049c: fa1f f78c uxth.w r7, ip
  230. 80004a0: 2101 movs r1, #1
  231. 80004a2: fbb4 f6f8 udiv r6, r4, r8
  232. 80004a6: ea4f 431e mov.w r3, lr, lsr #16
  233. 80004aa: fb08 4416 mls r4, r8, r6, r4
  234. 80004ae: ea43 4304 orr.w r3, r3, r4, lsl #16
  235. 80004b2: fb07 f006 mul.w r0, r7, r6
  236. 80004b6: 4298 cmp r0, r3
  237. 80004b8: d908 bls.n 80004cc <__udivmoddi4+0x11c>
  238. 80004ba: eb1c 0303 adds.w r3, ip, r3
  239. 80004be: f106 34ff add.w r4, r6, #4294967295 @ 0xffffffff
  240. 80004c2: d202 bcs.n 80004ca <__udivmoddi4+0x11a>
  241. 80004c4: 4298 cmp r0, r3
  242. 80004c6: f200 80cd bhi.w 8000664 <__udivmoddi4+0x2b4>
  243. 80004ca: 4626 mov r6, r4
  244. 80004cc: 1a1c subs r4, r3, r0
  245. 80004ce: fa1f f38e uxth.w r3, lr
  246. 80004d2: fbb4 f0f8 udiv r0, r4, r8
  247. 80004d6: fb08 4410 mls r4, r8, r0, r4
  248. 80004da: ea43 4304 orr.w r3, r3, r4, lsl #16
  249. 80004de: fb00 f707 mul.w r7, r0, r7
  250. 80004e2: 429f cmp r7, r3
  251. 80004e4: d908 bls.n 80004f8 <__udivmoddi4+0x148>
  252. 80004e6: eb1c 0303 adds.w r3, ip, r3
  253. 80004ea: f100 34ff add.w r4, r0, #4294967295 @ 0xffffffff
  254. 80004ee: d202 bcs.n 80004f6 <__udivmoddi4+0x146>
  255. 80004f0: 429f cmp r7, r3
  256. 80004f2: f200 80b0 bhi.w 8000656 <__udivmoddi4+0x2a6>
  257. 80004f6: 4620 mov r0, r4
  258. 80004f8: 1bdb subs r3, r3, r7
  259. 80004fa: ea40 4006 orr.w r0, r0, r6, lsl #16
  260. 80004fe: e7a5 b.n 800044c <__udivmoddi4+0x9c>
  261. 8000500: f1c1 0620 rsb r6, r1, #32
  262. 8000504: 408b lsls r3, r1
  263. 8000506: fa22 f706 lsr.w r7, r2, r6
  264. 800050a: 431f orrs r7, r3
  265. 800050c: fa20 fc06 lsr.w ip, r0, r6
  266. 8000510: fa04 f301 lsl.w r3, r4, r1
  267. 8000514: ea43 030c orr.w r3, r3, ip
  268. 8000518: 40f4 lsrs r4, r6
  269. 800051a: fa00 f801 lsl.w r8, r0, r1
  270. 800051e: 0c38 lsrs r0, r7, #16
  271. 8000520: ea4f 4913 mov.w r9, r3, lsr #16
  272. 8000524: fbb4 fef0 udiv lr, r4, r0
  273. 8000528: fa1f fc87 uxth.w ip, r7
  274. 800052c: fb00 441e mls r4, r0, lr, r4
  275. 8000530: ea49 4404 orr.w r4, r9, r4, lsl #16
  276. 8000534: fb0e f90c mul.w r9, lr, ip
  277. 8000538: 45a1 cmp r9, r4
  278. 800053a: fa02 f201 lsl.w r2, r2, r1
  279. 800053e: d90a bls.n 8000556 <__udivmoddi4+0x1a6>
  280. 8000540: 193c adds r4, r7, r4
  281. 8000542: f10e 3aff add.w sl, lr, #4294967295 @ 0xffffffff
  282. 8000546: f080 8084 bcs.w 8000652 <__udivmoddi4+0x2a2>
  283. 800054a: 45a1 cmp r9, r4
  284. 800054c: f240 8081 bls.w 8000652 <__udivmoddi4+0x2a2>
  285. 8000550: f1ae 0e02 sub.w lr, lr, #2
  286. 8000554: 443c add r4, r7
  287. 8000556: eba4 0409 sub.w r4, r4, r9
  288. 800055a: fa1f f983 uxth.w r9, r3
  289. 800055e: fbb4 f3f0 udiv r3, r4, r0
  290. 8000562: fb00 4413 mls r4, r0, r3, r4
  291. 8000566: ea49 4404 orr.w r4, r9, r4, lsl #16
  292. 800056a: fb03 fc0c mul.w ip, r3, ip
  293. 800056e: 45a4 cmp ip, r4
  294. 8000570: d907 bls.n 8000582 <__udivmoddi4+0x1d2>
  295. 8000572: 193c adds r4, r7, r4
  296. 8000574: f103 30ff add.w r0, r3, #4294967295 @ 0xffffffff
  297. 8000578: d267 bcs.n 800064a <__udivmoddi4+0x29a>
  298. 800057a: 45a4 cmp ip, r4
  299. 800057c: d965 bls.n 800064a <__udivmoddi4+0x29a>
  300. 800057e: 3b02 subs r3, #2
  301. 8000580: 443c add r4, r7
  302. 8000582: ea43 400e orr.w r0, r3, lr, lsl #16
  303. 8000586: fba0 9302 umull r9, r3, r0, r2
  304. 800058a: eba4 040c sub.w r4, r4, ip
  305. 800058e: 429c cmp r4, r3
  306. 8000590: 46ce mov lr, r9
  307. 8000592: 469c mov ip, r3
  308. 8000594: d351 bcc.n 800063a <__udivmoddi4+0x28a>
  309. 8000596: d04e beq.n 8000636 <__udivmoddi4+0x286>
  310. 8000598: b155 cbz r5, 80005b0 <__udivmoddi4+0x200>
  311. 800059a: ebb8 030e subs.w r3, r8, lr
  312. 800059e: eb64 040c sbc.w r4, r4, ip
  313. 80005a2: fa04 f606 lsl.w r6, r4, r6
  314. 80005a6: 40cb lsrs r3, r1
  315. 80005a8: 431e orrs r6, r3
  316. 80005aa: 40cc lsrs r4, r1
  317. 80005ac: e9c5 6400 strd r6, r4, [r5]
  318. 80005b0: 2100 movs r1, #0
  319. 80005b2: e750 b.n 8000456 <__udivmoddi4+0xa6>
  320. 80005b4: f1c2 0320 rsb r3, r2, #32
  321. 80005b8: fa20 f103 lsr.w r1, r0, r3
  322. 80005bc: fa0c fc02 lsl.w ip, ip, r2
  323. 80005c0: fa24 f303 lsr.w r3, r4, r3
  324. 80005c4: 4094 lsls r4, r2
  325. 80005c6: 430c orrs r4, r1
  326. 80005c8: ea4f 481c mov.w r8, ip, lsr #16
  327. 80005cc: fa00 fe02 lsl.w lr, r0, r2
  328. 80005d0: fa1f f78c uxth.w r7, ip
  329. 80005d4: fbb3 f0f8 udiv r0, r3, r8
  330. 80005d8: fb08 3110 mls r1, r8, r0, r3
  331. 80005dc: 0c23 lsrs r3, r4, #16
  332. 80005de: ea43 4301 orr.w r3, r3, r1, lsl #16
  333. 80005e2: fb00 f107 mul.w r1, r0, r7
  334. 80005e6: 4299 cmp r1, r3
  335. 80005e8: d908 bls.n 80005fc <__udivmoddi4+0x24c>
  336. 80005ea: eb1c 0303 adds.w r3, ip, r3
  337. 80005ee: f100 36ff add.w r6, r0, #4294967295 @ 0xffffffff
  338. 80005f2: d22c bcs.n 800064e <__udivmoddi4+0x29e>
  339. 80005f4: 4299 cmp r1, r3
  340. 80005f6: d92a bls.n 800064e <__udivmoddi4+0x29e>
  341. 80005f8: 3802 subs r0, #2
  342. 80005fa: 4463 add r3, ip
  343. 80005fc: 1a5b subs r3, r3, r1
  344. 80005fe: b2a4 uxth r4, r4
  345. 8000600: fbb3 f1f8 udiv r1, r3, r8
  346. 8000604: fb08 3311 mls r3, r8, r1, r3
  347. 8000608: ea44 4403 orr.w r4, r4, r3, lsl #16
  348. 800060c: fb01 f307 mul.w r3, r1, r7
  349. 8000610: 42a3 cmp r3, r4
  350. 8000612: d908 bls.n 8000626 <__udivmoddi4+0x276>
  351. 8000614: eb1c 0404 adds.w r4, ip, r4
  352. 8000618: f101 36ff add.w r6, r1, #4294967295 @ 0xffffffff
  353. 800061c: d213 bcs.n 8000646 <__udivmoddi4+0x296>
  354. 800061e: 42a3 cmp r3, r4
  355. 8000620: d911 bls.n 8000646 <__udivmoddi4+0x296>
  356. 8000622: 3902 subs r1, #2
  357. 8000624: 4464 add r4, ip
  358. 8000626: 1ae4 subs r4, r4, r3
  359. 8000628: ea41 4100 orr.w r1, r1, r0, lsl #16
  360. 800062c: e739 b.n 80004a2 <__udivmoddi4+0xf2>
  361. 800062e: 4604 mov r4, r0
  362. 8000630: e6f0 b.n 8000414 <__udivmoddi4+0x64>
  363. 8000632: 4608 mov r0, r1
  364. 8000634: e706 b.n 8000444 <__udivmoddi4+0x94>
  365. 8000636: 45c8 cmp r8, r9
  366. 8000638: d2ae bcs.n 8000598 <__udivmoddi4+0x1e8>
  367. 800063a: ebb9 0e02 subs.w lr, r9, r2
  368. 800063e: eb63 0c07 sbc.w ip, r3, r7
  369. 8000642: 3801 subs r0, #1
  370. 8000644: e7a8 b.n 8000598 <__udivmoddi4+0x1e8>
  371. 8000646: 4631 mov r1, r6
  372. 8000648: e7ed b.n 8000626 <__udivmoddi4+0x276>
  373. 800064a: 4603 mov r3, r0
  374. 800064c: e799 b.n 8000582 <__udivmoddi4+0x1d2>
  375. 800064e: 4630 mov r0, r6
  376. 8000650: e7d4 b.n 80005fc <__udivmoddi4+0x24c>
  377. 8000652: 46d6 mov lr, sl
  378. 8000654: e77f b.n 8000556 <__udivmoddi4+0x1a6>
  379. 8000656: 4463 add r3, ip
  380. 8000658: 3802 subs r0, #2
  381. 800065a: e74d b.n 80004f8 <__udivmoddi4+0x148>
  382. 800065c: 4606 mov r6, r0
  383. 800065e: 4623 mov r3, r4
  384. 8000660: 4608 mov r0, r1
  385. 8000662: e70f b.n 8000484 <__udivmoddi4+0xd4>
  386. 8000664: 3e02 subs r6, #2
  387. 8000666: 4463 add r3, ip
  388. 8000668: e730 b.n 80004cc <__udivmoddi4+0x11c>
  389. 800066a: bf00 nop
  390. 0800066c <__aeabi_idiv0>:
  391. 800066c: 4770 bx lr
  392. 800066e: bf00 nop
  393. 08000670 <vApplicationStackOverflowHook>:
  394. /* Hook prototypes */
  395. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName);
  396. /* USER CODE BEGIN 4 */
  397. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName)
  398. {
  399. 8000670: b480 push {r7}
  400. 8000672: b083 sub sp, #12
  401. 8000674: af00 add r7, sp, #0
  402. 8000676: 6078 str r0, [r7, #4]
  403. 8000678: 6039 str r1, [r7, #0]
  404. /* Run time stack overflow checking is performed if
  405. configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is
  406. called if a stack overflow is detected. */
  407. }
  408. 800067a: bf00 nop
  409. 800067c: 370c adds r7, #12
  410. 800067e: 46bd mov sp, r7
  411. 8000680: f85d 7b04 ldr.w r7, [sp], #4
  412. 8000684: 4770 bx lr
  413. ...
  414. 08000688 <__NVIC_SystemReset>:
  415. /**
  416. \brief System Reset
  417. \details Initiates a system reset request to reset the MCU.
  418. */
  419. __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void)
  420. {
  421. 8000688: b480 push {r7}
  422. 800068a: af00 add r7, sp, #0
  423. \details Acts as a special kind of Data Memory Barrier.
  424. It completes when all explicit memory accesses before this instruction complete.
  425. */
  426. __STATIC_FORCEINLINE void __DSB(void)
  427. {
  428. __ASM volatile ("dsb 0xF":::"memory");
  429. 800068c: f3bf 8f4f dsb sy
  430. }
  431. 8000690: bf00 nop
  432. __DSB(); /* Ensure all outstanding memory accesses included
  433. buffered write are completed before reset */
  434. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  435. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  436. 8000692: 4b06 ldr r3, [pc, #24] @ (80006ac <__NVIC_SystemReset+0x24>)
  437. 8000694: 68db ldr r3, [r3, #12]
  438. 8000696: f403 62e0 and.w r2, r3, #1792 @ 0x700
  439. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  440. 800069a: 4904 ldr r1, [pc, #16] @ (80006ac <__NVIC_SystemReset+0x24>)
  441. 800069c: 4b04 ldr r3, [pc, #16] @ (80006b0 <__NVIC_SystemReset+0x28>)
  442. 800069e: 4313 orrs r3, r2
  443. 80006a0: 60cb str r3, [r1, #12]
  444. __ASM volatile ("dsb 0xF":::"memory");
  445. 80006a2: f3bf 8f4f dsb sy
  446. }
  447. 80006a6: bf00 nop
  448. SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */
  449. __DSB(); /* Ensure completion of memory access */
  450. for(;;) /* wait until reset */
  451. {
  452. __NOP();
  453. 80006a8: bf00 nop
  454. 80006aa: e7fd b.n 80006a8 <__NVIC_SystemReset+0x20>
  455. 80006ac: e000ed00 .word 0xe000ed00
  456. 80006b0: 05fa0004 .word 0x05fa0004
  457. 080006b4 <__io_putchar>:
  458. /* USER CODE END PFP */
  459. /* Private user code ---------------------------------------------------------*/
  460. /* USER CODE BEGIN 0 */
  461. int __io_putchar(int ch)
  462. {
  463. 80006b4: b580 push {r7, lr}
  464. 80006b6: b082 sub sp, #8
  465. 80006b8: af00 add r7, sp, #0
  466. 80006ba: 6078 str r0, [r7, #4]
  467. #if UART_TASK_LOGS
  468. HAL_UART_Transmit(&huart8, (uint8_t *)&ch, 1, 0xFFFF); // Use UART8 as debug interface
  469. 80006bc: 1d39 adds r1, r7, #4
  470. 80006be: f64f 73ff movw r3, #65535 @ 0xffff
  471. 80006c2: 2201 movs r2, #1
  472. 80006c4: 4803 ldr r0, [pc, #12] @ (80006d4 <__io_putchar+0x20>)
  473. 80006c6: f010 f97b bl 80109c0 <HAL_UART_Transmit>
  474. // ITM_SendChar(ch); // Use SWV as debug interface
  475. #endif
  476. return ch;
  477. 80006ca: 687b ldr r3, [r7, #4]
  478. }
  479. 80006cc: 4618 mov r0, r3
  480. 80006ce: 3708 adds r7, #8
  481. 80006d0: 46bd mov sp, r7
  482. 80006d2: bd80 pop {r7, pc}
  483. 80006d4: 2400057c .word 0x2400057c
  484. 080006d8 <HAL_GPIO_EXTI_Callback>:
  485. void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
  486. {
  487. 80006d8: b580 push {r7, lr}
  488. 80006da: b084 sub sp, #16
  489. 80006dc: af00 add r7, sp, #0
  490. 80006de: 4603 mov r3, r0
  491. 80006e0: 80fb strh r3, [r7, #6]
  492. LimiterSwitchData limiterSwitchData = { 0 };
  493. 80006e2: 2300 movs r3, #0
  494. 80006e4: 60fb str r3, [r7, #12]
  495. limiterSwitchData.gpioPin = GPIO_Pin;
  496. 80006e6: 88fb ldrh r3, [r7, #6]
  497. 80006e8: 81bb strh r3, [r7, #12]
  498. limiterSwitchData.pinState = HAL_GPIO_ReadPin(GPIOD, GPIO_Pin);
  499. 80006ea: 88fb ldrh r3, [r7, #6]
  500. 80006ec: 4619 mov r1, r3
  501. 80006ee: 4808 ldr r0, [pc, #32] @ (8000710 <HAL_GPIO_EXTI_Callback+0x38>)
  502. 80006f0: f00a fa2c bl 800ab4c <HAL_GPIO_ReadPin>
  503. 80006f4: 4603 mov r3, r0
  504. 80006f6: 73bb strb r3, [r7, #14]
  505. osMessageQueuePut(limiterSwitchDataQueue, &limiterSwitchData, 0, 0);
  506. 80006f8: 4b06 ldr r3, [pc, #24] @ (8000714 <HAL_GPIO_EXTI_Callback+0x3c>)
  507. 80006fa: 6818 ldr r0, [r3, #0]
  508. 80006fc: f107 010c add.w r1, r7, #12
  509. 8000700: 2300 movs r3, #0
  510. 8000702: 2200 movs r2, #0
  511. 8000704: f013 fb12 bl 8013d2c <osMessageQueuePut>
  512. }
  513. 8000708: bf00 nop
  514. 800070a: 3710 adds r7, #16
  515. 800070c: 46bd mov sp, r7
  516. 800070e: bd80 pop {r7, pc}
  517. 8000710: 58020c00 .word 0x58020c00
  518. 8000714: 240007d4 .word 0x240007d4
  519. 08000718 <main>:
  520. /**
  521. * @brief The application entry point.
  522. * @retval int
  523. */
  524. int main(void)
  525. {
  526. 8000718: b580 push {r7, lr}
  527. 800071a: b084 sub sp, #16
  528. 800071c: af00 add r7, sp, #0
  529. /* USER CODE BEGIN 1 */
  530. /* USER CODE END 1 */
  531. /* MPU Configuration--------------------------------------------------------*/
  532. MPU_Config();
  533. 800071e: f001 fadd bl 8001cdc <MPU_Config>
  534. \details Turns on I-Cache
  535. */
  536. __STATIC_FORCEINLINE void SCB_EnableICache (void)
  537. {
  538. #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)
  539. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  540. 8000722: 4b5e ldr r3, [pc, #376] @ (800089c <main+0x184>)
  541. 8000724: 695b ldr r3, [r3, #20]
  542. 8000726: f403 3300 and.w r3, r3, #131072 @ 0x20000
  543. 800072a: 2b00 cmp r3, #0
  544. 800072c: d11b bne.n 8000766 <main+0x4e>
  545. __ASM volatile ("dsb 0xF":::"memory");
  546. 800072e: f3bf 8f4f dsb sy
  547. }
  548. 8000732: bf00 nop
  549. __ASM volatile ("isb 0xF":::"memory");
  550. 8000734: f3bf 8f6f isb sy
  551. }
  552. 8000738: bf00 nop
  553. __DSB();
  554. __ISB();
  555. SCB->ICIALLU = 0UL; /* invalidate I-Cache */
  556. 800073a: 4b58 ldr r3, [pc, #352] @ (800089c <main+0x184>)
  557. 800073c: 2200 movs r2, #0
  558. 800073e: f8c3 2250 str.w r2, [r3, #592] @ 0x250
  559. __ASM volatile ("dsb 0xF":::"memory");
  560. 8000742: f3bf 8f4f dsb sy
  561. }
  562. 8000746: bf00 nop
  563. __ASM volatile ("isb 0xF":::"memory");
  564. 8000748: f3bf 8f6f isb sy
  565. }
  566. 800074c: bf00 nop
  567. __DSB();
  568. __ISB();
  569. SCB->CCR |= (uint32_t)SCB_CCR_IC_Msk; /* enable I-Cache */
  570. 800074e: 4b53 ldr r3, [pc, #332] @ (800089c <main+0x184>)
  571. 8000750: 695b ldr r3, [r3, #20]
  572. 8000752: 4a52 ldr r2, [pc, #328] @ (800089c <main+0x184>)
  573. 8000754: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  574. 8000758: 6153 str r3, [r2, #20]
  575. __ASM volatile ("dsb 0xF":::"memory");
  576. 800075a: f3bf 8f4f dsb sy
  577. }
  578. 800075e: bf00 nop
  579. __ASM volatile ("isb 0xF":::"memory");
  580. 8000760: f3bf 8f6f isb sy
  581. }
  582. 8000764: e000 b.n 8000768 <main+0x50>
  583. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  584. 8000766: bf00 nop
  585. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  586. uint32_t ccsidr;
  587. uint32_t sets;
  588. uint32_t ways;
  589. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  590. 8000768: 4b4c ldr r3, [pc, #304] @ (800089c <main+0x184>)
  591. 800076a: 695b ldr r3, [r3, #20]
  592. 800076c: f403 3380 and.w r3, r3, #65536 @ 0x10000
  593. 8000770: 2b00 cmp r3, #0
  594. 8000772: d138 bne.n 80007e6 <main+0xce>
  595. SCB->CSSELR = 0U; /* select Level 1 data cache */
  596. 8000774: 4b49 ldr r3, [pc, #292] @ (800089c <main+0x184>)
  597. 8000776: 2200 movs r2, #0
  598. 8000778: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  599. __ASM volatile ("dsb 0xF":::"memory");
  600. 800077c: f3bf 8f4f dsb sy
  601. }
  602. 8000780: bf00 nop
  603. __DSB();
  604. ccsidr = SCB->CCSIDR;
  605. 8000782: 4b46 ldr r3, [pc, #280] @ (800089c <main+0x184>)
  606. 8000784: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  607. 8000788: 60fb str r3, [r7, #12]
  608. /* invalidate D-Cache */
  609. sets = (uint32_t)(CCSIDR_SETS(ccsidr));
  610. 800078a: 68fb ldr r3, [r7, #12]
  611. 800078c: 0b5b lsrs r3, r3, #13
  612. 800078e: f3c3 030e ubfx r3, r3, #0, #15
  613. 8000792: 60bb str r3, [r7, #8]
  614. do {
  615. ways = (uint32_t)(CCSIDR_WAYS(ccsidr));
  616. 8000794: 68fb ldr r3, [r7, #12]
  617. 8000796: 08db lsrs r3, r3, #3
  618. 8000798: f3c3 0309 ubfx r3, r3, #0, #10
  619. 800079c: 607b str r3, [r7, #4]
  620. do {
  621. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  622. 800079e: 68bb ldr r3, [r7, #8]
  623. 80007a0: 015a lsls r2, r3, #5
  624. 80007a2: f643 73e0 movw r3, #16352 @ 0x3fe0
  625. 80007a6: 4013 ands r3, r2
  626. ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) );
  627. 80007a8: 687a ldr r2, [r7, #4]
  628. 80007aa: 0792 lsls r2, r2, #30
  629. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  630. 80007ac: 493b ldr r1, [pc, #236] @ (800089c <main+0x184>)
  631. 80007ae: 4313 orrs r3, r2
  632. 80007b0: f8c1 3260 str.w r3, [r1, #608] @ 0x260
  633. #if defined ( __CC_ARM )
  634. __schedule_barrier();
  635. #endif
  636. } while (ways-- != 0U);
  637. 80007b4: 687b ldr r3, [r7, #4]
  638. 80007b6: 1e5a subs r2, r3, #1
  639. 80007b8: 607a str r2, [r7, #4]
  640. 80007ba: 2b00 cmp r3, #0
  641. 80007bc: d1ef bne.n 800079e <main+0x86>
  642. } while(sets-- != 0U);
  643. 80007be: 68bb ldr r3, [r7, #8]
  644. 80007c0: 1e5a subs r2, r3, #1
  645. 80007c2: 60ba str r2, [r7, #8]
  646. 80007c4: 2b00 cmp r3, #0
  647. 80007c6: d1e5 bne.n 8000794 <main+0x7c>
  648. __ASM volatile ("dsb 0xF":::"memory");
  649. 80007c8: f3bf 8f4f dsb sy
  650. }
  651. 80007cc: bf00 nop
  652. __DSB();
  653. SCB->CCR |= (uint32_t)SCB_CCR_DC_Msk; /* enable D-Cache */
  654. 80007ce: 4b33 ldr r3, [pc, #204] @ (800089c <main+0x184>)
  655. 80007d0: 695b ldr r3, [r3, #20]
  656. 80007d2: 4a32 ldr r2, [pc, #200] @ (800089c <main+0x184>)
  657. 80007d4: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  658. 80007d8: 6153 str r3, [r2, #20]
  659. __ASM volatile ("dsb 0xF":::"memory");
  660. 80007da: f3bf 8f4f dsb sy
  661. }
  662. 80007de: bf00 nop
  663. __ASM volatile ("isb 0xF":::"memory");
  664. 80007e0: f3bf 8f6f isb sy
  665. }
  666. 80007e4: e000 b.n 80007e8 <main+0xd0>
  667. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  668. 80007e6: bf00 nop
  669. SCB_EnableDCache();
  670. /* MCU Configuration--------------------------------------------------------*/
  671. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  672. HAL_Init();
  673. 80007e8: f004 fdd8 bl 800539c <HAL_Init>
  674. /* USER CODE BEGIN Init */
  675. /* USER CODE END Init */
  676. /* Configure the system clock */
  677. SystemClock_Config();
  678. 80007ec: f000 f876 bl 80008dc <SystemClock_Config>
  679. /* Configure the peripherals common clocks */
  680. PeriphCommonClock_Config();
  681. 80007f0: f000 f8f0 bl 80009d4 <PeriphCommonClock_Config>
  682. /* USER CODE BEGIN SysInit */
  683. /* USER CODE END SysInit */
  684. /* Initialize all configured peripherals */
  685. MX_GPIO_Init();
  686. 80007f4: f000 ff06 bl 8001604 <MX_GPIO_Init>
  687. MX_DMA_Init();
  688. 80007f8: f000 fed4 bl 80015a4 <MX_DMA_Init>
  689. MX_RNG_Init();
  690. 80007fc: f000 fbdc bl 8000fb8 <MX_RNG_Init>
  691. MX_USART1_UART_Init();
  692. 8000800: f000 fe80 bl 8001504 <MX_USART1_UART_Init>
  693. MX_ADC1_Init();
  694. 8000804: f000 f916 bl 8000a34 <MX_ADC1_Init>
  695. MX_UART8_Init();
  696. 8000808: f000 fe30 bl 800146c <MX_UART8_Init>
  697. MX_CRC_Init();
  698. 800080c: f000 fb6e bl 8000eec <MX_CRC_Init>
  699. MX_ADC2_Init();
  700. 8000810: f000 f9fa bl 8000c08 <MX_ADC2_Init>
  701. MX_ADC3_Init();
  702. 8000814: f000 fa8c bl 8000d30 <MX_ADC3_Init>
  703. MX_TIM2_Init();
  704. 8000818: f000 fc80 bl 800111c <MX_TIM2_Init>
  705. MX_TIM1_Init();
  706. 800081c: f000 fbe2 bl 8000fe4 <MX_TIM1_Init>
  707. MX_TIM3_Init();
  708. 8000820: f000 fcfa bl 8001218 <MX_TIM3_Init>
  709. MX_DAC1_Init();
  710. 8000824: f000 fb8c bl 8000f40 <MX_DAC1_Init>
  711. MX_COMP1_Init();
  712. 8000828: f000 fb32 bl 8000e90 <MX_COMP1_Init>
  713. MX_TIM4_Init();
  714. 800082c: f000 fda0 bl 8001370 <MX_TIM4_Init>
  715. /* USER CODE BEGIN 2 */
  716. /* USER CODE END 2 */
  717. /* Init scheduler */
  718. osKernelInitialize();
  719. 8000830: f012 ff0c bl 801364c <osKernelInitialize>
  720. /* add semaphores, ... */
  721. /* USER CODE END RTOS_SEMAPHORES */
  722. /* Create the timer(s) */
  723. /* creation of debugLedTimer */
  724. debugLedTimerHandle = osTimerNew(debugLedTimerCallback, osTimerOnce, NULL, &debugLedTimer_attributes);
  725. 8000834: 4b1a ldr r3, [pc, #104] @ (80008a0 <main+0x188>)
  726. 8000836: 2200 movs r2, #0
  727. 8000838: 2100 movs r1, #0
  728. 800083a: 481a ldr r0, [pc, #104] @ (80008a4 <main+0x18c>)
  729. 800083c: f013 f814 bl 8013868 <osTimerNew>
  730. 8000840: 4603 mov r3, r0
  731. 8000842: 4a19 ldr r2, [pc, #100] @ (80008a8 <main+0x190>)
  732. 8000844: 6013 str r3, [r2, #0]
  733. /* creation of fanTimer */
  734. fanTimerHandle = osTimerNew(fanTimerCallback, osTimerOnce, NULL, &fanTimer_attributes);
  735. 8000846: 4b19 ldr r3, [pc, #100] @ (80008ac <main+0x194>)
  736. 8000848: 2200 movs r2, #0
  737. 800084a: 2100 movs r1, #0
  738. 800084c: 4818 ldr r0, [pc, #96] @ (80008b0 <main+0x198>)
  739. 800084e: f013 f80b bl 8013868 <osTimerNew>
  740. 8000852: 4603 mov r3, r0
  741. 8000854: 4a17 ldr r2, [pc, #92] @ (80008b4 <main+0x19c>)
  742. 8000856: 6013 str r3, [r2, #0]
  743. /* creation of motorXTimer */
  744. motorXTimerHandle = osTimerNew(motorXTimerCallback, osTimerPeriodic, NULL, &motorXTimer_attributes);
  745. 8000858: 4b17 ldr r3, [pc, #92] @ (80008b8 <main+0x1a0>)
  746. 800085a: 2200 movs r2, #0
  747. 800085c: 2101 movs r1, #1
  748. 800085e: 4817 ldr r0, [pc, #92] @ (80008bc <main+0x1a4>)
  749. 8000860: f013 f802 bl 8013868 <osTimerNew>
  750. 8000864: 4603 mov r3, r0
  751. 8000866: 4a16 ldr r2, [pc, #88] @ (80008c0 <main+0x1a8>)
  752. 8000868: 6013 str r3, [r2, #0]
  753. /* creation of motorYTimer */
  754. motorYTimerHandle = osTimerNew(motorYTimerCallback, osTimerPeriodic, NULL, &motorYTimer_attributes);
  755. 800086a: 4b16 ldr r3, [pc, #88] @ (80008c4 <main+0x1ac>)
  756. 800086c: 2200 movs r2, #0
  757. 800086e: 2101 movs r1, #1
  758. 8000870: 4815 ldr r0, [pc, #84] @ (80008c8 <main+0x1b0>)
  759. 8000872: f012 fff9 bl 8013868 <osTimerNew>
  760. 8000876: 4603 mov r3, r0
  761. 8000878: 4a14 ldr r2, [pc, #80] @ (80008cc <main+0x1b4>)
  762. 800087a: 6013 str r3, [r2, #0]
  763. /* add queues, ... */
  764. /* USER CODE END RTOS_QUEUES */
  765. /* Create the thread(s) */
  766. /* creation of defaultTask */
  767. defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
  768. 800087c: 4a14 ldr r2, [pc, #80] @ (80008d0 <main+0x1b8>)
  769. 800087e: 2100 movs r1, #0
  770. 8000880: 4814 ldr r0, [pc, #80] @ (80008d4 <main+0x1bc>)
  771. 8000882: f012 ff2d bl 80136e0 <osThreadNew>
  772. 8000886: 4603 mov r3, r0
  773. 8000888: 4a13 ldr r2, [pc, #76] @ (80008d8 <main+0x1c0>)
  774. 800088a: 6013 str r3, [r2, #0]
  775. /* USER CODE BEGIN RTOS_THREADS */
  776. /* add threads, ... */
  777. // Uart8TasksInit();
  778. UartTasksInit();
  779. 800088c: f003 fcdc bl 8004248 <UartTasksInit>
  780. #ifdef USER_MOCKS
  781. MockMeasurmetsTaskInit();
  782. #else
  783. MeasTasksInit();
  784. 8000890: f001 fada bl 8001e48 <MeasTasksInit>
  785. /* USER CODE BEGIN RTOS_EVENTS */
  786. /* add events, ... */
  787. /* USER CODE END RTOS_EVENTS */
  788. /* Start scheduler */
  789. osKernelStart();
  790. 8000894: f012 fefe bl 8013694 <osKernelStart>
  791. /* We should never get here as control is now taken by the scheduler */
  792. /* Infinite loop */
  793. /* USER CODE BEGIN WHILE */
  794. while (1)
  795. 8000898: bf00 nop
  796. 800089a: e7fd b.n 8000898 <main+0x180>
  797. 800089c: e000ed00 .word 0xe000ed00
  798. 80008a0: 080189e8 .word 0x080189e8
  799. 80008a4: 08001c31 .word 0x08001c31
  800. 80008a8: 240006a8 .word 0x240006a8
  801. 80008ac: 080189f8 .word 0x080189f8
  802. 80008b0: 08001c49 .word 0x08001c49
  803. 80008b4: 240006d8 .word 0x240006d8
  804. 80008b8: 08018a08 .word 0x08018a08
  805. 80008bc: 08001c65 .word 0x08001c65
  806. 80008c0: 24000708 .word 0x24000708
  807. 80008c4: 08018a18 .word 0x08018a18
  808. 80008c8: 08001ca1 .word 0x08001ca1
  809. 80008cc: 24000738 .word 0x24000738
  810. 80008d0: 080189c4 .word 0x080189c4
  811. 80008d4: 08001aa1 .word 0x08001aa1
  812. 80008d8: 240006a4 .word 0x240006a4
  813. 080008dc <SystemClock_Config>:
  814. /**
  815. * @brief System Clock Configuration
  816. * @retval None
  817. */
  818. void SystemClock_Config(void)
  819. {
  820. 80008dc: b580 push {r7, lr}
  821. 80008de: b09c sub sp, #112 @ 0x70
  822. 80008e0: af00 add r7, sp, #0
  823. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  824. 80008e2: f107 0324 add.w r3, r7, #36 @ 0x24
  825. 80008e6: 224c movs r2, #76 @ 0x4c
  826. 80008e8: 2100 movs r1, #0
  827. 80008ea: 4618 mov r0, r3
  828. 80008ec: f017 f963 bl 8017bb6 <memset>
  829. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  830. 80008f0: 1d3b adds r3, r7, #4
  831. 80008f2: 2220 movs r2, #32
  832. 80008f4: 2100 movs r1, #0
  833. 80008f6: 4618 mov r0, r3
  834. 80008f8: f017 f95d bl 8017bb6 <memset>
  835. /** Supply configuration update enable
  836. */
  837. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  838. 80008fc: 2002 movs r0, #2
  839. 80008fe: f00a fa15 bl 800ad2c <HAL_PWREx_ConfigSupply>
  840. /** Configure the main internal regulator output voltage
  841. */
  842. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  843. 8000902: 2300 movs r3, #0
  844. 8000904: 603b str r3, [r7, #0]
  845. 8000906: 4b31 ldr r3, [pc, #196] @ (80009cc <SystemClock_Config+0xf0>)
  846. 8000908: 6adb ldr r3, [r3, #44] @ 0x2c
  847. 800090a: 4a30 ldr r2, [pc, #192] @ (80009cc <SystemClock_Config+0xf0>)
  848. 800090c: f023 0301 bic.w r3, r3, #1
  849. 8000910: 62d3 str r3, [r2, #44] @ 0x2c
  850. 8000912: 4b2e ldr r3, [pc, #184] @ (80009cc <SystemClock_Config+0xf0>)
  851. 8000914: 6adb ldr r3, [r3, #44] @ 0x2c
  852. 8000916: f003 0301 and.w r3, r3, #1
  853. 800091a: 603b str r3, [r7, #0]
  854. 800091c: 4b2c ldr r3, [pc, #176] @ (80009d0 <SystemClock_Config+0xf4>)
  855. 800091e: 699b ldr r3, [r3, #24]
  856. 8000920: 4a2b ldr r2, [pc, #172] @ (80009d0 <SystemClock_Config+0xf4>)
  857. 8000922: f443 4340 orr.w r3, r3, #49152 @ 0xc000
  858. 8000926: 6193 str r3, [r2, #24]
  859. 8000928: 4b29 ldr r3, [pc, #164] @ (80009d0 <SystemClock_Config+0xf4>)
  860. 800092a: 699b ldr r3, [r3, #24]
  861. 800092c: f403 4340 and.w r3, r3, #49152 @ 0xc000
  862. 8000930: 603b str r3, [r7, #0]
  863. 8000932: 683b ldr r3, [r7, #0]
  864. while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
  865. 8000934: bf00 nop
  866. 8000936: 4b26 ldr r3, [pc, #152] @ (80009d0 <SystemClock_Config+0xf4>)
  867. 8000938: 699b ldr r3, [r3, #24]
  868. 800093a: f403 5300 and.w r3, r3, #8192 @ 0x2000
  869. 800093e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  870. 8000942: d1f8 bne.n 8000936 <SystemClock_Config+0x5a>
  871. /** Initializes the RCC Oscillators according to the specified parameters
  872. * in the RCC_OscInitTypeDef structure.
  873. */
  874. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_HSE;
  875. 8000944: 2321 movs r3, #33 @ 0x21
  876. 8000946: 627b str r3, [r7, #36] @ 0x24
  877. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  878. 8000948: f44f 3380 mov.w r3, #65536 @ 0x10000
  879. 800094c: 62bb str r3, [r7, #40] @ 0x28
  880. RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
  881. 800094e: 2301 movs r3, #1
  882. 8000950: 63fb str r3, [r7, #60] @ 0x3c
  883. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  884. 8000952: 2302 movs r3, #2
  885. 8000954: 64bb str r3, [r7, #72] @ 0x48
  886. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  887. 8000956: 2302 movs r3, #2
  888. 8000958: 64fb str r3, [r7, #76] @ 0x4c
  889. RCC_OscInitStruct.PLL.PLLM = 5;
  890. 800095a: 2305 movs r3, #5
  891. 800095c: 653b str r3, [r7, #80] @ 0x50
  892. RCC_OscInitStruct.PLL.PLLN = 160;
  893. 800095e: 23a0 movs r3, #160 @ 0xa0
  894. 8000960: 657b str r3, [r7, #84] @ 0x54
  895. RCC_OscInitStruct.PLL.PLLP = 2;
  896. 8000962: 2302 movs r3, #2
  897. 8000964: 65bb str r3, [r7, #88] @ 0x58
  898. RCC_OscInitStruct.PLL.PLLQ = 2;
  899. 8000966: 2302 movs r3, #2
  900. 8000968: 65fb str r3, [r7, #92] @ 0x5c
  901. RCC_OscInitStruct.PLL.PLLR = 2;
  902. 800096a: 2302 movs r3, #2
  903. 800096c: 663b str r3, [r7, #96] @ 0x60
  904. RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
  905. 800096e: 2308 movs r3, #8
  906. 8000970: 667b str r3, [r7, #100] @ 0x64
  907. RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
  908. 8000972: 2300 movs r3, #0
  909. 8000974: 66bb str r3, [r7, #104] @ 0x68
  910. RCC_OscInitStruct.PLL.PLLFRACN = 0;
  911. 8000976: 2300 movs r3, #0
  912. 8000978: 66fb str r3, [r7, #108] @ 0x6c
  913. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  914. 800097a: f107 0324 add.w r3, r7, #36 @ 0x24
  915. 800097e: 4618 mov r0, r3
  916. 8000980: f00a fa94 bl 800aeac <HAL_RCC_OscConfig>
  917. 8000984: 4603 mov r3, r0
  918. 8000986: 2b00 cmp r3, #0
  919. 8000988: d001 beq.n 800098e <SystemClock_Config+0xb2>
  920. {
  921. Error_Handler();
  922. 800098a: f001 fa57 bl 8001e3c <Error_Handler>
  923. }
  924. /** Initializes the CPU, AHB and APB buses clocks
  925. */
  926. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  927. 800098e: 233f movs r3, #63 @ 0x3f
  928. 8000990: 607b str r3, [r7, #4]
  929. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
  930. |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
  931. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  932. 8000992: 2303 movs r3, #3
  933. 8000994: 60bb str r3, [r7, #8]
  934. RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
  935. 8000996: 2300 movs r3, #0
  936. 8000998: 60fb str r3, [r7, #12]
  937. RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
  938. 800099a: 2308 movs r3, #8
  939. 800099c: 613b str r3, [r7, #16]
  940. RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
  941. 800099e: 2340 movs r3, #64 @ 0x40
  942. 80009a0: 617b str r3, [r7, #20]
  943. RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
  944. 80009a2: 2340 movs r3, #64 @ 0x40
  945. 80009a4: 61bb str r3, [r7, #24]
  946. RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
  947. 80009a6: f44f 6380 mov.w r3, #1024 @ 0x400
  948. 80009aa: 61fb str r3, [r7, #28]
  949. RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;
  950. 80009ac: 2340 movs r3, #64 @ 0x40
  951. 80009ae: 623b str r3, [r7, #32]
  952. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
  953. 80009b0: 1d3b adds r3, r7, #4
  954. 80009b2: 2102 movs r1, #2
  955. 80009b4: 4618 mov r0, r3
  956. 80009b6: f00a fed3 bl 800b760 <HAL_RCC_ClockConfig>
  957. 80009ba: 4603 mov r3, r0
  958. 80009bc: 2b00 cmp r3, #0
  959. 80009be: d001 beq.n 80009c4 <SystemClock_Config+0xe8>
  960. {
  961. Error_Handler();
  962. 80009c0: f001 fa3c bl 8001e3c <Error_Handler>
  963. }
  964. }
  965. 80009c4: bf00 nop
  966. 80009c6: 3770 adds r7, #112 @ 0x70
  967. 80009c8: 46bd mov sp, r7
  968. 80009ca: bd80 pop {r7, pc}
  969. 80009cc: 58000400 .word 0x58000400
  970. 80009d0: 58024800 .word 0x58024800
  971. 080009d4 <PeriphCommonClock_Config>:
  972. /**
  973. * @brief Peripherals Common Clock Configuration
  974. * @retval None
  975. */
  976. void PeriphCommonClock_Config(void)
  977. {
  978. 80009d4: b580 push {r7, lr}
  979. 80009d6: b0b0 sub sp, #192 @ 0xc0
  980. 80009d8: af00 add r7, sp, #0
  981. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  982. 80009da: 463b mov r3, r7
  983. 80009dc: 22c0 movs r2, #192 @ 0xc0
  984. 80009de: 2100 movs r1, #0
  985. 80009e0: 4618 mov r0, r3
  986. 80009e2: f017 f8e8 bl 8017bb6 <memset>
  987. /** Initializes the peripherals clock
  988. */
  989. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_ADC;
  990. 80009e6: f44f 2200 mov.w r2, #524288 @ 0x80000
  991. 80009ea: f04f 0300 mov.w r3, #0
  992. 80009ee: e9c7 2300 strd r2, r3, [r7]
  993. PeriphClkInitStruct.PLL2.PLL2M = 5;
  994. 80009f2: 2305 movs r3, #5
  995. 80009f4: 60bb str r3, [r7, #8]
  996. PeriphClkInitStruct.PLL2.PLL2N = 52;
  997. 80009f6: 2334 movs r3, #52 @ 0x34
  998. 80009f8: 60fb str r3, [r7, #12]
  999. PeriphClkInitStruct.PLL2.PLL2P = 26;
  1000. 80009fa: 231a movs r3, #26
  1001. 80009fc: 613b str r3, [r7, #16]
  1002. PeriphClkInitStruct.PLL2.PLL2Q = 2;
  1003. 80009fe: 2302 movs r3, #2
  1004. 8000a00: 617b str r3, [r7, #20]
  1005. PeriphClkInitStruct.PLL2.PLL2R = 2;
  1006. 8000a02: 2302 movs r3, #2
  1007. 8000a04: 61bb str r3, [r7, #24]
  1008. PeriphClkInitStruct.PLL2.PLL2RGE = RCC_PLL2VCIRANGE_2;
  1009. 8000a06: 2380 movs r3, #128 @ 0x80
  1010. 8000a08: 61fb str r3, [r7, #28]
  1011. PeriphClkInitStruct.PLL2.PLL2VCOSEL = RCC_PLL2VCOWIDE;
  1012. 8000a0a: 2300 movs r3, #0
  1013. 8000a0c: 623b str r3, [r7, #32]
  1014. PeriphClkInitStruct.PLL2.PLL2FRACN = 0;
  1015. 8000a0e: 2300 movs r3, #0
  1016. 8000a10: 627b str r3, [r7, #36] @ 0x24
  1017. PeriphClkInitStruct.AdcClockSelection = RCC_ADCCLKSOURCE_PLL2;
  1018. 8000a12: 2300 movs r3, #0
  1019. 8000a14: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  1020. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  1021. 8000a18: 463b mov r3, r7
  1022. 8000a1a: 4618 mov r0, r3
  1023. 8000a1c: f00b fa6e bl 800befc <HAL_RCCEx_PeriphCLKConfig>
  1024. 8000a20: 4603 mov r3, r0
  1025. 8000a22: 2b00 cmp r3, #0
  1026. 8000a24: d001 beq.n 8000a2a <PeriphCommonClock_Config+0x56>
  1027. {
  1028. Error_Handler();
  1029. 8000a26: f001 fa09 bl 8001e3c <Error_Handler>
  1030. }
  1031. }
  1032. 8000a2a: bf00 nop
  1033. 8000a2c: 37c0 adds r7, #192 @ 0xc0
  1034. 8000a2e: 46bd mov sp, r7
  1035. 8000a30: bd80 pop {r7, pc}
  1036. ...
  1037. 08000a34 <MX_ADC1_Init>:
  1038. * @brief ADC1 Initialization Function
  1039. * @param None
  1040. * @retval None
  1041. */
  1042. static void MX_ADC1_Init(void)
  1043. {
  1044. 8000a34: b580 push {r7, lr}
  1045. 8000a36: b08a sub sp, #40 @ 0x28
  1046. 8000a38: af00 add r7, sp, #0
  1047. /* USER CODE BEGIN ADC1_Init 0 */
  1048. /* USER CODE END ADC1_Init 0 */
  1049. ADC_MultiModeTypeDef multimode = {0};
  1050. 8000a3a: f107 031c add.w r3, r7, #28
  1051. 8000a3e: 2200 movs r2, #0
  1052. 8000a40: 601a str r2, [r3, #0]
  1053. 8000a42: 605a str r2, [r3, #4]
  1054. 8000a44: 609a str r2, [r3, #8]
  1055. ADC_ChannelConfTypeDef sConfig = {0};
  1056. 8000a46: 463b mov r3, r7
  1057. 8000a48: 2200 movs r2, #0
  1058. 8000a4a: 601a str r2, [r3, #0]
  1059. 8000a4c: 605a str r2, [r3, #4]
  1060. 8000a4e: 609a str r2, [r3, #8]
  1061. 8000a50: 60da str r2, [r3, #12]
  1062. 8000a52: 611a str r2, [r3, #16]
  1063. 8000a54: 615a str r2, [r3, #20]
  1064. 8000a56: 619a str r2, [r3, #24]
  1065. /* USER CODE END ADC1_Init 1 */
  1066. /** Common config
  1067. */
  1068. hadc1.Instance = ADC1;
  1069. 8000a58: 4b62 ldr r3, [pc, #392] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1070. 8000a5a: 4a63 ldr r2, [pc, #396] @ (8000be8 <MX_ADC1_Init+0x1b4>)
  1071. 8000a5c: 601a str r2, [r3, #0]
  1072. hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1073. 8000a5e: 4b61 ldr r3, [pc, #388] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1074. 8000a60: 2200 movs r2, #0
  1075. 8000a62: 605a str r2, [r3, #4]
  1076. hadc1.Init.Resolution = ADC_RESOLUTION_16B;
  1077. 8000a64: 4b5f ldr r3, [pc, #380] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1078. 8000a66: 2200 movs r2, #0
  1079. 8000a68: 609a str r2, [r3, #8]
  1080. hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1081. 8000a6a: 4b5e ldr r3, [pc, #376] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1082. 8000a6c: 2201 movs r2, #1
  1083. 8000a6e: 60da str r2, [r3, #12]
  1084. hadc1.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1085. 8000a70: 4b5c ldr r3, [pc, #368] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1086. 8000a72: 2208 movs r2, #8
  1087. 8000a74: 611a str r2, [r3, #16]
  1088. hadc1.Init.LowPowerAutoWait = DISABLE;
  1089. 8000a76: 4b5b ldr r3, [pc, #364] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1090. 8000a78: 2200 movs r2, #0
  1091. 8000a7a: 751a strb r2, [r3, #20]
  1092. hadc1.Init.ContinuousConvMode = ENABLE;
  1093. 8000a7c: 4b59 ldr r3, [pc, #356] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1094. 8000a7e: 2201 movs r2, #1
  1095. 8000a80: 755a strb r2, [r3, #21]
  1096. hadc1.Init.NbrOfConversion = 7;
  1097. 8000a82: 4b58 ldr r3, [pc, #352] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1098. 8000a84: 2207 movs r2, #7
  1099. 8000a86: 619a str r2, [r3, #24]
  1100. hadc1.Init.DiscontinuousConvMode = DISABLE;
  1101. 8000a88: 4b56 ldr r3, [pc, #344] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1102. 8000a8a: 2200 movs r2, #0
  1103. 8000a8c: 771a strb r2, [r3, #28]
  1104. hadc1.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T2_TRGO;
  1105. 8000a8e: 4b55 ldr r3, [pc, #340] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1106. 8000a90: f44f 62ac mov.w r2, #1376 @ 0x560
  1107. 8000a94: 625a str r2, [r3, #36] @ 0x24
  1108. hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1109. 8000a96: 4b53 ldr r3, [pc, #332] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1110. 8000a98: f44f 6280 mov.w r2, #1024 @ 0x400
  1111. 8000a9c: 629a str r2, [r3, #40] @ 0x28
  1112. hadc1.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1113. 8000a9e: 4b51 ldr r3, [pc, #324] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1114. 8000aa0: 2201 movs r2, #1
  1115. 8000aa2: 62da str r2, [r3, #44] @ 0x2c
  1116. hadc1.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1117. 8000aa4: 4b4f ldr r3, [pc, #316] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1118. 8000aa6: 2200 movs r2, #0
  1119. 8000aa8: 631a str r2, [r3, #48] @ 0x30
  1120. hadc1.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1121. 8000aaa: 4b4e ldr r3, [pc, #312] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1122. 8000aac: 2200 movs r2, #0
  1123. 8000aae: 635a str r2, [r3, #52] @ 0x34
  1124. hadc1.Init.OversamplingMode = DISABLE;
  1125. 8000ab0: 4b4c ldr r3, [pc, #304] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1126. 8000ab2: 2200 movs r2, #0
  1127. 8000ab4: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1128. if (HAL_ADC_Init(&hadc1) != HAL_OK)
  1129. 8000ab8: 484a ldr r0, [pc, #296] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1130. 8000aba: f004 ff1f bl 80058fc <HAL_ADC_Init>
  1131. 8000abe: 4603 mov r3, r0
  1132. 8000ac0: 2b00 cmp r3, #0
  1133. 8000ac2: d001 beq.n 8000ac8 <MX_ADC1_Init+0x94>
  1134. {
  1135. Error_Handler();
  1136. 8000ac4: f001 f9ba bl 8001e3c <Error_Handler>
  1137. }
  1138. /** Configure the ADC multi-mode
  1139. */
  1140. multimode.Mode = ADC_MODE_INDEPENDENT;
  1141. 8000ac8: 2300 movs r3, #0
  1142. 8000aca: 61fb str r3, [r7, #28]
  1143. if (HAL_ADCEx_MultiModeConfigChannel(&hadc1, &multimode) != HAL_OK)
  1144. 8000acc: f107 031c add.w r3, r7, #28
  1145. 8000ad0: 4619 mov r1, r3
  1146. 8000ad2: 4844 ldr r0, [pc, #272] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1147. 8000ad4: f006 f830 bl 8006b38 <HAL_ADCEx_MultiModeConfigChannel>
  1148. 8000ad8: 4603 mov r3, r0
  1149. 8000ada: 2b00 cmp r3, #0
  1150. 8000adc: d001 beq.n 8000ae2 <MX_ADC1_Init+0xae>
  1151. {
  1152. Error_Handler();
  1153. 8000ade: f001 f9ad bl 8001e3c <Error_Handler>
  1154. }
  1155. /** Configure Regular Channel
  1156. */
  1157. sConfig.Channel = ADC_CHANNEL_8;
  1158. 8000ae2: 4b42 ldr r3, [pc, #264] @ (8000bec <MX_ADC1_Init+0x1b8>)
  1159. 8000ae4: 603b str r3, [r7, #0]
  1160. sConfig.Rank = ADC_REGULAR_RANK_1;
  1161. 8000ae6: 2306 movs r3, #6
  1162. 8000ae8: 607b str r3, [r7, #4]
  1163. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1164. 8000aea: 2306 movs r3, #6
  1165. 8000aec: 60bb str r3, [r7, #8]
  1166. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1167. 8000aee: f240 73ff movw r3, #2047 @ 0x7ff
  1168. 8000af2: 60fb str r3, [r7, #12]
  1169. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1170. 8000af4: 2304 movs r3, #4
  1171. 8000af6: 613b str r3, [r7, #16]
  1172. sConfig.Offset = 0;
  1173. 8000af8: 2300 movs r3, #0
  1174. 8000afa: 617b str r3, [r7, #20]
  1175. sConfig.OffsetSignedSaturation = DISABLE;
  1176. 8000afc: 2300 movs r3, #0
  1177. 8000afe: 767b strb r3, [r7, #25]
  1178. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1179. 8000b00: 463b mov r3, r7
  1180. 8000b02: 4619 mov r1, r3
  1181. 8000b04: 4837 ldr r0, [pc, #220] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1182. 8000b06: f005 f973 bl 8005df0 <HAL_ADC_ConfigChannel>
  1183. 8000b0a: 4603 mov r3, r0
  1184. 8000b0c: 2b00 cmp r3, #0
  1185. 8000b0e: d001 beq.n 8000b14 <MX_ADC1_Init+0xe0>
  1186. {
  1187. Error_Handler();
  1188. 8000b10: f001 f994 bl 8001e3c <Error_Handler>
  1189. }
  1190. /** Configure Regular Channel
  1191. */
  1192. sConfig.Channel = ADC_CHANNEL_7;
  1193. 8000b14: 4b36 ldr r3, [pc, #216] @ (8000bf0 <MX_ADC1_Init+0x1bc>)
  1194. 8000b16: 603b str r3, [r7, #0]
  1195. sConfig.Rank = ADC_REGULAR_RANK_2;
  1196. 8000b18: 230c movs r3, #12
  1197. 8000b1a: 607b str r3, [r7, #4]
  1198. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1199. 8000b1c: 463b mov r3, r7
  1200. 8000b1e: 4619 mov r1, r3
  1201. 8000b20: 4830 ldr r0, [pc, #192] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1202. 8000b22: f005 f965 bl 8005df0 <HAL_ADC_ConfigChannel>
  1203. 8000b26: 4603 mov r3, r0
  1204. 8000b28: 2b00 cmp r3, #0
  1205. 8000b2a: d001 beq.n 8000b30 <MX_ADC1_Init+0xfc>
  1206. {
  1207. Error_Handler();
  1208. 8000b2c: f001 f986 bl 8001e3c <Error_Handler>
  1209. }
  1210. /** Configure Regular Channel
  1211. */
  1212. sConfig.Channel = ADC_CHANNEL_9;
  1213. 8000b30: 4b30 ldr r3, [pc, #192] @ (8000bf4 <MX_ADC1_Init+0x1c0>)
  1214. 8000b32: 603b str r3, [r7, #0]
  1215. sConfig.Rank = ADC_REGULAR_RANK_3;
  1216. 8000b34: 2312 movs r3, #18
  1217. 8000b36: 607b str r3, [r7, #4]
  1218. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1219. 8000b38: 463b mov r3, r7
  1220. 8000b3a: 4619 mov r1, r3
  1221. 8000b3c: 4829 ldr r0, [pc, #164] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1222. 8000b3e: f005 f957 bl 8005df0 <HAL_ADC_ConfigChannel>
  1223. 8000b42: 4603 mov r3, r0
  1224. 8000b44: 2b00 cmp r3, #0
  1225. 8000b46: d001 beq.n 8000b4c <MX_ADC1_Init+0x118>
  1226. {
  1227. Error_Handler();
  1228. 8000b48: f001 f978 bl 8001e3c <Error_Handler>
  1229. }
  1230. /** Configure Regular Channel
  1231. */
  1232. sConfig.Channel = ADC_CHANNEL_16;
  1233. 8000b4c: 4b2a ldr r3, [pc, #168] @ (8000bf8 <MX_ADC1_Init+0x1c4>)
  1234. 8000b4e: 603b str r3, [r7, #0]
  1235. sConfig.Rank = ADC_REGULAR_RANK_4;
  1236. 8000b50: 2318 movs r3, #24
  1237. 8000b52: 607b str r3, [r7, #4]
  1238. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1239. 8000b54: 463b mov r3, r7
  1240. 8000b56: 4619 mov r1, r3
  1241. 8000b58: 4822 ldr r0, [pc, #136] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1242. 8000b5a: f005 f949 bl 8005df0 <HAL_ADC_ConfigChannel>
  1243. 8000b5e: 4603 mov r3, r0
  1244. 8000b60: 2b00 cmp r3, #0
  1245. 8000b62: d001 beq.n 8000b68 <MX_ADC1_Init+0x134>
  1246. {
  1247. Error_Handler();
  1248. 8000b64: f001 f96a bl 8001e3c <Error_Handler>
  1249. }
  1250. /** Configure Regular Channel
  1251. */
  1252. sConfig.Channel = ADC_CHANNEL_17;
  1253. 8000b68: 4b24 ldr r3, [pc, #144] @ (8000bfc <MX_ADC1_Init+0x1c8>)
  1254. 8000b6a: 603b str r3, [r7, #0]
  1255. sConfig.Rank = ADC_REGULAR_RANK_5;
  1256. 8000b6c: f44f 7380 mov.w r3, #256 @ 0x100
  1257. 8000b70: 607b str r3, [r7, #4]
  1258. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1259. 8000b72: 463b mov r3, r7
  1260. 8000b74: 4619 mov r1, r3
  1261. 8000b76: 481b ldr r0, [pc, #108] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1262. 8000b78: f005 f93a bl 8005df0 <HAL_ADC_ConfigChannel>
  1263. 8000b7c: 4603 mov r3, r0
  1264. 8000b7e: 2b00 cmp r3, #0
  1265. 8000b80: d001 beq.n 8000b86 <MX_ADC1_Init+0x152>
  1266. {
  1267. Error_Handler();
  1268. 8000b82: f001 f95b bl 8001e3c <Error_Handler>
  1269. }
  1270. /** Configure Regular Channel
  1271. */
  1272. sConfig.Channel = ADC_CHANNEL_14;
  1273. 8000b86: 4b1e ldr r3, [pc, #120] @ (8000c00 <MX_ADC1_Init+0x1cc>)
  1274. 8000b88: 603b str r3, [r7, #0]
  1275. sConfig.Rank = ADC_REGULAR_RANK_6;
  1276. 8000b8a: f44f 7383 mov.w r3, #262 @ 0x106
  1277. 8000b8e: 607b str r3, [r7, #4]
  1278. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1279. 8000b90: 463b mov r3, r7
  1280. 8000b92: 4619 mov r1, r3
  1281. 8000b94: 4813 ldr r0, [pc, #76] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1282. 8000b96: f005 f92b bl 8005df0 <HAL_ADC_ConfigChannel>
  1283. 8000b9a: 4603 mov r3, r0
  1284. 8000b9c: 2b00 cmp r3, #0
  1285. 8000b9e: d001 beq.n 8000ba4 <MX_ADC1_Init+0x170>
  1286. {
  1287. Error_Handler();
  1288. 8000ba0: f001 f94c bl 8001e3c <Error_Handler>
  1289. }
  1290. /** Configure Regular Channel
  1291. */
  1292. sConfig.Channel = ADC_CHANNEL_15;
  1293. 8000ba4: 4b17 ldr r3, [pc, #92] @ (8000c04 <MX_ADC1_Init+0x1d0>)
  1294. 8000ba6: 603b str r3, [r7, #0]
  1295. sConfig.Rank = ADC_REGULAR_RANK_7;
  1296. 8000ba8: f44f 7386 mov.w r3, #268 @ 0x10c
  1297. 8000bac: 607b str r3, [r7, #4]
  1298. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1299. 8000bae: 463b mov r3, r7
  1300. 8000bb0: 4619 mov r1, r3
  1301. 8000bb2: 480c ldr r0, [pc, #48] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1302. 8000bb4: f005 f91c bl 8005df0 <HAL_ADC_ConfigChannel>
  1303. 8000bb8: 4603 mov r3, r0
  1304. 8000bba: 2b00 cmp r3, #0
  1305. 8000bbc: d001 beq.n 8000bc2 <MX_ADC1_Init+0x18e>
  1306. {
  1307. Error_Handler();
  1308. 8000bbe: f001 f93d bl 8001e3c <Error_Handler>
  1309. }
  1310. /* USER CODE BEGIN ADC1_Init 2 */
  1311. if (HAL_ADCEx_Calibration_Start(&hadc1, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1312. 8000bc2: f240 72ff movw r2, #2047 @ 0x7ff
  1313. 8000bc6: f04f 1101 mov.w r1, #65537 @ 0x10001
  1314. 8000bca: 4806 ldr r0, [pc, #24] @ (8000be4 <MX_ADC1_Init+0x1b0>)
  1315. 8000bcc: f005 ff50 bl 8006a70 <HAL_ADCEx_Calibration_Start>
  1316. 8000bd0: 4603 mov r3, r0
  1317. 8000bd2: 2b00 cmp r3, #0
  1318. 8000bd4: d001 beq.n 8000bda <MX_ADC1_Init+0x1a6>
  1319. {
  1320. Error_Handler();
  1321. 8000bd6: f001 f931 bl 8001e3c <Error_Handler>
  1322. }
  1323. /* USER CODE END ADC1_Init 2 */
  1324. }
  1325. 8000bda: bf00 nop
  1326. 8000bdc: 3728 adds r7, #40 @ 0x28
  1327. 8000bde: 46bd mov sp, r7
  1328. 8000be0: bd80 pop {r7, pc}
  1329. 8000be2: bf00 nop
  1330. 8000be4: 24000140 .word 0x24000140
  1331. 8000be8: 40022000 .word 0x40022000
  1332. 8000bec: 21800100 .word 0x21800100
  1333. 8000bf0: 1d500080 .word 0x1d500080
  1334. 8000bf4: 25b00200 .word 0x25b00200
  1335. 8000bf8: 43210000 .word 0x43210000
  1336. 8000bfc: 47520000 .word 0x47520000
  1337. 8000c00: 3ac04000 .word 0x3ac04000
  1338. 8000c04: 3ef08000 .word 0x3ef08000
  1339. 08000c08 <MX_ADC2_Init>:
  1340. * @brief ADC2 Initialization Function
  1341. * @param None
  1342. * @retval None
  1343. */
  1344. static void MX_ADC2_Init(void)
  1345. {
  1346. 8000c08: b580 push {r7, lr}
  1347. 8000c0a: b088 sub sp, #32
  1348. 8000c0c: af00 add r7, sp, #0
  1349. /* USER CODE BEGIN ADC2_Init 0 */
  1350. /* USER CODE END ADC2_Init 0 */
  1351. ADC_ChannelConfTypeDef sConfig = {0};
  1352. 8000c0e: 1d3b adds r3, r7, #4
  1353. 8000c10: 2200 movs r2, #0
  1354. 8000c12: 601a str r2, [r3, #0]
  1355. 8000c14: 605a str r2, [r3, #4]
  1356. 8000c16: 609a str r2, [r3, #8]
  1357. 8000c18: 60da str r2, [r3, #12]
  1358. 8000c1a: 611a str r2, [r3, #16]
  1359. 8000c1c: 615a str r2, [r3, #20]
  1360. 8000c1e: 619a str r2, [r3, #24]
  1361. /* USER CODE END ADC2_Init 1 */
  1362. /** Common config
  1363. */
  1364. hadc2.Instance = ADC2;
  1365. 8000c20: 4b3e ldr r3, [pc, #248] @ (8000d1c <MX_ADC2_Init+0x114>)
  1366. 8000c22: 4a3f ldr r2, [pc, #252] @ (8000d20 <MX_ADC2_Init+0x118>)
  1367. 8000c24: 601a str r2, [r3, #0]
  1368. hadc2.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1369. 8000c26: 4b3d ldr r3, [pc, #244] @ (8000d1c <MX_ADC2_Init+0x114>)
  1370. 8000c28: 2200 movs r2, #0
  1371. 8000c2a: 605a str r2, [r3, #4]
  1372. hadc2.Init.Resolution = ADC_RESOLUTION_16B;
  1373. 8000c2c: 4b3b ldr r3, [pc, #236] @ (8000d1c <MX_ADC2_Init+0x114>)
  1374. 8000c2e: 2200 movs r2, #0
  1375. 8000c30: 609a str r2, [r3, #8]
  1376. hadc2.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1377. 8000c32: 4b3a ldr r3, [pc, #232] @ (8000d1c <MX_ADC2_Init+0x114>)
  1378. 8000c34: 2201 movs r2, #1
  1379. 8000c36: 60da str r2, [r3, #12]
  1380. hadc2.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1381. 8000c38: 4b38 ldr r3, [pc, #224] @ (8000d1c <MX_ADC2_Init+0x114>)
  1382. 8000c3a: 2208 movs r2, #8
  1383. 8000c3c: 611a str r2, [r3, #16]
  1384. hadc2.Init.LowPowerAutoWait = DISABLE;
  1385. 8000c3e: 4b37 ldr r3, [pc, #220] @ (8000d1c <MX_ADC2_Init+0x114>)
  1386. 8000c40: 2200 movs r2, #0
  1387. 8000c42: 751a strb r2, [r3, #20]
  1388. hadc2.Init.ContinuousConvMode = ENABLE;
  1389. 8000c44: 4b35 ldr r3, [pc, #212] @ (8000d1c <MX_ADC2_Init+0x114>)
  1390. 8000c46: 2201 movs r2, #1
  1391. 8000c48: 755a strb r2, [r3, #21]
  1392. hadc2.Init.NbrOfConversion = 3;
  1393. 8000c4a: 4b34 ldr r3, [pc, #208] @ (8000d1c <MX_ADC2_Init+0x114>)
  1394. 8000c4c: 2203 movs r2, #3
  1395. 8000c4e: 619a str r2, [r3, #24]
  1396. hadc2.Init.DiscontinuousConvMode = DISABLE;
  1397. 8000c50: 4b32 ldr r3, [pc, #200] @ (8000d1c <MX_ADC2_Init+0x114>)
  1398. 8000c52: 2200 movs r2, #0
  1399. 8000c54: 771a strb r2, [r3, #28]
  1400. hadc2.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T2_TRGO;
  1401. 8000c56: 4b31 ldr r3, [pc, #196] @ (8000d1c <MX_ADC2_Init+0x114>)
  1402. 8000c58: f44f 62ac mov.w r2, #1376 @ 0x560
  1403. 8000c5c: 625a str r2, [r3, #36] @ 0x24
  1404. hadc2.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1405. 8000c5e: 4b2f ldr r3, [pc, #188] @ (8000d1c <MX_ADC2_Init+0x114>)
  1406. 8000c60: f44f 6280 mov.w r2, #1024 @ 0x400
  1407. 8000c64: 629a str r2, [r3, #40] @ 0x28
  1408. hadc2.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1409. 8000c66: 4b2d ldr r3, [pc, #180] @ (8000d1c <MX_ADC2_Init+0x114>)
  1410. 8000c68: 2201 movs r2, #1
  1411. 8000c6a: 62da str r2, [r3, #44] @ 0x2c
  1412. hadc2.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1413. 8000c6c: 4b2b ldr r3, [pc, #172] @ (8000d1c <MX_ADC2_Init+0x114>)
  1414. 8000c6e: 2200 movs r2, #0
  1415. 8000c70: 631a str r2, [r3, #48] @ 0x30
  1416. hadc2.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1417. 8000c72: 4b2a ldr r3, [pc, #168] @ (8000d1c <MX_ADC2_Init+0x114>)
  1418. 8000c74: 2200 movs r2, #0
  1419. 8000c76: 635a str r2, [r3, #52] @ 0x34
  1420. hadc2.Init.OversamplingMode = DISABLE;
  1421. 8000c78: 4b28 ldr r3, [pc, #160] @ (8000d1c <MX_ADC2_Init+0x114>)
  1422. 8000c7a: 2200 movs r2, #0
  1423. 8000c7c: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1424. if (HAL_ADC_Init(&hadc2) != HAL_OK)
  1425. 8000c80: 4826 ldr r0, [pc, #152] @ (8000d1c <MX_ADC2_Init+0x114>)
  1426. 8000c82: f004 fe3b bl 80058fc <HAL_ADC_Init>
  1427. 8000c86: 4603 mov r3, r0
  1428. 8000c88: 2b00 cmp r3, #0
  1429. 8000c8a: d001 beq.n 8000c90 <MX_ADC2_Init+0x88>
  1430. {
  1431. Error_Handler();
  1432. 8000c8c: f001 f8d6 bl 8001e3c <Error_Handler>
  1433. }
  1434. /** Configure Regular Channel
  1435. */
  1436. sConfig.Channel = ADC_CHANNEL_3;
  1437. 8000c90: 4b24 ldr r3, [pc, #144] @ (8000d24 <MX_ADC2_Init+0x11c>)
  1438. 8000c92: 607b str r3, [r7, #4]
  1439. sConfig.Rank = ADC_REGULAR_RANK_1;
  1440. 8000c94: 2306 movs r3, #6
  1441. 8000c96: 60bb str r3, [r7, #8]
  1442. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1443. 8000c98: 2306 movs r3, #6
  1444. 8000c9a: 60fb str r3, [r7, #12]
  1445. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1446. 8000c9c: f240 73ff movw r3, #2047 @ 0x7ff
  1447. 8000ca0: 613b str r3, [r7, #16]
  1448. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1449. 8000ca2: 2304 movs r3, #4
  1450. 8000ca4: 617b str r3, [r7, #20]
  1451. sConfig.Offset = 0;
  1452. 8000ca6: 2300 movs r3, #0
  1453. 8000ca8: 61bb str r3, [r7, #24]
  1454. sConfig.OffsetSignedSaturation = DISABLE;
  1455. 8000caa: 2300 movs r3, #0
  1456. 8000cac: 777b strb r3, [r7, #29]
  1457. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1458. 8000cae: 1d3b adds r3, r7, #4
  1459. 8000cb0: 4619 mov r1, r3
  1460. 8000cb2: 481a ldr r0, [pc, #104] @ (8000d1c <MX_ADC2_Init+0x114>)
  1461. 8000cb4: f005 f89c bl 8005df0 <HAL_ADC_ConfigChannel>
  1462. 8000cb8: 4603 mov r3, r0
  1463. 8000cba: 2b00 cmp r3, #0
  1464. 8000cbc: d001 beq.n 8000cc2 <MX_ADC2_Init+0xba>
  1465. {
  1466. Error_Handler();
  1467. 8000cbe: f001 f8bd bl 8001e3c <Error_Handler>
  1468. }
  1469. /** Configure Regular Channel
  1470. */
  1471. sConfig.Channel = ADC_CHANNEL_4;
  1472. 8000cc2: 4b19 ldr r3, [pc, #100] @ (8000d28 <MX_ADC2_Init+0x120>)
  1473. 8000cc4: 607b str r3, [r7, #4]
  1474. sConfig.Rank = ADC_REGULAR_RANK_2;
  1475. 8000cc6: 230c movs r3, #12
  1476. 8000cc8: 60bb str r3, [r7, #8]
  1477. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1478. 8000cca: 1d3b adds r3, r7, #4
  1479. 8000ccc: 4619 mov r1, r3
  1480. 8000cce: 4813 ldr r0, [pc, #76] @ (8000d1c <MX_ADC2_Init+0x114>)
  1481. 8000cd0: f005 f88e bl 8005df0 <HAL_ADC_ConfigChannel>
  1482. 8000cd4: 4603 mov r3, r0
  1483. 8000cd6: 2b00 cmp r3, #0
  1484. 8000cd8: d001 beq.n 8000cde <MX_ADC2_Init+0xd6>
  1485. {
  1486. Error_Handler();
  1487. 8000cda: f001 f8af bl 8001e3c <Error_Handler>
  1488. }
  1489. /** Configure Regular Channel
  1490. */
  1491. sConfig.Channel = ADC_CHANNEL_5;
  1492. 8000cde: 4b13 ldr r3, [pc, #76] @ (8000d2c <MX_ADC2_Init+0x124>)
  1493. 8000ce0: 607b str r3, [r7, #4]
  1494. sConfig.Rank = ADC_REGULAR_RANK_3;
  1495. 8000ce2: 2312 movs r3, #18
  1496. 8000ce4: 60bb str r3, [r7, #8]
  1497. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1498. 8000ce6: 1d3b adds r3, r7, #4
  1499. 8000ce8: 4619 mov r1, r3
  1500. 8000cea: 480c ldr r0, [pc, #48] @ (8000d1c <MX_ADC2_Init+0x114>)
  1501. 8000cec: f005 f880 bl 8005df0 <HAL_ADC_ConfigChannel>
  1502. 8000cf0: 4603 mov r3, r0
  1503. 8000cf2: 2b00 cmp r3, #0
  1504. 8000cf4: d001 beq.n 8000cfa <MX_ADC2_Init+0xf2>
  1505. {
  1506. Error_Handler();
  1507. 8000cf6: f001 f8a1 bl 8001e3c <Error_Handler>
  1508. }
  1509. /* USER CODE BEGIN ADC2_Init 2 */
  1510. if (HAL_ADCEx_Calibration_Start(&hadc2, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1511. 8000cfa: f240 72ff movw r2, #2047 @ 0x7ff
  1512. 8000cfe: f04f 1101 mov.w r1, #65537 @ 0x10001
  1513. 8000d02: 4806 ldr r0, [pc, #24] @ (8000d1c <MX_ADC2_Init+0x114>)
  1514. 8000d04: f005 feb4 bl 8006a70 <HAL_ADCEx_Calibration_Start>
  1515. 8000d08: 4603 mov r3, r0
  1516. 8000d0a: 2b00 cmp r3, #0
  1517. 8000d0c: d001 beq.n 8000d12 <MX_ADC2_Init+0x10a>
  1518. {
  1519. Error_Handler();
  1520. 8000d0e: f001 f895 bl 8001e3c <Error_Handler>
  1521. }
  1522. /* USER CODE END ADC2_Init 2 */
  1523. }
  1524. 8000d12: bf00 nop
  1525. 8000d14: 3720 adds r7, #32
  1526. 8000d16: 46bd mov sp, r7
  1527. 8000d18: bd80 pop {r7, pc}
  1528. 8000d1a: bf00 nop
  1529. 8000d1c: 240001a4 .word 0x240001a4
  1530. 8000d20: 40022100 .word 0x40022100
  1531. 8000d24: 0c900008 .word 0x0c900008
  1532. 8000d28: 10c00010 .word 0x10c00010
  1533. 8000d2c: 14f00020 .word 0x14f00020
  1534. 08000d30 <MX_ADC3_Init>:
  1535. * @brief ADC3 Initialization Function
  1536. * @param None
  1537. * @retval None
  1538. */
  1539. static void MX_ADC3_Init(void)
  1540. {
  1541. 8000d30: b580 push {r7, lr}
  1542. 8000d32: b088 sub sp, #32
  1543. 8000d34: af00 add r7, sp, #0
  1544. /* USER CODE BEGIN ADC3_Init 0 */
  1545. /* USER CODE END ADC3_Init 0 */
  1546. ADC_ChannelConfTypeDef sConfig = {0};
  1547. 8000d36: 1d3b adds r3, r7, #4
  1548. 8000d38: 2200 movs r2, #0
  1549. 8000d3a: 601a str r2, [r3, #0]
  1550. 8000d3c: 605a str r2, [r3, #4]
  1551. 8000d3e: 609a str r2, [r3, #8]
  1552. 8000d40: 60da str r2, [r3, #12]
  1553. 8000d42: 611a str r2, [r3, #16]
  1554. 8000d44: 615a str r2, [r3, #20]
  1555. 8000d46: 619a str r2, [r3, #24]
  1556. /* USER CODE END ADC3_Init 1 */
  1557. /** Common config
  1558. */
  1559. hadc3.Instance = ADC3;
  1560. 8000d48: 4b4b ldr r3, [pc, #300] @ (8000e78 <MX_ADC3_Init+0x148>)
  1561. 8000d4a: 4a4c ldr r2, [pc, #304] @ (8000e7c <MX_ADC3_Init+0x14c>)
  1562. 8000d4c: 601a str r2, [r3, #0]
  1563. hadc3.Init.Resolution = ADC_RESOLUTION_16B;
  1564. 8000d4e: 4b4a ldr r3, [pc, #296] @ (8000e78 <MX_ADC3_Init+0x148>)
  1565. 8000d50: 2200 movs r2, #0
  1566. 8000d52: 609a str r2, [r3, #8]
  1567. hadc3.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1568. 8000d54: 4b48 ldr r3, [pc, #288] @ (8000e78 <MX_ADC3_Init+0x148>)
  1569. 8000d56: 2201 movs r2, #1
  1570. 8000d58: 60da str r2, [r3, #12]
  1571. hadc3.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1572. 8000d5a: 4b47 ldr r3, [pc, #284] @ (8000e78 <MX_ADC3_Init+0x148>)
  1573. 8000d5c: 2208 movs r2, #8
  1574. 8000d5e: 611a str r2, [r3, #16]
  1575. hadc3.Init.LowPowerAutoWait = DISABLE;
  1576. 8000d60: 4b45 ldr r3, [pc, #276] @ (8000e78 <MX_ADC3_Init+0x148>)
  1577. 8000d62: 2200 movs r2, #0
  1578. 8000d64: 751a strb r2, [r3, #20]
  1579. hadc3.Init.ContinuousConvMode = ENABLE;
  1580. 8000d66: 4b44 ldr r3, [pc, #272] @ (8000e78 <MX_ADC3_Init+0x148>)
  1581. 8000d68: 2201 movs r2, #1
  1582. 8000d6a: 755a strb r2, [r3, #21]
  1583. hadc3.Init.NbrOfConversion = 5;
  1584. 8000d6c: 4b42 ldr r3, [pc, #264] @ (8000e78 <MX_ADC3_Init+0x148>)
  1585. 8000d6e: 2205 movs r2, #5
  1586. 8000d70: 619a str r2, [r3, #24]
  1587. hadc3.Init.DiscontinuousConvMode = DISABLE;
  1588. 8000d72: 4b41 ldr r3, [pc, #260] @ (8000e78 <MX_ADC3_Init+0x148>)
  1589. 8000d74: 2200 movs r2, #0
  1590. 8000d76: 771a strb r2, [r3, #28]
  1591. hadc3.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T2_TRGO;
  1592. 8000d78: 4b3f ldr r3, [pc, #252] @ (8000e78 <MX_ADC3_Init+0x148>)
  1593. 8000d7a: f44f 62ac mov.w r2, #1376 @ 0x560
  1594. 8000d7e: 625a str r2, [r3, #36] @ 0x24
  1595. hadc3.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1596. 8000d80: 4b3d ldr r3, [pc, #244] @ (8000e78 <MX_ADC3_Init+0x148>)
  1597. 8000d82: f44f 6280 mov.w r2, #1024 @ 0x400
  1598. 8000d86: 629a str r2, [r3, #40] @ 0x28
  1599. hadc3.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1600. 8000d88: 4b3b ldr r3, [pc, #236] @ (8000e78 <MX_ADC3_Init+0x148>)
  1601. 8000d8a: 2201 movs r2, #1
  1602. 8000d8c: 62da str r2, [r3, #44] @ 0x2c
  1603. hadc3.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1604. 8000d8e: 4b3a ldr r3, [pc, #232] @ (8000e78 <MX_ADC3_Init+0x148>)
  1605. 8000d90: 2200 movs r2, #0
  1606. 8000d92: 631a str r2, [r3, #48] @ 0x30
  1607. hadc3.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1608. 8000d94: 4b38 ldr r3, [pc, #224] @ (8000e78 <MX_ADC3_Init+0x148>)
  1609. 8000d96: 2200 movs r2, #0
  1610. 8000d98: 635a str r2, [r3, #52] @ 0x34
  1611. hadc3.Init.OversamplingMode = DISABLE;
  1612. 8000d9a: 4b37 ldr r3, [pc, #220] @ (8000e78 <MX_ADC3_Init+0x148>)
  1613. 8000d9c: 2200 movs r2, #0
  1614. 8000d9e: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1615. if (HAL_ADC_Init(&hadc3) != HAL_OK)
  1616. 8000da2: 4835 ldr r0, [pc, #212] @ (8000e78 <MX_ADC3_Init+0x148>)
  1617. 8000da4: f004 fdaa bl 80058fc <HAL_ADC_Init>
  1618. 8000da8: 4603 mov r3, r0
  1619. 8000daa: 2b00 cmp r3, #0
  1620. 8000dac: d001 beq.n 8000db2 <MX_ADC3_Init+0x82>
  1621. {
  1622. Error_Handler();
  1623. 8000dae: f001 f845 bl 8001e3c <Error_Handler>
  1624. }
  1625. /** Configure Regular Channel
  1626. */
  1627. sConfig.Channel = ADC_CHANNEL_0;
  1628. 8000db2: 2301 movs r3, #1
  1629. 8000db4: 607b str r3, [r7, #4]
  1630. sConfig.Rank = ADC_REGULAR_RANK_1;
  1631. 8000db6: 2306 movs r3, #6
  1632. 8000db8: 60bb str r3, [r7, #8]
  1633. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1634. 8000dba: 2306 movs r3, #6
  1635. 8000dbc: 60fb str r3, [r7, #12]
  1636. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1637. 8000dbe: f240 73ff movw r3, #2047 @ 0x7ff
  1638. 8000dc2: 613b str r3, [r7, #16]
  1639. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1640. 8000dc4: 2304 movs r3, #4
  1641. 8000dc6: 617b str r3, [r7, #20]
  1642. sConfig.Offset = 0;
  1643. 8000dc8: 2300 movs r3, #0
  1644. 8000dca: 61bb str r3, [r7, #24]
  1645. sConfig.OffsetSignedSaturation = DISABLE;
  1646. 8000dcc: 2300 movs r3, #0
  1647. 8000dce: 777b strb r3, [r7, #29]
  1648. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1649. 8000dd0: 1d3b adds r3, r7, #4
  1650. 8000dd2: 4619 mov r1, r3
  1651. 8000dd4: 4828 ldr r0, [pc, #160] @ (8000e78 <MX_ADC3_Init+0x148>)
  1652. 8000dd6: f005 f80b bl 8005df0 <HAL_ADC_ConfigChannel>
  1653. 8000dda: 4603 mov r3, r0
  1654. 8000ddc: 2b00 cmp r3, #0
  1655. 8000dde: d001 beq.n 8000de4 <MX_ADC3_Init+0xb4>
  1656. {
  1657. Error_Handler();
  1658. 8000de0: f001 f82c bl 8001e3c <Error_Handler>
  1659. }
  1660. /** Configure Regular Channel
  1661. */
  1662. sConfig.Channel = ADC_CHANNEL_1;
  1663. 8000de4: 4b26 ldr r3, [pc, #152] @ (8000e80 <MX_ADC3_Init+0x150>)
  1664. 8000de6: 607b str r3, [r7, #4]
  1665. sConfig.Rank = ADC_REGULAR_RANK_2;
  1666. 8000de8: 230c movs r3, #12
  1667. 8000dea: 60bb str r3, [r7, #8]
  1668. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1669. 8000dec: 1d3b adds r3, r7, #4
  1670. 8000dee: 4619 mov r1, r3
  1671. 8000df0: 4821 ldr r0, [pc, #132] @ (8000e78 <MX_ADC3_Init+0x148>)
  1672. 8000df2: f004 fffd bl 8005df0 <HAL_ADC_ConfigChannel>
  1673. 8000df6: 4603 mov r3, r0
  1674. 8000df8: 2b00 cmp r3, #0
  1675. 8000dfa: d001 beq.n 8000e00 <MX_ADC3_Init+0xd0>
  1676. {
  1677. Error_Handler();
  1678. 8000dfc: f001 f81e bl 8001e3c <Error_Handler>
  1679. }
  1680. /** Configure Regular Channel
  1681. */
  1682. sConfig.Channel = ADC_CHANNEL_10;
  1683. 8000e00: 4b20 ldr r3, [pc, #128] @ (8000e84 <MX_ADC3_Init+0x154>)
  1684. 8000e02: 607b str r3, [r7, #4]
  1685. sConfig.Rank = ADC_REGULAR_RANK_3;
  1686. 8000e04: 2312 movs r3, #18
  1687. 8000e06: 60bb str r3, [r7, #8]
  1688. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1689. 8000e08: 1d3b adds r3, r7, #4
  1690. 8000e0a: 4619 mov r1, r3
  1691. 8000e0c: 481a ldr r0, [pc, #104] @ (8000e78 <MX_ADC3_Init+0x148>)
  1692. 8000e0e: f004 ffef bl 8005df0 <HAL_ADC_ConfigChannel>
  1693. 8000e12: 4603 mov r3, r0
  1694. 8000e14: 2b00 cmp r3, #0
  1695. 8000e16: d001 beq.n 8000e1c <MX_ADC3_Init+0xec>
  1696. {
  1697. Error_Handler();
  1698. 8000e18: f001 f810 bl 8001e3c <Error_Handler>
  1699. }
  1700. /** Configure Regular Channel
  1701. */
  1702. sConfig.Channel = ADC_CHANNEL_11;
  1703. 8000e1c: 4b1a ldr r3, [pc, #104] @ (8000e88 <MX_ADC3_Init+0x158>)
  1704. 8000e1e: 607b str r3, [r7, #4]
  1705. sConfig.Rank = ADC_REGULAR_RANK_4;
  1706. 8000e20: 2318 movs r3, #24
  1707. 8000e22: 60bb str r3, [r7, #8]
  1708. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1709. 8000e24: 1d3b adds r3, r7, #4
  1710. 8000e26: 4619 mov r1, r3
  1711. 8000e28: 4813 ldr r0, [pc, #76] @ (8000e78 <MX_ADC3_Init+0x148>)
  1712. 8000e2a: f004 ffe1 bl 8005df0 <HAL_ADC_ConfigChannel>
  1713. 8000e2e: 4603 mov r3, r0
  1714. 8000e30: 2b00 cmp r3, #0
  1715. 8000e32: d001 beq.n 8000e38 <MX_ADC3_Init+0x108>
  1716. {
  1717. Error_Handler();
  1718. 8000e34: f001 f802 bl 8001e3c <Error_Handler>
  1719. }
  1720. /** Configure Regular Channel
  1721. */
  1722. sConfig.Channel = ADC_CHANNEL_VREFINT;
  1723. 8000e38: 4b14 ldr r3, [pc, #80] @ (8000e8c <MX_ADC3_Init+0x15c>)
  1724. 8000e3a: 607b str r3, [r7, #4]
  1725. sConfig.Rank = ADC_REGULAR_RANK_5;
  1726. 8000e3c: f44f 7380 mov.w r3, #256 @ 0x100
  1727. 8000e40: 60bb str r3, [r7, #8]
  1728. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1729. 8000e42: 1d3b adds r3, r7, #4
  1730. 8000e44: 4619 mov r1, r3
  1731. 8000e46: 480c ldr r0, [pc, #48] @ (8000e78 <MX_ADC3_Init+0x148>)
  1732. 8000e48: f004 ffd2 bl 8005df0 <HAL_ADC_ConfigChannel>
  1733. 8000e4c: 4603 mov r3, r0
  1734. 8000e4e: 2b00 cmp r3, #0
  1735. 8000e50: d001 beq.n 8000e56 <MX_ADC3_Init+0x126>
  1736. {
  1737. Error_Handler();
  1738. 8000e52: f000 fff3 bl 8001e3c <Error_Handler>
  1739. }
  1740. /* USER CODE BEGIN ADC3_Init 2 */
  1741. if (HAL_ADCEx_Calibration_Start(&hadc3, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1742. 8000e56: f240 72ff movw r2, #2047 @ 0x7ff
  1743. 8000e5a: f04f 1101 mov.w r1, #65537 @ 0x10001
  1744. 8000e5e: 4806 ldr r0, [pc, #24] @ (8000e78 <MX_ADC3_Init+0x148>)
  1745. 8000e60: f005 fe06 bl 8006a70 <HAL_ADCEx_Calibration_Start>
  1746. 8000e64: 4603 mov r3, r0
  1747. 8000e66: 2b00 cmp r3, #0
  1748. 8000e68: d001 beq.n 8000e6e <MX_ADC3_Init+0x13e>
  1749. {
  1750. Error_Handler();
  1751. 8000e6a: f000 ffe7 bl 8001e3c <Error_Handler>
  1752. }
  1753. /* USER CODE END ADC3_Init 2 */
  1754. }
  1755. 8000e6e: bf00 nop
  1756. 8000e70: 3720 adds r7, #32
  1757. 8000e72: 46bd mov sp, r7
  1758. 8000e74: bd80 pop {r7, pc}
  1759. 8000e76: bf00 nop
  1760. 8000e78: 24000208 .word 0x24000208
  1761. 8000e7c: 58026000 .word 0x58026000
  1762. 8000e80: 04300002 .word 0x04300002
  1763. 8000e84: 2a000400 .word 0x2a000400
  1764. 8000e88: 2e300800 .word 0x2e300800
  1765. 8000e8c: cfb80000 .word 0xcfb80000
  1766. 08000e90 <MX_COMP1_Init>:
  1767. * @brief COMP1 Initialization Function
  1768. * @param None
  1769. * @retval None
  1770. */
  1771. static void MX_COMP1_Init(void)
  1772. {
  1773. 8000e90: b580 push {r7, lr}
  1774. 8000e92: af00 add r7, sp, #0
  1775. /* USER CODE END COMP1_Init 0 */
  1776. /* USER CODE BEGIN COMP1_Init 1 */
  1777. /* USER CODE END COMP1_Init 1 */
  1778. hcomp1.Instance = COMP1;
  1779. 8000e94: 4b12 ldr r3, [pc, #72] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1780. 8000e96: 4a13 ldr r2, [pc, #76] @ (8000ee4 <MX_COMP1_Init+0x54>)
  1781. 8000e98: 601a str r2, [r3, #0]
  1782. hcomp1.Init.InvertingInput = COMP_INPUT_MINUS_3_4VREFINT;
  1783. 8000e9a: 4b11 ldr r3, [pc, #68] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1784. 8000e9c: 4a12 ldr r2, [pc, #72] @ (8000ee8 <MX_COMP1_Init+0x58>)
  1785. 8000e9e: 611a str r2, [r3, #16]
  1786. hcomp1.Init.NonInvertingInput = COMP_INPUT_PLUS_IO2;
  1787. 8000ea0: 4b0f ldr r3, [pc, #60] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1788. 8000ea2: f44f 1280 mov.w r2, #1048576 @ 0x100000
  1789. 8000ea6: 60da str r2, [r3, #12]
  1790. hcomp1.Init.OutputPol = COMP_OUTPUTPOL_NONINVERTED;
  1791. 8000ea8: 4b0d ldr r3, [pc, #52] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1792. 8000eaa: 2200 movs r2, #0
  1793. 8000eac: 619a str r2, [r3, #24]
  1794. hcomp1.Init.Hysteresis = COMP_HYSTERESIS_NONE;
  1795. 8000eae: 4b0c ldr r3, [pc, #48] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1796. 8000eb0: 2200 movs r2, #0
  1797. 8000eb2: 615a str r2, [r3, #20]
  1798. hcomp1.Init.BlankingSrce = COMP_BLANKINGSRC_NONE;
  1799. 8000eb4: 4b0a ldr r3, [pc, #40] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1800. 8000eb6: 2200 movs r2, #0
  1801. 8000eb8: 61da str r2, [r3, #28]
  1802. hcomp1.Init.Mode = COMP_POWERMODE_HIGHSPEED;
  1803. 8000eba: 4b09 ldr r3, [pc, #36] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1804. 8000ebc: 2200 movs r2, #0
  1805. 8000ebe: 609a str r2, [r3, #8]
  1806. hcomp1.Init.WindowMode = COMP_WINDOWMODE_DISABLE;
  1807. 8000ec0: 4b07 ldr r3, [pc, #28] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1808. 8000ec2: 2200 movs r2, #0
  1809. 8000ec4: 605a str r2, [r3, #4]
  1810. hcomp1.Init.TriggerMode = COMP_TRIGGERMODE_NONE;
  1811. 8000ec6: 4b06 ldr r3, [pc, #24] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1812. 8000ec8: 2200 movs r2, #0
  1813. 8000eca: 621a str r2, [r3, #32]
  1814. if (HAL_COMP_Init(&hcomp1) != HAL_OK)
  1815. 8000ecc: 4804 ldr r0, [pc, #16] @ (8000ee0 <MX_COMP1_Init+0x50>)
  1816. 8000ece: f005 ff11 bl 8006cf4 <HAL_COMP_Init>
  1817. 8000ed2: 4603 mov r3, r0
  1818. 8000ed4: 2b00 cmp r3, #0
  1819. 8000ed6: d001 beq.n 8000edc <MX_COMP1_Init+0x4c>
  1820. {
  1821. Error_Handler();
  1822. 8000ed8: f000 ffb0 bl 8001e3c <Error_Handler>
  1823. }
  1824. /* USER CODE BEGIN COMP1_Init 2 */
  1825. /* USER CODE END COMP1_Init 2 */
  1826. }
  1827. 8000edc: bf00 nop
  1828. 8000ede: bd80 pop {r7, pc}
  1829. 8000ee0: 240003d4 .word 0x240003d4
  1830. 8000ee4: 5800380c .word 0x5800380c
  1831. 8000ee8: 00020006 .word 0x00020006
  1832. 08000eec <MX_CRC_Init>:
  1833. * @brief CRC Initialization Function
  1834. * @param None
  1835. * @retval None
  1836. */
  1837. static void MX_CRC_Init(void)
  1838. {
  1839. 8000eec: b580 push {r7, lr}
  1840. 8000eee: af00 add r7, sp, #0
  1841. /* USER CODE END CRC_Init 0 */
  1842. /* USER CODE BEGIN CRC_Init 1 */
  1843. /* USER CODE END CRC_Init 1 */
  1844. hcrc.Instance = CRC;
  1845. 8000ef0: 4b11 ldr r3, [pc, #68] @ (8000f38 <MX_CRC_Init+0x4c>)
  1846. 8000ef2: 4a12 ldr r2, [pc, #72] @ (8000f3c <MX_CRC_Init+0x50>)
  1847. 8000ef4: 601a str r2, [r3, #0]
  1848. hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE;
  1849. 8000ef6: 4b10 ldr r3, [pc, #64] @ (8000f38 <MX_CRC_Init+0x4c>)
  1850. 8000ef8: 2201 movs r2, #1
  1851. 8000efa: 711a strb r2, [r3, #4]
  1852. hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
  1853. 8000efc: 4b0e ldr r3, [pc, #56] @ (8000f38 <MX_CRC_Init+0x4c>)
  1854. 8000efe: 2200 movs r2, #0
  1855. 8000f00: 715a strb r2, [r3, #5]
  1856. hcrc.Init.GeneratingPolynomial = 4129;
  1857. 8000f02: 4b0d ldr r3, [pc, #52] @ (8000f38 <MX_CRC_Init+0x4c>)
  1858. 8000f04: f241 0221 movw r2, #4129 @ 0x1021
  1859. 8000f08: 609a str r2, [r3, #8]
  1860. hcrc.Init.CRCLength = CRC_POLYLENGTH_16B;
  1861. 8000f0a: 4b0b ldr r3, [pc, #44] @ (8000f38 <MX_CRC_Init+0x4c>)
  1862. 8000f0c: 2208 movs r2, #8
  1863. 8000f0e: 60da str r2, [r3, #12]
  1864. hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
  1865. 8000f10: 4b09 ldr r3, [pc, #36] @ (8000f38 <MX_CRC_Init+0x4c>)
  1866. 8000f12: 2200 movs r2, #0
  1867. 8000f14: 615a str r2, [r3, #20]
  1868. hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
  1869. 8000f16: 4b08 ldr r3, [pc, #32] @ (8000f38 <MX_CRC_Init+0x4c>)
  1870. 8000f18: 2200 movs r2, #0
  1871. 8000f1a: 619a str r2, [r3, #24]
  1872. hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
  1873. 8000f1c: 4b06 ldr r3, [pc, #24] @ (8000f38 <MX_CRC_Init+0x4c>)
  1874. 8000f1e: 2201 movs r2, #1
  1875. 8000f20: 621a str r2, [r3, #32]
  1876. if (HAL_CRC_Init(&hcrc) != HAL_OK)
  1877. 8000f22: 4805 ldr r0, [pc, #20] @ (8000f38 <MX_CRC_Init+0x4c>)
  1878. 8000f24: f006 f9d0 bl 80072c8 <HAL_CRC_Init>
  1879. 8000f28: 4603 mov r3, r0
  1880. 8000f2a: 2b00 cmp r3, #0
  1881. 8000f2c: d001 beq.n 8000f32 <MX_CRC_Init+0x46>
  1882. {
  1883. Error_Handler();
  1884. 8000f2e: f000 ff85 bl 8001e3c <Error_Handler>
  1885. }
  1886. /* USER CODE BEGIN CRC_Init 2 */
  1887. /* USER CODE END CRC_Init 2 */
  1888. }
  1889. 8000f32: bf00 nop
  1890. 8000f34: bd80 pop {r7, pc}
  1891. 8000f36: bf00 nop
  1892. 8000f38: 24000400 .word 0x24000400
  1893. 8000f3c: 58024c00 .word 0x58024c00
  1894. 08000f40 <MX_DAC1_Init>:
  1895. * @brief DAC1 Initialization Function
  1896. * @param None
  1897. * @retval None
  1898. */
  1899. static void MX_DAC1_Init(void)
  1900. {
  1901. 8000f40: b580 push {r7, lr}
  1902. 8000f42: b08a sub sp, #40 @ 0x28
  1903. 8000f44: af00 add r7, sp, #0
  1904. /* USER CODE BEGIN DAC1_Init 0 */
  1905. /* USER CODE END DAC1_Init 0 */
  1906. DAC_ChannelConfTypeDef sConfig = {0};
  1907. 8000f46: 1d3b adds r3, r7, #4
  1908. 8000f48: 2224 movs r2, #36 @ 0x24
  1909. 8000f4a: 2100 movs r1, #0
  1910. 8000f4c: 4618 mov r0, r3
  1911. 8000f4e: f016 fe32 bl 8017bb6 <memset>
  1912. /* USER CODE END DAC1_Init 1 */
  1913. /** DAC Initialization
  1914. */
  1915. hdac1.Instance = DAC1;
  1916. 8000f52: 4b17 ldr r3, [pc, #92] @ (8000fb0 <MX_DAC1_Init+0x70>)
  1917. 8000f54: 4a17 ldr r2, [pc, #92] @ (8000fb4 <MX_DAC1_Init+0x74>)
  1918. 8000f56: 601a str r2, [r3, #0]
  1919. if (HAL_DAC_Init(&hdac1) != HAL_OK)
  1920. 8000f58: 4815 ldr r0, [pc, #84] @ (8000fb0 <MX_DAC1_Init+0x70>)
  1921. 8000f5a: f006 fbbb bl 80076d4 <HAL_DAC_Init>
  1922. 8000f5e: 4603 mov r3, r0
  1923. 8000f60: 2b00 cmp r3, #0
  1924. 8000f62: d001 beq.n 8000f68 <MX_DAC1_Init+0x28>
  1925. {
  1926. Error_Handler();
  1927. 8000f64: f000 ff6a bl 8001e3c <Error_Handler>
  1928. }
  1929. /** DAC channel OUT1 config
  1930. */
  1931. sConfig.DAC_SampleAndHold = DAC_SAMPLEANDHOLD_DISABLE;
  1932. 8000f68: 2300 movs r3, #0
  1933. 8000f6a: 607b str r3, [r7, #4]
  1934. sConfig.DAC_Trigger = DAC_TRIGGER_NONE;
  1935. 8000f6c: 2300 movs r3, #0
  1936. 8000f6e: 60bb str r3, [r7, #8]
  1937. sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
  1938. 8000f70: 2300 movs r3, #0
  1939. 8000f72: 60fb str r3, [r7, #12]
  1940. sConfig.DAC_ConnectOnChipPeripheral = DAC_CHIPCONNECT_DISABLE;
  1941. 8000f74: 2301 movs r3, #1
  1942. 8000f76: 613b str r3, [r7, #16]
  1943. sConfig.DAC_UserTrimming = DAC_TRIMMING_FACTORY;
  1944. 8000f78: 2300 movs r3, #0
  1945. 8000f7a: 617b str r3, [r7, #20]
  1946. if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_1) != HAL_OK)
  1947. 8000f7c: 1d3b adds r3, r7, #4
  1948. 8000f7e: 2200 movs r2, #0
  1949. 8000f80: 4619 mov r1, r3
  1950. 8000f82: 480b ldr r0, [pc, #44] @ (8000fb0 <MX_DAC1_Init+0x70>)
  1951. 8000f84: f006 fcaa bl 80078dc <HAL_DAC_ConfigChannel>
  1952. 8000f88: 4603 mov r3, r0
  1953. 8000f8a: 2b00 cmp r3, #0
  1954. 8000f8c: d001 beq.n 8000f92 <MX_DAC1_Init+0x52>
  1955. {
  1956. Error_Handler();
  1957. 8000f8e: f000 ff55 bl 8001e3c <Error_Handler>
  1958. }
  1959. /** DAC channel OUT2 config
  1960. */
  1961. if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_2) != HAL_OK)
  1962. 8000f92: 1d3b adds r3, r7, #4
  1963. 8000f94: 2210 movs r2, #16
  1964. 8000f96: 4619 mov r1, r3
  1965. 8000f98: 4805 ldr r0, [pc, #20] @ (8000fb0 <MX_DAC1_Init+0x70>)
  1966. 8000f9a: f006 fc9f bl 80078dc <HAL_DAC_ConfigChannel>
  1967. 8000f9e: 4603 mov r3, r0
  1968. 8000fa0: 2b00 cmp r3, #0
  1969. 8000fa2: d001 beq.n 8000fa8 <MX_DAC1_Init+0x68>
  1970. {
  1971. Error_Handler();
  1972. 8000fa4: f000 ff4a bl 8001e3c <Error_Handler>
  1973. }
  1974. /* USER CODE BEGIN DAC1_Init 2 */
  1975. /* USER CODE END DAC1_Init 2 */
  1976. }
  1977. 8000fa8: bf00 nop
  1978. 8000faa: 3728 adds r7, #40 @ 0x28
  1979. 8000fac: 46bd mov sp, r7
  1980. 8000fae: bd80 pop {r7, pc}
  1981. 8000fb0: 24000424 .word 0x24000424
  1982. 8000fb4: 40007400 .word 0x40007400
  1983. 08000fb8 <MX_RNG_Init>:
  1984. * @brief RNG Initialization Function
  1985. * @param None
  1986. * @retval None
  1987. */
  1988. static void MX_RNG_Init(void)
  1989. {
  1990. 8000fb8: b580 push {r7, lr}
  1991. 8000fba: af00 add r7, sp, #0
  1992. /* USER CODE END RNG_Init 0 */
  1993. /* USER CODE BEGIN RNG_Init 1 */
  1994. /* USER CODE END RNG_Init 1 */
  1995. hrng.Instance = RNG;
  1996. 8000fbc: 4b07 ldr r3, [pc, #28] @ (8000fdc <MX_RNG_Init+0x24>)
  1997. 8000fbe: 4a08 ldr r2, [pc, #32] @ (8000fe0 <MX_RNG_Init+0x28>)
  1998. 8000fc0: 601a str r2, [r3, #0]
  1999. hrng.Init.ClockErrorDetection = RNG_CED_ENABLE;
  2000. 8000fc2: 4b06 ldr r3, [pc, #24] @ (8000fdc <MX_RNG_Init+0x24>)
  2001. 8000fc4: 2200 movs r2, #0
  2002. 8000fc6: 605a str r2, [r3, #4]
  2003. if (HAL_RNG_Init(&hrng) != HAL_OK)
  2004. 8000fc8: 4804 ldr r0, [pc, #16] @ (8000fdc <MX_RNG_Init+0x24>)
  2005. 8000fca: f00d fc79 bl 800e8c0 <HAL_RNG_Init>
  2006. 8000fce: 4603 mov r3, r0
  2007. 8000fd0: 2b00 cmp r3, #0
  2008. 8000fd2: d001 beq.n 8000fd8 <MX_RNG_Init+0x20>
  2009. {
  2010. Error_Handler();
  2011. 8000fd4: f000 ff32 bl 8001e3c <Error_Handler>
  2012. }
  2013. /* USER CODE BEGIN RNG_Init 2 */
  2014. /* USER CODE END RNG_Init 2 */
  2015. }
  2016. 8000fd8: bf00 nop
  2017. 8000fda: bd80 pop {r7, pc}
  2018. 8000fdc: 24000438 .word 0x24000438
  2019. 8000fe0: 48021800 .word 0x48021800
  2020. 08000fe4 <MX_TIM1_Init>:
  2021. * @brief TIM1 Initialization Function
  2022. * @param None
  2023. * @retval None
  2024. */
  2025. static void MX_TIM1_Init(void)
  2026. {
  2027. 8000fe4: b5b0 push {r4, r5, r7, lr}
  2028. 8000fe6: b096 sub sp, #88 @ 0x58
  2029. 8000fe8: af00 add r7, sp, #0
  2030. /* USER CODE BEGIN TIM1_Init 0 */
  2031. /* USER CODE END TIM1_Init 0 */
  2032. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2033. 8000fea: f107 034c add.w r3, r7, #76 @ 0x4c
  2034. 8000fee: 2200 movs r2, #0
  2035. 8000ff0: 601a str r2, [r3, #0]
  2036. 8000ff2: 605a str r2, [r3, #4]
  2037. 8000ff4: 609a str r2, [r3, #8]
  2038. TIM_OC_InitTypeDef sConfigOC = {0};
  2039. 8000ff6: f107 0330 add.w r3, r7, #48 @ 0x30
  2040. 8000ffa: 2200 movs r2, #0
  2041. 8000ffc: 601a str r2, [r3, #0]
  2042. 8000ffe: 605a str r2, [r3, #4]
  2043. 8001000: 609a str r2, [r3, #8]
  2044. 8001002: 60da str r2, [r3, #12]
  2045. 8001004: 611a str r2, [r3, #16]
  2046. 8001006: 615a str r2, [r3, #20]
  2047. 8001008: 619a str r2, [r3, #24]
  2048. TIM_BreakDeadTimeConfigTypeDef sBreakDeadTimeConfig = {0};
  2049. 800100a: 1d3b adds r3, r7, #4
  2050. 800100c: 222c movs r2, #44 @ 0x2c
  2051. 800100e: 2100 movs r1, #0
  2052. 8001010: 4618 mov r0, r3
  2053. 8001012: f016 fdd0 bl 8017bb6 <memset>
  2054. /* USER CODE BEGIN TIM1_Init 1 */
  2055. /* USER CODE END TIM1_Init 1 */
  2056. htim1.Instance = TIM1;
  2057. 8001016: 4b3e ldr r3, [pc, #248] @ (8001110 <MX_TIM1_Init+0x12c>)
  2058. 8001018: 4a3e ldr r2, [pc, #248] @ (8001114 <MX_TIM1_Init+0x130>)
  2059. 800101a: 601a str r2, [r3, #0]
  2060. htim1.Init.Prescaler = 199;
  2061. 800101c: 4b3c ldr r3, [pc, #240] @ (8001110 <MX_TIM1_Init+0x12c>)
  2062. 800101e: 22c7 movs r2, #199 @ 0xc7
  2063. 8001020: 605a str r2, [r3, #4]
  2064. htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
  2065. 8001022: 4b3b ldr r3, [pc, #236] @ (8001110 <MX_TIM1_Init+0x12c>)
  2066. 8001024: 2200 movs r2, #0
  2067. 8001026: 609a str r2, [r3, #8]
  2068. htim1.Init.Period = 999;
  2069. 8001028: 4b39 ldr r3, [pc, #228] @ (8001110 <MX_TIM1_Init+0x12c>)
  2070. 800102a: f240 32e7 movw r2, #999 @ 0x3e7
  2071. 800102e: 60da str r2, [r3, #12]
  2072. htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2073. 8001030: 4b37 ldr r3, [pc, #220] @ (8001110 <MX_TIM1_Init+0x12c>)
  2074. 8001032: 2200 movs r2, #0
  2075. 8001034: 611a str r2, [r3, #16]
  2076. htim1.Init.RepetitionCounter = 0;
  2077. 8001036: 4b36 ldr r3, [pc, #216] @ (8001110 <MX_TIM1_Init+0x12c>)
  2078. 8001038: 2200 movs r2, #0
  2079. 800103a: 615a str r2, [r3, #20]
  2080. htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2081. 800103c: 4b34 ldr r3, [pc, #208] @ (8001110 <MX_TIM1_Init+0x12c>)
  2082. 800103e: 2280 movs r2, #128 @ 0x80
  2083. 8001040: 619a str r2, [r3, #24]
  2084. if (HAL_TIM_PWM_Init(&htim1) != HAL_OK)
  2085. 8001042: 4833 ldr r0, [pc, #204] @ (8001110 <MX_TIM1_Init+0x12c>)
  2086. 8001044: f00d fdde bl 800ec04 <HAL_TIM_PWM_Init>
  2087. 8001048: 4603 mov r3, r0
  2088. 800104a: 2b00 cmp r3, #0
  2089. 800104c: d001 beq.n 8001052 <MX_TIM1_Init+0x6e>
  2090. {
  2091. Error_Handler();
  2092. 800104e: f000 fef5 bl 8001e3c <Error_Handler>
  2093. }
  2094. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2095. 8001052: 2300 movs r3, #0
  2096. 8001054: 64fb str r3, [r7, #76] @ 0x4c
  2097. sMasterConfig.MasterOutputTrigger2 = TIM_TRGO2_RESET;
  2098. 8001056: 2300 movs r3, #0
  2099. 8001058: 653b str r3, [r7, #80] @ 0x50
  2100. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2101. 800105a: 2300 movs r3, #0
  2102. 800105c: 657b str r3, [r7, #84] @ 0x54
  2103. if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
  2104. 800105e: f107 034c add.w r3, r7, #76 @ 0x4c
  2105. 8001062: 4619 mov r1, r3
  2106. 8001064: 482a ldr r0, [pc, #168] @ (8001110 <MX_TIM1_Init+0x12c>)
  2107. 8001066: f00f fb31 bl 80106cc <HAL_TIMEx_MasterConfigSynchronization>
  2108. 800106a: 4603 mov r3, r0
  2109. 800106c: 2b00 cmp r3, #0
  2110. 800106e: d001 beq.n 8001074 <MX_TIM1_Init+0x90>
  2111. {
  2112. Error_Handler();
  2113. 8001070: f000 fee4 bl 8001e3c <Error_Handler>
  2114. }
  2115. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2116. 8001074: 2360 movs r3, #96 @ 0x60
  2117. 8001076: 633b str r3, [r7, #48] @ 0x30
  2118. sConfigOC.Pulse = 99;
  2119. 8001078: 2363 movs r3, #99 @ 0x63
  2120. 800107a: 637b str r3, [r7, #52] @ 0x34
  2121. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2122. 800107c: 2300 movs r3, #0
  2123. 800107e: 63bb str r3, [r7, #56] @ 0x38
  2124. sConfigOC.OCNPolarity = TIM_OCNPOLARITY_HIGH;
  2125. 8001080: 2300 movs r3, #0
  2126. 8001082: 63fb str r3, [r7, #60] @ 0x3c
  2127. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2128. 8001084: 2300 movs r3, #0
  2129. 8001086: 643b str r3, [r7, #64] @ 0x40
  2130. sConfigOC.OCIdleState = TIM_OCIDLESTATE_RESET;
  2131. 8001088: 2300 movs r3, #0
  2132. 800108a: 647b str r3, [r7, #68] @ 0x44
  2133. sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_RESET;
  2134. 800108c: 2300 movs r3, #0
  2135. 800108e: 64bb str r3, [r7, #72] @ 0x48
  2136. if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_2) != HAL_OK)
  2137. 8001090: f107 0330 add.w r3, r7, #48 @ 0x30
  2138. 8001094: 2204 movs r2, #4
  2139. 8001096: 4619 mov r1, r3
  2140. 8001098: 481d ldr r0, [pc, #116] @ (8001110 <MX_TIM1_Init+0x12c>)
  2141. 800109a: f00e fb05 bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  2142. 800109e: 4603 mov r3, r0
  2143. 80010a0: 2b00 cmp r3, #0
  2144. 80010a2: d001 beq.n 80010a8 <MX_TIM1_Init+0xc4>
  2145. {
  2146. Error_Handler();
  2147. 80010a4: f000 feca bl 8001e3c <Error_Handler>
  2148. }
  2149. sBreakDeadTimeConfig.OffStateRunMode = TIM_OSSR_DISABLE;
  2150. 80010a8: 2300 movs r3, #0
  2151. 80010aa: 607b str r3, [r7, #4]
  2152. sBreakDeadTimeConfig.OffStateIDLEMode = TIM_OSSI_DISABLE;
  2153. 80010ac: 2300 movs r3, #0
  2154. 80010ae: 60bb str r3, [r7, #8]
  2155. sBreakDeadTimeConfig.LockLevel = TIM_LOCKLEVEL_OFF;
  2156. 80010b0: 2300 movs r3, #0
  2157. 80010b2: 60fb str r3, [r7, #12]
  2158. sBreakDeadTimeConfig.DeadTime = 0;
  2159. 80010b4: 2300 movs r3, #0
  2160. 80010b6: 613b str r3, [r7, #16]
  2161. sBreakDeadTimeConfig.BreakState = TIM_BREAK_DISABLE;
  2162. 80010b8: 2300 movs r3, #0
  2163. 80010ba: 617b str r3, [r7, #20]
  2164. sBreakDeadTimeConfig.BreakPolarity = TIM_BREAKPOLARITY_HIGH;
  2165. 80010bc: f44f 5300 mov.w r3, #8192 @ 0x2000
  2166. 80010c0: 61bb str r3, [r7, #24]
  2167. sBreakDeadTimeConfig.BreakFilter = 0;
  2168. 80010c2: 2300 movs r3, #0
  2169. 80010c4: 61fb str r3, [r7, #28]
  2170. sBreakDeadTimeConfig.Break2State = TIM_BREAK2_DISABLE;
  2171. 80010c6: 2300 movs r3, #0
  2172. 80010c8: 623b str r3, [r7, #32]
  2173. sBreakDeadTimeConfig.Break2Polarity = TIM_BREAK2POLARITY_HIGH;
  2174. 80010ca: f04f 7300 mov.w r3, #33554432 @ 0x2000000
  2175. 80010ce: 627b str r3, [r7, #36] @ 0x24
  2176. sBreakDeadTimeConfig.Break2Filter = 0;
  2177. 80010d0: 2300 movs r3, #0
  2178. 80010d2: 62bb str r3, [r7, #40] @ 0x28
  2179. sBreakDeadTimeConfig.AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE;
  2180. 80010d4: 2300 movs r3, #0
  2181. 80010d6: 62fb str r3, [r7, #44] @ 0x2c
  2182. if (HAL_TIMEx_ConfigBreakDeadTime(&htim1, &sBreakDeadTimeConfig) != HAL_OK)
  2183. 80010d8: 1d3b adds r3, r7, #4
  2184. 80010da: 4619 mov r1, r3
  2185. 80010dc: 480c ldr r0, [pc, #48] @ (8001110 <MX_TIM1_Init+0x12c>)
  2186. 80010de: f00f fb83 bl 80107e8 <HAL_TIMEx_ConfigBreakDeadTime>
  2187. 80010e2: 4603 mov r3, r0
  2188. 80010e4: 2b00 cmp r3, #0
  2189. 80010e6: d001 beq.n 80010ec <MX_TIM1_Init+0x108>
  2190. {
  2191. Error_Handler();
  2192. 80010e8: f000 fea8 bl 8001e3c <Error_Handler>
  2193. }
  2194. /* USER CODE BEGIN TIM1_Init 2 */
  2195. memcpy(&fanTimerConfigOC, &sConfigOC, sizeof(TIM_OC_InitTypeDef));
  2196. 80010ec: 4b0a ldr r3, [pc, #40] @ (8001118 <MX_TIM1_Init+0x134>)
  2197. 80010ee: 461d mov r5, r3
  2198. 80010f0: f107 0430 add.w r4, r7, #48 @ 0x30
  2199. 80010f4: cc0f ldmia r4!, {r0, r1, r2, r3}
  2200. 80010f6: c50f stmia r5!, {r0, r1, r2, r3}
  2201. 80010f8: e894 0007 ldmia.w r4, {r0, r1, r2}
  2202. 80010fc: e885 0007 stmia.w r5, {r0, r1, r2}
  2203. /* USER CODE END TIM1_Init 2 */
  2204. HAL_TIM_MspPostInit(&htim1);
  2205. 8001100: 4803 ldr r0, [pc, #12] @ (8001110 <MX_TIM1_Init+0x12c>)
  2206. 8001102: f002 fd27 bl 8003b54 <HAL_TIM_MspPostInit>
  2207. }
  2208. 8001106: bf00 nop
  2209. 8001108: 3758 adds r7, #88 @ 0x58
  2210. 800110a: 46bd mov sp, r7
  2211. 800110c: bdb0 pop {r4, r5, r7, pc}
  2212. 800110e: bf00 nop
  2213. 8001110: 2400044c .word 0x2400044c
  2214. 8001114: 40010000 .word 0x40010000
  2215. 8001118: 24000768 .word 0x24000768
  2216. 0800111c <MX_TIM2_Init>:
  2217. * @brief TIM2 Initialization Function
  2218. * @param None
  2219. * @retval None
  2220. */
  2221. static void MX_TIM2_Init(void)
  2222. {
  2223. 800111c: b580 push {r7, lr}
  2224. 800111e: b08c sub sp, #48 @ 0x30
  2225. 8001120: af00 add r7, sp, #0
  2226. /* USER CODE BEGIN TIM2_Init 0 */
  2227. /* USER CODE END TIM2_Init 0 */
  2228. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2229. 8001122: f107 0320 add.w r3, r7, #32
  2230. 8001126: 2200 movs r2, #0
  2231. 8001128: 601a str r2, [r3, #0]
  2232. 800112a: 605a str r2, [r3, #4]
  2233. 800112c: 609a str r2, [r3, #8]
  2234. 800112e: 60da str r2, [r3, #12]
  2235. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2236. 8001130: f107 0314 add.w r3, r7, #20
  2237. 8001134: 2200 movs r2, #0
  2238. 8001136: 601a str r2, [r3, #0]
  2239. 8001138: 605a str r2, [r3, #4]
  2240. 800113a: 609a str r2, [r3, #8]
  2241. TIM_IC_InitTypeDef sConfigIC = {0};
  2242. 800113c: 1d3b adds r3, r7, #4
  2243. 800113e: 2200 movs r2, #0
  2244. 8001140: 601a str r2, [r3, #0]
  2245. 8001142: 605a str r2, [r3, #4]
  2246. 8001144: 609a str r2, [r3, #8]
  2247. 8001146: 60da str r2, [r3, #12]
  2248. /* USER CODE BEGIN TIM2_Init 1 */
  2249. /* USER CODE END TIM2_Init 1 */
  2250. htim2.Instance = TIM2;
  2251. 8001148: 4b31 ldr r3, [pc, #196] @ (8001210 <MX_TIM2_Init+0xf4>)
  2252. 800114a: f04f 4280 mov.w r2, #1073741824 @ 0x40000000
  2253. 800114e: 601a str r2, [r3, #0]
  2254. htim2.Init.Prescaler = 0;
  2255. 8001150: 4b2f ldr r3, [pc, #188] @ (8001210 <MX_TIM2_Init+0xf4>)
  2256. 8001152: 2200 movs r2, #0
  2257. 8001154: 605a str r2, [r3, #4]
  2258. htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
  2259. 8001156: 4b2e ldr r3, [pc, #184] @ (8001210 <MX_TIM2_Init+0xf4>)
  2260. 8001158: 2200 movs r2, #0
  2261. 800115a: 609a str r2, [r3, #8]
  2262. htim2.Init.Period = 9999999;
  2263. 800115c: 4b2c ldr r3, [pc, #176] @ (8001210 <MX_TIM2_Init+0xf4>)
  2264. 800115e: 4a2d ldr r2, [pc, #180] @ (8001214 <MX_TIM2_Init+0xf8>)
  2265. 8001160: 60da str r2, [r3, #12]
  2266. htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV2;
  2267. 8001162: 4b2b ldr r3, [pc, #172] @ (8001210 <MX_TIM2_Init+0xf4>)
  2268. 8001164: f44f 7280 mov.w r2, #256 @ 0x100
  2269. 8001168: 611a str r2, [r3, #16]
  2270. htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2271. 800116a: 4b29 ldr r3, [pc, #164] @ (8001210 <MX_TIM2_Init+0xf4>)
  2272. 800116c: 2280 movs r2, #128 @ 0x80
  2273. 800116e: 619a str r2, [r3, #24]
  2274. if (HAL_TIM_Base_Init(&htim2) != HAL_OK)
  2275. 8001170: 4827 ldr r0, [pc, #156] @ (8001210 <MX_TIM2_Init+0xf4>)
  2276. 8001172: f00d fc07 bl 800e984 <HAL_TIM_Base_Init>
  2277. 8001176: 4603 mov r3, r0
  2278. 8001178: 2b00 cmp r3, #0
  2279. 800117a: d001 beq.n 8001180 <MX_TIM2_Init+0x64>
  2280. {
  2281. Error_Handler();
  2282. 800117c: f000 fe5e bl 8001e3c <Error_Handler>
  2283. }
  2284. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2285. 8001180: f44f 5380 mov.w r3, #4096 @ 0x1000
  2286. 8001184: 623b str r3, [r7, #32]
  2287. if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK)
  2288. 8001186: f107 0320 add.w r3, r7, #32
  2289. 800118a: 4619 mov r1, r3
  2290. 800118c: 4820 ldr r0, [pc, #128] @ (8001210 <MX_TIM2_Init+0xf4>)
  2291. 800118e: f00e fb9f bl 800f8d0 <HAL_TIM_ConfigClockSource>
  2292. 8001192: 4603 mov r3, r0
  2293. 8001194: 2b00 cmp r3, #0
  2294. 8001196: d001 beq.n 800119c <MX_TIM2_Init+0x80>
  2295. {
  2296. Error_Handler();
  2297. 8001198: f000 fe50 bl 8001e3c <Error_Handler>
  2298. }
  2299. if (HAL_TIM_IC_Init(&htim2) != HAL_OK)
  2300. 800119c: 481c ldr r0, [pc, #112] @ (8001210 <MX_TIM2_Init+0xf4>)
  2301. 800119e: f00d ff2d bl 800effc <HAL_TIM_IC_Init>
  2302. 80011a2: 4603 mov r3, r0
  2303. 80011a4: 2b00 cmp r3, #0
  2304. 80011a6: d001 beq.n 80011ac <MX_TIM2_Init+0x90>
  2305. {
  2306. Error_Handler();
  2307. 80011a8: f000 fe48 bl 8001e3c <Error_Handler>
  2308. }
  2309. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2310. 80011ac: 2320 movs r3, #32
  2311. 80011ae: 617b str r3, [r7, #20]
  2312. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_ENABLE;
  2313. 80011b0: 2380 movs r3, #128 @ 0x80
  2314. 80011b2: 61fb str r3, [r7, #28]
  2315. if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK)
  2316. 80011b4: f107 0314 add.w r3, r7, #20
  2317. 80011b8: 4619 mov r1, r3
  2318. 80011ba: 4815 ldr r0, [pc, #84] @ (8001210 <MX_TIM2_Init+0xf4>)
  2319. 80011bc: f00f fa86 bl 80106cc <HAL_TIMEx_MasterConfigSynchronization>
  2320. 80011c0: 4603 mov r3, r0
  2321. 80011c2: 2b00 cmp r3, #0
  2322. 80011c4: d001 beq.n 80011ca <MX_TIM2_Init+0xae>
  2323. {
  2324. Error_Handler();
  2325. 80011c6: f000 fe39 bl 8001e3c <Error_Handler>
  2326. }
  2327. sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_RISING;
  2328. 80011ca: 2300 movs r3, #0
  2329. 80011cc: 607b str r3, [r7, #4]
  2330. sConfigIC.ICSelection = TIM_ICSELECTION_DIRECTTI;
  2331. 80011ce: 2301 movs r3, #1
  2332. 80011d0: 60bb str r3, [r7, #8]
  2333. sConfigIC.ICPrescaler = TIM_ICPSC_DIV1;
  2334. 80011d2: 2300 movs r3, #0
  2335. 80011d4: 60fb str r3, [r7, #12]
  2336. sConfigIC.ICFilter = 0;
  2337. 80011d6: 2300 movs r3, #0
  2338. 80011d8: 613b str r3, [r7, #16]
  2339. if (HAL_TIM_IC_ConfigChannel(&htim2, &sConfigIC, TIM_CHANNEL_3) != HAL_OK)
  2340. 80011da: 1d3b adds r3, r7, #4
  2341. 80011dc: 2208 movs r2, #8
  2342. 80011de: 4619 mov r1, r3
  2343. 80011e0: 480b ldr r0, [pc, #44] @ (8001210 <MX_TIM2_Init+0xf4>)
  2344. 80011e2: f00e f9c4 bl 800f56e <HAL_TIM_IC_ConfigChannel>
  2345. 80011e6: 4603 mov r3, r0
  2346. 80011e8: 2b00 cmp r3, #0
  2347. 80011ea: d001 beq.n 80011f0 <MX_TIM2_Init+0xd4>
  2348. {
  2349. Error_Handler();
  2350. 80011ec: f000 fe26 bl 8001e3c <Error_Handler>
  2351. }
  2352. if (HAL_TIM_IC_ConfigChannel(&htim2, &sConfigIC, TIM_CHANNEL_4) != HAL_OK)
  2353. 80011f0: 1d3b adds r3, r7, #4
  2354. 80011f2: 220c movs r2, #12
  2355. 80011f4: 4619 mov r1, r3
  2356. 80011f6: 4806 ldr r0, [pc, #24] @ (8001210 <MX_TIM2_Init+0xf4>)
  2357. 80011f8: f00e f9b9 bl 800f56e <HAL_TIM_IC_ConfigChannel>
  2358. 80011fc: 4603 mov r3, r0
  2359. 80011fe: 2b00 cmp r3, #0
  2360. 8001200: d001 beq.n 8001206 <MX_TIM2_Init+0xea>
  2361. {
  2362. Error_Handler();
  2363. 8001202: f000 fe1b bl 8001e3c <Error_Handler>
  2364. }
  2365. /* USER CODE BEGIN TIM2_Init 2 */
  2366. /* USER CODE END TIM2_Init 2 */
  2367. }
  2368. 8001206: bf00 nop
  2369. 8001208: 3730 adds r7, #48 @ 0x30
  2370. 800120a: 46bd mov sp, r7
  2371. 800120c: bd80 pop {r7, pc}
  2372. 800120e: bf00 nop
  2373. 8001210: 24000498 .word 0x24000498
  2374. 8001214: 0098967f .word 0x0098967f
  2375. 08001218 <MX_TIM3_Init>:
  2376. * @brief TIM3 Initialization Function
  2377. * @param None
  2378. * @retval None
  2379. */
  2380. static void MX_TIM3_Init(void)
  2381. {
  2382. 8001218: b5b0 push {r4, r5, r7, lr}
  2383. 800121a: b08a sub sp, #40 @ 0x28
  2384. 800121c: af00 add r7, sp, #0
  2385. /* USER CODE BEGIN TIM3_Init 0 */
  2386. /* USER CODE END TIM3_Init 0 */
  2387. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2388. 800121e: f107 031c add.w r3, r7, #28
  2389. 8001222: 2200 movs r2, #0
  2390. 8001224: 601a str r2, [r3, #0]
  2391. 8001226: 605a str r2, [r3, #4]
  2392. 8001228: 609a str r2, [r3, #8]
  2393. TIM_OC_InitTypeDef sConfigOC = {0};
  2394. 800122a: 463b mov r3, r7
  2395. 800122c: 2200 movs r2, #0
  2396. 800122e: 601a str r2, [r3, #0]
  2397. 8001230: 605a str r2, [r3, #4]
  2398. 8001232: 609a str r2, [r3, #8]
  2399. 8001234: 60da str r2, [r3, #12]
  2400. 8001236: 611a str r2, [r3, #16]
  2401. 8001238: 615a str r2, [r3, #20]
  2402. 800123a: 619a str r2, [r3, #24]
  2403. /* USER CODE BEGIN TIM3_Init 1 */
  2404. /* USER CODE END TIM3_Init 1 */
  2405. htim3.Instance = TIM3;
  2406. 800123c: 4b48 ldr r3, [pc, #288] @ (8001360 <MX_TIM3_Init+0x148>)
  2407. 800123e: 4a49 ldr r2, [pc, #292] @ (8001364 <MX_TIM3_Init+0x14c>)
  2408. 8001240: 601a str r2, [r3, #0]
  2409. htim3.Init.Prescaler = 199;
  2410. 8001242: 4b47 ldr r3, [pc, #284] @ (8001360 <MX_TIM3_Init+0x148>)
  2411. 8001244: 22c7 movs r2, #199 @ 0xc7
  2412. 8001246: 605a str r2, [r3, #4]
  2413. htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
  2414. 8001248: 4b45 ldr r3, [pc, #276] @ (8001360 <MX_TIM3_Init+0x148>)
  2415. 800124a: 2200 movs r2, #0
  2416. 800124c: 609a str r2, [r3, #8]
  2417. htim3.Init.Period = 999;
  2418. 800124e: 4b44 ldr r3, [pc, #272] @ (8001360 <MX_TIM3_Init+0x148>)
  2419. 8001250: f240 32e7 movw r2, #999 @ 0x3e7
  2420. 8001254: 60da str r2, [r3, #12]
  2421. htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2422. 8001256: 4b42 ldr r3, [pc, #264] @ (8001360 <MX_TIM3_Init+0x148>)
  2423. 8001258: 2200 movs r2, #0
  2424. 800125a: 611a str r2, [r3, #16]
  2425. htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2426. 800125c: 4b40 ldr r3, [pc, #256] @ (8001360 <MX_TIM3_Init+0x148>)
  2427. 800125e: 2280 movs r2, #128 @ 0x80
  2428. 8001260: 619a str r2, [r3, #24]
  2429. if (HAL_TIM_PWM_Init(&htim3) != HAL_OK)
  2430. 8001262: 483f ldr r0, [pc, #252] @ (8001360 <MX_TIM3_Init+0x148>)
  2431. 8001264: f00d fcce bl 800ec04 <HAL_TIM_PWM_Init>
  2432. 8001268: 4603 mov r3, r0
  2433. 800126a: 2b00 cmp r3, #0
  2434. 800126c: d001 beq.n 8001272 <MX_TIM3_Init+0x5a>
  2435. {
  2436. Error_Handler();
  2437. 800126e: f000 fde5 bl 8001e3c <Error_Handler>
  2438. }
  2439. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2440. 8001272: 2300 movs r3, #0
  2441. 8001274: 61fb str r3, [r7, #28]
  2442. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2443. 8001276: 2300 movs r3, #0
  2444. 8001278: 627b str r3, [r7, #36] @ 0x24
  2445. if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
  2446. 800127a: f107 031c add.w r3, r7, #28
  2447. 800127e: 4619 mov r1, r3
  2448. 8001280: 4837 ldr r0, [pc, #220] @ (8001360 <MX_TIM3_Init+0x148>)
  2449. 8001282: f00f fa23 bl 80106cc <HAL_TIMEx_MasterConfigSynchronization>
  2450. 8001286: 4603 mov r3, r0
  2451. 8001288: 2b00 cmp r3, #0
  2452. 800128a: d001 beq.n 8001290 <MX_TIM3_Init+0x78>
  2453. {
  2454. Error_Handler();
  2455. 800128c: f000 fdd6 bl 8001e3c <Error_Handler>
  2456. }
  2457. sConfigOC.OCMode = TIM_OCMODE_COMBINED_PWM1;
  2458. 8001290: 4b35 ldr r3, [pc, #212] @ (8001368 <MX_TIM3_Init+0x150>)
  2459. 8001292: 603b str r3, [r7, #0]
  2460. sConfigOC.Pulse = 500;
  2461. 8001294: f44f 73fa mov.w r3, #500 @ 0x1f4
  2462. 8001298: 607b str r3, [r7, #4]
  2463. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2464. 800129a: 2300 movs r3, #0
  2465. 800129c: 60bb str r3, [r7, #8]
  2466. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2467. 800129e: 2300 movs r3, #0
  2468. 80012a0: 613b str r3, [r7, #16]
  2469. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_1) != HAL_OK)
  2470. 80012a2: 463b mov r3, r7
  2471. 80012a4: 2200 movs r2, #0
  2472. 80012a6: 4619 mov r1, r3
  2473. 80012a8: 482d ldr r0, [pc, #180] @ (8001360 <MX_TIM3_Init+0x148>)
  2474. 80012aa: f00e f9fd bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  2475. 80012ae: 4603 mov r3, r0
  2476. 80012b0: 2b00 cmp r3, #0
  2477. 80012b2: d001 beq.n 80012b8 <MX_TIM3_Init+0xa0>
  2478. {
  2479. Error_Handler();
  2480. 80012b4: f000 fdc2 bl 8001e3c <Error_Handler>
  2481. }
  2482. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_1);
  2483. 80012b8: 4b29 ldr r3, [pc, #164] @ (8001360 <MX_TIM3_Init+0x148>)
  2484. 80012ba: 681b ldr r3, [r3, #0]
  2485. 80012bc: 699a ldr r2, [r3, #24]
  2486. 80012be: 4b28 ldr r3, [pc, #160] @ (8001360 <MX_TIM3_Init+0x148>)
  2487. 80012c0: 681b ldr r3, [r3, #0]
  2488. 80012c2: f022 0208 bic.w r2, r2, #8
  2489. 80012c6: 619a str r2, [r3, #24]
  2490. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2491. 80012c8: 2360 movs r3, #96 @ 0x60
  2492. 80012ca: 603b str r3, [r7, #0]
  2493. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_2) != HAL_OK)
  2494. 80012cc: 463b mov r3, r7
  2495. 80012ce: 2204 movs r2, #4
  2496. 80012d0: 4619 mov r1, r3
  2497. 80012d2: 4823 ldr r0, [pc, #140] @ (8001360 <MX_TIM3_Init+0x148>)
  2498. 80012d4: f00e f9e8 bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  2499. 80012d8: 4603 mov r3, r0
  2500. 80012da: 2b00 cmp r3, #0
  2501. 80012dc: d001 beq.n 80012e2 <MX_TIM3_Init+0xca>
  2502. {
  2503. Error_Handler();
  2504. 80012de: f000 fdad bl 8001e3c <Error_Handler>
  2505. }
  2506. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_2);
  2507. 80012e2: 4b1f ldr r3, [pc, #124] @ (8001360 <MX_TIM3_Init+0x148>)
  2508. 80012e4: 681b ldr r3, [r3, #0]
  2509. 80012e6: 699a ldr r2, [r3, #24]
  2510. 80012e8: 4b1d ldr r3, [pc, #116] @ (8001360 <MX_TIM3_Init+0x148>)
  2511. 80012ea: 681b ldr r3, [r3, #0]
  2512. 80012ec: f422 6200 bic.w r2, r2, #2048 @ 0x800
  2513. 80012f0: 619a str r2, [r3, #24]
  2514. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_3) != HAL_OK)
  2515. 80012f2: 463b mov r3, r7
  2516. 80012f4: 2208 movs r2, #8
  2517. 80012f6: 4619 mov r1, r3
  2518. 80012f8: 4819 ldr r0, [pc, #100] @ (8001360 <MX_TIM3_Init+0x148>)
  2519. 80012fa: f00e f9d5 bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  2520. 80012fe: 4603 mov r3, r0
  2521. 8001300: 2b00 cmp r3, #0
  2522. 8001302: d001 beq.n 8001308 <MX_TIM3_Init+0xf0>
  2523. {
  2524. Error_Handler();
  2525. 8001304: f000 fd9a bl 8001e3c <Error_Handler>
  2526. }
  2527. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_3);
  2528. 8001308: 4b15 ldr r3, [pc, #84] @ (8001360 <MX_TIM3_Init+0x148>)
  2529. 800130a: 681b ldr r3, [r3, #0]
  2530. 800130c: 69da ldr r2, [r3, #28]
  2531. 800130e: 4b14 ldr r3, [pc, #80] @ (8001360 <MX_TIM3_Init+0x148>)
  2532. 8001310: 681b ldr r3, [r3, #0]
  2533. 8001312: f022 0208 bic.w r2, r2, #8
  2534. 8001316: 61da str r2, [r3, #28]
  2535. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_4) != HAL_OK)
  2536. 8001318: 463b mov r3, r7
  2537. 800131a: 220c movs r2, #12
  2538. 800131c: 4619 mov r1, r3
  2539. 800131e: 4810 ldr r0, [pc, #64] @ (8001360 <MX_TIM3_Init+0x148>)
  2540. 8001320: f00e f9c2 bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  2541. 8001324: 4603 mov r3, r0
  2542. 8001326: 2b00 cmp r3, #0
  2543. 8001328: d001 beq.n 800132e <MX_TIM3_Init+0x116>
  2544. {
  2545. Error_Handler();
  2546. 800132a: f000 fd87 bl 8001e3c <Error_Handler>
  2547. }
  2548. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_4);
  2549. 800132e: 4b0c ldr r3, [pc, #48] @ (8001360 <MX_TIM3_Init+0x148>)
  2550. 8001330: 681b ldr r3, [r3, #0]
  2551. 8001332: 69da ldr r2, [r3, #28]
  2552. 8001334: 4b0a ldr r3, [pc, #40] @ (8001360 <MX_TIM3_Init+0x148>)
  2553. 8001336: 681b ldr r3, [r3, #0]
  2554. 8001338: f422 6200 bic.w r2, r2, #2048 @ 0x800
  2555. 800133c: 61da str r2, [r3, #28]
  2556. /* USER CODE BEGIN TIM3_Init 2 */
  2557. memcpy(&motorXYTimerConfigOC, &sConfigOC, sizeof(TIM_OC_InitTypeDef));
  2558. 800133e: 4b0b ldr r3, [pc, #44] @ (800136c <MX_TIM3_Init+0x154>)
  2559. 8001340: 461d mov r5, r3
  2560. 8001342: 463c mov r4, r7
  2561. 8001344: cc0f ldmia r4!, {r0, r1, r2, r3}
  2562. 8001346: c50f stmia r5!, {r0, r1, r2, r3}
  2563. 8001348: e894 0007 ldmia.w r4, {r0, r1, r2}
  2564. 800134c: e885 0007 stmia.w r5, {r0, r1, r2}
  2565. /* USER CODE END TIM3_Init 2 */
  2566. HAL_TIM_MspPostInit(&htim3);
  2567. 8001350: 4803 ldr r0, [pc, #12] @ (8001360 <MX_TIM3_Init+0x148>)
  2568. 8001352: f002 fbff bl 8003b54 <HAL_TIM_MspPostInit>
  2569. }
  2570. 8001356: bf00 nop
  2571. 8001358: 3728 adds r7, #40 @ 0x28
  2572. 800135a: 46bd mov sp, r7
  2573. 800135c: bdb0 pop {r4, r5, r7, pc}
  2574. 800135e: bf00 nop
  2575. 8001360: 240004e4 .word 0x240004e4
  2576. 8001364: 40000400 .word 0x40000400
  2577. 8001368: 00010040 .word 0x00010040
  2578. 800136c: 24000784 .word 0x24000784
  2579. 08001370 <MX_TIM4_Init>:
  2580. * @brief TIM4 Initialization Function
  2581. * @param None
  2582. * @retval None
  2583. */
  2584. static void MX_TIM4_Init(void)
  2585. {
  2586. 8001370: b580 push {r7, lr}
  2587. 8001372: b08c sub sp, #48 @ 0x30
  2588. 8001374: af00 add r7, sp, #0
  2589. /* USER CODE BEGIN TIM4_Init 0 */
  2590. /* USER CODE END TIM4_Init 0 */
  2591. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2592. 8001376: f107 0320 add.w r3, r7, #32
  2593. 800137a: 2200 movs r2, #0
  2594. 800137c: 601a str r2, [r3, #0]
  2595. 800137e: 605a str r2, [r3, #4]
  2596. 8001380: 609a str r2, [r3, #8]
  2597. 8001382: 60da str r2, [r3, #12]
  2598. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2599. 8001384: f107 0314 add.w r3, r7, #20
  2600. 8001388: 2200 movs r2, #0
  2601. 800138a: 601a str r2, [r3, #0]
  2602. 800138c: 605a str r2, [r3, #4]
  2603. 800138e: 609a str r2, [r3, #8]
  2604. TIM_IC_InitTypeDef sConfigIC = {0};
  2605. 8001390: 1d3b adds r3, r7, #4
  2606. 8001392: 2200 movs r2, #0
  2607. 8001394: 601a str r2, [r3, #0]
  2608. 8001396: 605a str r2, [r3, #4]
  2609. 8001398: 609a str r2, [r3, #8]
  2610. 800139a: 60da str r2, [r3, #12]
  2611. /* USER CODE BEGIN TIM4_Init 1 */
  2612. /* USER CODE END TIM4_Init 1 */
  2613. htim4.Instance = TIM4;
  2614. 800139c: 4b31 ldr r3, [pc, #196] @ (8001464 <MX_TIM4_Init+0xf4>)
  2615. 800139e: 4a32 ldr r2, [pc, #200] @ (8001468 <MX_TIM4_Init+0xf8>)
  2616. 80013a0: 601a str r2, [r3, #0]
  2617. htim4.Init.Prescaler = 19999;
  2618. 80013a2: 4b30 ldr r3, [pc, #192] @ (8001464 <MX_TIM4_Init+0xf4>)
  2619. 80013a4: f644 621f movw r2, #19999 @ 0x4e1f
  2620. 80013a8: 605a str r2, [r3, #4]
  2621. htim4.Init.CounterMode = TIM_COUNTERMODE_UP;
  2622. 80013aa: 4b2e ldr r3, [pc, #184] @ (8001464 <MX_TIM4_Init+0xf4>)
  2623. 80013ac: 2200 movs r2, #0
  2624. 80013ae: 609a str r2, [r3, #8]
  2625. htim4.Init.Period = 9999;
  2626. 80013b0: 4b2c ldr r3, [pc, #176] @ (8001464 <MX_TIM4_Init+0xf4>)
  2627. 80013b2: f242 720f movw r2, #9999 @ 0x270f
  2628. 80013b6: 60da str r2, [r3, #12]
  2629. htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2630. 80013b8: 4b2a ldr r3, [pc, #168] @ (8001464 <MX_TIM4_Init+0xf4>)
  2631. 80013ba: 2200 movs r2, #0
  2632. 80013bc: 611a str r2, [r3, #16]
  2633. htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2634. 80013be: 4b29 ldr r3, [pc, #164] @ (8001464 <MX_TIM4_Init+0xf4>)
  2635. 80013c0: 2280 movs r2, #128 @ 0x80
  2636. 80013c2: 619a str r2, [r3, #24]
  2637. if (HAL_TIM_Base_Init(&htim4) != HAL_OK)
  2638. 80013c4: 4827 ldr r0, [pc, #156] @ (8001464 <MX_TIM4_Init+0xf4>)
  2639. 80013c6: f00d fadd bl 800e984 <HAL_TIM_Base_Init>
  2640. 80013ca: 4603 mov r3, r0
  2641. 80013cc: 2b00 cmp r3, #0
  2642. 80013ce: d001 beq.n 80013d4 <MX_TIM4_Init+0x64>
  2643. {
  2644. Error_Handler();
  2645. 80013d0: f000 fd34 bl 8001e3c <Error_Handler>
  2646. }
  2647. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2648. 80013d4: f44f 5380 mov.w r3, #4096 @ 0x1000
  2649. 80013d8: 623b str r3, [r7, #32]
  2650. if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK)
  2651. 80013da: f107 0320 add.w r3, r7, #32
  2652. 80013de: 4619 mov r1, r3
  2653. 80013e0: 4820 ldr r0, [pc, #128] @ (8001464 <MX_TIM4_Init+0xf4>)
  2654. 80013e2: f00e fa75 bl 800f8d0 <HAL_TIM_ConfigClockSource>
  2655. 80013e6: 4603 mov r3, r0
  2656. 80013e8: 2b00 cmp r3, #0
  2657. 80013ea: d001 beq.n 80013f0 <MX_TIM4_Init+0x80>
  2658. {
  2659. Error_Handler();
  2660. 80013ec: f000 fd26 bl 8001e3c <Error_Handler>
  2661. }
  2662. if (HAL_TIM_IC_Init(&htim4) != HAL_OK)
  2663. 80013f0: 481c ldr r0, [pc, #112] @ (8001464 <MX_TIM4_Init+0xf4>)
  2664. 80013f2: f00d fe03 bl 800effc <HAL_TIM_IC_Init>
  2665. 80013f6: 4603 mov r3, r0
  2666. 80013f8: 2b00 cmp r3, #0
  2667. 80013fa: d001 beq.n 8001400 <MX_TIM4_Init+0x90>
  2668. {
  2669. Error_Handler();
  2670. 80013fc: f000 fd1e bl 8001e3c <Error_Handler>
  2671. }
  2672. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2673. 8001400: 2300 movs r3, #0
  2674. 8001402: 617b str r3, [r7, #20]
  2675. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2676. 8001404: 2300 movs r3, #0
  2677. 8001406: 61fb str r3, [r7, #28]
  2678. if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK)
  2679. 8001408: f107 0314 add.w r3, r7, #20
  2680. 800140c: 4619 mov r1, r3
  2681. 800140e: 4815 ldr r0, [pc, #84] @ (8001464 <MX_TIM4_Init+0xf4>)
  2682. 8001410: f00f f95c bl 80106cc <HAL_TIMEx_MasterConfigSynchronization>
  2683. 8001414: 4603 mov r3, r0
  2684. 8001416: 2b00 cmp r3, #0
  2685. 8001418: d001 beq.n 800141e <MX_TIM4_Init+0xae>
  2686. {
  2687. Error_Handler();
  2688. 800141a: f000 fd0f bl 8001e3c <Error_Handler>
  2689. }
  2690. sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_RISING;
  2691. 800141e: 2300 movs r3, #0
  2692. 8001420: 607b str r3, [r7, #4]
  2693. sConfigIC.ICSelection = TIM_ICSELECTION_DIRECTTI;
  2694. 8001422: 2301 movs r3, #1
  2695. 8001424: 60bb str r3, [r7, #8]
  2696. sConfigIC.ICPrescaler = TIM_ICPSC_DIV1;
  2697. 8001426: 2300 movs r3, #0
  2698. 8001428: 60fb str r3, [r7, #12]
  2699. sConfigIC.ICFilter = 0;
  2700. 800142a: 2300 movs r3, #0
  2701. 800142c: 613b str r3, [r7, #16]
  2702. if (HAL_TIM_IC_ConfigChannel(&htim4, &sConfigIC, TIM_CHANNEL_3) != HAL_OK)
  2703. 800142e: 1d3b adds r3, r7, #4
  2704. 8001430: 2208 movs r2, #8
  2705. 8001432: 4619 mov r1, r3
  2706. 8001434: 480b ldr r0, [pc, #44] @ (8001464 <MX_TIM4_Init+0xf4>)
  2707. 8001436: f00e f89a bl 800f56e <HAL_TIM_IC_ConfigChannel>
  2708. 800143a: 4603 mov r3, r0
  2709. 800143c: 2b00 cmp r3, #0
  2710. 800143e: d001 beq.n 8001444 <MX_TIM4_Init+0xd4>
  2711. {
  2712. Error_Handler();
  2713. 8001440: f000 fcfc bl 8001e3c <Error_Handler>
  2714. }
  2715. if (HAL_TIM_IC_ConfigChannel(&htim4, &sConfigIC, TIM_CHANNEL_4) != HAL_OK)
  2716. 8001444: 1d3b adds r3, r7, #4
  2717. 8001446: 220c movs r2, #12
  2718. 8001448: 4619 mov r1, r3
  2719. 800144a: 4806 ldr r0, [pc, #24] @ (8001464 <MX_TIM4_Init+0xf4>)
  2720. 800144c: f00e f88f bl 800f56e <HAL_TIM_IC_ConfigChannel>
  2721. 8001450: 4603 mov r3, r0
  2722. 8001452: 2b00 cmp r3, #0
  2723. 8001454: d001 beq.n 800145a <MX_TIM4_Init+0xea>
  2724. {
  2725. Error_Handler();
  2726. 8001456: f000 fcf1 bl 8001e3c <Error_Handler>
  2727. }
  2728. /* USER CODE BEGIN TIM4_Init 2 */
  2729. /* USER CODE END TIM4_Init 2 */
  2730. }
  2731. 800145a: bf00 nop
  2732. 800145c: 3730 adds r7, #48 @ 0x30
  2733. 800145e: 46bd mov sp, r7
  2734. 8001460: bd80 pop {r7, pc}
  2735. 8001462: bf00 nop
  2736. 8001464: 24000530 .word 0x24000530
  2737. 8001468: 40000800 .word 0x40000800
  2738. 0800146c <MX_UART8_Init>:
  2739. * @brief UART8 Initialization Function
  2740. * @param None
  2741. * @retval None
  2742. */
  2743. static void MX_UART8_Init(void)
  2744. {
  2745. 800146c: b580 push {r7, lr}
  2746. 800146e: af00 add r7, sp, #0
  2747. /* USER CODE END UART8_Init 0 */
  2748. /* USER CODE BEGIN UART8_Init 1 */
  2749. /* USER CODE END UART8_Init 1 */
  2750. huart8.Instance = UART8;
  2751. 8001470: 4b22 ldr r3, [pc, #136] @ (80014fc <MX_UART8_Init+0x90>)
  2752. 8001472: 4a23 ldr r2, [pc, #140] @ (8001500 <MX_UART8_Init+0x94>)
  2753. 8001474: 601a str r2, [r3, #0]
  2754. huart8.Init.BaudRate = 115200;
  2755. 8001476: 4b21 ldr r3, [pc, #132] @ (80014fc <MX_UART8_Init+0x90>)
  2756. 8001478: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  2757. 800147c: 605a str r2, [r3, #4]
  2758. huart8.Init.WordLength = UART_WORDLENGTH_8B;
  2759. 800147e: 4b1f ldr r3, [pc, #124] @ (80014fc <MX_UART8_Init+0x90>)
  2760. 8001480: 2200 movs r2, #0
  2761. 8001482: 609a str r2, [r3, #8]
  2762. huart8.Init.StopBits = UART_STOPBITS_1;
  2763. 8001484: 4b1d ldr r3, [pc, #116] @ (80014fc <MX_UART8_Init+0x90>)
  2764. 8001486: 2200 movs r2, #0
  2765. 8001488: 60da str r2, [r3, #12]
  2766. huart8.Init.Parity = UART_PARITY_NONE;
  2767. 800148a: 4b1c ldr r3, [pc, #112] @ (80014fc <MX_UART8_Init+0x90>)
  2768. 800148c: 2200 movs r2, #0
  2769. 800148e: 611a str r2, [r3, #16]
  2770. huart8.Init.Mode = UART_MODE_TX_RX;
  2771. 8001490: 4b1a ldr r3, [pc, #104] @ (80014fc <MX_UART8_Init+0x90>)
  2772. 8001492: 220c movs r2, #12
  2773. 8001494: 615a str r2, [r3, #20]
  2774. huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  2775. 8001496: 4b19 ldr r3, [pc, #100] @ (80014fc <MX_UART8_Init+0x90>)
  2776. 8001498: 2200 movs r2, #0
  2777. 800149a: 619a str r2, [r3, #24]
  2778. huart8.Init.OverSampling = UART_OVERSAMPLING_16;
  2779. 800149c: 4b17 ldr r3, [pc, #92] @ (80014fc <MX_UART8_Init+0x90>)
  2780. 800149e: 2200 movs r2, #0
  2781. 80014a0: 61da str r2, [r3, #28]
  2782. huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  2783. 80014a2: 4b16 ldr r3, [pc, #88] @ (80014fc <MX_UART8_Init+0x90>)
  2784. 80014a4: 2200 movs r2, #0
  2785. 80014a6: 621a str r2, [r3, #32]
  2786. huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  2787. 80014a8: 4b14 ldr r3, [pc, #80] @ (80014fc <MX_UART8_Init+0x90>)
  2788. 80014aa: 2200 movs r2, #0
  2789. 80014ac: 625a str r2, [r3, #36] @ 0x24
  2790. huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
  2791. 80014ae: 4b13 ldr r3, [pc, #76] @ (80014fc <MX_UART8_Init+0x90>)
  2792. 80014b0: 2200 movs r2, #0
  2793. 80014b2: 629a str r2, [r3, #40] @ 0x28
  2794. if (HAL_UART_Init(&huart8) != HAL_OK)
  2795. 80014b4: 4811 ldr r0, [pc, #68] @ (80014fc <MX_UART8_Init+0x90>)
  2796. 80014b6: f00f fa33 bl 8010920 <HAL_UART_Init>
  2797. 80014ba: 4603 mov r3, r0
  2798. 80014bc: 2b00 cmp r3, #0
  2799. 80014be: d001 beq.n 80014c4 <MX_UART8_Init+0x58>
  2800. {
  2801. Error_Handler();
  2802. 80014c0: f000 fcbc bl 8001e3c <Error_Handler>
  2803. }
  2804. if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  2805. 80014c4: 2100 movs r1, #0
  2806. 80014c6: 480d ldr r0, [pc, #52] @ (80014fc <MX_UART8_Init+0x90>)
  2807. 80014c8: f011 ff61 bl 801338e <HAL_UARTEx_SetTxFifoThreshold>
  2808. 80014cc: 4603 mov r3, r0
  2809. 80014ce: 2b00 cmp r3, #0
  2810. 80014d0: d001 beq.n 80014d6 <MX_UART8_Init+0x6a>
  2811. {
  2812. Error_Handler();
  2813. 80014d2: f000 fcb3 bl 8001e3c <Error_Handler>
  2814. }
  2815. if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  2816. 80014d6: 2100 movs r1, #0
  2817. 80014d8: 4808 ldr r0, [pc, #32] @ (80014fc <MX_UART8_Init+0x90>)
  2818. 80014da: f011 ff96 bl 801340a <HAL_UARTEx_SetRxFifoThreshold>
  2819. 80014de: 4603 mov r3, r0
  2820. 80014e0: 2b00 cmp r3, #0
  2821. 80014e2: d001 beq.n 80014e8 <MX_UART8_Init+0x7c>
  2822. {
  2823. Error_Handler();
  2824. 80014e4: f000 fcaa bl 8001e3c <Error_Handler>
  2825. }
  2826. if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK)
  2827. 80014e8: 4804 ldr r0, [pc, #16] @ (80014fc <MX_UART8_Init+0x90>)
  2828. 80014ea: f011 ff17 bl 801331c <HAL_UARTEx_DisableFifoMode>
  2829. 80014ee: 4603 mov r3, r0
  2830. 80014f0: 2b00 cmp r3, #0
  2831. 80014f2: d001 beq.n 80014f8 <MX_UART8_Init+0x8c>
  2832. {
  2833. Error_Handler();
  2834. 80014f4: f000 fca2 bl 8001e3c <Error_Handler>
  2835. }
  2836. /* USER CODE BEGIN UART8_Init 2 */
  2837. /* USER CODE END UART8_Init 2 */
  2838. }
  2839. 80014f8: bf00 nop
  2840. 80014fa: bd80 pop {r7, pc}
  2841. 80014fc: 2400057c .word 0x2400057c
  2842. 8001500: 40007c00 .word 0x40007c00
  2843. 08001504 <MX_USART1_UART_Init>:
  2844. * @brief USART1 Initialization Function
  2845. * @param None
  2846. * @retval None
  2847. */
  2848. static void MX_USART1_UART_Init(void)
  2849. {
  2850. 8001504: b580 push {r7, lr}
  2851. 8001506: af00 add r7, sp, #0
  2852. /* USER CODE END USART1_Init 0 */
  2853. /* USER CODE BEGIN USART1_Init 1 */
  2854. /* USER CODE END USART1_Init 1 */
  2855. huart1.Instance = USART1;
  2856. 8001508: 4b24 ldr r3, [pc, #144] @ (800159c <MX_USART1_UART_Init+0x98>)
  2857. 800150a: 4a25 ldr r2, [pc, #148] @ (80015a0 <MX_USART1_UART_Init+0x9c>)
  2858. 800150c: 601a str r2, [r3, #0]
  2859. huart1.Init.BaudRate = 115200;
  2860. 800150e: 4b23 ldr r3, [pc, #140] @ (800159c <MX_USART1_UART_Init+0x98>)
  2861. 8001510: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  2862. 8001514: 605a str r2, [r3, #4]
  2863. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  2864. 8001516: 4b21 ldr r3, [pc, #132] @ (800159c <MX_USART1_UART_Init+0x98>)
  2865. 8001518: 2200 movs r2, #0
  2866. 800151a: 609a str r2, [r3, #8]
  2867. huart1.Init.StopBits = UART_STOPBITS_1;
  2868. 800151c: 4b1f ldr r3, [pc, #124] @ (800159c <MX_USART1_UART_Init+0x98>)
  2869. 800151e: 2200 movs r2, #0
  2870. 8001520: 60da str r2, [r3, #12]
  2871. huart1.Init.Parity = UART_PARITY_NONE;
  2872. 8001522: 4b1e ldr r3, [pc, #120] @ (800159c <MX_USART1_UART_Init+0x98>)
  2873. 8001524: 2200 movs r2, #0
  2874. 8001526: 611a str r2, [r3, #16]
  2875. huart1.Init.Mode = UART_MODE_TX_RX;
  2876. 8001528: 4b1c ldr r3, [pc, #112] @ (800159c <MX_USART1_UART_Init+0x98>)
  2877. 800152a: 220c movs r2, #12
  2878. 800152c: 615a str r2, [r3, #20]
  2879. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  2880. 800152e: 4b1b ldr r3, [pc, #108] @ (800159c <MX_USART1_UART_Init+0x98>)
  2881. 8001530: 2200 movs r2, #0
  2882. 8001532: 619a str r2, [r3, #24]
  2883. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  2884. 8001534: 4b19 ldr r3, [pc, #100] @ (800159c <MX_USART1_UART_Init+0x98>)
  2885. 8001536: 2200 movs r2, #0
  2886. 8001538: 61da str r2, [r3, #28]
  2887. huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  2888. 800153a: 4b18 ldr r3, [pc, #96] @ (800159c <MX_USART1_UART_Init+0x98>)
  2889. 800153c: 2200 movs r2, #0
  2890. 800153e: 621a str r2, [r3, #32]
  2891. huart1.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  2892. 8001540: 4b16 ldr r3, [pc, #88] @ (800159c <MX_USART1_UART_Init+0x98>)
  2893. 8001542: 2200 movs r2, #0
  2894. 8001544: 625a str r2, [r3, #36] @ 0x24
  2895. huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  2896. 8001546: 4b15 ldr r3, [pc, #84] @ (800159c <MX_USART1_UART_Init+0x98>)
  2897. 8001548: 2201 movs r2, #1
  2898. 800154a: 629a str r2, [r3, #40] @ 0x28
  2899. huart1.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  2900. 800154c: 4b13 ldr r3, [pc, #76] @ (800159c <MX_USART1_UART_Init+0x98>)
  2901. 800154e: f44f 3200 mov.w r2, #131072 @ 0x20000
  2902. 8001552: 62da str r2, [r3, #44] @ 0x2c
  2903. if (HAL_UART_Init(&huart1) != HAL_OK)
  2904. 8001554: 4811 ldr r0, [pc, #68] @ (800159c <MX_USART1_UART_Init+0x98>)
  2905. 8001556: f00f f9e3 bl 8010920 <HAL_UART_Init>
  2906. 800155a: 4603 mov r3, r0
  2907. 800155c: 2b00 cmp r3, #0
  2908. 800155e: d001 beq.n 8001564 <MX_USART1_UART_Init+0x60>
  2909. {
  2910. Error_Handler();
  2911. 8001560: f000 fc6c bl 8001e3c <Error_Handler>
  2912. }
  2913. if (HAL_UARTEx_SetTxFifoThreshold(&huart1, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  2914. 8001564: 2100 movs r1, #0
  2915. 8001566: 480d ldr r0, [pc, #52] @ (800159c <MX_USART1_UART_Init+0x98>)
  2916. 8001568: f011 ff11 bl 801338e <HAL_UARTEx_SetTxFifoThreshold>
  2917. 800156c: 4603 mov r3, r0
  2918. 800156e: 2b00 cmp r3, #0
  2919. 8001570: d001 beq.n 8001576 <MX_USART1_UART_Init+0x72>
  2920. {
  2921. Error_Handler();
  2922. 8001572: f000 fc63 bl 8001e3c <Error_Handler>
  2923. }
  2924. if (HAL_UARTEx_SetRxFifoThreshold(&huart1, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  2925. 8001576: 2100 movs r1, #0
  2926. 8001578: 4808 ldr r0, [pc, #32] @ (800159c <MX_USART1_UART_Init+0x98>)
  2927. 800157a: f011 ff46 bl 801340a <HAL_UARTEx_SetRxFifoThreshold>
  2928. 800157e: 4603 mov r3, r0
  2929. 8001580: 2b00 cmp r3, #0
  2930. 8001582: d001 beq.n 8001588 <MX_USART1_UART_Init+0x84>
  2931. {
  2932. Error_Handler();
  2933. 8001584: f000 fc5a bl 8001e3c <Error_Handler>
  2934. }
  2935. if (HAL_UARTEx_DisableFifoMode(&huart1) != HAL_OK)
  2936. 8001588: 4804 ldr r0, [pc, #16] @ (800159c <MX_USART1_UART_Init+0x98>)
  2937. 800158a: f011 fec7 bl 801331c <HAL_UARTEx_DisableFifoMode>
  2938. 800158e: 4603 mov r3, r0
  2939. 8001590: 2b00 cmp r3, #0
  2940. 8001592: d001 beq.n 8001598 <MX_USART1_UART_Init+0x94>
  2941. {
  2942. Error_Handler();
  2943. 8001594: f000 fc52 bl 8001e3c <Error_Handler>
  2944. }
  2945. /* USER CODE BEGIN USART1_Init 2 */
  2946. /* USER CODE END USART1_Init 2 */
  2947. }
  2948. 8001598: bf00 nop
  2949. 800159a: bd80 pop {r7, pc}
  2950. 800159c: 24000610 .word 0x24000610
  2951. 80015a0: 40011000 .word 0x40011000
  2952. 080015a4 <MX_DMA_Init>:
  2953. /**
  2954. * Enable DMA controller clock
  2955. */
  2956. static void MX_DMA_Init(void)
  2957. {
  2958. 80015a4: b580 push {r7, lr}
  2959. 80015a6: b082 sub sp, #8
  2960. 80015a8: af00 add r7, sp, #0
  2961. /* DMA controller clock enable */
  2962. __HAL_RCC_DMA1_CLK_ENABLE();
  2963. 80015aa: 4b15 ldr r3, [pc, #84] @ (8001600 <MX_DMA_Init+0x5c>)
  2964. 80015ac: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  2965. 80015b0: 4a13 ldr r2, [pc, #76] @ (8001600 <MX_DMA_Init+0x5c>)
  2966. 80015b2: f043 0301 orr.w r3, r3, #1
  2967. 80015b6: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  2968. 80015ba: 4b11 ldr r3, [pc, #68] @ (8001600 <MX_DMA_Init+0x5c>)
  2969. 80015bc: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  2970. 80015c0: f003 0301 and.w r3, r3, #1
  2971. 80015c4: 607b str r3, [r7, #4]
  2972. 80015c6: 687b ldr r3, [r7, #4]
  2973. /* DMA interrupt init */
  2974. /* DMA1_Stream0_IRQn interrupt configuration */
  2975. HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 5, 0);
  2976. 80015c8: 2200 movs r2, #0
  2977. 80015ca: 2105 movs r1, #5
  2978. 80015cc: 200b movs r0, #11
  2979. 80015ce: f005 fddb bl 8007188 <HAL_NVIC_SetPriority>
  2980. HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn);
  2981. 80015d2: 200b movs r0, #11
  2982. 80015d4: f005 fdf2 bl 80071bc <HAL_NVIC_EnableIRQ>
  2983. /* DMA1_Stream1_IRQn interrupt configuration */
  2984. HAL_NVIC_SetPriority(DMA1_Stream1_IRQn, 5, 0);
  2985. 80015d8: 2200 movs r2, #0
  2986. 80015da: 2105 movs r1, #5
  2987. 80015dc: 200c movs r0, #12
  2988. 80015de: f005 fdd3 bl 8007188 <HAL_NVIC_SetPriority>
  2989. HAL_NVIC_EnableIRQ(DMA1_Stream1_IRQn);
  2990. 80015e2: 200c movs r0, #12
  2991. 80015e4: f005 fdea bl 80071bc <HAL_NVIC_EnableIRQ>
  2992. /* DMA1_Stream2_IRQn interrupt configuration */
  2993. HAL_NVIC_SetPriority(DMA1_Stream2_IRQn, 5, 0);
  2994. 80015e8: 2200 movs r2, #0
  2995. 80015ea: 2105 movs r1, #5
  2996. 80015ec: 200d movs r0, #13
  2997. 80015ee: f005 fdcb bl 8007188 <HAL_NVIC_SetPriority>
  2998. HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn);
  2999. 80015f2: 200d movs r0, #13
  3000. 80015f4: f005 fde2 bl 80071bc <HAL_NVIC_EnableIRQ>
  3001. }
  3002. 80015f8: bf00 nop
  3003. 80015fa: 3708 adds r7, #8
  3004. 80015fc: 46bd mov sp, r7
  3005. 80015fe: bd80 pop {r7, pc}
  3006. 8001600: 58024400 .word 0x58024400
  3007. 08001604 <MX_GPIO_Init>:
  3008. * @brief GPIO Initialization Function
  3009. * @param None
  3010. * @retval None
  3011. */
  3012. static void MX_GPIO_Init(void)
  3013. {
  3014. 8001604: b580 push {r7, lr}
  3015. 8001606: b08c sub sp, #48 @ 0x30
  3016. 8001608: af00 add r7, sp, #0
  3017. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3018. 800160a: f107 031c add.w r3, r7, #28
  3019. 800160e: 2200 movs r2, #0
  3020. 8001610: 601a str r2, [r3, #0]
  3021. 8001612: 605a str r2, [r3, #4]
  3022. 8001614: 609a str r2, [r3, #8]
  3023. 8001616: 60da str r2, [r3, #12]
  3024. 8001618: 611a str r2, [r3, #16]
  3025. /* USER CODE BEGIN MX_GPIO_Init_1 */
  3026. /* USER CODE END MX_GPIO_Init_1 */
  3027. /* GPIO Ports Clock Enable */
  3028. __HAL_RCC_GPIOH_CLK_ENABLE();
  3029. 800161a: 4b58 ldr r3, [pc, #352] @ (800177c <MX_GPIO_Init+0x178>)
  3030. 800161c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3031. 8001620: 4a56 ldr r2, [pc, #344] @ (800177c <MX_GPIO_Init+0x178>)
  3032. 8001622: f043 0380 orr.w r3, r3, #128 @ 0x80
  3033. 8001626: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3034. 800162a: 4b54 ldr r3, [pc, #336] @ (800177c <MX_GPIO_Init+0x178>)
  3035. 800162c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3036. 8001630: f003 0380 and.w r3, r3, #128 @ 0x80
  3037. 8001634: 61bb str r3, [r7, #24]
  3038. 8001636: 69bb ldr r3, [r7, #24]
  3039. __HAL_RCC_GPIOC_CLK_ENABLE();
  3040. 8001638: 4b50 ldr r3, [pc, #320] @ (800177c <MX_GPIO_Init+0x178>)
  3041. 800163a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3042. 800163e: 4a4f ldr r2, [pc, #316] @ (800177c <MX_GPIO_Init+0x178>)
  3043. 8001640: f043 0304 orr.w r3, r3, #4
  3044. 8001644: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3045. 8001648: 4b4c ldr r3, [pc, #304] @ (800177c <MX_GPIO_Init+0x178>)
  3046. 800164a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3047. 800164e: f003 0304 and.w r3, r3, #4
  3048. 8001652: 617b str r3, [r7, #20]
  3049. 8001654: 697b ldr r3, [r7, #20]
  3050. __HAL_RCC_GPIOA_CLK_ENABLE();
  3051. 8001656: 4b49 ldr r3, [pc, #292] @ (800177c <MX_GPIO_Init+0x178>)
  3052. 8001658: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3053. 800165c: 4a47 ldr r2, [pc, #284] @ (800177c <MX_GPIO_Init+0x178>)
  3054. 800165e: f043 0301 orr.w r3, r3, #1
  3055. 8001662: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3056. 8001666: 4b45 ldr r3, [pc, #276] @ (800177c <MX_GPIO_Init+0x178>)
  3057. 8001668: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3058. 800166c: f003 0301 and.w r3, r3, #1
  3059. 8001670: 613b str r3, [r7, #16]
  3060. 8001672: 693b ldr r3, [r7, #16]
  3061. __HAL_RCC_GPIOB_CLK_ENABLE();
  3062. 8001674: 4b41 ldr r3, [pc, #260] @ (800177c <MX_GPIO_Init+0x178>)
  3063. 8001676: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3064. 800167a: 4a40 ldr r2, [pc, #256] @ (800177c <MX_GPIO_Init+0x178>)
  3065. 800167c: f043 0302 orr.w r3, r3, #2
  3066. 8001680: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3067. 8001684: 4b3d ldr r3, [pc, #244] @ (800177c <MX_GPIO_Init+0x178>)
  3068. 8001686: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3069. 800168a: f003 0302 and.w r3, r3, #2
  3070. 800168e: 60fb str r3, [r7, #12]
  3071. 8001690: 68fb ldr r3, [r7, #12]
  3072. __HAL_RCC_GPIOE_CLK_ENABLE();
  3073. 8001692: 4b3a ldr r3, [pc, #232] @ (800177c <MX_GPIO_Init+0x178>)
  3074. 8001694: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3075. 8001698: 4a38 ldr r2, [pc, #224] @ (800177c <MX_GPIO_Init+0x178>)
  3076. 800169a: f043 0310 orr.w r3, r3, #16
  3077. 800169e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3078. 80016a2: 4b36 ldr r3, [pc, #216] @ (800177c <MX_GPIO_Init+0x178>)
  3079. 80016a4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3080. 80016a8: f003 0310 and.w r3, r3, #16
  3081. 80016ac: 60bb str r3, [r7, #8]
  3082. 80016ae: 68bb ldr r3, [r7, #8]
  3083. __HAL_RCC_GPIOD_CLK_ENABLE();
  3084. 80016b0: 4b32 ldr r3, [pc, #200] @ (800177c <MX_GPIO_Init+0x178>)
  3085. 80016b2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3086. 80016b6: 4a31 ldr r2, [pc, #196] @ (800177c <MX_GPIO_Init+0x178>)
  3087. 80016b8: f043 0308 orr.w r3, r3, #8
  3088. 80016bc: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3089. 80016c0: 4b2e ldr r3, [pc, #184] @ (800177c <MX_GPIO_Init+0x178>)
  3090. 80016c2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3091. 80016c6: f003 0308 and.w r3, r3, #8
  3092. 80016ca: 607b str r3, [r7, #4]
  3093. 80016cc: 687b ldr r3, [r7, #4]
  3094. /*Configure GPIO pin Output Level */
  3095. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10
  3096. 80016ce: 2200 movs r2, #0
  3097. 80016d0: f24e 7180 movw r1, #59264 @ 0xe780
  3098. 80016d4: 482a ldr r0, [pc, #168] @ (8001780 <MX_GPIO_Init+0x17c>)
  3099. 80016d6: f009 fa51 bl 800ab7c <HAL_GPIO_WritePin>
  3100. |GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15, GPIO_PIN_RESET);
  3101. /*Configure GPIO pin Output Level */
  3102. HAL_GPIO_WritePin(GPIOD, GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7, GPIO_PIN_RESET);
  3103. 80016da: 2200 movs r2, #0
  3104. 80016dc: 21f0 movs r1, #240 @ 0xf0
  3105. 80016de: 4829 ldr r0, [pc, #164] @ (8001784 <MX_GPIO_Init+0x180>)
  3106. 80016e0: f009 fa4c bl 800ab7c <HAL_GPIO_WritePin>
  3107. /*Configure GPIO pins : PE7 PE8 PE9 PE10
  3108. PE13 PE14 PE15 */
  3109. GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10
  3110. 80016e4: f24e 7380 movw r3, #59264 @ 0xe780
  3111. 80016e8: 61fb str r3, [r7, #28]
  3112. |GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
  3113. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3114. 80016ea: 2301 movs r3, #1
  3115. 80016ec: 623b str r3, [r7, #32]
  3116. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3117. 80016ee: 2300 movs r3, #0
  3118. 80016f0: 627b str r3, [r7, #36] @ 0x24
  3119. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3120. 80016f2: 2300 movs r3, #0
  3121. 80016f4: 62bb str r3, [r7, #40] @ 0x28
  3122. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  3123. 80016f6: f107 031c add.w r3, r7, #28
  3124. 80016fa: 4619 mov r1, r3
  3125. 80016fc: 4820 ldr r0, [pc, #128] @ (8001780 <MX_GPIO_Init+0x17c>)
  3126. 80016fe: f009 f875 bl 800a7ec <HAL_GPIO_Init>
  3127. /*Configure GPIO pins : PD8 PD9 PD10 PD11
  3128. PD12 PD13 */
  3129. GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11
  3130. 8001702: f44f 537c mov.w r3, #16128 @ 0x3f00
  3131. 8001706: 61fb str r3, [r7, #28]
  3132. |GPIO_PIN_12|GPIO_PIN_13;
  3133. GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
  3134. 8001708: f44f 1344 mov.w r3, #3211264 @ 0x310000
  3135. 800170c: 623b str r3, [r7, #32]
  3136. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3137. 800170e: 2300 movs r3, #0
  3138. 8001710: 627b str r3, [r7, #36] @ 0x24
  3139. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3140. 8001712: f107 031c add.w r3, r7, #28
  3141. 8001716: 4619 mov r1, r3
  3142. 8001718: 481a ldr r0, [pc, #104] @ (8001784 <MX_GPIO_Init+0x180>)
  3143. 800171a: f009 f867 bl 800a7ec <HAL_GPIO_Init>
  3144. /*Configure GPIO pin : PD3 */
  3145. GPIO_InitStruct.Pin = GPIO_PIN_3;
  3146. 800171e: 2308 movs r3, #8
  3147. 8001720: 61fb str r3, [r7, #28]
  3148. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  3149. 8001722: 2300 movs r3, #0
  3150. 8001724: 623b str r3, [r7, #32]
  3151. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3152. 8001726: 2300 movs r3, #0
  3153. 8001728: 627b str r3, [r7, #36] @ 0x24
  3154. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3155. 800172a: f107 031c add.w r3, r7, #28
  3156. 800172e: 4619 mov r1, r3
  3157. 8001730: 4814 ldr r0, [pc, #80] @ (8001784 <MX_GPIO_Init+0x180>)
  3158. 8001732: f009 f85b bl 800a7ec <HAL_GPIO_Init>
  3159. /*Configure GPIO pins : PD4 PD5 PD6 PD7 */
  3160. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7;
  3161. 8001736: 23f0 movs r3, #240 @ 0xf0
  3162. 8001738: 61fb str r3, [r7, #28]
  3163. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3164. 800173a: 2301 movs r3, #1
  3165. 800173c: 623b str r3, [r7, #32]
  3166. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3167. 800173e: 2300 movs r3, #0
  3168. 8001740: 627b str r3, [r7, #36] @ 0x24
  3169. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3170. 8001742: 2300 movs r3, #0
  3171. 8001744: 62bb str r3, [r7, #40] @ 0x28
  3172. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3173. 8001746: f107 031c add.w r3, r7, #28
  3174. 800174a: 4619 mov r1, r3
  3175. 800174c: 480d ldr r0, [pc, #52] @ (8001784 <MX_GPIO_Init+0x180>)
  3176. 800174e: f009 f84d bl 800a7ec <HAL_GPIO_Init>
  3177. /* EXTI interrupt init*/
  3178. HAL_NVIC_SetPriority(EXTI9_5_IRQn, 5, 0);
  3179. 8001752: 2200 movs r2, #0
  3180. 8001754: 2105 movs r1, #5
  3181. 8001756: 2017 movs r0, #23
  3182. 8001758: f005 fd16 bl 8007188 <HAL_NVIC_SetPriority>
  3183. HAL_NVIC_EnableIRQ(EXTI9_5_IRQn);
  3184. 800175c: 2017 movs r0, #23
  3185. 800175e: f005 fd2d bl 80071bc <HAL_NVIC_EnableIRQ>
  3186. HAL_NVIC_SetPriority(EXTI15_10_IRQn, 5, 0);
  3187. 8001762: 2200 movs r2, #0
  3188. 8001764: 2105 movs r1, #5
  3189. 8001766: 2028 movs r0, #40 @ 0x28
  3190. 8001768: f005 fd0e bl 8007188 <HAL_NVIC_SetPriority>
  3191. HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
  3192. 800176c: 2028 movs r0, #40 @ 0x28
  3193. 800176e: f005 fd25 bl 80071bc <HAL_NVIC_EnableIRQ>
  3194. /* USER CODE BEGIN MX_GPIO_Init_2 */
  3195. /* USER CODE END MX_GPIO_Init_2 */
  3196. }
  3197. 8001772: bf00 nop
  3198. 8001774: 3730 adds r7, #48 @ 0x30
  3199. 8001776: 46bd mov sp, r7
  3200. 8001778: bd80 pop {r7, pc}
  3201. 800177a: bf00 nop
  3202. 800177c: 58024400 .word 0x58024400
  3203. 8001780: 58021000 .word 0x58021000
  3204. 8001784: 58020c00 .word 0x58020c00
  3205. 08001788 <HAL_ADC_ConvCpltCallback>:
  3206. /* USER CODE BEGIN 4 */
  3207. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc)
  3208. {
  3209. 8001788: b580 push {r7, lr}
  3210. 800178a: b08e sub sp, #56 @ 0x38
  3211. 800178c: af00 add r7, sp, #0
  3212. 800178e: 6078 str r0, [r7, #4]
  3213. if(hadc->Instance == ADC1)
  3214. 8001790: 687b ldr r3, [r7, #4]
  3215. 8001792: 681b ldr r3, [r3, #0]
  3216. 8001794: 4a67 ldr r2, [pc, #412] @ (8001934 <HAL_ADC_ConvCpltCallback+0x1ac>)
  3217. 8001796: 4293 cmp r3, r2
  3218. 8001798: d13f bne.n 800181a <HAL_ADC_ConvCpltCallback+0x92>
  3219. {
  3220. DbgLEDToggle(DBG_LED4);
  3221. 800179a: 2080 movs r0, #128 @ 0x80
  3222. 800179c: f001 fad8 bl 8002d50 <DbgLEDToggle>
  3223. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc1Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3224. 80017a0: 4b65 ldr r3, [pc, #404] @ (8001938 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3225. 80017a2: f023 031f bic.w r3, r3, #31
  3226. 80017a6: 637b str r3, [r7, #52] @ 0x34
  3227. 80017a8: 2320 movs r3, #32
  3228. 80017aa: 633b str r3, [r7, #48] @ 0x30
  3229. \param[in] dsize size of memory block (in number of bytes)
  3230. */
  3231. __STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (void *addr, int32_t dsize)
  3232. {
  3233. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  3234. if ( dsize > 0 ) {
  3235. 80017ac: 6b3b ldr r3, [r7, #48] @ 0x30
  3236. 80017ae: 2b00 cmp r3, #0
  3237. 80017b0: dd1d ble.n 80017ee <HAL_ADC_ConvCpltCallback+0x66>
  3238. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3239. 80017b2: 6b7b ldr r3, [r7, #52] @ 0x34
  3240. 80017b4: f003 021f and.w r2, r3, #31
  3241. 80017b8: 6b3b ldr r3, [r7, #48] @ 0x30
  3242. 80017ba: 4413 add r3, r2
  3243. 80017bc: 62fb str r3, [r7, #44] @ 0x2c
  3244. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3245. 80017be: 6b7b ldr r3, [r7, #52] @ 0x34
  3246. 80017c0: 62bb str r3, [r7, #40] @ 0x28
  3247. __ASM volatile ("dsb 0xF":::"memory");
  3248. 80017c2: f3bf 8f4f dsb sy
  3249. }
  3250. 80017c6: bf00 nop
  3251. __DSB();
  3252. do {
  3253. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3254. 80017c8: 4a5c ldr r2, [pc, #368] @ (800193c <HAL_ADC_ConvCpltCallback+0x1b4>)
  3255. 80017ca: 6abb ldr r3, [r7, #40] @ 0x28
  3256. 80017cc: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3257. op_addr += __SCB_DCACHE_LINE_SIZE;
  3258. 80017d0: 6abb ldr r3, [r7, #40] @ 0x28
  3259. 80017d2: 3320 adds r3, #32
  3260. 80017d4: 62bb str r3, [r7, #40] @ 0x28
  3261. op_size -= __SCB_DCACHE_LINE_SIZE;
  3262. 80017d6: 6afb ldr r3, [r7, #44] @ 0x2c
  3263. 80017d8: 3b20 subs r3, #32
  3264. 80017da: 62fb str r3, [r7, #44] @ 0x2c
  3265. } while ( op_size > 0 );
  3266. 80017dc: 6afb ldr r3, [r7, #44] @ 0x2c
  3267. 80017de: 2b00 cmp r3, #0
  3268. 80017e0: dcf2 bgt.n 80017c8 <HAL_ADC_ConvCpltCallback+0x40>
  3269. __ASM volatile ("dsb 0xF":::"memory");
  3270. 80017e2: f3bf 8f4f dsb sy
  3271. }
  3272. 80017e6: bf00 nop
  3273. __ASM volatile ("isb 0xF":::"memory");
  3274. 80017e8: f3bf 8f6f isb sy
  3275. }
  3276. 80017ec: bf00 nop
  3277. __DSB();
  3278. __ISB();
  3279. }
  3280. #endif
  3281. }
  3282. 80017ee: bf00 nop
  3283. if(adc1MeasDataQueue != NULL)
  3284. 80017f0: 4b53 ldr r3, [pc, #332] @ (8001940 <HAL_ADC_ConvCpltCallback+0x1b8>)
  3285. 80017f2: 681b ldr r3, [r3, #0]
  3286. 80017f4: 2b00 cmp r3, #0
  3287. 80017f6: d006 beq.n 8001806 <HAL_ADC_ConvCpltCallback+0x7e>
  3288. {
  3289. osMessageQueuePut(adc1MeasDataQueue, &adc1Data, 0, 0);
  3290. 80017f8: 4b51 ldr r3, [pc, #324] @ (8001940 <HAL_ADC_ConvCpltCallback+0x1b8>)
  3291. 80017fa: 6818 ldr r0, [r3, #0]
  3292. 80017fc: 2300 movs r3, #0
  3293. 80017fe: 2200 movs r2, #0
  3294. 8001800: 494d ldr r1, [pc, #308] @ (8001938 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3295. 8001802: f012 fa93 bl 8013d2c <osMessageQueuePut>
  3296. }
  3297. if(HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc1Data.adcDataBuffer, ADC1LastData) != HAL_OK)
  3298. 8001806: 2207 movs r2, #7
  3299. 8001808: 494b ldr r1, [pc, #300] @ (8001938 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3300. 800180a: 484e ldr r0, [pc, #312] @ (8001944 <HAL_ADC_ConvCpltCallback+0x1bc>)
  3301. 800180c: f004 fa18 bl 8005c40 <HAL_ADC_Start_DMA>
  3302. 8001810: 4603 mov r3, r0
  3303. 8001812: 2b00 cmp r3, #0
  3304. 8001814: d001 beq.n 800181a <HAL_ADC_ConvCpltCallback+0x92>
  3305. {
  3306. Error_Handler();
  3307. 8001816: f000 fb11 bl 8001e3c <Error_Handler>
  3308. }
  3309. }
  3310. if(hadc->Instance == ADC2)
  3311. 800181a: 687b ldr r3, [r7, #4]
  3312. 800181c: 681b ldr r3, [r3, #0]
  3313. 800181e: 4a4a ldr r2, [pc, #296] @ (8001948 <HAL_ADC_ConvCpltCallback+0x1c0>)
  3314. 8001820: 4293 cmp r3, r2
  3315. 8001822: d13c bne.n 800189e <HAL_ADC_ConvCpltCallback+0x116>
  3316. {
  3317. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc2Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3318. 8001824: 4b49 ldr r3, [pc, #292] @ (800194c <HAL_ADC_ConvCpltCallback+0x1c4>)
  3319. 8001826: f023 031f bic.w r3, r3, #31
  3320. 800182a: 627b str r3, [r7, #36] @ 0x24
  3321. 800182c: 2320 movs r3, #32
  3322. 800182e: 623b str r3, [r7, #32]
  3323. if ( dsize > 0 ) {
  3324. 8001830: 6a3b ldr r3, [r7, #32]
  3325. 8001832: 2b00 cmp r3, #0
  3326. 8001834: dd1d ble.n 8001872 <HAL_ADC_ConvCpltCallback+0xea>
  3327. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3328. 8001836: 6a7b ldr r3, [r7, #36] @ 0x24
  3329. 8001838: f003 021f and.w r2, r3, #31
  3330. 800183c: 6a3b ldr r3, [r7, #32]
  3331. 800183e: 4413 add r3, r2
  3332. 8001840: 61fb str r3, [r7, #28]
  3333. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3334. 8001842: 6a7b ldr r3, [r7, #36] @ 0x24
  3335. 8001844: 61bb str r3, [r7, #24]
  3336. __ASM volatile ("dsb 0xF":::"memory");
  3337. 8001846: f3bf 8f4f dsb sy
  3338. }
  3339. 800184a: bf00 nop
  3340. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3341. 800184c: 4a3b ldr r2, [pc, #236] @ (800193c <HAL_ADC_ConvCpltCallback+0x1b4>)
  3342. 800184e: 69bb ldr r3, [r7, #24]
  3343. 8001850: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3344. op_addr += __SCB_DCACHE_LINE_SIZE;
  3345. 8001854: 69bb ldr r3, [r7, #24]
  3346. 8001856: 3320 adds r3, #32
  3347. 8001858: 61bb str r3, [r7, #24]
  3348. op_size -= __SCB_DCACHE_LINE_SIZE;
  3349. 800185a: 69fb ldr r3, [r7, #28]
  3350. 800185c: 3b20 subs r3, #32
  3351. 800185e: 61fb str r3, [r7, #28]
  3352. } while ( op_size > 0 );
  3353. 8001860: 69fb ldr r3, [r7, #28]
  3354. 8001862: 2b00 cmp r3, #0
  3355. 8001864: dcf2 bgt.n 800184c <HAL_ADC_ConvCpltCallback+0xc4>
  3356. __ASM volatile ("dsb 0xF":::"memory");
  3357. 8001866: f3bf 8f4f dsb sy
  3358. }
  3359. 800186a: bf00 nop
  3360. __ASM volatile ("isb 0xF":::"memory");
  3361. 800186c: f3bf 8f6f isb sy
  3362. }
  3363. 8001870: bf00 nop
  3364. }
  3365. 8001872: bf00 nop
  3366. if(adc2MeasDataQueue != NULL)
  3367. 8001874: 4b36 ldr r3, [pc, #216] @ (8001950 <HAL_ADC_ConvCpltCallback+0x1c8>)
  3368. 8001876: 681b ldr r3, [r3, #0]
  3369. 8001878: 2b00 cmp r3, #0
  3370. 800187a: d006 beq.n 800188a <HAL_ADC_ConvCpltCallback+0x102>
  3371. {
  3372. osMessageQueuePut(adc2MeasDataQueue, &adc2Data, 0, 0);
  3373. 800187c: 4b34 ldr r3, [pc, #208] @ (8001950 <HAL_ADC_ConvCpltCallback+0x1c8>)
  3374. 800187e: 6818 ldr r0, [r3, #0]
  3375. 8001880: 2300 movs r3, #0
  3376. 8001882: 2200 movs r2, #0
  3377. 8001884: 4931 ldr r1, [pc, #196] @ (800194c <HAL_ADC_ConvCpltCallback+0x1c4>)
  3378. 8001886: f012 fa51 bl 8013d2c <osMessageQueuePut>
  3379. }
  3380. if(HAL_ADC_Start_DMA(&hadc2, (uint32_t *)adc2Data.adcDataBuffer, ADC2LastData) != HAL_OK)
  3381. 800188a: 2203 movs r2, #3
  3382. 800188c: 492f ldr r1, [pc, #188] @ (800194c <HAL_ADC_ConvCpltCallback+0x1c4>)
  3383. 800188e: 4831 ldr r0, [pc, #196] @ (8001954 <HAL_ADC_ConvCpltCallback+0x1cc>)
  3384. 8001890: f004 f9d6 bl 8005c40 <HAL_ADC_Start_DMA>
  3385. 8001894: 4603 mov r3, r0
  3386. 8001896: 2b00 cmp r3, #0
  3387. 8001898: d001 beq.n 800189e <HAL_ADC_ConvCpltCallback+0x116>
  3388. {
  3389. Error_Handler();
  3390. 800189a: f000 facf bl 8001e3c <Error_Handler>
  3391. }
  3392. }
  3393. if(hadc->Instance == ADC3)
  3394. 800189e: 687b ldr r3, [r7, #4]
  3395. 80018a0: 681b ldr r3, [r3, #0]
  3396. 80018a2: 4a2d ldr r2, [pc, #180] @ (8001958 <HAL_ADC_ConvCpltCallback+0x1d0>)
  3397. 80018a4: 4293 cmp r3, r2
  3398. 80018a6: d13c bne.n 8001922 <HAL_ADC_ConvCpltCallback+0x19a>
  3399. {
  3400. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc3Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3401. 80018a8: 4b2c ldr r3, [pc, #176] @ (800195c <HAL_ADC_ConvCpltCallback+0x1d4>)
  3402. 80018aa: f023 031f bic.w r3, r3, #31
  3403. 80018ae: 617b str r3, [r7, #20]
  3404. 80018b0: 2320 movs r3, #32
  3405. 80018b2: 613b str r3, [r7, #16]
  3406. if ( dsize > 0 ) {
  3407. 80018b4: 693b ldr r3, [r7, #16]
  3408. 80018b6: 2b00 cmp r3, #0
  3409. 80018b8: dd1d ble.n 80018f6 <HAL_ADC_ConvCpltCallback+0x16e>
  3410. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3411. 80018ba: 697b ldr r3, [r7, #20]
  3412. 80018bc: f003 021f and.w r2, r3, #31
  3413. 80018c0: 693b ldr r3, [r7, #16]
  3414. 80018c2: 4413 add r3, r2
  3415. 80018c4: 60fb str r3, [r7, #12]
  3416. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3417. 80018c6: 697b ldr r3, [r7, #20]
  3418. 80018c8: 60bb str r3, [r7, #8]
  3419. __ASM volatile ("dsb 0xF":::"memory");
  3420. 80018ca: f3bf 8f4f dsb sy
  3421. }
  3422. 80018ce: bf00 nop
  3423. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3424. 80018d0: 4a1a ldr r2, [pc, #104] @ (800193c <HAL_ADC_ConvCpltCallback+0x1b4>)
  3425. 80018d2: 68bb ldr r3, [r7, #8]
  3426. 80018d4: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3427. op_addr += __SCB_DCACHE_LINE_SIZE;
  3428. 80018d8: 68bb ldr r3, [r7, #8]
  3429. 80018da: 3320 adds r3, #32
  3430. 80018dc: 60bb str r3, [r7, #8]
  3431. op_size -= __SCB_DCACHE_LINE_SIZE;
  3432. 80018de: 68fb ldr r3, [r7, #12]
  3433. 80018e0: 3b20 subs r3, #32
  3434. 80018e2: 60fb str r3, [r7, #12]
  3435. } while ( op_size > 0 );
  3436. 80018e4: 68fb ldr r3, [r7, #12]
  3437. 80018e6: 2b00 cmp r3, #0
  3438. 80018e8: dcf2 bgt.n 80018d0 <HAL_ADC_ConvCpltCallback+0x148>
  3439. __ASM volatile ("dsb 0xF":::"memory");
  3440. 80018ea: f3bf 8f4f dsb sy
  3441. }
  3442. 80018ee: bf00 nop
  3443. __ASM volatile ("isb 0xF":::"memory");
  3444. 80018f0: f3bf 8f6f isb sy
  3445. }
  3446. 80018f4: bf00 nop
  3447. }
  3448. 80018f6: bf00 nop
  3449. if(adc3MeasDataQueue != NULL)
  3450. 80018f8: 4b19 ldr r3, [pc, #100] @ (8001960 <HAL_ADC_ConvCpltCallback+0x1d8>)
  3451. 80018fa: 681b ldr r3, [r3, #0]
  3452. 80018fc: 2b00 cmp r3, #0
  3453. 80018fe: d006 beq.n 800190e <HAL_ADC_ConvCpltCallback+0x186>
  3454. {
  3455. osMessageQueuePut(adc3MeasDataQueue, &adc3Data, 0, 0);
  3456. 8001900: 4b17 ldr r3, [pc, #92] @ (8001960 <HAL_ADC_ConvCpltCallback+0x1d8>)
  3457. 8001902: 6818 ldr r0, [r3, #0]
  3458. 8001904: 2300 movs r3, #0
  3459. 8001906: 2200 movs r2, #0
  3460. 8001908: 4914 ldr r1, [pc, #80] @ (800195c <HAL_ADC_ConvCpltCallback+0x1d4>)
  3461. 800190a: f012 fa0f bl 8013d2c <osMessageQueuePut>
  3462. }
  3463. if(HAL_ADC_Start_DMA(&hadc3, (uint32_t *)adc3Data.adcDataBuffer, ADC3LastData) != HAL_OK)
  3464. 800190e: 2205 movs r2, #5
  3465. 8001910: 4912 ldr r1, [pc, #72] @ (800195c <HAL_ADC_ConvCpltCallback+0x1d4>)
  3466. 8001912: 4814 ldr r0, [pc, #80] @ (8001964 <HAL_ADC_ConvCpltCallback+0x1dc>)
  3467. 8001914: f004 f994 bl 8005c40 <HAL_ADC_Start_DMA>
  3468. 8001918: 4603 mov r3, r0
  3469. 800191a: 2b00 cmp r3, #0
  3470. 800191c: d001 beq.n 8001922 <HAL_ADC_ConvCpltCallback+0x19a>
  3471. {
  3472. Error_Handler();
  3473. 800191e: f000 fa8d bl 8001e3c <Error_Handler>
  3474. }
  3475. }osTimerStop (debugLedTimerHandle);
  3476. 8001922: 4b11 ldr r3, [pc, #68] @ (8001968 <HAL_ADC_ConvCpltCallback+0x1e0>)
  3477. 8001924: 681b ldr r3, [r3, #0]
  3478. 8001926: 4618 mov r0, r3
  3479. 8001928: f012 f848 bl 80139bc <osTimerStop>
  3480. }
  3481. 800192c: bf00 nop
  3482. 800192e: 3738 adds r7, #56 @ 0x38
  3483. 8001930: 46bd mov sp, r7
  3484. 8001932: bd80 pop {r7, pc}
  3485. 8001934: 40022000 .word 0x40022000
  3486. 8001938: 240000e0 .word 0x240000e0
  3487. 800193c: e000ed00 .word 0xe000ed00
  3488. 8001940: 240007c8 .word 0x240007c8
  3489. 8001944: 24000140 .word 0x24000140
  3490. 8001948: 40022100 .word 0x40022100
  3491. 800194c: 24000100 .word 0x24000100
  3492. 8001950: 240007cc .word 0x240007cc
  3493. 8001954: 240001a4 .word 0x240001a4
  3494. 8001958: 58026000 .word 0x58026000
  3495. 800195c: 24000120 .word 0x24000120
  3496. 8001960: 240007d0 .word 0x240007d0
  3497. 8001964: 24000208 .word 0x24000208
  3498. 8001968: 240006a8 .word 0x240006a8
  3499. 0800196c <HAL_TIM_IC_CaptureCallback>:
  3500. void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  3501. {
  3502. 800196c: b580 push {r7, lr}
  3503. 800196e: b084 sub sp, #16
  3504. 8001970: af00 add r7, sp, #0
  3505. 8001972: 6078 str r0, [r7, #4]
  3506. if (htim->Instance == TIM4)
  3507. 8001974: 687b ldr r3, [r7, #4]
  3508. 8001976: 681b ldr r3, [r3, #0]
  3509. 8001978: 4a42 ldr r2, [pc, #264] @ (8001a84 <HAL_TIM_IC_CaptureCallback+0x118>)
  3510. 800197a: 4293 cmp r3, r2
  3511. 800197c: d13c bne.n 80019f8 <HAL_TIM_IC_CaptureCallback+0x8c>
  3512. {
  3513. if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_3)
  3514. 800197e: 687b ldr r3, [r7, #4]
  3515. 8001980: 7f1b ldrb r3, [r3, #28]
  3516. 8001982: 2b04 cmp r3, #4
  3517. 8001984: d108 bne.n 8001998 <HAL_TIM_IC_CaptureCallback+0x2c>
  3518. {
  3519. encoderXChannelA = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_3);
  3520. 8001986: 2108 movs r1, #8
  3521. 8001988: 6878 ldr r0, [r7, #4]
  3522. 800198a: f00e f899 bl 800fac0 <HAL_TIM_ReadCapturedValue>
  3523. 800198e: 4603 mov r3, r0
  3524. 8001990: 461a mov r2, r3
  3525. 8001992: 4b3d ldr r3, [pc, #244] @ (8001a88 <HAL_TIM_IC_CaptureCallback+0x11c>)
  3526. 8001994: 601a str r2, [r3, #0]
  3527. 8001996: e00b b.n 80019b0 <HAL_TIM_IC_CaptureCallback+0x44>
  3528. } else if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_4)
  3529. 8001998: 687b ldr r3, [r7, #4]
  3530. 800199a: 7f1b ldrb r3, [r3, #28]
  3531. 800199c: 2b08 cmp r3, #8
  3532. 800199e: d107 bne.n 80019b0 <HAL_TIM_IC_CaptureCallback+0x44>
  3533. {
  3534. encoderXChannelB = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_4);
  3535. 80019a0: 210c movs r1, #12
  3536. 80019a2: 6878 ldr r0, [r7, #4]
  3537. 80019a4: f00e f88c bl 800fac0 <HAL_TIM_ReadCapturedValue>
  3538. 80019a8: 4603 mov r3, r0
  3539. 80019aa: 461a mov r2, r3
  3540. 80019ac: 4b37 ldr r3, [pc, #220] @ (8001a8c <HAL_TIM_IC_CaptureCallback+0x120>)
  3541. 80019ae: 601a str r2, [r3, #0]
  3542. }
  3543. if((encoderXChannelA != 0) && (encoderXChannelB != 0))
  3544. 80019b0: 4b35 ldr r3, [pc, #212] @ (8001a88 <HAL_TIM_IC_CaptureCallback+0x11c>)
  3545. 80019b2: 681b ldr r3, [r3, #0]
  3546. 80019b4: 2b00 cmp r3, #0
  3547. 80019b6: d060 beq.n 8001a7a <HAL_TIM_IC_CaptureCallback+0x10e>
  3548. 80019b8: 4b34 ldr r3, [pc, #208] @ (8001a8c <HAL_TIM_IC_CaptureCallback+0x120>)
  3549. 80019ba: 681b ldr r3, [r3, #0]
  3550. 80019bc: 2b00 cmp r3, #0
  3551. 80019be: d05c beq.n 8001a7a <HAL_TIM_IC_CaptureCallback+0x10e>
  3552. {
  3553. EncoderData encoderData = { 0 };
  3554. 80019c0: 2300 movs r3, #0
  3555. 80019c2: 81bb strh r3, [r7, #12]
  3556. encoderData.axe = encoderAxeX;
  3557. 80019c4: 2300 movs r3, #0
  3558. 80019c6: 733b strb r3, [r7, #12]
  3559. encoderData.direction = encoderXChannelA - encoderXChannelB < 0 ? encoderCW : encoderCCW;
  3560. 80019c8: 4b2f ldr r3, [pc, #188] @ (8001a88 <HAL_TIM_IC_CaptureCallback+0x11c>)
  3561. 80019ca: 681a ldr r2, [r3, #0]
  3562. 80019cc: 4b2f ldr r3, [pc, #188] @ (8001a8c <HAL_TIM_IC_CaptureCallback+0x120>)
  3563. 80019ce: 681b ldr r3, [r3, #0]
  3564. 80019d0: 1ad3 subs r3, r2, r3
  3565. 80019d2: 43db mvns r3, r3
  3566. 80019d4: 0fdb lsrs r3, r3, #31
  3567. 80019d6: b2db uxtb r3, r3
  3568. 80019d8: 737b strb r3, [r7, #13]
  3569. osMessageQueuePut(encoderXDataQueue, &encoderData, 0, 0);
  3570. 80019da: 4b2d ldr r3, [pc, #180] @ (8001a90 <HAL_TIM_IC_CaptureCallback+0x124>)
  3571. 80019dc: 6818 ldr r0, [r3, #0]
  3572. 80019de: f107 010c add.w r1, r7, #12
  3573. 80019e2: 2300 movs r3, #0
  3574. 80019e4: 2200 movs r2, #0
  3575. 80019e6: f012 f9a1 bl 8013d2c <osMessageQueuePut>
  3576. encoderXChannelA = 0;
  3577. 80019ea: 4b27 ldr r3, [pc, #156] @ (8001a88 <HAL_TIM_IC_CaptureCallback+0x11c>)
  3578. 80019ec: 2200 movs r2, #0
  3579. 80019ee: 601a str r2, [r3, #0]
  3580. encoderXChannelB = 0;
  3581. 80019f0: 4b26 ldr r3, [pc, #152] @ (8001a8c <HAL_TIM_IC_CaptureCallback+0x120>)
  3582. 80019f2: 2200 movs r2, #0
  3583. 80019f4: 601a str r2, [r3, #0]
  3584. osMessageQueuePut(encoderYDataQueue, &encoderData, 0, 0);
  3585. encoderYChannelA = 0;
  3586. encoderYChannelB = 0;
  3587. }
  3588. }
  3589. }
  3590. 80019f6: e040 b.n 8001a7a <HAL_TIM_IC_CaptureCallback+0x10e>
  3591. } else if (htim->Instance == TIM2)
  3592. 80019f8: 687b ldr r3, [r7, #4]
  3593. 80019fa: 681b ldr r3, [r3, #0]
  3594. 80019fc: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  3595. 8001a00: d13b bne.n 8001a7a <HAL_TIM_IC_CaptureCallback+0x10e>
  3596. if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_3)
  3597. 8001a02: 687b ldr r3, [r7, #4]
  3598. 8001a04: 7f1b ldrb r3, [r3, #28]
  3599. 8001a06: 2b04 cmp r3, #4
  3600. 8001a08: d108 bne.n 8001a1c <HAL_TIM_IC_CaptureCallback+0xb0>
  3601. encoderYChannelA = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_3);
  3602. 8001a0a: 2108 movs r1, #8
  3603. 8001a0c: 6878 ldr r0, [r7, #4]
  3604. 8001a0e: f00e f857 bl 800fac0 <HAL_TIM_ReadCapturedValue>
  3605. 8001a12: 4603 mov r3, r0
  3606. 8001a14: 461a mov r2, r3
  3607. 8001a16: 4b1f ldr r3, [pc, #124] @ (8001a94 <HAL_TIM_IC_CaptureCallback+0x128>)
  3608. 8001a18: 601a str r2, [r3, #0]
  3609. 8001a1a: e00b b.n 8001a34 <HAL_TIM_IC_CaptureCallback+0xc8>
  3610. } else if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_4)
  3611. 8001a1c: 687b ldr r3, [r7, #4]
  3612. 8001a1e: 7f1b ldrb r3, [r3, #28]
  3613. 8001a20: 2b08 cmp r3, #8
  3614. 8001a22: d107 bne.n 8001a34 <HAL_TIM_IC_CaptureCallback+0xc8>
  3615. encoderYChannelB = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_4);
  3616. 8001a24: 210c movs r1, #12
  3617. 8001a26: 6878 ldr r0, [r7, #4]
  3618. 8001a28: f00e f84a bl 800fac0 <HAL_TIM_ReadCapturedValue>
  3619. 8001a2c: 4603 mov r3, r0
  3620. 8001a2e: 461a mov r2, r3
  3621. 8001a30: 4b19 ldr r3, [pc, #100] @ (8001a98 <HAL_TIM_IC_CaptureCallback+0x12c>)
  3622. 8001a32: 601a str r2, [r3, #0]
  3623. if((encoderYChannelA != 0) && (encoderYChannelB != 0))
  3624. 8001a34: 4b17 ldr r3, [pc, #92] @ (8001a94 <HAL_TIM_IC_CaptureCallback+0x128>)
  3625. 8001a36: 681b ldr r3, [r3, #0]
  3626. 8001a38: 2b00 cmp r3, #0
  3627. 8001a3a: d01e beq.n 8001a7a <HAL_TIM_IC_CaptureCallback+0x10e>
  3628. 8001a3c: 4b16 ldr r3, [pc, #88] @ (8001a98 <HAL_TIM_IC_CaptureCallback+0x12c>)
  3629. 8001a3e: 681b ldr r3, [r3, #0]
  3630. 8001a40: 2b00 cmp r3, #0
  3631. 8001a42: d01a beq.n 8001a7a <HAL_TIM_IC_CaptureCallback+0x10e>
  3632. EncoderData encoderData = { 0 };
  3633. 8001a44: 2300 movs r3, #0
  3634. 8001a46: 813b strh r3, [r7, #8]
  3635. encoderData.axe = encoderAxeY;
  3636. 8001a48: 2301 movs r3, #1
  3637. 8001a4a: 723b strb r3, [r7, #8]
  3638. encoderData.direction = encoderYChannelA - encoderYChannelB < 0 ? encoderCW : encoderCCW;
  3639. 8001a4c: 4b11 ldr r3, [pc, #68] @ (8001a94 <HAL_TIM_IC_CaptureCallback+0x128>)
  3640. 8001a4e: 681a ldr r2, [r3, #0]
  3641. 8001a50: 4b11 ldr r3, [pc, #68] @ (8001a98 <HAL_TIM_IC_CaptureCallback+0x12c>)
  3642. 8001a52: 681b ldr r3, [r3, #0]
  3643. 8001a54: 1ad3 subs r3, r2, r3
  3644. 8001a56: 43db mvns r3, r3
  3645. 8001a58: 0fdb lsrs r3, r3, #31
  3646. 8001a5a: b2db uxtb r3, r3
  3647. 8001a5c: 727b strb r3, [r7, #9]
  3648. osMessageQueuePut(encoderYDataQueue, &encoderData, 0, 0);
  3649. 8001a5e: 4b0f ldr r3, [pc, #60] @ (8001a9c <HAL_TIM_IC_CaptureCallback+0x130>)
  3650. 8001a60: 6818 ldr r0, [r3, #0]
  3651. 8001a62: f107 0108 add.w r1, r7, #8
  3652. 8001a66: 2300 movs r3, #0
  3653. 8001a68: 2200 movs r2, #0
  3654. 8001a6a: f012 f95f bl 8013d2c <osMessageQueuePut>
  3655. encoderYChannelA = 0;
  3656. 8001a6e: 4b09 ldr r3, [pc, #36] @ (8001a94 <HAL_TIM_IC_CaptureCallback+0x128>)
  3657. 8001a70: 2200 movs r2, #0
  3658. 8001a72: 601a str r2, [r3, #0]
  3659. encoderYChannelB = 0;
  3660. 8001a74: 4b08 ldr r3, [pc, #32] @ (8001a98 <HAL_TIM_IC_CaptureCallback+0x12c>)
  3661. 8001a76: 2200 movs r2, #0
  3662. 8001a78: 601a str r2, [r3, #0]
  3663. }
  3664. 8001a7a: bf00 nop
  3665. 8001a7c: 3710 adds r7, #16
  3666. 8001a7e: 46bd mov sp, r7
  3667. 8001a80: bd80 pop {r7, pc}
  3668. 8001a82: bf00 nop
  3669. 8001a84: 40000800 .word 0x40000800
  3670. 8001a88: 240007a0 .word 0x240007a0
  3671. 8001a8c: 240007a4 .word 0x240007a4
  3672. 8001a90: 240007d8 .word 0x240007d8
  3673. 8001a94: 240007a8 .word 0x240007a8
  3674. 8001a98: 240007ac .word 0x240007ac
  3675. 8001a9c: 240007dc .word 0x240007dc
  3676. 08001aa0 <StartDefaultTask>:
  3677. * @param argument: Not used
  3678. * @retval None
  3679. */
  3680. /* USER CODE END Header_StartDefaultTask */
  3681. void StartDefaultTask(void *argument)
  3682. {
  3683. 8001aa0: b580 push {r7, lr}
  3684. 8001aa2: b082 sub sp, #8
  3685. 8001aa4: af00 add r7, sp, #0
  3686. 8001aa6: 6078 str r0, [r7, #4]
  3687. /* USER CODE BEGIN 5 */
  3688. SelectCurrentSensorGain(CurrentSensorL1, csGain3);
  3689. 8001aa8: 2102 movs r1, #2
  3690. 8001aaa: 2000 movs r0, #0
  3691. 8001aac: f001 f96e bl 8002d8c <SelectCurrentSensorGain>
  3692. SelectCurrentSensorGain(CurrentSensorL2, csGain3);
  3693. 8001ab0: 2102 movs r1, #2
  3694. 8001ab2: 2001 movs r0, #1
  3695. 8001ab4: f001 f96a bl 8002d8c <SelectCurrentSensorGain>
  3696. SelectCurrentSensorGain(CurrentSensorL3, csGain3);
  3697. 8001ab8: 2102 movs r1, #2
  3698. 8001aba: 2002 movs r0, #2
  3699. 8001abc: f001 f966 bl 8002d8c <SelectCurrentSensorGain>
  3700. EnableCurrentSensors();
  3701. 8001ac0: f001 f958 bl 8002d74 <EnableCurrentSensors>
  3702. osDelay(pdMS_TO_TICKS(1000));
  3703. 8001ac4: f44f 707a mov.w r0, #1000 @ 0x3e8
  3704. 8001ac8: f011 fe9d bl 8013806 <osDelay>
  3705. if(HAL_TIM_Base_Start(&htim2) != HAL_OK)
  3706. 8001acc: 484c ldr r0, [pc, #304] @ (8001c00 <StartDefaultTask+0x160>)
  3707. 8001ace: f00c ffb1 bl 800ea34 <HAL_TIM_Base_Start>
  3708. 8001ad2: 4603 mov r3, r0
  3709. 8001ad4: 2b00 cmp r3, #0
  3710. 8001ad6: d001 beq.n 8001adc <StartDefaultTask+0x3c>
  3711. {
  3712. Error_Handler();
  3713. 8001ad8: f000 f9b0 bl 8001e3c <Error_Handler>
  3714. }
  3715. if(HAL_TIM_Base_Start_IT(&htim4) != HAL_OK)
  3716. 8001adc: 4849 ldr r0, [pc, #292] @ (8001c04 <StartDefaultTask+0x164>)
  3717. 8001ade: f00d f819 bl 800eb14 <HAL_TIM_Base_Start_IT>
  3718. 8001ae2: 4603 mov r3, r0
  3719. 8001ae4: 2b00 cmp r3, #0
  3720. 8001ae6: d001 beq.n 8001aec <StartDefaultTask+0x4c>
  3721. {
  3722. Error_Handler();
  3723. 8001ae8: f000 f9a8 bl 8001e3c <Error_Handler>
  3724. }
  3725. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_3) != HAL_OK)
  3726. 8001aec: 2108 movs r1, #8
  3727. 8001aee: 4845 ldr r0, [pc, #276] @ (8001c04 <StartDefaultTask+0x164>)
  3728. 8001af0: f00d fae6 bl 800f0c0 <HAL_TIM_IC_Start_IT>
  3729. 8001af4: 4603 mov r3, r0
  3730. 8001af6: 2b00 cmp r3, #0
  3731. 8001af8: d001 beq.n 8001afe <StartDefaultTask+0x5e>
  3732. {
  3733. Error_Handler();
  3734. 8001afa: f000 f99f bl 8001e3c <Error_Handler>
  3735. }
  3736. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_4) != HAL_OK)
  3737. 8001afe: 210c movs r1, #12
  3738. 8001b00: 4840 ldr r0, [pc, #256] @ (8001c04 <StartDefaultTask+0x164>)
  3739. 8001b02: f00d fadd bl 800f0c0 <HAL_TIM_IC_Start_IT>
  3740. 8001b06: 4603 mov r3, r0
  3741. 8001b08: 2b00 cmp r3, #0
  3742. 8001b0a: d001 beq.n 8001b10 <StartDefaultTask+0x70>
  3743. {
  3744. Error_Handler();
  3745. 8001b0c: f000 f996 bl 8001e3c <Error_Handler>
  3746. }
  3747. if(HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_3) != HAL_OK)
  3748. 8001b10: 2108 movs r1, #8
  3749. 8001b12: 483b ldr r0, [pc, #236] @ (8001c00 <StartDefaultTask+0x160>)
  3750. 8001b14: f00d fad4 bl 800f0c0 <HAL_TIM_IC_Start_IT>
  3751. 8001b18: 4603 mov r3, r0
  3752. 8001b1a: 2b00 cmp r3, #0
  3753. 8001b1c: d001 beq.n 8001b22 <StartDefaultTask+0x82>
  3754. {
  3755. Error_Handler();
  3756. 8001b1e: f000 f98d bl 8001e3c <Error_Handler>
  3757. }
  3758. if(HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_4) != HAL_OK)
  3759. 8001b22: 210c movs r1, #12
  3760. 8001b24: 4836 ldr r0, [pc, #216] @ (8001c00 <StartDefaultTask+0x160>)
  3761. 8001b26: f00d facb bl 800f0c0 <HAL_TIM_IC_Start_IT>
  3762. 8001b2a: 4603 mov r3, r0
  3763. 8001b2c: 2b00 cmp r3, #0
  3764. 8001b2e: d001 beq.n 8001b34 <StartDefaultTask+0x94>
  3765. {
  3766. Error_Handler();
  3767. 8001b30: f000 f984 bl 8001e3c <Error_Handler>
  3768. }
  3769. if(HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc1Data.adcDataBuffer, ADC1LastData) != HAL_OK)
  3770. 8001b34: 2207 movs r2, #7
  3771. 8001b36: 4934 ldr r1, [pc, #208] @ (8001c08 <StartDefaultTask+0x168>)
  3772. 8001b38: 4834 ldr r0, [pc, #208] @ (8001c0c <StartDefaultTask+0x16c>)
  3773. 8001b3a: f004 f881 bl 8005c40 <HAL_ADC_Start_DMA>
  3774. 8001b3e: 4603 mov r3, r0
  3775. 8001b40: 2b00 cmp r3, #0
  3776. 8001b42: d001 beq.n 8001b48 <StartDefaultTask+0xa8>
  3777. {
  3778. Error_Handler();
  3779. 8001b44: f000 f97a bl 8001e3c <Error_Handler>
  3780. }
  3781. if(HAL_ADC_Start_DMA(&hadc2, (uint32_t *)adc2Data.adcDataBuffer, ADC2LastData) != HAL_OK)
  3782. 8001b48: 2203 movs r2, #3
  3783. 8001b4a: 4931 ldr r1, [pc, #196] @ (8001c10 <StartDefaultTask+0x170>)
  3784. 8001b4c: 4831 ldr r0, [pc, #196] @ (8001c14 <StartDefaultTask+0x174>)
  3785. 8001b4e: f004 f877 bl 8005c40 <HAL_ADC_Start_DMA>
  3786. 8001b52: 4603 mov r3, r0
  3787. 8001b54: 2b00 cmp r3, #0
  3788. 8001b56: d001 beq.n 8001b5c <StartDefaultTask+0xbc>
  3789. {
  3790. Error_Handler();
  3791. 8001b58: f000 f970 bl 8001e3c <Error_Handler>
  3792. }
  3793. if(HAL_ADC_Start_DMA(&hadc3, (uint32_t *)adc3Data.adcDataBuffer, ADC3LastData) != HAL_OK)
  3794. 8001b5c: 2205 movs r2, #5
  3795. 8001b5e: 492e ldr r1, [pc, #184] @ (8001c18 <StartDefaultTask+0x178>)
  3796. 8001b60: 482e ldr r0, [pc, #184] @ (8001c1c <StartDefaultTask+0x17c>)
  3797. 8001b62: f004 f86d bl 8005c40 <HAL_ADC_Start_DMA>
  3798. 8001b66: 4603 mov r3, r0
  3799. 8001b68: 2b00 cmp r3, #0
  3800. 8001b6a: d001 beq.n 8001b70 <StartDefaultTask+0xd0>
  3801. {
  3802. Error_Handler();
  3803. 8001b6c: f000 f966 bl 8001e3c <Error_Handler>
  3804. }
  3805. HAL_COMP_Start(&hcomp1);
  3806. 8001b70: 482b ldr r0, [pc, #172] @ (8001c20 <StartDefaultTask+0x180>)
  3807. 8001b72: f005 f9e9 bl 8006f48 <HAL_COMP_Start>
  3808. /* Infinite loop */
  3809. for(;;)
  3810. {
  3811. osDelay(pdMS_TO_TICKS(100));
  3812. 8001b76: 2064 movs r0, #100 @ 0x64
  3813. 8001b78: f011 fe45 bl 8013806 <osDelay>
  3814. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  3815. 8001b7c: 2100 movs r1, #0
  3816. 8001b7e: 4829 ldr r0, [pc, #164] @ (8001c24 <StartDefaultTask+0x184>)
  3817. 8001b80: f00e f800 bl 800fb84 <HAL_TIM_GetChannelState>
  3818. 8001b84: 4603 mov r3, r0
  3819. 8001b86: 2b01 cmp r3, #1
  3820. 8001b88: d118 bne.n 8001bbc <StartDefaultTask+0x11c>
  3821. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_2) == HAL_TIM_CHANNEL_STATE_READY)
  3822. 8001b8a: 2104 movs r1, #4
  3823. 8001b8c: 4825 ldr r0, [pc, #148] @ (8001c24 <StartDefaultTask+0x184>)
  3824. 8001b8e: f00d fff9 bl 800fb84 <HAL_TIM_GetChannelState>
  3825. 8001b92: 4603 mov r3, r0
  3826. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  3827. 8001b94: 2b01 cmp r3, #1
  3828. 8001b96: d111 bne.n 8001bbc <StartDefaultTask+0x11c>
  3829. {
  3830. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  3831. 8001b98: 4b23 ldr r3, [pc, #140] @ (8001c28 <StartDefaultTask+0x188>)
  3832. 8001b9a: 681b ldr r3, [r3, #0]
  3833. 8001b9c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  3834. 8001ba0: 4618 mov r0, r3
  3835. 8001ba2: f011 ffc8 bl 8013b36 <osMutexAcquire>
  3836. 8001ba6: 4603 mov r3, r0
  3837. 8001ba8: 2b00 cmp r3, #0
  3838. 8001baa: d107 bne.n 8001bbc <StartDefaultTask+0x11c>
  3839. {
  3840. sensorsInfo.motorXStatus = 0;
  3841. 8001bac: 4b1f ldr r3, [pc, #124] @ (8001c2c <StartDefaultTask+0x18c>)
  3842. 8001bae: 2200 movs r2, #0
  3843. 8001bb0: 751a strb r2, [r3, #20]
  3844. osMutexRelease(sensorsInfoMutex);
  3845. 8001bb2: 4b1d ldr r3, [pc, #116] @ (8001c28 <StartDefaultTask+0x188>)
  3846. 8001bb4: 681b ldr r3, [r3, #0]
  3847. 8001bb6: 4618 mov r0, r3
  3848. 8001bb8: f012 f808 bl 8013bcc <osMutexRelease>
  3849. }
  3850. }
  3851. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  3852. 8001bbc: 2108 movs r1, #8
  3853. 8001bbe: 4819 ldr r0, [pc, #100] @ (8001c24 <StartDefaultTask+0x184>)
  3854. 8001bc0: f00d ffe0 bl 800fb84 <HAL_TIM_GetChannelState>
  3855. 8001bc4: 4603 mov r3, r0
  3856. 8001bc6: 2b01 cmp r3, #1
  3857. 8001bc8: d1d5 bne.n 8001b76 <StartDefaultTask+0xd6>
  3858. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_4) == HAL_TIM_CHANNEL_STATE_READY)
  3859. 8001bca: 210c movs r1, #12
  3860. 8001bcc: 4815 ldr r0, [pc, #84] @ (8001c24 <StartDefaultTask+0x184>)
  3861. 8001bce: f00d ffd9 bl 800fb84 <HAL_TIM_GetChannelState>
  3862. 8001bd2: 4603 mov r3, r0
  3863. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  3864. 8001bd4: 2b01 cmp r3, #1
  3865. 8001bd6: d1ce bne.n 8001b76 <StartDefaultTask+0xd6>
  3866. {
  3867. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  3868. 8001bd8: 4b13 ldr r3, [pc, #76] @ (8001c28 <StartDefaultTask+0x188>)
  3869. 8001bda: 681b ldr r3, [r3, #0]
  3870. 8001bdc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  3871. 8001be0: 4618 mov r0, r3
  3872. 8001be2: f011 ffa8 bl 8013b36 <osMutexAcquire>
  3873. 8001be6: 4603 mov r3, r0
  3874. 8001be8: 2b00 cmp r3, #0
  3875. 8001bea: d1c4 bne.n 8001b76 <StartDefaultTask+0xd6>
  3876. {
  3877. sensorsInfo.motorYStatus = 0;
  3878. 8001bec: 4b0f ldr r3, [pc, #60] @ (8001c2c <StartDefaultTask+0x18c>)
  3879. 8001bee: 2200 movs r2, #0
  3880. 8001bf0: 755a strb r2, [r3, #21]
  3881. osMutexRelease(sensorsInfoMutex);
  3882. 8001bf2: 4b0d ldr r3, [pc, #52] @ (8001c28 <StartDefaultTask+0x188>)
  3883. 8001bf4: 681b ldr r3, [r3, #0]
  3884. 8001bf6: 4618 mov r0, r3
  3885. 8001bf8: f011 ffe8 bl 8013bcc <osMutexRelease>
  3886. osDelay(pdMS_TO_TICKS(100));
  3887. 8001bfc: e7bb b.n 8001b76 <StartDefaultTask+0xd6>
  3888. 8001bfe: bf00 nop
  3889. 8001c00: 24000498 .word 0x24000498
  3890. 8001c04: 24000530 .word 0x24000530
  3891. 8001c08: 240000e0 .word 0x240000e0
  3892. 8001c0c: 24000140 .word 0x24000140
  3893. 8001c10: 24000100 .word 0x24000100
  3894. 8001c14: 240001a4 .word 0x240001a4
  3895. 8001c18: 24000120 .word 0x24000120
  3896. 8001c1c: 24000208 .word 0x24000208
  3897. 8001c20: 240003d4 .word 0x240003d4
  3898. 8001c24: 240004e4 .word 0x240004e4
  3899. 8001c28: 240007e8 .word 0x240007e8
  3900. 8001c2c: 2400082c .word 0x2400082c
  3901. 08001c30 <debugLedTimerCallback>:
  3902. /* USER CODE END 5 */
  3903. }
  3904. /* debugLedTimerCallback function */
  3905. void debugLedTimerCallback(void *argument)
  3906. {
  3907. 8001c30: b580 push {r7, lr}
  3908. 8001c32: b082 sub sp, #8
  3909. 8001c34: af00 add r7, sp, #0
  3910. 8001c36: 6078 str r0, [r7, #4]
  3911. /* USER CODE BEGIN debugLedTimerCallback */
  3912. DbgLEDOff (DBG_LED1);
  3913. 8001c38: 2010 movs r0, #16
  3914. 8001c3a: f001 f877 bl 8002d2c <DbgLEDOff>
  3915. /* USER CODE END debugLedTimerCallback */
  3916. }
  3917. 8001c3e: bf00 nop
  3918. 8001c40: 3708 adds r7, #8
  3919. 8001c42: 46bd mov sp, r7
  3920. 8001c44: bd80 pop {r7, pc}
  3921. ...
  3922. 08001c48 <fanTimerCallback>:
  3923. /* fanTimerCallback function */
  3924. void fanTimerCallback(void *argument)
  3925. {
  3926. 8001c48: b580 push {r7, lr}
  3927. 8001c4a: b082 sub sp, #8
  3928. 8001c4c: af00 add r7, sp, #0
  3929. 8001c4e: 6078 str r0, [r7, #4]
  3930. /* USER CODE BEGIN fanTimerCallback */
  3931. HAL_TIM_PWM_Stop(&htim1, TIM_CHANNEL_2);
  3932. 8001c50: 2104 movs r1, #4
  3933. 8001c52: 4803 ldr r0, [pc, #12] @ (8001c60 <fanTimerCallback+0x18>)
  3934. 8001c54: f00d f93c bl 800eed0 <HAL_TIM_PWM_Stop>
  3935. /* USER CODE END fanTimerCallback */
  3936. }
  3937. 8001c58: bf00 nop
  3938. 8001c5a: 3708 adds r7, #8
  3939. 8001c5c: 46bd mov sp, r7
  3940. 8001c5e: bd80 pop {r7, pc}
  3941. 8001c60: 2400044c .word 0x2400044c
  3942. 08001c64 <motorXTimerCallback>:
  3943. /* motorXTimerCallback function */
  3944. void motorXTimerCallback(void *argument)
  3945. {
  3946. 8001c64: b580 push {r7, lr}
  3947. 8001c66: b084 sub sp, #16
  3948. 8001c68: af02 add r7, sp, #8
  3949. 8001c6a: 6078 str r0, [r7, #4]
  3950. /* USER CODE BEGIN motorXTimerCallback */
  3951. motorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, HiZ, 0);
  3952. 8001c6c: 2300 movs r3, #0
  3953. 8001c6e: 9301 str r3, [sp, #4]
  3954. 8001c70: 2300 movs r3, #0
  3955. 8001c72: 9300 str r3, [sp, #0]
  3956. 8001c74: 2304 movs r3, #4
  3957. 8001c76: 2200 movs r2, #0
  3958. 8001c78: 4907 ldr r1, [pc, #28] @ (8001c98 <motorXTimerCallback+0x34>)
  3959. 8001c7a: 4808 ldr r0, [pc, #32] @ (8001c9c <motorXTimerCallback+0x38>)
  3960. 8001c7c: f001 fa0b bl 8003096 <motorAction>
  3961. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_1);
  3962. 8001c80: 2100 movs r1, #0
  3963. 8001c82: 4806 ldr r0, [pc, #24] @ (8001c9c <motorXTimerCallback+0x38>)
  3964. 8001c84: f00d f924 bl 800eed0 <HAL_TIM_PWM_Stop>
  3965. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_2);
  3966. 8001c88: 2104 movs r1, #4
  3967. 8001c8a: 4804 ldr r0, [pc, #16] @ (8001c9c <motorXTimerCallback+0x38>)
  3968. 8001c8c: f00d f920 bl 800eed0 <HAL_TIM_PWM_Stop>
  3969. /* USER CODE END motorXTimerCallback */
  3970. }
  3971. 8001c90: bf00 nop
  3972. 8001c92: 3708 adds r7, #8
  3973. 8001c94: 46bd mov sp, r7
  3974. 8001c96: bd80 pop {r7, pc}
  3975. 8001c98: 24000784 .word 0x24000784
  3976. 8001c9c: 240004e4 .word 0x240004e4
  3977. 08001ca0 <motorYTimerCallback>:
  3978. /* motorYTimerCallback function */
  3979. void motorYTimerCallback(void *argument)
  3980. {
  3981. 8001ca0: b580 push {r7, lr}
  3982. 8001ca2: b084 sub sp, #16
  3983. 8001ca4: af02 add r7, sp, #8
  3984. 8001ca6: 6078 str r0, [r7, #4]
  3985. /* USER CODE BEGIN motorYTimerCallback */
  3986. motorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, HiZ, 0);
  3987. 8001ca8: 2300 movs r3, #0
  3988. 8001caa: 9301 str r3, [sp, #4]
  3989. 8001cac: 2300 movs r3, #0
  3990. 8001cae: 9300 str r3, [sp, #0]
  3991. 8001cb0: 230c movs r3, #12
  3992. 8001cb2: 2208 movs r2, #8
  3993. 8001cb4: 4907 ldr r1, [pc, #28] @ (8001cd4 <motorYTimerCallback+0x34>)
  3994. 8001cb6: 4808 ldr r0, [pc, #32] @ (8001cd8 <motorYTimerCallback+0x38>)
  3995. 8001cb8: f001 f9ed bl 8003096 <motorAction>
  3996. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_3);
  3997. 8001cbc: 2108 movs r1, #8
  3998. 8001cbe: 4806 ldr r0, [pc, #24] @ (8001cd8 <motorYTimerCallback+0x38>)
  3999. 8001cc0: f00d f906 bl 800eed0 <HAL_TIM_PWM_Stop>
  4000. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_4);
  4001. 8001cc4: 210c movs r1, #12
  4002. 8001cc6: 4804 ldr r0, [pc, #16] @ (8001cd8 <motorYTimerCallback+0x38>)
  4003. 8001cc8: f00d f902 bl 800eed0 <HAL_TIM_PWM_Stop>
  4004. /* USER CODE END motorYTimerCallback */
  4005. }
  4006. 8001ccc: bf00 nop
  4007. 8001cce: 3708 adds r7, #8
  4008. 8001cd0: 46bd mov sp, r7
  4009. 8001cd2: bd80 pop {r7, pc}
  4010. 8001cd4: 24000784 .word 0x24000784
  4011. 8001cd8: 240004e4 .word 0x240004e4
  4012. 08001cdc <MPU_Config>:
  4013. /* MPU Configuration */
  4014. void MPU_Config(void)
  4015. {
  4016. 8001cdc: b580 push {r7, lr}
  4017. 8001cde: b084 sub sp, #16
  4018. 8001ce0: af00 add r7, sp, #0
  4019. MPU_Region_InitTypeDef MPU_InitStruct = {0};
  4020. 8001ce2: 463b mov r3, r7
  4021. 8001ce4: 2200 movs r2, #0
  4022. 8001ce6: 601a str r2, [r3, #0]
  4023. 8001ce8: 605a str r2, [r3, #4]
  4024. 8001cea: 609a str r2, [r3, #8]
  4025. 8001cec: 60da str r2, [r3, #12]
  4026. /* Disables the MPU */
  4027. HAL_MPU_Disable();
  4028. 8001cee: f005 fa73 bl 80071d8 <HAL_MPU_Disable>
  4029. /** Initializes and configures the Region and the memory to be protected
  4030. */
  4031. MPU_InitStruct.Enable = MPU_REGION_ENABLE;
  4032. 8001cf2: 2301 movs r3, #1
  4033. 8001cf4: 703b strb r3, [r7, #0]
  4034. MPU_InitStruct.Number = MPU_REGION_NUMBER0;
  4035. 8001cf6: 2300 movs r3, #0
  4036. 8001cf8: 707b strb r3, [r7, #1]
  4037. MPU_InitStruct.BaseAddress = 0x0;
  4038. 8001cfa: 2300 movs r3, #0
  4039. 8001cfc: 607b str r3, [r7, #4]
  4040. MPU_InitStruct.Size = MPU_REGION_SIZE_4GB;
  4041. 8001cfe: 231f movs r3, #31
  4042. 8001d00: 723b strb r3, [r7, #8]
  4043. MPU_InitStruct.SubRegionDisable = 0x87;
  4044. 8001d02: 2387 movs r3, #135 @ 0x87
  4045. 8001d04: 727b strb r3, [r7, #9]
  4046. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4047. 8001d06: 2300 movs r3, #0
  4048. 8001d08: 72bb strb r3, [r7, #10]
  4049. MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS;
  4050. 8001d0a: 2300 movs r3, #0
  4051. 8001d0c: 72fb strb r3, [r7, #11]
  4052. MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE;
  4053. 8001d0e: 2301 movs r3, #1
  4054. 8001d10: 733b strb r3, [r7, #12]
  4055. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4056. 8001d12: 2301 movs r3, #1
  4057. 8001d14: 737b strb r3, [r7, #13]
  4058. MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
  4059. 8001d16: 2300 movs r3, #0
  4060. 8001d18: 73bb strb r3, [r7, #14]
  4061. MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
  4062. 8001d1a: 2300 movs r3, #0
  4063. 8001d1c: 73fb strb r3, [r7, #15]
  4064. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4065. 8001d1e: 463b mov r3, r7
  4066. 8001d20: 4618 mov r0, r3
  4067. 8001d22: f005 fa91 bl 8007248 <HAL_MPU_ConfigRegion>
  4068. /** Initializes and configures the Region and the memory to be protected
  4069. */
  4070. MPU_InitStruct.Number = MPU_REGION_NUMBER1;
  4071. 8001d26: 2301 movs r3, #1
  4072. 8001d28: 707b strb r3, [r7, #1]
  4073. MPU_InitStruct.BaseAddress = 0x24020000;
  4074. 8001d2a: 4b13 ldr r3, [pc, #76] @ (8001d78 <MPU_Config+0x9c>)
  4075. 8001d2c: 607b str r3, [r7, #4]
  4076. MPU_InitStruct.Size = MPU_REGION_SIZE_128KB;
  4077. 8001d2e: 2310 movs r3, #16
  4078. 8001d30: 723b strb r3, [r7, #8]
  4079. MPU_InitStruct.SubRegionDisable = 0x0;
  4080. 8001d32: 2300 movs r3, #0
  4081. 8001d34: 727b strb r3, [r7, #9]
  4082. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
  4083. 8001d36: 2301 movs r3, #1
  4084. 8001d38: 72bb strb r3, [r7, #10]
  4085. MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
  4086. 8001d3a: 2303 movs r3, #3
  4087. 8001d3c: 72fb strb r3, [r7, #11]
  4088. MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
  4089. 8001d3e: 2300 movs r3, #0
  4090. 8001d40: 737b strb r3, [r7, #13]
  4091. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4092. 8001d42: 463b mov r3, r7
  4093. 8001d44: 4618 mov r0, r3
  4094. 8001d46: f005 fa7f bl 8007248 <HAL_MPU_ConfigRegion>
  4095. /** Initializes and configures the Region and the memory to be protected
  4096. */
  4097. MPU_InitStruct.Number = MPU_REGION_NUMBER2;
  4098. 8001d4a: 2302 movs r3, #2
  4099. 8001d4c: 707b strb r3, [r7, #1]
  4100. MPU_InitStruct.BaseAddress = 0x24040000;
  4101. 8001d4e: 4b0b ldr r3, [pc, #44] @ (8001d7c <MPU_Config+0xa0>)
  4102. 8001d50: 607b str r3, [r7, #4]
  4103. MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
  4104. 8001d52: 2308 movs r3, #8
  4105. 8001d54: 723b strb r3, [r7, #8]
  4106. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4107. 8001d56: 2300 movs r3, #0
  4108. 8001d58: 72bb strb r3, [r7, #10]
  4109. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4110. 8001d5a: 2301 movs r3, #1
  4111. 8001d5c: 737b strb r3, [r7, #13]
  4112. MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
  4113. 8001d5e: 2301 movs r3, #1
  4114. 8001d60: 73fb strb r3, [r7, #15]
  4115. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4116. 8001d62: 463b mov r3, r7
  4117. 8001d64: 4618 mov r0, r3
  4118. 8001d66: f005 fa6f bl 8007248 <HAL_MPU_ConfigRegion>
  4119. /* Enables the MPU */
  4120. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  4121. 8001d6a: 2004 movs r0, #4
  4122. 8001d6c: f005 fa4c bl 8007208 <HAL_MPU_Enable>
  4123. }
  4124. 8001d70: bf00 nop
  4125. 8001d72: 3710 adds r7, #16
  4126. 8001d74: 46bd mov sp, r7
  4127. 8001d76: bd80 pop {r7, pc}
  4128. 8001d78: 24020000 .word 0x24020000
  4129. 8001d7c: 24040000 .word 0x24040000
  4130. 08001d80 <HAL_TIM_PeriodElapsedCallback>:
  4131. * a global variable "uwTick" used as application time base.
  4132. * @param htim : TIM handle
  4133. * @retval None
  4134. */
  4135. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  4136. {
  4137. 8001d80: b580 push {r7, lr}
  4138. 8001d82: b082 sub sp, #8
  4139. 8001d84: af00 add r7, sp, #0
  4140. 8001d86: 6078 str r0, [r7, #4]
  4141. /* USER CODE BEGIN Callback 0 */
  4142. /* USER CODE END Callback 0 */
  4143. if (htim->Instance == TIM6) {
  4144. 8001d88: 687b ldr r3, [r7, #4]
  4145. 8001d8a: 681b ldr r3, [r3, #0]
  4146. 8001d8c: 4a25 ldr r2, [pc, #148] @ (8001e24 <HAL_TIM_PeriodElapsedCallback+0xa4>)
  4147. 8001d8e: 4293 cmp r3, r2
  4148. 8001d90: d102 bne.n 8001d98 <HAL_TIM_PeriodElapsedCallback+0x18>
  4149. HAL_IncTick();
  4150. 8001d92: f003 fb3f bl 8005414 <HAL_IncTick>
  4151. encoderYChannelA += htim->Instance->ARR;
  4152. }
  4153. }
  4154. /* USER CODE END Callback 1 */
  4155. }
  4156. 8001d96: e040 b.n 8001e1a <HAL_TIM_PeriodElapsedCallback+0x9a>
  4157. else if (htim->Instance == TIM4)
  4158. 8001d98: 687b ldr r3, [r7, #4]
  4159. 8001d9a: 681b ldr r3, [r3, #0]
  4160. 8001d9c: 4a22 ldr r2, [pc, #136] @ (8001e28 <HAL_TIM_PeriodElapsedCallback+0xa8>)
  4161. 8001d9e: 4293 cmp r3, r2
  4162. 8001da0: d11b bne.n 8001dda <HAL_TIM_PeriodElapsedCallback+0x5a>
  4163. if(encoderXChannelA > 0)
  4164. 8001da2: 4b22 ldr r3, [pc, #136] @ (8001e2c <HAL_TIM_PeriodElapsedCallback+0xac>)
  4165. 8001da4: 681b ldr r3, [r3, #0]
  4166. 8001da6: 2b00 cmp r3, #0
  4167. 8001da8: dd09 ble.n 8001dbe <HAL_TIM_PeriodElapsedCallback+0x3e>
  4168. encoderXChannelB += htim->Instance->ARR;
  4169. 8001daa: 687b ldr r3, [r7, #4]
  4170. 8001dac: 681b ldr r3, [r3, #0]
  4171. 8001dae: 6adb ldr r3, [r3, #44] @ 0x2c
  4172. 8001db0: 4a1f ldr r2, [pc, #124] @ (8001e30 <HAL_TIM_PeriodElapsedCallback+0xb0>)
  4173. 8001db2: 6812 ldr r2, [r2, #0]
  4174. 8001db4: 4413 add r3, r2
  4175. 8001db6: 461a mov r2, r3
  4176. 8001db8: 4b1d ldr r3, [pc, #116] @ (8001e30 <HAL_TIM_PeriodElapsedCallback+0xb0>)
  4177. 8001dba: 601a str r2, [r3, #0]
  4178. }
  4179. 8001dbc: e02d b.n 8001e1a <HAL_TIM_PeriodElapsedCallback+0x9a>
  4180. } else if(encoderXChannelB > 0)
  4181. 8001dbe: 4b1c ldr r3, [pc, #112] @ (8001e30 <HAL_TIM_PeriodElapsedCallback+0xb0>)
  4182. 8001dc0: 681b ldr r3, [r3, #0]
  4183. 8001dc2: 2b00 cmp r3, #0
  4184. 8001dc4: dd29 ble.n 8001e1a <HAL_TIM_PeriodElapsedCallback+0x9a>
  4185. encoderXChannelA += htim->Instance->ARR;
  4186. 8001dc6: 687b ldr r3, [r7, #4]
  4187. 8001dc8: 681b ldr r3, [r3, #0]
  4188. 8001dca: 6adb ldr r3, [r3, #44] @ 0x2c
  4189. 8001dcc: 4a17 ldr r2, [pc, #92] @ (8001e2c <HAL_TIM_PeriodElapsedCallback+0xac>)
  4190. 8001dce: 6812 ldr r2, [r2, #0]
  4191. 8001dd0: 4413 add r3, r2
  4192. 8001dd2: 461a mov r2, r3
  4193. 8001dd4: 4b15 ldr r3, [pc, #84] @ (8001e2c <HAL_TIM_PeriodElapsedCallback+0xac>)
  4194. 8001dd6: 601a str r2, [r3, #0]
  4195. }
  4196. 8001dd8: e01f b.n 8001e1a <HAL_TIM_PeriodElapsedCallback+0x9a>
  4197. else if (htim->Instance == TIM2)
  4198. 8001dda: 687b ldr r3, [r7, #4]
  4199. 8001ddc: 681b ldr r3, [r3, #0]
  4200. 8001dde: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  4201. 8001de2: d11a bne.n 8001e1a <HAL_TIM_PeriodElapsedCallback+0x9a>
  4202. if(encoderYChannelA > 0)
  4203. 8001de4: 4b13 ldr r3, [pc, #76] @ (8001e34 <HAL_TIM_PeriodElapsedCallback+0xb4>)
  4204. 8001de6: 681b ldr r3, [r3, #0]
  4205. 8001de8: 2b00 cmp r3, #0
  4206. 8001dea: dd09 ble.n 8001e00 <HAL_TIM_PeriodElapsedCallback+0x80>
  4207. encoderYChannelB += htim->Instance->ARR;
  4208. 8001dec: 687b ldr r3, [r7, #4]
  4209. 8001dee: 681b ldr r3, [r3, #0]
  4210. 8001df0: 6adb ldr r3, [r3, #44] @ 0x2c
  4211. 8001df2: 4a11 ldr r2, [pc, #68] @ (8001e38 <HAL_TIM_PeriodElapsedCallback+0xb8>)
  4212. 8001df4: 6812 ldr r2, [r2, #0]
  4213. 8001df6: 4413 add r3, r2
  4214. 8001df8: 461a mov r2, r3
  4215. 8001dfa: 4b0f ldr r3, [pc, #60] @ (8001e38 <HAL_TIM_PeriodElapsedCallback+0xb8>)
  4216. 8001dfc: 601a str r2, [r3, #0]
  4217. }
  4218. 8001dfe: e00c b.n 8001e1a <HAL_TIM_PeriodElapsedCallback+0x9a>
  4219. } else if(encoderYChannelB > 0)
  4220. 8001e00: 4b0d ldr r3, [pc, #52] @ (8001e38 <HAL_TIM_PeriodElapsedCallback+0xb8>)
  4221. 8001e02: 681b ldr r3, [r3, #0]
  4222. 8001e04: 2b00 cmp r3, #0
  4223. 8001e06: dd08 ble.n 8001e1a <HAL_TIM_PeriodElapsedCallback+0x9a>
  4224. encoderYChannelA += htim->Instance->ARR;
  4225. 8001e08: 687b ldr r3, [r7, #4]
  4226. 8001e0a: 681b ldr r3, [r3, #0]
  4227. 8001e0c: 6adb ldr r3, [r3, #44] @ 0x2c
  4228. 8001e0e: 4a09 ldr r2, [pc, #36] @ (8001e34 <HAL_TIM_PeriodElapsedCallback+0xb4>)
  4229. 8001e10: 6812 ldr r2, [r2, #0]
  4230. 8001e12: 4413 add r3, r2
  4231. 8001e14: 461a mov r2, r3
  4232. 8001e16: 4b07 ldr r3, [pc, #28] @ (8001e34 <HAL_TIM_PeriodElapsedCallback+0xb4>)
  4233. 8001e18: 601a str r2, [r3, #0]
  4234. }
  4235. 8001e1a: bf00 nop
  4236. 8001e1c: 3708 adds r7, #8
  4237. 8001e1e: 46bd mov sp, r7
  4238. 8001e20: bd80 pop {r7, pc}
  4239. 8001e22: bf00 nop
  4240. 8001e24: 40001000 .word 0x40001000
  4241. 8001e28: 40000800 .word 0x40000800
  4242. 8001e2c: 240007a0 .word 0x240007a0
  4243. 8001e30: 240007a4 .word 0x240007a4
  4244. 8001e34: 240007a8 .word 0x240007a8
  4245. 8001e38: 240007ac .word 0x240007ac
  4246. 08001e3c <Error_Handler>:
  4247. /**
  4248. * @brief This function is executed in case of error occurrence.
  4249. * @retval None
  4250. */
  4251. void Error_Handler(void)
  4252. {
  4253. 8001e3c: b580 push {r7, lr}
  4254. 8001e3e: af00 add r7, sp, #0
  4255. __ASM volatile ("cpsid i" : : : "memory");
  4256. 8001e40: b672 cpsid i
  4257. }
  4258. 8001e42: bf00 nop
  4259. /* USER CODE BEGIN Error_Handler_Debug */
  4260. /* User can add his own implementation to report the HAL error return state */
  4261. __disable_irq();
  4262. NVIC_SystemReset();
  4263. 8001e44: f7fe fc20 bl 8000688 <__NVIC_SystemReset>
  4264. 08001e48 <MeasTasksInit>:
  4265. extern TIM_OC_InitTypeDef motorXYTimerConfigOC;
  4266. extern osTimerId_t motorXTimerHandle;
  4267. extern osTimerId_t motorYTimerHandle;
  4268. void MeasTasksInit (void) {
  4269. 8001e48: b580 push {r7, lr}
  4270. 8001e4a: b0b6 sub sp, #216 @ 0xd8
  4271. 8001e4c: af00 add r7, sp, #0
  4272. vRefmVMutex = osMutexNew (NULL);
  4273. 8001e4e: 2000 movs r0, #0
  4274. 8001e50: f011 fdeb bl 8013a2a <osMutexNew>
  4275. 8001e54: 4603 mov r3, r0
  4276. 8001e56: 4a69 ldr r2, [pc, #420] @ (8001ffc <MeasTasksInit+0x1b4>)
  4277. 8001e58: 6013 str r3, [r2, #0]
  4278. resMeasurementsMutex = osMutexNew (NULL);
  4279. 8001e5a: 2000 movs r0, #0
  4280. 8001e5c: f011 fde5 bl 8013a2a <osMutexNew>
  4281. 8001e60: 4603 mov r3, r0
  4282. 8001e62: 4a67 ldr r2, [pc, #412] @ (8002000 <MeasTasksInit+0x1b8>)
  4283. 8001e64: 6013 str r3, [r2, #0]
  4284. sensorsInfoMutex = osMutexNew (NULL);
  4285. 8001e66: 2000 movs r0, #0
  4286. 8001e68: f011 fddf bl 8013a2a <osMutexNew>
  4287. 8001e6c: 4603 mov r3, r0
  4288. 8001e6e: 4a65 ldr r2, [pc, #404] @ (8002004 <MeasTasksInit+0x1bc>)
  4289. 8001e70: 6013 str r3, [r2, #0]
  4290. ILxRefMutex = osMutexNew (NULL);
  4291. 8001e72: 2000 movs r0, #0
  4292. 8001e74: f011 fdd9 bl 8013a2a <osMutexNew>
  4293. 8001e78: 4603 mov r3, r0
  4294. 8001e7a: 4a63 ldr r2, [pc, #396] @ (8002008 <MeasTasksInit+0x1c0>)
  4295. 8001e7c: 6013 str r3, [r2, #0]
  4296. adc1MeasDataQueue = osMessageQueueNew (8, sizeof (ADC1_Data), NULL);
  4297. 8001e7e: 2200 movs r2, #0
  4298. 8001e80: 2120 movs r1, #32
  4299. 8001e82: 2008 movs r0, #8
  4300. 8001e84: f011 fedf bl 8013c46 <osMessageQueueNew>
  4301. 8001e88: 4603 mov r3, r0
  4302. 8001e8a: 4a60 ldr r2, [pc, #384] @ (800200c <MeasTasksInit+0x1c4>)
  4303. 8001e8c: 6013 str r3, [r2, #0]
  4304. adc2MeasDataQueue = osMessageQueueNew (8, sizeof (ADC2_Data), NULL);
  4305. 8001e8e: 2200 movs r2, #0
  4306. 8001e90: 2120 movs r1, #32
  4307. 8001e92: 2008 movs r0, #8
  4308. 8001e94: f011 fed7 bl 8013c46 <osMessageQueueNew>
  4309. 8001e98: 4603 mov r3, r0
  4310. 8001e9a: 4a5d ldr r2, [pc, #372] @ (8002010 <MeasTasksInit+0x1c8>)
  4311. 8001e9c: 6013 str r3, [r2, #0]
  4312. adc3MeasDataQueue = osMessageQueueNew (8, sizeof (ADC3_Data), NULL);
  4313. 8001e9e: 2200 movs r2, #0
  4314. 8001ea0: 2120 movs r1, #32
  4315. 8001ea2: 2008 movs r0, #8
  4316. 8001ea4: f011 fecf bl 8013c46 <osMessageQueueNew>
  4317. 8001ea8: 4603 mov r3, r0
  4318. 8001eaa: 4a5a ldr r2, [pc, #360] @ (8002014 <MeasTasksInit+0x1cc>)
  4319. 8001eac: 6013 str r3, [r2, #0]
  4320. osThreadAttr_t osThreadAttradc1MeasTask = { 0 };
  4321. 8001eae: f107 03b4 add.w r3, r7, #180 @ 0xb4
  4322. 8001eb2: 2224 movs r2, #36 @ 0x24
  4323. 8001eb4: 2100 movs r1, #0
  4324. 8001eb6: 4618 mov r0, r3
  4325. 8001eb8: f015 fe7d bl 8017bb6 <memset>
  4326. osThreadAttr_t osThreadAttradc2MeasTask = { 0 };
  4327. 8001ebc: f107 0390 add.w r3, r7, #144 @ 0x90
  4328. 8001ec0: 2224 movs r2, #36 @ 0x24
  4329. 8001ec2: 2100 movs r1, #0
  4330. 8001ec4: 4618 mov r0, r3
  4331. 8001ec6: f015 fe76 bl 8017bb6 <memset>
  4332. osThreadAttr_t osThreadAttradc3MeasTask = { 0 };
  4333. 8001eca: f107 036c add.w r3, r7, #108 @ 0x6c
  4334. 8001ece: 2224 movs r2, #36 @ 0x24
  4335. 8001ed0: 2100 movs r1, #0
  4336. 8001ed2: 4618 mov r0, r3
  4337. 8001ed4: f015 fe6f bl 8017bb6 <memset>
  4338. osThreadAttradc1MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4339. 8001ed8: f44f 6380 mov.w r3, #1024 @ 0x400
  4340. 8001edc: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  4341. osThreadAttradc1MeasTask.priority = (osPriority_t)osPriorityRealtime;
  4342. 8001ee0: 2330 movs r3, #48 @ 0x30
  4343. 8001ee2: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  4344. osThreadAttradc2MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4345. 8001ee6: f44f 6380 mov.w r3, #1024 @ 0x400
  4346. 8001eea: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  4347. osThreadAttradc2MeasTask.priority = (osPriority_t)osPriorityRealtime;
  4348. 8001eee: 2330 movs r3, #48 @ 0x30
  4349. 8001ef0: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  4350. osThreadAttradc3MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4351. 8001ef4: f44f 6380 mov.w r3, #1024 @ 0x400
  4352. 8001ef8: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  4353. osThreadAttradc3MeasTask.priority = (osPriority_t)osPriorityNormal;
  4354. 8001efc: 2318 movs r3, #24
  4355. 8001efe: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  4356. adc1MeasTaskHandle = osThreadNew (ADC1MeasTask, NULL, &osThreadAttradc1MeasTask);
  4357. 8001f02: f107 03b4 add.w r3, r7, #180 @ 0xb4
  4358. 8001f06: 461a mov r2, r3
  4359. 8001f08: 2100 movs r1, #0
  4360. 8001f0a: 4843 ldr r0, [pc, #268] @ (8002018 <MeasTasksInit+0x1d0>)
  4361. 8001f0c: f011 fbe8 bl 80136e0 <osThreadNew>
  4362. 8001f10: 4603 mov r3, r0
  4363. 8001f12: 4a42 ldr r2, [pc, #264] @ (800201c <MeasTasksInit+0x1d4>)
  4364. 8001f14: 6013 str r3, [r2, #0]
  4365. adc2MeasTaskHandle = osThreadNew (ADC2MeasTask, NULL, &osThreadAttradc2MeasTask);
  4366. 8001f16: f107 0390 add.w r3, r7, #144 @ 0x90
  4367. 8001f1a: 461a mov r2, r3
  4368. 8001f1c: 2100 movs r1, #0
  4369. 8001f1e: 4840 ldr r0, [pc, #256] @ (8002020 <MeasTasksInit+0x1d8>)
  4370. 8001f20: f011 fbde bl 80136e0 <osThreadNew>
  4371. 8001f24: 4603 mov r3, r0
  4372. 8001f26: 4a3f ldr r2, [pc, #252] @ (8002024 <MeasTasksInit+0x1dc>)
  4373. 8001f28: 6013 str r3, [r2, #0]
  4374. adc3MeasTaskHandle = osThreadNew (ADC3MeasTask, NULL, &osThreadAttradc3MeasTask);
  4375. 8001f2a: f107 036c add.w r3, r7, #108 @ 0x6c
  4376. 8001f2e: 461a mov r2, r3
  4377. 8001f30: 2100 movs r1, #0
  4378. 8001f32: 483d ldr r0, [pc, #244] @ (8002028 <MeasTasksInit+0x1e0>)
  4379. 8001f34: f011 fbd4 bl 80136e0 <osThreadNew>
  4380. 8001f38: 4603 mov r3, r0
  4381. 8001f3a: 4a3c ldr r2, [pc, #240] @ (800202c <MeasTasksInit+0x1e4>)
  4382. 8001f3c: 6013 str r3, [r2, #0]
  4383. limiterSwitchDataQueue = osMessageQueueNew (8, sizeof (LimiterSwitchData), NULL);
  4384. 8001f3e: 2200 movs r2, #0
  4385. 8001f40: 2104 movs r1, #4
  4386. 8001f42: 2008 movs r0, #8
  4387. 8001f44: f011 fe7f bl 8013c46 <osMessageQueueNew>
  4388. 8001f48: 4603 mov r3, r0
  4389. 8001f4a: 4a39 ldr r2, [pc, #228] @ (8002030 <MeasTasksInit+0x1e8>)
  4390. 8001f4c: 6013 str r3, [r2, #0]
  4391. osThreadAttr_t osThreadAttradc1LimiterSwitchTask = { 0 };
  4392. 8001f4e: f107 0348 add.w r3, r7, #72 @ 0x48
  4393. 8001f52: 2224 movs r2, #36 @ 0x24
  4394. 8001f54: 2100 movs r1, #0
  4395. 8001f56: 4618 mov r0, r3
  4396. 8001f58: f015 fe2d bl 8017bb6 <memset>
  4397. osThreadAttradc1LimiterSwitchTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4398. 8001f5c: f44f 6380 mov.w r3, #1024 @ 0x400
  4399. 8001f60: 65fb str r3, [r7, #92] @ 0x5c
  4400. osThreadAttradc1LimiterSwitchTask.priority = (osPriority_t)osPriorityNormal;
  4401. 8001f62: 2318 movs r3, #24
  4402. 8001f64: 663b str r3, [r7, #96] @ 0x60
  4403. limiterSwitchTaskHandle = osThreadNew (LimiterSwitchTask, NULL, &osThreadAttradc1LimiterSwitchTask);
  4404. 8001f66: f107 0348 add.w r3, r7, #72 @ 0x48
  4405. 8001f6a: 461a mov r2, r3
  4406. 8001f6c: 2100 movs r1, #0
  4407. 8001f6e: 4831 ldr r0, [pc, #196] @ (8002034 <MeasTasksInit+0x1ec>)
  4408. 8001f70: f011 fbb6 bl 80136e0 <osThreadNew>
  4409. 8001f74: 4603 mov r3, r0
  4410. 8001f76: 4a30 ldr r2, [pc, #192] @ (8002038 <MeasTasksInit+0x1f0>)
  4411. 8001f78: 6013 str r3, [r2, #0]
  4412. encoderXDataQueue = osMessageQueueNew (8, sizeof (EncoderData), NULL);
  4413. 8001f7a: 2200 movs r2, #0
  4414. 8001f7c: 2102 movs r1, #2
  4415. 8001f7e: 2008 movs r0, #8
  4416. 8001f80: f011 fe61 bl 8013c46 <osMessageQueueNew>
  4417. 8001f84: 4603 mov r3, r0
  4418. 8001f86: 4a2d ldr r2, [pc, #180] @ (800203c <MeasTasksInit+0x1f4>)
  4419. 8001f88: 6013 str r3, [r2, #0]
  4420. encoderYDataQueue = osMessageQueueNew (8, sizeof (EncoderData), NULL);
  4421. 8001f8a: 2200 movs r2, #0
  4422. 8001f8c: 2102 movs r1, #2
  4423. 8001f8e: 2008 movs r0, #8
  4424. 8001f90: f011 fe59 bl 8013c46 <osMessageQueueNew>
  4425. 8001f94: 4603 mov r3, r0
  4426. 8001f96: 4a2a ldr r2, [pc, #168] @ (8002040 <MeasTasksInit+0x1f8>)
  4427. 8001f98: 6013 str r3, [r2, #0]
  4428. osThreadAttr_t osThreadAttrEncoderXTask = { 0 };
  4429. 8001f9a: f107 0324 add.w r3, r7, #36 @ 0x24
  4430. 8001f9e: 2224 movs r2, #36 @ 0x24
  4431. 8001fa0: 2100 movs r1, #0
  4432. 8001fa2: 4618 mov r0, r3
  4433. 8001fa4: f015 fe07 bl 8017bb6 <memset>
  4434. osThreadAttrEncoderXTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4435. 8001fa8: f44f 6380 mov.w r3, #1024 @ 0x400
  4436. 8001fac: 63bb str r3, [r7, #56] @ 0x38
  4437. osThreadAttrEncoderXTask.priority = (osPriority_t)osPriorityNormal;
  4438. 8001fae: 2318 movs r3, #24
  4439. 8001fb0: 63fb str r3, [r7, #60] @ 0x3c
  4440. encoderXTaskHandle = osThreadNew (EncoderTask, encoderXDataQueue, &osThreadAttrEncoderXTask);
  4441. 8001fb2: 4b22 ldr r3, [pc, #136] @ (800203c <MeasTasksInit+0x1f4>)
  4442. 8001fb4: 681b ldr r3, [r3, #0]
  4443. 8001fb6: f107 0224 add.w r2, r7, #36 @ 0x24
  4444. 8001fba: 4619 mov r1, r3
  4445. 8001fbc: 4821 ldr r0, [pc, #132] @ (8002044 <MeasTasksInit+0x1fc>)
  4446. 8001fbe: f011 fb8f bl 80136e0 <osThreadNew>
  4447. 8001fc2: 4603 mov r3, r0
  4448. 8001fc4: 4a20 ldr r2, [pc, #128] @ (8002048 <MeasTasksInit+0x200>)
  4449. 8001fc6: 6013 str r3, [r2, #0]
  4450. osThreadAttr_t osThreadAttrEncoderYTask = { 0 };
  4451. 8001fc8: 463b mov r3, r7
  4452. 8001fca: 2224 movs r2, #36 @ 0x24
  4453. 8001fcc: 2100 movs r1, #0
  4454. 8001fce: 4618 mov r0, r3
  4455. 8001fd0: f015 fdf1 bl 8017bb6 <memset>
  4456. osThreadAttrEncoderYTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4457. 8001fd4: f44f 6380 mov.w r3, #1024 @ 0x400
  4458. 8001fd8: 617b str r3, [r7, #20]
  4459. osThreadAttrEncoderYTask.priority = (osPriority_t)osPriorityNormal;
  4460. 8001fda: 2318 movs r3, #24
  4461. 8001fdc: 61bb str r3, [r7, #24]
  4462. encoderYTaskHandle = osThreadNew (EncoderTask, encoderYDataQueue, &osThreadAttrEncoderYTask);
  4463. 8001fde: 4b18 ldr r3, [pc, #96] @ (8002040 <MeasTasksInit+0x1f8>)
  4464. 8001fe0: 681b ldr r3, [r3, #0]
  4465. 8001fe2: 463a mov r2, r7
  4466. 8001fe4: 4619 mov r1, r3
  4467. 8001fe6: 4817 ldr r0, [pc, #92] @ (8002044 <MeasTasksInit+0x1fc>)
  4468. 8001fe8: f011 fb7a bl 80136e0 <osThreadNew>
  4469. 8001fec: 4603 mov r3, r0
  4470. 8001fee: 4a17 ldr r2, [pc, #92] @ (800204c <MeasTasksInit+0x204>)
  4471. 8001ff0: 6013 str r3, [r2, #0]
  4472. }
  4473. 8001ff2: bf00 nop
  4474. 8001ff4: 37d8 adds r7, #216 @ 0xd8
  4475. 8001ff6: 46bd mov sp, r7
  4476. 8001ff8: bd80 pop {r7, pc}
  4477. 8001ffa: bf00 nop
  4478. 8001ffc: 240007e0 .word 0x240007e0
  4479. 8002000: 240007e4 .word 0x240007e4
  4480. 8002004: 240007e8 .word 0x240007e8
  4481. 8002008: 240007ec .word 0x240007ec
  4482. 800200c: 240007c8 .word 0x240007c8
  4483. 8002010: 240007cc .word 0x240007cc
  4484. 8002014: 240007d0 .word 0x240007d0
  4485. 8002018: 08002051 .word 0x08002051
  4486. 800201c: 240007b0 .word 0x240007b0
  4487. 8002020: 080023d9 .word 0x080023d9
  4488. 8002024: 240007b4 .word 0x240007b4
  4489. 8002028: 080026e1 .word 0x080026e1
  4490. 800202c: 240007b8 .word 0x240007b8
  4491. 8002030: 240007d4 .word 0x240007d4
  4492. 8002034: 08002a5d .word 0x08002a5d
  4493. 8002038: 240007bc .word 0x240007bc
  4494. 800203c: 240007d8 .word 0x240007d8
  4495. 8002040: 240007dc .word 0x240007dc
  4496. 8002044: 08002c4d .word 0x08002c4d
  4497. 8002048: 240007c0 .word 0x240007c0
  4498. 800204c: 240007c4 .word 0x240007c4
  4499. 08002050 <ADC1MeasTask>:
  4500. void ADC1MeasTask (void* arg) {
  4501. 8002050: b580 push {r7, lr}
  4502. 8002052: b09a sub sp, #104 @ 0x68
  4503. 8002054: af00 add r7, sp, #0
  4504. 8002056: 6078 str r0, [r7, #4]
  4505. float circBuffer[VOLTAGES_COUNT][CIRC_BUFF_LEN] = { 0 };
  4506. 8002058: f107 032c add.w r3, r7, #44 @ 0x2c
  4507. 800205c: 2228 movs r2, #40 @ 0x28
  4508. 800205e: 2100 movs r1, #0
  4509. 8002060: 4618 mov r0, r3
  4510. 8002062: f015 fda8 bl 8017bb6 <memset>
  4511. float rms[VOLTAGES_COUNT] = { 0 };
  4512. 8002066: f04f 0300 mov.w r3, #0
  4513. 800206a: 62bb str r3, [r7, #40] @ 0x28
  4514. ;
  4515. ADC1_Data adcData = { 0 };
  4516. 800206c: f107 0308 add.w r3, r7, #8
  4517. 8002070: 2220 movs r2, #32
  4518. 8002072: 2100 movs r1, #0
  4519. 8002074: 4618 mov r0, r3
  4520. 8002076: f015 fd9e bl 8017bb6 <memset>
  4521. uint32_t circBuffPos = 0;
  4522. 800207a: 2300 movs r3, #0
  4523. 800207c: 667b str r3, [r7, #100] @ 0x64
  4524. float gainCorrection = 1.0;
  4525. 800207e: f04f 537e mov.w r3, #1065353216 @ 0x3f800000
  4526. 8002082: 663b str r3, [r7, #96] @ 0x60
  4527. while (pdTRUE) {
  4528. osMessageQueueGet (adc1MeasDataQueue, &adcData, 0, osWaitForever);
  4529. 8002084: 4bc8 ldr r3, [pc, #800] @ (80023a8 <ADC1MeasTask+0x358>)
  4530. 8002086: 6818 ldr r0, [r3, #0]
  4531. 8002088: f107 0108 add.w r1, r7, #8
  4532. 800208c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  4533. 8002090: 2200 movs r2, #0
  4534. 8002092: f011 feab bl 8013dec <osMessageQueueGet>
  4535. #ifdef GAIN_AUTO_CORRECTION
  4536. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  4537. 8002096: 4bc5 ldr r3, [pc, #788] @ (80023ac <ADC1MeasTask+0x35c>)
  4538. 8002098: 681b ldr r3, [r3, #0]
  4539. 800209a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4540. 800209e: 4618 mov r0, r3
  4541. 80020a0: f011 fd49 bl 8013b36 <osMutexAcquire>
  4542. 80020a4: 4603 mov r3, r0
  4543. 80020a6: 2b00 cmp r3, #0
  4544. 80020a8: d10c bne.n 80020c4 <ADC1MeasTask+0x74>
  4545. gainCorrection = (float)vRefmV;
  4546. 80020aa: 4bc1 ldr r3, [pc, #772] @ (80023b0 <ADC1MeasTask+0x360>)
  4547. 80020ac: 681b ldr r3, [r3, #0]
  4548. 80020ae: ee07 3a90 vmov s15, r3
  4549. 80020b2: eef8 7a67 vcvt.f32.u32 s15, s15
  4550. 80020b6: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  4551. osMutexRelease (vRefmVMutex);
  4552. 80020ba: 4bbc ldr r3, [pc, #752] @ (80023ac <ADC1MeasTask+0x35c>)
  4553. 80020bc: 681b ldr r3, [r3, #0]
  4554. 80020be: 4618 mov r0, r3
  4555. 80020c0: f011 fd84 bl 8013bcc <osMutexRelease>
  4556. }
  4557. gainCorrection = gainCorrection / EXT_VREF_mV;
  4558. 80020c4: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  4559. 80020c8: eddf 6aba vldr s13, [pc, #744] @ 80023b4 <ADC1MeasTask+0x364>
  4560. 80020cc: eec7 7a26 vdiv.f32 s15, s14, s13
  4561. 80020d0: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  4562. #endif
  4563. for (uint8_t i = 0; i < VOLTAGES_COUNT; i++) {
  4564. 80020d4: 2300 movs r3, #0
  4565. 80020d6: f887 305f strb.w r3, [r7, #95] @ 0x5f
  4566. 80020da: e0e7 b.n 80022ac <ADC1MeasTask+0x25c>
  4567. float val = adcData.adcDataBuffer[i] * deltaADC * U_CHANNEL_CONST * gainCorrection * U_MeasCorrectionData[i].gain + U_MeasCorrectionData[i].offset;
  4568. 80020dc: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4569. 80020e0: 005b lsls r3, r3, #1
  4570. 80020e2: 3368 adds r3, #104 @ 0x68
  4571. 80020e4: 443b add r3, r7
  4572. 80020e6: f833 3c60 ldrh.w r3, [r3, #-96]
  4573. 80020ea: ee07 3a90 vmov s15, r3
  4574. 80020ee: eeb8 7be7 vcvt.f64.s32 d7, s15
  4575. 80020f2: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4576. 80020f6: ee27 6b06 vmul.f64 d6, d7, d6
  4577. 80020fa: ed9f 5ba5 vldr d5, [pc, #660] @ 8002390 <ADC1MeasTask+0x340>
  4578. 80020fe: ee86 7b05 vdiv.f64 d7, d6, d5
  4579. 8002102: ed9f 6ba5 vldr d6, [pc, #660] @ 8002398 <ADC1MeasTask+0x348>
  4580. 8002106: ee27 6b06 vmul.f64 d6, d7, d6
  4581. 800210a: edd7 7a18 vldr s15, [r7, #96] @ 0x60
  4582. 800210e: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4583. 8002112: ee26 6b07 vmul.f64 d6, d6, d7
  4584. 8002116: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4585. 800211a: 4aa7 ldr r2, [pc, #668] @ (80023b8 <ADC1MeasTask+0x368>)
  4586. 800211c: 00db lsls r3, r3, #3
  4587. 800211e: 4413 add r3, r2
  4588. 8002120: edd3 7a00 vldr s15, [r3]
  4589. 8002124: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4590. 8002128: ee26 6b07 vmul.f64 d6, d6, d7
  4591. 800212c: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4592. 8002130: 4aa1 ldr r2, [pc, #644] @ (80023b8 <ADC1MeasTask+0x368>)
  4593. 8002132: 00db lsls r3, r3, #3
  4594. 8002134: 4413 add r3, r2
  4595. 8002136: 3304 adds r3, #4
  4596. 8002138: edd3 7a00 vldr s15, [r3]
  4597. 800213c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4598. 8002140: ee36 7b07 vadd.f64 d7, d6, d7
  4599. 8002144: eef7 7bc7 vcvt.f32.f64 s15, d7
  4600. 8002148: edc7 7a15 vstr s15, [r7, #84] @ 0x54
  4601. circBuffer[i][circBuffPos] = val;
  4602. 800214c: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4603. 8002150: 4613 mov r3, r2
  4604. 8002152: 009b lsls r3, r3, #2
  4605. 8002154: 4413 add r3, r2
  4606. 8002156: 005b lsls r3, r3, #1
  4607. 8002158: 6e7a ldr r2, [r7, #100] @ 0x64
  4608. 800215a: 4413 add r3, r2
  4609. 800215c: 009b lsls r3, r3, #2
  4610. 800215e: 3368 adds r3, #104 @ 0x68
  4611. 8002160: 443b add r3, r7
  4612. 8002162: 3b3c subs r3, #60 @ 0x3c
  4613. 8002164: 6d7a ldr r2, [r7, #84] @ 0x54
  4614. 8002166: 601a str r2, [r3, #0]
  4615. rms[i] = 0.0;
  4616. 8002168: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4617. 800216c: 009b lsls r3, r3, #2
  4618. 800216e: 3368 adds r3, #104 @ 0x68
  4619. 8002170: 443b add r3, r7
  4620. 8002172: 3b40 subs r3, #64 @ 0x40
  4621. 8002174: f04f 0200 mov.w r2, #0
  4622. 8002178: 601a str r2, [r3, #0]
  4623. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  4624. 800217a: 2300 movs r3, #0
  4625. 800217c: f887 305e strb.w r3, [r7, #94] @ 0x5e
  4626. 8002180: e025 b.n 80021ce <ADC1MeasTask+0x17e>
  4627. rms[i] += circBuffer[i][c];
  4628. 8002182: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4629. 8002186: 009b lsls r3, r3, #2
  4630. 8002188: 3368 adds r3, #104 @ 0x68
  4631. 800218a: 443b add r3, r7
  4632. 800218c: 3b40 subs r3, #64 @ 0x40
  4633. 800218e: ed93 7a00 vldr s14, [r3]
  4634. 8002192: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4635. 8002196: f897 105e ldrb.w r1, [r7, #94] @ 0x5e
  4636. 800219a: 4613 mov r3, r2
  4637. 800219c: 009b lsls r3, r3, #2
  4638. 800219e: 4413 add r3, r2
  4639. 80021a0: 005b lsls r3, r3, #1
  4640. 80021a2: 440b add r3, r1
  4641. 80021a4: 009b lsls r3, r3, #2
  4642. 80021a6: 3368 adds r3, #104 @ 0x68
  4643. 80021a8: 443b add r3, r7
  4644. 80021aa: 3b3c subs r3, #60 @ 0x3c
  4645. 80021ac: edd3 7a00 vldr s15, [r3]
  4646. 80021b0: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4647. 80021b4: ee77 7a27 vadd.f32 s15, s14, s15
  4648. 80021b8: 009b lsls r3, r3, #2
  4649. 80021ba: 3368 adds r3, #104 @ 0x68
  4650. 80021bc: 443b add r3, r7
  4651. 80021be: 3b40 subs r3, #64 @ 0x40
  4652. 80021c0: edc3 7a00 vstr s15, [r3]
  4653. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  4654. 80021c4: f897 305e ldrb.w r3, [r7, #94] @ 0x5e
  4655. 80021c8: 3301 adds r3, #1
  4656. 80021ca: f887 305e strb.w r3, [r7, #94] @ 0x5e
  4657. 80021ce: f897 305e ldrb.w r3, [r7, #94] @ 0x5e
  4658. 80021d2: 2b09 cmp r3, #9
  4659. 80021d4: d9d5 bls.n 8002182 <ADC1MeasTask+0x132>
  4660. }
  4661. rms[i] = rms[i] / CIRC_BUFF_LEN;
  4662. 80021d6: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4663. 80021da: 009b lsls r3, r3, #2
  4664. 80021dc: 3368 adds r3, #104 @ 0x68
  4665. 80021de: 443b add r3, r7
  4666. 80021e0: 3b40 subs r3, #64 @ 0x40
  4667. 80021e2: ed93 7a00 vldr s14, [r3]
  4668. 80021e6: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4669. 80021ea: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  4670. 80021ee: eec7 7a26 vdiv.f32 s15, s14, s13
  4671. 80021f2: 009b lsls r3, r3, #2
  4672. 80021f4: 3368 adds r3, #104 @ 0x68
  4673. 80021f6: 443b add r3, r7
  4674. 80021f8: 3b40 subs r3, #64 @ 0x40
  4675. 80021fa: edc3 7a00 vstr s15, [r3]
  4676. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  4677. 80021fe: 4b6f ldr r3, [pc, #444] @ (80023bc <ADC1MeasTask+0x36c>)
  4678. 8002200: 681b ldr r3, [r3, #0]
  4679. 8002202: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4680. 8002206: 4618 mov r0, r3
  4681. 8002208: f011 fc95 bl 8013b36 <osMutexAcquire>
  4682. 800220c: 4603 mov r3, r0
  4683. 800220e: 2b00 cmp r3, #0
  4684. 8002210: d147 bne.n 80022a2 <ADC1MeasTask+0x252>
  4685. if (fabs (resMeasurements.voltagePeak[i]) < fabs (val)) {
  4686. 8002212: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4687. 8002216: 4a6a ldr r2, [pc, #424] @ (80023c0 <ADC1MeasTask+0x370>)
  4688. 8002218: 3302 adds r3, #2
  4689. 800221a: 009b lsls r3, r3, #2
  4690. 800221c: 4413 add r3, r2
  4691. 800221e: 3304 adds r3, #4
  4692. 8002220: edd3 7a00 vldr s15, [r3]
  4693. 8002224: eeb0 7ae7 vabs.f32 s14, s15
  4694. 8002228: edd7 7a15 vldr s15, [r7, #84] @ 0x54
  4695. 800222c: eef0 7ae7 vabs.f32 s15, s15
  4696. 8002230: eeb4 7ae7 vcmpe.f32 s14, s15
  4697. 8002234: eef1 fa10 vmrs APSR_nzcv, fpscr
  4698. 8002238: d508 bpl.n 800224c <ADC1MeasTask+0x1fc>
  4699. resMeasurements.voltagePeak[i] = val;
  4700. 800223a: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4701. 800223e: 4a60 ldr r2, [pc, #384] @ (80023c0 <ADC1MeasTask+0x370>)
  4702. 8002240: 3302 adds r3, #2
  4703. 8002242: 009b lsls r3, r3, #2
  4704. 8002244: 4413 add r3, r2
  4705. 8002246: 3304 adds r3, #4
  4706. 8002248: 6d7a ldr r2, [r7, #84] @ 0x54
  4707. 800224a: 601a str r2, [r3, #0]
  4708. }
  4709. resMeasurements.voltageRMS[i] = rms[i];
  4710. 800224c: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4711. 8002250: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4712. 8002254: 0092 lsls r2, r2, #2
  4713. 8002256: 3268 adds r2, #104 @ 0x68
  4714. 8002258: 443a add r2, r7
  4715. 800225a: 3a40 subs r2, #64 @ 0x40
  4716. 800225c: 6812 ldr r2, [r2, #0]
  4717. 800225e: 4958 ldr r1, [pc, #352] @ (80023c0 <ADC1MeasTask+0x370>)
  4718. 8002260: 009b lsls r3, r3, #2
  4719. 8002262: 440b add r3, r1
  4720. 8002264: 601a str r2, [r3, #0]
  4721. resMeasurements.power[i] = resMeasurements.voltageRMS[i] * resMeasurements.currentRMS[i];
  4722. 8002266: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4723. 800226a: 4a55 ldr r2, [pc, #340] @ (80023c0 <ADC1MeasTask+0x370>)
  4724. 800226c: 009b lsls r3, r3, #2
  4725. 800226e: 4413 add r3, r2
  4726. 8002270: ed93 7a00 vldr s14, [r3]
  4727. 8002274: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4728. 8002278: 4a51 ldr r2, [pc, #324] @ (80023c0 <ADC1MeasTask+0x370>)
  4729. 800227a: 3306 adds r3, #6
  4730. 800227c: 009b lsls r3, r3, #2
  4731. 800227e: 4413 add r3, r2
  4732. 8002280: edd3 7a00 vldr s15, [r3]
  4733. 8002284: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4734. 8002288: ee67 7a27 vmul.f32 s15, s14, s15
  4735. 800228c: 4a4c ldr r2, [pc, #304] @ (80023c0 <ADC1MeasTask+0x370>)
  4736. 800228e: 330c adds r3, #12
  4737. 8002290: 009b lsls r3, r3, #2
  4738. 8002292: 4413 add r3, r2
  4739. 8002294: edc3 7a00 vstr s15, [r3]
  4740. osMutexRelease (resMeasurementsMutex);
  4741. 8002298: 4b48 ldr r3, [pc, #288] @ (80023bc <ADC1MeasTask+0x36c>)
  4742. 800229a: 681b ldr r3, [r3, #0]
  4743. 800229c: 4618 mov r0, r3
  4744. 800229e: f011 fc95 bl 8013bcc <osMutexRelease>
  4745. for (uint8_t i = 0; i < VOLTAGES_COUNT; i++) {
  4746. 80022a2: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4747. 80022a6: 3301 adds r3, #1
  4748. 80022a8: f887 305f strb.w r3, [r7, #95] @ 0x5f
  4749. 80022ac: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4750. 80022b0: 2b00 cmp r3, #0
  4751. 80022b2: f43f af13 beq.w 80020dc <ADC1MeasTask+0x8c>
  4752. }
  4753. }
  4754. ++circBuffPos;
  4755. 80022b6: 6e7b ldr r3, [r7, #100] @ 0x64
  4756. 80022b8: 3301 adds r3, #1
  4757. 80022ba: 667b str r3, [r7, #100] @ 0x64
  4758. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  4759. 80022bc: 6e7a ldr r2, [r7, #100] @ 0x64
  4760. 80022be: 4b41 ldr r3, [pc, #260] @ (80023c4 <ADC1MeasTask+0x374>)
  4761. 80022c0: fba3 1302 umull r1, r3, r3, r2
  4762. 80022c4: 08d9 lsrs r1, r3, #3
  4763. 80022c6: 460b mov r3, r1
  4764. 80022c8: 009b lsls r3, r3, #2
  4765. 80022ca: 440b add r3, r1
  4766. 80022cc: 005b lsls r3, r3, #1
  4767. 80022ce: 1ad3 subs r3, r2, r3
  4768. 80022d0: 667b str r3, [r7, #100] @ 0x64
  4769. if (osMutexAcquire (ILxRefMutex, osWaitForever) == osOK) {
  4770. 80022d2: 4b3d ldr r3, [pc, #244] @ (80023c8 <ADC1MeasTask+0x378>)
  4771. 80022d4: 681b ldr r3, [r3, #0]
  4772. 80022d6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4773. 80022da: 4618 mov r0, r3
  4774. 80022dc: f011 fc2b bl 8013b36 <osMutexAcquire>
  4775. 80022e0: 4603 mov r3, r0
  4776. 80022e2: 2b00 cmp r3, #0
  4777. 80022e4: d124 bne.n 8002330 <ADC1MeasTask+0x2e0>
  4778. uint8_t refIdx = 0;
  4779. 80022e6: 2300 movs r3, #0
  4780. 80022e8: f887 305d strb.w r3, [r7, #93] @ 0x5d
  4781. for (uint8_t i = (uint8_t)IL1Ref; i <= (uint8_t)IL3Ref; i++) {
  4782. 80022ec: 2303 movs r3, #3
  4783. 80022ee: f887 305c strb.w r3, [r7, #92] @ 0x5c
  4784. 80022f2: e014 b.n 800231e <ADC1MeasTask+0x2ce>
  4785. ILxRef[refIdx++] = adcData.adcDataBuffer[i];
  4786. 80022f4: f897 205c ldrb.w r2, [r7, #92] @ 0x5c
  4787. 80022f8: f897 305d ldrb.w r3, [r7, #93] @ 0x5d
  4788. 80022fc: 1c59 adds r1, r3, #1
  4789. 80022fe: f887 105d strb.w r1, [r7, #93] @ 0x5d
  4790. 8002302: 4619 mov r1, r3
  4791. 8002304: 0053 lsls r3, r2, #1
  4792. 8002306: 3368 adds r3, #104 @ 0x68
  4793. 8002308: 443b add r3, r7
  4794. 800230a: f833 2c60 ldrh.w r2, [r3, #-96]
  4795. 800230e: 4b2f ldr r3, [pc, #188] @ (80023cc <ADC1MeasTask+0x37c>)
  4796. 8002310: f823 2011 strh.w r2, [r3, r1, lsl #1]
  4797. for (uint8_t i = (uint8_t)IL1Ref; i <= (uint8_t)IL3Ref; i++) {
  4798. 8002314: f897 305c ldrb.w r3, [r7, #92] @ 0x5c
  4799. 8002318: 3301 adds r3, #1
  4800. 800231a: f887 305c strb.w r3, [r7, #92] @ 0x5c
  4801. 800231e: f897 305c ldrb.w r3, [r7, #92] @ 0x5c
  4802. 8002322: 2b05 cmp r3, #5
  4803. 8002324: d9e6 bls.n 80022f4 <ADC1MeasTask+0x2a4>
  4804. }
  4805. osMutexRelease (ILxRefMutex);
  4806. 8002326: 4b28 ldr r3, [pc, #160] @ (80023c8 <ADC1MeasTask+0x378>)
  4807. 8002328: 681b ldr r3, [r3, #0]
  4808. 800232a: 4618 mov r0, r3
  4809. 800232c: f011 fc4e bl 8013bcc <osMutexRelease>
  4810. }
  4811. float fanFBVoltage = adcData.adcDataBuffer[FanFB] * deltaADC * -4.35 + 12;
  4812. 8002330: 8abb ldrh r3, [r7, #20]
  4813. 8002332: ee07 3a90 vmov s15, r3
  4814. 8002336: eeb8 7be7 vcvt.f64.s32 d7, s15
  4815. 800233a: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4816. 800233e: ee27 6b06 vmul.f64 d6, d7, d6
  4817. 8002342: ed9f 5b13 vldr d5, [pc, #76] @ 8002390 <ADC1MeasTask+0x340>
  4818. 8002346: ee86 7b05 vdiv.f64 d7, d6, d5
  4819. 800234a: ed9f 6b15 vldr d6, [pc, #84] @ 80023a0 <ADC1MeasTask+0x350>
  4820. 800234e: ee27 7b06 vmul.f64 d7, d7, d6
  4821. 8002352: eeb2 6b08 vmov.f64 d6, #40 @ 0x41400000 12.0
  4822. 8002356: ee37 7b06 vadd.f64 d7, d7, d6
  4823. 800235a: eef7 7bc7 vcvt.f32.f64 s15, d7
  4824. 800235e: edc7 7a16 vstr s15, [r7, #88] @ 0x58
  4825. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  4826. 8002362: 4b1b ldr r3, [pc, #108] @ (80023d0 <ADC1MeasTask+0x380>)
  4827. 8002364: 681b ldr r3, [r3, #0]
  4828. 8002366: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4829. 800236a: 4618 mov r0, r3
  4830. 800236c: f011 fbe3 bl 8013b36 <osMutexAcquire>
  4831. 8002370: 4603 mov r3, r0
  4832. 8002372: 2b00 cmp r3, #0
  4833. 8002374: f47f ae86 bne.w 8002084 <ADC1MeasTask+0x34>
  4834. sensorsInfo.fanVoltage = fanFBVoltage;
  4835. 8002378: 4a16 ldr r2, [pc, #88] @ (80023d4 <ADC1MeasTask+0x384>)
  4836. 800237a: 6dbb ldr r3, [r7, #88] @ 0x58
  4837. 800237c: 6093 str r3, [r2, #8]
  4838. osMutexRelease (sensorsInfoMutex);
  4839. 800237e: 4b14 ldr r3, [pc, #80] @ (80023d0 <ADC1MeasTask+0x380>)
  4840. 8002380: 681b ldr r3, [r3, #0]
  4841. 8002382: 4618 mov r0, r3
  4842. 8002384: f011 fc22 bl 8013bcc <osMutexRelease>
  4843. while (pdTRUE) {
  4844. 8002388: e67c b.n 8002084 <ADC1MeasTask+0x34>
  4845. 800238a: bf00 nop
  4846. 800238c: f3af 8000 nop.w
  4847. 8002390: 00000000 .word 0x00000000
  4848. 8002394: 40efffe0 .word 0x40efffe0
  4849. 8002398: f5c28f5c .word 0xf5c28f5c
  4850. 800239c: 401e5c28 .word 0x401e5c28
  4851. 80023a0: 66666666 .word 0x66666666
  4852. 80023a4: c0116666 .word 0xc0116666
  4853. 80023a8: 240007c8 .word 0x240007c8
  4854. 80023ac: 240007e0 .word 0x240007e0
  4855. 80023b0: 24000030 .word 0x24000030
  4856. 80023b4: 453b8000 .word 0x453b8000
  4857. 80023b8: 24000000 .word 0x24000000
  4858. 80023bc: 240007e4 .word 0x240007e4
  4859. 80023c0: 240007f0 .word 0x240007f0
  4860. 80023c4: cccccccd .word 0xcccccccd
  4861. 80023c8: 240007ec .word 0x240007ec
  4862. 80023cc: 2400085c .word 0x2400085c
  4863. 80023d0: 240007e8 .word 0x240007e8
  4864. 80023d4: 2400082c .word 0x2400082c
  4865. 080023d8 <ADC2MeasTask>:
  4866. }
  4867. }
  4868. }
  4869. void ADC2MeasTask (void* arg) {
  4870. 80023d8: b580 push {r7, lr}
  4871. 80023da: b09c sub sp, #112 @ 0x70
  4872. 80023dc: af00 add r7, sp, #0
  4873. 80023de: 6078 str r0, [r7, #4]
  4874. float circBuffer[CURRENTS_COUNT][CIRC_BUFF_LEN] = { 0 };
  4875. 80023e0: f107 0334 add.w r3, r7, #52 @ 0x34
  4876. 80023e4: 2228 movs r2, #40 @ 0x28
  4877. 80023e6: 2100 movs r1, #0
  4878. 80023e8: 4618 mov r0, r3
  4879. 80023ea: f015 fbe4 bl 8017bb6 <memset>
  4880. float rms[CURRENTS_COUNT] = { 0 };
  4881. 80023ee: f04f 0300 mov.w r3, #0
  4882. 80023f2: 633b str r3, [r7, #48] @ 0x30
  4883. ADC2_Data adcData = { 0 };
  4884. 80023f4: f107 0310 add.w r3, r7, #16
  4885. 80023f8: 2220 movs r2, #32
  4886. 80023fa: 2100 movs r1, #0
  4887. 80023fc: 4618 mov r0, r3
  4888. 80023fe: f015 fbda bl 8017bb6 <memset>
  4889. uint32_t circBuffPos = 0;
  4890. 8002402: 2300 movs r3, #0
  4891. 8002404: 66fb str r3, [r7, #108] @ 0x6c
  4892. float gainCorrection = 1.0;
  4893. 8002406: f04f 537e mov.w r3, #1065353216 @ 0x3f800000
  4894. 800240a: 66bb str r3, [r7, #104] @ 0x68
  4895. while (pdTRUE) {
  4896. osMessageQueueGet (adc2MeasDataQueue, &adcData, 0, osWaitForever);
  4897. 800240c: 4baa ldr r3, [pc, #680] @ (80026b8 <ADC2MeasTask+0x2e0>)
  4898. 800240e: 6818 ldr r0, [r3, #0]
  4899. 8002410: f107 0110 add.w r1, r7, #16
  4900. 8002414: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  4901. 8002418: 2200 movs r2, #0
  4902. 800241a: f011 fce7 bl 8013dec <osMessageQueueGet>
  4903. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  4904. 800241e: 4ba7 ldr r3, [pc, #668] @ (80026bc <ADC2MeasTask+0x2e4>)
  4905. 8002420: 681b ldr r3, [r3, #0]
  4906. 8002422: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4907. 8002426: 4618 mov r0, r3
  4908. 8002428: f011 fb85 bl 8013b36 <osMutexAcquire>
  4909. 800242c: 4603 mov r3, r0
  4910. 800242e: 2b00 cmp r3, #0
  4911. 8002430: d10c bne.n 800244c <ADC2MeasTask+0x74>
  4912. gainCorrection = (float)vRefmV;
  4913. 8002432: 4ba3 ldr r3, [pc, #652] @ (80026c0 <ADC2MeasTask+0x2e8>)
  4914. 8002434: 681b ldr r3, [r3, #0]
  4915. 8002436: ee07 3a90 vmov s15, r3
  4916. 800243a: eef8 7a67 vcvt.f32.u32 s15, s15
  4917. 800243e: edc7 7a1a vstr s15, [r7, #104] @ 0x68
  4918. osMutexRelease (vRefmVMutex);
  4919. 8002442: 4b9e ldr r3, [pc, #632] @ (80026bc <ADC2MeasTask+0x2e4>)
  4920. 8002444: 681b ldr r3, [r3, #0]
  4921. 8002446: 4618 mov r0, r3
  4922. 8002448: f011 fbc0 bl 8013bcc <osMutexRelease>
  4923. }
  4924. gainCorrection = gainCorrection / EXT_VREF_mV;
  4925. 800244c: ed97 7a1a vldr s14, [r7, #104] @ 0x68
  4926. 8002450: eddf 6a9c vldr s13, [pc, #624] @ 80026c4 <ADC2MeasTask+0x2ec>
  4927. 8002454: eec7 7a26 vdiv.f32 s15, s14, s13
  4928. 8002458: edc7 7a1a vstr s15, [r7, #104] @ 0x68
  4929. float ref[CURRENTS_COUNT] = { 0 };
  4930. 800245c: f04f 0300 mov.w r3, #0
  4931. 8002460: 60fb str r3, [r7, #12]
  4932. if (osMutexAcquire (ILxRefMutex, osWaitForever) == osOK) {
  4933. 8002462: 4b99 ldr r3, [pc, #612] @ (80026c8 <ADC2MeasTask+0x2f0>)
  4934. 8002464: 681b ldr r3, [r3, #0]
  4935. 8002466: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4936. 800246a: 4618 mov r0, r3
  4937. 800246c: f011 fb63 bl 8013b36 <osMutexAcquire>
  4938. 8002470: 4603 mov r3, r0
  4939. 8002472: 2b00 cmp r3, #0
  4940. 8002474: d122 bne.n 80024bc <ADC2MeasTask+0xe4>
  4941. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  4942. 8002476: 2300 movs r3, #0
  4943. 8002478: f887 3067 strb.w r3, [r7, #103] @ 0x67
  4944. 800247c: e015 b.n 80024aa <ADC2MeasTask+0xd2>
  4945. ref[i] = (float)ILxRef[i];
  4946. 800247e: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  4947. 8002482: 4a92 ldr r2, [pc, #584] @ (80026cc <ADC2MeasTask+0x2f4>)
  4948. 8002484: f832 2013 ldrh.w r2, [r2, r3, lsl #1]
  4949. 8002488: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  4950. 800248c: ee07 2a90 vmov s15, r2
  4951. 8002490: eef8 7a67 vcvt.f32.u32 s15, s15
  4952. 8002494: 009b lsls r3, r3, #2
  4953. 8002496: 3370 adds r3, #112 @ 0x70
  4954. 8002498: 443b add r3, r7
  4955. 800249a: 3b64 subs r3, #100 @ 0x64
  4956. 800249c: edc3 7a00 vstr s15, [r3]
  4957. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  4958. 80024a0: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  4959. 80024a4: 3301 adds r3, #1
  4960. 80024a6: f887 3067 strb.w r3, [r7, #103] @ 0x67
  4961. 80024aa: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  4962. 80024ae: 2b00 cmp r3, #0
  4963. 80024b0: d0e5 beq.n 800247e <ADC2MeasTask+0xa6>
  4964. }
  4965. osMutexRelease (ILxRefMutex);
  4966. 80024b2: 4b85 ldr r3, [pc, #532] @ (80026c8 <ADC2MeasTask+0x2f0>)
  4967. 80024b4: 681b ldr r3, [r3, #0]
  4968. 80024b6: 4618 mov r0, r3
  4969. 80024b8: f011 fb88 bl 8013bcc <osMutexRelease>
  4970. }
  4971. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  4972. 80024bc: 2300 movs r3, #0
  4973. 80024be: f887 3066 strb.w r3, [r7, #102] @ 0x66
  4974. 80024c2: e0db b.n 800267c <ADC2MeasTask+0x2a4>
  4975. float adcVal = (float)adcData.adcDataBuffer[i];
  4976. 80024c4: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  4977. 80024c8: 005b lsls r3, r3, #1
  4978. 80024ca: 3370 adds r3, #112 @ 0x70
  4979. 80024cc: 443b add r3, r7
  4980. 80024ce: f833 3c60 ldrh.w r3, [r3, #-96]
  4981. 80024d2: ee07 3a90 vmov s15, r3
  4982. 80024d6: eef8 7a67 vcvt.f32.u32 s15, s15
  4983. 80024da: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  4984. float val = (adcVal - ref[i]) * deltaADC * I_CHANNEL_CONST * gainCorrection * I_MeasCorrectionData[i].gain + I_MeasCorrectionData[i].offset;
  4985. 80024de: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  4986. 80024e2: 009b lsls r3, r3, #2
  4987. 80024e4: 3370 adds r3, #112 @ 0x70
  4988. 80024e6: 443b add r3, r7
  4989. 80024e8: 3b64 subs r3, #100 @ 0x64
  4990. 80024ea: edd3 7a00 vldr s15, [r3]
  4991. 80024ee: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  4992. 80024f2: ee77 7a67 vsub.f32 s15, s14, s15
  4993. 80024f6: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4994. 80024fa: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4995. 80024fe: ee27 6b06 vmul.f64 d6, d7, d6
  4996. 8002502: ed9f 5b69 vldr d5, [pc, #420] @ 80026a8 <ADC2MeasTask+0x2d0>
  4997. 8002506: ee86 7b05 vdiv.f64 d7, d6, d5
  4998. 800250a: ed9f 6b69 vldr d6, [pc, #420] @ 80026b0 <ADC2MeasTask+0x2d8>
  4999. 800250e: ee27 6b06 vmul.f64 d6, d7, d6
  5000. 8002512: edd7 7a1a vldr s15, [r7, #104] @ 0x68
  5001. 8002516: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5002. 800251a: ee26 6b07 vmul.f64 d6, d6, d7
  5003. 800251e: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5004. 8002522: 4a6b ldr r2, [pc, #428] @ (80026d0 <ADC2MeasTask+0x2f8>)
  5005. 8002524: 00db lsls r3, r3, #3
  5006. 8002526: 4413 add r3, r2
  5007. 8002528: edd3 7a00 vldr s15, [r3]
  5008. 800252c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5009. 8002530: ee26 6b07 vmul.f64 d6, d6, d7
  5010. 8002534: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5011. 8002538: 4a65 ldr r2, [pc, #404] @ (80026d0 <ADC2MeasTask+0x2f8>)
  5012. 800253a: 00db lsls r3, r3, #3
  5013. 800253c: 4413 add r3, r2
  5014. 800253e: 3304 adds r3, #4
  5015. 8002540: edd3 7a00 vldr s15, [r3]
  5016. 8002544: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5017. 8002548: ee36 7b07 vadd.f64 d7, d6, d7
  5018. 800254c: eef7 7bc7 vcvt.f32.f64 s15, d7
  5019. 8002550: edc7 7a17 vstr s15, [r7, #92] @ 0x5c
  5020. circBuffer[i][circBuffPos] = val;
  5021. 8002554: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5022. 8002558: 4613 mov r3, r2
  5023. 800255a: 009b lsls r3, r3, #2
  5024. 800255c: 4413 add r3, r2
  5025. 800255e: 005b lsls r3, r3, #1
  5026. 8002560: 6efa ldr r2, [r7, #108] @ 0x6c
  5027. 8002562: 4413 add r3, r2
  5028. 8002564: 009b lsls r3, r3, #2
  5029. 8002566: 3370 adds r3, #112 @ 0x70
  5030. 8002568: 443b add r3, r7
  5031. 800256a: 3b3c subs r3, #60 @ 0x3c
  5032. 800256c: 6dfa ldr r2, [r7, #92] @ 0x5c
  5033. 800256e: 601a str r2, [r3, #0]
  5034. rms[i] = 0.0;
  5035. 8002570: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5036. 8002574: 009b lsls r3, r3, #2
  5037. 8002576: 3370 adds r3, #112 @ 0x70
  5038. 8002578: 443b add r3, r7
  5039. 800257a: 3b40 subs r3, #64 @ 0x40
  5040. 800257c: f04f 0200 mov.w r2, #0
  5041. 8002580: 601a str r2, [r3, #0]
  5042. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  5043. 8002582: 2300 movs r3, #0
  5044. 8002584: f887 3065 strb.w r3, [r7, #101] @ 0x65
  5045. 8002588: e025 b.n 80025d6 <ADC2MeasTask+0x1fe>
  5046. rms[i] += circBuffer[i][c];
  5047. 800258a: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5048. 800258e: 009b lsls r3, r3, #2
  5049. 8002590: 3370 adds r3, #112 @ 0x70
  5050. 8002592: 443b add r3, r7
  5051. 8002594: 3b40 subs r3, #64 @ 0x40
  5052. 8002596: ed93 7a00 vldr s14, [r3]
  5053. 800259a: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5054. 800259e: f897 1065 ldrb.w r1, [r7, #101] @ 0x65
  5055. 80025a2: 4613 mov r3, r2
  5056. 80025a4: 009b lsls r3, r3, #2
  5057. 80025a6: 4413 add r3, r2
  5058. 80025a8: 005b lsls r3, r3, #1
  5059. 80025aa: 440b add r3, r1
  5060. 80025ac: 009b lsls r3, r3, #2
  5061. 80025ae: 3370 adds r3, #112 @ 0x70
  5062. 80025b0: 443b add r3, r7
  5063. 80025b2: 3b3c subs r3, #60 @ 0x3c
  5064. 80025b4: edd3 7a00 vldr s15, [r3]
  5065. 80025b8: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5066. 80025bc: ee77 7a27 vadd.f32 s15, s14, s15
  5067. 80025c0: 009b lsls r3, r3, #2
  5068. 80025c2: 3370 adds r3, #112 @ 0x70
  5069. 80025c4: 443b add r3, r7
  5070. 80025c6: 3b40 subs r3, #64 @ 0x40
  5071. 80025c8: edc3 7a00 vstr s15, [r3]
  5072. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  5073. 80025cc: f897 3065 ldrb.w r3, [r7, #101] @ 0x65
  5074. 80025d0: 3301 adds r3, #1
  5075. 80025d2: f887 3065 strb.w r3, [r7, #101] @ 0x65
  5076. 80025d6: f897 3065 ldrb.w r3, [r7, #101] @ 0x65
  5077. 80025da: 2b09 cmp r3, #9
  5078. 80025dc: d9d5 bls.n 800258a <ADC2MeasTask+0x1b2>
  5079. }
  5080. rms[i] = rms[i] / CIRC_BUFF_LEN;
  5081. 80025de: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5082. 80025e2: 009b lsls r3, r3, #2
  5083. 80025e4: 3370 adds r3, #112 @ 0x70
  5084. 80025e6: 443b add r3, r7
  5085. 80025e8: 3b40 subs r3, #64 @ 0x40
  5086. 80025ea: ed93 7a00 vldr s14, [r3]
  5087. 80025ee: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5088. 80025f2: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5089. 80025f6: eec7 7a26 vdiv.f32 s15, s14, s13
  5090. 80025fa: 009b lsls r3, r3, #2
  5091. 80025fc: 3370 adds r3, #112 @ 0x70
  5092. 80025fe: 443b add r3, r7
  5093. 8002600: 3b40 subs r3, #64 @ 0x40
  5094. 8002602: edc3 7a00 vstr s15, [r3]
  5095. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  5096. 8002606: 4b33 ldr r3, [pc, #204] @ (80026d4 <ADC2MeasTask+0x2fc>)
  5097. 8002608: 681b ldr r3, [r3, #0]
  5098. 800260a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5099. 800260e: 4618 mov r0, r3
  5100. 8002610: f011 fa91 bl 8013b36 <osMutexAcquire>
  5101. 8002614: 4603 mov r3, r0
  5102. 8002616: 2b00 cmp r3, #0
  5103. 8002618: d12b bne.n 8002672 <ADC2MeasTask+0x29a>
  5104. if (resMeasurements.currentPeak[i] < val) {
  5105. 800261a: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5106. 800261e: 4a2e ldr r2, [pc, #184] @ (80026d8 <ADC2MeasTask+0x300>)
  5107. 8002620: 3308 adds r3, #8
  5108. 8002622: 009b lsls r3, r3, #2
  5109. 8002624: 4413 add r3, r2
  5110. 8002626: 3304 adds r3, #4
  5111. 8002628: edd3 7a00 vldr s15, [r3]
  5112. 800262c: ed97 7a17 vldr s14, [r7, #92] @ 0x5c
  5113. 8002630: eeb4 7ae7 vcmpe.f32 s14, s15
  5114. 8002634: eef1 fa10 vmrs APSR_nzcv, fpscr
  5115. 8002638: dd08 ble.n 800264c <ADC2MeasTask+0x274>
  5116. resMeasurements.currentPeak[i] = val;
  5117. 800263a: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5118. 800263e: 4a26 ldr r2, [pc, #152] @ (80026d8 <ADC2MeasTask+0x300>)
  5119. 8002640: 3308 adds r3, #8
  5120. 8002642: 009b lsls r3, r3, #2
  5121. 8002644: 4413 add r3, r2
  5122. 8002646: 3304 adds r3, #4
  5123. 8002648: 6dfa ldr r2, [r7, #92] @ 0x5c
  5124. 800264a: 601a str r2, [r3, #0]
  5125. }
  5126. resMeasurements.currentRMS[i] = rms[i];
  5127. 800264c: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5128. 8002650: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5129. 8002654: 0092 lsls r2, r2, #2
  5130. 8002656: 3270 adds r2, #112 @ 0x70
  5131. 8002658: 443a add r2, r7
  5132. 800265a: 3a40 subs r2, #64 @ 0x40
  5133. 800265c: 6812 ldr r2, [r2, #0]
  5134. 800265e: 491e ldr r1, [pc, #120] @ (80026d8 <ADC2MeasTask+0x300>)
  5135. 8002660: 3306 adds r3, #6
  5136. 8002662: 009b lsls r3, r3, #2
  5137. 8002664: 440b add r3, r1
  5138. 8002666: 601a str r2, [r3, #0]
  5139. osMutexRelease (resMeasurementsMutex);
  5140. 8002668: 4b1a ldr r3, [pc, #104] @ (80026d4 <ADC2MeasTask+0x2fc>)
  5141. 800266a: 681b ldr r3, [r3, #0]
  5142. 800266c: 4618 mov r0, r3
  5143. 800266e: f011 faad bl 8013bcc <osMutexRelease>
  5144. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5145. 8002672: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5146. 8002676: 3301 adds r3, #1
  5147. 8002678: f887 3066 strb.w r3, [r7, #102] @ 0x66
  5148. 800267c: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5149. 8002680: 2b00 cmp r3, #0
  5150. 8002682: f43f af1f beq.w 80024c4 <ADC2MeasTask+0xec>
  5151. }
  5152. }
  5153. ++circBuffPos;
  5154. 8002686: 6efb ldr r3, [r7, #108] @ 0x6c
  5155. 8002688: 3301 adds r3, #1
  5156. 800268a: 66fb str r3, [r7, #108] @ 0x6c
  5157. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  5158. 800268c: 6efa ldr r2, [r7, #108] @ 0x6c
  5159. 800268e: 4b13 ldr r3, [pc, #76] @ (80026dc <ADC2MeasTask+0x304>)
  5160. 8002690: fba3 1302 umull r1, r3, r3, r2
  5161. 8002694: 08d9 lsrs r1, r3, #3
  5162. 8002696: 460b mov r3, r1
  5163. 8002698: 009b lsls r3, r3, #2
  5164. 800269a: 440b add r3, r1
  5165. 800269c: 005b lsls r3, r3, #1
  5166. 800269e: 1ad3 subs r3, r2, r3
  5167. 80026a0: 66fb str r3, [r7, #108] @ 0x6c
  5168. while (pdTRUE) {
  5169. 80026a2: e6b3 b.n 800240c <ADC2MeasTask+0x34>
  5170. 80026a4: f3af 8000 nop.w
  5171. 80026a8: 00000000 .word 0x00000000
  5172. 80026ac: 40efffe0 .word 0x40efffe0
  5173. 80026b0: 83e425af .word 0x83e425af
  5174. 80026b4: 401e4d9e .word 0x401e4d9e
  5175. 80026b8: 240007cc .word 0x240007cc
  5176. 80026bc: 240007e0 .word 0x240007e0
  5177. 80026c0: 24000030 .word 0x24000030
  5178. 80026c4: 453b8000 .word 0x453b8000
  5179. 80026c8: 240007ec .word 0x240007ec
  5180. 80026cc: 2400085c .word 0x2400085c
  5181. 80026d0: 24000018 .word 0x24000018
  5182. 80026d4: 240007e4 .word 0x240007e4
  5183. 80026d8: 240007f0 .word 0x240007f0
  5184. 80026dc: cccccccd .word 0xcccccccd
  5185. 080026e0 <ADC3MeasTask>:
  5186. }
  5187. }
  5188. void ADC3MeasTask (void* arg) {
  5189. 80026e0: b580 push {r7, lr}
  5190. 80026e2: b0bc sub sp, #240 @ 0xf0
  5191. 80026e4: af00 add r7, sp, #0
  5192. 80026e6: 6078 str r0, [r7, #4]
  5193. float motorXSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  5194. 80026e8: f107 03a4 add.w r3, r7, #164 @ 0xa4
  5195. 80026ec: 2228 movs r2, #40 @ 0x28
  5196. 80026ee: 2100 movs r1, #0
  5197. 80026f0: 4618 mov r0, r3
  5198. 80026f2: f015 fa60 bl 8017bb6 <memset>
  5199. float motorYSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  5200. 80026f6: f107 037c add.w r3, r7, #124 @ 0x7c
  5201. 80026fa: 2228 movs r2, #40 @ 0x28
  5202. 80026fc: 2100 movs r1, #0
  5203. 80026fe: 4618 mov r0, r3
  5204. 8002700: f015 fa59 bl 8017bb6 <memset>
  5205. float pvT1CircBuffer[CIRC_BUFF_LEN] = { 0 };
  5206. 8002704: f107 0354 add.w r3, r7, #84 @ 0x54
  5207. 8002708: 2228 movs r2, #40 @ 0x28
  5208. 800270a: 2100 movs r1, #0
  5209. 800270c: 4618 mov r0, r3
  5210. 800270e: f015 fa52 bl 8017bb6 <memset>
  5211. float pvT2CircBuffer[CIRC_BUFF_LEN] = { 0 };
  5212. 8002712: f107 032c add.w r3, r7, #44 @ 0x2c
  5213. 8002716: 2228 movs r2, #40 @ 0x28
  5214. 8002718: 2100 movs r1, #0
  5215. 800271a: 4618 mov r0, r3
  5216. 800271c: f015 fa4b bl 8017bb6 <memset>
  5217. uint32_t circBuffPos = 0;
  5218. 8002720: 2300 movs r3, #0
  5219. 8002722: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5220. ADC3_Data adcData = { 0 };
  5221. 8002726: f107 030c add.w r3, r7, #12
  5222. 800272a: 2220 movs r2, #32
  5223. 800272c: 2100 movs r1, #0
  5224. 800272e: 4618 mov r0, r3
  5225. 8002730: f015 fa41 bl 8017bb6 <memset>
  5226. while (pdTRUE) {
  5227. osMessageQueueGet (adc3MeasDataQueue, &adcData, 0, osWaitForever);
  5228. 8002734: 4bc2 ldr r3, [pc, #776] @ (8002a40 <ADC3MeasTask+0x360>)
  5229. 8002736: 6818 ldr r0, [r3, #0]
  5230. 8002738: f107 010c add.w r1, r7, #12
  5231. 800273c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5232. 8002740: 2200 movs r2, #0
  5233. 8002742: f011 fb53 bl 8013dec <osMessageQueueGet>
  5234. uint32_t vRef = __LL_ADC_CALC_VREFANALOG_VOLTAGE (adcData.adcDataBuffer[VrefInt], LL_ADC_RESOLUTION_16B);
  5235. 8002746: 4bbf ldr r3, [pc, #764] @ (8002a44 <ADC3MeasTask+0x364>)
  5236. 8002748: 881b ldrh r3, [r3, #0]
  5237. 800274a: 461a mov r2, r3
  5238. 800274c: f640 43e4 movw r3, #3300 @ 0xce4
  5239. 8002750: fb02 f303 mul.w r3, r2, r3
  5240. 8002754: 8aba ldrh r2, [r7, #20]
  5241. 8002756: fbb3 f3f2 udiv r3, r3, r2
  5242. 800275a: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  5243. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  5244. 800275e: 4bba ldr r3, [pc, #744] @ (8002a48 <ADC3MeasTask+0x368>)
  5245. 8002760: 681b ldr r3, [r3, #0]
  5246. 8002762: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5247. 8002766: 4618 mov r0, r3
  5248. 8002768: f011 f9e5 bl 8013b36 <osMutexAcquire>
  5249. 800276c: 4603 mov r3, r0
  5250. 800276e: 2b00 cmp r3, #0
  5251. 8002770: d108 bne.n 8002784 <ADC3MeasTask+0xa4>
  5252. vRefmV = vRef;
  5253. 8002772: 4ab6 ldr r2, [pc, #728] @ (8002a4c <ADC3MeasTask+0x36c>)
  5254. 8002774: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  5255. 8002778: 6013 str r3, [r2, #0]
  5256. osMutexRelease (vRefmVMutex);
  5257. 800277a: 4bb3 ldr r3, [pc, #716] @ (8002a48 <ADC3MeasTask+0x368>)
  5258. 800277c: 681b ldr r3, [r3, #0]
  5259. 800277e: 4618 mov r0, r3
  5260. 8002780: f011 fa24 bl 8013bcc <osMutexRelease>
  5261. }
  5262. float motorXCurrentSense = adcData.adcDataBuffer[motorXSense] * deltaADC * 10 / 8.33333;
  5263. 8002784: 8a3b ldrh r3, [r7, #16]
  5264. 8002786: ee07 3a90 vmov s15, r3
  5265. 800278a: eeb8 7be7 vcvt.f64.s32 d7, s15
  5266. 800278e: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5267. 8002792: ee27 6b06 vmul.f64 d6, d7, d6
  5268. 8002796: ed9f 5ba2 vldr d5, [pc, #648] @ 8002a20 <ADC3MeasTask+0x340>
  5269. 800279a: ee86 7b05 vdiv.f64 d7, d6, d5
  5270. 800279e: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  5271. 80027a2: ee27 6b06 vmul.f64 d6, d7, d6
  5272. 80027a6: ed9f 5ba0 vldr d5, [pc, #640] @ 8002a28 <ADC3MeasTask+0x348>
  5273. 80027aa: ee86 7b05 vdiv.f64 d7, d6, d5
  5274. 80027ae: eef7 7bc7 vcvt.f32.f64 s15, d7
  5275. 80027b2: edc7 7a34 vstr s15, [r7, #208] @ 0xd0
  5276. float motorYCurrentSense = adcData.adcDataBuffer[motorYSense] * deltaADC * 10 / 8.33333;
  5277. 80027b6: 8a7b ldrh r3, [r7, #18]
  5278. 80027b8: ee07 3a90 vmov s15, r3
  5279. 80027bc: eeb8 7be7 vcvt.f64.s32 d7, s15
  5280. 80027c0: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5281. 80027c4: ee27 6b06 vmul.f64 d6, d7, d6
  5282. 80027c8: ed9f 5b95 vldr d5, [pc, #596] @ 8002a20 <ADC3MeasTask+0x340>
  5283. 80027cc: ee86 7b05 vdiv.f64 d7, d6, d5
  5284. 80027d0: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  5285. 80027d4: ee27 6b06 vmul.f64 d6, d7, d6
  5286. 80027d8: ed9f 5b93 vldr d5, [pc, #588] @ 8002a28 <ADC3MeasTask+0x348>
  5287. 80027dc: ee86 7b05 vdiv.f64 d7, d6, d5
  5288. 80027e0: eef7 7bc7 vcvt.f32.f64 s15, d7
  5289. 80027e4: edc7 7a33 vstr s15, [r7, #204] @ 0xcc
  5290. motorXSensCircBuffer[circBuffPos] = motorXCurrentSense;
  5291. 80027e8: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5292. 80027ec: 009b lsls r3, r3, #2
  5293. 80027ee: 33f0 adds r3, #240 @ 0xf0
  5294. 80027f0: 443b add r3, r7
  5295. 80027f2: 3b4c subs r3, #76 @ 0x4c
  5296. 80027f4: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  5297. 80027f8: 601a str r2, [r3, #0]
  5298. motorYSensCircBuffer[circBuffPos] = motorYCurrentSense;
  5299. 80027fa: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5300. 80027fe: 009b lsls r3, r3, #2
  5301. 8002800: 33f0 adds r3, #240 @ 0xf0
  5302. 8002802: 443b add r3, r7
  5303. 8002804: 3b74 subs r3, #116 @ 0x74
  5304. 8002806: f8d7 20cc ldr.w r2, [r7, #204] @ 0xcc
  5305. 800280a: 601a str r2, [r3, #0]
  5306. pvT1CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp1] * deltaADC * 45.33333333 - 63;
  5307. 800280c: 89bb ldrh r3, [r7, #12]
  5308. 800280e: ee07 3a90 vmov s15, r3
  5309. 8002812: eeb8 7be7 vcvt.f64.s32 d7, s15
  5310. 8002816: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5311. 800281a: ee27 6b06 vmul.f64 d6, d7, d6
  5312. 800281e: ed9f 5b80 vldr d5, [pc, #512] @ 8002a20 <ADC3MeasTask+0x340>
  5313. 8002822: ee86 7b05 vdiv.f64 d7, d6, d5
  5314. 8002826: ed9f 6b82 vldr d6, [pc, #520] @ 8002a30 <ADC3MeasTask+0x350>
  5315. 800282a: ee27 7b06 vmul.f64 d7, d7, d6
  5316. 800282e: ed9f 6b82 vldr d6, [pc, #520] @ 8002a38 <ADC3MeasTask+0x358>
  5317. 8002832: ee37 7b46 vsub.f64 d7, d7, d6
  5318. 8002836: eef7 7bc7 vcvt.f32.f64 s15, d7
  5319. 800283a: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5320. 800283e: 009b lsls r3, r3, #2
  5321. 8002840: 33f0 adds r3, #240 @ 0xf0
  5322. 8002842: 443b add r3, r7
  5323. 8002844: 3b9c subs r3, #156 @ 0x9c
  5324. 8002846: edc3 7a00 vstr s15, [r3]
  5325. pvT2CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp2] * deltaADC * 45.33333333 - 63;
  5326. 800284a: 89fb ldrh r3, [r7, #14]
  5327. 800284c: ee07 3a90 vmov s15, r3
  5328. 8002850: eeb8 7be7 vcvt.f64.s32 d7, s15
  5329. 8002854: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5330. 8002858: ee27 6b06 vmul.f64 d6, d7, d6
  5331. 800285c: ed9f 5b70 vldr d5, [pc, #448] @ 8002a20 <ADC3MeasTask+0x340>
  5332. 8002860: ee86 7b05 vdiv.f64 d7, d6, d5
  5333. 8002864: ed9f 6b72 vldr d6, [pc, #456] @ 8002a30 <ADC3MeasTask+0x350>
  5334. 8002868: ee27 7b06 vmul.f64 d7, d7, d6
  5335. 800286c: ed9f 6b72 vldr d6, [pc, #456] @ 8002a38 <ADC3MeasTask+0x358>
  5336. 8002870: ee37 7b46 vsub.f64 d7, d7, d6
  5337. 8002874: eef7 7bc7 vcvt.f32.f64 s15, d7
  5338. 8002878: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5339. 800287c: 009b lsls r3, r3, #2
  5340. 800287e: 33f0 adds r3, #240 @ 0xf0
  5341. 8002880: 443b add r3, r7
  5342. 8002882: 3bc4 subs r3, #196 @ 0xc4
  5343. 8002884: edc3 7a00 vstr s15, [r3]
  5344. float motorXAveCurrent = 0;
  5345. 8002888: f04f 0300 mov.w r3, #0
  5346. 800288c: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  5347. float motorYAveCurrent = 0;
  5348. 8002890: f04f 0300 mov.w r3, #0
  5349. 8002894: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  5350. float pvT1AveTemp = 0;
  5351. 8002898: f04f 0300 mov.w r3, #0
  5352. 800289c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  5353. float pvT2AveTemp = 0;
  5354. 80028a0: f04f 0300 mov.w r3, #0
  5355. 80028a4: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  5356. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  5357. 80028a8: 2300 movs r3, #0
  5358. 80028aa: f887 30db strb.w r3, [r7, #219] @ 0xdb
  5359. 80028ae: e03c b.n 800292a <ADC3MeasTask+0x24a>
  5360. motorXAveCurrent += motorXSensCircBuffer[i];
  5361. 80028b0: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5362. 80028b4: 009b lsls r3, r3, #2
  5363. 80028b6: 33f0 adds r3, #240 @ 0xf0
  5364. 80028b8: 443b add r3, r7
  5365. 80028ba: 3b4c subs r3, #76 @ 0x4c
  5366. 80028bc: edd3 7a00 vldr s15, [r3]
  5367. 80028c0: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  5368. 80028c4: ee77 7a27 vadd.f32 s15, s14, s15
  5369. 80028c8: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  5370. motorYAveCurrent += motorYSensCircBuffer[i];
  5371. 80028cc: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5372. 80028d0: 009b lsls r3, r3, #2
  5373. 80028d2: 33f0 adds r3, #240 @ 0xf0
  5374. 80028d4: 443b add r3, r7
  5375. 80028d6: 3b74 subs r3, #116 @ 0x74
  5376. 80028d8: edd3 7a00 vldr s15, [r3]
  5377. 80028dc: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  5378. 80028e0: ee77 7a27 vadd.f32 s15, s14, s15
  5379. 80028e4: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  5380. #ifdef PV_BOARD
  5381. pvT1AveTemp += pvT1CircBuffer[i];
  5382. 80028e8: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5383. 80028ec: 009b lsls r3, r3, #2
  5384. 80028ee: 33f0 adds r3, #240 @ 0xf0
  5385. 80028f0: 443b add r3, r7
  5386. 80028f2: 3b9c subs r3, #156 @ 0x9c
  5387. 80028f4: edd3 7a00 vldr s15, [r3]
  5388. 80028f8: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  5389. 80028fc: ee77 7a27 vadd.f32 s15, s14, s15
  5390. 8002900: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  5391. pvT2AveTemp += pvT2CircBuffer[i];
  5392. 8002904: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5393. 8002908: 009b lsls r3, r3, #2
  5394. 800290a: 33f0 adds r3, #240 @ 0xf0
  5395. 800290c: 443b add r3, r7
  5396. 800290e: 3bc4 subs r3, #196 @ 0xc4
  5397. 8002910: edd3 7a00 vldr s15, [r3]
  5398. 8002914: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  5399. 8002918: ee77 7a27 vadd.f32 s15, s14, s15
  5400. 800291c: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  5401. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  5402. 8002920: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5403. 8002924: 3301 adds r3, #1
  5404. 8002926: f887 30db strb.w r3, [r7, #219] @ 0xdb
  5405. 800292a: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5406. 800292e: 2b09 cmp r3, #9
  5407. 8002930: d9be bls.n 80028b0 <ADC3MeasTask+0x1d0>
  5408. #endif
  5409. }
  5410. motorXAveCurrent /= CIRC_BUFF_LEN;
  5411. 8002932: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  5412. 8002936: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5413. 800293a: eec7 7a26 vdiv.f32 s15, s14, s13
  5414. 800293e: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  5415. motorYAveCurrent /= CIRC_BUFF_LEN;
  5416. 8002942: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  5417. 8002946: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5418. 800294a: eec7 7a26 vdiv.f32 s15, s14, s13
  5419. 800294e: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  5420. pvT1AveTemp /= CIRC_BUFF_LEN;
  5421. 8002952: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  5422. 8002956: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5423. 800295a: eec7 7a26 vdiv.f32 s15, s14, s13
  5424. 800295e: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  5425. pvT2AveTemp /= CIRC_BUFF_LEN;
  5426. 8002962: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  5427. 8002966: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5428. 800296a: eec7 7a26 vdiv.f32 s15, s14, s13
  5429. 800296e: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  5430. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5431. 8002972: 4b37 ldr r3, [pc, #220] @ (8002a50 <ADC3MeasTask+0x370>)
  5432. 8002974: 681b ldr r3, [r3, #0]
  5433. 8002976: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5434. 800297a: 4618 mov r0, r3
  5435. 800297c: f011 f8db bl 8013b36 <osMutexAcquire>
  5436. 8002980: 4603 mov r3, r0
  5437. 8002982: 2b00 cmp r3, #0
  5438. 8002984: d138 bne.n 80029f8 <ADC3MeasTask+0x318>
  5439. if (sensorsInfo.motorXStatus == 1) {
  5440. 8002986: 4b33 ldr r3, [pc, #204] @ (8002a54 <ADC3MeasTask+0x374>)
  5441. 8002988: 7d1b ldrb r3, [r3, #20]
  5442. 800298a: 2b01 cmp r3, #1
  5443. 800298c: d111 bne.n 80029b2 <ADC3MeasTask+0x2d2>
  5444. sensorsInfo.motorXAveCurrent = motorXAveCurrent;
  5445. 800298e: 4a31 ldr r2, [pc, #196] @ (8002a54 <ADC3MeasTask+0x374>)
  5446. 8002990: f8d7 30e8 ldr.w r3, [r7, #232] @ 0xe8
  5447. 8002994: 6193 str r3, [r2, #24]
  5448. if (sensorsInfo.motorXPeakCurrent < motorXCurrentSense) {
  5449. 8002996: 4b2f ldr r3, [pc, #188] @ (8002a54 <ADC3MeasTask+0x374>)
  5450. 8002998: edd3 7a08 vldr s15, [r3, #32]
  5451. 800299c: ed97 7a34 vldr s14, [r7, #208] @ 0xd0
  5452. 80029a0: eeb4 7ae7 vcmpe.f32 s14, s15
  5453. 80029a4: eef1 fa10 vmrs APSR_nzcv, fpscr
  5454. 80029a8: dd03 ble.n 80029b2 <ADC3MeasTask+0x2d2>
  5455. sensorsInfo.motorXPeakCurrent = motorXCurrentSense;
  5456. 80029aa: 4a2a ldr r2, [pc, #168] @ (8002a54 <ADC3MeasTask+0x374>)
  5457. 80029ac: f8d7 30d0 ldr.w r3, [r7, #208] @ 0xd0
  5458. 80029b0: 6213 str r3, [r2, #32]
  5459. }
  5460. }
  5461. if (sensorsInfo.motorYStatus == 1) {
  5462. 80029b2: 4b28 ldr r3, [pc, #160] @ (8002a54 <ADC3MeasTask+0x374>)
  5463. 80029b4: 7d5b ldrb r3, [r3, #21]
  5464. 80029b6: 2b01 cmp r3, #1
  5465. 80029b8: d111 bne.n 80029de <ADC3MeasTask+0x2fe>
  5466. sensorsInfo.motorYAveCurrent = motorYAveCurrent;
  5467. 80029ba: 4a26 ldr r2, [pc, #152] @ (8002a54 <ADC3MeasTask+0x374>)
  5468. 80029bc: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  5469. 80029c0: 61d3 str r3, [r2, #28]
  5470. if (sensorsInfo.motorYPeakCurrent < motorYCurrentSense) {
  5471. 80029c2: 4b24 ldr r3, [pc, #144] @ (8002a54 <ADC3MeasTask+0x374>)
  5472. 80029c4: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  5473. 80029c8: ed97 7a33 vldr s14, [r7, #204] @ 0xcc
  5474. 80029cc: eeb4 7ae7 vcmpe.f32 s14, s15
  5475. 80029d0: eef1 fa10 vmrs APSR_nzcv, fpscr
  5476. 80029d4: dd03 ble.n 80029de <ADC3MeasTask+0x2fe>
  5477. sensorsInfo.motorYPeakCurrent = motorYCurrentSense;
  5478. 80029d6: 4a1f ldr r2, [pc, #124] @ (8002a54 <ADC3MeasTask+0x374>)
  5479. 80029d8: f8d7 30cc ldr.w r3, [r7, #204] @ 0xcc
  5480. 80029dc: 6253 str r3, [r2, #36] @ 0x24
  5481. }
  5482. }
  5483. sensorsInfo.pvTemperature[0] = pvT1AveTemp;
  5484. 80029de: 4a1d ldr r2, [pc, #116] @ (8002a54 <ADC3MeasTask+0x374>)
  5485. 80029e0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  5486. 80029e4: 6013 str r3, [r2, #0]
  5487. sensorsInfo.pvTemperature[1] = pvT2AveTemp;
  5488. 80029e6: 4a1b ldr r2, [pc, #108] @ (8002a54 <ADC3MeasTask+0x374>)
  5489. 80029e8: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  5490. 80029ec: 6053 str r3, [r2, #4]
  5491. osMutexRelease (sensorsInfoMutex);
  5492. 80029ee: 4b18 ldr r3, [pc, #96] @ (8002a50 <ADC3MeasTask+0x370>)
  5493. 80029f0: 681b ldr r3, [r3, #0]
  5494. 80029f2: 4618 mov r0, r3
  5495. 80029f4: f011 f8ea bl 8013bcc <osMutexRelease>
  5496. }
  5497. ++circBuffPos;
  5498. 80029f8: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5499. 80029fc: 3301 adds r3, #1
  5500. 80029fe: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5501. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  5502. 8002a02: f8d7 20ec ldr.w r2, [r7, #236] @ 0xec
  5503. 8002a06: 4b14 ldr r3, [pc, #80] @ (8002a58 <ADC3MeasTask+0x378>)
  5504. 8002a08: fba3 1302 umull r1, r3, r3, r2
  5505. 8002a0c: 08d9 lsrs r1, r3, #3
  5506. 8002a0e: 460b mov r3, r1
  5507. 8002a10: 009b lsls r3, r3, #2
  5508. 8002a12: 440b add r3, r1
  5509. 8002a14: 005b lsls r3, r3, #1
  5510. 8002a16: 1ad3 subs r3, r2, r3
  5511. 8002a18: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5512. while (pdTRUE) {
  5513. 8002a1c: e68a b.n 8002734 <ADC3MeasTask+0x54>
  5514. 8002a1e: bf00 nop
  5515. 8002a20: 00000000 .word 0x00000000
  5516. 8002a24: 40efffe0 .word 0x40efffe0
  5517. 8002a28: 3ad18d26 .word 0x3ad18d26
  5518. 8002a2c: 4020aaaa .word 0x4020aaaa
  5519. 8002a30: aaa38226 .word 0xaaa38226
  5520. 8002a34: 4046aaaa .word 0x4046aaaa
  5521. 8002a38: 00000000 .word 0x00000000
  5522. 8002a3c: 404f8000 .word 0x404f8000
  5523. 8002a40: 240007d0 .word 0x240007d0
  5524. 8002a44: 1ff1e860 .word 0x1ff1e860
  5525. 8002a48: 240007e0 .word 0x240007e0
  5526. 8002a4c: 24000030 .word 0x24000030
  5527. 8002a50: 240007e8 .word 0x240007e8
  5528. 8002a54: 2400082c .word 0x2400082c
  5529. 8002a58: cccccccd .word 0xcccccccd
  5530. 08002a5c <LimiterSwitchTask>:
  5531. }
  5532. }
  5533. void LimiterSwitchTask (void* arg) {
  5534. 8002a5c: b580 push {r7, lr}
  5535. 8002a5e: b08a sub sp, #40 @ 0x28
  5536. 8002a60: af06 add r7, sp, #24
  5537. 8002a62: 6078 str r0, [r7, #4]
  5538. LimiterSwitchData limiterSwitchData = { 0 };
  5539. 8002a64: 2300 movs r3, #0
  5540. 8002a66: 60bb str r3, [r7, #8]
  5541. limiterSwitchData.gpioPin = GPIO_PIN_8;
  5542. 8002a68: f44f 7380 mov.w r3, #256 @ 0x100
  5543. 8002a6c: 813b strh r3, [r7, #8]
  5544. for (uint8_t i = 0; i < 6; i++) {
  5545. 8002a6e: 2300 movs r3, #0
  5546. 8002a70: 73fb strb r3, [r7, #15]
  5547. 8002a72: e015 b.n 8002aa0 <LimiterSwitchTask+0x44>
  5548. limiterSwitchData.pinState = HAL_GPIO_ReadPin (GPIOD, limiterSwitchData.gpioPin);
  5549. 8002a74: 893b ldrh r3, [r7, #8]
  5550. 8002a76: 4619 mov r1, r3
  5551. 8002a78: 486c ldr r0, [pc, #432] @ (8002c2c <LimiterSwitchTask+0x1d0>)
  5552. 8002a7a: f008 f867 bl 800ab4c <HAL_GPIO_ReadPin>
  5553. 8002a7e: 4603 mov r3, r0
  5554. 8002a80: 72bb strb r3, [r7, #10]
  5555. osMessageQueuePut (limiterSwitchDataQueue, &limiterSwitchData, 0, 0);
  5556. 8002a82: 4b6b ldr r3, [pc, #428] @ (8002c30 <LimiterSwitchTask+0x1d4>)
  5557. 8002a84: 6818 ldr r0, [r3, #0]
  5558. 8002a86: f107 0108 add.w r1, r7, #8
  5559. 8002a8a: 2300 movs r3, #0
  5560. 8002a8c: 2200 movs r2, #0
  5561. 8002a8e: f011 f94d bl 8013d2c <osMessageQueuePut>
  5562. limiterSwitchData.gpioPin = limiterSwitchData.gpioPin << 1;
  5563. 8002a92: 893b ldrh r3, [r7, #8]
  5564. 8002a94: 005b lsls r3, r3, #1
  5565. 8002a96: b29b uxth r3, r3
  5566. 8002a98: 813b strh r3, [r7, #8]
  5567. for (uint8_t i = 0; i < 6; i++) {
  5568. 8002a9a: 7bfb ldrb r3, [r7, #15]
  5569. 8002a9c: 3301 adds r3, #1
  5570. 8002a9e: 73fb strb r3, [r7, #15]
  5571. 8002aa0: 7bfb ldrb r3, [r7, #15]
  5572. 8002aa2: 2b05 cmp r3, #5
  5573. 8002aa4: d9e6 bls.n 8002a74 <LimiterSwitchTask+0x18>
  5574. }
  5575. while (pdTRUE) {
  5576. osMessageQueueGet (limiterSwitchDataQueue, &limiterSwitchData, 0, osWaitForever);
  5577. 8002aa6: 4b62 ldr r3, [pc, #392] @ (8002c30 <LimiterSwitchTask+0x1d4>)
  5578. 8002aa8: 6818 ldr r0, [r3, #0]
  5579. 8002aaa: f107 0108 add.w r1, r7, #8
  5580. 8002aae: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5581. 8002ab2: 2200 movs r2, #0
  5582. 8002ab4: f011 f99a bl 8013dec <osMessageQueueGet>
  5583. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5584. 8002ab8: 4b5e ldr r3, [pc, #376] @ (8002c34 <LimiterSwitchTask+0x1d8>)
  5585. 8002aba: 681b ldr r3, [r3, #0]
  5586. 8002abc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5587. 8002ac0: 4618 mov r0, r3
  5588. 8002ac2: f011 f838 bl 8013b36 <osMutexAcquire>
  5589. 8002ac6: 4603 mov r3, r0
  5590. 8002ac8: 2b00 cmp r3, #0
  5591. 8002aca: d1ec bne.n 8002aa6 <LimiterSwitchTask+0x4a>
  5592. switch (limiterSwitchData.gpioPin) {
  5593. 8002acc: 893b ldrh r3, [r7, #8]
  5594. 8002ace: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5595. 8002ad2: d052 beq.n 8002b7a <LimiterSwitchTask+0x11e>
  5596. 8002ad4: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5597. 8002ad8: dc5a bgt.n 8002b90 <LimiterSwitchTask+0x134>
  5598. 8002ada: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5599. 8002ade: d041 beq.n 8002b64 <LimiterSwitchTask+0x108>
  5600. 8002ae0: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5601. 8002ae4: dc54 bgt.n 8002b90 <LimiterSwitchTask+0x134>
  5602. 8002ae6: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5603. 8002aea: d030 beq.n 8002b4e <LimiterSwitchTask+0xf2>
  5604. 8002aec: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5605. 8002af0: dc4e bgt.n 8002b90 <LimiterSwitchTask+0x134>
  5606. 8002af2: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5607. 8002af6: d01f beq.n 8002b38 <LimiterSwitchTask+0xdc>
  5608. 8002af8: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5609. 8002afc: dc48 bgt.n 8002b90 <LimiterSwitchTask+0x134>
  5610. 8002afe: f5b3 7f80 cmp.w r3, #256 @ 0x100
  5611. 8002b02: d003 beq.n 8002b0c <LimiterSwitchTask+0xb0>
  5612. 8002b04: f5b3 7f00 cmp.w r3, #512 @ 0x200
  5613. 8002b08: d00b beq.n 8002b22 <LimiterSwitchTask+0xc6>
  5614. case GPIO_PIN_9: sensorsInfo.limitYSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5615. case GPIO_PIN_10: sensorsInfo.limitXSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5616. case GPIO_PIN_11: sensorsInfo.limitYSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5617. case GPIO_PIN_12: sensorsInfo.limitXSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5618. case GPIO_PIN_13: sensorsInfo.limitXSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5619. default: break;
  5620. 8002b0a: e041 b.n 8002b90 <LimiterSwitchTask+0x134>
  5621. case GPIO_PIN_8: sensorsInfo.limitYSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5622. 8002b0c: 7abb ldrb r3, [r7, #10]
  5623. 8002b0e: 2b01 cmp r3, #1
  5624. 8002b10: bf14 ite ne
  5625. 8002b12: 2301 movne r3, #1
  5626. 8002b14: 2300 moveq r3, #0
  5627. 8002b16: b2db uxtb r3, r3
  5628. 8002b18: 461a mov r2, r3
  5629. 8002b1a: 4b47 ldr r3, [pc, #284] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5630. 8002b1c: f883 202d strb.w r2, [r3, #45] @ 0x2d
  5631. 8002b20: e037 b.n 8002b92 <LimiterSwitchTask+0x136>
  5632. case GPIO_PIN_9: sensorsInfo.limitYSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5633. 8002b22: 7abb ldrb r3, [r7, #10]
  5634. 8002b24: 2b01 cmp r3, #1
  5635. 8002b26: bf14 ite ne
  5636. 8002b28: 2301 movne r3, #1
  5637. 8002b2a: 2300 moveq r3, #0
  5638. 8002b2c: b2db uxtb r3, r3
  5639. 8002b2e: 461a mov r2, r3
  5640. 8002b30: 4b41 ldr r3, [pc, #260] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5641. 8002b32: f883 202c strb.w r2, [r3, #44] @ 0x2c
  5642. 8002b36: e02c b.n 8002b92 <LimiterSwitchTask+0x136>
  5643. case GPIO_PIN_10: sensorsInfo.limitXSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5644. 8002b38: 7abb ldrb r3, [r7, #10]
  5645. 8002b3a: 2b01 cmp r3, #1
  5646. 8002b3c: bf14 ite ne
  5647. 8002b3e: 2301 movne r3, #1
  5648. 8002b40: 2300 moveq r3, #0
  5649. 8002b42: b2db uxtb r3, r3
  5650. 8002b44: 461a mov r2, r3
  5651. 8002b46: 4b3c ldr r3, [pc, #240] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5652. 8002b48: f883 202a strb.w r2, [r3, #42] @ 0x2a
  5653. 8002b4c: e021 b.n 8002b92 <LimiterSwitchTask+0x136>
  5654. case GPIO_PIN_11: sensorsInfo.limitYSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5655. 8002b4e: 7abb ldrb r3, [r7, #10]
  5656. 8002b50: 2b01 cmp r3, #1
  5657. 8002b52: bf14 ite ne
  5658. 8002b54: 2301 movne r3, #1
  5659. 8002b56: 2300 moveq r3, #0
  5660. 8002b58: b2db uxtb r3, r3
  5661. 8002b5a: 461a mov r2, r3
  5662. 8002b5c: 4b36 ldr r3, [pc, #216] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5663. 8002b5e: f883 202b strb.w r2, [r3, #43] @ 0x2b
  5664. 8002b62: e016 b.n 8002b92 <LimiterSwitchTask+0x136>
  5665. case GPIO_PIN_12: sensorsInfo.limitXSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5666. 8002b64: 7abb ldrb r3, [r7, #10]
  5667. 8002b66: 2b01 cmp r3, #1
  5668. 8002b68: bf14 ite ne
  5669. 8002b6a: 2301 movne r3, #1
  5670. 8002b6c: 2300 moveq r3, #0
  5671. 8002b6e: b2db uxtb r3, r3
  5672. 8002b70: 461a mov r2, r3
  5673. 8002b72: 4b31 ldr r3, [pc, #196] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5674. 8002b74: f883 2028 strb.w r2, [r3, #40] @ 0x28
  5675. 8002b78: e00b b.n 8002b92 <LimiterSwitchTask+0x136>
  5676. case GPIO_PIN_13: sensorsInfo.limitXSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5677. 8002b7a: 7abb ldrb r3, [r7, #10]
  5678. 8002b7c: 2b01 cmp r3, #1
  5679. 8002b7e: bf14 ite ne
  5680. 8002b80: 2301 movne r3, #1
  5681. 8002b82: 2300 moveq r3, #0
  5682. 8002b84: b2db uxtb r3, r3
  5683. 8002b86: 461a mov r2, r3
  5684. 8002b88: 4b2b ldr r3, [pc, #172] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5685. 8002b8a: f883 2029 strb.w r2, [r3, #41] @ 0x29
  5686. 8002b8e: e000 b.n 8002b92 <LimiterSwitchTask+0x136>
  5687. default: break;
  5688. 8002b90: bf00 nop
  5689. }
  5690. if ((sensorsInfo.limitXSwitchDown == 1) || (sensorsInfo.limitXSwitchUp == 1)) {
  5691. 8002b92: 4b29 ldr r3, [pc, #164] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5692. 8002b94: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5693. 8002b98: 2b01 cmp r3, #1
  5694. 8002b9a: d004 beq.n 8002ba6 <LimiterSwitchTask+0x14a>
  5695. 8002b9c: 4b26 ldr r3, [pc, #152] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5696. 8002b9e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5697. 8002ba2: 2b01 cmp r3, #1
  5698. 8002ba4: d118 bne.n 8002bd8 <LimiterSwitchTask+0x17c>
  5699. sensorsInfo.motorXStatus = motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, 0, 0, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  5700. 8002ba6: 4b25 ldr r3, [pc, #148] @ (8002c3c <LimiterSwitchTask+0x1e0>)
  5701. 8002ba8: 681b ldr r3, [r3, #0]
  5702. 8002baa: 4a23 ldr r2, [pc, #140] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5703. 8002bac: f892 2028 ldrb.w r2, [r2, #40] @ 0x28
  5704. 8002bb0: 4921 ldr r1, [pc, #132] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5705. 8002bb2: f891 1029 ldrb.w r1, [r1, #41] @ 0x29
  5706. 8002bb6: 9104 str r1, [sp, #16]
  5707. 8002bb8: 9203 str r2, [sp, #12]
  5708. 8002bba: 2200 movs r2, #0
  5709. 8002bbc: 9202 str r2, [sp, #8]
  5710. 8002bbe: 2200 movs r2, #0
  5711. 8002bc0: 9201 str r2, [sp, #4]
  5712. 8002bc2: 9300 str r3, [sp, #0]
  5713. 8002bc4: 2304 movs r3, #4
  5714. 8002bc6: 2200 movs r2, #0
  5715. 8002bc8: 491d ldr r1, [pc, #116] @ (8002c40 <LimiterSwitchTask+0x1e4>)
  5716. 8002bca: 481e ldr r0, [pc, #120] @ (8002c44 <LimiterSwitchTask+0x1e8>)
  5717. 8002bcc: f000 f92a bl 8002e24 <motorControl>
  5718. 8002bd0: 4603 mov r3, r0
  5719. 8002bd2: 461a mov r2, r3
  5720. 8002bd4: 4b18 ldr r3, [pc, #96] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5721. 8002bd6: 751a strb r2, [r3, #20]
  5722. }
  5723. if ((sensorsInfo.limitYSwitchDown == 1) || (sensorsInfo.limitYSwitchUp == 1)) {
  5724. 8002bd8: 4b17 ldr r3, [pc, #92] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5725. 8002bda: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5726. 8002bde: 2b01 cmp r3, #1
  5727. 8002be0: d004 beq.n 8002bec <LimiterSwitchTask+0x190>
  5728. 8002be2: 4b15 ldr r3, [pc, #84] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5729. 8002be4: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5730. 8002be8: 2b01 cmp r3, #1
  5731. 8002bea: d118 bne.n 8002c1e <LimiterSwitchTask+0x1c2>
  5732. sensorsInfo.motorYStatus = motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, 0, 0, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  5733. 8002bec: 4b16 ldr r3, [pc, #88] @ (8002c48 <LimiterSwitchTask+0x1ec>)
  5734. 8002bee: 681b ldr r3, [r3, #0]
  5735. 8002bf0: 4a11 ldr r2, [pc, #68] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5736. 8002bf2: f892 202b ldrb.w r2, [r2, #43] @ 0x2b
  5737. 8002bf6: 4910 ldr r1, [pc, #64] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5738. 8002bf8: f891 102c ldrb.w r1, [r1, #44] @ 0x2c
  5739. 8002bfc: 9104 str r1, [sp, #16]
  5740. 8002bfe: 9203 str r2, [sp, #12]
  5741. 8002c00: 2200 movs r2, #0
  5742. 8002c02: 9202 str r2, [sp, #8]
  5743. 8002c04: 2200 movs r2, #0
  5744. 8002c06: 9201 str r2, [sp, #4]
  5745. 8002c08: 9300 str r3, [sp, #0]
  5746. 8002c0a: 230c movs r3, #12
  5747. 8002c0c: 2208 movs r2, #8
  5748. 8002c0e: 490c ldr r1, [pc, #48] @ (8002c40 <LimiterSwitchTask+0x1e4>)
  5749. 8002c10: 480c ldr r0, [pc, #48] @ (8002c44 <LimiterSwitchTask+0x1e8>)
  5750. 8002c12: f000 f907 bl 8002e24 <motorControl>
  5751. 8002c16: 4603 mov r3, r0
  5752. 8002c18: 461a mov r2, r3
  5753. 8002c1a: 4b07 ldr r3, [pc, #28] @ (8002c38 <LimiterSwitchTask+0x1dc>)
  5754. 8002c1c: 755a strb r2, [r3, #21]
  5755. }
  5756. osMutexRelease (sensorsInfoMutex);
  5757. 8002c1e: 4b05 ldr r3, [pc, #20] @ (8002c34 <LimiterSwitchTask+0x1d8>)
  5758. 8002c20: 681b ldr r3, [r3, #0]
  5759. 8002c22: 4618 mov r0, r3
  5760. 8002c24: f010 ffd2 bl 8013bcc <osMutexRelease>
  5761. osMessageQueueGet (limiterSwitchDataQueue, &limiterSwitchData, 0, osWaitForever);
  5762. 8002c28: e73d b.n 8002aa6 <LimiterSwitchTask+0x4a>
  5763. 8002c2a: bf00 nop
  5764. 8002c2c: 58020c00 .word 0x58020c00
  5765. 8002c30: 240007d4 .word 0x240007d4
  5766. 8002c34: 240007e8 .word 0x240007e8
  5767. 8002c38: 2400082c .word 0x2400082c
  5768. 8002c3c: 24000708 .word 0x24000708
  5769. 8002c40: 24000784 .word 0x24000784
  5770. 8002c44: 240004e4 .word 0x240004e4
  5771. 8002c48: 24000738 .word 0x24000738
  5772. 08002c4c <EncoderTask>:
  5773. }
  5774. }
  5775. }
  5776. void EncoderTask (void* arg) {
  5777. 8002c4c: b580 push {r7, lr}
  5778. 8002c4e: b084 sub sp, #16
  5779. 8002c50: af00 add r7, sp, #0
  5780. 8002c52: 6078 str r0, [r7, #4]
  5781. EncoderData encoderData = { 0 };
  5782. 8002c54: 2300 movs r3, #0
  5783. 8002c56: 813b strh r3, [r7, #8]
  5784. osMessageQueueId_t encoderQueue = (osMessageQueueId_t)arg;
  5785. 8002c58: 687b ldr r3, [r7, #4]
  5786. 8002c5a: 60fb str r3, [r7, #12]
  5787. while (pdTRUE) {
  5788. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  5789. 8002c5c: f107 0108 add.w r1, r7, #8
  5790. 8002c60: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5791. 8002c64: 2200 movs r2, #0
  5792. 8002c66: 68f8 ldr r0, [r7, #12]
  5793. 8002c68: f011 f8c0 bl 8013dec <osMessageQueueGet>
  5794. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5795. 8002c6c: 4b24 ldr r3, [pc, #144] @ (8002d00 <EncoderTask+0xb4>)
  5796. 8002c6e: 681b ldr r3, [r3, #0]
  5797. 8002c70: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5798. 8002c74: 4618 mov r0, r3
  5799. 8002c76: f010 ff5e bl 8013b36 <osMutexAcquire>
  5800. 8002c7a: 4603 mov r3, r0
  5801. 8002c7c: 2b00 cmp r3, #0
  5802. 8002c7e: d1ed bne.n 8002c5c <EncoderTask+0x10>
  5803. if (encoderData.axe == encoderAxeX) {
  5804. 8002c80: 7a3b ldrb r3, [r7, #8]
  5805. 8002c82: 2b00 cmp r3, #0
  5806. 8002c84: d11b bne.n 8002cbe <EncoderTask+0x72>
  5807. if (encoderData.direction == encoderCW) {
  5808. 8002c86: 7a7b ldrb r3, [r7, #9]
  5809. 8002c88: 2b00 cmp r3, #0
  5810. 8002c8a: d10a bne.n 8002ca2 <EncoderTask+0x56>
  5811. sensorsInfo.pvEncoderX += 360.0 / ENCODER_X_IMP_PER_TURN;
  5812. 8002c8c: 4b1d ldr r3, [pc, #116] @ (8002d04 <EncoderTask+0xb8>)
  5813. 8002c8e: edd3 7a03 vldr s15, [r3, #12]
  5814. 8002c92: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  5815. 8002c96: ee77 7a87 vadd.f32 s15, s15, s14
  5816. 8002c9a: 4b1a ldr r3, [pc, #104] @ (8002d04 <EncoderTask+0xb8>)
  5817. 8002c9c: edc3 7a03 vstr s15, [r3, #12]
  5818. 8002ca0: e009 b.n 8002cb6 <EncoderTask+0x6a>
  5819. } else {
  5820. sensorsInfo.pvEncoderX -= 360.0 / ENCODER_X_IMP_PER_TURN;
  5821. 8002ca2: 4b18 ldr r3, [pc, #96] @ (8002d04 <EncoderTask+0xb8>)
  5822. 8002ca4: edd3 7a03 vldr s15, [r3, #12]
  5823. 8002ca8: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  5824. 8002cac: ee77 7ac7 vsub.f32 s15, s15, s14
  5825. 8002cb0: 4b14 ldr r3, [pc, #80] @ (8002d04 <EncoderTask+0xb8>)
  5826. 8002cb2: edc3 7a03 vstr s15, [r3, #12]
  5827. }
  5828. DbgLEDToggle(DBG_LED2);
  5829. 8002cb6: 2020 movs r0, #32
  5830. 8002cb8: f000 f84a bl 8002d50 <DbgLEDToggle>
  5831. 8002cbc: e01a b.n 8002cf4 <EncoderTask+0xa8>
  5832. } else {
  5833. if (encoderData.direction == encoderCW) {
  5834. 8002cbe: 7a7b ldrb r3, [r7, #9]
  5835. 8002cc0: 2b00 cmp r3, #0
  5836. 8002cc2: d10a bne.n 8002cda <EncoderTask+0x8e>
  5837. sensorsInfo.pvEncoderY += 360.0 / ENCODER_Y_IMP_PER_TURN;
  5838. 8002cc4: 4b0f ldr r3, [pc, #60] @ (8002d04 <EncoderTask+0xb8>)
  5839. 8002cc6: edd3 7a04 vldr s15, [r3, #16]
  5840. 8002cca: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  5841. 8002cce: ee77 7a87 vadd.f32 s15, s15, s14
  5842. 8002cd2: 4b0c ldr r3, [pc, #48] @ (8002d04 <EncoderTask+0xb8>)
  5843. 8002cd4: edc3 7a04 vstr s15, [r3, #16]
  5844. 8002cd8: e009 b.n 8002cee <EncoderTask+0xa2>
  5845. } else {
  5846. sensorsInfo.pvEncoderY -= 360.0 / ENCODER_Y_IMP_PER_TURN;
  5847. 8002cda: 4b0a ldr r3, [pc, #40] @ (8002d04 <EncoderTask+0xb8>)
  5848. 8002cdc: edd3 7a04 vldr s15, [r3, #16]
  5849. 8002ce0: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  5850. 8002ce4: ee77 7ac7 vsub.f32 s15, s15, s14
  5851. 8002ce8: 4b06 ldr r3, [pc, #24] @ (8002d04 <EncoderTask+0xb8>)
  5852. 8002cea: edc3 7a04 vstr s15, [r3, #16]
  5853. }
  5854. DbgLEDToggle(DBG_LED3);
  5855. 8002cee: 2040 movs r0, #64 @ 0x40
  5856. 8002cf0: f000 f82e bl 8002d50 <DbgLEDToggle>
  5857. }
  5858. osMutexRelease (sensorsInfoMutex);
  5859. 8002cf4: 4b02 ldr r3, [pc, #8] @ (8002d00 <EncoderTask+0xb4>)
  5860. 8002cf6: 681b ldr r3, [r3, #0]
  5861. 8002cf8: 4618 mov r0, r3
  5862. 8002cfa: f010 ff67 bl 8013bcc <osMutexRelease>
  5863. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  5864. 8002cfe: e7ad b.n 8002c5c <EncoderTask+0x10>
  5865. 8002d00: 240007e8 .word 0x240007e8
  5866. 8002d04: 2400082c .word 0x2400082c
  5867. 08002d08 <DbgLEDOn>:
  5868. #include <stdlib.h>
  5869. #include "peripherial.h"
  5870. void DbgLEDOn (uint8_t ledNumber) {
  5871. 8002d08: b580 push {r7, lr}
  5872. 8002d0a: b082 sub sp, #8
  5873. 8002d0c: af00 add r7, sp, #0
  5874. 8002d0e: 4603 mov r3, r0
  5875. 8002d10: 71fb strb r3, [r7, #7]
  5876. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_SET);
  5877. 8002d12: 79fb ldrb r3, [r7, #7]
  5878. 8002d14: b29b uxth r3, r3
  5879. 8002d16: 2201 movs r2, #1
  5880. 8002d18: 4619 mov r1, r3
  5881. 8002d1a: 4803 ldr r0, [pc, #12] @ (8002d28 <DbgLEDOn+0x20>)
  5882. 8002d1c: f007 ff2e bl 800ab7c <HAL_GPIO_WritePin>
  5883. }
  5884. 8002d20: bf00 nop
  5885. 8002d22: 3708 adds r7, #8
  5886. 8002d24: 46bd mov sp, r7
  5887. 8002d26: bd80 pop {r7, pc}
  5888. 8002d28: 58020c00 .word 0x58020c00
  5889. 08002d2c <DbgLEDOff>:
  5890. void DbgLEDOff (uint8_t ledNumber) {
  5891. 8002d2c: b580 push {r7, lr}
  5892. 8002d2e: b082 sub sp, #8
  5893. 8002d30: af00 add r7, sp, #0
  5894. 8002d32: 4603 mov r3, r0
  5895. 8002d34: 71fb strb r3, [r7, #7]
  5896. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_RESET);
  5897. 8002d36: 79fb ldrb r3, [r7, #7]
  5898. 8002d38: b29b uxth r3, r3
  5899. 8002d3a: 2200 movs r2, #0
  5900. 8002d3c: 4619 mov r1, r3
  5901. 8002d3e: 4803 ldr r0, [pc, #12] @ (8002d4c <DbgLEDOff+0x20>)
  5902. 8002d40: f007 ff1c bl 800ab7c <HAL_GPIO_WritePin>
  5903. }
  5904. 8002d44: bf00 nop
  5905. 8002d46: 3708 adds r7, #8
  5906. 8002d48: 46bd mov sp, r7
  5907. 8002d4a: bd80 pop {r7, pc}
  5908. 8002d4c: 58020c00 .word 0x58020c00
  5909. 08002d50 <DbgLEDToggle>:
  5910. void DbgLEDToggle (uint8_t ledNumber) {
  5911. 8002d50: b580 push {r7, lr}
  5912. 8002d52: b082 sub sp, #8
  5913. 8002d54: af00 add r7, sp, #0
  5914. 8002d56: 4603 mov r3, r0
  5915. 8002d58: 71fb strb r3, [r7, #7]
  5916. HAL_GPIO_TogglePin (GPIOD, ledNumber);
  5917. 8002d5a: 79fb ldrb r3, [r7, #7]
  5918. 8002d5c: b29b uxth r3, r3
  5919. 8002d5e: 4619 mov r1, r3
  5920. 8002d60: 4803 ldr r0, [pc, #12] @ (8002d70 <DbgLEDToggle+0x20>)
  5921. 8002d62: f007 ff24 bl 800abae <HAL_GPIO_TogglePin>
  5922. }
  5923. 8002d66: bf00 nop
  5924. 8002d68: 3708 adds r7, #8
  5925. 8002d6a: 46bd mov sp, r7
  5926. 8002d6c: bd80 pop {r7, pc}
  5927. 8002d6e: bf00 nop
  5928. 8002d70: 58020c00 .word 0x58020c00
  5929. 08002d74 <EnableCurrentSensors>:
  5930. void EnableCurrentSensors (void) {
  5931. 8002d74: b580 push {r7, lr}
  5932. 8002d76: af00 add r7, sp, #0
  5933. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_SET);
  5934. 8002d78: 2201 movs r2, #1
  5935. 8002d7a: f44f 4100 mov.w r1, #32768 @ 0x8000
  5936. 8002d7e: 4802 ldr r0, [pc, #8] @ (8002d88 <EnableCurrentSensors+0x14>)
  5937. 8002d80: f007 fefc bl 800ab7c <HAL_GPIO_WritePin>
  5938. }
  5939. 8002d84: bf00 nop
  5940. 8002d86: bd80 pop {r7, pc}
  5941. 8002d88: 58021000 .word 0x58021000
  5942. 08002d8c <SelectCurrentSensorGain>:
  5943. void DisableCurrentSensors (void) {
  5944. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_RESET);
  5945. }
  5946. void SelectCurrentSensorGain (CurrentSensor sensor, CurrentSensorGain gain) {
  5947. 8002d8c: b580 push {r7, lr}
  5948. 8002d8e: b084 sub sp, #16
  5949. 8002d90: af00 add r7, sp, #0
  5950. 8002d92: 4603 mov r3, r0
  5951. 8002d94: 460a mov r2, r1
  5952. 8002d96: 71fb strb r3, [r7, #7]
  5953. 8002d98: 4613 mov r3, r2
  5954. 8002d9a: 71bb strb r3, [r7, #6]
  5955. uint8_t gpioOffset = 0;
  5956. 8002d9c: 2300 movs r3, #0
  5957. 8002d9e: 73fb strb r3, [r7, #15]
  5958. switch (sensor) {
  5959. 8002da0: 79fb ldrb r3, [r7, #7]
  5960. 8002da2: 2b02 cmp r3, #2
  5961. 8002da4: d00c beq.n 8002dc0 <SelectCurrentSensorGain+0x34>
  5962. 8002da6: 2b02 cmp r3, #2
  5963. 8002da8: dc0d bgt.n 8002dc6 <SelectCurrentSensorGain+0x3a>
  5964. 8002daa: 2b00 cmp r3, #0
  5965. 8002dac: d002 beq.n 8002db4 <SelectCurrentSensorGain+0x28>
  5966. 8002dae: 2b01 cmp r3, #1
  5967. 8002db0: d003 beq.n 8002dba <SelectCurrentSensorGain+0x2e>
  5968. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  5969. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  5970. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  5971. default: break;
  5972. 8002db2: e008 b.n 8002dc6 <SelectCurrentSensorGain+0x3a>
  5973. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  5974. 8002db4: 2307 movs r3, #7
  5975. 8002db6: 73fb strb r3, [r7, #15]
  5976. 8002db8: e006 b.n 8002dc8 <SelectCurrentSensorGain+0x3c>
  5977. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  5978. 8002dba: 2309 movs r3, #9
  5979. 8002dbc: 73fb strb r3, [r7, #15]
  5980. 8002dbe: e003 b.n 8002dc8 <SelectCurrentSensorGain+0x3c>
  5981. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  5982. 8002dc0: 230d movs r3, #13
  5983. 8002dc2: 73fb strb r3, [r7, #15]
  5984. 8002dc4: e000 b.n 8002dc8 <SelectCurrentSensorGain+0x3c>
  5985. default: break;
  5986. 8002dc6: bf00 nop
  5987. }
  5988. if (gpioOffset > 0) {
  5989. 8002dc8: 7bfb ldrb r3, [r7, #15]
  5990. 8002dca: 2b00 cmp r3, #0
  5991. 8002dcc: d023 beq.n 8002e16 <SelectCurrentSensorGain+0x8a>
  5992. uint16_t gain0Gpio = 1 << gpioOffset;
  5993. 8002dce: 7bfb ldrb r3, [r7, #15]
  5994. 8002dd0: 2201 movs r2, #1
  5995. 8002dd2: fa02 f303 lsl.w r3, r2, r3
  5996. 8002dd6: 81bb strh r3, [r7, #12]
  5997. uint16_t gain1Gpio = 1 << (gpioOffset + 1);
  5998. 8002dd8: 7bfb ldrb r3, [r7, #15]
  5999. 8002dda: 3301 adds r3, #1
  6000. 8002ddc: 2201 movs r2, #1
  6001. 8002dde: fa02 f303 lsl.w r3, r2, r3
  6002. 8002de2: 817b strh r3, [r7, #10]
  6003. uint16_t gpioState = ((uint16_t)gain) & 0x0001;
  6004. 8002de4: 79bb ldrb r3, [r7, #6]
  6005. 8002de6: b29b uxth r3, r3
  6006. 8002de8: f003 0301 and.w r3, r3, #1
  6007. 8002dec: 813b strh r3, [r7, #8]
  6008. HAL_GPIO_WritePin (GPIOE, gain0Gpio, gpioState);
  6009. 8002dee: 893b ldrh r3, [r7, #8]
  6010. 8002df0: b2da uxtb r2, r3
  6011. 8002df2: 89bb ldrh r3, [r7, #12]
  6012. 8002df4: 4619 mov r1, r3
  6013. 8002df6: 480a ldr r0, [pc, #40] @ (8002e20 <SelectCurrentSensorGain+0x94>)
  6014. 8002df8: f007 fec0 bl 800ab7c <HAL_GPIO_WritePin>
  6015. gpioState = (((uint16_t)gain) >> 1) & 0x0001;
  6016. 8002dfc: 79bb ldrb r3, [r7, #6]
  6017. 8002dfe: 085b lsrs r3, r3, #1
  6018. 8002e00: b2db uxtb r3, r3
  6019. 8002e02: f003 0301 and.w r3, r3, #1
  6020. 8002e06: 813b strh r3, [r7, #8]
  6021. HAL_GPIO_WritePin (GPIOE, gain1Gpio, gpioState);
  6022. 8002e08: 893b ldrh r3, [r7, #8]
  6023. 8002e0a: b2da uxtb r2, r3
  6024. 8002e0c: 897b ldrh r3, [r7, #10]
  6025. 8002e0e: 4619 mov r1, r3
  6026. 8002e10: 4803 ldr r0, [pc, #12] @ (8002e20 <SelectCurrentSensorGain+0x94>)
  6027. 8002e12: f007 feb3 bl 800ab7c <HAL_GPIO_WritePin>
  6028. }
  6029. }
  6030. 8002e16: bf00 nop
  6031. 8002e18: 3710 adds r7, #16
  6032. 8002e1a: 46bd mov sp, r7
  6033. 8002e1c: bd80 pop {r7, pc}
  6034. 8002e1e: bf00 nop
  6035. 8002e20: 58021000 .word 0x58021000
  6036. 08002e24 <motorControl>:
  6037. uint8_t
  6038. motorControl (TIM_HandleTypeDef* htim, TIM_OC_InitTypeDef* motorTimerConfigOC, uint8_t channel1, uint8_t channel2, osTimerId_t motorTimerHandle, int32_t motorPWMPulse, int32_t motorTimerPeriod, uint8_t switchLimiterUpStat, uint8_t switchLimiterDownStat) {
  6039. 8002e24: b580 push {r7, lr}
  6040. 8002e26: b088 sub sp, #32
  6041. 8002e28: af02 add r7, sp, #8
  6042. 8002e2a: 60f8 str r0, [r7, #12]
  6043. 8002e2c: 60b9 str r1, [r7, #8]
  6044. 8002e2e: 4611 mov r1, r2
  6045. 8002e30: 461a mov r2, r3
  6046. 8002e32: 460b mov r3, r1
  6047. 8002e34: 71fb strb r3, [r7, #7]
  6048. 8002e36: 4613 mov r3, r2
  6049. 8002e38: 71bb strb r3, [r7, #6]
  6050. uint32_t motorStatus = 0;
  6051. 8002e3a: 2300 movs r3, #0
  6052. 8002e3c: 617b str r3, [r7, #20]
  6053. MotorDriverState setMotorYState = HiZ;
  6054. 8002e3e: 2300 movs r3, #0
  6055. 8002e40: 74fb strb r3, [r7, #19]
  6056. HAL_TIM_PWM_Stop (htim, channel1);
  6057. 8002e42: 79fb ldrb r3, [r7, #7]
  6058. 8002e44: 4619 mov r1, r3
  6059. 8002e46: 68f8 ldr r0, [r7, #12]
  6060. 8002e48: f00c f842 bl 800eed0 <HAL_TIM_PWM_Stop>
  6061. HAL_TIM_PWM_Stop (htim, channel2);
  6062. 8002e4c: 79bb ldrb r3, [r7, #6]
  6063. 8002e4e: 4619 mov r1, r3
  6064. 8002e50: 68f8 ldr r0, [r7, #12]
  6065. 8002e52: f00c f83d bl 800eed0 <HAL_TIM_PWM_Stop>
  6066. if (motorTimerPeriod > 0) {
  6067. 8002e56: 6abb ldr r3, [r7, #40] @ 0x28
  6068. 8002e58: 2b00 cmp r3, #0
  6069. 8002e5a: f340 808c ble.w 8002f76 <motorControl+0x152>
  6070. if (motorPWMPulse > 0) {
  6071. 8002e5e: 6a7b ldr r3, [r7, #36] @ 0x24
  6072. 8002e60: 2b00 cmp r3, #0
  6073. 8002e62: dd2c ble.n 8002ebe <motorControl+0x9a>
  6074. // Forward
  6075. if (switchLimiterUpStat == 0) {
  6076. 8002e64: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6077. 8002e68: 2b00 cmp r3, #0
  6078. 8002e6a: d11d bne.n 8002ea8 <motorControl+0x84>
  6079. setMotorYState = Forward;
  6080. 8002e6c: 2301 movs r3, #1
  6081. 8002e6e: 74fb strb r3, [r7, #19]
  6082. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6083. 8002e70: 79f9 ldrb r1, [r7, #7]
  6084. 8002e72: 79b8 ldrb r0, [r7, #6]
  6085. 8002e74: 6a7b ldr r3, [r7, #36] @ 0x24
  6086. 8002e76: ea83 72e3 eor.w r2, r3, r3, asr #31
  6087. 8002e7a: eba2 72e3 sub.w r2, r2, r3, asr #31
  6088. 8002e7e: 4613 mov r3, r2
  6089. 8002e80: 009b lsls r3, r3, #2
  6090. 8002e82: 4413 add r3, r2
  6091. 8002e84: 005b lsls r3, r3, #1
  6092. 8002e86: 9301 str r3, [sp, #4]
  6093. 8002e88: 7cfb ldrb r3, [r7, #19]
  6094. 8002e8a: 9300 str r3, [sp, #0]
  6095. 8002e8c: 4603 mov r3, r0
  6096. 8002e8e: 460a mov r2, r1
  6097. 8002e90: 68b9 ldr r1, [r7, #8]
  6098. 8002e92: 68f8 ldr r0, [r7, #12]
  6099. 8002e94: f000 f8ff bl 8003096 <motorAction>
  6100. HAL_TIM_PWM_Start (htim, channel1);
  6101. 8002e98: 79fb ldrb r3, [r7, #7]
  6102. 8002e9a: 4619 mov r1, r3
  6103. 8002e9c: 68f8 ldr r0, [r7, #12]
  6104. 8002e9e: f00b ff09 bl 800ecb4 <HAL_TIM_PWM_Start>
  6105. motorStatus = 1;
  6106. 8002ea2: 2301 movs r3, #1
  6107. 8002ea4: 617b str r3, [r7, #20]
  6108. 8002ea6: e004 b.n 8002eb2 <motorControl+0x8e>
  6109. } else {
  6110. HAL_TIM_PWM_Stop (htim, channel1);
  6111. 8002ea8: 79fb ldrb r3, [r7, #7]
  6112. 8002eaa: 4619 mov r1, r3
  6113. 8002eac: 68f8 ldr r0, [r7, #12]
  6114. 8002eae: f00c f80f bl 800eed0 <HAL_TIM_PWM_Stop>
  6115. }
  6116. HAL_TIM_PWM_Stop (htim, channel2);
  6117. 8002eb2: 79bb ldrb r3, [r7, #6]
  6118. 8002eb4: 4619 mov r1, r3
  6119. 8002eb6: 68f8 ldr r0, [r7, #12]
  6120. 8002eb8: f00c f80a bl 800eed0 <HAL_TIM_PWM_Stop>
  6121. 8002ebc: e051 b.n 8002f62 <motorControl+0x13e>
  6122. } else if (motorPWMPulse < 0) {
  6123. 8002ebe: 6a7b ldr r3, [r7, #36] @ 0x24
  6124. 8002ec0: 2b00 cmp r3, #0
  6125. 8002ec2: da2c bge.n 8002f1e <motorControl+0xfa>
  6126. // Reverse
  6127. if (switchLimiterDownStat == 0) {
  6128. 8002ec4: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6129. 8002ec8: 2b00 cmp r3, #0
  6130. 8002eca: d11d bne.n 8002f08 <motorControl+0xe4>
  6131. setMotorYState = Reverse;
  6132. 8002ecc: 2302 movs r3, #2
  6133. 8002ece: 74fb strb r3, [r7, #19]
  6134. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6135. 8002ed0: 79f9 ldrb r1, [r7, #7]
  6136. 8002ed2: 79b8 ldrb r0, [r7, #6]
  6137. 8002ed4: 6a7b ldr r3, [r7, #36] @ 0x24
  6138. 8002ed6: ea83 72e3 eor.w r2, r3, r3, asr #31
  6139. 8002eda: eba2 72e3 sub.w r2, r2, r3, asr #31
  6140. 8002ede: 4613 mov r3, r2
  6141. 8002ee0: 009b lsls r3, r3, #2
  6142. 8002ee2: 4413 add r3, r2
  6143. 8002ee4: 005b lsls r3, r3, #1
  6144. 8002ee6: 9301 str r3, [sp, #4]
  6145. 8002ee8: 7cfb ldrb r3, [r7, #19]
  6146. 8002eea: 9300 str r3, [sp, #0]
  6147. 8002eec: 4603 mov r3, r0
  6148. 8002eee: 460a mov r2, r1
  6149. 8002ef0: 68b9 ldr r1, [r7, #8]
  6150. 8002ef2: 68f8 ldr r0, [r7, #12]
  6151. 8002ef4: f000 f8cf bl 8003096 <motorAction>
  6152. HAL_TIM_PWM_Start (htim, channel2);
  6153. 8002ef8: 79bb ldrb r3, [r7, #6]
  6154. 8002efa: 4619 mov r1, r3
  6155. 8002efc: 68f8 ldr r0, [r7, #12]
  6156. 8002efe: f00b fed9 bl 800ecb4 <HAL_TIM_PWM_Start>
  6157. motorStatus = 1;
  6158. 8002f02: 2301 movs r3, #1
  6159. 8002f04: 617b str r3, [r7, #20]
  6160. 8002f06: e004 b.n 8002f12 <motorControl+0xee>
  6161. } else {
  6162. HAL_TIM_PWM_Stop (htim, channel2);
  6163. 8002f08: 79bb ldrb r3, [r7, #6]
  6164. 8002f0a: 4619 mov r1, r3
  6165. 8002f0c: 68f8 ldr r0, [r7, #12]
  6166. 8002f0e: f00b ffdf bl 800eed0 <HAL_TIM_PWM_Stop>
  6167. }
  6168. HAL_TIM_PWM_Stop (htim, channel1);
  6169. 8002f12: 79fb ldrb r3, [r7, #7]
  6170. 8002f14: 4619 mov r1, r3
  6171. 8002f16: 68f8 ldr r0, [r7, #12]
  6172. 8002f18: f00b ffda bl 800eed0 <HAL_TIM_PWM_Stop>
  6173. 8002f1c: e021 b.n 8002f62 <motorControl+0x13e>
  6174. } else {
  6175. // Brake
  6176. setMotorYState = Brake;
  6177. 8002f1e: 2303 movs r3, #3
  6178. 8002f20: 74fb strb r3, [r7, #19]
  6179. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6180. 8002f22: 79f9 ldrb r1, [r7, #7]
  6181. 8002f24: 79b8 ldrb r0, [r7, #6]
  6182. 8002f26: 6a7b ldr r3, [r7, #36] @ 0x24
  6183. 8002f28: ea83 72e3 eor.w r2, r3, r3, asr #31
  6184. 8002f2c: eba2 72e3 sub.w r2, r2, r3, asr #31
  6185. 8002f30: 4613 mov r3, r2
  6186. 8002f32: 009b lsls r3, r3, #2
  6187. 8002f34: 4413 add r3, r2
  6188. 8002f36: 005b lsls r3, r3, #1
  6189. 8002f38: 9301 str r3, [sp, #4]
  6190. 8002f3a: 7cfb ldrb r3, [r7, #19]
  6191. 8002f3c: 9300 str r3, [sp, #0]
  6192. 8002f3e: 4603 mov r3, r0
  6193. 8002f40: 460a mov r2, r1
  6194. 8002f42: 68b9 ldr r1, [r7, #8]
  6195. 8002f44: 68f8 ldr r0, [r7, #12]
  6196. 8002f46: f000 f8a6 bl 8003096 <motorAction>
  6197. HAL_TIM_PWM_Start (htim, channel1);
  6198. 8002f4a: 79fb ldrb r3, [r7, #7]
  6199. 8002f4c: 4619 mov r1, r3
  6200. 8002f4e: 68f8 ldr r0, [r7, #12]
  6201. 8002f50: f00b feb0 bl 800ecb4 <HAL_TIM_PWM_Start>
  6202. HAL_TIM_PWM_Start (htim, channel2);
  6203. 8002f54: 79bb ldrb r3, [r7, #6]
  6204. 8002f56: 4619 mov r1, r3
  6205. 8002f58: 68f8 ldr r0, [r7, #12]
  6206. 8002f5a: f00b feab bl 800ecb4 <HAL_TIM_PWM_Start>
  6207. motorStatus = 0;
  6208. 8002f5e: 2300 movs r3, #0
  6209. 8002f60: 617b str r3, [r7, #20]
  6210. }
  6211. osTimerStart (motorTimerHandle, motorTimerPeriod * 1000);
  6212. 8002f62: 6abb ldr r3, [r7, #40] @ 0x28
  6213. 8002f64: f44f 727a mov.w r2, #1000 @ 0x3e8
  6214. 8002f68: fb02 f303 mul.w r3, r2, r3
  6215. 8002f6c: 4619 mov r1, r3
  6216. 8002f6e: 6a38 ldr r0, [r7, #32]
  6217. 8002f70: f010 fcf6 bl 8013960 <osTimerStart>
  6218. 8002f74: e089 b.n 800308a <motorControl+0x266>
  6219. } else if ((motorTimerPeriod == 0) && (motorPWMPulse == 0)) {
  6220. 8002f76: 6abb ldr r3, [r7, #40] @ 0x28
  6221. 8002f78: 2b00 cmp r3, #0
  6222. 8002f7a: d126 bne.n 8002fca <motorControl+0x1a6>
  6223. 8002f7c: 6a7b ldr r3, [r7, #36] @ 0x24
  6224. 8002f7e: 2b00 cmp r3, #0
  6225. 8002f80: d123 bne.n 8002fca <motorControl+0x1a6>
  6226. motorAction (htim, motorTimerConfigOC, channel1, channel2, HiZ, abs (motorPWMPulse) * 10);
  6227. 8002f82: 79f9 ldrb r1, [r7, #7]
  6228. 8002f84: 79b8 ldrb r0, [r7, #6]
  6229. 8002f86: 6a7b ldr r3, [r7, #36] @ 0x24
  6230. 8002f88: ea83 72e3 eor.w r2, r3, r3, asr #31
  6231. 8002f8c: eba2 72e3 sub.w r2, r2, r3, asr #31
  6232. 8002f90: 4613 mov r3, r2
  6233. 8002f92: 009b lsls r3, r3, #2
  6234. 8002f94: 4413 add r3, r2
  6235. 8002f96: 005b lsls r3, r3, #1
  6236. 8002f98: 9301 str r3, [sp, #4]
  6237. 8002f9a: 2300 movs r3, #0
  6238. 8002f9c: 9300 str r3, [sp, #0]
  6239. 8002f9e: 4603 mov r3, r0
  6240. 8002fa0: 460a mov r2, r1
  6241. 8002fa2: 68b9 ldr r1, [r7, #8]
  6242. 8002fa4: 68f8 ldr r0, [r7, #12]
  6243. 8002fa6: f000 f876 bl 8003096 <motorAction>
  6244. HAL_TIM_PWM_Stop (htim, channel1);
  6245. 8002faa: 79fb ldrb r3, [r7, #7]
  6246. 8002fac: 4619 mov r1, r3
  6247. 8002fae: 68f8 ldr r0, [r7, #12]
  6248. 8002fb0: f00b ff8e bl 800eed0 <HAL_TIM_PWM_Stop>
  6249. HAL_TIM_PWM_Stop (htim, channel2);
  6250. 8002fb4: 79bb ldrb r3, [r7, #6]
  6251. 8002fb6: 4619 mov r1, r3
  6252. 8002fb8: 68f8 ldr r0, [r7, #12]
  6253. 8002fba: f00b ff89 bl 800eed0 <HAL_TIM_PWM_Stop>
  6254. osTimerStop (motorTimerHandle);
  6255. 8002fbe: 6a38 ldr r0, [r7, #32]
  6256. 8002fc0: f010 fcfc bl 80139bc <osTimerStop>
  6257. motorStatus = 0;
  6258. 8002fc4: 2300 movs r3, #0
  6259. 8002fc6: 617b str r3, [r7, #20]
  6260. 8002fc8: e05f b.n 800308a <motorControl+0x266>
  6261. } else if (motorTimerPeriod == -1) {
  6262. 8002fca: 6abb ldr r3, [r7, #40] @ 0x28
  6263. 8002fcc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  6264. 8002fd0: d15b bne.n 800308a <motorControl+0x266>
  6265. if (motorPWMPulse > 0) {
  6266. 8002fd2: 6a7b ldr r3, [r7, #36] @ 0x24
  6267. 8002fd4: 2b00 cmp r3, #0
  6268. 8002fd6: dd2c ble.n 8003032 <motorControl+0x20e>
  6269. // Forward
  6270. if (switchLimiterUpStat == 0) {
  6271. 8002fd8: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6272. 8002fdc: 2b00 cmp r3, #0
  6273. 8002fde: d11d bne.n 800301c <motorControl+0x1f8>
  6274. setMotorYState = Forward;
  6275. 8002fe0: 2301 movs r3, #1
  6276. 8002fe2: 74fb strb r3, [r7, #19]
  6277. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6278. 8002fe4: 79f9 ldrb r1, [r7, #7]
  6279. 8002fe6: 79b8 ldrb r0, [r7, #6]
  6280. 8002fe8: 6a7b ldr r3, [r7, #36] @ 0x24
  6281. 8002fea: ea83 72e3 eor.w r2, r3, r3, asr #31
  6282. 8002fee: eba2 72e3 sub.w r2, r2, r3, asr #31
  6283. 8002ff2: 4613 mov r3, r2
  6284. 8002ff4: 009b lsls r3, r3, #2
  6285. 8002ff6: 4413 add r3, r2
  6286. 8002ff8: 005b lsls r3, r3, #1
  6287. 8002ffa: 9301 str r3, [sp, #4]
  6288. 8002ffc: 7cfb ldrb r3, [r7, #19]
  6289. 8002ffe: 9300 str r3, [sp, #0]
  6290. 8003000: 4603 mov r3, r0
  6291. 8003002: 460a mov r2, r1
  6292. 8003004: 68b9 ldr r1, [r7, #8]
  6293. 8003006: 68f8 ldr r0, [r7, #12]
  6294. 8003008: f000 f845 bl 8003096 <motorAction>
  6295. HAL_TIM_PWM_Start (htim, channel1);
  6296. 800300c: 79fb ldrb r3, [r7, #7]
  6297. 800300e: 4619 mov r1, r3
  6298. 8003010: 68f8 ldr r0, [r7, #12]
  6299. 8003012: f00b fe4f bl 800ecb4 <HAL_TIM_PWM_Start>
  6300. motorStatus = 1;
  6301. 8003016: 2301 movs r3, #1
  6302. 8003018: 617b str r3, [r7, #20]
  6303. 800301a: e004 b.n 8003026 <motorControl+0x202>
  6304. } else {
  6305. HAL_TIM_PWM_Stop (htim, channel1);
  6306. 800301c: 79fb ldrb r3, [r7, #7]
  6307. 800301e: 4619 mov r1, r3
  6308. 8003020: 68f8 ldr r0, [r7, #12]
  6309. 8003022: f00b ff55 bl 800eed0 <HAL_TIM_PWM_Stop>
  6310. }
  6311. HAL_TIM_PWM_Stop (htim, channel2);
  6312. 8003026: 79bb ldrb r3, [r7, #6]
  6313. 8003028: 4619 mov r1, r3
  6314. 800302a: 68f8 ldr r0, [r7, #12]
  6315. 800302c: f00b ff50 bl 800eed0 <HAL_TIM_PWM_Stop>
  6316. 8003030: e02b b.n 800308a <motorControl+0x266>
  6317. } else {
  6318. // Reverse
  6319. if (switchLimiterDownStat == 0) {
  6320. 8003032: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6321. 8003036: 2b00 cmp r3, #0
  6322. 8003038: d11d bne.n 8003076 <motorControl+0x252>
  6323. setMotorYState = Reverse;
  6324. 800303a: 2302 movs r3, #2
  6325. 800303c: 74fb strb r3, [r7, #19]
  6326. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6327. 800303e: 79f9 ldrb r1, [r7, #7]
  6328. 8003040: 79b8 ldrb r0, [r7, #6]
  6329. 8003042: 6a7b ldr r3, [r7, #36] @ 0x24
  6330. 8003044: ea83 72e3 eor.w r2, r3, r3, asr #31
  6331. 8003048: eba2 72e3 sub.w r2, r2, r3, asr #31
  6332. 800304c: 4613 mov r3, r2
  6333. 800304e: 009b lsls r3, r3, #2
  6334. 8003050: 4413 add r3, r2
  6335. 8003052: 005b lsls r3, r3, #1
  6336. 8003054: 9301 str r3, [sp, #4]
  6337. 8003056: 7cfb ldrb r3, [r7, #19]
  6338. 8003058: 9300 str r3, [sp, #0]
  6339. 800305a: 4603 mov r3, r0
  6340. 800305c: 460a mov r2, r1
  6341. 800305e: 68b9 ldr r1, [r7, #8]
  6342. 8003060: 68f8 ldr r0, [r7, #12]
  6343. 8003062: f000 f818 bl 8003096 <motorAction>
  6344. HAL_TIM_PWM_Start (htim, channel2);
  6345. 8003066: 79bb ldrb r3, [r7, #6]
  6346. 8003068: 4619 mov r1, r3
  6347. 800306a: 68f8 ldr r0, [r7, #12]
  6348. 800306c: f00b fe22 bl 800ecb4 <HAL_TIM_PWM_Start>
  6349. motorStatus = 1;
  6350. 8003070: 2301 movs r3, #1
  6351. 8003072: 617b str r3, [r7, #20]
  6352. 8003074: e004 b.n 8003080 <motorControl+0x25c>
  6353. } else {
  6354. HAL_TIM_PWM_Stop (htim, channel2);
  6355. 8003076: 79bb ldrb r3, [r7, #6]
  6356. 8003078: 4619 mov r1, r3
  6357. 800307a: 68f8 ldr r0, [r7, #12]
  6358. 800307c: f00b ff28 bl 800eed0 <HAL_TIM_PWM_Stop>
  6359. }
  6360. HAL_TIM_PWM_Stop (htim, channel1);
  6361. 8003080: 79fb ldrb r3, [r7, #7]
  6362. 8003082: 4619 mov r1, r3
  6363. 8003084: 68f8 ldr r0, [r7, #12]
  6364. 8003086: f00b ff23 bl 800eed0 <HAL_TIM_PWM_Stop>
  6365. }
  6366. }
  6367. return motorStatus;
  6368. 800308a: 697b ldr r3, [r7, #20]
  6369. 800308c: b2db uxtb r3, r3
  6370. }
  6371. 800308e: 4618 mov r0, r3
  6372. 8003090: 3718 adds r7, #24
  6373. 8003092: 46bd mov sp, r7
  6374. 8003094: bd80 pop {r7, pc}
  6375. 08003096 <motorAction>:
  6376. void motorAction (TIM_HandleTypeDef* tim, TIM_OC_InitTypeDef* timerConf, uint32_t channel1, uint32_t channel2, MotorDriverState setState, uint32_t pulse) {
  6377. 8003096: b580 push {r7, lr}
  6378. 8003098: b084 sub sp, #16
  6379. 800309a: af00 add r7, sp, #0
  6380. 800309c: 60f8 str r0, [r7, #12]
  6381. 800309e: 60b9 str r1, [r7, #8]
  6382. 80030a0: 607a str r2, [r7, #4]
  6383. 80030a2: 603b str r3, [r7, #0]
  6384. timerConf->Pulse = pulse;
  6385. 80030a4: 68bb ldr r3, [r7, #8]
  6386. 80030a6: 69fa ldr r2, [r7, #28]
  6387. 80030a8: 605a str r2, [r3, #4]
  6388. switch (setState) {
  6389. 80030aa: 7e3b ldrb r3, [r7, #24]
  6390. 80030ac: 2b02 cmp r3, #2
  6391. 80030ae: dc02 bgt.n 80030b6 <motorAction+0x20>
  6392. 80030b0: 2b00 cmp r3, #0
  6393. 80030b2: da03 bge.n 80030bc <motorAction+0x26>
  6394. 80030b4: e038 b.n 8003128 <motorAction+0x92>
  6395. 80030b6: 2b03 cmp r3, #3
  6396. 80030b8: d01b beq.n 80030f2 <motorAction+0x5c>
  6397. 80030ba: e035 b.n 8003128 <motorAction+0x92>
  6398. case Forward:
  6399. case Reverse:
  6400. case HiZ:
  6401. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6402. 80030bc: 68bb ldr r3, [r7, #8]
  6403. 80030be: 2200 movs r2, #0
  6404. 80030c0: 609a str r2, [r3, #8]
  6405. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6406. 80030c2: 687a ldr r2, [r7, #4]
  6407. 80030c4: 68b9 ldr r1, [r7, #8]
  6408. 80030c6: 68f8 ldr r0, [r7, #12]
  6409. 80030c8: f00c faee bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  6410. 80030cc: 4603 mov r3, r0
  6411. 80030ce: 2b00 cmp r3, #0
  6412. 80030d0: d001 beq.n 80030d6 <motorAction+0x40>
  6413. Error_Handler ();
  6414. 80030d2: f7fe feb3 bl 8001e3c <Error_Handler>
  6415. }
  6416. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6417. 80030d6: 68bb ldr r3, [r7, #8]
  6418. 80030d8: 2200 movs r2, #0
  6419. 80030da: 609a str r2, [r3, #8]
  6420. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6421. 80030dc: 683a ldr r2, [r7, #0]
  6422. 80030de: 68b9 ldr r1, [r7, #8]
  6423. 80030e0: 68f8 ldr r0, [r7, #12]
  6424. 80030e2: f00c fae1 bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  6425. 80030e6: 4603 mov r3, r0
  6426. 80030e8: 2b00 cmp r3, #0
  6427. 80030ea: d038 beq.n 800315e <motorAction+0xc8>
  6428. Error_Handler ();
  6429. 80030ec: f7fe fea6 bl 8001e3c <Error_Handler>
  6430. }
  6431. break;
  6432. 80030f0: e035 b.n 800315e <motorAction+0xc8>
  6433. case Brake:
  6434. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6435. 80030f2: 68bb ldr r3, [r7, #8]
  6436. 80030f4: 2202 movs r2, #2
  6437. 80030f6: 609a str r2, [r3, #8]
  6438. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6439. 80030f8: 687a ldr r2, [r7, #4]
  6440. 80030fa: 68b9 ldr r1, [r7, #8]
  6441. 80030fc: 68f8 ldr r0, [r7, #12]
  6442. 80030fe: f00c fad3 bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  6443. 8003102: 4603 mov r3, r0
  6444. 8003104: 2b00 cmp r3, #0
  6445. 8003106: d001 beq.n 800310c <motorAction+0x76>
  6446. Error_Handler ();
  6447. 8003108: f7fe fe98 bl 8001e3c <Error_Handler>
  6448. }
  6449. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6450. 800310c: 68bb ldr r3, [r7, #8]
  6451. 800310e: 2202 movs r2, #2
  6452. 8003110: 609a str r2, [r3, #8]
  6453. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6454. 8003112: 683a ldr r2, [r7, #0]
  6455. 8003114: 68b9 ldr r1, [r7, #8]
  6456. 8003116: 68f8 ldr r0, [r7, #12]
  6457. 8003118: f00c fac6 bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  6458. 800311c: 4603 mov r3, r0
  6459. 800311e: 2b00 cmp r3, #0
  6460. 8003120: d01f beq.n 8003162 <motorAction+0xcc>
  6461. Error_Handler ();
  6462. 8003122: f7fe fe8b bl 8001e3c <Error_Handler>
  6463. }
  6464. break;
  6465. 8003126: e01c b.n 8003162 <motorAction+0xcc>
  6466. default:
  6467. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6468. 8003128: 68bb ldr r3, [r7, #8]
  6469. 800312a: 2200 movs r2, #0
  6470. 800312c: 609a str r2, [r3, #8]
  6471. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6472. 800312e: 687a ldr r2, [r7, #4]
  6473. 8003130: 68b9 ldr r1, [r7, #8]
  6474. 8003132: 68f8 ldr r0, [r7, #12]
  6475. 8003134: f00c fab8 bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  6476. 8003138: 4603 mov r3, r0
  6477. 800313a: 2b00 cmp r3, #0
  6478. 800313c: d001 beq.n 8003142 <motorAction+0xac>
  6479. Error_Handler ();
  6480. 800313e: f7fe fe7d bl 8001e3c <Error_Handler>
  6481. }
  6482. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6483. 8003142: 68bb ldr r3, [r7, #8]
  6484. 8003144: 2200 movs r2, #0
  6485. 8003146: 609a str r2, [r3, #8]
  6486. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6487. 8003148: 683a ldr r2, [r7, #0]
  6488. 800314a: 68b9 ldr r1, [r7, #8]
  6489. 800314c: 68f8 ldr r0, [r7, #12]
  6490. 800314e: f00c faab bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  6491. 8003152: 4603 mov r3, r0
  6492. 8003154: 2b00 cmp r3, #0
  6493. 8003156: d006 beq.n 8003166 <motorAction+0xd0>
  6494. Error_Handler ();
  6495. 8003158: f7fe fe70 bl 8001e3c <Error_Handler>
  6496. }
  6497. break;
  6498. 800315c: e003 b.n 8003166 <motorAction+0xd0>
  6499. break;
  6500. 800315e: bf00 nop
  6501. 8003160: e002 b.n 8003168 <motorAction+0xd2>
  6502. break;
  6503. 8003162: bf00 nop
  6504. 8003164: e000 b.n 8003168 <motorAction+0xd2>
  6505. break;
  6506. 8003166: bf00 nop
  6507. }
  6508. }
  6509. 8003168: bf00 nop
  6510. 800316a: 3710 adds r7, #16
  6511. 800316c: 46bd mov sp, r7
  6512. 800316e: bd80 pop {r7, pc}
  6513. 08003170 <WriteDataToBuffer>:
  6514. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6515. }
  6516. *buffPos = newBuffPos;
  6517. }
  6518. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  6519. 8003170: b480 push {r7}
  6520. 8003172: b089 sub sp, #36 @ 0x24
  6521. 8003174: af00 add r7, sp, #0
  6522. 8003176: 60f8 str r0, [r7, #12]
  6523. 8003178: 60b9 str r1, [r7, #8]
  6524. 800317a: 607a str r2, [r7, #4]
  6525. 800317c: 70fb strb r3, [r7, #3]
  6526. uint32_t* uDataPtr = data;
  6527. 800317e: 687b ldr r3, [r7, #4]
  6528. 8003180: 61bb str r3, [r7, #24]
  6529. uint32_t uData = *uDataPtr;
  6530. 8003182: 69bb ldr r3, [r7, #24]
  6531. 8003184: 681b ldr r3, [r3, #0]
  6532. 8003186: 617b str r3, [r7, #20]
  6533. uint8_t i = 0;
  6534. 8003188: 2300 movs r3, #0
  6535. 800318a: 77fb strb r3, [r7, #31]
  6536. uint8_t newBuffPos = *buffPos;
  6537. 800318c: 68bb ldr r3, [r7, #8]
  6538. 800318e: 881b ldrh r3, [r3, #0]
  6539. 8003190: 77bb strb r3, [r7, #30]
  6540. for (i = 0; i < dataSize; i++) {
  6541. 8003192: 2300 movs r3, #0
  6542. 8003194: 77fb strb r3, [r7, #31]
  6543. 8003196: e00e b.n 80031b6 <WriteDataToBuffer+0x46>
  6544. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6545. 8003198: 7ffb ldrb r3, [r7, #31]
  6546. 800319a: 00db lsls r3, r3, #3
  6547. 800319c: 697a ldr r2, [r7, #20]
  6548. 800319e: 40da lsrs r2, r3
  6549. 80031a0: 7fbb ldrb r3, [r7, #30]
  6550. 80031a2: 1c59 adds r1, r3, #1
  6551. 80031a4: 77b9 strb r1, [r7, #30]
  6552. 80031a6: 4619 mov r1, r3
  6553. 80031a8: 68fb ldr r3, [r7, #12]
  6554. 80031aa: 440b add r3, r1
  6555. 80031ac: b2d2 uxtb r2, r2
  6556. 80031ae: 701a strb r2, [r3, #0]
  6557. for (i = 0; i < dataSize; i++) {
  6558. 80031b0: 7ffb ldrb r3, [r7, #31]
  6559. 80031b2: 3301 adds r3, #1
  6560. 80031b4: 77fb strb r3, [r7, #31]
  6561. 80031b6: 7ffa ldrb r2, [r7, #31]
  6562. 80031b8: 78fb ldrb r3, [r7, #3]
  6563. 80031ba: 429a cmp r2, r3
  6564. 80031bc: d3ec bcc.n 8003198 <WriteDataToBuffer+0x28>
  6565. }
  6566. *buffPos = newBuffPos;
  6567. 80031be: 7fbb ldrb r3, [r7, #30]
  6568. 80031c0: b29a uxth r2, r3
  6569. 80031c2: 68bb ldr r3, [r7, #8]
  6570. 80031c4: 801a strh r2, [r3, #0]
  6571. }
  6572. 80031c6: bf00 nop
  6573. 80031c8: 3724 adds r7, #36 @ 0x24
  6574. 80031ca: 46bd mov sp, r7
  6575. 80031cc: f85d 7b04 ldr.w r7, [sp], #4
  6576. 80031d0: 4770 bx lr
  6577. 080031d2 <ReadWordFromBufer>:
  6578. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  6579. *buffPos += sizeof(uint16_t);
  6580. }
  6581. void ReadWordFromBufer(uint8_t* buff, uint16_t* buffPos, uint32_t* data)
  6582. {
  6583. 80031d2: b480 push {r7}
  6584. 80031d4: b085 sub sp, #20
  6585. 80031d6: af00 add r7, sp, #0
  6586. 80031d8: 60f8 str r0, [r7, #12]
  6587. 80031da: 60b9 str r1, [r7, #8]
  6588. 80031dc: 607a str r2, [r7, #4]
  6589. *data = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  6590. 80031de: 68bb ldr r3, [r7, #8]
  6591. 80031e0: 881b ldrh r3, [r3, #0]
  6592. 80031e2: 3303 adds r3, #3
  6593. 80031e4: 68fa ldr r2, [r7, #12]
  6594. 80031e6: 4413 add r3, r2
  6595. 80031e8: 781b ldrb r3, [r3, #0]
  6596. 80031ea: 061a lsls r2, r3, #24
  6597. 80031ec: 68bb ldr r3, [r7, #8]
  6598. 80031ee: 881b ldrh r3, [r3, #0]
  6599. 80031f0: 3302 adds r3, #2
  6600. 80031f2: 68f9 ldr r1, [r7, #12]
  6601. 80031f4: 440b add r3, r1
  6602. 80031f6: 781b ldrb r3, [r3, #0]
  6603. 80031f8: 041b lsls r3, r3, #16
  6604. 80031fa: 431a orrs r2, r3
  6605. 80031fc: 68bb ldr r3, [r7, #8]
  6606. 80031fe: 881b ldrh r3, [r3, #0]
  6607. 8003200: 3301 adds r3, #1
  6608. 8003202: 68f9 ldr r1, [r7, #12]
  6609. 8003204: 440b add r3, r1
  6610. 8003206: 781b ldrb r3, [r3, #0]
  6611. 8003208: 021b lsls r3, r3, #8
  6612. 800320a: 4313 orrs r3, r2
  6613. 800320c: 68ba ldr r2, [r7, #8]
  6614. 800320e: 8812 ldrh r2, [r2, #0]
  6615. 8003210: 4611 mov r1, r2
  6616. 8003212: 68fa ldr r2, [r7, #12]
  6617. 8003214: 440a add r2, r1
  6618. 8003216: 7812 ldrb r2, [r2, #0]
  6619. 8003218: 4313 orrs r3, r2
  6620. 800321a: 461a mov r2, r3
  6621. 800321c: 687b ldr r3, [r7, #4]
  6622. 800321e: 601a str r2, [r3, #0]
  6623. *buffPos += sizeof(uint32_t);
  6624. 8003220: 68bb ldr r3, [r7, #8]
  6625. 8003222: 881b ldrh r3, [r3, #0]
  6626. 8003224: 3304 adds r3, #4
  6627. 8003226: b29a uxth r2, r3
  6628. 8003228: 68bb ldr r3, [r7, #8]
  6629. 800322a: 801a strh r2, [r3, #0]
  6630. }
  6631. 800322c: bf00 nop
  6632. 800322e: 3714 adds r7, #20
  6633. 8003230: 46bd mov sp, r7
  6634. 8003232: f85d 7b04 ldr.w r7, [sp], #4
  6635. 8003236: 4770 bx lr
  6636. 08003238 <PrepareRespFrame>:
  6637. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6638. return txBufferPos;
  6639. }
  6640. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  6641. 8003238: b580 push {r7, lr}
  6642. 800323a: b084 sub sp, #16
  6643. 800323c: af00 add r7, sp, #0
  6644. 800323e: 6078 str r0, [r7, #4]
  6645. 8003240: 4608 mov r0, r1
  6646. 8003242: 4611 mov r1, r2
  6647. 8003244: 461a mov r2, r3
  6648. 8003246: 4603 mov r3, r0
  6649. 8003248: 807b strh r3, [r7, #2]
  6650. 800324a: 460b mov r3, r1
  6651. 800324c: 707b strb r3, [r7, #1]
  6652. 800324e: 4613 mov r3, r2
  6653. 8003250: 703b strb r3, [r7, #0]
  6654. uint16_t crc = 0;
  6655. 8003252: 2300 movs r3, #0
  6656. 8003254: 81bb strh r3, [r7, #12]
  6657. uint16_t txBufferPos = 0;
  6658. 8003256: 2300 movs r3, #0
  6659. 8003258: 81fb strh r3, [r7, #14]
  6660. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  6661. 800325a: 787b ldrb r3, [r7, #1]
  6662. 800325c: b21a sxth r2, r3
  6663. 800325e: 4b43 ldr r3, [pc, #268] @ (800336c <PrepareRespFrame+0x134>)
  6664. 8003260: 4313 orrs r3, r2
  6665. 8003262: b21b sxth r3, r3
  6666. 8003264: 817b strh r3, [r7, #10]
  6667. memset (txBuffer, 0x00, dataLength);
  6668. 8003266: 8bbb ldrh r3, [r7, #28]
  6669. 8003268: 461a mov r2, r3
  6670. 800326a: 2100 movs r1, #0
  6671. 800326c: 6878 ldr r0, [r7, #4]
  6672. 800326e: f014 fca2 bl 8017bb6 <memset>
  6673. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  6674. 8003272: 89fb ldrh r3, [r7, #14]
  6675. 8003274: 1c5a adds r2, r3, #1
  6676. 8003276: 81fa strh r2, [r7, #14]
  6677. 8003278: 461a mov r2, r3
  6678. 800327a: 687b ldr r3, [r7, #4]
  6679. 800327c: 4413 add r3, r2
  6680. 800327e: 22aa movs r2, #170 @ 0xaa
  6681. 8003280: 701a strb r2, [r3, #0]
  6682. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  6683. 8003282: 89fb ldrh r3, [r7, #14]
  6684. 8003284: 1c5a adds r2, r3, #1
  6685. 8003286: 81fa strh r2, [r7, #14]
  6686. 8003288: 461a mov r2, r3
  6687. 800328a: 687b ldr r3, [r7, #4]
  6688. 800328c: 4413 add r3, r2
  6689. 800328e: 887a ldrh r2, [r7, #2]
  6690. 8003290: b2d2 uxtb r2, r2
  6691. 8003292: 701a strb r2, [r3, #0]
  6692. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  6693. 8003294: 887b ldrh r3, [r7, #2]
  6694. 8003296: 0a1b lsrs r3, r3, #8
  6695. 8003298: b29a uxth r2, r3
  6696. 800329a: 89fb ldrh r3, [r7, #14]
  6697. 800329c: 1c59 adds r1, r3, #1
  6698. 800329e: 81f9 strh r1, [r7, #14]
  6699. 80032a0: 4619 mov r1, r3
  6700. 80032a2: 687b ldr r3, [r7, #4]
  6701. 80032a4: 440b add r3, r1
  6702. 80032a6: b2d2 uxtb r2, r2
  6703. 80032a8: 701a strb r2, [r3, #0]
  6704. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  6705. 80032aa: 89fb ldrh r3, [r7, #14]
  6706. 80032ac: 1c5a adds r2, r3, #1
  6707. 80032ae: 81fa strh r2, [r7, #14]
  6708. 80032b0: 461a mov r2, r3
  6709. 80032b2: 687b ldr r3, [r7, #4]
  6710. 80032b4: 4413 add r3, r2
  6711. 80032b6: 897a ldrh r2, [r7, #10]
  6712. 80032b8: b2d2 uxtb r2, r2
  6713. 80032ba: 701a strb r2, [r3, #0]
  6714. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  6715. 80032bc: 897b ldrh r3, [r7, #10]
  6716. 80032be: 0a1b lsrs r3, r3, #8
  6717. 80032c0: b29a uxth r2, r3
  6718. 80032c2: 89fb ldrh r3, [r7, #14]
  6719. 80032c4: 1c59 adds r1, r3, #1
  6720. 80032c6: 81f9 strh r1, [r7, #14]
  6721. 80032c8: 4619 mov r1, r3
  6722. 80032ca: 687b ldr r3, [r7, #4]
  6723. 80032cc: 440b add r3, r1
  6724. 80032ce: b2d2 uxtb r2, r2
  6725. 80032d0: 701a strb r2, [r3, #0]
  6726. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  6727. 80032d2: 89fb ldrh r3, [r7, #14]
  6728. 80032d4: 1c5a adds r2, r3, #1
  6729. 80032d6: 81fa strh r2, [r7, #14]
  6730. 80032d8: 461a mov r2, r3
  6731. 80032da: 687b ldr r3, [r7, #4]
  6732. 80032dc: 4413 add r3, r2
  6733. 80032de: 8bba ldrh r2, [r7, #28]
  6734. 80032e0: b2d2 uxtb r2, r2
  6735. 80032e2: 701a strb r2, [r3, #0]
  6736. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  6737. 80032e4: 8bbb ldrh r3, [r7, #28]
  6738. 80032e6: 0a1b lsrs r3, r3, #8
  6739. 80032e8: b29a uxth r2, r3
  6740. 80032ea: 89fb ldrh r3, [r7, #14]
  6741. 80032ec: 1c59 adds r1, r3, #1
  6742. 80032ee: 81f9 strh r1, [r7, #14]
  6743. 80032f0: 4619 mov r1, r3
  6744. 80032f2: 687b ldr r3, [r7, #4]
  6745. 80032f4: 440b add r3, r1
  6746. 80032f6: b2d2 uxtb r2, r2
  6747. 80032f8: 701a strb r2, [r3, #0]
  6748. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  6749. 80032fa: 89fb ldrh r3, [r7, #14]
  6750. 80032fc: 1c5a adds r2, r3, #1
  6751. 80032fe: 81fa strh r2, [r7, #14]
  6752. 8003300: 461a mov r2, r3
  6753. 8003302: 687b ldr r3, [r7, #4]
  6754. 8003304: 4413 add r3, r2
  6755. 8003306: 783a ldrb r2, [r7, #0]
  6756. 8003308: 701a strb r2, [r3, #0]
  6757. if (dataLength > 0) {
  6758. 800330a: 8bbb ldrh r3, [r7, #28]
  6759. 800330c: 2b00 cmp r3, #0
  6760. 800330e: d00b beq.n 8003328 <PrepareRespFrame+0xf0>
  6761. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  6762. 8003310: 89fb ldrh r3, [r7, #14]
  6763. 8003312: 687a ldr r2, [r7, #4]
  6764. 8003314: 4413 add r3, r2
  6765. 8003316: 8bba ldrh r2, [r7, #28]
  6766. 8003318: 69b9 ldr r1, [r7, #24]
  6767. 800331a: 4618 mov r0, r3
  6768. 800331c: f014 fd1d bl 8017d5a <memcpy>
  6769. txBufferPos += dataLength;
  6770. 8003320: 89fa ldrh r2, [r7, #14]
  6771. 8003322: 8bbb ldrh r3, [r7, #28]
  6772. 8003324: 4413 add r3, r2
  6773. 8003326: 81fb strh r3, [r7, #14]
  6774. }
  6775. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  6776. 8003328: 89fb ldrh r3, [r7, #14]
  6777. 800332a: 461a mov r2, r3
  6778. 800332c: 6879 ldr r1, [r7, #4]
  6779. 800332e: 4810 ldr r0, [pc, #64] @ (8003370 <PrepareRespFrame+0x138>)
  6780. 8003330: f004 f82e bl 8007390 <HAL_CRC_Calculate>
  6781. 8003334: 4603 mov r3, r0
  6782. 8003336: 81bb strh r3, [r7, #12]
  6783. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  6784. 8003338: 89fb ldrh r3, [r7, #14]
  6785. 800333a: 1c5a adds r2, r3, #1
  6786. 800333c: 81fa strh r2, [r7, #14]
  6787. 800333e: 461a mov r2, r3
  6788. 8003340: 687b ldr r3, [r7, #4]
  6789. 8003342: 4413 add r3, r2
  6790. 8003344: 89ba ldrh r2, [r7, #12]
  6791. 8003346: b2d2 uxtb r2, r2
  6792. 8003348: 701a strb r2, [r3, #0]
  6793. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6794. 800334a: 89bb ldrh r3, [r7, #12]
  6795. 800334c: 0a1b lsrs r3, r3, #8
  6796. 800334e: b29a uxth r2, r3
  6797. 8003350: 89fb ldrh r3, [r7, #14]
  6798. 8003352: 1c59 adds r1, r3, #1
  6799. 8003354: 81f9 strh r1, [r7, #14]
  6800. 8003356: 4619 mov r1, r3
  6801. 8003358: 687b ldr r3, [r7, #4]
  6802. 800335a: 440b add r3, r1
  6803. 800335c: b2d2 uxtb r2, r2
  6804. 800335e: 701a strb r2, [r3, #0]
  6805. return txBufferPos;
  6806. 8003360: 89fb ldrh r3, [r7, #14]
  6807. }
  6808. 8003362: 4618 mov r0, r3
  6809. 8003364: 3710 adds r7, #16
  6810. 8003366: 46bd mov sp, r7
  6811. 8003368: bd80 pop {r7, pc}
  6812. 800336a: bf00 nop
  6813. 800336c: ffff8000 .word 0xffff8000
  6814. 8003370: 24000400 .word 0x24000400
  6815. 08003374 <HAL_MspInit>:
  6816. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  6817. /**
  6818. * Initializes the Global MSP.
  6819. */
  6820. void HAL_MspInit(void)
  6821. {
  6822. 8003374: b580 push {r7, lr}
  6823. 8003376: b086 sub sp, #24
  6824. 8003378: af00 add r7, sp, #0
  6825. /* USER CODE BEGIN MspInit 0 */
  6826. /* USER CODE END MspInit 0 */
  6827. PWREx_AVDTypeDef sConfigAVD = {0};
  6828. 800337a: f107 0310 add.w r3, r7, #16
  6829. 800337e: 2200 movs r2, #0
  6830. 8003380: 601a str r2, [r3, #0]
  6831. 8003382: 605a str r2, [r3, #4]
  6832. PWR_PVDTypeDef sConfigPVD = {0};
  6833. 8003384: f107 0308 add.w r3, r7, #8
  6834. 8003388: 2200 movs r2, #0
  6835. 800338a: 601a str r2, [r3, #0]
  6836. 800338c: 605a str r2, [r3, #4]
  6837. __HAL_RCC_SYSCFG_CLK_ENABLE();
  6838. 800338e: 4b26 ldr r3, [pc, #152] @ (8003428 <HAL_MspInit+0xb4>)
  6839. 8003390: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  6840. 8003394: 4a24 ldr r2, [pc, #144] @ (8003428 <HAL_MspInit+0xb4>)
  6841. 8003396: f043 0302 orr.w r3, r3, #2
  6842. 800339a: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  6843. 800339e: 4b22 ldr r3, [pc, #136] @ (8003428 <HAL_MspInit+0xb4>)
  6844. 80033a0: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  6845. 80033a4: f003 0302 and.w r3, r3, #2
  6846. 80033a8: 607b str r3, [r7, #4]
  6847. 80033aa: 687b ldr r3, [r7, #4]
  6848. /* System interrupt init*/
  6849. /* PendSV_IRQn interrupt configuration */
  6850. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  6851. 80033ac: 2200 movs r2, #0
  6852. 80033ae: 210f movs r1, #15
  6853. 80033b0: f06f 0001 mvn.w r0, #1
  6854. 80033b4: f003 fee8 bl 8007188 <HAL_NVIC_SetPriority>
  6855. /* Peripheral interrupt init */
  6856. /* RCC_IRQn interrupt configuration */
  6857. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  6858. 80033b8: 2200 movs r2, #0
  6859. 80033ba: 2105 movs r1, #5
  6860. 80033bc: 2005 movs r0, #5
  6861. 80033be: f003 fee3 bl 8007188 <HAL_NVIC_SetPriority>
  6862. HAL_NVIC_EnableIRQ(RCC_IRQn);
  6863. 80033c2: 2005 movs r0, #5
  6864. 80033c4: f003 fefa bl 80071bc <HAL_NVIC_EnableIRQ>
  6865. /** AVD Configuration
  6866. */
  6867. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  6868. 80033c8: f44f 23c0 mov.w r3, #393216 @ 0x60000
  6869. 80033cc: 613b str r3, [r7, #16]
  6870. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  6871. 80033ce: 2300 movs r3, #0
  6872. 80033d0: 617b str r3, [r7, #20]
  6873. HAL_PWREx_ConfigAVD(&sConfigAVD);
  6874. 80033d2: f107 0310 add.w r3, r7, #16
  6875. 80033d6: 4618 mov r0, r3
  6876. 80033d8: f007 fce2 bl 800ada0 <HAL_PWREx_ConfigAVD>
  6877. /** Enable the AVD Output
  6878. */
  6879. HAL_PWREx_EnableAVD();
  6880. 80033dc: f007 fd56 bl 800ae8c <HAL_PWREx_EnableAVD>
  6881. /** PVD Configuration
  6882. */
  6883. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  6884. 80033e0: 23c0 movs r3, #192 @ 0xc0
  6885. 80033e2: 60bb str r3, [r7, #8]
  6886. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  6887. 80033e4: 2300 movs r3, #0
  6888. 80033e6: 60fb str r3, [r7, #12]
  6889. HAL_PWR_ConfigPVD(&sConfigPVD);
  6890. 80033e8: f107 0308 add.w r3, r7, #8
  6891. 80033ec: 4618 mov r0, r3
  6892. 80033ee: f007 fc13 bl 800ac18 <HAL_PWR_ConfigPVD>
  6893. /** Enable the PVD Output
  6894. */
  6895. HAL_PWR_EnablePVD();
  6896. 80033f2: f007 fc8b bl 800ad0c <HAL_PWR_EnablePVD>
  6897. /** Enable the VREF clock
  6898. */
  6899. __HAL_RCC_VREF_CLK_ENABLE();
  6900. 80033f6: 4b0c ldr r3, [pc, #48] @ (8003428 <HAL_MspInit+0xb4>)
  6901. 80033f8: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  6902. 80033fc: 4a0a ldr r2, [pc, #40] @ (8003428 <HAL_MspInit+0xb4>)
  6903. 80033fe: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  6904. 8003402: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  6905. 8003406: 4b08 ldr r3, [pc, #32] @ (8003428 <HAL_MspInit+0xb4>)
  6906. 8003408: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  6907. 800340c: f403 4300 and.w r3, r3, #32768 @ 0x8000
  6908. 8003410: 603b str r3, [r7, #0]
  6909. 8003412: 683b ldr r3, [r7, #0]
  6910. /** Disable the Internal Voltage Reference buffer
  6911. */
  6912. HAL_SYSCFG_DisableVREFBUF();
  6913. 8003414: f002 f83e bl 8005494 <HAL_SYSCFG_DisableVREFBUF>
  6914. /** Configure the internal voltage reference buffer high impedance mode
  6915. */
  6916. HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE);
  6917. 8003418: 2002 movs r0, #2
  6918. 800341a: f002 f827 bl 800546c <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>
  6919. /* USER CODE BEGIN MspInit 1 */
  6920. /* USER CODE END MspInit 1 */
  6921. }
  6922. 800341e: bf00 nop
  6923. 8003420: 3718 adds r7, #24
  6924. 8003422: 46bd mov sp, r7
  6925. 8003424: bd80 pop {r7, pc}
  6926. 8003426: bf00 nop
  6927. 8003428: 58024400 .word 0x58024400
  6928. 0800342c <HAL_ADC_MspInit>:
  6929. * This function configures the hardware resources used in this example
  6930. * @param hadc: ADC handle pointer
  6931. * @retval None
  6932. */
  6933. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  6934. {
  6935. 800342c: b580 push {r7, lr}
  6936. 800342e: b092 sub sp, #72 @ 0x48
  6937. 8003430: af00 add r7, sp, #0
  6938. 8003432: 6078 str r0, [r7, #4]
  6939. GPIO_InitTypeDef GPIO_InitStruct = {0};
  6940. 8003434: f107 0334 add.w r3, r7, #52 @ 0x34
  6941. 8003438: 2200 movs r2, #0
  6942. 800343a: 601a str r2, [r3, #0]
  6943. 800343c: 605a str r2, [r3, #4]
  6944. 800343e: 609a str r2, [r3, #8]
  6945. 8003440: 60da str r2, [r3, #12]
  6946. 8003442: 611a str r2, [r3, #16]
  6947. if(hadc->Instance==ADC1)
  6948. 8003444: 687b ldr r3, [r7, #4]
  6949. 8003446: 681b ldr r3, [r3, #0]
  6950. 8003448: 4a9d ldr r2, [pc, #628] @ (80036c0 <HAL_ADC_MspInit+0x294>)
  6951. 800344a: 4293 cmp r3, r2
  6952. 800344c: f040 8099 bne.w 8003582 <HAL_ADC_MspInit+0x156>
  6953. {
  6954. /* USER CODE BEGIN ADC1_MspInit 0 */
  6955. /* USER CODE END ADC1_MspInit 0 */
  6956. /* Peripheral clock enable */
  6957. HAL_RCC_ADC12_CLK_ENABLED++;
  6958. 8003450: 4b9c ldr r3, [pc, #624] @ (80036c4 <HAL_ADC_MspInit+0x298>)
  6959. 8003452: 681b ldr r3, [r3, #0]
  6960. 8003454: 3301 adds r3, #1
  6961. 8003456: 4a9b ldr r2, [pc, #620] @ (80036c4 <HAL_ADC_MspInit+0x298>)
  6962. 8003458: 6013 str r3, [r2, #0]
  6963. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  6964. 800345a: 4b9a ldr r3, [pc, #616] @ (80036c4 <HAL_ADC_MspInit+0x298>)
  6965. 800345c: 681b ldr r3, [r3, #0]
  6966. 800345e: 2b01 cmp r3, #1
  6967. 8003460: d10e bne.n 8003480 <HAL_ADC_MspInit+0x54>
  6968. __HAL_RCC_ADC12_CLK_ENABLE();
  6969. 8003462: 4b99 ldr r3, [pc, #612] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  6970. 8003464: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  6971. 8003468: 4a97 ldr r2, [pc, #604] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  6972. 800346a: f043 0320 orr.w r3, r3, #32
  6973. 800346e: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  6974. 8003472: 4b95 ldr r3, [pc, #596] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  6975. 8003474: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  6976. 8003478: f003 0320 and.w r3, r3, #32
  6977. 800347c: 633b str r3, [r7, #48] @ 0x30
  6978. 800347e: 6b3b ldr r3, [r7, #48] @ 0x30
  6979. }
  6980. __HAL_RCC_GPIOA_CLK_ENABLE();
  6981. 8003480: 4b91 ldr r3, [pc, #580] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  6982. 8003482: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  6983. 8003486: 4a90 ldr r2, [pc, #576] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  6984. 8003488: f043 0301 orr.w r3, r3, #1
  6985. 800348c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  6986. 8003490: 4b8d ldr r3, [pc, #564] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  6987. 8003492: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  6988. 8003496: f003 0301 and.w r3, r3, #1
  6989. 800349a: 62fb str r3, [r7, #44] @ 0x2c
  6990. 800349c: 6afb ldr r3, [r7, #44] @ 0x2c
  6991. __HAL_RCC_GPIOC_CLK_ENABLE();
  6992. 800349e: 4b8a ldr r3, [pc, #552] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  6993. 80034a0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  6994. 80034a4: 4a88 ldr r2, [pc, #544] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  6995. 80034a6: f043 0304 orr.w r3, r3, #4
  6996. 80034aa: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  6997. 80034ae: 4b86 ldr r3, [pc, #536] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  6998. 80034b0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  6999. 80034b4: f003 0304 and.w r3, r3, #4
  7000. 80034b8: 62bb str r3, [r7, #40] @ 0x28
  7001. 80034ba: 6abb ldr r3, [r7, #40] @ 0x28
  7002. __HAL_RCC_GPIOB_CLK_ENABLE();
  7003. 80034bc: 4b82 ldr r3, [pc, #520] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7004. 80034be: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7005. 80034c2: 4a81 ldr r2, [pc, #516] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7006. 80034c4: f043 0302 orr.w r3, r3, #2
  7007. 80034c8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7008. 80034cc: 4b7e ldr r3, [pc, #504] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7009. 80034ce: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7010. 80034d2: f003 0302 and.w r3, r3, #2
  7011. 80034d6: 627b str r3, [r7, #36] @ 0x24
  7012. 80034d8: 6a7b ldr r3, [r7, #36] @ 0x24
  7013. PA3 ------> ADC1_INP15
  7014. PA7 ------> ADC1_INP7
  7015. PC5 ------> ADC1_INP8
  7016. PB0 ------> ADC1_INP9
  7017. */
  7018. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  7019. 80034da: 238f movs r3, #143 @ 0x8f
  7020. 80034dc: 637b str r3, [r7, #52] @ 0x34
  7021. |GPIO_PIN_7;
  7022. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7023. 80034de: 2303 movs r3, #3
  7024. 80034e0: 63bb str r3, [r7, #56] @ 0x38
  7025. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7026. 80034e2: 2300 movs r3, #0
  7027. 80034e4: 63fb str r3, [r7, #60] @ 0x3c
  7028. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7029. 80034e6: f107 0334 add.w r3, r7, #52 @ 0x34
  7030. 80034ea: 4619 mov r1, r3
  7031. 80034ec: 4877 ldr r0, [pc, #476] @ (80036cc <HAL_ADC_MspInit+0x2a0>)
  7032. 80034ee: f007 f97d bl 800a7ec <HAL_GPIO_Init>
  7033. GPIO_InitStruct.Pin = GPIO_PIN_5;
  7034. 80034f2: 2320 movs r3, #32
  7035. 80034f4: 637b str r3, [r7, #52] @ 0x34
  7036. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7037. 80034f6: 2303 movs r3, #3
  7038. 80034f8: 63bb str r3, [r7, #56] @ 0x38
  7039. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7040. 80034fa: 2300 movs r3, #0
  7041. 80034fc: 63fb str r3, [r7, #60] @ 0x3c
  7042. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7043. 80034fe: f107 0334 add.w r3, r7, #52 @ 0x34
  7044. 8003502: 4619 mov r1, r3
  7045. 8003504: 4872 ldr r0, [pc, #456] @ (80036d0 <HAL_ADC_MspInit+0x2a4>)
  7046. 8003506: f007 f971 bl 800a7ec <HAL_GPIO_Init>
  7047. GPIO_InitStruct.Pin = GPIO_PIN_0;
  7048. 800350a: 2301 movs r3, #1
  7049. 800350c: 637b str r3, [r7, #52] @ 0x34
  7050. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7051. 800350e: 2303 movs r3, #3
  7052. 8003510: 63bb str r3, [r7, #56] @ 0x38
  7053. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7054. 8003512: 2300 movs r3, #0
  7055. 8003514: 63fb str r3, [r7, #60] @ 0x3c
  7056. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7057. 8003516: f107 0334 add.w r3, r7, #52 @ 0x34
  7058. 800351a: 4619 mov r1, r3
  7059. 800351c: 486d ldr r0, [pc, #436] @ (80036d4 <HAL_ADC_MspInit+0x2a8>)
  7060. 800351e: f007 f965 bl 800a7ec <HAL_GPIO_Init>
  7061. /* ADC1 DMA Init */
  7062. /* ADC1 Init */
  7063. hdma_adc1.Instance = DMA1_Stream0;
  7064. 8003522: 4b6d ldr r3, [pc, #436] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7065. 8003524: 4a6d ldr r2, [pc, #436] @ (80036dc <HAL_ADC_MspInit+0x2b0>)
  7066. 8003526: 601a str r2, [r3, #0]
  7067. hdma_adc1.Init.Request = DMA_REQUEST_ADC1;
  7068. 8003528: 4b6b ldr r3, [pc, #428] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7069. 800352a: 2209 movs r2, #9
  7070. 800352c: 605a str r2, [r3, #4]
  7071. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7072. 800352e: 4b6a ldr r3, [pc, #424] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7073. 8003530: 2200 movs r2, #0
  7074. 8003532: 609a str r2, [r3, #8]
  7075. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  7076. 8003534: 4b68 ldr r3, [pc, #416] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7077. 8003536: 2200 movs r2, #0
  7078. 8003538: 60da str r2, [r3, #12]
  7079. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  7080. 800353a: 4b67 ldr r3, [pc, #412] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7081. 800353c: f44f 6280 mov.w r2, #1024 @ 0x400
  7082. 8003540: 611a str r2, [r3, #16]
  7083. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7084. 8003542: 4b65 ldr r3, [pc, #404] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7085. 8003544: f44f 6200 mov.w r2, #2048 @ 0x800
  7086. 8003548: 615a str r2, [r3, #20]
  7087. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7088. 800354a: 4b63 ldr r3, [pc, #396] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7089. 800354c: f44f 5200 mov.w r2, #8192 @ 0x2000
  7090. 8003550: 619a str r2, [r3, #24]
  7091. hdma_adc1.Init.Mode = DMA_NORMAL;
  7092. 8003552: 4b61 ldr r3, [pc, #388] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7093. 8003554: 2200 movs r2, #0
  7094. 8003556: 61da str r2, [r3, #28]
  7095. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  7096. 8003558: 4b5f ldr r3, [pc, #380] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7097. 800355a: 2200 movs r2, #0
  7098. 800355c: 621a str r2, [r3, #32]
  7099. hdma_adc1.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7100. 800355e: 4b5e ldr r3, [pc, #376] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7101. 8003560: 2200 movs r2, #0
  7102. 8003562: 625a str r2, [r3, #36] @ 0x24
  7103. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  7104. 8003564: 485c ldr r0, [pc, #368] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7105. 8003566: f004 fb05 bl 8007b74 <HAL_DMA_Init>
  7106. 800356a: 4603 mov r3, r0
  7107. 800356c: 2b00 cmp r3, #0
  7108. 800356e: d001 beq.n 8003574 <HAL_ADC_MspInit+0x148>
  7109. {
  7110. Error_Handler();
  7111. 8003570: f7fe fc64 bl 8001e3c <Error_Handler>
  7112. }
  7113. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  7114. 8003574: 687b ldr r3, [r7, #4]
  7115. 8003576: 4a58 ldr r2, [pc, #352] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7116. 8003578: 64da str r2, [r3, #76] @ 0x4c
  7117. 800357a: 4a57 ldr r2, [pc, #348] @ (80036d8 <HAL_ADC_MspInit+0x2ac>)
  7118. 800357c: 687b ldr r3, [r7, #4]
  7119. 800357e: 6393 str r3, [r2, #56] @ 0x38
  7120. /* USER CODE BEGIN ADC3_MspInit 1 */
  7121. /* USER CODE END ADC3_MspInit 1 */
  7122. }
  7123. }
  7124. 8003580: e11e b.n 80037c0 <HAL_ADC_MspInit+0x394>
  7125. else if(hadc->Instance==ADC2)
  7126. 8003582: 687b ldr r3, [r7, #4]
  7127. 8003584: 681b ldr r3, [r3, #0]
  7128. 8003586: 4a56 ldr r2, [pc, #344] @ (80036e0 <HAL_ADC_MspInit+0x2b4>)
  7129. 8003588: 4293 cmp r3, r2
  7130. 800358a: f040 80af bne.w 80036ec <HAL_ADC_MspInit+0x2c0>
  7131. HAL_RCC_ADC12_CLK_ENABLED++;
  7132. 800358e: 4b4d ldr r3, [pc, #308] @ (80036c4 <HAL_ADC_MspInit+0x298>)
  7133. 8003590: 681b ldr r3, [r3, #0]
  7134. 8003592: 3301 adds r3, #1
  7135. 8003594: 4a4b ldr r2, [pc, #300] @ (80036c4 <HAL_ADC_MspInit+0x298>)
  7136. 8003596: 6013 str r3, [r2, #0]
  7137. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  7138. 8003598: 4b4a ldr r3, [pc, #296] @ (80036c4 <HAL_ADC_MspInit+0x298>)
  7139. 800359a: 681b ldr r3, [r3, #0]
  7140. 800359c: 2b01 cmp r3, #1
  7141. 800359e: d10e bne.n 80035be <HAL_ADC_MspInit+0x192>
  7142. __HAL_RCC_ADC12_CLK_ENABLE();
  7143. 80035a0: 4b49 ldr r3, [pc, #292] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7144. 80035a2: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7145. 80035a6: 4a48 ldr r2, [pc, #288] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7146. 80035a8: f043 0320 orr.w r3, r3, #32
  7147. 80035ac: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  7148. 80035b0: 4b45 ldr r3, [pc, #276] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7149. 80035b2: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7150. 80035b6: f003 0320 and.w r3, r3, #32
  7151. 80035ba: 623b str r3, [r7, #32]
  7152. 80035bc: 6a3b ldr r3, [r7, #32]
  7153. __HAL_RCC_GPIOA_CLK_ENABLE();
  7154. 80035be: 4b42 ldr r3, [pc, #264] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7155. 80035c0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7156. 80035c4: 4a40 ldr r2, [pc, #256] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7157. 80035c6: f043 0301 orr.w r3, r3, #1
  7158. 80035ca: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7159. 80035ce: 4b3e ldr r3, [pc, #248] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7160. 80035d0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7161. 80035d4: f003 0301 and.w r3, r3, #1
  7162. 80035d8: 61fb str r3, [r7, #28]
  7163. 80035da: 69fb ldr r3, [r7, #28]
  7164. __HAL_RCC_GPIOC_CLK_ENABLE();
  7165. 80035dc: 4b3a ldr r3, [pc, #232] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7166. 80035de: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7167. 80035e2: 4a39 ldr r2, [pc, #228] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7168. 80035e4: f043 0304 orr.w r3, r3, #4
  7169. 80035e8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7170. 80035ec: 4b36 ldr r3, [pc, #216] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7171. 80035ee: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7172. 80035f2: f003 0304 and.w r3, r3, #4
  7173. 80035f6: 61bb str r3, [r7, #24]
  7174. 80035f8: 69bb ldr r3, [r7, #24]
  7175. __HAL_RCC_GPIOB_CLK_ENABLE();
  7176. 80035fa: 4b33 ldr r3, [pc, #204] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7177. 80035fc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7178. 8003600: 4a31 ldr r2, [pc, #196] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7179. 8003602: f043 0302 orr.w r3, r3, #2
  7180. 8003606: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7181. 800360a: 4b2f ldr r3, [pc, #188] @ (80036c8 <HAL_ADC_MspInit+0x29c>)
  7182. 800360c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7183. 8003610: f003 0302 and.w r3, r3, #2
  7184. 8003614: 617b str r3, [r7, #20]
  7185. 8003616: 697b ldr r3, [r7, #20]
  7186. GPIO_InitStruct.Pin = GPIO_PIN_6;
  7187. 8003618: 2340 movs r3, #64 @ 0x40
  7188. 800361a: 637b str r3, [r7, #52] @ 0x34
  7189. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7190. 800361c: 2303 movs r3, #3
  7191. 800361e: 63bb str r3, [r7, #56] @ 0x38
  7192. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7193. 8003620: 2300 movs r3, #0
  7194. 8003622: 63fb str r3, [r7, #60] @ 0x3c
  7195. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7196. 8003624: f107 0334 add.w r3, r7, #52 @ 0x34
  7197. 8003628: 4619 mov r1, r3
  7198. 800362a: 4828 ldr r0, [pc, #160] @ (80036cc <HAL_ADC_MspInit+0x2a0>)
  7199. 800362c: f007 f8de bl 800a7ec <HAL_GPIO_Init>
  7200. GPIO_InitStruct.Pin = GPIO_PIN_4;
  7201. 8003630: 2310 movs r3, #16
  7202. 8003632: 637b str r3, [r7, #52] @ 0x34
  7203. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7204. 8003634: 2303 movs r3, #3
  7205. 8003636: 63bb str r3, [r7, #56] @ 0x38
  7206. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7207. 8003638: 2300 movs r3, #0
  7208. 800363a: 63fb str r3, [r7, #60] @ 0x3c
  7209. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7210. 800363c: f107 0334 add.w r3, r7, #52 @ 0x34
  7211. 8003640: 4619 mov r1, r3
  7212. 8003642: 4823 ldr r0, [pc, #140] @ (80036d0 <HAL_ADC_MspInit+0x2a4>)
  7213. 8003644: f007 f8d2 bl 800a7ec <HAL_GPIO_Init>
  7214. GPIO_InitStruct.Pin = GPIO_PIN_1;
  7215. 8003648: 2302 movs r3, #2
  7216. 800364a: 637b str r3, [r7, #52] @ 0x34
  7217. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7218. 800364c: 2303 movs r3, #3
  7219. 800364e: 63bb str r3, [r7, #56] @ 0x38
  7220. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7221. 8003650: 2300 movs r3, #0
  7222. 8003652: 63fb str r3, [r7, #60] @ 0x3c
  7223. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7224. 8003654: f107 0334 add.w r3, r7, #52 @ 0x34
  7225. 8003658: 4619 mov r1, r3
  7226. 800365a: 481e ldr r0, [pc, #120] @ (80036d4 <HAL_ADC_MspInit+0x2a8>)
  7227. 800365c: f007 f8c6 bl 800a7ec <HAL_GPIO_Init>
  7228. hdma_adc2.Instance = DMA1_Stream1;
  7229. 8003660: 4b20 ldr r3, [pc, #128] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7230. 8003662: 4a21 ldr r2, [pc, #132] @ (80036e8 <HAL_ADC_MspInit+0x2bc>)
  7231. 8003664: 601a str r2, [r3, #0]
  7232. hdma_adc2.Init.Request = DMA_REQUEST_ADC2;
  7233. 8003666: 4b1f ldr r3, [pc, #124] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7234. 8003668: 220a movs r2, #10
  7235. 800366a: 605a str r2, [r3, #4]
  7236. hdma_adc2.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7237. 800366c: 4b1d ldr r3, [pc, #116] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7238. 800366e: 2200 movs r2, #0
  7239. 8003670: 609a str r2, [r3, #8]
  7240. hdma_adc2.Init.PeriphInc = DMA_PINC_DISABLE;
  7241. 8003672: 4b1c ldr r3, [pc, #112] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7242. 8003674: 2200 movs r2, #0
  7243. 8003676: 60da str r2, [r3, #12]
  7244. hdma_adc2.Init.MemInc = DMA_MINC_ENABLE;
  7245. 8003678: 4b1a ldr r3, [pc, #104] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7246. 800367a: f44f 6280 mov.w r2, #1024 @ 0x400
  7247. 800367e: 611a str r2, [r3, #16]
  7248. hdma_adc2.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7249. 8003680: 4b18 ldr r3, [pc, #96] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7250. 8003682: f44f 6200 mov.w r2, #2048 @ 0x800
  7251. 8003686: 615a str r2, [r3, #20]
  7252. hdma_adc2.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7253. 8003688: 4b16 ldr r3, [pc, #88] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7254. 800368a: f44f 5200 mov.w r2, #8192 @ 0x2000
  7255. 800368e: 619a str r2, [r3, #24]
  7256. hdma_adc2.Init.Mode = DMA_NORMAL;
  7257. 8003690: 4b14 ldr r3, [pc, #80] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7258. 8003692: 2200 movs r2, #0
  7259. 8003694: 61da str r2, [r3, #28]
  7260. hdma_adc2.Init.Priority = DMA_PRIORITY_LOW;
  7261. 8003696: 4b13 ldr r3, [pc, #76] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7262. 8003698: 2200 movs r2, #0
  7263. 800369a: 621a str r2, [r3, #32]
  7264. hdma_adc2.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7265. 800369c: 4b11 ldr r3, [pc, #68] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7266. 800369e: 2200 movs r2, #0
  7267. 80036a0: 625a str r2, [r3, #36] @ 0x24
  7268. if (HAL_DMA_Init(&hdma_adc2) != HAL_OK)
  7269. 80036a2: 4810 ldr r0, [pc, #64] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7270. 80036a4: f004 fa66 bl 8007b74 <HAL_DMA_Init>
  7271. 80036a8: 4603 mov r3, r0
  7272. 80036aa: 2b00 cmp r3, #0
  7273. 80036ac: d001 beq.n 80036b2 <HAL_ADC_MspInit+0x286>
  7274. Error_Handler();
  7275. 80036ae: f7fe fbc5 bl 8001e3c <Error_Handler>
  7276. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc2);
  7277. 80036b2: 687b ldr r3, [r7, #4]
  7278. 80036b4: 4a0b ldr r2, [pc, #44] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7279. 80036b6: 64da str r2, [r3, #76] @ 0x4c
  7280. 80036b8: 4a0a ldr r2, [pc, #40] @ (80036e4 <HAL_ADC_MspInit+0x2b8>)
  7281. 80036ba: 687b ldr r3, [r7, #4]
  7282. 80036bc: 6393 str r3, [r2, #56] @ 0x38
  7283. }
  7284. 80036be: e07f b.n 80037c0 <HAL_ADC_MspInit+0x394>
  7285. 80036c0: 40022000 .word 0x40022000
  7286. 80036c4: 24000860 .word 0x24000860
  7287. 80036c8: 58024400 .word 0x58024400
  7288. 80036cc: 58020000 .word 0x58020000
  7289. 80036d0: 58020800 .word 0x58020800
  7290. 80036d4: 58020400 .word 0x58020400
  7291. 80036d8: 2400026c .word 0x2400026c
  7292. 80036dc: 40020010 .word 0x40020010
  7293. 80036e0: 40022100 .word 0x40022100
  7294. 80036e4: 240002e4 .word 0x240002e4
  7295. 80036e8: 40020028 .word 0x40020028
  7296. else if(hadc->Instance==ADC3)
  7297. 80036ec: 687b ldr r3, [r7, #4]
  7298. 80036ee: 681b ldr r3, [r3, #0]
  7299. 80036f0: 4a35 ldr r2, [pc, #212] @ (80037c8 <HAL_ADC_MspInit+0x39c>)
  7300. 80036f2: 4293 cmp r3, r2
  7301. 80036f4: d164 bne.n 80037c0 <HAL_ADC_MspInit+0x394>
  7302. __HAL_RCC_ADC3_CLK_ENABLE();
  7303. 80036f6: 4b35 ldr r3, [pc, #212] @ (80037cc <HAL_ADC_MspInit+0x3a0>)
  7304. 80036f8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7305. 80036fc: 4a33 ldr r2, [pc, #204] @ (80037cc <HAL_ADC_MspInit+0x3a0>)
  7306. 80036fe: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  7307. 8003702: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7308. 8003706: 4b31 ldr r3, [pc, #196] @ (80037cc <HAL_ADC_MspInit+0x3a0>)
  7309. 8003708: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7310. 800370c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  7311. 8003710: 613b str r3, [r7, #16]
  7312. 8003712: 693b ldr r3, [r7, #16]
  7313. __HAL_RCC_GPIOC_CLK_ENABLE();
  7314. 8003714: 4b2d ldr r3, [pc, #180] @ (80037cc <HAL_ADC_MspInit+0x3a0>)
  7315. 8003716: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7316. 800371a: 4a2c ldr r2, [pc, #176] @ (80037cc <HAL_ADC_MspInit+0x3a0>)
  7317. 800371c: f043 0304 orr.w r3, r3, #4
  7318. 8003720: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7319. 8003724: 4b29 ldr r3, [pc, #164] @ (80037cc <HAL_ADC_MspInit+0x3a0>)
  7320. 8003726: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7321. 800372a: f003 0304 and.w r3, r3, #4
  7322. 800372e: 60fb str r3, [r7, #12]
  7323. 8003730: 68fb ldr r3, [r7, #12]
  7324. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  7325. 8003732: 2303 movs r3, #3
  7326. 8003734: 637b str r3, [r7, #52] @ 0x34
  7327. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7328. 8003736: 2303 movs r3, #3
  7329. 8003738: 63bb str r3, [r7, #56] @ 0x38
  7330. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7331. 800373a: 2300 movs r3, #0
  7332. 800373c: 63fb str r3, [r7, #60] @ 0x3c
  7333. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7334. 800373e: f107 0334 add.w r3, r7, #52 @ 0x34
  7335. 8003742: 4619 mov r1, r3
  7336. 8003744: 4822 ldr r0, [pc, #136] @ (80037d0 <HAL_ADC_MspInit+0x3a4>)
  7337. 8003746: f007 f851 bl 800a7ec <HAL_GPIO_Init>
  7338. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_OPEN);
  7339. 800374a: f04f 6180 mov.w r1, #67108864 @ 0x4000000
  7340. 800374e: f04f 6080 mov.w r0, #67108864 @ 0x4000000
  7341. 8003752: f001 feaf bl 80054b4 <HAL_SYSCFG_AnalogSwitchConfig>
  7342. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC3, SYSCFG_SWITCH_PC3_OPEN);
  7343. 8003756: f04f 6100 mov.w r1, #134217728 @ 0x8000000
  7344. 800375a: f04f 6000 mov.w r0, #134217728 @ 0x8000000
  7345. 800375e: f001 fea9 bl 80054b4 <HAL_SYSCFG_AnalogSwitchConfig>
  7346. hdma_adc3.Instance = DMA1_Stream2;
  7347. 8003762: 4b1c ldr r3, [pc, #112] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7348. 8003764: 4a1c ldr r2, [pc, #112] @ (80037d8 <HAL_ADC_MspInit+0x3ac>)
  7349. 8003766: 601a str r2, [r3, #0]
  7350. hdma_adc3.Init.Request = DMA_REQUEST_ADC3;
  7351. 8003768: 4b1a ldr r3, [pc, #104] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7352. 800376a: 2273 movs r2, #115 @ 0x73
  7353. 800376c: 605a str r2, [r3, #4]
  7354. hdma_adc3.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7355. 800376e: 4b19 ldr r3, [pc, #100] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7356. 8003770: 2200 movs r2, #0
  7357. 8003772: 609a str r2, [r3, #8]
  7358. hdma_adc3.Init.PeriphInc = DMA_PINC_DISABLE;
  7359. 8003774: 4b17 ldr r3, [pc, #92] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7360. 8003776: 2200 movs r2, #0
  7361. 8003778: 60da str r2, [r3, #12]
  7362. hdma_adc3.Init.MemInc = DMA_MINC_ENABLE;
  7363. 800377a: 4b16 ldr r3, [pc, #88] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7364. 800377c: f44f 6280 mov.w r2, #1024 @ 0x400
  7365. 8003780: 611a str r2, [r3, #16]
  7366. hdma_adc3.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7367. 8003782: 4b14 ldr r3, [pc, #80] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7368. 8003784: f44f 6200 mov.w r2, #2048 @ 0x800
  7369. 8003788: 615a str r2, [r3, #20]
  7370. hdma_adc3.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7371. 800378a: 4b12 ldr r3, [pc, #72] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7372. 800378c: f44f 5200 mov.w r2, #8192 @ 0x2000
  7373. 8003790: 619a str r2, [r3, #24]
  7374. hdma_adc3.Init.Mode = DMA_NORMAL;
  7375. 8003792: 4b10 ldr r3, [pc, #64] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7376. 8003794: 2200 movs r2, #0
  7377. 8003796: 61da str r2, [r3, #28]
  7378. hdma_adc3.Init.Priority = DMA_PRIORITY_LOW;
  7379. 8003798: 4b0e ldr r3, [pc, #56] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7380. 800379a: 2200 movs r2, #0
  7381. 800379c: 621a str r2, [r3, #32]
  7382. hdma_adc3.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7383. 800379e: 4b0d ldr r3, [pc, #52] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7384. 80037a0: 2200 movs r2, #0
  7385. 80037a2: 625a str r2, [r3, #36] @ 0x24
  7386. if (HAL_DMA_Init(&hdma_adc3) != HAL_OK)
  7387. 80037a4: 480b ldr r0, [pc, #44] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7388. 80037a6: f004 f9e5 bl 8007b74 <HAL_DMA_Init>
  7389. 80037aa: 4603 mov r3, r0
  7390. 80037ac: 2b00 cmp r3, #0
  7391. 80037ae: d001 beq.n 80037b4 <HAL_ADC_MspInit+0x388>
  7392. Error_Handler();
  7393. 80037b0: f7fe fb44 bl 8001e3c <Error_Handler>
  7394. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc3);
  7395. 80037b4: 687b ldr r3, [r7, #4]
  7396. 80037b6: 4a07 ldr r2, [pc, #28] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7397. 80037b8: 64da str r2, [r3, #76] @ 0x4c
  7398. 80037ba: 4a06 ldr r2, [pc, #24] @ (80037d4 <HAL_ADC_MspInit+0x3a8>)
  7399. 80037bc: 687b ldr r3, [r7, #4]
  7400. 80037be: 6393 str r3, [r2, #56] @ 0x38
  7401. }
  7402. 80037c0: bf00 nop
  7403. 80037c2: 3748 adds r7, #72 @ 0x48
  7404. 80037c4: 46bd mov sp, r7
  7405. 80037c6: bd80 pop {r7, pc}
  7406. 80037c8: 58026000 .word 0x58026000
  7407. 80037cc: 58024400 .word 0x58024400
  7408. 80037d0: 58020800 .word 0x58020800
  7409. 80037d4: 2400035c .word 0x2400035c
  7410. 80037d8: 40020040 .word 0x40020040
  7411. 080037dc <HAL_COMP_MspInit>:
  7412. * This function configures the hardware resources used in this example
  7413. * @param hcomp: COMP handle pointer
  7414. * @retval None
  7415. */
  7416. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  7417. {
  7418. 80037dc: b580 push {r7, lr}
  7419. 80037de: b08a sub sp, #40 @ 0x28
  7420. 80037e0: af00 add r7, sp, #0
  7421. 80037e2: 6078 str r0, [r7, #4]
  7422. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7423. 80037e4: f107 0314 add.w r3, r7, #20
  7424. 80037e8: 2200 movs r2, #0
  7425. 80037ea: 601a str r2, [r3, #0]
  7426. 80037ec: 605a str r2, [r3, #4]
  7427. 80037ee: 609a str r2, [r3, #8]
  7428. 80037f0: 60da str r2, [r3, #12]
  7429. 80037f2: 611a str r2, [r3, #16]
  7430. if(hcomp->Instance==COMP1)
  7431. 80037f4: 687b ldr r3, [r7, #4]
  7432. 80037f6: 681b ldr r3, [r3, #0]
  7433. 80037f8: 4a18 ldr r2, [pc, #96] @ (800385c <HAL_COMP_MspInit+0x80>)
  7434. 80037fa: 4293 cmp r3, r2
  7435. 80037fc: d129 bne.n 8003852 <HAL_COMP_MspInit+0x76>
  7436. {
  7437. /* USER CODE BEGIN COMP1_MspInit 0 */
  7438. /* USER CODE END COMP1_MspInit 0 */
  7439. /* Peripheral clock enable */
  7440. __HAL_RCC_COMP12_CLK_ENABLE();
  7441. 80037fe: 4b18 ldr r3, [pc, #96] @ (8003860 <HAL_COMP_MspInit+0x84>)
  7442. 8003800: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7443. 8003804: 4a16 ldr r2, [pc, #88] @ (8003860 <HAL_COMP_MspInit+0x84>)
  7444. 8003806: f443 4380 orr.w r3, r3, #16384 @ 0x4000
  7445. 800380a: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7446. 800380e: 4b14 ldr r3, [pc, #80] @ (8003860 <HAL_COMP_MspInit+0x84>)
  7447. 8003810: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7448. 8003814: f403 4380 and.w r3, r3, #16384 @ 0x4000
  7449. 8003818: 613b str r3, [r7, #16]
  7450. 800381a: 693b ldr r3, [r7, #16]
  7451. __HAL_RCC_GPIOB_CLK_ENABLE();
  7452. 800381c: 4b10 ldr r3, [pc, #64] @ (8003860 <HAL_COMP_MspInit+0x84>)
  7453. 800381e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7454. 8003822: 4a0f ldr r2, [pc, #60] @ (8003860 <HAL_COMP_MspInit+0x84>)
  7455. 8003824: f043 0302 orr.w r3, r3, #2
  7456. 8003828: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7457. 800382c: 4b0c ldr r3, [pc, #48] @ (8003860 <HAL_COMP_MspInit+0x84>)
  7458. 800382e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7459. 8003832: f003 0302 and.w r3, r3, #2
  7460. 8003836: 60fb str r3, [r7, #12]
  7461. 8003838: 68fb ldr r3, [r7, #12]
  7462. /**COMP1 GPIO Configuration
  7463. PB2 ------> COMP1_INP
  7464. */
  7465. GPIO_InitStruct.Pin = GPIO_PIN_2;
  7466. 800383a: 2304 movs r3, #4
  7467. 800383c: 617b str r3, [r7, #20]
  7468. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7469. 800383e: 2303 movs r3, #3
  7470. 8003840: 61bb str r3, [r7, #24]
  7471. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7472. 8003842: 2300 movs r3, #0
  7473. 8003844: 61fb str r3, [r7, #28]
  7474. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7475. 8003846: f107 0314 add.w r3, r7, #20
  7476. 800384a: 4619 mov r1, r3
  7477. 800384c: 4805 ldr r0, [pc, #20] @ (8003864 <HAL_COMP_MspInit+0x88>)
  7478. 800384e: f006 ffcd bl 800a7ec <HAL_GPIO_Init>
  7479. /* USER CODE BEGIN COMP1_MspInit 1 */
  7480. /* USER CODE END COMP1_MspInit 1 */
  7481. }
  7482. }
  7483. 8003852: bf00 nop
  7484. 8003854: 3728 adds r7, #40 @ 0x28
  7485. 8003856: 46bd mov sp, r7
  7486. 8003858: bd80 pop {r7, pc}
  7487. 800385a: bf00 nop
  7488. 800385c: 5800380c .word 0x5800380c
  7489. 8003860: 58024400 .word 0x58024400
  7490. 8003864: 58020400 .word 0x58020400
  7491. 08003868 <HAL_CRC_MspInit>:
  7492. * This function configures the hardware resources used in this example
  7493. * @param hcrc: CRC handle pointer
  7494. * @retval None
  7495. */
  7496. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  7497. {
  7498. 8003868: b480 push {r7}
  7499. 800386a: b085 sub sp, #20
  7500. 800386c: af00 add r7, sp, #0
  7501. 800386e: 6078 str r0, [r7, #4]
  7502. if(hcrc->Instance==CRC)
  7503. 8003870: 687b ldr r3, [r7, #4]
  7504. 8003872: 681b ldr r3, [r3, #0]
  7505. 8003874: 4a0b ldr r2, [pc, #44] @ (80038a4 <HAL_CRC_MspInit+0x3c>)
  7506. 8003876: 4293 cmp r3, r2
  7507. 8003878: d10e bne.n 8003898 <HAL_CRC_MspInit+0x30>
  7508. {
  7509. /* USER CODE BEGIN CRC_MspInit 0 */
  7510. /* USER CODE END CRC_MspInit 0 */
  7511. /* Peripheral clock enable */
  7512. __HAL_RCC_CRC_CLK_ENABLE();
  7513. 800387a: 4b0b ldr r3, [pc, #44] @ (80038a8 <HAL_CRC_MspInit+0x40>)
  7514. 800387c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7515. 8003880: 4a09 ldr r2, [pc, #36] @ (80038a8 <HAL_CRC_MspInit+0x40>)
  7516. 8003882: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  7517. 8003886: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7518. 800388a: 4b07 ldr r3, [pc, #28] @ (80038a8 <HAL_CRC_MspInit+0x40>)
  7519. 800388c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7520. 8003890: f403 2300 and.w r3, r3, #524288 @ 0x80000
  7521. 8003894: 60fb str r3, [r7, #12]
  7522. 8003896: 68fb ldr r3, [r7, #12]
  7523. /* USER CODE BEGIN CRC_MspInit 1 */
  7524. /* USER CODE END CRC_MspInit 1 */
  7525. }
  7526. }
  7527. 8003898: bf00 nop
  7528. 800389a: 3714 adds r7, #20
  7529. 800389c: 46bd mov sp, r7
  7530. 800389e: f85d 7b04 ldr.w r7, [sp], #4
  7531. 80038a2: 4770 bx lr
  7532. 80038a4: 58024c00 .word 0x58024c00
  7533. 80038a8: 58024400 .word 0x58024400
  7534. 080038ac <HAL_DAC_MspInit>:
  7535. * This function configures the hardware resources used in this example
  7536. * @param hdac: DAC handle pointer
  7537. * @retval None
  7538. */
  7539. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  7540. {
  7541. 80038ac: b580 push {r7, lr}
  7542. 80038ae: b08a sub sp, #40 @ 0x28
  7543. 80038b0: af00 add r7, sp, #0
  7544. 80038b2: 6078 str r0, [r7, #4]
  7545. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7546. 80038b4: f107 0314 add.w r3, r7, #20
  7547. 80038b8: 2200 movs r2, #0
  7548. 80038ba: 601a str r2, [r3, #0]
  7549. 80038bc: 605a str r2, [r3, #4]
  7550. 80038be: 609a str r2, [r3, #8]
  7551. 80038c0: 60da str r2, [r3, #12]
  7552. 80038c2: 611a str r2, [r3, #16]
  7553. if(hdac->Instance==DAC1)
  7554. 80038c4: 687b ldr r3, [r7, #4]
  7555. 80038c6: 681b ldr r3, [r3, #0]
  7556. 80038c8: 4a1c ldr r2, [pc, #112] @ (800393c <HAL_DAC_MspInit+0x90>)
  7557. 80038ca: 4293 cmp r3, r2
  7558. 80038cc: d131 bne.n 8003932 <HAL_DAC_MspInit+0x86>
  7559. {
  7560. /* USER CODE BEGIN DAC1_MspInit 0 */
  7561. /* USER CODE END DAC1_MspInit 0 */
  7562. /* Peripheral clock enable */
  7563. __HAL_RCC_DAC12_CLK_ENABLE();
  7564. 80038ce: 4b1c ldr r3, [pc, #112] @ (8003940 <HAL_DAC_MspInit+0x94>)
  7565. 80038d0: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7566. 80038d4: 4a1a ldr r2, [pc, #104] @ (8003940 <HAL_DAC_MspInit+0x94>)
  7567. 80038d6: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
  7568. 80038da: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7569. 80038de: 4b18 ldr r3, [pc, #96] @ (8003940 <HAL_DAC_MspInit+0x94>)
  7570. 80038e0: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7571. 80038e4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  7572. 80038e8: 613b str r3, [r7, #16]
  7573. 80038ea: 693b ldr r3, [r7, #16]
  7574. __HAL_RCC_GPIOA_CLK_ENABLE();
  7575. 80038ec: 4b14 ldr r3, [pc, #80] @ (8003940 <HAL_DAC_MspInit+0x94>)
  7576. 80038ee: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7577. 80038f2: 4a13 ldr r2, [pc, #76] @ (8003940 <HAL_DAC_MspInit+0x94>)
  7578. 80038f4: f043 0301 orr.w r3, r3, #1
  7579. 80038f8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7580. 80038fc: 4b10 ldr r3, [pc, #64] @ (8003940 <HAL_DAC_MspInit+0x94>)
  7581. 80038fe: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7582. 8003902: f003 0301 and.w r3, r3, #1
  7583. 8003906: 60fb str r3, [r7, #12]
  7584. 8003908: 68fb ldr r3, [r7, #12]
  7585. /**DAC1 GPIO Configuration
  7586. PA4 ------> DAC1_OUT1
  7587. PA5 ------> DAC1_OUT2
  7588. */
  7589. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  7590. 800390a: 2330 movs r3, #48 @ 0x30
  7591. 800390c: 617b str r3, [r7, #20]
  7592. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7593. 800390e: 2303 movs r3, #3
  7594. 8003910: 61bb str r3, [r7, #24]
  7595. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7596. 8003912: 2300 movs r3, #0
  7597. 8003914: 61fb str r3, [r7, #28]
  7598. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7599. 8003916: f107 0314 add.w r3, r7, #20
  7600. 800391a: 4619 mov r1, r3
  7601. 800391c: 4809 ldr r0, [pc, #36] @ (8003944 <HAL_DAC_MspInit+0x98>)
  7602. 800391e: f006 ff65 bl 800a7ec <HAL_GPIO_Init>
  7603. /* DAC1 interrupt Init */
  7604. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 5, 0);
  7605. 8003922: 2200 movs r2, #0
  7606. 8003924: 2105 movs r1, #5
  7607. 8003926: 2036 movs r0, #54 @ 0x36
  7608. 8003928: f003 fc2e bl 8007188 <HAL_NVIC_SetPriority>
  7609. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  7610. 800392c: 2036 movs r0, #54 @ 0x36
  7611. 800392e: f003 fc45 bl 80071bc <HAL_NVIC_EnableIRQ>
  7612. /* USER CODE BEGIN DAC1_MspInit 1 */
  7613. /* USER CODE END DAC1_MspInit 1 */
  7614. }
  7615. }
  7616. 8003932: bf00 nop
  7617. 8003934: 3728 adds r7, #40 @ 0x28
  7618. 8003936: 46bd mov sp, r7
  7619. 8003938: bd80 pop {r7, pc}
  7620. 800393a: bf00 nop
  7621. 800393c: 40007400 .word 0x40007400
  7622. 8003940: 58024400 .word 0x58024400
  7623. 8003944: 58020000 .word 0x58020000
  7624. 08003948 <HAL_RNG_MspInit>:
  7625. * This function configures the hardware resources used in this example
  7626. * @param hrng: RNG handle pointer
  7627. * @retval None
  7628. */
  7629. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  7630. {
  7631. 8003948: b580 push {r7, lr}
  7632. 800394a: b0b4 sub sp, #208 @ 0xd0
  7633. 800394c: af00 add r7, sp, #0
  7634. 800394e: 6078 str r0, [r7, #4]
  7635. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7636. 8003950: f107 0310 add.w r3, r7, #16
  7637. 8003954: 22c0 movs r2, #192 @ 0xc0
  7638. 8003956: 2100 movs r1, #0
  7639. 8003958: 4618 mov r0, r3
  7640. 800395a: f014 f92c bl 8017bb6 <memset>
  7641. if(hrng->Instance==RNG)
  7642. 800395e: 687b ldr r3, [r7, #4]
  7643. 8003960: 681b ldr r3, [r3, #0]
  7644. 8003962: 4a14 ldr r2, [pc, #80] @ (80039b4 <HAL_RNG_MspInit+0x6c>)
  7645. 8003964: 4293 cmp r3, r2
  7646. 8003966: d121 bne.n 80039ac <HAL_RNG_MspInit+0x64>
  7647. /* USER CODE END RNG_MspInit 0 */
  7648. /** Initializes the peripherals clock
  7649. */
  7650. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  7651. 8003968: f44f 3200 mov.w r2, #131072 @ 0x20000
  7652. 800396c: f04f 0300 mov.w r3, #0
  7653. 8003970: e9c7 2304 strd r2, r3, [r7, #16]
  7654. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  7655. 8003974: 2300 movs r3, #0
  7656. 8003976: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  7657. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7658. 800397a: f107 0310 add.w r3, r7, #16
  7659. 800397e: 4618 mov r0, r3
  7660. 8003980: f008 fabc bl 800befc <HAL_RCCEx_PeriphCLKConfig>
  7661. 8003984: 4603 mov r3, r0
  7662. 8003986: 2b00 cmp r3, #0
  7663. 8003988: d001 beq.n 800398e <HAL_RNG_MspInit+0x46>
  7664. {
  7665. Error_Handler();
  7666. 800398a: f7fe fa57 bl 8001e3c <Error_Handler>
  7667. }
  7668. /* Peripheral clock enable */
  7669. __HAL_RCC_RNG_CLK_ENABLE();
  7670. 800398e: 4b0a ldr r3, [pc, #40] @ (80039b8 <HAL_RNG_MspInit+0x70>)
  7671. 8003990: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7672. 8003994: 4a08 ldr r2, [pc, #32] @ (80039b8 <HAL_RNG_MspInit+0x70>)
  7673. 8003996: f043 0340 orr.w r3, r3, #64 @ 0x40
  7674. 800399a: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  7675. 800399e: 4b06 ldr r3, [pc, #24] @ (80039b8 <HAL_RNG_MspInit+0x70>)
  7676. 80039a0: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7677. 80039a4: f003 0340 and.w r3, r3, #64 @ 0x40
  7678. 80039a8: 60fb str r3, [r7, #12]
  7679. 80039aa: 68fb ldr r3, [r7, #12]
  7680. /* USER CODE BEGIN RNG_MspInit 1 */
  7681. /* USER CODE END RNG_MspInit 1 */
  7682. }
  7683. }
  7684. 80039ac: bf00 nop
  7685. 80039ae: 37d0 adds r7, #208 @ 0xd0
  7686. 80039b0: 46bd mov sp, r7
  7687. 80039b2: bd80 pop {r7, pc}
  7688. 80039b4: 48021800 .word 0x48021800
  7689. 80039b8: 58024400 .word 0x58024400
  7690. 080039bc <HAL_TIM_PWM_MspInit>:
  7691. * This function configures the hardware resources used in this example
  7692. * @param htim_pwm: TIM_PWM handle pointer
  7693. * @retval None
  7694. */
  7695. void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_pwm)
  7696. {
  7697. 80039bc: b480 push {r7}
  7698. 80039be: b085 sub sp, #20
  7699. 80039c0: af00 add r7, sp, #0
  7700. 80039c2: 6078 str r0, [r7, #4]
  7701. if(htim_pwm->Instance==TIM1)
  7702. 80039c4: 687b ldr r3, [r7, #4]
  7703. 80039c6: 681b ldr r3, [r3, #0]
  7704. 80039c8: 4a16 ldr r2, [pc, #88] @ (8003a24 <HAL_TIM_PWM_MspInit+0x68>)
  7705. 80039ca: 4293 cmp r3, r2
  7706. 80039cc: d10f bne.n 80039ee <HAL_TIM_PWM_MspInit+0x32>
  7707. {
  7708. /* USER CODE BEGIN TIM1_MspInit 0 */
  7709. /* USER CODE END TIM1_MspInit 0 */
  7710. /* Peripheral clock enable */
  7711. __HAL_RCC_TIM1_CLK_ENABLE();
  7712. 80039ce: 4b16 ldr r3, [pc, #88] @ (8003a28 <HAL_TIM_PWM_MspInit+0x6c>)
  7713. 80039d0: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7714. 80039d4: 4a14 ldr r2, [pc, #80] @ (8003a28 <HAL_TIM_PWM_MspInit+0x6c>)
  7715. 80039d6: f043 0301 orr.w r3, r3, #1
  7716. 80039da: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  7717. 80039de: 4b12 ldr r3, [pc, #72] @ (8003a28 <HAL_TIM_PWM_MspInit+0x6c>)
  7718. 80039e0: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7719. 80039e4: f003 0301 and.w r3, r3, #1
  7720. 80039e8: 60fb str r3, [r7, #12]
  7721. 80039ea: 68fb ldr r3, [r7, #12]
  7722. /* USER CODE BEGIN TIM3_MspInit 1 */
  7723. /* USER CODE END TIM3_MspInit 1 */
  7724. }
  7725. }
  7726. 80039ec: e013 b.n 8003a16 <HAL_TIM_PWM_MspInit+0x5a>
  7727. else if(htim_pwm->Instance==TIM3)
  7728. 80039ee: 687b ldr r3, [r7, #4]
  7729. 80039f0: 681b ldr r3, [r3, #0]
  7730. 80039f2: 4a0e ldr r2, [pc, #56] @ (8003a2c <HAL_TIM_PWM_MspInit+0x70>)
  7731. 80039f4: 4293 cmp r3, r2
  7732. 80039f6: d10e bne.n 8003a16 <HAL_TIM_PWM_MspInit+0x5a>
  7733. __HAL_RCC_TIM3_CLK_ENABLE();
  7734. 80039f8: 4b0b ldr r3, [pc, #44] @ (8003a28 <HAL_TIM_PWM_MspInit+0x6c>)
  7735. 80039fa: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7736. 80039fe: 4a0a ldr r2, [pc, #40] @ (8003a28 <HAL_TIM_PWM_MspInit+0x6c>)
  7737. 8003a00: f043 0302 orr.w r3, r3, #2
  7738. 8003a04: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7739. 8003a08: 4b07 ldr r3, [pc, #28] @ (8003a28 <HAL_TIM_PWM_MspInit+0x6c>)
  7740. 8003a0a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7741. 8003a0e: f003 0302 and.w r3, r3, #2
  7742. 8003a12: 60bb str r3, [r7, #8]
  7743. 8003a14: 68bb ldr r3, [r7, #8]
  7744. }
  7745. 8003a16: bf00 nop
  7746. 8003a18: 3714 adds r7, #20
  7747. 8003a1a: 46bd mov sp, r7
  7748. 8003a1c: f85d 7b04 ldr.w r7, [sp], #4
  7749. 8003a20: 4770 bx lr
  7750. 8003a22: bf00 nop
  7751. 8003a24: 40010000 .word 0x40010000
  7752. 8003a28: 58024400 .word 0x58024400
  7753. 8003a2c: 40000400 .word 0x40000400
  7754. 08003a30 <HAL_TIM_Base_MspInit>:
  7755. * This function configures the hardware resources used in this example
  7756. * @param htim_base: TIM_Base handle pointer
  7757. * @retval None
  7758. */
  7759. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  7760. {
  7761. 8003a30: b580 push {r7, lr}
  7762. 8003a32: b08c sub sp, #48 @ 0x30
  7763. 8003a34: af00 add r7, sp, #0
  7764. 8003a36: 6078 str r0, [r7, #4]
  7765. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7766. 8003a38: f107 031c add.w r3, r7, #28
  7767. 8003a3c: 2200 movs r2, #0
  7768. 8003a3e: 601a str r2, [r3, #0]
  7769. 8003a40: 605a str r2, [r3, #4]
  7770. 8003a42: 609a str r2, [r3, #8]
  7771. 8003a44: 60da str r2, [r3, #12]
  7772. 8003a46: 611a str r2, [r3, #16]
  7773. if(htim_base->Instance==TIM2)
  7774. 8003a48: 687b ldr r3, [r7, #4]
  7775. 8003a4a: 681b ldr r3, [r3, #0]
  7776. 8003a4c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  7777. 8003a50: d137 bne.n 8003ac2 <HAL_TIM_Base_MspInit+0x92>
  7778. {
  7779. /* USER CODE BEGIN TIM2_MspInit 0 */
  7780. /* USER CODE END TIM2_MspInit 0 */
  7781. /* Peripheral clock enable */
  7782. __HAL_RCC_TIM2_CLK_ENABLE();
  7783. 8003a52: 4b3c ldr r3, [pc, #240] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7784. 8003a54: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7785. 8003a58: 4a3a ldr r2, [pc, #232] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7786. 8003a5a: f043 0301 orr.w r3, r3, #1
  7787. 8003a5e: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7788. 8003a62: 4b38 ldr r3, [pc, #224] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7789. 8003a64: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7790. 8003a68: f003 0301 and.w r3, r3, #1
  7791. 8003a6c: 61bb str r3, [r7, #24]
  7792. 8003a6e: 69bb ldr r3, [r7, #24]
  7793. __HAL_RCC_GPIOB_CLK_ENABLE();
  7794. 8003a70: 4b34 ldr r3, [pc, #208] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7795. 8003a72: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7796. 8003a76: 4a33 ldr r2, [pc, #204] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7797. 8003a78: f043 0302 orr.w r3, r3, #2
  7798. 8003a7c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7799. 8003a80: 4b30 ldr r3, [pc, #192] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7800. 8003a82: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7801. 8003a86: f003 0302 and.w r3, r3, #2
  7802. 8003a8a: 617b str r3, [r7, #20]
  7803. 8003a8c: 697b ldr r3, [r7, #20]
  7804. /**TIM2 GPIO Configuration
  7805. PB10 ------> TIM2_CH3
  7806. PB11 ------> TIM2_CH4
  7807. */
  7808. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  7809. 8003a8e: f44f 6340 mov.w r3, #3072 @ 0xc00
  7810. 8003a92: 61fb str r3, [r7, #28]
  7811. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7812. 8003a94: 2302 movs r3, #2
  7813. 8003a96: 623b str r3, [r7, #32]
  7814. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7815. 8003a98: 2300 movs r3, #0
  7816. 8003a9a: 627b str r3, [r7, #36] @ 0x24
  7817. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  7818. 8003a9c: 2300 movs r3, #0
  7819. 8003a9e: 62bb str r3, [r7, #40] @ 0x28
  7820. GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
  7821. 8003aa0: 2301 movs r3, #1
  7822. 8003aa2: 62fb str r3, [r7, #44] @ 0x2c
  7823. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7824. 8003aa4: f107 031c add.w r3, r7, #28
  7825. 8003aa8: 4619 mov r1, r3
  7826. 8003aaa: 4827 ldr r0, [pc, #156] @ (8003b48 <HAL_TIM_Base_MspInit+0x118>)
  7827. 8003aac: f006 fe9e bl 800a7ec <HAL_GPIO_Init>
  7828. /* TIM2 interrupt Init */
  7829. HAL_NVIC_SetPriority(TIM2_IRQn, 5, 0);
  7830. 8003ab0: 2200 movs r2, #0
  7831. 8003ab2: 2105 movs r1, #5
  7832. 8003ab4: 201c movs r0, #28
  7833. 8003ab6: f003 fb67 bl 8007188 <HAL_NVIC_SetPriority>
  7834. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  7835. 8003aba: 201c movs r0, #28
  7836. 8003abc: f003 fb7e bl 80071bc <HAL_NVIC_EnableIRQ>
  7837. /* USER CODE BEGIN TIM4_MspInit 1 */
  7838. /* USER CODE END TIM4_MspInit 1 */
  7839. }
  7840. }
  7841. 8003ac0: e03b b.n 8003b3a <HAL_TIM_Base_MspInit+0x10a>
  7842. else if(htim_base->Instance==TIM4)
  7843. 8003ac2: 687b ldr r3, [r7, #4]
  7844. 8003ac4: 681b ldr r3, [r3, #0]
  7845. 8003ac6: 4a21 ldr r2, [pc, #132] @ (8003b4c <HAL_TIM_Base_MspInit+0x11c>)
  7846. 8003ac8: 4293 cmp r3, r2
  7847. 8003aca: d136 bne.n 8003b3a <HAL_TIM_Base_MspInit+0x10a>
  7848. __HAL_RCC_TIM4_CLK_ENABLE();
  7849. 8003acc: 4b1d ldr r3, [pc, #116] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7850. 8003ace: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7851. 8003ad2: 4a1c ldr r2, [pc, #112] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7852. 8003ad4: f043 0304 orr.w r3, r3, #4
  7853. 8003ad8: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7854. 8003adc: 4b19 ldr r3, [pc, #100] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7855. 8003ade: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7856. 8003ae2: f003 0304 and.w r3, r3, #4
  7857. 8003ae6: 613b str r3, [r7, #16]
  7858. 8003ae8: 693b ldr r3, [r7, #16]
  7859. __HAL_RCC_GPIOD_CLK_ENABLE();
  7860. 8003aea: 4b16 ldr r3, [pc, #88] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7861. 8003aec: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7862. 8003af0: 4a14 ldr r2, [pc, #80] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7863. 8003af2: f043 0308 orr.w r3, r3, #8
  7864. 8003af6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7865. 8003afa: 4b12 ldr r3, [pc, #72] @ (8003b44 <HAL_TIM_Base_MspInit+0x114>)
  7866. 8003afc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7867. 8003b00: f003 0308 and.w r3, r3, #8
  7868. 8003b04: 60fb str r3, [r7, #12]
  7869. 8003b06: 68fb ldr r3, [r7, #12]
  7870. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  7871. 8003b08: f44f 4340 mov.w r3, #49152 @ 0xc000
  7872. 8003b0c: 61fb str r3, [r7, #28]
  7873. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7874. 8003b0e: 2302 movs r3, #2
  7875. 8003b10: 623b str r3, [r7, #32]
  7876. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7877. 8003b12: 2300 movs r3, #0
  7878. 8003b14: 627b str r3, [r7, #36] @ 0x24
  7879. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  7880. 8003b16: 2300 movs r3, #0
  7881. 8003b18: 62bb str r3, [r7, #40] @ 0x28
  7882. GPIO_InitStruct.Alternate = GPIO_AF2_TIM4;
  7883. 8003b1a: 2302 movs r3, #2
  7884. 8003b1c: 62fb str r3, [r7, #44] @ 0x2c
  7885. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  7886. 8003b1e: f107 031c add.w r3, r7, #28
  7887. 8003b22: 4619 mov r1, r3
  7888. 8003b24: 480a ldr r0, [pc, #40] @ (8003b50 <HAL_TIM_Base_MspInit+0x120>)
  7889. 8003b26: f006 fe61 bl 800a7ec <HAL_GPIO_Init>
  7890. HAL_NVIC_SetPriority(TIM4_IRQn, 5, 0);
  7891. 8003b2a: 2200 movs r2, #0
  7892. 8003b2c: 2105 movs r1, #5
  7893. 8003b2e: 201e movs r0, #30
  7894. 8003b30: f003 fb2a bl 8007188 <HAL_NVIC_SetPriority>
  7895. HAL_NVIC_EnableIRQ(TIM4_IRQn);
  7896. 8003b34: 201e movs r0, #30
  7897. 8003b36: f003 fb41 bl 80071bc <HAL_NVIC_EnableIRQ>
  7898. }
  7899. 8003b3a: bf00 nop
  7900. 8003b3c: 3730 adds r7, #48 @ 0x30
  7901. 8003b3e: 46bd mov sp, r7
  7902. 8003b40: bd80 pop {r7, pc}
  7903. 8003b42: bf00 nop
  7904. 8003b44: 58024400 .word 0x58024400
  7905. 8003b48: 58020400 .word 0x58020400
  7906. 8003b4c: 40000800 .word 0x40000800
  7907. 8003b50: 58020c00 .word 0x58020c00
  7908. 08003b54 <HAL_TIM_MspPostInit>:
  7909. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  7910. {
  7911. 8003b54: b580 push {r7, lr}
  7912. 8003b56: b08a sub sp, #40 @ 0x28
  7913. 8003b58: af00 add r7, sp, #0
  7914. 8003b5a: 6078 str r0, [r7, #4]
  7915. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7916. 8003b5c: f107 0314 add.w r3, r7, #20
  7917. 8003b60: 2200 movs r2, #0
  7918. 8003b62: 601a str r2, [r3, #0]
  7919. 8003b64: 605a str r2, [r3, #4]
  7920. 8003b66: 609a str r2, [r3, #8]
  7921. 8003b68: 60da str r2, [r3, #12]
  7922. 8003b6a: 611a str r2, [r3, #16]
  7923. if(htim->Instance==TIM1)
  7924. 8003b6c: 687b ldr r3, [r7, #4]
  7925. 8003b6e: 681b ldr r3, [r3, #0]
  7926. 8003b70: 4a26 ldr r2, [pc, #152] @ (8003c0c <HAL_TIM_MspPostInit+0xb8>)
  7927. 8003b72: 4293 cmp r3, r2
  7928. 8003b74: d120 bne.n 8003bb8 <HAL_TIM_MspPostInit+0x64>
  7929. {
  7930. /* USER CODE BEGIN TIM1_MspPostInit 0 */
  7931. /* USER CODE END TIM1_MspPostInit 0 */
  7932. __HAL_RCC_GPIOA_CLK_ENABLE();
  7933. 8003b76: 4b26 ldr r3, [pc, #152] @ (8003c10 <HAL_TIM_MspPostInit+0xbc>)
  7934. 8003b78: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7935. 8003b7c: 4a24 ldr r2, [pc, #144] @ (8003c10 <HAL_TIM_MspPostInit+0xbc>)
  7936. 8003b7e: f043 0301 orr.w r3, r3, #1
  7937. 8003b82: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7938. 8003b86: 4b22 ldr r3, [pc, #136] @ (8003c10 <HAL_TIM_MspPostInit+0xbc>)
  7939. 8003b88: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7940. 8003b8c: f003 0301 and.w r3, r3, #1
  7941. 8003b90: 613b str r3, [r7, #16]
  7942. 8003b92: 693b ldr r3, [r7, #16]
  7943. /**TIM1 GPIO Configuration
  7944. PA9 ------> TIM1_CH2
  7945. */
  7946. GPIO_InitStruct.Pin = GPIO_PIN_9;
  7947. 8003b94: f44f 7300 mov.w r3, #512 @ 0x200
  7948. 8003b98: 617b str r3, [r7, #20]
  7949. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7950. 8003b9a: 2302 movs r3, #2
  7951. 8003b9c: 61bb str r3, [r7, #24]
  7952. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7953. 8003b9e: 2300 movs r3, #0
  7954. 8003ba0: 61fb str r3, [r7, #28]
  7955. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  7956. 8003ba2: 2300 movs r3, #0
  7957. 8003ba4: 623b str r3, [r7, #32]
  7958. GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
  7959. 8003ba6: 2301 movs r3, #1
  7960. 8003ba8: 627b str r3, [r7, #36] @ 0x24
  7961. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7962. 8003baa: f107 0314 add.w r3, r7, #20
  7963. 8003bae: 4619 mov r1, r3
  7964. 8003bb0: 4818 ldr r0, [pc, #96] @ (8003c14 <HAL_TIM_MspPostInit+0xc0>)
  7965. 8003bb2: f006 fe1b bl 800a7ec <HAL_GPIO_Init>
  7966. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  7967. /* USER CODE END TIM3_MspPostInit 1 */
  7968. }
  7969. }
  7970. 8003bb6: e024 b.n 8003c02 <HAL_TIM_MspPostInit+0xae>
  7971. else if(htim->Instance==TIM3)
  7972. 8003bb8: 687b ldr r3, [r7, #4]
  7973. 8003bba: 681b ldr r3, [r3, #0]
  7974. 8003bbc: 4a16 ldr r2, [pc, #88] @ (8003c18 <HAL_TIM_MspPostInit+0xc4>)
  7975. 8003bbe: 4293 cmp r3, r2
  7976. 8003bc0: d11f bne.n 8003c02 <HAL_TIM_MspPostInit+0xae>
  7977. __HAL_RCC_GPIOC_CLK_ENABLE();
  7978. 8003bc2: 4b13 ldr r3, [pc, #76] @ (8003c10 <HAL_TIM_MspPostInit+0xbc>)
  7979. 8003bc4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7980. 8003bc8: 4a11 ldr r2, [pc, #68] @ (8003c10 <HAL_TIM_MspPostInit+0xbc>)
  7981. 8003bca: f043 0304 orr.w r3, r3, #4
  7982. 8003bce: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7983. 8003bd2: 4b0f ldr r3, [pc, #60] @ (8003c10 <HAL_TIM_MspPostInit+0xbc>)
  7984. 8003bd4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7985. 8003bd8: f003 0304 and.w r3, r3, #4
  7986. 8003bdc: 60fb str r3, [r7, #12]
  7987. 8003bde: 68fb ldr r3, [r7, #12]
  7988. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9;
  7989. 8003be0: f44f 7370 mov.w r3, #960 @ 0x3c0
  7990. 8003be4: 617b str r3, [r7, #20]
  7991. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7992. 8003be6: 2302 movs r3, #2
  7993. 8003be8: 61bb str r3, [r7, #24]
  7994. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7995. 8003bea: 2300 movs r3, #0
  7996. 8003bec: 61fb str r3, [r7, #28]
  7997. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;
  7998. 8003bee: 2301 movs r3, #1
  7999. 8003bf0: 623b str r3, [r7, #32]
  8000. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  8001. 8003bf2: 2302 movs r3, #2
  8002. 8003bf4: 627b str r3, [r7, #36] @ 0x24
  8003. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8004. 8003bf6: f107 0314 add.w r3, r7, #20
  8005. 8003bfa: 4619 mov r1, r3
  8006. 8003bfc: 4807 ldr r0, [pc, #28] @ (8003c1c <HAL_TIM_MspPostInit+0xc8>)
  8007. 8003bfe: f006 fdf5 bl 800a7ec <HAL_GPIO_Init>
  8008. }
  8009. 8003c02: bf00 nop
  8010. 8003c04: 3728 adds r7, #40 @ 0x28
  8011. 8003c06: 46bd mov sp, r7
  8012. 8003c08: bd80 pop {r7, pc}
  8013. 8003c0a: bf00 nop
  8014. 8003c0c: 40010000 .word 0x40010000
  8015. 8003c10: 58024400 .word 0x58024400
  8016. 8003c14: 58020000 .word 0x58020000
  8017. 8003c18: 40000400 .word 0x40000400
  8018. 8003c1c: 58020800 .word 0x58020800
  8019. 08003c20 <HAL_UART_MspInit>:
  8020. * This function configures the hardware resources used in this example
  8021. * @param huart: UART handle pointer
  8022. * @retval None
  8023. */
  8024. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  8025. {
  8026. 8003c20: b580 push {r7, lr}
  8027. 8003c22: b0bc sub sp, #240 @ 0xf0
  8028. 8003c24: af00 add r7, sp, #0
  8029. 8003c26: 6078 str r0, [r7, #4]
  8030. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8031. 8003c28: f107 03dc add.w r3, r7, #220 @ 0xdc
  8032. 8003c2c: 2200 movs r2, #0
  8033. 8003c2e: 601a str r2, [r3, #0]
  8034. 8003c30: 605a str r2, [r3, #4]
  8035. 8003c32: 609a str r2, [r3, #8]
  8036. 8003c34: 60da str r2, [r3, #12]
  8037. 8003c36: 611a str r2, [r3, #16]
  8038. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  8039. 8003c38: f107 0318 add.w r3, r7, #24
  8040. 8003c3c: 22c0 movs r2, #192 @ 0xc0
  8041. 8003c3e: 2100 movs r1, #0
  8042. 8003c40: 4618 mov r0, r3
  8043. 8003c42: f013 ffb8 bl 8017bb6 <memset>
  8044. if(huart->Instance==UART8)
  8045. 8003c46: 687b ldr r3, [r7, #4]
  8046. 8003c48: 681b ldr r3, [r3, #0]
  8047. 8003c4a: 4a55 ldr r2, [pc, #340] @ (8003da0 <HAL_UART_MspInit+0x180>)
  8048. 8003c4c: 4293 cmp r3, r2
  8049. 8003c4e: d14e bne.n 8003cee <HAL_UART_MspInit+0xce>
  8050. /* USER CODE END UART8_MspInit 0 */
  8051. /** Initializes the peripherals clock
  8052. */
  8053. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  8054. 8003c50: f04f 0202 mov.w r2, #2
  8055. 8003c54: f04f 0300 mov.w r3, #0
  8056. 8003c58: e9c7 2306 strd r2, r3, [r7, #24]
  8057. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  8058. 8003c5c: 2300 movs r3, #0
  8059. 8003c5e: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  8060. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8061. 8003c62: f107 0318 add.w r3, r7, #24
  8062. 8003c66: 4618 mov r0, r3
  8063. 8003c68: f008 f948 bl 800befc <HAL_RCCEx_PeriphCLKConfig>
  8064. 8003c6c: 4603 mov r3, r0
  8065. 8003c6e: 2b00 cmp r3, #0
  8066. 8003c70: d001 beq.n 8003c76 <HAL_UART_MspInit+0x56>
  8067. {
  8068. Error_Handler();
  8069. 8003c72: f7fe f8e3 bl 8001e3c <Error_Handler>
  8070. }
  8071. /* Peripheral clock enable */
  8072. __HAL_RCC_UART8_CLK_ENABLE();
  8073. 8003c76: 4b4b ldr r3, [pc, #300] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8074. 8003c78: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8075. 8003c7c: 4a49 ldr r2, [pc, #292] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8076. 8003c7e: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  8077. 8003c82: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8078. 8003c86: 4b47 ldr r3, [pc, #284] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8079. 8003c88: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8080. 8003c8c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  8081. 8003c90: 617b str r3, [r7, #20]
  8082. 8003c92: 697b ldr r3, [r7, #20]
  8083. __HAL_RCC_GPIOE_CLK_ENABLE();
  8084. 8003c94: 4b43 ldr r3, [pc, #268] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8085. 8003c96: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8086. 8003c9a: 4a42 ldr r2, [pc, #264] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8087. 8003c9c: f043 0310 orr.w r3, r3, #16
  8088. 8003ca0: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8089. 8003ca4: 4b3f ldr r3, [pc, #252] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8090. 8003ca6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8091. 8003caa: f003 0310 and.w r3, r3, #16
  8092. 8003cae: 613b str r3, [r7, #16]
  8093. 8003cb0: 693b ldr r3, [r7, #16]
  8094. /**UART8 GPIO Configuration
  8095. PE0 ------> UART8_RX
  8096. PE1 ------> UART8_TX
  8097. */
  8098. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  8099. 8003cb2: 2303 movs r3, #3
  8100. 8003cb4: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  8101. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8102. 8003cb8: 2302 movs r3, #2
  8103. 8003cba: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  8104. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8105. 8003cbe: 2300 movs r3, #0
  8106. 8003cc0: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  8107. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8108. 8003cc4: 2300 movs r3, #0
  8109. 8003cc6: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  8110. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  8111. 8003cca: 2308 movs r3, #8
  8112. 8003ccc: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  8113. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  8114. 8003cd0: f107 03dc add.w r3, r7, #220 @ 0xdc
  8115. 8003cd4: 4619 mov r1, r3
  8116. 8003cd6: 4834 ldr r0, [pc, #208] @ (8003da8 <HAL_UART_MspInit+0x188>)
  8117. 8003cd8: f006 fd88 bl 800a7ec <HAL_GPIO_Init>
  8118. /* UART8 interrupt Init */
  8119. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  8120. 8003cdc: 2200 movs r2, #0
  8121. 8003cde: 2105 movs r1, #5
  8122. 8003ce0: 2053 movs r0, #83 @ 0x53
  8123. 8003ce2: f003 fa51 bl 8007188 <HAL_NVIC_SetPriority>
  8124. HAL_NVIC_EnableIRQ(UART8_IRQn);
  8125. 8003ce6: 2053 movs r0, #83 @ 0x53
  8126. 8003ce8: f003 fa68 bl 80071bc <HAL_NVIC_EnableIRQ>
  8127. /* USER CODE BEGIN USART1_MspInit 1 */
  8128. /* USER CODE END USART1_MspInit 1 */
  8129. }
  8130. }
  8131. 8003cec: e053 b.n 8003d96 <HAL_UART_MspInit+0x176>
  8132. else if(huart->Instance==USART1)
  8133. 8003cee: 687b ldr r3, [r7, #4]
  8134. 8003cf0: 681b ldr r3, [r3, #0]
  8135. 8003cf2: 4a2e ldr r2, [pc, #184] @ (8003dac <HAL_UART_MspInit+0x18c>)
  8136. 8003cf4: 4293 cmp r3, r2
  8137. 8003cf6: d14e bne.n 8003d96 <HAL_UART_MspInit+0x176>
  8138. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  8139. 8003cf8: f04f 0201 mov.w r2, #1
  8140. 8003cfc: f04f 0300 mov.w r3, #0
  8141. 8003d00: e9c7 2306 strd r2, r3, [r7, #24]
  8142. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  8143. 8003d04: 2300 movs r3, #0
  8144. 8003d06: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  8145. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8146. 8003d0a: f107 0318 add.w r3, r7, #24
  8147. 8003d0e: 4618 mov r0, r3
  8148. 8003d10: f008 f8f4 bl 800befc <HAL_RCCEx_PeriphCLKConfig>
  8149. 8003d14: 4603 mov r3, r0
  8150. 8003d16: 2b00 cmp r3, #0
  8151. 8003d18: d001 beq.n 8003d1e <HAL_UART_MspInit+0xfe>
  8152. Error_Handler();
  8153. 8003d1a: f7fe f88f bl 8001e3c <Error_Handler>
  8154. __HAL_RCC_USART1_CLK_ENABLE();
  8155. 8003d1e: 4b21 ldr r3, [pc, #132] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8156. 8003d20: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8157. 8003d24: 4a1f ldr r2, [pc, #124] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8158. 8003d26: f043 0310 orr.w r3, r3, #16
  8159. 8003d2a: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8160. 8003d2e: 4b1d ldr r3, [pc, #116] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8161. 8003d30: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8162. 8003d34: f003 0310 and.w r3, r3, #16
  8163. 8003d38: 60fb str r3, [r7, #12]
  8164. 8003d3a: 68fb ldr r3, [r7, #12]
  8165. __HAL_RCC_GPIOB_CLK_ENABLE();
  8166. 8003d3c: 4b19 ldr r3, [pc, #100] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8167. 8003d3e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8168. 8003d42: 4a18 ldr r2, [pc, #96] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8169. 8003d44: f043 0302 orr.w r3, r3, #2
  8170. 8003d48: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8171. 8003d4c: 4b15 ldr r3, [pc, #84] @ (8003da4 <HAL_UART_MspInit+0x184>)
  8172. 8003d4e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8173. 8003d52: f003 0302 and.w r3, r3, #2
  8174. 8003d56: 60bb str r3, [r7, #8]
  8175. 8003d58: 68bb ldr r3, [r7, #8]
  8176. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  8177. 8003d5a: f44f 4340 mov.w r3, #49152 @ 0xc000
  8178. 8003d5e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  8179. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8180. 8003d62: 2302 movs r3, #2
  8181. 8003d64: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  8182. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8183. 8003d68: 2300 movs r3, #0
  8184. 8003d6a: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  8185. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8186. 8003d6e: 2300 movs r3, #0
  8187. 8003d70: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  8188. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  8189. 8003d74: 2304 movs r3, #4
  8190. 8003d76: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  8191. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8192. 8003d7a: f107 03dc add.w r3, r7, #220 @ 0xdc
  8193. 8003d7e: 4619 mov r1, r3
  8194. 8003d80: 480b ldr r0, [pc, #44] @ (8003db0 <HAL_UART_MspInit+0x190>)
  8195. 8003d82: f006 fd33 bl 800a7ec <HAL_GPIO_Init>
  8196. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  8197. 8003d86: 2200 movs r2, #0
  8198. 8003d88: 2105 movs r1, #5
  8199. 8003d8a: 2025 movs r0, #37 @ 0x25
  8200. 8003d8c: f003 f9fc bl 8007188 <HAL_NVIC_SetPriority>
  8201. HAL_NVIC_EnableIRQ(USART1_IRQn);
  8202. 8003d90: 2025 movs r0, #37 @ 0x25
  8203. 8003d92: f003 fa13 bl 80071bc <HAL_NVIC_EnableIRQ>
  8204. }
  8205. 8003d96: bf00 nop
  8206. 8003d98: 37f0 adds r7, #240 @ 0xf0
  8207. 8003d9a: 46bd mov sp, r7
  8208. 8003d9c: bd80 pop {r7, pc}
  8209. 8003d9e: bf00 nop
  8210. 8003da0: 40007c00 .word 0x40007c00
  8211. 8003da4: 58024400 .word 0x58024400
  8212. 8003da8: 58021000 .word 0x58021000
  8213. 8003dac: 40011000 .word 0x40011000
  8214. 8003db0: 58020400 .word 0x58020400
  8215. 08003db4 <HAL_InitTick>:
  8216. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  8217. * @param TickPriority: Tick interrupt priority.
  8218. * @retval HAL status
  8219. */
  8220. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  8221. {
  8222. 8003db4: b580 push {r7, lr}
  8223. 8003db6: b090 sub sp, #64 @ 0x40
  8224. 8003db8: af00 add r7, sp, #0
  8225. 8003dba: 6078 str r0, [r7, #4]
  8226. uint32_t uwTimclock, uwAPB1Prescaler;
  8227. uint32_t uwPrescalerValue;
  8228. uint32_t pFLatency;
  8229. /*Configure the TIM6 IRQ priority */
  8230. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  8231. 8003dbc: 687b ldr r3, [r7, #4]
  8232. 8003dbe: 2b0f cmp r3, #15
  8233. 8003dc0: d827 bhi.n 8003e12 <HAL_InitTick+0x5e>
  8234. {
  8235. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  8236. 8003dc2: 2200 movs r2, #0
  8237. 8003dc4: 6879 ldr r1, [r7, #4]
  8238. 8003dc6: 2036 movs r0, #54 @ 0x36
  8239. 8003dc8: f003 f9de bl 8007188 <HAL_NVIC_SetPriority>
  8240. /* Enable the TIM6 global Interrupt */
  8241. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8242. 8003dcc: 2036 movs r0, #54 @ 0x36
  8243. 8003dce: f003 f9f5 bl 80071bc <HAL_NVIC_EnableIRQ>
  8244. uwTickPrio = TickPriority;
  8245. 8003dd2: 4a29 ldr r2, [pc, #164] @ (8003e78 <HAL_InitTick+0xc4>)
  8246. 8003dd4: 687b ldr r3, [r7, #4]
  8247. 8003dd6: 6013 str r3, [r2, #0]
  8248. {
  8249. return HAL_ERROR;
  8250. }
  8251. /* Enable TIM6 clock */
  8252. __HAL_RCC_TIM6_CLK_ENABLE();
  8253. 8003dd8: 4b28 ldr r3, [pc, #160] @ (8003e7c <HAL_InitTick+0xc8>)
  8254. 8003dda: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8255. 8003dde: 4a27 ldr r2, [pc, #156] @ (8003e7c <HAL_InitTick+0xc8>)
  8256. 8003de0: f043 0310 orr.w r3, r3, #16
  8257. 8003de4: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8258. 8003de8: 4b24 ldr r3, [pc, #144] @ (8003e7c <HAL_InitTick+0xc8>)
  8259. 8003dea: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8260. 8003dee: f003 0310 and.w r3, r3, #16
  8261. 8003df2: 60fb str r3, [r7, #12]
  8262. 8003df4: 68fb ldr r3, [r7, #12]
  8263. /* Get clock configuration */
  8264. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  8265. 8003df6: f107 0210 add.w r2, r7, #16
  8266. 8003dfa: f107 0314 add.w r3, r7, #20
  8267. 8003dfe: 4611 mov r1, r2
  8268. 8003e00: 4618 mov r0, r3
  8269. 8003e02: f008 f839 bl 800be78 <HAL_RCC_GetClockConfig>
  8270. /* Get APB1 prescaler */
  8271. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  8272. 8003e06: 6abb ldr r3, [r7, #40] @ 0x28
  8273. 8003e08: 63bb str r3, [r7, #56] @ 0x38
  8274. /* Compute TIM6 clock */
  8275. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  8276. 8003e0a: 6bbb ldr r3, [r7, #56] @ 0x38
  8277. 8003e0c: 2b00 cmp r3, #0
  8278. 8003e0e: d106 bne.n 8003e1e <HAL_InitTick+0x6a>
  8279. 8003e10: e001 b.n 8003e16 <HAL_InitTick+0x62>
  8280. return HAL_ERROR;
  8281. 8003e12: 2301 movs r3, #1
  8282. 8003e14: e02b b.n 8003e6e <HAL_InitTick+0xba>
  8283. {
  8284. uwTimclock = HAL_RCC_GetPCLK1Freq();
  8285. 8003e16: f008 f803 bl 800be20 <HAL_RCC_GetPCLK1Freq>
  8286. 8003e1a: 63f8 str r0, [r7, #60] @ 0x3c
  8287. 8003e1c: e004 b.n 8003e28 <HAL_InitTick+0x74>
  8288. }
  8289. else
  8290. {
  8291. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  8292. 8003e1e: f007 ffff bl 800be20 <HAL_RCC_GetPCLK1Freq>
  8293. 8003e22: 4603 mov r3, r0
  8294. 8003e24: 005b lsls r3, r3, #1
  8295. 8003e26: 63fb str r3, [r7, #60] @ 0x3c
  8296. }
  8297. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  8298. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  8299. 8003e28: 6bfb ldr r3, [r7, #60] @ 0x3c
  8300. 8003e2a: 4a15 ldr r2, [pc, #84] @ (8003e80 <HAL_InitTick+0xcc>)
  8301. 8003e2c: fba2 2303 umull r2, r3, r2, r3
  8302. 8003e30: 0c9b lsrs r3, r3, #18
  8303. 8003e32: 3b01 subs r3, #1
  8304. 8003e34: 637b str r3, [r7, #52] @ 0x34
  8305. /* Initialize TIM6 */
  8306. htim6.Instance = TIM6;
  8307. 8003e36: 4b13 ldr r3, [pc, #76] @ (8003e84 <HAL_InitTick+0xd0>)
  8308. 8003e38: 4a13 ldr r2, [pc, #76] @ (8003e88 <HAL_InitTick+0xd4>)
  8309. 8003e3a: 601a str r2, [r3, #0]
  8310. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  8311. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  8312. + ClockDivision = 0
  8313. + Counter direction = Up
  8314. */
  8315. htim6.Init.Period = (1000000U / 1000U) - 1U;
  8316. 8003e3c: 4b11 ldr r3, [pc, #68] @ (8003e84 <HAL_InitTick+0xd0>)
  8317. 8003e3e: f240 32e7 movw r2, #999 @ 0x3e7
  8318. 8003e42: 60da str r2, [r3, #12]
  8319. htim6.Init.Prescaler = uwPrescalerValue;
  8320. 8003e44: 4a0f ldr r2, [pc, #60] @ (8003e84 <HAL_InitTick+0xd0>)
  8321. 8003e46: 6b7b ldr r3, [r7, #52] @ 0x34
  8322. 8003e48: 6053 str r3, [r2, #4]
  8323. htim6.Init.ClockDivision = 0;
  8324. 8003e4a: 4b0e ldr r3, [pc, #56] @ (8003e84 <HAL_InitTick+0xd0>)
  8325. 8003e4c: 2200 movs r2, #0
  8326. 8003e4e: 611a str r2, [r3, #16]
  8327. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  8328. 8003e50: 4b0c ldr r3, [pc, #48] @ (8003e84 <HAL_InitTick+0xd0>)
  8329. 8003e52: 2200 movs r2, #0
  8330. 8003e54: 609a str r2, [r3, #8]
  8331. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  8332. 8003e56: 480b ldr r0, [pc, #44] @ (8003e84 <HAL_InitTick+0xd0>)
  8333. 8003e58: f00a fd94 bl 800e984 <HAL_TIM_Base_Init>
  8334. 8003e5c: 4603 mov r3, r0
  8335. 8003e5e: 2b00 cmp r3, #0
  8336. 8003e60: d104 bne.n 8003e6c <HAL_InitTick+0xb8>
  8337. {
  8338. /* Start the TIM time Base generation in interrupt mode */
  8339. return HAL_TIM_Base_Start_IT(&htim6);
  8340. 8003e62: 4808 ldr r0, [pc, #32] @ (8003e84 <HAL_InitTick+0xd0>)
  8341. 8003e64: f00a fe56 bl 800eb14 <HAL_TIM_Base_Start_IT>
  8342. 8003e68: 4603 mov r3, r0
  8343. 8003e6a: e000 b.n 8003e6e <HAL_InitTick+0xba>
  8344. }
  8345. /* Return function status */
  8346. return HAL_ERROR;
  8347. 8003e6c: 2301 movs r3, #1
  8348. }
  8349. 8003e6e: 4618 mov r0, r3
  8350. 8003e70: 3740 adds r7, #64 @ 0x40
  8351. 8003e72: 46bd mov sp, r7
  8352. 8003e74: bd80 pop {r7, pc}
  8353. 8003e76: bf00 nop
  8354. 8003e78: 2400003c .word 0x2400003c
  8355. 8003e7c: 58024400 .word 0x58024400
  8356. 8003e80: 431bde83 .word 0x431bde83
  8357. 8003e84: 24000864 .word 0x24000864
  8358. 8003e88: 40001000 .word 0x40001000
  8359. 08003e8c <NMI_Handler>:
  8360. /******************************************************************************/
  8361. /**
  8362. * @brief This function handles Non maskable interrupt.
  8363. */
  8364. void NMI_Handler(void)
  8365. {
  8366. 8003e8c: b480 push {r7}
  8367. 8003e8e: af00 add r7, sp, #0
  8368. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  8369. /* USER CODE END NonMaskableInt_IRQn 0 */
  8370. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  8371. while (1)
  8372. 8003e90: bf00 nop
  8373. 8003e92: e7fd b.n 8003e90 <NMI_Handler+0x4>
  8374. 08003e94 <HardFault_Handler>:
  8375. /**
  8376. * @brief This function handles Hard fault interrupt.
  8377. */
  8378. void HardFault_Handler(void)
  8379. {
  8380. 8003e94: b480 push {r7}
  8381. 8003e96: af00 add r7, sp, #0
  8382. /* USER CODE BEGIN HardFault_IRQn 0 */
  8383. /* USER CODE END HardFault_IRQn 0 */
  8384. while (1)
  8385. 8003e98: bf00 nop
  8386. 8003e9a: e7fd b.n 8003e98 <HardFault_Handler+0x4>
  8387. 08003e9c <MemManage_Handler>:
  8388. /**
  8389. * @brief This function handles Memory management fault.
  8390. */
  8391. void MemManage_Handler(void)
  8392. {
  8393. 8003e9c: b480 push {r7}
  8394. 8003e9e: af00 add r7, sp, #0
  8395. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  8396. /* USER CODE END MemoryManagement_IRQn 0 */
  8397. while (1)
  8398. 8003ea0: bf00 nop
  8399. 8003ea2: e7fd b.n 8003ea0 <MemManage_Handler+0x4>
  8400. 08003ea4 <BusFault_Handler>:
  8401. /**
  8402. * @brief This function handles Pre-fetch fault, memory access fault.
  8403. */
  8404. void BusFault_Handler(void)
  8405. {
  8406. 8003ea4: b480 push {r7}
  8407. 8003ea6: af00 add r7, sp, #0
  8408. /* USER CODE BEGIN BusFault_IRQn 0 */
  8409. /* USER CODE END BusFault_IRQn 0 */
  8410. while (1)
  8411. 8003ea8: bf00 nop
  8412. 8003eaa: e7fd b.n 8003ea8 <BusFault_Handler+0x4>
  8413. 08003eac <UsageFault_Handler>:
  8414. /**
  8415. * @brief This function handles Undefined instruction or illegal state.
  8416. */
  8417. void UsageFault_Handler(void)
  8418. {
  8419. 8003eac: b480 push {r7}
  8420. 8003eae: af00 add r7, sp, #0
  8421. /* USER CODE BEGIN UsageFault_IRQn 0 */
  8422. /* USER CODE END UsageFault_IRQn 0 */
  8423. while (1)
  8424. 8003eb0: bf00 nop
  8425. 8003eb2: e7fd b.n 8003eb0 <UsageFault_Handler+0x4>
  8426. 08003eb4 <DebugMon_Handler>:
  8427. /**
  8428. * @brief This function handles Debug monitor.
  8429. */
  8430. void DebugMon_Handler(void)
  8431. {
  8432. 8003eb4: b480 push {r7}
  8433. 8003eb6: af00 add r7, sp, #0
  8434. /* USER CODE END DebugMonitor_IRQn 0 */
  8435. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  8436. /* USER CODE END DebugMonitor_IRQn 1 */
  8437. }
  8438. 8003eb8: bf00 nop
  8439. 8003eba: 46bd mov sp, r7
  8440. 8003ebc: f85d 7b04 ldr.w r7, [sp], #4
  8441. 8003ec0: 4770 bx lr
  8442. 08003ec2 <RCC_IRQHandler>:
  8443. /**
  8444. * @brief This function handles RCC global interrupt.
  8445. */
  8446. void RCC_IRQHandler(void)
  8447. {
  8448. 8003ec2: b480 push {r7}
  8449. 8003ec4: af00 add r7, sp, #0
  8450. /* USER CODE END RCC_IRQn 0 */
  8451. /* USER CODE BEGIN RCC_IRQn 1 */
  8452. /* USER CODE END RCC_IRQn 1 */
  8453. }
  8454. 8003ec6: bf00 nop
  8455. 8003ec8: 46bd mov sp, r7
  8456. 8003eca: f85d 7b04 ldr.w r7, [sp], #4
  8457. 8003ece: 4770 bx lr
  8458. 08003ed0 <DMA1_Stream0_IRQHandler>:
  8459. /**
  8460. * @brief This function handles DMA1 stream0 global interrupt.
  8461. */
  8462. void DMA1_Stream0_IRQHandler(void)
  8463. {
  8464. 8003ed0: b580 push {r7, lr}
  8465. 8003ed2: af00 add r7, sp, #0
  8466. /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */
  8467. /* USER CODE END DMA1_Stream0_IRQn 0 */
  8468. HAL_DMA_IRQHandler(&hdma_adc1);
  8469. 8003ed4: 4802 ldr r0, [pc, #8] @ (8003ee0 <DMA1_Stream0_IRQHandler+0x10>)
  8470. 8003ed6: f005 f977 bl 80091c8 <HAL_DMA_IRQHandler>
  8471. /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */
  8472. /* USER CODE END DMA1_Stream0_IRQn 1 */
  8473. }
  8474. 8003eda: bf00 nop
  8475. 8003edc: bd80 pop {r7, pc}
  8476. 8003ede: bf00 nop
  8477. 8003ee0: 2400026c .word 0x2400026c
  8478. 08003ee4 <DMA1_Stream1_IRQHandler>:
  8479. /**
  8480. * @brief This function handles DMA1 stream1 global interrupt.
  8481. */
  8482. void DMA1_Stream1_IRQHandler(void)
  8483. {
  8484. 8003ee4: b580 push {r7, lr}
  8485. 8003ee6: af00 add r7, sp, #0
  8486. /* USER CODE BEGIN DMA1_Stream1_IRQn 0 */
  8487. /* USER CODE END DMA1_Stream1_IRQn 0 */
  8488. HAL_DMA_IRQHandler(&hdma_adc2);
  8489. 8003ee8: 4802 ldr r0, [pc, #8] @ (8003ef4 <DMA1_Stream1_IRQHandler+0x10>)
  8490. 8003eea: f005 f96d bl 80091c8 <HAL_DMA_IRQHandler>
  8491. /* USER CODE BEGIN DMA1_Stream1_IRQn 1 */
  8492. /* USER CODE END DMA1_Stream1_IRQn 1 */
  8493. }
  8494. 8003eee: bf00 nop
  8495. 8003ef0: bd80 pop {r7, pc}
  8496. 8003ef2: bf00 nop
  8497. 8003ef4: 240002e4 .word 0x240002e4
  8498. 08003ef8 <DMA1_Stream2_IRQHandler>:
  8499. /**
  8500. * @brief This function handles DMA1 stream2 global interrupt.
  8501. */
  8502. void DMA1_Stream2_IRQHandler(void)
  8503. {
  8504. 8003ef8: b580 push {r7, lr}
  8505. 8003efa: af00 add r7, sp, #0
  8506. /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */
  8507. /* USER CODE END DMA1_Stream2_IRQn 0 */
  8508. HAL_DMA_IRQHandler(&hdma_adc3);
  8509. 8003efc: 4802 ldr r0, [pc, #8] @ (8003f08 <DMA1_Stream2_IRQHandler+0x10>)
  8510. 8003efe: f005 f963 bl 80091c8 <HAL_DMA_IRQHandler>
  8511. /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */
  8512. /* USER CODE END DMA1_Stream2_IRQn 1 */
  8513. }
  8514. 8003f02: bf00 nop
  8515. 8003f04: bd80 pop {r7, pc}
  8516. 8003f06: bf00 nop
  8517. 8003f08: 2400035c .word 0x2400035c
  8518. 08003f0c <EXTI9_5_IRQHandler>:
  8519. /**
  8520. * @brief This function handles EXTI line[9:5] interrupts.
  8521. */
  8522. void EXTI9_5_IRQHandler(void)
  8523. {
  8524. 8003f0c: b580 push {r7, lr}
  8525. 8003f0e: af00 add r7, sp, #0
  8526. /* USER CODE BEGIN EXTI9_5_IRQn 0 */
  8527. /* USER CODE END EXTI9_5_IRQn 0 */
  8528. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8);
  8529. 8003f10: f44f 7080 mov.w r0, #256 @ 0x100
  8530. 8003f14: f006 fe65 bl 800abe2 <HAL_GPIO_EXTI_IRQHandler>
  8531. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_9);
  8532. 8003f18: f44f 7000 mov.w r0, #512 @ 0x200
  8533. 8003f1c: f006 fe61 bl 800abe2 <HAL_GPIO_EXTI_IRQHandler>
  8534. /* USER CODE BEGIN EXTI9_5_IRQn 1 */
  8535. /* USER CODE END EXTI9_5_IRQn 1 */
  8536. }
  8537. 8003f20: bf00 nop
  8538. 8003f22: bd80 pop {r7, pc}
  8539. 08003f24 <TIM2_IRQHandler>:
  8540. /**
  8541. * @brief This function handles TIM2 global interrupt.
  8542. */
  8543. void TIM2_IRQHandler(void)
  8544. {
  8545. 8003f24: b580 push {r7, lr}
  8546. 8003f26: af00 add r7, sp, #0
  8547. /* USER CODE BEGIN TIM2_IRQn 0 */
  8548. /* USER CODE END TIM2_IRQn 0 */
  8549. HAL_TIM_IRQHandler(&htim2);
  8550. 8003f28: 4802 ldr r0, [pc, #8] @ (8003f34 <TIM2_IRQHandler+0x10>)
  8551. 8003f2a: f00b fa19 bl 800f360 <HAL_TIM_IRQHandler>
  8552. /* USER CODE BEGIN TIM2_IRQn 1 */
  8553. /* USER CODE END TIM2_IRQn 1 */
  8554. }
  8555. 8003f2e: bf00 nop
  8556. 8003f30: bd80 pop {r7, pc}
  8557. 8003f32: bf00 nop
  8558. 8003f34: 24000498 .word 0x24000498
  8559. 08003f38 <TIM4_IRQHandler>:
  8560. /**
  8561. * @brief This function handles TIM4 global interrupt.
  8562. */
  8563. void TIM4_IRQHandler(void)
  8564. {
  8565. 8003f38: b580 push {r7, lr}
  8566. 8003f3a: af00 add r7, sp, #0
  8567. /* USER CODE BEGIN TIM4_IRQn 0 */
  8568. /* USER CODE END TIM4_IRQn 0 */
  8569. HAL_TIM_IRQHandler(&htim4);
  8570. 8003f3c: 4802 ldr r0, [pc, #8] @ (8003f48 <TIM4_IRQHandler+0x10>)
  8571. 8003f3e: f00b fa0f bl 800f360 <HAL_TIM_IRQHandler>
  8572. /* USER CODE BEGIN TIM4_IRQn 1 */
  8573. /* USER CODE END TIM4_IRQn 1 */
  8574. }
  8575. 8003f42: bf00 nop
  8576. 8003f44: bd80 pop {r7, pc}
  8577. 8003f46: bf00 nop
  8578. 8003f48: 24000530 .word 0x24000530
  8579. 08003f4c <USART1_IRQHandler>:
  8580. /**
  8581. * @brief This function handles USART1 global interrupt.
  8582. */
  8583. void USART1_IRQHandler(void)
  8584. {
  8585. 8003f4c: b580 push {r7, lr}
  8586. 8003f4e: af00 add r7, sp, #0
  8587. /* USER CODE BEGIN USART1_IRQn 0 */
  8588. /* USER CODE END USART1_IRQn 0 */
  8589. HAL_UART_IRQHandler(&huart1);
  8590. 8003f50: 4802 ldr r0, [pc, #8] @ (8003f5c <USART1_IRQHandler+0x10>)
  8591. 8003f52: f00c fe57 bl 8010c04 <HAL_UART_IRQHandler>
  8592. /* USER CODE BEGIN USART1_IRQn 1 */
  8593. /* USER CODE END USART1_IRQn 1 */
  8594. }
  8595. 8003f56: bf00 nop
  8596. 8003f58: bd80 pop {r7, pc}
  8597. 8003f5a: bf00 nop
  8598. 8003f5c: 24000610 .word 0x24000610
  8599. 08003f60 <EXTI15_10_IRQHandler>:
  8600. /**
  8601. * @brief This function handles EXTI line[15:10] interrupts.
  8602. */
  8603. void EXTI15_10_IRQHandler(void)
  8604. {
  8605. 8003f60: b580 push {r7, lr}
  8606. 8003f62: af00 add r7, sp, #0
  8607. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  8608. /* USER CODE END EXTI15_10_IRQn 0 */
  8609. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_10);
  8610. 8003f64: f44f 6080 mov.w r0, #1024 @ 0x400
  8611. 8003f68: f006 fe3b bl 800abe2 <HAL_GPIO_EXTI_IRQHandler>
  8612. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11);
  8613. 8003f6c: f44f 6000 mov.w r0, #2048 @ 0x800
  8614. 8003f70: f006 fe37 bl 800abe2 <HAL_GPIO_EXTI_IRQHandler>
  8615. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_12);
  8616. 8003f74: f44f 5080 mov.w r0, #4096 @ 0x1000
  8617. 8003f78: f006 fe33 bl 800abe2 <HAL_GPIO_EXTI_IRQHandler>
  8618. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
  8619. 8003f7c: f44f 5000 mov.w r0, #8192 @ 0x2000
  8620. 8003f80: f006 fe2f bl 800abe2 <HAL_GPIO_EXTI_IRQHandler>
  8621. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  8622. /* USER CODE END EXTI15_10_IRQn 1 */
  8623. }
  8624. 8003f84: bf00 nop
  8625. 8003f86: bd80 pop {r7, pc}
  8626. 08003f88 <TIM6_DAC_IRQHandler>:
  8627. /**
  8628. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  8629. */
  8630. void TIM6_DAC_IRQHandler(void)
  8631. {
  8632. 8003f88: b580 push {r7, lr}
  8633. 8003f8a: af00 add r7, sp, #0
  8634. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  8635. /* USER CODE END TIM6_DAC_IRQn 0 */
  8636. if (hdac1.State != HAL_DAC_STATE_RESET) {
  8637. 8003f8c: 4b06 ldr r3, [pc, #24] @ (8003fa8 <TIM6_DAC_IRQHandler+0x20>)
  8638. 8003f8e: 791b ldrb r3, [r3, #4]
  8639. 8003f90: b2db uxtb r3, r3
  8640. 8003f92: 2b00 cmp r3, #0
  8641. 8003f94: d002 beq.n 8003f9c <TIM6_DAC_IRQHandler+0x14>
  8642. HAL_DAC_IRQHandler(&hdac1);
  8643. 8003f96: 4804 ldr r0, [pc, #16] @ (8003fa8 <TIM6_DAC_IRQHandler+0x20>)
  8644. 8003f98: f003 fc15 bl 80077c6 <HAL_DAC_IRQHandler>
  8645. }
  8646. HAL_TIM_IRQHandler(&htim6);
  8647. 8003f9c: 4803 ldr r0, [pc, #12] @ (8003fac <TIM6_DAC_IRQHandler+0x24>)
  8648. 8003f9e: f00b f9df bl 800f360 <HAL_TIM_IRQHandler>
  8649. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  8650. /* USER CODE END TIM6_DAC_IRQn 1 */
  8651. }
  8652. 8003fa2: bf00 nop
  8653. 8003fa4: bd80 pop {r7, pc}
  8654. 8003fa6: bf00 nop
  8655. 8003fa8: 24000424 .word 0x24000424
  8656. 8003fac: 24000864 .word 0x24000864
  8657. 08003fb0 <UART8_IRQHandler>:
  8658. /**
  8659. * @brief This function handles UART8 global interrupt.
  8660. */
  8661. void UART8_IRQHandler(void)
  8662. {
  8663. 8003fb0: b580 push {r7, lr}
  8664. 8003fb2: af00 add r7, sp, #0
  8665. /* USER CODE BEGIN UART8_IRQn 0 */
  8666. /* USER CODE END UART8_IRQn 0 */
  8667. HAL_UART_IRQHandler(&huart8);
  8668. 8003fb4: 4802 ldr r0, [pc, #8] @ (8003fc0 <UART8_IRQHandler+0x10>)
  8669. 8003fb6: f00c fe25 bl 8010c04 <HAL_UART_IRQHandler>
  8670. /* USER CODE BEGIN UART8_IRQn 1 */
  8671. /* USER CODE END UART8_IRQn 1 */
  8672. }
  8673. 8003fba: bf00 nop
  8674. 8003fbc: bd80 pop {r7, pc}
  8675. 8003fbe: bf00 nop
  8676. 8003fc0: 2400057c .word 0x2400057c
  8677. 08003fc4 <_read>:
  8678. _kill(status, -1);
  8679. while (1) {} /* Make sure we hang here */
  8680. }
  8681. __attribute__((weak)) int _read(int file, char *ptr, int len)
  8682. {
  8683. 8003fc4: b580 push {r7, lr}
  8684. 8003fc6: b086 sub sp, #24
  8685. 8003fc8: af00 add r7, sp, #0
  8686. 8003fca: 60f8 str r0, [r7, #12]
  8687. 8003fcc: 60b9 str r1, [r7, #8]
  8688. 8003fce: 607a str r2, [r7, #4]
  8689. (void)file;
  8690. int DataIdx;
  8691. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8692. 8003fd0: 2300 movs r3, #0
  8693. 8003fd2: 617b str r3, [r7, #20]
  8694. 8003fd4: e00a b.n 8003fec <_read+0x28>
  8695. {
  8696. *ptr++ = __io_getchar();
  8697. 8003fd6: f3af 8000 nop.w
  8698. 8003fda: 4601 mov r1, r0
  8699. 8003fdc: 68bb ldr r3, [r7, #8]
  8700. 8003fde: 1c5a adds r2, r3, #1
  8701. 8003fe0: 60ba str r2, [r7, #8]
  8702. 8003fe2: b2ca uxtb r2, r1
  8703. 8003fe4: 701a strb r2, [r3, #0]
  8704. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8705. 8003fe6: 697b ldr r3, [r7, #20]
  8706. 8003fe8: 3301 adds r3, #1
  8707. 8003fea: 617b str r3, [r7, #20]
  8708. 8003fec: 697a ldr r2, [r7, #20]
  8709. 8003fee: 687b ldr r3, [r7, #4]
  8710. 8003ff0: 429a cmp r2, r3
  8711. 8003ff2: dbf0 blt.n 8003fd6 <_read+0x12>
  8712. }
  8713. return len;
  8714. 8003ff4: 687b ldr r3, [r7, #4]
  8715. }
  8716. 8003ff6: 4618 mov r0, r3
  8717. 8003ff8: 3718 adds r7, #24
  8718. 8003ffa: 46bd mov sp, r7
  8719. 8003ffc: bd80 pop {r7, pc}
  8720. 08003ffe <_write>:
  8721. __attribute__((weak)) int _write(int file, char *ptr, int len)
  8722. {
  8723. 8003ffe: b580 push {r7, lr}
  8724. 8004000: b086 sub sp, #24
  8725. 8004002: af00 add r7, sp, #0
  8726. 8004004: 60f8 str r0, [r7, #12]
  8727. 8004006: 60b9 str r1, [r7, #8]
  8728. 8004008: 607a str r2, [r7, #4]
  8729. (void)file;
  8730. int DataIdx;
  8731. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8732. 800400a: 2300 movs r3, #0
  8733. 800400c: 617b str r3, [r7, #20]
  8734. 800400e: e009 b.n 8004024 <_write+0x26>
  8735. {
  8736. __io_putchar(*ptr++);
  8737. 8004010: 68bb ldr r3, [r7, #8]
  8738. 8004012: 1c5a adds r2, r3, #1
  8739. 8004014: 60ba str r2, [r7, #8]
  8740. 8004016: 781b ldrb r3, [r3, #0]
  8741. 8004018: 4618 mov r0, r3
  8742. 800401a: f7fc fb4b bl 80006b4 <__io_putchar>
  8743. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8744. 800401e: 697b ldr r3, [r7, #20]
  8745. 8004020: 3301 adds r3, #1
  8746. 8004022: 617b str r3, [r7, #20]
  8747. 8004024: 697a ldr r2, [r7, #20]
  8748. 8004026: 687b ldr r3, [r7, #4]
  8749. 8004028: 429a cmp r2, r3
  8750. 800402a: dbf1 blt.n 8004010 <_write+0x12>
  8751. }
  8752. return len;
  8753. 800402c: 687b ldr r3, [r7, #4]
  8754. }
  8755. 800402e: 4618 mov r0, r3
  8756. 8004030: 3718 adds r7, #24
  8757. 8004032: 46bd mov sp, r7
  8758. 8004034: bd80 pop {r7, pc}
  8759. 08004036 <_close>:
  8760. int _close(int file)
  8761. {
  8762. 8004036: b480 push {r7}
  8763. 8004038: b083 sub sp, #12
  8764. 800403a: af00 add r7, sp, #0
  8765. 800403c: 6078 str r0, [r7, #4]
  8766. (void)file;
  8767. return -1;
  8768. 800403e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8769. }
  8770. 8004042: 4618 mov r0, r3
  8771. 8004044: 370c adds r7, #12
  8772. 8004046: 46bd mov sp, r7
  8773. 8004048: f85d 7b04 ldr.w r7, [sp], #4
  8774. 800404c: 4770 bx lr
  8775. 0800404e <_fstat>:
  8776. int _fstat(int file, struct stat *st)
  8777. {
  8778. 800404e: b480 push {r7}
  8779. 8004050: b083 sub sp, #12
  8780. 8004052: af00 add r7, sp, #0
  8781. 8004054: 6078 str r0, [r7, #4]
  8782. 8004056: 6039 str r1, [r7, #0]
  8783. (void)file;
  8784. st->st_mode = S_IFCHR;
  8785. 8004058: 683b ldr r3, [r7, #0]
  8786. 800405a: f44f 5200 mov.w r2, #8192 @ 0x2000
  8787. 800405e: 605a str r2, [r3, #4]
  8788. return 0;
  8789. 8004060: 2300 movs r3, #0
  8790. }
  8791. 8004062: 4618 mov r0, r3
  8792. 8004064: 370c adds r7, #12
  8793. 8004066: 46bd mov sp, r7
  8794. 8004068: f85d 7b04 ldr.w r7, [sp], #4
  8795. 800406c: 4770 bx lr
  8796. 0800406e <_isatty>:
  8797. int _isatty(int file)
  8798. {
  8799. 800406e: b480 push {r7}
  8800. 8004070: b083 sub sp, #12
  8801. 8004072: af00 add r7, sp, #0
  8802. 8004074: 6078 str r0, [r7, #4]
  8803. (void)file;
  8804. return 1;
  8805. 8004076: 2301 movs r3, #1
  8806. }
  8807. 8004078: 4618 mov r0, r3
  8808. 800407a: 370c adds r7, #12
  8809. 800407c: 46bd mov sp, r7
  8810. 800407e: f85d 7b04 ldr.w r7, [sp], #4
  8811. 8004082: 4770 bx lr
  8812. 08004084 <_lseek>:
  8813. int _lseek(int file, int ptr, int dir)
  8814. {
  8815. 8004084: b480 push {r7}
  8816. 8004086: b085 sub sp, #20
  8817. 8004088: af00 add r7, sp, #0
  8818. 800408a: 60f8 str r0, [r7, #12]
  8819. 800408c: 60b9 str r1, [r7, #8]
  8820. 800408e: 607a str r2, [r7, #4]
  8821. (void)file;
  8822. (void)ptr;
  8823. (void)dir;
  8824. return 0;
  8825. 8004090: 2300 movs r3, #0
  8826. }
  8827. 8004092: 4618 mov r0, r3
  8828. 8004094: 3714 adds r7, #20
  8829. 8004096: 46bd mov sp, r7
  8830. 8004098: f85d 7b04 ldr.w r7, [sp], #4
  8831. 800409c: 4770 bx lr
  8832. ...
  8833. 080040a0 <_sbrk>:
  8834. *
  8835. * @param incr Memory size
  8836. * @return Pointer to allocated memory
  8837. */
  8838. void *_sbrk(ptrdiff_t incr)
  8839. {
  8840. 80040a0: b580 push {r7, lr}
  8841. 80040a2: b086 sub sp, #24
  8842. 80040a4: af00 add r7, sp, #0
  8843. 80040a6: 6078 str r0, [r7, #4]
  8844. extern uint8_t _end; /* Symbol defined in the linker script */
  8845. extern uint8_t _estack; /* Symbol defined in the linker script */
  8846. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  8847. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  8848. 80040a8: 4a14 ldr r2, [pc, #80] @ (80040fc <_sbrk+0x5c>)
  8849. 80040aa: 4b15 ldr r3, [pc, #84] @ (8004100 <_sbrk+0x60>)
  8850. 80040ac: 1ad3 subs r3, r2, r3
  8851. 80040ae: 617b str r3, [r7, #20]
  8852. const uint8_t *max_heap = (uint8_t *)stack_limit;
  8853. 80040b0: 697b ldr r3, [r7, #20]
  8854. 80040b2: 613b str r3, [r7, #16]
  8855. uint8_t *prev_heap_end;
  8856. /* Initialize heap end at first call */
  8857. if (NULL == __sbrk_heap_end)
  8858. 80040b4: 4b13 ldr r3, [pc, #76] @ (8004104 <_sbrk+0x64>)
  8859. 80040b6: 681b ldr r3, [r3, #0]
  8860. 80040b8: 2b00 cmp r3, #0
  8861. 80040ba: d102 bne.n 80040c2 <_sbrk+0x22>
  8862. {
  8863. __sbrk_heap_end = &_end;
  8864. 80040bc: 4b11 ldr r3, [pc, #68] @ (8004104 <_sbrk+0x64>)
  8865. 80040be: 4a12 ldr r2, [pc, #72] @ (8004108 <_sbrk+0x68>)
  8866. 80040c0: 601a str r2, [r3, #0]
  8867. }
  8868. /* Protect heap from growing into the reserved MSP stack */
  8869. if (__sbrk_heap_end + incr > max_heap)
  8870. 80040c2: 4b10 ldr r3, [pc, #64] @ (8004104 <_sbrk+0x64>)
  8871. 80040c4: 681a ldr r2, [r3, #0]
  8872. 80040c6: 687b ldr r3, [r7, #4]
  8873. 80040c8: 4413 add r3, r2
  8874. 80040ca: 693a ldr r2, [r7, #16]
  8875. 80040cc: 429a cmp r2, r3
  8876. 80040ce: d207 bcs.n 80040e0 <_sbrk+0x40>
  8877. {
  8878. errno = ENOMEM;
  8879. 80040d0: f013 fe16 bl 8017d00 <__errno>
  8880. 80040d4: 4603 mov r3, r0
  8881. 80040d6: 220c movs r2, #12
  8882. 80040d8: 601a str r2, [r3, #0]
  8883. return (void *)-1;
  8884. 80040da: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8885. 80040de: e009 b.n 80040f4 <_sbrk+0x54>
  8886. }
  8887. prev_heap_end = __sbrk_heap_end;
  8888. 80040e0: 4b08 ldr r3, [pc, #32] @ (8004104 <_sbrk+0x64>)
  8889. 80040e2: 681b ldr r3, [r3, #0]
  8890. 80040e4: 60fb str r3, [r7, #12]
  8891. __sbrk_heap_end += incr;
  8892. 80040e6: 4b07 ldr r3, [pc, #28] @ (8004104 <_sbrk+0x64>)
  8893. 80040e8: 681a ldr r2, [r3, #0]
  8894. 80040ea: 687b ldr r3, [r7, #4]
  8895. 80040ec: 4413 add r3, r2
  8896. 80040ee: 4a05 ldr r2, [pc, #20] @ (8004104 <_sbrk+0x64>)
  8897. 80040f0: 6013 str r3, [r2, #0]
  8898. return (void *)prev_heap_end;
  8899. 80040f2: 68fb ldr r3, [r7, #12]
  8900. }
  8901. 80040f4: 4618 mov r0, r3
  8902. 80040f6: 3718 adds r7, #24
  8903. 80040f8: 46bd mov sp, r7
  8904. 80040fa: bd80 pop {r7, pc}
  8905. 80040fc: 24060000 .word 0x24060000
  8906. 8004100: 00000400 .word 0x00000400
  8907. 8004104: 240008b0 .word 0x240008b0
  8908. 8004108: 24012de0 .word 0x24012de0
  8909. 0800410c <SystemInit>:
  8910. * configuration.
  8911. * @param None
  8912. * @retval None
  8913. */
  8914. void SystemInit (void)
  8915. {
  8916. 800410c: b480 push {r7}
  8917. 800410e: af00 add r7, sp, #0
  8918. __IO uint32_t tmpreg;
  8919. #endif /* DATA_IN_D2_SRAM */
  8920. /* FPU settings ------------------------------------------------------------*/
  8921. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  8922. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  8923. 8004110: 4b37 ldr r3, [pc, #220] @ (80041f0 <SystemInit+0xe4>)
  8924. 8004112: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  8925. 8004116: 4a36 ldr r2, [pc, #216] @ (80041f0 <SystemInit+0xe4>)
  8926. 8004118: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  8927. 800411c: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  8928. #endif
  8929. /* Reset the RCC clock configuration to the default reset state ------------*/
  8930. /* Increasing the CPU frequency */
  8931. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  8932. 8004120: 4b34 ldr r3, [pc, #208] @ (80041f4 <SystemInit+0xe8>)
  8933. 8004122: 681b ldr r3, [r3, #0]
  8934. 8004124: f003 030f and.w r3, r3, #15
  8935. 8004128: 2b06 cmp r3, #6
  8936. 800412a: d807 bhi.n 800413c <SystemInit+0x30>
  8937. {
  8938. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  8939. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  8940. 800412c: 4b31 ldr r3, [pc, #196] @ (80041f4 <SystemInit+0xe8>)
  8941. 800412e: 681b ldr r3, [r3, #0]
  8942. 8004130: f023 030f bic.w r3, r3, #15
  8943. 8004134: 4a2f ldr r2, [pc, #188] @ (80041f4 <SystemInit+0xe8>)
  8944. 8004136: f043 0307 orr.w r3, r3, #7
  8945. 800413a: 6013 str r3, [r2, #0]
  8946. }
  8947. /* Set HSION bit */
  8948. RCC->CR |= RCC_CR_HSION;
  8949. 800413c: 4b2e ldr r3, [pc, #184] @ (80041f8 <SystemInit+0xec>)
  8950. 800413e: 681b ldr r3, [r3, #0]
  8951. 8004140: 4a2d ldr r2, [pc, #180] @ (80041f8 <SystemInit+0xec>)
  8952. 8004142: f043 0301 orr.w r3, r3, #1
  8953. 8004146: 6013 str r3, [r2, #0]
  8954. /* Reset CFGR register */
  8955. RCC->CFGR = 0x00000000;
  8956. 8004148: 4b2b ldr r3, [pc, #172] @ (80041f8 <SystemInit+0xec>)
  8957. 800414a: 2200 movs r2, #0
  8958. 800414c: 611a str r2, [r3, #16]
  8959. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  8960. RCC->CR &= 0xEAF6ED7FU;
  8961. 800414e: 4b2a ldr r3, [pc, #168] @ (80041f8 <SystemInit+0xec>)
  8962. 8004150: 681a ldr r2, [r3, #0]
  8963. 8004152: 4929 ldr r1, [pc, #164] @ (80041f8 <SystemInit+0xec>)
  8964. 8004154: 4b29 ldr r3, [pc, #164] @ (80041fc <SystemInit+0xf0>)
  8965. 8004156: 4013 ands r3, r2
  8966. 8004158: 600b str r3, [r1, #0]
  8967. /* Decreasing the number of wait states because of lower CPU frequency */
  8968. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  8969. 800415a: 4b26 ldr r3, [pc, #152] @ (80041f4 <SystemInit+0xe8>)
  8970. 800415c: 681b ldr r3, [r3, #0]
  8971. 800415e: f003 0308 and.w r3, r3, #8
  8972. 8004162: 2b00 cmp r3, #0
  8973. 8004164: d007 beq.n 8004176 <SystemInit+0x6a>
  8974. {
  8975. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  8976. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  8977. 8004166: 4b23 ldr r3, [pc, #140] @ (80041f4 <SystemInit+0xe8>)
  8978. 8004168: 681b ldr r3, [r3, #0]
  8979. 800416a: f023 030f bic.w r3, r3, #15
  8980. 800416e: 4a21 ldr r2, [pc, #132] @ (80041f4 <SystemInit+0xe8>)
  8981. 8004170: f043 0307 orr.w r3, r3, #7
  8982. 8004174: 6013 str r3, [r2, #0]
  8983. }
  8984. #if defined(D3_SRAM_BASE)
  8985. /* Reset D1CFGR register */
  8986. RCC->D1CFGR = 0x00000000;
  8987. 8004176: 4b20 ldr r3, [pc, #128] @ (80041f8 <SystemInit+0xec>)
  8988. 8004178: 2200 movs r2, #0
  8989. 800417a: 619a str r2, [r3, #24]
  8990. /* Reset D2CFGR register */
  8991. RCC->D2CFGR = 0x00000000;
  8992. 800417c: 4b1e ldr r3, [pc, #120] @ (80041f8 <SystemInit+0xec>)
  8993. 800417e: 2200 movs r2, #0
  8994. 8004180: 61da str r2, [r3, #28]
  8995. /* Reset D3CFGR register */
  8996. RCC->D3CFGR = 0x00000000;
  8997. 8004182: 4b1d ldr r3, [pc, #116] @ (80041f8 <SystemInit+0xec>)
  8998. 8004184: 2200 movs r2, #0
  8999. 8004186: 621a str r2, [r3, #32]
  9000. /* Reset SRDCFGR register */
  9001. RCC->SRDCFGR = 0x00000000;
  9002. #endif
  9003. /* Reset PLLCKSELR register */
  9004. RCC->PLLCKSELR = 0x02020200;
  9005. 8004188: 4b1b ldr r3, [pc, #108] @ (80041f8 <SystemInit+0xec>)
  9006. 800418a: 4a1d ldr r2, [pc, #116] @ (8004200 <SystemInit+0xf4>)
  9007. 800418c: 629a str r2, [r3, #40] @ 0x28
  9008. /* Reset PLLCFGR register */
  9009. RCC->PLLCFGR = 0x01FF0000;
  9010. 800418e: 4b1a ldr r3, [pc, #104] @ (80041f8 <SystemInit+0xec>)
  9011. 8004190: 4a1c ldr r2, [pc, #112] @ (8004204 <SystemInit+0xf8>)
  9012. 8004192: 62da str r2, [r3, #44] @ 0x2c
  9013. /* Reset PLL1DIVR register */
  9014. RCC->PLL1DIVR = 0x01010280;
  9015. 8004194: 4b18 ldr r3, [pc, #96] @ (80041f8 <SystemInit+0xec>)
  9016. 8004196: 4a1c ldr r2, [pc, #112] @ (8004208 <SystemInit+0xfc>)
  9017. 8004198: 631a str r2, [r3, #48] @ 0x30
  9018. /* Reset PLL1FRACR register */
  9019. RCC->PLL1FRACR = 0x00000000;
  9020. 800419a: 4b17 ldr r3, [pc, #92] @ (80041f8 <SystemInit+0xec>)
  9021. 800419c: 2200 movs r2, #0
  9022. 800419e: 635a str r2, [r3, #52] @ 0x34
  9023. /* Reset PLL2DIVR register */
  9024. RCC->PLL2DIVR = 0x01010280;
  9025. 80041a0: 4b15 ldr r3, [pc, #84] @ (80041f8 <SystemInit+0xec>)
  9026. 80041a2: 4a19 ldr r2, [pc, #100] @ (8004208 <SystemInit+0xfc>)
  9027. 80041a4: 639a str r2, [r3, #56] @ 0x38
  9028. /* Reset PLL2FRACR register */
  9029. RCC->PLL2FRACR = 0x00000000;
  9030. 80041a6: 4b14 ldr r3, [pc, #80] @ (80041f8 <SystemInit+0xec>)
  9031. 80041a8: 2200 movs r2, #0
  9032. 80041aa: 63da str r2, [r3, #60] @ 0x3c
  9033. /* Reset PLL3DIVR register */
  9034. RCC->PLL3DIVR = 0x01010280;
  9035. 80041ac: 4b12 ldr r3, [pc, #72] @ (80041f8 <SystemInit+0xec>)
  9036. 80041ae: 4a16 ldr r2, [pc, #88] @ (8004208 <SystemInit+0xfc>)
  9037. 80041b0: 641a str r2, [r3, #64] @ 0x40
  9038. /* Reset PLL3FRACR register */
  9039. RCC->PLL3FRACR = 0x00000000;
  9040. 80041b2: 4b11 ldr r3, [pc, #68] @ (80041f8 <SystemInit+0xec>)
  9041. 80041b4: 2200 movs r2, #0
  9042. 80041b6: 645a str r2, [r3, #68] @ 0x44
  9043. /* Reset HSEBYP bit */
  9044. RCC->CR &= 0xFFFBFFFFU;
  9045. 80041b8: 4b0f ldr r3, [pc, #60] @ (80041f8 <SystemInit+0xec>)
  9046. 80041ba: 681b ldr r3, [r3, #0]
  9047. 80041bc: 4a0e ldr r2, [pc, #56] @ (80041f8 <SystemInit+0xec>)
  9048. 80041be: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  9049. 80041c2: 6013 str r3, [r2, #0]
  9050. /* Disable all interrupts */
  9051. RCC->CIER = 0x00000000;
  9052. 80041c4: 4b0c ldr r3, [pc, #48] @ (80041f8 <SystemInit+0xec>)
  9053. 80041c6: 2200 movs r2, #0
  9054. 80041c8: 661a str r2, [r3, #96] @ 0x60
  9055. #if (STM32H7_DEV_ID == 0x450UL)
  9056. /* dual core CM7 or single core line */
  9057. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  9058. 80041ca: 4b10 ldr r3, [pc, #64] @ (800420c <SystemInit+0x100>)
  9059. 80041cc: 681a ldr r2, [r3, #0]
  9060. 80041ce: 4b10 ldr r3, [pc, #64] @ (8004210 <SystemInit+0x104>)
  9061. 80041d0: 4013 ands r3, r2
  9062. 80041d2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  9063. 80041d6: d202 bcs.n 80041de <SystemInit+0xd2>
  9064. {
  9065. /* if stm32h7 revY*/
  9066. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  9067. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  9068. 80041d8: 4b0e ldr r3, [pc, #56] @ (8004214 <SystemInit+0x108>)
  9069. 80041da: 2201 movs r2, #1
  9070. 80041dc: 601a str r2, [r3, #0]
  9071. /*
  9072. * Disable the FMC bank1 (enabled after reset).
  9073. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  9074. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  9075. */
  9076. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  9077. 80041de: 4b0e ldr r3, [pc, #56] @ (8004218 <SystemInit+0x10c>)
  9078. 80041e0: f243 02d2 movw r2, #12498 @ 0x30d2
  9079. 80041e4: 601a str r2, [r3, #0]
  9080. #if defined(USER_VECT_TAB_ADDRESS)
  9081. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  9082. #endif /* USER_VECT_TAB_ADDRESS */
  9083. #endif /*DUAL_CORE && CORE_CM4*/
  9084. }
  9085. 80041e6: bf00 nop
  9086. 80041e8: 46bd mov sp, r7
  9087. 80041ea: f85d 7b04 ldr.w r7, [sp], #4
  9088. 80041ee: 4770 bx lr
  9089. 80041f0: e000ed00 .word 0xe000ed00
  9090. 80041f4: 52002000 .word 0x52002000
  9091. 80041f8: 58024400 .word 0x58024400
  9092. 80041fc: eaf6ed7f .word 0xeaf6ed7f
  9093. 8004200: 02020200 .word 0x02020200
  9094. 8004204: 01ff0000 .word 0x01ff0000
  9095. 8004208: 01010280 .word 0x01010280
  9096. 800420c: 5c001000 .word 0x5c001000
  9097. 8004210: ffff0000 .word 0xffff0000
  9098. 8004214: 51008108 .word 0x51008108
  9099. 8004218: 52004000 .word 0x52004000
  9100. 0800421c <__NVIC_SystemReset>:
  9101. {
  9102. 800421c: b480 push {r7}
  9103. 800421e: af00 add r7, sp, #0
  9104. __ASM volatile ("dsb 0xF":::"memory");
  9105. 8004220: f3bf 8f4f dsb sy
  9106. }
  9107. 8004224: bf00 nop
  9108. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  9109. 8004226: 4b06 ldr r3, [pc, #24] @ (8004240 <__NVIC_SystemReset+0x24>)
  9110. 8004228: 68db ldr r3, [r3, #12]
  9111. 800422a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  9112. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  9113. 800422e: 4904 ldr r1, [pc, #16] @ (8004240 <__NVIC_SystemReset+0x24>)
  9114. 8004230: 4b04 ldr r3, [pc, #16] @ (8004244 <__NVIC_SystemReset+0x28>)
  9115. 8004232: 4313 orrs r3, r2
  9116. 8004234: 60cb str r3, [r1, #12]
  9117. __ASM volatile ("dsb 0xF":::"memory");
  9118. 8004236: f3bf 8f4f dsb sy
  9119. }
  9120. 800423a: bf00 nop
  9121. __NOP();
  9122. 800423c: bf00 nop
  9123. 800423e: e7fd b.n 800423c <__NVIC_SystemReset+0x20>
  9124. 8004240: e000ed00 .word 0xe000ed00
  9125. 8004244: 05fa0004 .word 0x05fa0004
  9126. 08004248 <UartTasksInit>:
  9127. uint32_t slaveLastSeen[SLAVES_COUNT] = { 0 };
  9128. extern RNG_HandleTypeDef hrng;
  9129. void UartTasksInit (void) {
  9130. 8004248: b580 push {r7, lr}
  9131. 800424a: af00 add r7, sp, #0
  9132. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  9133. 800424c: 4b13 ldr r3, [pc, #76] @ (800429c <UartTasksInit+0x54>)
  9134. 800424e: 4a14 ldr r2, [pc, #80] @ (80042a0 <UartTasksInit+0x58>)
  9135. 8004250: 601a str r2, [r3, #0]
  9136. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  9137. 8004252: 4b12 ldr r3, [pc, #72] @ (800429c <UartTasksInit+0x54>)
  9138. 8004254: f44f 7280 mov.w r2, #256 @ 0x100
  9139. 8004258: 809a strh r2, [r3, #4]
  9140. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  9141. 800425a: 4b10 ldr r3, [pc, #64] @ (800429c <UartTasksInit+0x54>)
  9142. 800425c: 4a11 ldr r2, [pc, #68] @ (80042a4 <UartTasksInit+0x5c>)
  9143. 800425e: 609a str r2, [r3, #8]
  9144. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  9145. 8004260: 4b0e ldr r3, [pc, #56] @ (800429c <UartTasksInit+0x54>)
  9146. 8004262: f44f 7280 mov.w r2, #256 @ 0x100
  9147. 8004266: 809a strh r2, [r3, #4]
  9148. uart1TaskData.frameData = uart1TaskFrameData;
  9149. 8004268: 4b0c ldr r3, [pc, #48] @ (800429c <UartTasksInit+0x54>)
  9150. 800426a: 4a0f ldr r2, [pc, #60] @ (80042a8 <UartTasksInit+0x60>)
  9151. 800426c: 611a str r2, [r3, #16]
  9152. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  9153. 800426e: 4b0b ldr r3, [pc, #44] @ (800429c <UartTasksInit+0x54>)
  9154. 8004270: f44f 7280 mov.w r2, #256 @ 0x100
  9155. 8004274: 829a strh r2, [r3, #20]
  9156. uart1TaskData.huart = &huart1;
  9157. 8004276: 4b09 ldr r3, [pc, #36] @ (800429c <UartTasksInit+0x54>)
  9158. 8004278: 4a0c ldr r2, [pc, #48] @ (80042ac <UartTasksInit+0x64>)
  9159. 800427a: 631a str r2, [r3, #48] @ 0x30
  9160. uart1TaskData.uartNumber = 1;
  9161. 800427c: 4b07 ldr r3, [pc, #28] @ (800429c <UartTasksInit+0x54>)
  9162. 800427e: 2201 movs r2, #1
  9163. 8004280: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9164. uart1TaskData.processDataCb = Uart1ReceivedDataProcessCallback;
  9165. 8004284: 4b05 ldr r3, [pc, #20] @ (800429c <UartTasksInit+0x54>)
  9166. 8004286: 4a0a ldr r2, [pc, #40] @ (80042b0 <UartTasksInit+0x68>)
  9167. 8004288: 629a str r2, [r3, #40] @ 0x28
  9168. uart1TaskData.processRxDataMsgBuffer = NULL;
  9169. 800428a: 4b04 ldr r3, [pc, #16] @ (800429c <UartTasksInit+0x54>)
  9170. 800428c: 2200 movs r2, #0
  9171. 800428e: 625a str r2, [r3, #36] @ 0x24
  9172. UartTaskCreate (&uart1TaskData);
  9173. 8004290: 4802 ldr r0, [pc, #8] @ (800429c <UartTasksInit+0x54>)
  9174. 8004292: f000 f80f bl 80042b4 <UartTaskCreate>
  9175. }
  9176. 8004296: bf00 nop
  9177. 8004298: bd80 pop {r7, pc}
  9178. 800429a: bf00 nop
  9179. 800429c: 24000bb4 .word 0x24000bb4
  9180. 80042a0: 240008b4 .word 0x240008b4
  9181. 80042a4: 240009b4 .word 0x240009b4
  9182. 80042a8: 24000ab4 .word 0x24000ab4
  9183. 80042ac: 24000610 .word 0x24000610
  9184. 80042b0: 080049b9 .word 0x080049b9
  9185. 080042b4 <UartTaskCreate>:
  9186. void UartTaskCreate (UartTaskData* uartTaskData) {
  9187. 80042b4: b580 push {r7, lr}
  9188. 80042b6: b08c sub sp, #48 @ 0x30
  9189. 80042b8: af00 add r7, sp, #0
  9190. 80042ba: 6078 str r0, [r7, #4]
  9191. osThreadAttr_t osThreadAttrRxUart = { 0 };
  9192. 80042bc: f107 030c add.w r3, r7, #12
  9193. 80042c0: 2224 movs r2, #36 @ 0x24
  9194. 80042c2: 2100 movs r1, #0
  9195. 80042c4: 4618 mov r0, r3
  9196. 80042c6: f013 fc76 bl 8017bb6 <memset>
  9197. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  9198. 80042ca: f44f 6380 mov.w r3, #1024 @ 0x400
  9199. 80042ce: 623b str r3, [r7, #32]
  9200. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  9201. 80042d0: 2328 movs r3, #40 @ 0x28
  9202. 80042d2: 627b str r3, [r7, #36] @ 0x24
  9203. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  9204. 80042d4: f107 030c add.w r3, r7, #12
  9205. 80042d8: 461a mov r2, r3
  9206. 80042da: 6879 ldr r1, [r7, #4]
  9207. 80042dc: 4804 ldr r0, [pc, #16] @ (80042f0 <UartTaskCreate+0x3c>)
  9208. 80042de: f00f f9ff bl 80136e0 <osThreadNew>
  9209. 80042e2: 4602 mov r2, r0
  9210. 80042e4: 687b ldr r3, [r7, #4]
  9211. 80042e6: 619a str r2, [r3, #24]
  9212. }
  9213. 80042e8: bf00 nop
  9214. 80042ea: 3730 adds r7, #48 @ 0x30
  9215. 80042ec: 46bd mov sp, r7
  9216. 80042ee: bd80 pop {r7, pc}
  9217. 80042f0: 08004409 .word 0x08004409
  9218. 080042f4 <HAL_UART_RxCpltCallback>:
  9219. uart8TaskData.huart = &huart8;
  9220. uart8TaskData.uartNumber = 8;
  9221. uart8TaskData.uartRecieveTaskHandle = osThreadNew (UartRxTask, &uart8TaskData, &osThreadAttrRxUart);
  9222. }
  9223. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  9224. 80042f4: b480 push {r7}
  9225. 80042f6: b083 sub sp, #12
  9226. 80042f8: af00 add r7, sp, #0
  9227. 80042fa: 6078 str r0, [r7, #4]
  9228. }
  9229. 80042fc: bf00 nop
  9230. 80042fe: 370c adds r7, #12
  9231. 8004300: 46bd mov sp, r7
  9232. 8004302: f85d 7b04 ldr.w r7, [sp], #4
  9233. 8004306: 4770 bx lr
  9234. 08004308 <HAL_UARTEx_RxEventCallback>:
  9235. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  9236. 8004308: b580 push {r7, lr}
  9237. 800430a: b082 sub sp, #8
  9238. 800430c: af00 add r7, sp, #0
  9239. 800430e: 6078 str r0, [r7, #4]
  9240. 8004310: 460b mov r3, r1
  9241. 8004312: 807b strh r3, [r7, #2]
  9242. if (huart->Instance == USART1) {
  9243. 8004314: 687b ldr r3, [r7, #4]
  9244. 8004316: 681b ldr r3, [r3, #0]
  9245. 8004318: 4a0c ldr r2, [pc, #48] @ (800434c <HAL_UARTEx_RxEventCallback+0x44>)
  9246. 800431a: 4293 cmp r3, r2
  9247. 800431c: d106 bne.n 800432c <HAL_UARTEx_RxEventCallback+0x24>
  9248. HandleUartRxCallback (&uart1TaskData, huart, Size);
  9249. 800431e: 887b ldrh r3, [r7, #2]
  9250. 8004320: 461a mov r2, r3
  9251. 8004322: 6879 ldr r1, [r7, #4]
  9252. 8004324: 480a ldr r0, [pc, #40] @ (8004350 <HAL_UARTEx_RxEventCallback+0x48>)
  9253. 8004326: f000 f823 bl 8004370 <HandleUartRxCallback>
  9254. } else if (huart->Instance == UART8) {
  9255. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9256. }
  9257. }
  9258. 800432a: e00a b.n 8004342 <HAL_UARTEx_RxEventCallback+0x3a>
  9259. } else if (huart->Instance == UART8) {
  9260. 800432c: 687b ldr r3, [r7, #4]
  9261. 800432e: 681b ldr r3, [r3, #0]
  9262. 8004330: 4a08 ldr r2, [pc, #32] @ (8004354 <HAL_UARTEx_RxEventCallback+0x4c>)
  9263. 8004332: 4293 cmp r3, r2
  9264. 8004334: d105 bne.n 8004342 <HAL_UARTEx_RxEventCallback+0x3a>
  9265. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9266. 8004336: 887b ldrh r3, [r7, #2]
  9267. 8004338: 461a mov r2, r3
  9268. 800433a: 6879 ldr r1, [r7, #4]
  9269. 800433c: 4806 ldr r0, [pc, #24] @ (8004358 <HAL_UARTEx_RxEventCallback+0x50>)
  9270. 800433e: f000 f817 bl 8004370 <HandleUartRxCallback>
  9271. }
  9272. 8004342: bf00 nop
  9273. 8004344: 3708 adds r7, #8
  9274. 8004346: 46bd mov sp, r7
  9275. 8004348: bd80 pop {r7, pc}
  9276. 800434a: bf00 nop
  9277. 800434c: 40011000 .word 0x40011000
  9278. 8004350: 24000bb4 .word 0x24000bb4
  9279. 8004354: 40007c00 .word 0x40007c00
  9280. 8004358: 24000bec .word 0x24000bec
  9281. 0800435c <HAL_UART_TxCpltCallback>:
  9282. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  9283. 800435c: b480 push {r7}
  9284. 800435e: b083 sub sp, #12
  9285. 8004360: af00 add r7, sp, #0
  9286. 8004362: 6078 str r0, [r7, #4]
  9287. if (huart->Instance == UART8) {
  9288. }
  9289. }
  9290. 8004364: bf00 nop
  9291. 8004366: 370c adds r7, #12
  9292. 8004368: 46bd mov sp, r7
  9293. 800436a: f85d 7b04 ldr.w r7, [sp], #4
  9294. 800436e: 4770 bx lr
  9295. 08004370 <HandleUartRxCallback>:
  9296. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  9297. 8004370: b580 push {r7, lr}
  9298. 8004372: b088 sub sp, #32
  9299. 8004374: af02 add r7, sp, #8
  9300. 8004376: 60f8 str r0, [r7, #12]
  9301. 8004378: 60b9 str r1, [r7, #8]
  9302. 800437a: 4613 mov r3, r2
  9303. 800437c: 80fb strh r3, [r7, #6]
  9304. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  9305. 800437e: 2300 movs r3, #0
  9306. 8004380: 617b str r3, [r7, #20]
  9307. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9308. 8004382: 68fb ldr r3, [r7, #12]
  9309. 8004384: 6a1b ldr r3, [r3, #32]
  9310. 8004386: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9311. 800438a: 4618 mov r0, r3
  9312. 800438c: f00f fbd3 bl 8013b36 <osMutexAcquire>
  9313. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  9314. 8004390: 68fb ldr r3, [r7, #12]
  9315. 8004392: 691b ldr r3, [r3, #16]
  9316. 8004394: 68fa ldr r2, [r7, #12]
  9317. 8004396: 8ad2 ldrh r2, [r2, #22]
  9318. 8004398: 1898 adds r0, r3, r2
  9319. 800439a: 68fb ldr r3, [r7, #12]
  9320. 800439c: 681b ldr r3, [r3, #0]
  9321. 800439e: 88fa ldrh r2, [r7, #6]
  9322. 80043a0: 4619 mov r1, r3
  9323. 80043a2: f013 fcda bl 8017d5a <memcpy>
  9324. uartTaskData->frameBytesCount += Size;
  9325. 80043a6: 68fb ldr r3, [r7, #12]
  9326. 80043a8: 8ada ldrh r2, [r3, #22]
  9327. 80043aa: 88fb ldrh r3, [r7, #6]
  9328. 80043ac: 4413 add r3, r2
  9329. 80043ae: b29a uxth r2, r3
  9330. 80043b0: 68fb ldr r3, [r7, #12]
  9331. 80043b2: 82da strh r2, [r3, #22]
  9332. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9333. 80043b4: 68fb ldr r3, [r7, #12]
  9334. 80043b6: 6a1b ldr r3, [r3, #32]
  9335. 80043b8: 4618 mov r0, r3
  9336. 80043ba: f00f fc07 bl 8013bcc <osMutexRelease>
  9337. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  9338. 80043be: 68fb ldr r3, [r7, #12]
  9339. 80043c0: 6998 ldr r0, [r3, #24]
  9340. 80043c2: 88f9 ldrh r1, [r7, #6]
  9341. 80043c4: f107 0314 add.w r3, r7, #20
  9342. 80043c8: 9300 str r3, [sp, #0]
  9343. 80043ca: 2300 movs r3, #0
  9344. 80043cc: 2203 movs r2, #3
  9345. 80043ce: f012 f8f7 bl 80165c0 <xTaskGenericNotifyFromISR>
  9346. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9347. 80043d2: 68fb ldr r3, [r7, #12]
  9348. 80043d4: 6b18 ldr r0, [r3, #48] @ 0x30
  9349. 80043d6: 68fb ldr r3, [r7, #12]
  9350. 80043d8: 6819 ldr r1, [r3, #0]
  9351. 80043da: 68fb ldr r3, [r7, #12]
  9352. 80043dc: 889b ldrh r3, [r3, #4]
  9353. 80043de: 461a mov r2, r3
  9354. 80043e0: f00f f851 bl 8013486 <HAL_UARTEx_ReceiveToIdle_IT>
  9355. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  9356. 80043e4: 697b ldr r3, [r7, #20]
  9357. 80043e6: 2b00 cmp r3, #0
  9358. 80043e8: d007 beq.n 80043fa <HandleUartRxCallback+0x8a>
  9359. 80043ea: 4b06 ldr r3, [pc, #24] @ (8004404 <HandleUartRxCallback+0x94>)
  9360. 80043ec: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  9361. 80043f0: 601a str r2, [r3, #0]
  9362. 80043f2: f3bf 8f4f dsb sy
  9363. 80043f6: f3bf 8f6f isb sy
  9364. }
  9365. 80043fa: bf00 nop
  9366. 80043fc: 3718 adds r7, #24
  9367. 80043fe: 46bd mov sp, r7
  9368. 8004400: bd80 pop {r7, pc}
  9369. 8004402: bf00 nop
  9370. 8004404: e000ed04 .word 0xe000ed04
  9371. 08004408 <UartRxTask>:
  9372. void UartRxTask (void* argument) {
  9373. 8004408: b580 push {r7, lr}
  9374. 800440a: b0d2 sub sp, #328 @ 0x148
  9375. 800440c: af02 add r7, sp, #8
  9376. 800440e: f507 73a0 add.w r3, r7, #320 @ 0x140
  9377. 8004412: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9378. 8004416: 6018 str r0, [r3, #0]
  9379. UartTaskData* uartTaskData = (UartTaskData*)argument;
  9380. 8004418: f507 73a0 add.w r3, r7, #320 @ 0x140
  9381. 800441c: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9382. 8004420: 681b ldr r3, [r3, #0]
  9383. 8004422: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  9384. SerialProtocolFrameData spFrameData = { 0 };
  9385. 8004426: f507 73a0 add.w r3, r7, #320 @ 0x140
  9386. 800442a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9387. 800442e: 4618 mov r0, r3
  9388. 8004430: f44f 7386 mov.w r3, #268 @ 0x10c
  9389. 8004434: 461a mov r2, r3
  9390. 8004436: 2100 movs r1, #0
  9391. 8004438: f013 fbbd bl 8017bb6 <memset>
  9392. uint32_t bytesRec = 0;
  9393. 800443c: f507 73a0 add.w r3, r7, #320 @ 0x140
  9394. 8004440: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9395. 8004444: 2200 movs r2, #0
  9396. 8004446: 601a str r2, [r3, #0]
  9397. uint32_t crc = 0;
  9398. 8004448: 2300 movs r3, #0
  9399. 800444a: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  9400. uint16_t frameCommandRaw = 0x0000;
  9401. 800444e: 2300 movs r3, #0
  9402. 8004450: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9403. uint16_t frameBytesCount = 0;
  9404. 8004454: 2300 movs r3, #0
  9405. 8004456: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9406. uint16_t frameCrc = 0;
  9407. 800445a: 2300 movs r3, #0
  9408. 800445c: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9409. uint16_t frameTotalLength = 0;
  9410. 8004460: 2300 movs r3, #0
  9411. 8004462: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9412. uint16_t dataToSend = 0;
  9413. 8004466: 2300 movs r3, #0
  9414. 8004468: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9415. portBASE_TYPE crcPass = pdFAIL;
  9416. 800446c: 2300 movs r3, #0
  9417. 800446e: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9418. portBASE_TYPE proceed = pdFALSE;
  9419. 8004472: 2300 movs r3, #0
  9420. 8004474: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9421. portBASE_TYPE frameTimeout = pdFAIL;
  9422. 8004478: 2300 movs r3, #0
  9423. 800447a: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9424. enum SerialReceiverStates receverState = srWaitForHeader;
  9425. 800447e: 2300 movs r3, #0
  9426. 8004480: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9427. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  9428. 8004484: 2000 movs r0, #0
  9429. 8004486: f00f fad0 bl 8013a2a <osMutexNew>
  9430. 800448a: 4602 mov r2, r0
  9431. 800448c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9432. 8004490: 621a str r2, [r3, #32]
  9433. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9434. 8004492: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9435. 8004496: 6b18 ldr r0, [r3, #48] @ 0x30
  9436. 8004498: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9437. 800449c: 6819 ldr r1, [r3, #0]
  9438. 800449e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9439. 80044a2: 889b ldrh r3, [r3, #4]
  9440. 80044a4: 461a mov r2, r3
  9441. 80044a6: f00e ffee bl 8013486 <HAL_UARTEx_ReceiveToIdle_IT>
  9442. while (pdTRUE) {
  9443. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9444. 80044aa: f107 020c add.w r2, r7, #12
  9445. 80044ae: f44f 63fa mov.w r3, #2000 @ 0x7d0
  9446. 80044b2: 2100 movs r1, #0
  9447. 80044b4: 2000 movs r0, #0
  9448. 80044b6: f011 ff61 bl 801637c <xTaskNotifyWait>
  9449. 80044ba: 4603 mov r3, r0
  9450. 80044bc: 2b00 cmp r3, #0
  9451. 80044be: bf0c ite eq
  9452. 80044c0: 2301 moveq r3, #1
  9453. 80044c2: 2300 movne r3, #0
  9454. 80044c4: b2db uxtb r3, r3
  9455. 80044c6: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9456. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9457. 80044ca: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9458. 80044ce: 6a1b ldr r3, [r3, #32]
  9459. 80044d0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9460. 80044d4: 4618 mov r0, r3
  9461. 80044d6: f00f fb2e bl 8013b36 <osMutexAcquire>
  9462. frameBytesCount = uartTaskData->frameBytesCount;
  9463. 80044da: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9464. 80044de: 8adb ldrh r3, [r3, #22]
  9465. 80044e0: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9466. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9467. 80044e4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9468. 80044e8: 6a1b ldr r3, [r3, #32]
  9469. 80044ea: 4618 mov r0, r3
  9470. 80044ec: f00f fb6e bl 8013bcc <osMutexRelease>
  9471. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  9472. 80044f0: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9473. 80044f4: 2b01 cmp r3, #1
  9474. 80044f6: d10a bne.n 800450e <UartRxTask+0x106>
  9475. 80044f8: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9476. 80044fc: 2b00 cmp r3, #0
  9477. 80044fe: d006 beq.n 800450e <UartRxTask+0x106>
  9478. receverState = srFail;
  9479. 8004500: 2304 movs r3, #4
  9480. 8004502: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9481. proceed = pdTRUE;
  9482. 8004506: 2301 movs r3, #1
  9483. 8004508: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9484. 800450c: e029 b.n 8004562 <UartRxTask+0x15a>
  9485. } else {
  9486. if (frameTimeout == pdFALSE) {
  9487. 800450e: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9488. 8004512: 2b00 cmp r3, #0
  9489. 8004514: d111 bne.n 800453a <UartRxTask+0x132>
  9490. proceed = pdTRUE;
  9491. 8004516: 2301 movs r3, #1
  9492. 8004518: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9493. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  9494. 800451c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9495. 8004520: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9496. 8004524: 4619 mov r1, r3
  9497. 8004526: f507 73a0 add.w r3, r7, #320 @ 0x140
  9498. 800452a: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9499. 800452e: 681b ldr r3, [r3, #0]
  9500. 8004530: 461a mov r2, r3
  9501. 8004532: 48c1 ldr r0, [pc, #772] @ (8004838 <UartRxTask+0x430>)
  9502. 8004534: f013 faea bl 8017b0c <iprintf>
  9503. 8004538: e22f b.n 800499a <UartRxTask+0x592>
  9504. } else {
  9505. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  9506. 800453a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9507. 800453e: 6b1b ldr r3, [r3, #48] @ 0x30
  9508. 8004540: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  9509. 8004544: 2b20 cmp r3, #32
  9510. 8004546: f040 8228 bne.w 800499a <UartRxTask+0x592>
  9511. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9512. 800454a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9513. 800454e: 6b18 ldr r0, [r3, #48] @ 0x30
  9514. 8004550: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9515. 8004554: 6819 ldr r1, [r3, #0]
  9516. 8004556: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9517. 800455a: 889b ldrh r3, [r3, #4]
  9518. 800455c: 461a mov r2, r3
  9519. 800455e: f00e ff92 bl 8013486 <HAL_UARTEx_ReceiveToIdle_IT>
  9520. }
  9521. }
  9522. }
  9523. while (proceed) {
  9524. 8004562: e21a b.n 800499a <UartRxTask+0x592>
  9525. switch (receverState) {
  9526. 8004564: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  9527. 8004568: 2b04 cmp r3, #4
  9528. 800456a: f200 81f1 bhi.w 8004950 <UartRxTask+0x548>
  9529. 800456e: a201 add r2, pc, #4 @ (adr r2, 8004574 <UartRxTask+0x16c>)
  9530. 8004570: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  9531. 8004574: 08004589 .word 0x08004589
  9532. 8004578: 080046eb .word 0x080046eb
  9533. 800457c: 080046cf .word 0x080046cf
  9534. 8004580: 0800478b .word 0x0800478b
  9535. 8004584: 08004845 .word 0x08004845
  9536. case srWaitForHeader:
  9537. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9538. 8004588: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9539. 800458c: 6a1b ldr r3, [r3, #32]
  9540. 800458e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9541. 8004592: 4618 mov r0, r3
  9542. 8004594: f00f facf bl 8013b36 <osMutexAcquire>
  9543. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  9544. 8004598: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9545. 800459c: 691b ldr r3, [r3, #16]
  9546. 800459e: 781b ldrb r3, [r3, #0]
  9547. 80045a0: 2baa cmp r3, #170 @ 0xaa
  9548. 80045a2: f040 8082 bne.w 80046aa <UartRxTask+0x2a2>
  9549. if (frameBytesCount > FRAME_ID_LENGTH) {
  9550. 80045a6: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9551. 80045aa: 2b02 cmp r3, #2
  9552. 80045ac: d914 bls.n 80045d8 <UartRxTask+0x1d0>
  9553. spFrameData.frameHeader.frameId =
  9554. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  9555. 80045ae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9556. 80045b2: 691b ldr r3, [r3, #16]
  9557. 80045b4: 3302 adds r3, #2
  9558. 80045b6: 781b ldrb r3, [r3, #0]
  9559. 80045b8: 021b lsls r3, r3, #8
  9560. 80045ba: b21a sxth r2, r3
  9561. 80045bc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9562. 80045c0: 691b ldr r3, [r3, #16]
  9563. 80045c2: 3301 adds r3, #1
  9564. 80045c4: 781b ldrb r3, [r3, #0]
  9565. 80045c6: b21b sxth r3, r3
  9566. 80045c8: 4313 orrs r3, r2
  9567. 80045ca: b21b sxth r3, r3
  9568. 80045cc: b29a uxth r2, r3
  9569. spFrameData.frameHeader.frameId =
  9570. 80045ce: f507 73a0 add.w r3, r7, #320 @ 0x140
  9571. 80045d2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9572. 80045d6: 801a strh r2, [r3, #0]
  9573. }
  9574. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  9575. 80045d8: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9576. 80045dc: 2b04 cmp r3, #4
  9577. 80045de: d923 bls.n 8004628 <UartRxTask+0x220>
  9578. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  9579. 80045e0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9580. 80045e4: 691b ldr r3, [r3, #16]
  9581. 80045e6: 3304 adds r3, #4
  9582. 80045e8: 781b ldrb r3, [r3, #0]
  9583. 80045ea: 021b lsls r3, r3, #8
  9584. 80045ec: b21a sxth r2, r3
  9585. 80045ee: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9586. 80045f2: 691b ldr r3, [r3, #16]
  9587. 80045f4: 3303 adds r3, #3
  9588. 80045f6: 781b ldrb r3, [r3, #0]
  9589. 80045f8: b21b sxth r3, r3
  9590. 80045fa: 4313 orrs r3, r2
  9591. 80045fc: b21b sxth r3, r3
  9592. 80045fe: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9593. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  9594. 8004602: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  9595. 8004606: b2da uxtb r2, r3
  9596. 8004608: f507 73a0 add.w r3, r7, #320 @ 0x140
  9597. 800460c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9598. 8004610: 709a strb r2, [r3, #2]
  9599. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  9600. 8004612: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  9601. 8004616: 13db asrs r3, r3, #15
  9602. 8004618: b21b sxth r3, r3
  9603. 800461a: f003 0201 and.w r2, r3, #1
  9604. 800461e: f507 73a0 add.w r3, r7, #320 @ 0x140
  9605. 8004622: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9606. 8004626: 609a str r2, [r3, #8]
  9607. }
  9608. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  9609. 8004628: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9610. 800462c: 2b05 cmp r3, #5
  9611. 800462e: d913 bls.n 8004658 <UartRxTask+0x250>
  9612. 8004630: f507 73a0 add.w r3, r7, #320 @ 0x140
  9613. 8004634: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9614. 8004638: 789b ldrb r3, [r3, #2]
  9615. 800463a: f403 4300 and.w r3, r3, #32768 @ 0x8000
  9616. 800463e: 2b00 cmp r3, #0
  9617. 8004640: d00a beq.n 8004658 <UartRxTask+0x250>
  9618. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  9619. 8004642: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9620. 8004646: 691b ldr r3, [r3, #16]
  9621. 8004648: 3305 adds r3, #5
  9622. 800464a: 781b ldrb r3, [r3, #0]
  9623. 800464c: b25a sxtb r2, r3
  9624. 800464e: f507 73a0 add.w r3, r7, #320 @ 0x140
  9625. 8004652: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9626. 8004656: 70da strb r2, [r3, #3]
  9627. }
  9628. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  9629. 8004658: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9630. 800465c: 2b07 cmp r3, #7
  9631. 800465e: d920 bls.n 80046a2 <UartRxTask+0x29a>
  9632. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  9633. 8004660: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9634. 8004664: 691b ldr r3, [r3, #16]
  9635. 8004666: 3306 adds r3, #6
  9636. 8004668: 781b ldrb r3, [r3, #0]
  9637. 800466a: 021b lsls r3, r3, #8
  9638. 800466c: b21a sxth r2, r3
  9639. 800466e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9640. 8004672: 691b ldr r3, [r3, #16]
  9641. 8004674: 3305 adds r3, #5
  9642. 8004676: 781b ldrb r3, [r3, #0]
  9643. 8004678: b21b sxth r3, r3
  9644. 800467a: 4313 orrs r3, r2
  9645. 800467c: b21b sxth r3, r3
  9646. 800467e: b29a uxth r2, r3
  9647. 8004680: f507 73a0 add.w r3, r7, #320 @ 0x140
  9648. 8004684: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9649. 8004688: 809a strh r2, [r3, #4]
  9650. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  9651. 800468a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9652. 800468e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9653. 8004692: 889b ldrh r3, [r3, #4]
  9654. 8004694: 330a adds r3, #10
  9655. 8004696: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9656. receverState = srRecieveData;
  9657. 800469a: 2302 movs r3, #2
  9658. 800469c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9659. 80046a0: e00e b.n 80046c0 <UartRxTask+0x2b8>
  9660. } else {
  9661. proceed = pdFALSE;
  9662. 80046a2: 2300 movs r3, #0
  9663. 80046a4: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9664. 80046a8: e00a b.n 80046c0 <UartRxTask+0x2b8>
  9665. }
  9666. } else {
  9667. if (frameBytesCount > 0) {
  9668. 80046aa: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9669. 80046ae: 2b00 cmp r3, #0
  9670. 80046b0: d003 beq.n 80046ba <UartRxTask+0x2b2>
  9671. receverState = srFail;
  9672. 80046b2: 2304 movs r3, #4
  9673. 80046b4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9674. 80046b8: e002 b.n 80046c0 <UartRxTask+0x2b8>
  9675. } else {
  9676. proceed = pdFALSE;
  9677. 80046ba: 2300 movs r3, #0
  9678. 80046bc: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9679. }
  9680. }
  9681. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9682. 80046c0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9683. 80046c4: 6a1b ldr r3, [r3, #32]
  9684. 80046c6: 4618 mov r0, r3
  9685. 80046c8: f00f fa80 bl 8013bcc <osMutexRelease>
  9686. break;
  9687. 80046cc: e165 b.n 800499a <UartRxTask+0x592>
  9688. case srRecieveData:
  9689. if (frameBytesCount >= frameTotalLength) {
  9690. 80046ce: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  9691. 80046d2: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9692. 80046d6: 429a cmp r2, r3
  9693. 80046d8: d303 bcc.n 80046e2 <UartRxTask+0x2da>
  9694. receverState = srCheckCrc;
  9695. 80046da: 2301 movs r3, #1
  9696. 80046dc: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9697. } else {
  9698. proceed = pdFALSE;
  9699. }
  9700. break;
  9701. 80046e0: e15b b.n 800499a <UartRxTask+0x592>
  9702. proceed = pdFALSE;
  9703. 80046e2: 2300 movs r3, #0
  9704. 80046e4: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9705. break;
  9706. 80046e8: e157 b.n 800499a <UartRxTask+0x592>
  9707. case srCheckCrc:
  9708. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9709. 80046ea: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9710. 80046ee: 6a1b ldr r3, [r3, #32]
  9711. 80046f0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9712. 80046f4: 4618 mov r0, r3
  9713. 80046f6: f00f fa1e bl 8013b36 <osMutexAcquire>
  9714. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  9715. 80046fa: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9716. 80046fe: 691a ldr r2, [r3, #16]
  9717. 8004700: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9718. 8004704: 3b01 subs r3, #1
  9719. 8004706: 4413 add r3, r2
  9720. 8004708: 781b ldrb r3, [r3, #0]
  9721. 800470a: 021b lsls r3, r3, #8
  9722. 800470c: b21a sxth r2, r3
  9723. 800470e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9724. 8004712: 6919 ldr r1, [r3, #16]
  9725. 8004714: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9726. 8004718: 3b02 subs r3, #2
  9727. 800471a: 440b add r3, r1
  9728. 800471c: 781b ldrb r3, [r3, #0]
  9729. 800471e: b21b sxth r3, r3
  9730. 8004720: 4313 orrs r3, r2
  9731. 8004722: b21b sxth r3, r3
  9732. 8004724: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9733. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  9734. 8004728: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9735. 800472c: 6919 ldr r1, [r3, #16]
  9736. 800472e: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9737. 8004732: 3b02 subs r3, #2
  9738. 8004734: 461a mov r2, r3
  9739. 8004736: 4841 ldr r0, [pc, #260] @ (800483c <UartRxTask+0x434>)
  9740. 8004738: f002 fe2a bl 8007390 <HAL_CRC_Calculate>
  9741. 800473c: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  9742. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9743. 8004740: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9744. 8004744: 6a1b ldr r3, [r3, #32]
  9745. 8004746: 4618 mov r0, r3
  9746. 8004748: f00f fa40 bl 8013bcc <osMutexRelease>
  9747. crcPass = frameCrc == crc;
  9748. 800474c: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  9749. 8004750: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  9750. 8004754: 429a cmp r2, r3
  9751. 8004756: bf0c ite eq
  9752. 8004758: 2301 moveq r3, #1
  9753. 800475a: 2300 movne r3, #0
  9754. 800475c: b2db uxtb r3, r3
  9755. 800475e: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9756. if (crcPass) {
  9757. 8004762: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9758. 8004766: 2b00 cmp r3, #0
  9759. 8004768: d00b beq.n 8004782 <UartRxTask+0x37a>
  9760. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  9761. 800476a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9762. 800476e: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9763. 8004772: 4619 mov r1, r3
  9764. 8004774: 4832 ldr r0, [pc, #200] @ (8004840 <UartRxTask+0x438>)
  9765. 8004776: f013 f9c9 bl 8017b0c <iprintf>
  9766. receverState = srExecuteCmd;
  9767. 800477a: 2303 movs r3, #3
  9768. 800477c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9769. } else {
  9770. receverState = srFail;
  9771. }
  9772. break;
  9773. 8004780: e10b b.n 800499a <UartRxTask+0x592>
  9774. receverState = srFail;
  9775. 8004782: 2304 movs r3, #4
  9776. 8004784: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9777. break;
  9778. 8004788: e107 b.n 800499a <UartRxTask+0x592>
  9779. case srExecuteCmd:
  9780. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  9781. 800478a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9782. 800478e: 6a9b ldr r3, [r3, #40] @ 0x28
  9783. 8004790: 2b00 cmp r3, #0
  9784. 8004792: d104 bne.n 800479e <UartRxTask+0x396>
  9785. 8004794: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9786. 8004798: 6a5b ldr r3, [r3, #36] @ 0x24
  9787. 800479a: 2b00 cmp r3, #0
  9788. 800479c: d01e beq.n 80047dc <UartRxTask+0x3d4>
  9789. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9790. 800479e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9791. 80047a2: 6a1b ldr r3, [r3, #32]
  9792. 80047a4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9793. 80047a8: 4618 mov r0, r3
  9794. 80047aa: f00f f9c4 bl 8013b36 <osMutexAcquire>
  9795. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  9796. 80047ae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9797. 80047b2: 691b ldr r3, [r3, #16]
  9798. 80047b4: f103 0108 add.w r1, r3, #8
  9799. 80047b8: f507 73a0 add.w r3, r7, #320 @ 0x140
  9800. 80047bc: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9801. 80047c0: 889b ldrh r3, [r3, #4]
  9802. 80047c2: 461a mov r2, r3
  9803. 80047c4: f107 0310 add.w r3, r7, #16
  9804. 80047c8: 330c adds r3, #12
  9805. 80047ca: 4618 mov r0, r3
  9806. 80047cc: f013 fac5 bl 8017d5a <memcpy>
  9807. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9808. 80047d0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9809. 80047d4: 6a1b ldr r3, [r3, #32]
  9810. 80047d6: 4618 mov r0, r3
  9811. 80047d8: f00f f9f8 bl 8013bcc <osMutexRelease>
  9812. }
  9813. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  9814. 80047dc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9815. 80047e0: 6a5b ldr r3, [r3, #36] @ 0x24
  9816. 80047e2: 2b00 cmp r3, #0
  9817. 80047e4: d015 beq.n 8004812 <UartRxTask+0x40a>
  9818. if (xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE) {
  9819. 80047e6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9820. 80047ea: 6a58 ldr r0, [r3, #36] @ 0x24
  9821. 80047ec: f507 73a0 add.w r3, r7, #320 @ 0x140
  9822. 80047f0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9823. 80047f4: 889b ldrh r3, [r3, #4]
  9824. 80047f6: f103 020c add.w r2, r3, #12
  9825. 80047fa: f107 0110 add.w r1, r7, #16
  9826. 80047fe: 23c8 movs r3, #200 @ 0xc8
  9827. 8004800: f010 fc06 bl 8015010 <xStreamBufferSend>
  9828. 8004804: 4603 mov r3, r0
  9829. 8004806: 2b00 cmp r3, #0
  9830. 8004808: d103 bne.n 8004812 <UartRxTask+0x40a>
  9831. receverState = srFail;
  9832. 800480a: 2304 movs r3, #4
  9833. 800480c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9834. break;
  9835. 8004810: e0c3 b.n 800499a <UartRxTask+0x592>
  9836. }
  9837. }
  9838. if (uartTaskData->processDataCb != NULL) {
  9839. 8004812: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9840. 8004816: 6a9b ldr r3, [r3, #40] @ 0x28
  9841. 8004818: 2b00 cmp r3, #0
  9842. 800481a: d008 beq.n 800482e <UartRxTask+0x426>
  9843. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  9844. 800481c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9845. 8004820: 6a9b ldr r3, [r3, #40] @ 0x28
  9846. 8004822: f107 0210 add.w r2, r7, #16
  9847. 8004826: 4611 mov r1, r2
  9848. 8004828: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  9849. 800482c: 4798 blx r3
  9850. }
  9851. receverState = srFinish;
  9852. 800482e: 2305 movs r3, #5
  9853. 8004830: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9854. break;
  9855. 8004834: e0b1 b.n 800499a <UartRxTask+0x592>
  9856. 8004836: bf00 nop
  9857. 8004838: 0801891c .word 0x0801891c
  9858. 800483c: 24000400 .word 0x24000400
  9859. 8004840: 0801893c .word 0x0801893c
  9860. case srFail:
  9861. dataToSend = 0;
  9862. 8004844: 2300 movs r3, #0
  9863. 8004846: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9864. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  9865. 800484a: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9866. 800484e: 2b01 cmp r3, #1
  9867. 8004850: d124 bne.n 800489c <UartRxTask+0x494>
  9868. 8004852: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9869. 8004856: 2b02 cmp r3, #2
  9870. 8004858: d920 bls.n 800489c <UartRxTask+0x494>
  9871. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  9872. 800485a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9873. 800485e: 6898 ldr r0, [r3, #8]
  9874. 8004860: f507 73a0 add.w r3, r7, #320 @ 0x140
  9875. 8004864: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9876. 8004868: 8819 ldrh r1, [r3, #0]
  9877. 800486a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9878. 800486e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9879. 8004872: 789a ldrb r2, [r3, #2]
  9880. 8004874: 2300 movs r3, #0
  9881. 8004876: 9301 str r3, [sp, #4]
  9882. 8004878: 2300 movs r3, #0
  9883. 800487a: 9300 str r3, [sp, #0]
  9884. 800487c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9885. 8004880: f7fe fcda bl 8003238 <PrepareRespFrame>
  9886. 8004884: 4603 mov r3, r0
  9887. 8004886: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9888. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  9889. 800488a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9890. 800488e: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9891. 8004892: 4619 mov r1, r3
  9892. 8004894: 4844 ldr r0, [pc, #272] @ (80049a8 <UartRxTask+0x5a0>)
  9893. 8004896: f013 f939 bl 8017b0c <iprintf>
  9894. 800489a: e03c b.n 8004916 <UartRxTask+0x50e>
  9895. } else if (!crcPass) {
  9896. 800489c: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9897. 80048a0: 2b00 cmp r3, #0
  9898. 80048a2: d120 bne.n 80048e6 <UartRxTask+0x4de>
  9899. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  9900. 80048a4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9901. 80048a8: 6898 ldr r0, [r3, #8]
  9902. 80048aa: f507 73a0 add.w r3, r7, #320 @ 0x140
  9903. 80048ae: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9904. 80048b2: 8819 ldrh r1, [r3, #0]
  9905. 80048b4: f507 73a0 add.w r3, r7, #320 @ 0x140
  9906. 80048b8: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9907. 80048bc: 789a ldrb r2, [r3, #2]
  9908. 80048be: 2300 movs r3, #0
  9909. 80048c0: 9301 str r3, [sp, #4]
  9910. 80048c2: 2300 movs r3, #0
  9911. 80048c4: 9300 str r3, [sp, #0]
  9912. 80048c6: f06f 0301 mvn.w r3, #1
  9913. 80048ca: f7fe fcb5 bl 8003238 <PrepareRespFrame>
  9914. 80048ce: 4603 mov r3, r0
  9915. 80048d0: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9916. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  9917. 80048d4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9918. 80048d8: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9919. 80048dc: 4619 mov r1, r3
  9920. 80048de: 4833 ldr r0, [pc, #204] @ (80049ac <UartRxTask+0x5a4>)
  9921. 80048e0: f013 f914 bl 8017b0c <iprintf>
  9922. 80048e4: e017 b.n 8004916 <UartRxTask+0x50e>
  9923. } else {
  9924. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  9925. 80048e6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9926. 80048ea: 6898 ldr r0, [r3, #8]
  9927. 80048ec: f507 73a0 add.w r3, r7, #320 @ 0x140
  9928. 80048f0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9929. 80048f4: 8819 ldrh r1, [r3, #0]
  9930. 80048f6: f507 73a0 add.w r3, r7, #320 @ 0x140
  9931. 80048fa: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9932. 80048fe: 789a ldrb r2, [r3, #2]
  9933. 8004900: 2300 movs r3, #0
  9934. 8004902: 9301 str r3, [sp, #4]
  9935. 8004904: 2300 movs r3, #0
  9936. 8004906: 9300 str r3, [sp, #0]
  9937. 8004908: f06f 0303 mvn.w r3, #3
  9938. 800490c: f7fe fc94 bl 8003238 <PrepareRespFrame>
  9939. 8004910: 4603 mov r3, r0
  9940. 8004912: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9941. }
  9942. if (dataToSend > 0) {
  9943. 8004916: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  9944. 800491a: 2b00 cmp r3, #0
  9945. 800491c: d00a beq.n 8004934 <UartRxTask+0x52c>
  9946. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  9947. 800491e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9948. 8004922: 6b18 ldr r0, [r3, #48] @ 0x30
  9949. 8004924: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9950. 8004928: 689b ldr r3, [r3, #8]
  9951. 800492a: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  9952. 800492e: 4619 mov r1, r3
  9953. 8004930: f00c f8d4 bl 8010adc <HAL_UART_Transmit_IT>
  9954. }
  9955. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  9956. 8004934: f8b7 113c ldrh.w r1, [r7, #316] @ 0x13c
  9957. 8004938: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9958. 800493c: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9959. 8004940: 461a mov r2, r3
  9960. 8004942: 481b ldr r0, [pc, #108] @ (80049b0 <UartRxTask+0x5a8>)
  9961. 8004944: f013 f8e2 bl 8017b0c <iprintf>
  9962. receverState = srFinish;
  9963. 8004948: 2305 movs r3, #5
  9964. 800494a: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9965. break;
  9966. 800494e: e024 b.n 800499a <UartRxTask+0x592>
  9967. case srFinish:
  9968. default:
  9969. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9970. 8004950: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9971. 8004954: 6a1b ldr r3, [r3, #32]
  9972. 8004956: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9973. 800495a: 4618 mov r0, r3
  9974. 800495c: f00f f8eb bl 8013b36 <osMutexAcquire>
  9975. uartTaskData->frameBytesCount = 0;
  9976. 8004960: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9977. 8004964: 2200 movs r2, #0
  9978. 8004966: 82da strh r2, [r3, #22]
  9979. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9980. 8004968: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9981. 800496c: 6a1b ldr r3, [r3, #32]
  9982. 800496e: 4618 mov r0, r3
  9983. 8004970: f00f f92c bl 8013bcc <osMutexRelease>
  9984. spFrameData.frameHeader.frameCommand = spUnknown;
  9985. 8004974: f507 73a0 add.w r3, r7, #320 @ 0x140
  9986. 8004978: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9987. 800497c: 2210 movs r2, #16
  9988. 800497e: 709a strb r2, [r3, #2]
  9989. frameTotalLength = 0;
  9990. 8004980: 2300 movs r3, #0
  9991. 8004982: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9992. outputDataBufferPos = 0;
  9993. 8004986: 4b0b ldr r3, [pc, #44] @ (80049b4 <UartRxTask+0x5ac>)
  9994. 8004988: 2200 movs r2, #0
  9995. 800498a: 801a strh r2, [r3, #0]
  9996. receverState = srWaitForHeader;
  9997. 800498c: 2300 movs r3, #0
  9998. 800498e: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9999. proceed = pdFALSE;
  10000. 8004992: 2300 movs r3, #0
  10001. 8004994: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10002. break;
  10003. 8004998: bf00 nop
  10004. while (proceed) {
  10005. 800499a: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  10006. 800499e: 2b00 cmp r3, #0
  10007. 80049a0: f47f ade0 bne.w 8004564 <UartRxTask+0x15c>
  10008. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  10009. 80049a4: e581 b.n 80044aa <UartRxTask+0xa2>
  10010. 80049a6: bf00 nop
  10011. 80049a8: 08018954 .word 0x08018954
  10012. 80049ac: 08018978 .word 0x08018978
  10013. 80049b0: 08018990 .word 0x08018990
  10014. 80049b4: 24000ca4 .word 0x24000ca4
  10015. 080049b8 <Uart1ReceivedDataProcessCallback>:
  10016. void Uart8ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  10017. Uart1ReceivedDataProcessCallback (arg, spFrameData);
  10018. }
  10019. void Uart1ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  10020. 80049b8: b590 push {r4, r7, lr}
  10021. 80049ba: b0a3 sub sp, #140 @ 0x8c
  10022. 80049bc: af06 add r7, sp, #24
  10023. 80049be: 6078 str r0, [r7, #4]
  10024. 80049c0: 6039 str r1, [r7, #0]
  10025. UartTaskData* uartTaskData = (UartTaskData*)arg;
  10026. 80049c2: 687b ldr r3, [r7, #4]
  10027. 80049c4: 64fb str r3, [r7, #76] @ 0x4c
  10028. uint16_t dataToSend = 0;
  10029. 80049c6: 2300 movs r3, #0
  10030. 80049c8: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  10031. outputDataBufferPos = 0;
  10032. 80049cc: 4ba4 ldr r3, [pc, #656] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10033. 80049ce: 2200 movs r2, #0
  10034. 80049d0: 801a strh r2, [r3, #0]
  10035. uint16_t inputDataBufferPos = 0;
  10036. 80049d2: 2300 movs r3, #0
  10037. 80049d4: 86bb strh r3, [r7, #52] @ 0x34
  10038. SerialProtocolRespStatus respStatus = spUnknownCommand;
  10039. 80049d6: 23fd movs r3, #253 @ 0xfd
  10040. 80049d8: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10041. switch (spFrameData->frameHeader.frameCommand) {
  10042. 80049dc: 683b ldr r3, [r7, #0]
  10043. 80049de: 789b ldrb r3, [r3, #2]
  10044. 80049e0: 2b0f cmp r3, #15
  10045. 80049e2: f200 8479 bhi.w 80052d8 <Uart1ReceivedDataProcessCallback+0x920>
  10046. 80049e6: a201 add r2, pc, #4 @ (adr r2, 80049ec <Uart1ReceivedDataProcessCallback+0x34>)
  10047. 80049e8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10048. 80049ec: 08004a2d .word 0x08004a2d
  10049. 80049f0: 08004b1b .word 0x08004b1b
  10050. 80049f4: 08004cc5 .word 0x08004cc5
  10051. 80049f8: 08004d81 .word 0x08004d81
  10052. 80049fc: 08004e23 .word 0x08004e23
  10053. 8004a00: 08004f41 .word 0x08004f41
  10054. 8004a04: 08004fc9 .word 0x08004fc9
  10055. 8004a08: 08004ec5 .word 0x08004ec5
  10056. 8004a0c: 0800501f .word 0x0800501f
  10057. 8004a10: 08005091 .word 0x08005091
  10058. 8004a14: 080050dd .word 0x080050dd
  10059. 8004a18: 08005129 .word 0x08005129
  10060. 8004a1c: 0800518b .word 0x0800518b
  10061. 8004a20: 080051ef .word 0x080051ef
  10062. 8004a24: 08005251 .word 0x08005251
  10063. 8004a28: 080052b5 .word 0x080052b5
  10064. case spGetElectricalMeasurments:
  10065. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  10066. 8004a2c: 4b8d ldr r3, [pc, #564] @ (8004c64 <Uart1ReceivedDataProcessCallback+0x2ac>)
  10067. 8004a2e: 681b ldr r3, [r3, #0]
  10068. 8004a30: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10069. 8004a34: 4618 mov r0, r3
  10070. 8004a36: f00f f87e bl 8013b36 <osMutexAcquire>
  10071. 8004a3a: 4603 mov r3, r0
  10072. 8004a3c: 2b00 cmp r3, #0
  10073. 8004a3e: d168 bne.n 8004b12 <Uart1ReceivedDataProcessCallback+0x15a>
  10074. for (int i = 0; i < 3; i++) {
  10075. 8004a40: 2300 movs r3, #0
  10076. 8004a42: 66bb str r3, [r7, #104] @ 0x68
  10077. 8004a44: e00b b.n 8004a5e <Uart1ReceivedDataProcessCallback+0xa6>
  10078. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltageRMS[i], sizeof (float));
  10079. 8004a46: 6ebb ldr r3, [r7, #104] @ 0x68
  10080. 8004a48: 009b lsls r3, r3, #2
  10081. 8004a4a: 4a87 ldr r2, [pc, #540] @ (8004c68 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10082. 8004a4c: 441a add r2, r3
  10083. 8004a4e: 2304 movs r3, #4
  10084. 8004a50: 4983 ldr r1, [pc, #524] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10085. 8004a52: 4886 ldr r0, [pc, #536] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10086. 8004a54: f7fe fb8c bl 8003170 <WriteDataToBuffer>
  10087. for (int i = 0; i < 3; i++) {
  10088. 8004a58: 6ebb ldr r3, [r7, #104] @ 0x68
  10089. 8004a5a: 3301 adds r3, #1
  10090. 8004a5c: 66bb str r3, [r7, #104] @ 0x68
  10091. 8004a5e: 6ebb ldr r3, [r7, #104] @ 0x68
  10092. 8004a60: 2b02 cmp r3, #2
  10093. 8004a62: ddf0 ble.n 8004a46 <Uart1ReceivedDataProcessCallback+0x8e>
  10094. }
  10095. for (int i = 0; i < 3; i++) {
  10096. 8004a64: 2300 movs r3, #0
  10097. 8004a66: 667b str r3, [r7, #100] @ 0x64
  10098. 8004a68: e00d b.n 8004a86 <Uart1ReceivedDataProcessCallback+0xce>
  10099. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltagePeak[i], sizeof (float));
  10100. 8004a6a: 6e7b ldr r3, [r7, #100] @ 0x64
  10101. 8004a6c: 3302 adds r3, #2
  10102. 8004a6e: 009b lsls r3, r3, #2
  10103. 8004a70: 4a7d ldr r2, [pc, #500] @ (8004c68 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10104. 8004a72: 4413 add r3, r2
  10105. 8004a74: 1d1a adds r2, r3, #4
  10106. 8004a76: 2304 movs r3, #4
  10107. 8004a78: 4979 ldr r1, [pc, #484] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10108. 8004a7a: 487c ldr r0, [pc, #496] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10109. 8004a7c: f7fe fb78 bl 8003170 <WriteDataToBuffer>
  10110. for (int i = 0; i < 3; i++) {
  10111. 8004a80: 6e7b ldr r3, [r7, #100] @ 0x64
  10112. 8004a82: 3301 adds r3, #1
  10113. 8004a84: 667b str r3, [r7, #100] @ 0x64
  10114. 8004a86: 6e7b ldr r3, [r7, #100] @ 0x64
  10115. 8004a88: 2b02 cmp r3, #2
  10116. 8004a8a: ddee ble.n 8004a6a <Uart1ReceivedDataProcessCallback+0xb2>
  10117. }
  10118. for (int i = 0; i < 3; i++) {
  10119. 8004a8c: 2300 movs r3, #0
  10120. 8004a8e: 663b str r3, [r7, #96] @ 0x60
  10121. 8004a90: e00c b.n 8004aac <Uart1ReceivedDataProcessCallback+0xf4>
  10122. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentRMS[i], sizeof (float));
  10123. 8004a92: 6e3b ldr r3, [r7, #96] @ 0x60
  10124. 8004a94: 3306 adds r3, #6
  10125. 8004a96: 009b lsls r3, r3, #2
  10126. 8004a98: 4a73 ldr r2, [pc, #460] @ (8004c68 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10127. 8004a9a: 441a add r2, r3
  10128. 8004a9c: 2304 movs r3, #4
  10129. 8004a9e: 4970 ldr r1, [pc, #448] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10130. 8004aa0: 4872 ldr r0, [pc, #456] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10131. 8004aa2: f7fe fb65 bl 8003170 <WriteDataToBuffer>
  10132. for (int i = 0; i < 3; i++) {
  10133. 8004aa6: 6e3b ldr r3, [r7, #96] @ 0x60
  10134. 8004aa8: 3301 adds r3, #1
  10135. 8004aaa: 663b str r3, [r7, #96] @ 0x60
  10136. 8004aac: 6e3b ldr r3, [r7, #96] @ 0x60
  10137. 8004aae: 2b02 cmp r3, #2
  10138. 8004ab0: ddef ble.n 8004a92 <Uart1ReceivedDataProcessCallback+0xda>
  10139. }
  10140. for (int i = 0; i < 3; i++) {
  10141. 8004ab2: 2300 movs r3, #0
  10142. 8004ab4: 65fb str r3, [r7, #92] @ 0x5c
  10143. 8004ab6: e00d b.n 8004ad4 <Uart1ReceivedDataProcessCallback+0x11c>
  10144. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentPeak[i], sizeof (float));
  10145. 8004ab8: 6dfb ldr r3, [r7, #92] @ 0x5c
  10146. 8004aba: 3308 adds r3, #8
  10147. 8004abc: 009b lsls r3, r3, #2
  10148. 8004abe: 4a6a ldr r2, [pc, #424] @ (8004c68 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10149. 8004ac0: 4413 add r3, r2
  10150. 8004ac2: 1d1a adds r2, r3, #4
  10151. 8004ac4: 2304 movs r3, #4
  10152. 8004ac6: 4966 ldr r1, [pc, #408] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10153. 8004ac8: 4868 ldr r0, [pc, #416] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10154. 8004aca: f7fe fb51 bl 8003170 <WriteDataToBuffer>
  10155. for (int i = 0; i < 3; i++) {
  10156. 8004ace: 6dfb ldr r3, [r7, #92] @ 0x5c
  10157. 8004ad0: 3301 adds r3, #1
  10158. 8004ad2: 65fb str r3, [r7, #92] @ 0x5c
  10159. 8004ad4: 6dfb ldr r3, [r7, #92] @ 0x5c
  10160. 8004ad6: 2b02 cmp r3, #2
  10161. 8004ad8: ddee ble.n 8004ab8 <Uart1ReceivedDataProcessCallback+0x100>
  10162. }
  10163. for (int i = 0; i < 3; i++) {
  10164. 8004ada: 2300 movs r3, #0
  10165. 8004adc: 65bb str r3, [r7, #88] @ 0x58
  10166. 8004ade: e00c b.n 8004afa <Uart1ReceivedDataProcessCallback+0x142>
  10167. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.power[i], sizeof (float));
  10168. 8004ae0: 6dbb ldr r3, [r7, #88] @ 0x58
  10169. 8004ae2: 330c adds r3, #12
  10170. 8004ae4: 009b lsls r3, r3, #2
  10171. 8004ae6: 4a60 ldr r2, [pc, #384] @ (8004c68 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10172. 8004ae8: 441a add r2, r3
  10173. 8004aea: 2304 movs r3, #4
  10174. 8004aec: 495c ldr r1, [pc, #368] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10175. 8004aee: 485f ldr r0, [pc, #380] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10176. 8004af0: f7fe fb3e bl 8003170 <WriteDataToBuffer>
  10177. for (int i = 0; i < 3; i++) {
  10178. 8004af4: 6dbb ldr r3, [r7, #88] @ 0x58
  10179. 8004af6: 3301 adds r3, #1
  10180. 8004af8: 65bb str r3, [r7, #88] @ 0x58
  10181. 8004afa: 6dbb ldr r3, [r7, #88] @ 0x58
  10182. 8004afc: 2b02 cmp r3, #2
  10183. 8004afe: ddef ble.n 8004ae0 <Uart1ReceivedDataProcessCallback+0x128>
  10184. }
  10185. osMutexRelease (resMeasurementsMutex);
  10186. 8004b00: 4b58 ldr r3, [pc, #352] @ (8004c64 <Uart1ReceivedDataProcessCallback+0x2ac>)
  10187. 8004b02: 681b ldr r3, [r3, #0]
  10188. 8004b04: 4618 mov r0, r3
  10189. 8004b06: f00f f861 bl 8013bcc <osMutexRelease>
  10190. respStatus = spOK;
  10191. 8004b0a: 2300 movs r3, #0
  10192. 8004b0c: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10193. } else {
  10194. respStatus = spInternalError;
  10195. }
  10196. break;
  10197. 8004b10: e3e6 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10198. respStatus = spInternalError;
  10199. 8004b12: 23fc movs r3, #252 @ 0xfc
  10200. 8004b14: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10201. break;
  10202. 8004b18: e3e2 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10203. case spGetSensorMeasurments:
  10204. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10205. 8004b1a: 4b55 ldr r3, [pc, #340] @ (8004c70 <Uart1ReceivedDataProcessCallback+0x2b8>)
  10206. 8004b1c: 681b ldr r3, [r3, #0]
  10207. 8004b1e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10208. 8004b22: 4618 mov r0, r3
  10209. 8004b24: f00f f807 bl 8013b36 <osMutexAcquire>
  10210. 8004b28: 4603 mov r3, r0
  10211. 8004b2a: 2b00 cmp r3, #0
  10212. 8004b2c: f040 8094 bne.w 8004c58 <Uart1ReceivedDataProcessCallback+0x2a0>
  10213. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[0], sizeof (float));
  10214. 8004b30: 2304 movs r3, #4
  10215. 8004b32: 4a50 ldr r2, [pc, #320] @ (8004c74 <Uart1ReceivedDataProcessCallback+0x2bc>)
  10216. 8004b34: 494a ldr r1, [pc, #296] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10217. 8004b36: 484d ldr r0, [pc, #308] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10218. 8004b38: f7fe fb1a bl 8003170 <WriteDataToBuffer>
  10219. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[1], sizeof (float));
  10220. 8004b3c: 2304 movs r3, #4
  10221. 8004b3e: 4a4e ldr r2, [pc, #312] @ (8004c78 <Uart1ReceivedDataProcessCallback+0x2c0>)
  10222. 8004b40: 4947 ldr r1, [pc, #284] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10223. 8004b42: 484a ldr r0, [pc, #296] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10224. 8004b44: f7fe fb14 bl 8003170 <WriteDataToBuffer>
  10225. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.fanVoltage, sizeof (float));
  10226. 8004b48: 2304 movs r3, #4
  10227. 8004b4a: 4a4c ldr r2, [pc, #304] @ (8004c7c <Uart1ReceivedDataProcessCallback+0x2c4>)
  10228. 8004b4c: 4944 ldr r1, [pc, #272] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10229. 8004b4e: 4847 ldr r0, [pc, #284] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10230. 8004b50: f7fe fb0e bl 8003170 <WriteDataToBuffer>
  10231. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderX, sizeof (float));
  10232. 8004b54: 2304 movs r3, #4
  10233. 8004b56: 4a4a ldr r2, [pc, #296] @ (8004c80 <Uart1ReceivedDataProcessCallback+0x2c8>)
  10234. 8004b58: 4941 ldr r1, [pc, #260] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10235. 8004b5a: 4844 ldr r0, [pc, #272] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10236. 8004b5c: f7fe fb08 bl 8003170 <WriteDataToBuffer>
  10237. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderY, sizeof (float));
  10238. 8004b60: 2304 movs r3, #4
  10239. 8004b62: 4a48 ldr r2, [pc, #288] @ (8004c84 <Uart1ReceivedDataProcessCallback+0x2cc>)
  10240. 8004b64: 493e ldr r1, [pc, #248] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10241. 8004b66: 4841 ldr r0, [pc, #260] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10242. 8004b68: f7fe fb02 bl 8003170 <WriteDataToBuffer>
  10243. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXStatus, sizeof (uint8_t));
  10244. 8004b6c: 2301 movs r3, #1
  10245. 8004b6e: 4a46 ldr r2, [pc, #280] @ (8004c88 <Uart1ReceivedDataProcessCallback+0x2d0>)
  10246. 8004b70: 493b ldr r1, [pc, #236] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10247. 8004b72: 483e ldr r0, [pc, #248] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10248. 8004b74: f7fe fafc bl 8003170 <WriteDataToBuffer>
  10249. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYStatus, sizeof (uint8_t));
  10250. 8004b78: 2301 movs r3, #1
  10251. 8004b7a: 4a44 ldr r2, [pc, #272] @ (8004c8c <Uart1ReceivedDataProcessCallback+0x2d4>)
  10252. 8004b7c: 4938 ldr r1, [pc, #224] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10253. 8004b7e: 483b ldr r0, [pc, #236] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10254. 8004b80: f7fe faf6 bl 8003170 <WriteDataToBuffer>
  10255. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXAveCurrent, sizeof (float));
  10256. 8004b84: 2304 movs r3, #4
  10257. 8004b86: 4a42 ldr r2, [pc, #264] @ (8004c90 <Uart1ReceivedDataProcessCallback+0x2d8>)
  10258. 8004b88: 4935 ldr r1, [pc, #212] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10259. 8004b8a: 4838 ldr r0, [pc, #224] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10260. 8004b8c: f7fe faf0 bl 8003170 <WriteDataToBuffer>
  10261. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYAveCurrent, sizeof (float));
  10262. 8004b90: 2304 movs r3, #4
  10263. 8004b92: 4a40 ldr r2, [pc, #256] @ (8004c94 <Uart1ReceivedDataProcessCallback+0x2dc>)
  10264. 8004b94: 4932 ldr r1, [pc, #200] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10265. 8004b96: 4835 ldr r0, [pc, #212] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10266. 8004b98: f7fe faea bl 8003170 <WriteDataToBuffer>
  10267. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXPeakCurrent, sizeof (float));
  10268. 8004b9c: 2304 movs r3, #4
  10269. 8004b9e: 4a3e ldr r2, [pc, #248] @ (8004c98 <Uart1ReceivedDataProcessCallback+0x2e0>)
  10270. 8004ba0: 492f ldr r1, [pc, #188] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10271. 8004ba2: 4832 ldr r0, [pc, #200] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10272. 8004ba4: f7fe fae4 bl 8003170 <WriteDataToBuffer>
  10273. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYPeakCurrent, sizeof (float));
  10274. 8004ba8: 2304 movs r3, #4
  10275. 8004baa: 4a3c ldr r2, [pc, #240] @ (8004c9c <Uart1ReceivedDataProcessCallback+0x2e4>)
  10276. 8004bac: 492c ldr r1, [pc, #176] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10277. 8004bae: 482f ldr r0, [pc, #188] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10278. 8004bb0: f7fe fade bl 8003170 <WriteDataToBuffer>
  10279. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchUp, sizeof (uint8_t));
  10280. 8004bb4: 2301 movs r3, #1
  10281. 8004bb6: 4a3a ldr r2, [pc, #232] @ (8004ca0 <Uart1ReceivedDataProcessCallback+0x2e8>)
  10282. 8004bb8: 4929 ldr r1, [pc, #164] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10283. 8004bba: 482c ldr r0, [pc, #176] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10284. 8004bbc: f7fe fad8 bl 8003170 <WriteDataToBuffer>
  10285. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchDown, sizeof (uint8_t));
  10286. 8004bc0: 2301 movs r3, #1
  10287. 8004bc2: 4a38 ldr r2, [pc, #224] @ (8004ca4 <Uart1ReceivedDataProcessCallback+0x2ec>)
  10288. 8004bc4: 4926 ldr r1, [pc, #152] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10289. 8004bc6: 4829 ldr r0, [pc, #164] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10290. 8004bc8: f7fe fad2 bl 8003170 <WriteDataToBuffer>
  10291. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchCenter, sizeof (uint8_t));
  10292. 8004bcc: 2301 movs r3, #1
  10293. 8004bce: 4a36 ldr r2, [pc, #216] @ (8004ca8 <Uart1ReceivedDataProcessCallback+0x2f0>)
  10294. 8004bd0: 4923 ldr r1, [pc, #140] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10295. 8004bd2: 4826 ldr r0, [pc, #152] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10296. 8004bd4: f7fe facc bl 8003170 <WriteDataToBuffer>
  10297. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchUp, sizeof (uint8_t));
  10298. 8004bd8: 2301 movs r3, #1
  10299. 8004bda: 4a34 ldr r2, [pc, #208] @ (8004cac <Uart1ReceivedDataProcessCallback+0x2f4>)
  10300. 8004bdc: 4920 ldr r1, [pc, #128] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10301. 8004bde: 4823 ldr r0, [pc, #140] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10302. 8004be0: f7fe fac6 bl 8003170 <WriteDataToBuffer>
  10303. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchDown, sizeof (uint8_t));
  10304. 8004be4: 2301 movs r3, #1
  10305. 8004be6: 4a32 ldr r2, [pc, #200] @ (8004cb0 <Uart1ReceivedDataProcessCallback+0x2f8>)
  10306. 8004be8: 491d ldr r1, [pc, #116] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10307. 8004bea: 4820 ldr r0, [pc, #128] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10308. 8004bec: f7fe fac0 bl 8003170 <WriteDataToBuffer>
  10309. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchCenter, sizeof (uint8_t));
  10310. 8004bf0: 2301 movs r3, #1
  10311. 8004bf2: 4a30 ldr r2, [pc, #192] @ (8004cb4 <Uart1ReceivedDataProcessCallback+0x2fc>)
  10312. 8004bf4: 491a ldr r1, [pc, #104] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10313. 8004bf6: 481d ldr r0, [pc, #116] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10314. 8004bf8: f7fe faba bl 8003170 <WriteDataToBuffer>
  10315. uint8_t comparatorOutput = HAL_COMP_GetOutputLevel (&hcomp1) == COMP_OUTPUT_LEVEL_HIGH ? 1 : 0;
  10316. 8004bfc: 482e ldr r0, [pc, #184] @ (8004cb8 <Uart1ReceivedDataProcessCallback+0x300>)
  10317. 8004bfe: f002 f9ed bl 8006fdc <HAL_COMP_GetOutputLevel>
  10318. 8004c02: 4603 mov r3, r0
  10319. 8004c04: 2b01 cmp r3, #1
  10320. 8004c06: bf0c ite eq
  10321. 8004c08: 2301 moveq r3, #1
  10322. 8004c0a: 2300 movne r3, #0
  10323. 8004c0c: b2db uxtb r3, r3
  10324. 8004c0e: f887 3037 strb.w r3, [r7, #55] @ 0x37
  10325. sensorsInfo.powerSupplyFailMask = ~((comparatorOutput << 1) | HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_3)) & 0x01;
  10326. 8004c12: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  10327. 8004c16: 005c lsls r4, r3, #1
  10328. 8004c18: 2108 movs r1, #8
  10329. 8004c1a: 4828 ldr r0, [pc, #160] @ (8004cbc <Uart1ReceivedDataProcessCallback+0x304>)
  10330. 8004c1c: f005 ff96 bl 800ab4c <HAL_GPIO_ReadPin>
  10331. 8004c20: 4603 mov r3, r0
  10332. 8004c22: 4323 orrs r3, r4
  10333. 8004c24: f003 0301 and.w r3, r3, #1
  10334. 8004c28: 2b00 cmp r3, #0
  10335. 8004c2a: bf0c ite eq
  10336. 8004c2c: 2301 moveq r3, #1
  10337. 8004c2e: 2300 movne r3, #0
  10338. 8004c30: b2db uxtb r3, r3
  10339. 8004c32: 461a mov r2, r3
  10340. 8004c34: 4b0f ldr r3, [pc, #60] @ (8004c74 <Uart1ReceivedDataProcessCallback+0x2bc>)
  10341. 8004c36: f883 202e strb.w r2, [r3, #46] @ 0x2e
  10342. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.powerSupplyFailMask, sizeof (uint8_t));
  10343. 8004c3a: 2301 movs r3, #1
  10344. 8004c3c: 4a20 ldr r2, [pc, #128] @ (8004cc0 <Uart1ReceivedDataProcessCallback+0x308>)
  10345. 8004c3e: 4908 ldr r1, [pc, #32] @ (8004c60 <Uart1ReceivedDataProcessCallback+0x2a8>)
  10346. 8004c40: 480a ldr r0, [pc, #40] @ (8004c6c <Uart1ReceivedDataProcessCallback+0x2b4>)
  10347. 8004c42: f7fe fa95 bl 8003170 <WriteDataToBuffer>
  10348. osMutexRelease (sensorsInfoMutex);
  10349. 8004c46: 4b0a ldr r3, [pc, #40] @ (8004c70 <Uart1ReceivedDataProcessCallback+0x2b8>)
  10350. 8004c48: 681b ldr r3, [r3, #0]
  10351. 8004c4a: 4618 mov r0, r3
  10352. 8004c4c: f00e ffbe bl 8013bcc <osMutexRelease>
  10353. respStatus = spOK;
  10354. 8004c50: 2300 movs r3, #0
  10355. 8004c52: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10356. } else {
  10357. respStatus = spInternalError;
  10358. }
  10359. break;
  10360. 8004c56: e343 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10361. respStatus = spInternalError;
  10362. 8004c58: 23fc movs r3, #252 @ 0xfc
  10363. 8004c5a: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10364. break;
  10365. 8004c5e: e33f b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10366. 8004c60: 24000ca4 .word 0x24000ca4
  10367. 8004c64: 240007e4 .word 0x240007e4
  10368. 8004c68: 240007f0 .word 0x240007f0
  10369. 8004c6c: 24000c24 .word 0x24000c24
  10370. 8004c70: 240007e8 .word 0x240007e8
  10371. 8004c74: 2400082c .word 0x2400082c
  10372. 8004c78: 24000830 .word 0x24000830
  10373. 8004c7c: 24000834 .word 0x24000834
  10374. 8004c80: 24000838 .word 0x24000838
  10375. 8004c84: 2400083c .word 0x2400083c
  10376. 8004c88: 24000840 .word 0x24000840
  10377. 8004c8c: 24000841 .word 0x24000841
  10378. 8004c90: 24000844 .word 0x24000844
  10379. 8004c94: 24000848 .word 0x24000848
  10380. 8004c98: 2400084c .word 0x2400084c
  10381. 8004c9c: 24000850 .word 0x24000850
  10382. 8004ca0: 24000854 .word 0x24000854
  10383. 8004ca4: 24000855 .word 0x24000855
  10384. 8004ca8: 24000856 .word 0x24000856
  10385. 8004cac: 24000857 .word 0x24000857
  10386. 8004cb0: 24000858 .word 0x24000858
  10387. 8004cb4: 24000859 .word 0x24000859
  10388. 8004cb8: 240003d4 .word 0x240003d4
  10389. 8004cbc: 58020c00 .word 0x58020c00
  10390. 8004cc0: 2400085a .word 0x2400085a
  10391. case spSetFanSpeed:
  10392. osTimerStop (fanTimerHandle);
  10393. 8004cc4: 4bb4 ldr r3, [pc, #720] @ (8004f98 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10394. 8004cc6: 681b ldr r3, [r3, #0]
  10395. 8004cc8: 4618 mov r0, r3
  10396. 8004cca: f00e fe77 bl 80139bc <osTimerStop>
  10397. int32_t fanTimerPeriod = 0;
  10398. 8004cce: 2300 movs r3, #0
  10399. 8004cd0: 633b str r3, [r7, #48] @ 0x30
  10400. uint32_t pulse = 0;
  10401. 8004cd2: 2300 movs r3, #0
  10402. 8004cd4: 62fb str r3, [r7, #44] @ 0x2c
  10403. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, &pulse);
  10404. 8004cd6: 683b ldr r3, [r7, #0]
  10405. 8004cd8: 330c adds r3, #12
  10406. 8004cda: f107 022c add.w r2, r7, #44 @ 0x2c
  10407. 8004cde: f107 0134 add.w r1, r7, #52 @ 0x34
  10408. 8004ce2: 4618 mov r0, r3
  10409. 8004ce4: f7fe fa75 bl 80031d2 <ReadWordFromBufer>
  10410. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&fanTimerPeriod);
  10411. 8004ce8: 683b ldr r3, [r7, #0]
  10412. 8004cea: 330c adds r3, #12
  10413. 8004cec: f107 0230 add.w r2, r7, #48 @ 0x30
  10414. 8004cf0: f107 0134 add.w r1, r7, #52 @ 0x34
  10415. 8004cf4: 4618 mov r0, r3
  10416. 8004cf6: f7fe fa6c bl 80031d2 <ReadWordFromBufer>
  10417. fanTimerConfigOC.Pulse = pulse * 10;
  10418. 8004cfa: 6afa ldr r2, [r7, #44] @ 0x2c
  10419. 8004cfc: 4613 mov r3, r2
  10420. 8004cfe: 009b lsls r3, r3, #2
  10421. 8004d00: 4413 add r3, r2
  10422. 8004d02: 005b lsls r3, r3, #1
  10423. 8004d04: 461a mov r2, r3
  10424. 8004d06: 4ba5 ldr r3, [pc, #660] @ (8004f9c <Uart1ReceivedDataProcessCallback+0x5e4>)
  10425. 8004d08: 605a str r2, [r3, #4]
  10426. if (HAL_TIM_PWM_ConfigChannel (&htim1, &fanTimerConfigOC, TIM_CHANNEL_2) != HAL_OK) {
  10427. 8004d0a: 2204 movs r2, #4
  10428. 8004d0c: 49a3 ldr r1, [pc, #652] @ (8004f9c <Uart1ReceivedDataProcessCallback+0x5e4>)
  10429. 8004d0e: 48a4 ldr r0, [pc, #656] @ (8004fa0 <Uart1ReceivedDataProcessCallback+0x5e8>)
  10430. 8004d10: f00a fcca bl 800f6a8 <HAL_TIM_PWM_ConfigChannel>
  10431. 8004d14: 4603 mov r3, r0
  10432. 8004d16: 2b00 cmp r3, #0
  10433. 8004d18: d001 beq.n 8004d1e <Uart1ReceivedDataProcessCallback+0x366>
  10434. Error_Handler ();
  10435. 8004d1a: f7fd f88f bl 8001e3c <Error_Handler>
  10436. }
  10437. if (fanTimerPeriod > 0) {
  10438. 8004d1e: 6b3b ldr r3, [r7, #48] @ 0x30
  10439. 8004d20: 2b00 cmp r3, #0
  10440. 8004d22: dd0f ble.n 8004d44 <Uart1ReceivedDataProcessCallback+0x38c>
  10441. osTimerStart (fanTimerHandle, fanTimerPeriod * 1000);
  10442. 8004d24: 4b9c ldr r3, [pc, #624] @ (8004f98 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10443. 8004d26: 681a ldr r2, [r3, #0]
  10444. 8004d28: 6b3b ldr r3, [r7, #48] @ 0x30
  10445. 8004d2a: f44f 717a mov.w r1, #1000 @ 0x3e8
  10446. 8004d2e: fb01 f303 mul.w r3, r1, r3
  10447. 8004d32: 4619 mov r1, r3
  10448. 8004d34: 4610 mov r0, r2
  10449. 8004d36: f00e fe13 bl 8013960 <osTimerStart>
  10450. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  10451. 8004d3a: 2104 movs r1, #4
  10452. 8004d3c: 4898 ldr r0, [pc, #608] @ (8004fa0 <Uart1ReceivedDataProcessCallback+0x5e8>)
  10453. 8004d3e: f009 ffb9 bl 800ecb4 <HAL_TIM_PWM_Start>
  10454. 8004d42: e019 b.n 8004d78 <Uart1ReceivedDataProcessCallback+0x3c0>
  10455. } else if (fanTimerPeriod == 0) {
  10456. 8004d44: 6b3b ldr r3, [r7, #48] @ 0x30
  10457. 8004d46: 2b00 cmp r3, #0
  10458. 8004d48: d109 bne.n 8004d5e <Uart1ReceivedDataProcessCallback+0x3a6>
  10459. osTimerStop (fanTimerHandle);
  10460. 8004d4a: 4b93 ldr r3, [pc, #588] @ (8004f98 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10461. 8004d4c: 681b ldr r3, [r3, #0]
  10462. 8004d4e: 4618 mov r0, r3
  10463. 8004d50: f00e fe34 bl 80139bc <osTimerStop>
  10464. HAL_TIM_PWM_Stop (&htim1, TIM_CHANNEL_2);
  10465. 8004d54: 2104 movs r1, #4
  10466. 8004d56: 4892 ldr r0, [pc, #584] @ (8004fa0 <Uart1ReceivedDataProcessCallback+0x5e8>)
  10467. 8004d58: f00a f8ba bl 800eed0 <HAL_TIM_PWM_Stop>
  10468. 8004d5c: e00c b.n 8004d78 <Uart1ReceivedDataProcessCallback+0x3c0>
  10469. } else if (fanTimerPeriod == -1) {
  10470. 8004d5e: 6b3b ldr r3, [r7, #48] @ 0x30
  10471. 8004d60: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  10472. 8004d64: d108 bne.n 8004d78 <Uart1ReceivedDataProcessCallback+0x3c0>
  10473. osTimerStop (fanTimerHandle);
  10474. 8004d66: 4b8c ldr r3, [pc, #560] @ (8004f98 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10475. 8004d68: 681b ldr r3, [r3, #0]
  10476. 8004d6a: 4618 mov r0, r3
  10477. 8004d6c: f00e fe26 bl 80139bc <osTimerStop>
  10478. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  10479. 8004d70: 2104 movs r1, #4
  10480. 8004d72: 488b ldr r0, [pc, #556] @ (8004fa0 <Uart1ReceivedDataProcessCallback+0x5e8>)
  10481. 8004d74: f009 ff9e bl 800ecb4 <HAL_TIM_PWM_Start>
  10482. }
  10483. respStatus = spOK;
  10484. 8004d78: 2300 movs r3, #0
  10485. 8004d7a: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10486. break;
  10487. 8004d7e: e2af b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10488. case spSetMotorXOn:
  10489. int32_t motorXPWMPulse = 0;
  10490. 8004d80: 2300 movs r3, #0
  10491. 8004d82: 62bb str r3, [r7, #40] @ 0x28
  10492. int32_t motorXTimerPeriod = 0;
  10493. 8004d84: 2300 movs r3, #0
  10494. 8004d86: 627b str r3, [r7, #36] @ 0x24
  10495. uint32_t motorXStatus = 0;
  10496. 8004d88: 2300 movs r3, #0
  10497. 8004d8a: 63bb str r3, [r7, #56] @ 0x38
  10498. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXPWMPulse);
  10499. 8004d8c: 683b ldr r3, [r7, #0]
  10500. 8004d8e: 330c adds r3, #12
  10501. 8004d90: f107 0228 add.w r2, r7, #40 @ 0x28
  10502. 8004d94: f107 0134 add.w r1, r7, #52 @ 0x34
  10503. 8004d98: 4618 mov r0, r3
  10504. 8004d9a: f7fe fa1a bl 80031d2 <ReadWordFromBufer>
  10505. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXTimerPeriod);
  10506. 8004d9e: 683b ldr r3, [r7, #0]
  10507. 8004da0: 330c adds r3, #12
  10508. 8004da2: f107 0224 add.w r2, r7, #36 @ 0x24
  10509. 8004da6: f107 0134 add.w r1, r7, #52 @ 0x34
  10510. 8004daa: 4618 mov r0, r3
  10511. 8004dac: f7fe fa11 bl 80031d2 <ReadWordFromBufer>
  10512. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10513. 8004db0: 4b7c ldr r3, [pc, #496] @ (8004fa4 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10514. 8004db2: 681b ldr r3, [r3, #0]
  10515. 8004db4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10516. 8004db8: 4618 mov r0, r3
  10517. 8004dba: f00e febc bl 8013b36 <osMutexAcquire>
  10518. 8004dbe: 4603 mov r3, r0
  10519. 8004dc0: 2b00 cmp r3, #0
  10520. 8004dc2: d12a bne.n 8004e1a <Uart1ReceivedDataProcessCallback+0x462>
  10521. motorXStatus =
  10522. motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, motorXPWMPulse, motorXTimerPeriod, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  10523. 8004dc4: 4b78 ldr r3, [pc, #480] @ (8004fa8 <Uart1ReceivedDataProcessCallback+0x5f0>)
  10524. 8004dc6: 681b ldr r3, [r3, #0]
  10525. 8004dc8: 6aba ldr r2, [r7, #40] @ 0x28
  10526. 8004dca: 6a79 ldr r1, [r7, #36] @ 0x24
  10527. 8004dcc: 4877 ldr r0, [pc, #476] @ (8004fac <Uart1ReceivedDataProcessCallback+0x5f4>)
  10528. 8004dce: f890 0028 ldrb.w r0, [r0, #40] @ 0x28
  10529. 8004dd2: 4c76 ldr r4, [pc, #472] @ (8004fac <Uart1ReceivedDataProcessCallback+0x5f4>)
  10530. 8004dd4: f894 4029 ldrb.w r4, [r4, #41] @ 0x29
  10531. 8004dd8: 9404 str r4, [sp, #16]
  10532. 8004dda: 9003 str r0, [sp, #12]
  10533. 8004ddc: 9102 str r1, [sp, #8]
  10534. 8004dde: 9201 str r2, [sp, #4]
  10535. 8004de0: 9300 str r3, [sp, #0]
  10536. 8004de2: 2304 movs r3, #4
  10537. 8004de4: 2200 movs r2, #0
  10538. 8004de6: 4972 ldr r1, [pc, #456] @ (8004fb0 <Uart1ReceivedDataProcessCallback+0x5f8>)
  10539. 8004de8: 4872 ldr r0, [pc, #456] @ (8004fb4 <Uart1ReceivedDataProcessCallback+0x5fc>)
  10540. 8004dea: f7fe f81b bl 8002e24 <motorControl>
  10541. 8004dee: 4603 mov r3, r0
  10542. motorXStatus =
  10543. 8004df0: 63bb str r3, [r7, #56] @ 0x38
  10544. sensorsInfo.motorXStatus = motorXStatus;
  10545. 8004df2: 6bbb ldr r3, [r7, #56] @ 0x38
  10546. 8004df4: b2da uxtb r2, r3
  10547. 8004df6: 4b6d ldr r3, [pc, #436] @ (8004fac <Uart1ReceivedDataProcessCallback+0x5f4>)
  10548. 8004df8: 751a strb r2, [r3, #20]
  10549. if (motorXStatus == 1) {
  10550. 8004dfa: 6bbb ldr r3, [r7, #56] @ 0x38
  10551. 8004dfc: 2b01 cmp r3, #1
  10552. 8004dfe: d103 bne.n 8004e08 <Uart1ReceivedDataProcessCallback+0x450>
  10553. sensorsInfo.motorXPeakCurrent = 0.0;
  10554. 8004e00: 4b6a ldr r3, [pc, #424] @ (8004fac <Uart1ReceivedDataProcessCallback+0x5f4>)
  10555. 8004e02: f04f 0200 mov.w r2, #0
  10556. 8004e06: 621a str r2, [r3, #32]
  10557. }
  10558. osMutexRelease (sensorsInfoMutex);
  10559. 8004e08: 4b66 ldr r3, [pc, #408] @ (8004fa4 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10560. 8004e0a: 681b ldr r3, [r3, #0]
  10561. 8004e0c: 4618 mov r0, r3
  10562. 8004e0e: f00e fedd bl 8013bcc <osMutexRelease>
  10563. respStatus = spOK;
  10564. 8004e12: 2300 movs r3, #0
  10565. 8004e14: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10566. } else {
  10567. respStatus = spInternalError;
  10568. }
  10569. break;
  10570. 8004e18: e262 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10571. respStatus = spInternalError;
  10572. 8004e1a: 23fc movs r3, #252 @ 0xfc
  10573. 8004e1c: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10574. break;
  10575. 8004e20: e25e b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10576. case spSetMotorYOn:
  10577. int32_t motorYPWMPulse = 0;
  10578. 8004e22: 2300 movs r3, #0
  10579. 8004e24: 623b str r3, [r7, #32]
  10580. int32_t motorYTimerPeriod = 0;
  10581. 8004e26: 2300 movs r3, #0
  10582. 8004e28: 61fb str r3, [r7, #28]
  10583. uint32_t motorYStatus = 0;
  10584. 8004e2a: 2300 movs r3, #0
  10585. 8004e2c: 63fb str r3, [r7, #60] @ 0x3c
  10586. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYPWMPulse);
  10587. 8004e2e: 683b ldr r3, [r7, #0]
  10588. 8004e30: 330c adds r3, #12
  10589. 8004e32: f107 0220 add.w r2, r7, #32
  10590. 8004e36: f107 0134 add.w r1, r7, #52 @ 0x34
  10591. 8004e3a: 4618 mov r0, r3
  10592. 8004e3c: f7fe f9c9 bl 80031d2 <ReadWordFromBufer>
  10593. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYTimerPeriod);
  10594. 8004e40: 683b ldr r3, [r7, #0]
  10595. 8004e42: 330c adds r3, #12
  10596. 8004e44: f107 021c add.w r2, r7, #28
  10597. 8004e48: f107 0134 add.w r1, r7, #52 @ 0x34
  10598. 8004e4c: 4618 mov r0, r3
  10599. 8004e4e: f7fe f9c0 bl 80031d2 <ReadWordFromBufer>
  10600. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10601. 8004e52: 4b54 ldr r3, [pc, #336] @ (8004fa4 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10602. 8004e54: 681b ldr r3, [r3, #0]
  10603. 8004e56: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10604. 8004e5a: 4618 mov r0, r3
  10605. 8004e5c: f00e fe6b bl 8013b36 <osMutexAcquire>
  10606. 8004e60: 4603 mov r3, r0
  10607. 8004e62: 2b00 cmp r3, #0
  10608. 8004e64: d12a bne.n 8004ebc <Uart1ReceivedDataProcessCallback+0x504>
  10609. motorYStatus =
  10610. motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, motorYPWMPulse, motorYTimerPeriod, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  10611. 8004e66: 4b54 ldr r3, [pc, #336] @ (8004fb8 <Uart1ReceivedDataProcessCallback+0x600>)
  10612. 8004e68: 681b ldr r3, [r3, #0]
  10613. 8004e6a: 6a3a ldr r2, [r7, #32]
  10614. 8004e6c: 69f9 ldr r1, [r7, #28]
  10615. 8004e6e: 484f ldr r0, [pc, #316] @ (8004fac <Uart1ReceivedDataProcessCallback+0x5f4>)
  10616. 8004e70: f890 002b ldrb.w r0, [r0, #43] @ 0x2b
  10617. 8004e74: 4c4d ldr r4, [pc, #308] @ (8004fac <Uart1ReceivedDataProcessCallback+0x5f4>)
  10618. 8004e76: f894 402c ldrb.w r4, [r4, #44] @ 0x2c
  10619. 8004e7a: 9404 str r4, [sp, #16]
  10620. 8004e7c: 9003 str r0, [sp, #12]
  10621. 8004e7e: 9102 str r1, [sp, #8]
  10622. 8004e80: 9201 str r2, [sp, #4]
  10623. 8004e82: 9300 str r3, [sp, #0]
  10624. 8004e84: 230c movs r3, #12
  10625. 8004e86: 2208 movs r2, #8
  10626. 8004e88: 4949 ldr r1, [pc, #292] @ (8004fb0 <Uart1ReceivedDataProcessCallback+0x5f8>)
  10627. 8004e8a: 484a ldr r0, [pc, #296] @ (8004fb4 <Uart1ReceivedDataProcessCallback+0x5fc>)
  10628. 8004e8c: f7fd ffca bl 8002e24 <motorControl>
  10629. 8004e90: 4603 mov r3, r0
  10630. motorYStatus =
  10631. 8004e92: 63fb str r3, [r7, #60] @ 0x3c
  10632. sensorsInfo.motorYStatus = motorYStatus;
  10633. 8004e94: 6bfb ldr r3, [r7, #60] @ 0x3c
  10634. 8004e96: b2da uxtb r2, r3
  10635. 8004e98: 4b44 ldr r3, [pc, #272] @ (8004fac <Uart1ReceivedDataProcessCallback+0x5f4>)
  10636. 8004e9a: 755a strb r2, [r3, #21]
  10637. if (motorYStatus == 1) {
  10638. 8004e9c: 6bfb ldr r3, [r7, #60] @ 0x3c
  10639. 8004e9e: 2b01 cmp r3, #1
  10640. 8004ea0: d103 bne.n 8004eaa <Uart1ReceivedDataProcessCallback+0x4f2>
  10641. sensorsInfo.motorYPeakCurrent = 0.0;
  10642. 8004ea2: 4b42 ldr r3, [pc, #264] @ (8004fac <Uart1ReceivedDataProcessCallback+0x5f4>)
  10643. 8004ea4: f04f 0200 mov.w r2, #0
  10644. 8004ea8: 625a str r2, [r3, #36] @ 0x24
  10645. }
  10646. osMutexRelease (sensorsInfoMutex);
  10647. 8004eaa: 4b3e ldr r3, [pc, #248] @ (8004fa4 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10648. 8004eac: 681b ldr r3, [r3, #0]
  10649. 8004eae: 4618 mov r0, r3
  10650. 8004eb0: f00e fe8c bl 8013bcc <osMutexRelease>
  10651. respStatus = spOK;
  10652. 8004eb4: 2300 movs r3, #0
  10653. 8004eb6: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10654. } else {
  10655. respStatus = spInternalError;
  10656. }
  10657. break;
  10658. 8004eba: e211 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10659. respStatus = spInternalError;
  10660. 8004ebc: 23fc movs r3, #252 @ 0xfc
  10661. 8004ebe: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10662. break;
  10663. 8004ec2: e20d b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10664. case spSetDiodeOn:
  10665. osTimerStop (debugLedTimerHandle);
  10666. 8004ec4: 4b3d ldr r3, [pc, #244] @ (8004fbc <Uart1ReceivedDataProcessCallback+0x604>)
  10667. 8004ec6: 681b ldr r3, [r3, #0]
  10668. 8004ec8: 4618 mov r0, r3
  10669. 8004eca: f00e fd77 bl 80139bc <osTimerStop>
  10670. int32_t dbgLedTimerPeriod = 0;
  10671. 8004ece: 2300 movs r3, #0
  10672. 8004ed0: 61bb str r3, [r7, #24]
  10673. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&dbgLedTimerPeriod);
  10674. 8004ed2: 683b ldr r3, [r7, #0]
  10675. 8004ed4: 330c adds r3, #12
  10676. 8004ed6: f107 0218 add.w r2, r7, #24
  10677. 8004eda: f107 0134 add.w r1, r7, #52 @ 0x34
  10678. 8004ede: 4618 mov r0, r3
  10679. 8004ee0: f7fe f977 bl 80031d2 <ReadWordFromBufer>
  10680. if (dbgLedTimerPeriod > 0) {
  10681. 8004ee4: 69bb ldr r3, [r7, #24]
  10682. 8004ee6: 2b00 cmp r3, #0
  10683. 8004ee8: dd0e ble.n 8004f08 <Uart1ReceivedDataProcessCallback+0x550>
  10684. osTimerStart (debugLedTimerHandle, dbgLedTimerPeriod * 1000);
  10685. 8004eea: 4b34 ldr r3, [pc, #208] @ (8004fbc <Uart1ReceivedDataProcessCallback+0x604>)
  10686. 8004eec: 681a ldr r2, [r3, #0]
  10687. 8004eee: 69bb ldr r3, [r7, #24]
  10688. 8004ef0: f44f 717a mov.w r1, #1000 @ 0x3e8
  10689. 8004ef4: fb01 f303 mul.w r3, r1, r3
  10690. 8004ef8: 4619 mov r1, r3
  10691. 8004efa: 4610 mov r0, r2
  10692. 8004efc: f00e fd30 bl 8013960 <osTimerStart>
  10693. DbgLEDOn (DBG_LED1);
  10694. 8004f00: 2010 movs r0, #16
  10695. 8004f02: f7fd ff01 bl 8002d08 <DbgLEDOn>
  10696. 8004f06: e017 b.n 8004f38 <Uart1ReceivedDataProcessCallback+0x580>
  10697. } else if (dbgLedTimerPeriod == 0) {
  10698. 8004f08: 69bb ldr r3, [r7, #24]
  10699. 8004f0a: 2b00 cmp r3, #0
  10700. 8004f0c: d108 bne.n 8004f20 <Uart1ReceivedDataProcessCallback+0x568>
  10701. osTimerStop (debugLedTimerHandle);
  10702. 8004f0e: 4b2b ldr r3, [pc, #172] @ (8004fbc <Uart1ReceivedDataProcessCallback+0x604>)
  10703. 8004f10: 681b ldr r3, [r3, #0]
  10704. 8004f12: 4618 mov r0, r3
  10705. 8004f14: f00e fd52 bl 80139bc <osTimerStop>
  10706. DbgLEDOff (DBG_LED1);
  10707. 8004f18: 2010 movs r0, #16
  10708. 8004f1a: f7fd ff07 bl 8002d2c <DbgLEDOff>
  10709. 8004f1e: e00b b.n 8004f38 <Uart1ReceivedDataProcessCallback+0x580>
  10710. } else if (dbgLedTimerPeriod == -1) {
  10711. 8004f20: 69bb ldr r3, [r7, #24]
  10712. 8004f22: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  10713. 8004f26: d107 bne.n 8004f38 <Uart1ReceivedDataProcessCallback+0x580>
  10714. osTimerStop (debugLedTimerHandle);
  10715. 8004f28: 4b24 ldr r3, [pc, #144] @ (8004fbc <Uart1ReceivedDataProcessCallback+0x604>)
  10716. 8004f2a: 681b ldr r3, [r3, #0]
  10717. 8004f2c: 4618 mov r0, r3
  10718. 8004f2e: f00e fd45 bl 80139bc <osTimerStop>
  10719. DbgLEDOn (DBG_LED1);
  10720. 8004f32: 2010 movs r0, #16
  10721. 8004f34: f7fd fee8 bl 8002d08 <DbgLEDOn>
  10722. }
  10723. respStatus = spOK;
  10724. 8004f38: 2300 movs r3, #0
  10725. 8004f3a: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10726. break;
  10727. 8004f3e: e1cf b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10728. case spSetmotorXMaxCurrent:
  10729. float motorXMaxCurrent = 0;
  10730. 8004f40: f04f 0300 mov.w r3, #0
  10731. 8004f44: 617b str r3, [r7, #20]
  10732. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXMaxCurrent);
  10733. 8004f46: 683b ldr r3, [r7, #0]
  10734. 8004f48: 330c adds r3, #12
  10735. 8004f4a: f107 0214 add.w r2, r7, #20
  10736. 8004f4e: f107 0134 add.w r1, r7, #52 @ 0x34
  10737. 8004f52: 4618 mov r0, r3
  10738. 8004f54: f7fe f93d bl 80031d2 <ReadWordFromBufer>
  10739. uint32_t dacDataCh1 = (uint32_t)(4095 * motorXMaxCurrent / (EXT_VREF_mV * 0.001));
  10740. 8004f58: edd7 7a05 vldr s15, [r7, #20]
  10741. 8004f5c: ed9f 7a19 vldr s14, [pc, #100] @ 8004fc4 <Uart1ReceivedDataProcessCallback+0x60c>
  10742. 8004f60: ee67 7a87 vmul.f32 s15, s15, s14
  10743. 8004f64: eeb7 6ae7 vcvt.f64.f32 d6, s15
  10744. 8004f68: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  10745. 8004f6c: ee86 7b05 vdiv.f64 d7, d6, d5
  10746. 8004f70: eefc 7bc7 vcvt.u32.f64 s15, d7
  10747. 8004f74: ee17 3a90 vmov r3, s15
  10748. 8004f78: 643b str r3, [r7, #64] @ 0x40
  10749. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_1, DAC_ALIGN_12B_R, dacDataCh1);
  10750. 8004f7a: 6c3b ldr r3, [r7, #64] @ 0x40
  10751. 8004f7c: 2200 movs r2, #0
  10752. 8004f7e: 2100 movs r1, #0
  10753. 8004f80: 480f ldr r0, [pc, #60] @ (8004fc0 <Uart1ReceivedDataProcessCallback+0x608>)
  10754. 8004f82: f002 fc76 bl 8007872 <HAL_DAC_SetValue>
  10755. HAL_DAC_Start (&hdac1, DAC_CHANNEL_1);
  10756. 8004f86: 2100 movs r1, #0
  10757. 8004f88: 480d ldr r0, [pc, #52] @ (8004fc0 <Uart1ReceivedDataProcessCallback+0x608>)
  10758. 8004f8a: f002 fbc5 bl 8007718 <HAL_DAC_Start>
  10759. respStatus = spOK;
  10760. 8004f8e: 2300 movs r3, #0
  10761. 8004f90: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10762. break;
  10763. 8004f94: e1a4 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10764. 8004f96: bf00 nop
  10765. 8004f98: 240006d8 .word 0x240006d8
  10766. 8004f9c: 24000768 .word 0x24000768
  10767. 8004fa0: 2400044c .word 0x2400044c
  10768. 8004fa4: 240007e8 .word 0x240007e8
  10769. 8004fa8: 24000708 .word 0x24000708
  10770. 8004fac: 2400082c .word 0x2400082c
  10771. 8004fb0: 24000784 .word 0x24000784
  10772. 8004fb4: 240004e4 .word 0x240004e4
  10773. 8004fb8: 24000738 .word 0x24000738
  10774. 8004fbc: 240006a8 .word 0x240006a8
  10775. 8004fc0: 24000424 .word 0x24000424
  10776. 8004fc4: 457ff000 .word 0x457ff000
  10777. case spSetmotorYMaxCurrent:
  10778. float motorYMaxCurrent = 0;
  10779. 8004fc8: f04f 0300 mov.w r3, #0
  10780. 8004fcc: 613b str r3, [r7, #16]
  10781. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYMaxCurrent);
  10782. 8004fce: 683b ldr r3, [r7, #0]
  10783. 8004fd0: 330c adds r3, #12
  10784. 8004fd2: f107 0210 add.w r2, r7, #16
  10785. 8004fd6: f107 0134 add.w r1, r7, #52 @ 0x34
  10786. 8004fda: 4618 mov r0, r3
  10787. 8004fdc: f7fe f8f9 bl 80031d2 <ReadWordFromBufer>
  10788. uint32_t dacDataCh2 = (uint32_t)(4095 * motorYMaxCurrent / (EXT_VREF_mV * 0.001));
  10789. 8004fe0: edd7 7a04 vldr s15, [r7, #16]
  10790. 8004fe4: ed1f 7a09 vldr s14, [pc, #-36] @ 8004fc4 <Uart1ReceivedDataProcessCallback+0x60c>
  10791. 8004fe8: ee67 7a87 vmul.f32 s15, s15, s14
  10792. 8004fec: eeb7 6ae7 vcvt.f64.f32 d6, s15
  10793. 8004ff0: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  10794. 8004ff4: ee86 7b05 vdiv.f64 d7, d6, d5
  10795. 8004ff8: eefc 7bc7 vcvt.u32.f64 s15, d7
  10796. 8004ffc: ee17 3a90 vmov r3, s15
  10797. 8005000: 647b str r3, [r7, #68] @ 0x44
  10798. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_2, DAC_ALIGN_12B_R, dacDataCh2);
  10799. 8005002: 6c7b ldr r3, [r7, #68] @ 0x44
  10800. 8005004: 2200 movs r2, #0
  10801. 8005006: 2110 movs r1, #16
  10802. 8005008: 48ac ldr r0, [pc, #688] @ (80052bc <Uart1ReceivedDataProcessCallback+0x904>)
  10803. 800500a: f002 fc32 bl 8007872 <HAL_DAC_SetValue>
  10804. HAL_DAC_Start (&hdac1, DAC_CHANNEL_2);
  10805. 800500e: 2110 movs r1, #16
  10806. 8005010: 48aa ldr r0, [pc, #680] @ (80052bc <Uart1ReceivedDataProcessCallback+0x904>)
  10807. 8005012: f002 fb81 bl 8007718 <HAL_DAC_Start>
  10808. respStatus = spOK;
  10809. 8005016: 2300 movs r3, #0
  10810. 8005018: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10811. break;
  10812. 800501c: e160 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10813. case spClearPeakMeasurments:
  10814. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  10815. 800501e: 4ba8 ldr r3, [pc, #672] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  10816. 8005020: 681b ldr r3, [r3, #0]
  10817. 8005022: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10818. 8005026: 4618 mov r0, r3
  10819. 8005028: f00e fd85 bl 8013b36 <osMutexAcquire>
  10820. 800502c: 4603 mov r3, r0
  10821. 800502e: 2b00 cmp r3, #0
  10822. 8005030: d12a bne.n 8005088 <Uart1ReceivedDataProcessCallback+0x6d0>
  10823. for (int i = 0; i < 3; i++) {
  10824. 8005032: 2300 movs r3, #0
  10825. 8005034: 657b str r3, [r7, #84] @ 0x54
  10826. 8005036: e01b b.n 8005070 <Uart1ReceivedDataProcessCallback+0x6b8>
  10827. resMeasurements.voltagePeak[i] = resMeasurements.voltageRMS[i];
  10828. 8005038: 4aa2 ldr r2, [pc, #648] @ (80052c4 <Uart1ReceivedDataProcessCallback+0x90c>)
  10829. 800503a: 6d7b ldr r3, [r7, #84] @ 0x54
  10830. 800503c: 009b lsls r3, r3, #2
  10831. 800503e: 4413 add r3, r2
  10832. 8005040: 681a ldr r2, [r3, #0]
  10833. 8005042: 49a0 ldr r1, [pc, #640] @ (80052c4 <Uart1ReceivedDataProcessCallback+0x90c>)
  10834. 8005044: 6d7b ldr r3, [r7, #84] @ 0x54
  10835. 8005046: 3302 adds r3, #2
  10836. 8005048: 009b lsls r3, r3, #2
  10837. 800504a: 440b add r3, r1
  10838. 800504c: 3304 adds r3, #4
  10839. 800504e: 601a str r2, [r3, #0]
  10840. resMeasurements.currentPeak[i] = resMeasurements.currentRMS[i];
  10841. 8005050: 4a9c ldr r2, [pc, #624] @ (80052c4 <Uart1ReceivedDataProcessCallback+0x90c>)
  10842. 8005052: 6d7b ldr r3, [r7, #84] @ 0x54
  10843. 8005054: 3306 adds r3, #6
  10844. 8005056: 009b lsls r3, r3, #2
  10845. 8005058: 4413 add r3, r2
  10846. 800505a: 681a ldr r2, [r3, #0]
  10847. 800505c: 4999 ldr r1, [pc, #612] @ (80052c4 <Uart1ReceivedDataProcessCallback+0x90c>)
  10848. 800505e: 6d7b ldr r3, [r7, #84] @ 0x54
  10849. 8005060: 3308 adds r3, #8
  10850. 8005062: 009b lsls r3, r3, #2
  10851. 8005064: 440b add r3, r1
  10852. 8005066: 3304 adds r3, #4
  10853. 8005068: 601a str r2, [r3, #0]
  10854. for (int i = 0; i < 3; i++) {
  10855. 800506a: 6d7b ldr r3, [r7, #84] @ 0x54
  10856. 800506c: 3301 adds r3, #1
  10857. 800506e: 657b str r3, [r7, #84] @ 0x54
  10858. 8005070: 6d7b ldr r3, [r7, #84] @ 0x54
  10859. 8005072: 2b02 cmp r3, #2
  10860. 8005074: dde0 ble.n 8005038 <Uart1ReceivedDataProcessCallback+0x680>
  10861. }
  10862. osMutexRelease (resMeasurementsMutex);
  10863. 8005076: 4b92 ldr r3, [pc, #584] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  10864. 8005078: 681b ldr r3, [r3, #0]
  10865. 800507a: 4618 mov r0, r3
  10866. 800507c: f00e fda6 bl 8013bcc <osMutexRelease>
  10867. respStatus = spOK;
  10868. 8005080: 2300 movs r3, #0
  10869. 8005082: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10870. } else {
  10871. respStatus = spInternalError;
  10872. }
  10873. break;
  10874. 8005086: e12b b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10875. respStatus = spInternalError;
  10876. 8005088: 23fc movs r3, #252 @ 0xfc
  10877. 800508a: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10878. break;
  10879. 800508e: e127 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10880. case spSetEncoderXValue:
  10881. float enocoderXValue = 0;
  10882. 8005090: f04f 0300 mov.w r3, #0
  10883. 8005094: 60fb str r3, [r7, #12]
  10884. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderXValue);
  10885. 8005096: 683b ldr r3, [r7, #0]
  10886. 8005098: 330c adds r3, #12
  10887. 800509a: f107 020c add.w r2, r7, #12
  10888. 800509e: f107 0134 add.w r1, r7, #52 @ 0x34
  10889. 80050a2: 4618 mov r0, r3
  10890. 80050a4: f7fe f895 bl 80031d2 <ReadWordFromBufer>
  10891. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10892. 80050a8: 4b87 ldr r3, [pc, #540] @ (80052c8 <Uart1ReceivedDataProcessCallback+0x910>)
  10893. 80050aa: 681b ldr r3, [r3, #0]
  10894. 80050ac: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10895. 80050b0: 4618 mov r0, r3
  10896. 80050b2: f00e fd40 bl 8013b36 <osMutexAcquire>
  10897. 80050b6: 4603 mov r3, r0
  10898. 80050b8: 2b00 cmp r3, #0
  10899. 80050ba: d10b bne.n 80050d4 <Uart1ReceivedDataProcessCallback+0x71c>
  10900. sensorsInfo.pvEncoderX = enocoderXValue;
  10901. 80050bc: 68fb ldr r3, [r7, #12]
  10902. 80050be: 4a83 ldr r2, [pc, #524] @ (80052cc <Uart1ReceivedDataProcessCallback+0x914>)
  10903. 80050c0: 60d3 str r3, [r2, #12]
  10904. osMutexRelease (sensorsInfoMutex);
  10905. 80050c2: 4b81 ldr r3, [pc, #516] @ (80052c8 <Uart1ReceivedDataProcessCallback+0x910>)
  10906. 80050c4: 681b ldr r3, [r3, #0]
  10907. 80050c6: 4618 mov r0, r3
  10908. 80050c8: f00e fd80 bl 8013bcc <osMutexRelease>
  10909. respStatus = spOK;
  10910. 80050cc: 2300 movs r3, #0
  10911. 80050ce: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10912. } else {
  10913. respStatus = spInternalError;
  10914. }
  10915. break;
  10916. 80050d2: e105 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10917. respStatus = spInternalError;
  10918. 80050d4: 23fc movs r3, #252 @ 0xfc
  10919. 80050d6: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10920. break;
  10921. 80050da: e101 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10922. case spSetEncoderYValue:
  10923. float enocoderYValue = 0;
  10924. 80050dc: f04f 0300 mov.w r3, #0
  10925. 80050e0: 60bb str r3, [r7, #8]
  10926. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderYValue);
  10927. 80050e2: 683b ldr r3, [r7, #0]
  10928. 80050e4: 330c adds r3, #12
  10929. 80050e6: f107 0208 add.w r2, r7, #8
  10930. 80050ea: f107 0134 add.w r1, r7, #52 @ 0x34
  10931. 80050ee: 4618 mov r0, r3
  10932. 80050f0: f7fe f86f bl 80031d2 <ReadWordFromBufer>
  10933. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10934. 80050f4: 4b74 ldr r3, [pc, #464] @ (80052c8 <Uart1ReceivedDataProcessCallback+0x910>)
  10935. 80050f6: 681b ldr r3, [r3, #0]
  10936. 80050f8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10937. 80050fc: 4618 mov r0, r3
  10938. 80050fe: f00e fd1a bl 8013b36 <osMutexAcquire>
  10939. 8005102: 4603 mov r3, r0
  10940. 8005104: 2b00 cmp r3, #0
  10941. 8005106: d10b bne.n 8005120 <Uart1ReceivedDataProcessCallback+0x768>
  10942. sensorsInfo.pvEncoderY = enocoderYValue;
  10943. 8005108: 68bb ldr r3, [r7, #8]
  10944. 800510a: 4a70 ldr r2, [pc, #448] @ (80052cc <Uart1ReceivedDataProcessCallback+0x914>)
  10945. 800510c: 6113 str r3, [r2, #16]
  10946. osMutexRelease (sensorsInfoMutex);
  10947. 800510e: 4b6e ldr r3, [pc, #440] @ (80052c8 <Uart1ReceivedDataProcessCallback+0x910>)
  10948. 8005110: 681b ldr r3, [r3, #0]
  10949. 8005112: 4618 mov r0, r3
  10950. 8005114: f00e fd5a bl 8013bcc <osMutexRelease>
  10951. respStatus = spOK;
  10952. 8005118: 2300 movs r3, #0
  10953. 800511a: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10954. } else {
  10955. respStatus = spInternalError;
  10956. }
  10957. break;
  10958. 800511e: e0df b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10959. respStatus = spInternalError;
  10960. 8005120: 23fc movs r3, #252 @ 0xfc
  10961. 8005122: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10962. break;
  10963. 8005126: e0db b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  10964. case spSetVoltageMeasGains:
  10965. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  10966. 8005128: 4b65 ldr r3, [pc, #404] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  10967. 800512a: 681b ldr r3, [r3, #0]
  10968. 800512c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10969. 8005130: 4618 mov r0, r3
  10970. 8005132: f00e fd00 bl 8013b36 <osMutexAcquire>
  10971. 8005136: 4603 mov r3, r0
  10972. 8005138: 2b00 cmp r3, #0
  10973. 800513a: d122 bne.n 8005182 <Uart1ReceivedDataProcessCallback+0x7ca>
  10974. for (uint8_t i = 0; i < 3; i++) {
  10975. 800513c: 2300 movs r3, #0
  10976. 800513e: f887 3053 strb.w r3, [r7, #83] @ 0x53
  10977. 8005142: e011 b.n 8005168 <Uart1ReceivedDataProcessCallback+0x7b0>
  10978. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].gain);
  10979. 8005144: 683b ldr r3, [r7, #0]
  10980. 8005146: f103 000c add.w r0, r3, #12
  10981. 800514a: f897 3053 ldrb.w r3, [r7, #83] @ 0x53
  10982. 800514e: 00db lsls r3, r3, #3
  10983. 8005150: 4a5f ldr r2, [pc, #380] @ (80052d0 <Uart1ReceivedDataProcessCallback+0x918>)
  10984. 8005152: 441a add r2, r3
  10985. 8005154: f107 0334 add.w r3, r7, #52 @ 0x34
  10986. 8005158: 4619 mov r1, r3
  10987. 800515a: f7fe f83a bl 80031d2 <ReadWordFromBufer>
  10988. for (uint8_t i = 0; i < 3; i++) {
  10989. 800515e: f897 3053 ldrb.w r3, [r7, #83] @ 0x53
  10990. 8005162: 3301 adds r3, #1
  10991. 8005164: f887 3053 strb.w r3, [r7, #83] @ 0x53
  10992. 8005168: f897 3053 ldrb.w r3, [r7, #83] @ 0x53
  10993. 800516c: 2b02 cmp r3, #2
  10994. 800516e: d9e9 bls.n 8005144 <Uart1ReceivedDataProcessCallback+0x78c>
  10995. }
  10996. osMutexRelease (resMeasurementsMutex);
  10997. 8005170: 4b53 ldr r3, [pc, #332] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  10998. 8005172: 681b ldr r3, [r3, #0]
  10999. 8005174: 4618 mov r0, r3
  11000. 8005176: f00e fd29 bl 8013bcc <osMutexRelease>
  11001. respStatus = spOK;
  11002. 800517a: 2300 movs r3, #0
  11003. 800517c: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11004. } else {
  11005. respStatus = spInternalError;
  11006. }
  11007. break;
  11008. 8005180: e0ae b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  11009. respStatus = spInternalError;
  11010. 8005182: 23fc movs r3, #252 @ 0xfc
  11011. 8005184: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11012. break;
  11013. 8005188: e0aa b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  11014. case spSetVoltageMeasOffsets:
  11015. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11016. 800518a: 4b4d ldr r3, [pc, #308] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  11017. 800518c: 681b ldr r3, [r3, #0]
  11018. 800518e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11019. 8005192: 4618 mov r0, r3
  11020. 8005194: f00e fccf bl 8013b36 <osMutexAcquire>
  11021. 8005198: 4603 mov r3, r0
  11022. 800519a: 2b00 cmp r3, #0
  11023. 800519c: d123 bne.n 80051e6 <Uart1ReceivedDataProcessCallback+0x82e>
  11024. for (uint8_t i = 0; i < 3; i++) {
  11025. 800519e: 2300 movs r3, #0
  11026. 80051a0: f887 3052 strb.w r3, [r7, #82] @ 0x52
  11027. 80051a4: e012 b.n 80051cc <Uart1ReceivedDataProcessCallback+0x814>
  11028. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].offset);
  11029. 80051a6: 683b ldr r3, [r7, #0]
  11030. 80051a8: f103 000c add.w r0, r3, #12
  11031. 80051ac: f897 3052 ldrb.w r3, [r7, #82] @ 0x52
  11032. 80051b0: 00db lsls r3, r3, #3
  11033. 80051b2: 4a47 ldr r2, [pc, #284] @ (80052d0 <Uart1ReceivedDataProcessCallback+0x918>)
  11034. 80051b4: 4413 add r3, r2
  11035. 80051b6: 1d1a adds r2, r3, #4
  11036. 80051b8: f107 0334 add.w r3, r7, #52 @ 0x34
  11037. 80051bc: 4619 mov r1, r3
  11038. 80051be: f7fe f808 bl 80031d2 <ReadWordFromBufer>
  11039. for (uint8_t i = 0; i < 3; i++) {
  11040. 80051c2: f897 3052 ldrb.w r3, [r7, #82] @ 0x52
  11041. 80051c6: 3301 adds r3, #1
  11042. 80051c8: f887 3052 strb.w r3, [r7, #82] @ 0x52
  11043. 80051cc: f897 3052 ldrb.w r3, [r7, #82] @ 0x52
  11044. 80051d0: 2b02 cmp r3, #2
  11045. 80051d2: d9e8 bls.n 80051a6 <Uart1ReceivedDataProcessCallback+0x7ee>
  11046. }
  11047. osMutexRelease (resMeasurementsMutex);
  11048. 80051d4: 4b3a ldr r3, [pc, #232] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  11049. 80051d6: 681b ldr r3, [r3, #0]
  11050. 80051d8: 4618 mov r0, r3
  11051. 80051da: f00e fcf7 bl 8013bcc <osMutexRelease>
  11052. respStatus = spOK;
  11053. 80051de: 2300 movs r3, #0
  11054. 80051e0: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11055. } else {
  11056. respStatus = spInternalError;
  11057. }
  11058. break;
  11059. 80051e4: e07c b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  11060. respStatus = spInternalError;
  11061. 80051e6: 23fc movs r3, #252 @ 0xfc
  11062. 80051e8: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11063. break;
  11064. 80051ec: e078 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  11065. case spSetCurrentMeasGains:
  11066. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11067. 80051ee: 4b34 ldr r3, [pc, #208] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  11068. 80051f0: 681b ldr r3, [r3, #0]
  11069. 80051f2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11070. 80051f6: 4618 mov r0, r3
  11071. 80051f8: f00e fc9d bl 8013b36 <osMutexAcquire>
  11072. 80051fc: 4603 mov r3, r0
  11073. 80051fe: 2b00 cmp r3, #0
  11074. 8005200: d122 bne.n 8005248 <Uart1ReceivedDataProcessCallback+0x890>
  11075. for (uint8_t i = 0; i < 3; i++) {
  11076. 8005202: 2300 movs r3, #0
  11077. 8005204: f887 3051 strb.w r3, [r7, #81] @ 0x51
  11078. 8005208: e011 b.n 800522e <Uart1ReceivedDataProcessCallback+0x876>
  11079. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].gain);
  11080. 800520a: 683b ldr r3, [r7, #0]
  11081. 800520c: f103 000c add.w r0, r3, #12
  11082. 8005210: f897 3051 ldrb.w r3, [r7, #81] @ 0x51
  11083. 8005214: 00db lsls r3, r3, #3
  11084. 8005216: 4a2f ldr r2, [pc, #188] @ (80052d4 <Uart1ReceivedDataProcessCallback+0x91c>)
  11085. 8005218: 441a add r2, r3
  11086. 800521a: f107 0334 add.w r3, r7, #52 @ 0x34
  11087. 800521e: 4619 mov r1, r3
  11088. 8005220: f7fd ffd7 bl 80031d2 <ReadWordFromBufer>
  11089. for (uint8_t i = 0; i < 3; i++) {
  11090. 8005224: f897 3051 ldrb.w r3, [r7, #81] @ 0x51
  11091. 8005228: 3301 adds r3, #1
  11092. 800522a: f887 3051 strb.w r3, [r7, #81] @ 0x51
  11093. 800522e: f897 3051 ldrb.w r3, [r7, #81] @ 0x51
  11094. 8005232: 2b02 cmp r3, #2
  11095. 8005234: d9e9 bls.n 800520a <Uart1ReceivedDataProcessCallback+0x852>
  11096. }
  11097. osMutexRelease (resMeasurementsMutex);
  11098. 8005236: 4b22 ldr r3, [pc, #136] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  11099. 8005238: 681b ldr r3, [r3, #0]
  11100. 800523a: 4618 mov r0, r3
  11101. 800523c: f00e fcc6 bl 8013bcc <osMutexRelease>
  11102. respStatus = spOK;
  11103. 8005240: 2300 movs r3, #0
  11104. 8005242: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11105. } else {
  11106. respStatus = spInternalError;
  11107. }
  11108. break;
  11109. 8005246: e04b b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  11110. respStatus = spInternalError;
  11111. 8005248: 23fc movs r3, #252 @ 0xfc
  11112. 800524a: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11113. break;
  11114. 800524e: e047 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  11115. case spSetCurrentMeasOffsets:
  11116. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11117. 8005250: 4b1b ldr r3, [pc, #108] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  11118. 8005252: 681b ldr r3, [r3, #0]
  11119. 8005254: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11120. 8005258: 4618 mov r0, r3
  11121. 800525a: f00e fc6c bl 8013b36 <osMutexAcquire>
  11122. 800525e: 4603 mov r3, r0
  11123. 8005260: 2b00 cmp r3, #0
  11124. 8005262: d123 bne.n 80052ac <Uart1ReceivedDataProcessCallback+0x8f4>
  11125. for (uint8_t i = 0; i < 3; i++) {
  11126. 8005264: 2300 movs r3, #0
  11127. 8005266: f887 3050 strb.w r3, [r7, #80] @ 0x50
  11128. 800526a: e012 b.n 8005292 <Uart1ReceivedDataProcessCallback+0x8da>
  11129. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].offset);
  11130. 800526c: 683b ldr r3, [r7, #0]
  11131. 800526e: f103 000c add.w r0, r3, #12
  11132. 8005272: f897 3050 ldrb.w r3, [r7, #80] @ 0x50
  11133. 8005276: 00db lsls r3, r3, #3
  11134. 8005278: 4a16 ldr r2, [pc, #88] @ (80052d4 <Uart1ReceivedDataProcessCallback+0x91c>)
  11135. 800527a: 4413 add r3, r2
  11136. 800527c: 1d1a adds r2, r3, #4
  11137. 800527e: f107 0334 add.w r3, r7, #52 @ 0x34
  11138. 8005282: 4619 mov r1, r3
  11139. 8005284: f7fd ffa5 bl 80031d2 <ReadWordFromBufer>
  11140. for (uint8_t i = 0; i < 3; i++) {
  11141. 8005288: f897 3050 ldrb.w r3, [r7, #80] @ 0x50
  11142. 800528c: 3301 adds r3, #1
  11143. 800528e: f887 3050 strb.w r3, [r7, #80] @ 0x50
  11144. 8005292: f897 3050 ldrb.w r3, [r7, #80] @ 0x50
  11145. 8005296: 2b02 cmp r3, #2
  11146. 8005298: d9e8 bls.n 800526c <Uart1ReceivedDataProcessCallback+0x8b4>
  11147. }
  11148. osMutexRelease (resMeasurementsMutex);
  11149. 800529a: 4b09 ldr r3, [pc, #36] @ (80052c0 <Uart1ReceivedDataProcessCallback+0x908>)
  11150. 800529c: 681b ldr r3, [r3, #0]
  11151. 800529e: 4618 mov r0, r3
  11152. 80052a0: f00e fc94 bl 8013bcc <osMutexRelease>
  11153. respStatus = spOK;
  11154. 80052a4: 2300 movs r3, #0
  11155. 80052a6: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11156. } else {
  11157. respStatus = spInternalError;
  11158. }
  11159. break;
  11160. 80052aa: e019 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  11161. respStatus = spInternalError;
  11162. 80052ac: 23fc movs r3, #252 @ 0xfc
  11163. 80052ae: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11164. break;
  11165. 80052b2: e015 b.n 80052e0 <Uart1ReceivedDataProcessCallback+0x928>
  11166. __ASM volatile ("cpsid i" : : : "memory");
  11167. 80052b4: b672 cpsid i
  11168. }
  11169. 80052b6: bf00 nop
  11170. case spResetSystem:
  11171. __disable_irq();
  11172. NVIC_SystemReset();
  11173. 80052b8: f7fe ffb0 bl 800421c <__NVIC_SystemReset>
  11174. 80052bc: 24000424 .word 0x24000424
  11175. 80052c0: 240007e4 .word 0x240007e4
  11176. 80052c4: 240007f0 .word 0x240007f0
  11177. 80052c8: 240007e8 .word 0x240007e8
  11178. 80052cc: 2400082c .word 0x2400082c
  11179. 80052d0: 24000000 .word 0x24000000
  11180. 80052d4: 24000018 .word 0x24000018
  11181. break;
  11182. default: respStatus = spUnknownCommand; break;
  11183. 80052d8: 23fd movs r3, #253 @ 0xfd
  11184. 80052da: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11185. 80052de: bf00 nop
  11186. }
  11187. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData->frameHeader.frameId, spFrameData->frameHeader.frameCommand, respStatus, outputDataBuffer, outputDataBufferPos);
  11188. 80052e0: 6cfb ldr r3, [r7, #76] @ 0x4c
  11189. 80052e2: 6898 ldr r0, [r3, #8]
  11190. 80052e4: 683b ldr r3, [r7, #0]
  11191. 80052e6: 8819 ldrh r1, [r3, #0]
  11192. 80052e8: 683b ldr r3, [r7, #0]
  11193. 80052ea: 789a ldrb r2, [r3, #2]
  11194. 80052ec: 4b13 ldr r3, [pc, #76] @ (800533c <Uart1ReceivedDataProcessCallback+0x984>)
  11195. 80052ee: 881b ldrh r3, [r3, #0]
  11196. 80052f0: f997 406f ldrsb.w r4, [r7, #111] @ 0x6f
  11197. 80052f4: 9301 str r3, [sp, #4]
  11198. 80052f6: 4b12 ldr r3, [pc, #72] @ (8005340 <Uart1ReceivedDataProcessCallback+0x988>)
  11199. 80052f8: 9300 str r3, [sp, #0]
  11200. 80052fa: 4623 mov r3, r4
  11201. 80052fc: f7fd ff9c bl 8003238 <PrepareRespFrame>
  11202. 8005300: 4603 mov r3, r0
  11203. 8005302: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  11204. if (dataToSend > 0) {
  11205. 8005306: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  11206. 800530a: 2b00 cmp r3, #0
  11207. 800530c: d008 beq.n 8005320 <Uart1ReceivedDataProcessCallback+0x968>
  11208. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  11209. 800530e: 6cfb ldr r3, [r7, #76] @ 0x4c
  11210. 8005310: 6b18 ldr r0, [r3, #48] @ 0x30
  11211. 8005312: 6cfb ldr r3, [r7, #76] @ 0x4c
  11212. 8005314: 689b ldr r3, [r3, #8]
  11213. 8005316: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  11214. 800531a: 4619 mov r1, r3
  11215. 800531c: f00b fbde bl 8010adc <HAL_UART_Transmit_IT>
  11216. }
  11217. printf ("Uart%d: TX bytes sent: %d\n", uartTaskData->uartNumber, dataToSend);
  11218. 8005320: 6cfb ldr r3, [r7, #76] @ 0x4c
  11219. 8005322: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  11220. 8005326: 4619 mov r1, r3
  11221. 8005328: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  11222. 800532c: 461a mov r2, r3
  11223. 800532e: 4805 ldr r0, [pc, #20] @ (8005344 <Uart1ReceivedDataProcessCallback+0x98c>)
  11224. 8005330: f012 fbec bl 8017b0c <iprintf>
  11225. }
  11226. 8005334: bf00 nop
  11227. 8005336: 3774 adds r7, #116 @ 0x74
  11228. 8005338: 46bd mov sp, r7
  11229. 800533a: bd90 pop {r4, r7, pc}
  11230. 800533c: 24000ca4 .word 0x24000ca4
  11231. 8005340: 24000c24 .word 0x24000c24
  11232. 8005344: 08018990 .word 0x08018990
  11233. 08005348 <Reset_Handler>:
  11234. .section .text.Reset_Handler
  11235. .weak Reset_Handler
  11236. .type Reset_Handler, %function
  11237. Reset_Handler:
  11238. ldr sp, =_estack /* set stack pointer */
  11239. 8005348: f8df d034 ldr.w sp, [pc, #52] @ 8005380 <LoopFillZerobss+0xe>
  11240. /* Call the clock system initialization function.*/
  11241. bl SystemInit
  11242. 800534c: f7fe fede bl 800410c <SystemInit>
  11243. /* Copy the data segment initializers from flash to SRAM */
  11244. ldr r0, =_sdata
  11245. 8005350: 480c ldr r0, [pc, #48] @ (8005384 <LoopFillZerobss+0x12>)
  11246. ldr r1, =_edata
  11247. 8005352: 490d ldr r1, [pc, #52] @ (8005388 <LoopFillZerobss+0x16>)
  11248. ldr r2, =_sidata
  11249. 8005354: 4a0d ldr r2, [pc, #52] @ (800538c <LoopFillZerobss+0x1a>)
  11250. movs r3, #0
  11251. 8005356: 2300 movs r3, #0
  11252. b LoopCopyDataInit
  11253. 8005358: e002 b.n 8005360 <LoopCopyDataInit>
  11254. 0800535a <CopyDataInit>:
  11255. CopyDataInit:
  11256. ldr r4, [r2, r3]
  11257. 800535a: 58d4 ldr r4, [r2, r3]
  11258. str r4, [r0, r3]
  11259. 800535c: 50c4 str r4, [r0, r3]
  11260. adds r3, r3, #4
  11261. 800535e: 3304 adds r3, #4
  11262. 08005360 <LoopCopyDataInit>:
  11263. LoopCopyDataInit:
  11264. adds r4, r0, r3
  11265. 8005360: 18c4 adds r4, r0, r3
  11266. cmp r4, r1
  11267. 8005362: 428c cmp r4, r1
  11268. bcc CopyDataInit
  11269. 8005364: d3f9 bcc.n 800535a <CopyDataInit>
  11270. /* Zero fill the bss segment. */
  11271. ldr r2, =_sbss
  11272. 8005366: 4a0a ldr r2, [pc, #40] @ (8005390 <LoopFillZerobss+0x1e>)
  11273. ldr r4, =_ebss
  11274. 8005368: 4c0a ldr r4, [pc, #40] @ (8005394 <LoopFillZerobss+0x22>)
  11275. movs r3, #0
  11276. 800536a: 2300 movs r3, #0
  11277. b LoopFillZerobss
  11278. 800536c: e001 b.n 8005372 <LoopFillZerobss>
  11279. 0800536e <FillZerobss>:
  11280. FillZerobss:
  11281. str r3, [r2]
  11282. 800536e: 6013 str r3, [r2, #0]
  11283. adds r2, r2, #4
  11284. 8005370: 3204 adds r2, #4
  11285. 08005372 <LoopFillZerobss>:
  11286. LoopFillZerobss:
  11287. cmp r2, r4
  11288. 8005372: 42a2 cmp r2, r4
  11289. bcc FillZerobss
  11290. 8005374: d3fb bcc.n 800536e <FillZerobss>
  11291. /* Call static constructors */
  11292. bl __libc_init_array
  11293. 8005376: f012 fcc9 bl 8017d0c <__libc_init_array>
  11294. /* Call the application's entry point.*/
  11295. bl main
  11296. 800537a: f7fb f9cd bl 8000718 <main>
  11297. bx lr
  11298. 800537e: 4770 bx lr
  11299. ldr sp, =_estack /* set stack pointer */
  11300. 8005380: 24060000 .word 0x24060000
  11301. ldr r0, =_sdata
  11302. 8005384: 24000000 .word 0x24000000
  11303. ldr r1, =_edata
  11304. 8005388: 240000a4 .word 0x240000a4
  11305. ldr r2, =_sidata
  11306. 800538c: 08018aac .word 0x08018aac
  11307. ldr r2, =_sbss
  11308. 8005390: 240000c0 .word 0x240000c0
  11309. ldr r4, =_ebss
  11310. 8005394: 24012de0 .word 0x24012de0
  11311. 08005398 <ADC3_IRQHandler>:
  11312. * @retval None
  11313. */
  11314. .section .text.Default_Handler,"ax",%progbits
  11315. Default_Handler:
  11316. Infinite_Loop:
  11317. b Infinite_Loop
  11318. 8005398: e7fe b.n 8005398 <ADC3_IRQHandler>
  11319. ...
  11320. 0800539c <HAL_Init>:
  11321. * need to ensure that the SysTick time base is always set to 1 millisecond
  11322. * to have correct HAL operation.
  11323. * @retval HAL status
  11324. */
  11325. HAL_StatusTypeDef HAL_Init(void)
  11326. {
  11327. 800539c: b580 push {r7, lr}
  11328. 800539e: b082 sub sp, #8
  11329. 80053a0: af00 add r7, sp, #0
  11330. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  11331. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  11332. #endif /* DUAL_CORE && CORE_CM4 */
  11333. /* Set Interrupt Group Priority */
  11334. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  11335. 80053a2: 2003 movs r0, #3
  11336. 80053a4: f001 fee5 bl 8007172 <HAL_NVIC_SetPriorityGrouping>
  11337. /* Update the SystemCoreClock global variable */
  11338. #if defined(RCC_D1CFGR_D1CPRE)
  11339. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  11340. 80053a8: f006 fb90 bl 800bacc <HAL_RCC_GetSysClockFreq>
  11341. 80053ac: 4602 mov r2, r0
  11342. 80053ae: 4b15 ldr r3, [pc, #84] @ (8005404 <HAL_Init+0x68>)
  11343. 80053b0: 699b ldr r3, [r3, #24]
  11344. 80053b2: 0a1b lsrs r3, r3, #8
  11345. 80053b4: f003 030f and.w r3, r3, #15
  11346. 80053b8: 4913 ldr r1, [pc, #76] @ (8005408 <HAL_Init+0x6c>)
  11347. 80053ba: 5ccb ldrb r3, [r1, r3]
  11348. 80053bc: f003 031f and.w r3, r3, #31
  11349. 80053c0: fa22 f303 lsr.w r3, r2, r3
  11350. 80053c4: 607b str r3, [r7, #4]
  11351. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  11352. #endif
  11353. /* Update the SystemD2Clock global variable */
  11354. #if defined(RCC_D1CFGR_HPRE)
  11355. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  11356. 80053c6: 4b0f ldr r3, [pc, #60] @ (8005404 <HAL_Init+0x68>)
  11357. 80053c8: 699b ldr r3, [r3, #24]
  11358. 80053ca: f003 030f and.w r3, r3, #15
  11359. 80053ce: 4a0e ldr r2, [pc, #56] @ (8005408 <HAL_Init+0x6c>)
  11360. 80053d0: 5cd3 ldrb r3, [r2, r3]
  11361. 80053d2: f003 031f and.w r3, r3, #31
  11362. 80053d6: 687a ldr r2, [r7, #4]
  11363. 80053d8: fa22 f303 lsr.w r3, r2, r3
  11364. 80053dc: 4a0b ldr r2, [pc, #44] @ (800540c <HAL_Init+0x70>)
  11365. 80053de: 6013 str r3, [r2, #0]
  11366. #endif
  11367. #if defined(DUAL_CORE) && defined(CORE_CM4)
  11368. SystemCoreClock = SystemD2Clock;
  11369. #else
  11370. SystemCoreClock = common_system_clock;
  11371. 80053e0: 4a0b ldr r2, [pc, #44] @ (8005410 <HAL_Init+0x74>)
  11372. 80053e2: 687b ldr r3, [r7, #4]
  11373. 80053e4: 6013 str r3, [r2, #0]
  11374. #endif /* DUAL_CORE && CORE_CM4 */
  11375. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  11376. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  11377. 80053e6: 2005 movs r0, #5
  11378. 80053e8: f7fe fce4 bl 8003db4 <HAL_InitTick>
  11379. 80053ec: 4603 mov r3, r0
  11380. 80053ee: 2b00 cmp r3, #0
  11381. 80053f0: d001 beq.n 80053f6 <HAL_Init+0x5a>
  11382. {
  11383. return HAL_ERROR;
  11384. 80053f2: 2301 movs r3, #1
  11385. 80053f4: e002 b.n 80053fc <HAL_Init+0x60>
  11386. }
  11387. /* Init the low level hardware */
  11388. HAL_MspInit();
  11389. 80053f6: f7fd ffbd bl 8003374 <HAL_MspInit>
  11390. /* Return function status */
  11391. return HAL_OK;
  11392. 80053fa: 2300 movs r3, #0
  11393. }
  11394. 80053fc: 4618 mov r0, r3
  11395. 80053fe: 3708 adds r7, #8
  11396. 8005400: 46bd mov sp, r7
  11397. 8005402: bd80 pop {r7, pc}
  11398. 8005404: 58024400 .word 0x58024400
  11399. 8005408: 08018a28 .word 0x08018a28
  11400. 800540c: 24000038 .word 0x24000038
  11401. 8005410: 24000034 .word 0x24000034
  11402. 08005414 <HAL_IncTick>:
  11403. * @note This function is declared as __weak to be overwritten in case of other
  11404. * implementations in user file.
  11405. * @retval None
  11406. */
  11407. __weak void HAL_IncTick(void)
  11408. {
  11409. 8005414: b480 push {r7}
  11410. 8005416: af00 add r7, sp, #0
  11411. uwTick += (uint32_t)uwTickFreq;
  11412. 8005418: 4b06 ldr r3, [pc, #24] @ (8005434 <HAL_IncTick+0x20>)
  11413. 800541a: 781b ldrb r3, [r3, #0]
  11414. 800541c: 461a mov r2, r3
  11415. 800541e: 4b06 ldr r3, [pc, #24] @ (8005438 <HAL_IncTick+0x24>)
  11416. 8005420: 681b ldr r3, [r3, #0]
  11417. 8005422: 4413 add r3, r2
  11418. 8005424: 4a04 ldr r2, [pc, #16] @ (8005438 <HAL_IncTick+0x24>)
  11419. 8005426: 6013 str r3, [r2, #0]
  11420. }
  11421. 8005428: bf00 nop
  11422. 800542a: 46bd mov sp, r7
  11423. 800542c: f85d 7b04 ldr.w r7, [sp], #4
  11424. 8005430: 4770 bx lr
  11425. 8005432: bf00 nop
  11426. 8005434: 24000040 .word 0x24000040
  11427. 8005438: 24000ca8 .word 0x24000ca8
  11428. 0800543c <HAL_GetTick>:
  11429. * @note This function is declared as __weak to be overwritten in case of other
  11430. * implementations in user file.
  11431. * @retval tick value
  11432. */
  11433. __weak uint32_t HAL_GetTick(void)
  11434. {
  11435. 800543c: b480 push {r7}
  11436. 800543e: af00 add r7, sp, #0
  11437. return uwTick;
  11438. 8005440: 4b03 ldr r3, [pc, #12] @ (8005450 <HAL_GetTick+0x14>)
  11439. 8005442: 681b ldr r3, [r3, #0]
  11440. }
  11441. 8005444: 4618 mov r0, r3
  11442. 8005446: 46bd mov sp, r7
  11443. 8005448: f85d 7b04 ldr.w r7, [sp], #4
  11444. 800544c: 4770 bx lr
  11445. 800544e: bf00 nop
  11446. 8005450: 24000ca8 .word 0x24000ca8
  11447. 08005454 <HAL_GetREVID>:
  11448. /**
  11449. * @brief Returns the device revision identifier.
  11450. * @retval Device revision identifier
  11451. */
  11452. uint32_t HAL_GetREVID(void)
  11453. {
  11454. 8005454: b480 push {r7}
  11455. 8005456: af00 add r7, sp, #0
  11456. return((DBGMCU->IDCODE) >> 16);
  11457. 8005458: 4b03 ldr r3, [pc, #12] @ (8005468 <HAL_GetREVID+0x14>)
  11458. 800545a: 681b ldr r3, [r3, #0]
  11459. 800545c: 0c1b lsrs r3, r3, #16
  11460. }
  11461. 800545e: 4618 mov r0, r3
  11462. 8005460: 46bd mov sp, r7
  11463. 8005462: f85d 7b04 ldr.w r7, [sp], #4
  11464. 8005466: 4770 bx lr
  11465. 8005468: 5c001000 .word 0x5c001000
  11466. 0800546c <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>:
  11467. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE: VREF+ pin is internally connect to VREFINT output.
  11468. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE: VREF+ pin is high impedance.
  11469. * @retval None
  11470. */
  11471. void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode)
  11472. {
  11473. 800546c: b480 push {r7}
  11474. 800546e: b083 sub sp, #12
  11475. 8005470: af00 add r7, sp, #0
  11476. 8005472: 6078 str r0, [r7, #4]
  11477. /* Check the parameters */
  11478. assert_param(IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(Mode));
  11479. MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_HIZ, Mode);
  11480. 8005474: 4b06 ldr r3, [pc, #24] @ (8005490 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  11481. 8005476: 681b ldr r3, [r3, #0]
  11482. 8005478: f023 0202 bic.w r2, r3, #2
  11483. 800547c: 4904 ldr r1, [pc, #16] @ (8005490 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  11484. 800547e: 687b ldr r3, [r7, #4]
  11485. 8005480: 4313 orrs r3, r2
  11486. 8005482: 600b str r3, [r1, #0]
  11487. }
  11488. 8005484: bf00 nop
  11489. 8005486: 370c adds r7, #12
  11490. 8005488: 46bd mov sp, r7
  11491. 800548a: f85d 7b04 ldr.w r7, [sp], #4
  11492. 800548e: 4770 bx lr
  11493. 8005490: 58003c00 .word 0x58003c00
  11494. 08005494 <HAL_SYSCFG_DisableVREFBUF>:
  11495. * @brief Disable the Internal Voltage Reference buffer (VREFBUF).
  11496. *
  11497. * @retval None
  11498. */
  11499. void HAL_SYSCFG_DisableVREFBUF(void)
  11500. {
  11501. 8005494: b480 push {r7}
  11502. 8005496: af00 add r7, sp, #0
  11503. CLEAR_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR);
  11504. 8005498: 4b05 ldr r3, [pc, #20] @ (80054b0 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  11505. 800549a: 681b ldr r3, [r3, #0]
  11506. 800549c: 4a04 ldr r2, [pc, #16] @ (80054b0 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  11507. 800549e: f023 0301 bic.w r3, r3, #1
  11508. 80054a2: 6013 str r3, [r2, #0]
  11509. }
  11510. 80054a4: bf00 nop
  11511. 80054a6: 46bd mov sp, r7
  11512. 80054a8: f85d 7b04 ldr.w r7, [sp], #4
  11513. 80054ac: 4770 bx lr
  11514. 80054ae: bf00 nop
  11515. 80054b0: 58003c00 .word 0x58003c00
  11516. 080054b4 <HAL_SYSCFG_AnalogSwitchConfig>:
  11517. * @arg SYSCFG_SWITCH_PC3_CLOSE
  11518. * @retval None
  11519. */
  11520. void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState )
  11521. {
  11522. 80054b4: b480 push {r7}
  11523. 80054b6: b083 sub sp, #12
  11524. 80054b8: af00 add r7, sp, #0
  11525. 80054ba: 6078 str r0, [r7, #4]
  11526. 80054bc: 6039 str r1, [r7, #0]
  11527. /* Check the parameter */
  11528. assert_param(IS_SYSCFG_ANALOG_SWITCH(SYSCFG_AnalogSwitch));
  11529. assert_param(IS_SYSCFG_SWITCH_STATE(SYSCFG_SwitchState));
  11530. MODIFY_REG(SYSCFG->PMCR, (uint32_t) SYSCFG_AnalogSwitch, (uint32_t)(SYSCFG_SwitchState));
  11531. 80054be: 4b07 ldr r3, [pc, #28] @ (80054dc <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  11532. 80054c0: 685a ldr r2, [r3, #4]
  11533. 80054c2: 687b ldr r3, [r7, #4]
  11534. 80054c4: 43db mvns r3, r3
  11535. 80054c6: 401a ands r2, r3
  11536. 80054c8: 4904 ldr r1, [pc, #16] @ (80054dc <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  11537. 80054ca: 683b ldr r3, [r7, #0]
  11538. 80054cc: 4313 orrs r3, r2
  11539. 80054ce: 604b str r3, [r1, #4]
  11540. }
  11541. 80054d0: bf00 nop
  11542. 80054d2: 370c adds r7, #12
  11543. 80054d4: 46bd mov sp, r7
  11544. 80054d6: f85d 7b04 ldr.w r7, [sp], #4
  11545. 80054da: 4770 bx lr
  11546. 80054dc: 58000400 .word 0x58000400
  11547. 080054e0 <LL_ADC_SetCommonClock>:
  11548. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128
  11549. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256
  11550. * @retval None
  11551. */
  11552. __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock)
  11553. {
  11554. 80054e0: b480 push {r7}
  11555. 80054e2: b083 sub sp, #12
  11556. 80054e4: af00 add r7, sp, #0
  11557. 80054e6: 6078 str r0, [r7, #4]
  11558. 80054e8: 6039 str r1, [r7, #0]
  11559. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock);
  11560. 80054ea: 687b ldr r3, [r7, #4]
  11561. 80054ec: 689b ldr r3, [r3, #8]
  11562. 80054ee: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000
  11563. 80054f2: 683b ldr r3, [r7, #0]
  11564. 80054f4: 431a orrs r2, r3
  11565. 80054f6: 687b ldr r3, [r7, #4]
  11566. 80054f8: 609a str r2, [r3, #8]
  11567. }
  11568. 80054fa: bf00 nop
  11569. 80054fc: 370c adds r7, #12
  11570. 80054fe: 46bd mov sp, r7
  11571. 8005500: f85d 7b04 ldr.w r7, [sp], #4
  11572. 8005504: 4770 bx lr
  11573. 08005506 <LL_ADC_SetCommonPathInternalCh>:
  11574. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  11575. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  11576. * @retval None
  11577. */
  11578. __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal)
  11579. {
  11580. 8005506: b480 push {r7}
  11581. 8005508: b083 sub sp, #12
  11582. 800550a: af00 add r7, sp, #0
  11583. 800550c: 6078 str r0, [r7, #4]
  11584. 800550e: 6039 str r1, [r7, #0]
  11585. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN, PathInternal);
  11586. 8005510: 687b ldr r3, [r7, #4]
  11587. 8005512: 689b ldr r3, [r3, #8]
  11588. 8005514: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000
  11589. 8005518: 683b ldr r3, [r7, #0]
  11590. 800551a: 431a orrs r2, r3
  11591. 800551c: 687b ldr r3, [r7, #4]
  11592. 800551e: 609a str r2, [r3, #8]
  11593. }
  11594. 8005520: bf00 nop
  11595. 8005522: 370c adds r7, #12
  11596. 8005524: 46bd mov sp, r7
  11597. 8005526: f85d 7b04 ldr.w r7, [sp], #4
  11598. 800552a: 4770 bx lr
  11599. 0800552c <LL_ADC_GetCommonPathInternalCh>:
  11600. * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT
  11601. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  11602. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  11603. */
  11604. __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON)
  11605. {
  11606. 800552c: b480 push {r7}
  11607. 800552e: b083 sub sp, #12
  11608. 8005530: af00 add r7, sp, #0
  11609. 8005532: 6078 str r0, [r7, #4]
  11610. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN));
  11611. 8005534: 687b ldr r3, [r7, #4]
  11612. 8005536: 689b ldr r3, [r3, #8]
  11613. 8005538: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000
  11614. }
  11615. 800553c: 4618 mov r0, r3
  11616. 800553e: 370c adds r7, #12
  11617. 8005540: 46bd mov sp, r7
  11618. 8005542: f85d 7b04 ldr.w r7, [sp], #4
  11619. 8005546: 4770 bx lr
  11620. 08005548 <LL_ADC_SetOffset>:
  11621. * Other channels are slow channels (conversion rate: refer to reference manual).
  11622. * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0x3FFFFFF
  11623. * @retval None
  11624. */
  11625. __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel)
  11626. {
  11627. 8005548: b480 push {r7}
  11628. 800554a: b087 sub sp, #28
  11629. 800554c: af00 add r7, sp, #0
  11630. 800554e: 60f8 str r0, [r7, #12]
  11631. 8005550: 60b9 str r1, [r7, #8]
  11632. 8005552: 607a str r2, [r7, #4]
  11633. 8005554: 603b str r3, [r7, #0]
  11634. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  11635. 8005556: 68fb ldr r3, [r7, #12]
  11636. 8005558: 3360 adds r3, #96 @ 0x60
  11637. 800555a: 461a mov r2, r3
  11638. 800555c: 68bb ldr r3, [r7, #8]
  11639. 800555e: 009b lsls r3, r3, #2
  11640. 8005560: 4413 add r3, r2
  11641. 8005562: 617b str r3, [r7, #20]
  11642. ADC3_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  11643. }
  11644. else
  11645. #endif /* ADC_VER_V5_V90 */
  11646. {
  11647. MODIFY_REG(*preg,
  11648. 8005564: 697b ldr r3, [r7, #20]
  11649. 8005566: 681b ldr r3, [r3, #0]
  11650. 8005568: f003 4200 and.w r2, r3, #2147483648 @ 0x80000000
  11651. 800556c: 687b ldr r3, [r7, #4]
  11652. 800556e: f003 41f8 and.w r1, r3, #2080374784 @ 0x7c000000
  11653. 8005572: 683b ldr r3, [r7, #0]
  11654. 8005574: 430b orrs r3, r1
  11655. 8005576: 431a orrs r2, r3
  11656. 8005578: 697b ldr r3, [r7, #20]
  11657. 800557a: 601a str r2, [r3, #0]
  11658. ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1,
  11659. (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  11660. }
  11661. }
  11662. 800557c: bf00 nop
  11663. 800557e: 371c adds r7, #28
  11664. 8005580: 46bd mov sp, r7
  11665. 8005582: f85d 7b04 ldr.w r7, [sp], #4
  11666. 8005586: 4770 bx lr
  11667. 08005588 <LL_ADC_SetDataRightShift>:
  11668. * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE
  11669. * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE
  11670. * @retval Returned None
  11671. */
  11672. __STATIC_INLINE void LL_ADC_SetDataRightShift(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthShift)
  11673. {
  11674. 8005588: b480 push {r7}
  11675. 800558a: b085 sub sp, #20
  11676. 800558c: af00 add r7, sp, #0
  11677. 800558e: 60f8 str r0, [r7, #12]
  11678. 8005590: 60b9 str r1, [r7, #8]
  11679. 8005592: 607a str r2, [r7, #4]
  11680. MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 | ADC_CFGR2_RSHIFT2 | ADC_CFGR2_RSHIFT3 | ADC_CFGR2_RSHIFT4), RigthShift << (Offsety & 0x1FUL));
  11681. 8005594: 68fb ldr r3, [r7, #12]
  11682. 8005596: 691b ldr r3, [r3, #16]
  11683. 8005598: f423 42f0 bic.w r2, r3, #30720 @ 0x7800
  11684. 800559c: 68bb ldr r3, [r7, #8]
  11685. 800559e: f003 031f and.w r3, r3, #31
  11686. 80055a2: 6879 ldr r1, [r7, #4]
  11687. 80055a4: fa01 f303 lsl.w r3, r1, r3
  11688. 80055a8: 431a orrs r2, r3
  11689. 80055aa: 68fb ldr r3, [r7, #12]
  11690. 80055ac: 611a str r2, [r3, #16]
  11691. }
  11692. 80055ae: bf00 nop
  11693. 80055b0: 3714 adds r7, #20
  11694. 80055b2: 46bd mov sp, r7
  11695. 80055b4: f85d 7b04 ldr.w r7, [sp], #4
  11696. 80055b8: 4770 bx lr
  11697. 080055ba <LL_ADC_SetOffsetSignedSaturation>:
  11698. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE
  11699. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE
  11700. * @retval Returned None
  11701. */
  11702. __STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSignedSaturation)
  11703. {
  11704. 80055ba: b480 push {r7}
  11705. 80055bc: b087 sub sp, #28
  11706. 80055be: af00 add r7, sp, #0
  11707. 80055c0: 60f8 str r0, [r7, #12]
  11708. 80055c2: 60b9 str r1, [r7, #8]
  11709. 80055c4: 607a str r2, [r7, #4]
  11710. /* Function not available on this instance */
  11711. }
  11712. else
  11713. #endif /* ADC_VER_V5_V90 */
  11714. {
  11715. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  11716. 80055c6: 68fb ldr r3, [r7, #12]
  11717. 80055c8: 3360 adds r3, #96 @ 0x60
  11718. 80055ca: 461a mov r2, r3
  11719. 80055cc: 68bb ldr r3, [r7, #8]
  11720. 80055ce: 009b lsls r3, r3, #2
  11721. 80055d0: 4413 add r3, r2
  11722. 80055d2: 617b str r3, [r7, #20]
  11723. MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation);
  11724. 80055d4: 697b ldr r3, [r7, #20]
  11725. 80055d6: 681b ldr r3, [r3, #0]
  11726. 80055d8: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  11727. 80055dc: 687b ldr r3, [r7, #4]
  11728. 80055de: 431a orrs r2, r3
  11729. 80055e0: 697b ldr r3, [r7, #20]
  11730. 80055e2: 601a str r2, [r3, #0]
  11731. }
  11732. }
  11733. 80055e4: bf00 nop
  11734. 80055e6: 371c adds r7, #28
  11735. 80055e8: 46bd mov sp, r7
  11736. 80055ea: f85d 7b04 ldr.w r7, [sp], #4
  11737. 80055ee: 4770 bx lr
  11738. 080055f0 <LL_ADC_REG_IsTriggerSourceSWStart>:
  11739. * @param ADCx ADC instance
  11740. * @retval Value "0" if trigger source external trigger
  11741. * Value "1" if trigger source SW start.
  11742. */
  11743. __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx)
  11744. {
  11745. 80055f0: b480 push {r7}
  11746. 80055f2: b083 sub sp, #12
  11747. 80055f4: af00 add r7, sp, #0
  11748. 80055f6: 6078 str r0, [r7, #4]
  11749. return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1UL : 0UL);
  11750. 80055f8: 687b ldr r3, [r7, #4]
  11751. 80055fa: 68db ldr r3, [r3, #12]
  11752. 80055fc: f403 6340 and.w r3, r3, #3072 @ 0xc00
  11753. 8005600: 2b00 cmp r3, #0
  11754. 8005602: d101 bne.n 8005608 <LL_ADC_REG_IsTriggerSourceSWStart+0x18>
  11755. 8005604: 2301 movs r3, #1
  11756. 8005606: e000 b.n 800560a <LL_ADC_REG_IsTriggerSourceSWStart+0x1a>
  11757. 8005608: 2300 movs r3, #0
  11758. }
  11759. 800560a: 4618 mov r0, r3
  11760. 800560c: 370c adds r7, #12
  11761. 800560e: 46bd mov sp, r7
  11762. 8005610: f85d 7b04 ldr.w r7, [sp], #4
  11763. 8005614: 4770 bx lr
  11764. 08005616 <LL_ADC_REG_SetSequencerRanks>:
  11765. * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)).
  11766. * Other channels are slow channels (conversion rate: refer to reference manual).
  11767. * @retval None
  11768. */
  11769. __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel)
  11770. {
  11771. 8005616: b480 push {r7}
  11772. 8005618: b087 sub sp, #28
  11773. 800561a: af00 add r7, sp, #0
  11774. 800561c: 60f8 str r0, [r7, #12]
  11775. 800561e: 60b9 str r1, [r7, #8]
  11776. 8005620: 607a str r2, [r7, #4]
  11777. /* Set bits with content of parameter "Channel" with bits position */
  11778. /* in register and register position depending on parameter "Rank". */
  11779. /* Parameters "Rank" and "Channel" are used with masks because containing */
  11780. /* other bits reserved for other purpose. */
  11781. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGOFFSET_POS));
  11782. 8005622: 68fb ldr r3, [r7, #12]
  11783. 8005624: 3330 adds r3, #48 @ 0x30
  11784. 8005626: 461a mov r2, r3
  11785. 8005628: 68bb ldr r3, [r7, #8]
  11786. 800562a: 0a1b lsrs r3, r3, #8
  11787. 800562c: 009b lsls r3, r3, #2
  11788. 800562e: f003 030c and.w r3, r3, #12
  11789. 8005632: 4413 add r3, r2
  11790. 8005634: 617b str r3, [r7, #20]
  11791. MODIFY_REG(*preg,
  11792. 8005636: 697b ldr r3, [r7, #20]
  11793. 8005638: 681a ldr r2, [r3, #0]
  11794. 800563a: 68bb ldr r3, [r7, #8]
  11795. 800563c: f003 031f and.w r3, r3, #31
  11796. 8005640: 211f movs r1, #31
  11797. 8005642: fa01 f303 lsl.w r3, r1, r3
  11798. 8005646: 43db mvns r3, r3
  11799. 8005648: 401a ands r2, r3
  11800. 800564a: 687b ldr r3, [r7, #4]
  11801. 800564c: 0e9b lsrs r3, r3, #26
  11802. 800564e: f003 011f and.w r1, r3, #31
  11803. 8005652: 68bb ldr r3, [r7, #8]
  11804. 8005654: f003 031f and.w r3, r3, #31
  11805. 8005658: fa01 f303 lsl.w r3, r1, r3
  11806. 800565c: 431a orrs r2, r3
  11807. 800565e: 697b ldr r3, [r7, #20]
  11808. 8005660: 601a str r2, [r3, #0]
  11809. ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK),
  11810. ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_REG_RANK_ID_SQRX_MASK));
  11811. }
  11812. 8005662: bf00 nop
  11813. 8005664: 371c adds r7, #28
  11814. 8005666: 46bd mov sp, r7
  11815. 8005668: f85d 7b04 ldr.w r7, [sp], #4
  11816. 800566c: 4770 bx lr
  11817. 0800566e <LL_ADC_REG_SetDataTransferMode>:
  11818. * @param ADCx ADC instance
  11819. * @param DataTransferMode Select Data Management configuration
  11820. * @retval None
  11821. */
  11822. __STATIC_INLINE void LL_ADC_REG_SetDataTransferMode(ADC_TypeDef *ADCx, uint32_t DataTransferMode)
  11823. {
  11824. 800566e: b480 push {r7}
  11825. 8005670: b083 sub sp, #12
  11826. 8005672: af00 add r7, sp, #0
  11827. 8005674: 6078 str r0, [r7, #4]
  11828. 8005676: 6039 str r1, [r7, #0]
  11829. MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMNGT, DataTransferMode);
  11830. 8005678: 687b ldr r3, [r7, #4]
  11831. 800567a: 68db ldr r3, [r3, #12]
  11832. 800567c: f023 0203 bic.w r2, r3, #3
  11833. 8005680: 683b ldr r3, [r7, #0]
  11834. 8005682: 431a orrs r2, r3
  11835. 8005684: 687b ldr r3, [r7, #4]
  11836. 8005686: 60da str r2, [r3, #12]
  11837. }
  11838. 8005688: bf00 nop
  11839. 800568a: 370c adds r7, #12
  11840. 800568c: 46bd mov sp, r7
  11841. 800568e: f85d 7b04 ldr.w r7, [sp], #4
  11842. 8005692: 4770 bx lr
  11843. 08005694 <LL_ADC_SetChannelSamplingTime>:
  11844. * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5
  11845. * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5
  11846. * @retval None
  11847. */
  11848. __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime)
  11849. {
  11850. 8005694: b480 push {r7}
  11851. 8005696: b087 sub sp, #28
  11852. 8005698: af00 add r7, sp, #0
  11853. 800569a: 60f8 str r0, [r7, #12]
  11854. 800569c: 60b9 str r1, [r7, #8]
  11855. 800569e: 607a str r2, [r7, #4]
  11856. /* Set bits with content of parameter "SamplingTime" with bits position */
  11857. /* in register and register position depending on parameter "Channel". */
  11858. /* Parameter "Channel" is used with masks because containing */
  11859. /* other bits reserved for other purpose. */
  11860. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_SMPRX_REGOFFSET_POS));
  11861. 80056a0: 68fb ldr r3, [r7, #12]
  11862. 80056a2: 3314 adds r3, #20
  11863. 80056a4: 461a mov r2, r3
  11864. 80056a6: 68bb ldr r3, [r7, #8]
  11865. 80056a8: 0e5b lsrs r3, r3, #25
  11866. 80056aa: 009b lsls r3, r3, #2
  11867. 80056ac: f003 0304 and.w r3, r3, #4
  11868. 80056b0: 4413 add r3, r2
  11869. 80056b2: 617b str r3, [r7, #20]
  11870. MODIFY_REG(*preg,
  11871. 80056b4: 697b ldr r3, [r7, #20]
  11872. 80056b6: 681a ldr r2, [r3, #0]
  11873. 80056b8: 68bb ldr r3, [r7, #8]
  11874. 80056ba: 0d1b lsrs r3, r3, #20
  11875. 80056bc: f003 031f and.w r3, r3, #31
  11876. 80056c0: 2107 movs r1, #7
  11877. 80056c2: fa01 f303 lsl.w r3, r1, r3
  11878. 80056c6: 43db mvns r3, r3
  11879. 80056c8: 401a ands r2, r3
  11880. 80056ca: 68bb ldr r3, [r7, #8]
  11881. 80056cc: 0d1b lsrs r3, r3, #20
  11882. 80056ce: f003 031f and.w r3, r3, #31
  11883. 80056d2: 6879 ldr r1, [r7, #4]
  11884. 80056d4: fa01 f303 lsl.w r3, r1, r3
  11885. 80056d8: 431a orrs r2, r3
  11886. 80056da: 697b ldr r3, [r7, #20]
  11887. 80056dc: 601a str r2, [r3, #0]
  11888. ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS),
  11889. SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS));
  11890. }
  11891. 80056de: bf00 nop
  11892. 80056e0: 371c adds r7, #28
  11893. 80056e2: 46bd mov sp, r7
  11894. 80056e4: f85d 7b04 ldr.w r7, [sp], #4
  11895. 80056e8: 4770 bx lr
  11896. ...
  11897. 080056ec <LL_ADC_SetChannelSingleDiff>:
  11898. * @arg @ref LL_ADC_SINGLE_ENDED
  11899. * @arg @ref LL_ADC_DIFFERENTIAL_ENDED
  11900. * @retval None
  11901. */
  11902. __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff)
  11903. {
  11904. 80056ec: b480 push {r7}
  11905. 80056ee: b085 sub sp, #20
  11906. 80056f0: af00 add r7, sp, #0
  11907. 80056f2: 60f8 str r0, [r7, #12]
  11908. 80056f4: 60b9 str r1, [r7, #8]
  11909. 80056f6: 607a str r2, [r7, #4]
  11910. }
  11911. #else /* ADC_VER_V5_V90 */
  11912. /* Bits of channels in single or differential mode are set only for */
  11913. /* differential mode (for single mode, mask of bits allowed to be set is */
  11914. /* shifted out of range of bits of channels in single or differential mode. */
  11915. MODIFY_REG(ADCx->DIFSEL,
  11916. 80056f8: 68fb ldr r3, [r7, #12]
  11917. 80056fa: f8d3 20c0 ldr.w r2, [r3, #192] @ 0xc0
  11918. 80056fe: 68bb ldr r3, [r7, #8]
  11919. 8005700: f3c3 0313 ubfx r3, r3, #0, #20
  11920. 8005704: 43db mvns r3, r3
  11921. 8005706: 401a ands r2, r3
  11922. 8005708: 687b ldr r3, [r7, #4]
  11923. 800570a: f003 0318 and.w r3, r3, #24
  11924. 800570e: 4908 ldr r1, [pc, #32] @ (8005730 <LL_ADC_SetChannelSingleDiff+0x44>)
  11925. 8005710: 40d9 lsrs r1, r3
  11926. 8005712: 68bb ldr r3, [r7, #8]
  11927. 8005714: 400b ands r3, r1
  11928. 8005716: f3c3 0313 ubfx r3, r3, #0, #20
  11929. 800571a: 431a orrs r2, r3
  11930. 800571c: 68fb ldr r3, [r7, #12]
  11931. 800571e: f8c3 20c0 str.w r2, [r3, #192] @ 0xc0
  11932. Channel & ADC_SINGLEDIFF_CHANNEL_MASK,
  11933. (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK)));
  11934. #endif /* ADC_VER_V5_V90 */
  11935. }
  11936. 8005722: bf00 nop
  11937. 8005724: 3714 adds r7, #20
  11938. 8005726: 46bd mov sp, r7
  11939. 8005728: f85d 7b04 ldr.w r7, [sp], #4
  11940. 800572c: 4770 bx lr
  11941. 800572e: bf00 nop
  11942. 8005730: 000fffff .word 0x000fffff
  11943. 08005734 <LL_ADC_GetMultimode>:
  11944. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM
  11945. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT
  11946. * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM
  11947. */
  11948. __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON)
  11949. {
  11950. 8005734: b480 push {r7}
  11951. 8005736: b083 sub sp, #12
  11952. 8005738: af00 add r7, sp, #0
  11953. 800573a: 6078 str r0, [r7, #4]
  11954. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL));
  11955. 800573c: 687b ldr r3, [r7, #4]
  11956. 800573e: 689b ldr r3, [r3, #8]
  11957. 8005740: f003 031f and.w r3, r3, #31
  11958. }
  11959. 8005744: 4618 mov r0, r3
  11960. 8005746: 370c adds r7, #12
  11961. 8005748: 46bd mov sp, r7
  11962. 800574a: f85d 7b04 ldr.w r7, [sp], #4
  11963. 800574e: 4770 bx lr
  11964. 08005750 <LL_ADC_DisableDeepPowerDown>:
  11965. * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown
  11966. * @param ADCx ADC instance
  11967. * @retval None
  11968. */
  11969. __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx)
  11970. {
  11971. 8005750: b480 push {r7}
  11972. 8005752: b083 sub sp, #12
  11973. 8005754: af00 add r7, sp, #0
  11974. 8005756: 6078 str r0, [r7, #4]
  11975. /* Note: Write register with some additional bits forced to state reset */
  11976. /* instead of modifying only the selected bit for this function, */
  11977. /* to not interfere with bits with HW property "rs". */
  11978. CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS));
  11979. 8005758: 687b ldr r3, [r7, #4]
  11980. 800575a: 689a ldr r2, [r3, #8]
  11981. 800575c: 4b04 ldr r3, [pc, #16] @ (8005770 <LL_ADC_DisableDeepPowerDown+0x20>)
  11982. 800575e: 4013 ands r3, r2
  11983. 8005760: 687a ldr r2, [r7, #4]
  11984. 8005762: 6093 str r3, [r2, #8]
  11985. }
  11986. 8005764: bf00 nop
  11987. 8005766: 370c adds r7, #12
  11988. 8005768: 46bd mov sp, r7
  11989. 800576a: f85d 7b04 ldr.w r7, [sp], #4
  11990. 800576e: 4770 bx lr
  11991. 8005770: 5fffffc0 .word 0x5fffffc0
  11992. 08005774 <LL_ADC_IsDeepPowerDownEnabled>:
  11993. * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled
  11994. * @param ADCx ADC instance
  11995. * @retval 0: deep power down is disabled, 1: deep power down is enabled.
  11996. */
  11997. __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(ADC_TypeDef *ADCx)
  11998. {
  11999. 8005774: b480 push {r7}
  12000. 8005776: b083 sub sp, #12
  12001. 8005778: af00 add r7, sp, #0
  12002. 800577a: 6078 str r0, [r7, #4]
  12003. return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL);
  12004. 800577c: 687b ldr r3, [r7, #4]
  12005. 800577e: 689b ldr r3, [r3, #8]
  12006. 8005780: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  12007. 8005784: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  12008. 8005788: d101 bne.n 800578e <LL_ADC_IsDeepPowerDownEnabled+0x1a>
  12009. 800578a: 2301 movs r3, #1
  12010. 800578c: e000 b.n 8005790 <LL_ADC_IsDeepPowerDownEnabled+0x1c>
  12011. 800578e: 2300 movs r3, #0
  12012. }
  12013. 8005790: 4618 mov r0, r3
  12014. 8005792: 370c adds r7, #12
  12015. 8005794: 46bd mov sp, r7
  12016. 8005796: f85d 7b04 ldr.w r7, [sp], #4
  12017. 800579a: 4770 bx lr
  12018. 0800579c <LL_ADC_EnableInternalRegulator>:
  12019. * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator
  12020. * @param ADCx ADC instance
  12021. * @retval None
  12022. */
  12023. __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx)
  12024. {
  12025. 800579c: b480 push {r7}
  12026. 800579e: b083 sub sp, #12
  12027. 80057a0: af00 add r7, sp, #0
  12028. 80057a2: 6078 str r0, [r7, #4]
  12029. /* Note: Write register with some additional bits forced to state reset */
  12030. /* instead of modifying only the selected bit for this function, */
  12031. /* to not interfere with bits with HW property "rs". */
  12032. MODIFY_REG(ADCx->CR,
  12033. 80057a4: 687b ldr r3, [r7, #4]
  12034. 80057a6: 689a ldr r2, [r3, #8]
  12035. 80057a8: 4b05 ldr r3, [pc, #20] @ (80057c0 <LL_ADC_EnableInternalRegulator+0x24>)
  12036. 80057aa: 4013 ands r3, r2
  12037. 80057ac: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  12038. 80057b0: 687b ldr r3, [r7, #4]
  12039. 80057b2: 609a str r2, [r3, #8]
  12040. ADC_CR_BITS_PROPERTY_RS,
  12041. ADC_CR_ADVREGEN);
  12042. }
  12043. 80057b4: bf00 nop
  12044. 80057b6: 370c adds r7, #12
  12045. 80057b8: 46bd mov sp, r7
  12046. 80057ba: f85d 7b04 ldr.w r7, [sp], #4
  12047. 80057be: 4770 bx lr
  12048. 80057c0: 6fffffc0 .word 0x6fffffc0
  12049. 080057c4 <LL_ADC_IsInternalRegulatorEnabled>:
  12050. * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled
  12051. * @param ADCx ADC instance
  12052. * @retval 0: internal regulator is disabled, 1: internal regulator is enabled.
  12053. */
  12054. __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(ADC_TypeDef *ADCx)
  12055. {
  12056. 80057c4: b480 push {r7}
  12057. 80057c6: b083 sub sp, #12
  12058. 80057c8: af00 add r7, sp, #0
  12059. 80057ca: 6078 str r0, [r7, #4]
  12060. return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL);
  12061. 80057cc: 687b ldr r3, [r7, #4]
  12062. 80057ce: 689b ldr r3, [r3, #8]
  12063. 80057d0: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  12064. 80057d4: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  12065. 80057d8: d101 bne.n 80057de <LL_ADC_IsInternalRegulatorEnabled+0x1a>
  12066. 80057da: 2301 movs r3, #1
  12067. 80057dc: e000 b.n 80057e0 <LL_ADC_IsInternalRegulatorEnabled+0x1c>
  12068. 80057de: 2300 movs r3, #0
  12069. }
  12070. 80057e0: 4618 mov r0, r3
  12071. 80057e2: 370c adds r7, #12
  12072. 80057e4: 46bd mov sp, r7
  12073. 80057e6: f85d 7b04 ldr.w r7, [sp], #4
  12074. 80057ea: 4770 bx lr
  12075. 080057ec <LL_ADC_Enable>:
  12076. * @rmtoll CR ADEN LL_ADC_Enable
  12077. * @param ADCx ADC instance
  12078. * @retval None
  12079. */
  12080. __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx)
  12081. {
  12082. 80057ec: b480 push {r7}
  12083. 80057ee: b083 sub sp, #12
  12084. 80057f0: af00 add r7, sp, #0
  12085. 80057f2: 6078 str r0, [r7, #4]
  12086. /* Note: Write register with some additional bits forced to state reset */
  12087. /* instead of modifying only the selected bit for this function, */
  12088. /* to not interfere with bits with HW property "rs". */
  12089. MODIFY_REG(ADCx->CR,
  12090. 80057f4: 687b ldr r3, [r7, #4]
  12091. 80057f6: 689a ldr r2, [r3, #8]
  12092. 80057f8: 4b05 ldr r3, [pc, #20] @ (8005810 <LL_ADC_Enable+0x24>)
  12093. 80057fa: 4013 ands r3, r2
  12094. 80057fc: f043 0201 orr.w r2, r3, #1
  12095. 8005800: 687b ldr r3, [r7, #4]
  12096. 8005802: 609a str r2, [r3, #8]
  12097. ADC_CR_BITS_PROPERTY_RS,
  12098. ADC_CR_ADEN);
  12099. }
  12100. 8005804: bf00 nop
  12101. 8005806: 370c adds r7, #12
  12102. 8005808: 46bd mov sp, r7
  12103. 800580a: f85d 7b04 ldr.w r7, [sp], #4
  12104. 800580e: 4770 bx lr
  12105. 8005810: 7fffffc0 .word 0x7fffffc0
  12106. 08005814 <LL_ADC_Disable>:
  12107. * @rmtoll CR ADDIS LL_ADC_Disable
  12108. * @param ADCx ADC instance
  12109. * @retval None
  12110. */
  12111. __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx)
  12112. {
  12113. 8005814: b480 push {r7}
  12114. 8005816: b083 sub sp, #12
  12115. 8005818: af00 add r7, sp, #0
  12116. 800581a: 6078 str r0, [r7, #4]
  12117. /* Note: Write register with some additional bits forced to state reset */
  12118. /* instead of modifying only the selected bit for this function, */
  12119. /* to not interfere with bits with HW property "rs". */
  12120. MODIFY_REG(ADCx->CR,
  12121. 800581c: 687b ldr r3, [r7, #4]
  12122. 800581e: 689a ldr r2, [r3, #8]
  12123. 8005820: 4b05 ldr r3, [pc, #20] @ (8005838 <LL_ADC_Disable+0x24>)
  12124. 8005822: 4013 ands r3, r2
  12125. 8005824: f043 0202 orr.w r2, r3, #2
  12126. 8005828: 687b ldr r3, [r7, #4]
  12127. 800582a: 609a str r2, [r3, #8]
  12128. ADC_CR_BITS_PROPERTY_RS,
  12129. ADC_CR_ADDIS);
  12130. }
  12131. 800582c: bf00 nop
  12132. 800582e: 370c adds r7, #12
  12133. 8005830: 46bd mov sp, r7
  12134. 8005832: f85d 7b04 ldr.w r7, [sp], #4
  12135. 8005836: 4770 bx lr
  12136. 8005838: 7fffffc0 .word 0x7fffffc0
  12137. 0800583c <LL_ADC_IsEnabled>:
  12138. * @rmtoll CR ADEN LL_ADC_IsEnabled
  12139. * @param ADCx ADC instance
  12140. * @retval 0: ADC is disabled, 1: ADC is enabled.
  12141. */
  12142. __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx)
  12143. {
  12144. 800583c: b480 push {r7}
  12145. 800583e: b083 sub sp, #12
  12146. 8005840: af00 add r7, sp, #0
  12147. 8005842: 6078 str r0, [r7, #4]
  12148. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  12149. 8005844: 687b ldr r3, [r7, #4]
  12150. 8005846: 689b ldr r3, [r3, #8]
  12151. 8005848: f003 0301 and.w r3, r3, #1
  12152. 800584c: 2b01 cmp r3, #1
  12153. 800584e: d101 bne.n 8005854 <LL_ADC_IsEnabled+0x18>
  12154. 8005850: 2301 movs r3, #1
  12155. 8005852: e000 b.n 8005856 <LL_ADC_IsEnabled+0x1a>
  12156. 8005854: 2300 movs r3, #0
  12157. }
  12158. 8005856: 4618 mov r0, r3
  12159. 8005858: 370c adds r7, #12
  12160. 800585a: 46bd mov sp, r7
  12161. 800585c: f85d 7b04 ldr.w r7, [sp], #4
  12162. 8005860: 4770 bx lr
  12163. 08005862 <LL_ADC_IsDisableOngoing>:
  12164. * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing
  12165. * @param ADCx ADC instance
  12166. * @retval 0: no ADC disable command on going.
  12167. */
  12168. __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(ADC_TypeDef *ADCx)
  12169. {
  12170. 8005862: b480 push {r7}
  12171. 8005864: b083 sub sp, #12
  12172. 8005866: af00 add r7, sp, #0
  12173. 8005868: 6078 str r0, [r7, #4]
  12174. return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL);
  12175. 800586a: 687b ldr r3, [r7, #4]
  12176. 800586c: 689b ldr r3, [r3, #8]
  12177. 800586e: f003 0302 and.w r3, r3, #2
  12178. 8005872: 2b02 cmp r3, #2
  12179. 8005874: d101 bne.n 800587a <LL_ADC_IsDisableOngoing+0x18>
  12180. 8005876: 2301 movs r3, #1
  12181. 8005878: e000 b.n 800587c <LL_ADC_IsDisableOngoing+0x1a>
  12182. 800587a: 2300 movs r3, #0
  12183. }
  12184. 800587c: 4618 mov r0, r3
  12185. 800587e: 370c adds r7, #12
  12186. 8005880: 46bd mov sp, r7
  12187. 8005882: f85d 7b04 ldr.w r7, [sp], #4
  12188. 8005886: 4770 bx lr
  12189. 08005888 <LL_ADC_REG_StartConversion>:
  12190. * @rmtoll CR ADSTART LL_ADC_REG_StartConversion
  12191. * @param ADCx ADC instance
  12192. * @retval None
  12193. */
  12194. __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx)
  12195. {
  12196. 8005888: b480 push {r7}
  12197. 800588a: b083 sub sp, #12
  12198. 800588c: af00 add r7, sp, #0
  12199. 800588e: 6078 str r0, [r7, #4]
  12200. /* Note: Write register with some additional bits forced to state reset */
  12201. /* instead of modifying only the selected bit for this function, */
  12202. /* to not interfere with bits with HW property "rs". */
  12203. MODIFY_REG(ADCx->CR,
  12204. 8005890: 687b ldr r3, [r7, #4]
  12205. 8005892: 689a ldr r2, [r3, #8]
  12206. 8005894: 4b05 ldr r3, [pc, #20] @ (80058ac <LL_ADC_REG_StartConversion+0x24>)
  12207. 8005896: 4013 ands r3, r2
  12208. 8005898: f043 0204 orr.w r2, r3, #4
  12209. 800589c: 687b ldr r3, [r7, #4]
  12210. 800589e: 609a str r2, [r3, #8]
  12211. ADC_CR_BITS_PROPERTY_RS,
  12212. ADC_CR_ADSTART);
  12213. }
  12214. 80058a0: bf00 nop
  12215. 80058a2: 370c adds r7, #12
  12216. 80058a4: 46bd mov sp, r7
  12217. 80058a6: f85d 7b04 ldr.w r7, [sp], #4
  12218. 80058aa: 4770 bx lr
  12219. 80058ac: 7fffffc0 .word 0x7fffffc0
  12220. 080058b0 <LL_ADC_REG_IsConversionOngoing>:
  12221. * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing
  12222. * @param ADCx ADC instance
  12223. * @retval 0: no conversion is on going on ADC group regular.
  12224. */
  12225. __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(ADC_TypeDef *ADCx)
  12226. {
  12227. 80058b0: b480 push {r7}
  12228. 80058b2: b083 sub sp, #12
  12229. 80058b4: af00 add r7, sp, #0
  12230. 80058b6: 6078 str r0, [r7, #4]
  12231. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  12232. 80058b8: 687b ldr r3, [r7, #4]
  12233. 80058ba: 689b ldr r3, [r3, #8]
  12234. 80058bc: f003 0304 and.w r3, r3, #4
  12235. 80058c0: 2b04 cmp r3, #4
  12236. 80058c2: d101 bne.n 80058c8 <LL_ADC_REG_IsConversionOngoing+0x18>
  12237. 80058c4: 2301 movs r3, #1
  12238. 80058c6: e000 b.n 80058ca <LL_ADC_REG_IsConversionOngoing+0x1a>
  12239. 80058c8: 2300 movs r3, #0
  12240. }
  12241. 80058ca: 4618 mov r0, r3
  12242. 80058cc: 370c adds r7, #12
  12243. 80058ce: 46bd mov sp, r7
  12244. 80058d0: f85d 7b04 ldr.w r7, [sp], #4
  12245. 80058d4: 4770 bx lr
  12246. 080058d6 <LL_ADC_INJ_IsConversionOngoing>:
  12247. * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing
  12248. * @param ADCx ADC instance
  12249. * @retval 0: no conversion is on going on ADC group injected.
  12250. */
  12251. __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(ADC_TypeDef *ADCx)
  12252. {
  12253. 80058d6: b480 push {r7}
  12254. 80058d8: b083 sub sp, #12
  12255. 80058da: af00 add r7, sp, #0
  12256. 80058dc: 6078 str r0, [r7, #4]
  12257. return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL);
  12258. 80058de: 687b ldr r3, [r7, #4]
  12259. 80058e0: 689b ldr r3, [r3, #8]
  12260. 80058e2: f003 0308 and.w r3, r3, #8
  12261. 80058e6: 2b08 cmp r3, #8
  12262. 80058e8: d101 bne.n 80058ee <LL_ADC_INJ_IsConversionOngoing+0x18>
  12263. 80058ea: 2301 movs r3, #1
  12264. 80058ec: e000 b.n 80058f0 <LL_ADC_INJ_IsConversionOngoing+0x1a>
  12265. 80058ee: 2300 movs r3, #0
  12266. }
  12267. 80058f0: 4618 mov r0, r3
  12268. 80058f2: 370c adds r7, #12
  12269. 80058f4: 46bd mov sp, r7
  12270. 80058f6: f85d 7b04 ldr.w r7, [sp], #4
  12271. 80058fa: 4770 bx lr
  12272. 080058fc <HAL_ADC_Init>:
  12273. * without disabling the other ADCs.
  12274. * @param hadc ADC handle
  12275. * @retval HAL status
  12276. */
  12277. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc)
  12278. {
  12279. 80058fc: b590 push {r4, r7, lr}
  12280. 80058fe: b089 sub sp, #36 @ 0x24
  12281. 8005900: af00 add r7, sp, #0
  12282. 8005902: 6078 str r0, [r7, #4]
  12283. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  12284. 8005904: 2300 movs r3, #0
  12285. 8005906: 77fb strb r3, [r7, #31]
  12286. uint32_t tmpCFGR;
  12287. uint32_t tmp_adc_reg_is_conversion_on_going;
  12288. __IO uint32_t wait_loop_index = 0UL;
  12289. 8005908: 2300 movs r3, #0
  12290. 800590a: 60bb str r3, [r7, #8]
  12291. uint32_t tmp_adc_is_conversion_on_going_regular;
  12292. uint32_t tmp_adc_is_conversion_on_going_injected;
  12293. /* Check ADC handle */
  12294. if (hadc == NULL)
  12295. 800590c: 687b ldr r3, [r7, #4]
  12296. 800590e: 2b00 cmp r3, #0
  12297. 8005910: d101 bne.n 8005916 <HAL_ADC_Init+0x1a>
  12298. {
  12299. return HAL_ERROR;
  12300. 8005912: 2301 movs r3, #1
  12301. 8005914: e18f b.n 8005c36 <HAL_ADC_Init+0x33a>
  12302. assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection));
  12303. assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun));
  12304. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait));
  12305. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode));
  12306. if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  12307. 8005916: 687b ldr r3, [r7, #4]
  12308. 8005918: 68db ldr r3, [r3, #12]
  12309. 800591a: 2b00 cmp r3, #0
  12310. /* DISCEN and CONT bits cannot be set at the same time */
  12311. assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == ENABLE)));
  12312. /* Actions performed only if ADC is coming from state reset: */
  12313. /* - Initialization of ADC MSP */
  12314. if (hadc->State == HAL_ADC_STATE_RESET)
  12315. 800591c: 687b ldr r3, [r7, #4]
  12316. 800591e: 6d5b ldr r3, [r3, #84] @ 0x54
  12317. 8005920: 2b00 cmp r3, #0
  12318. 8005922: d109 bne.n 8005938 <HAL_ADC_Init+0x3c>
  12319. /* Init the low level hardware */
  12320. hadc->MspInitCallback(hadc);
  12321. #else
  12322. /* Init the low level hardware */
  12323. HAL_ADC_MspInit(hadc);
  12324. 8005924: 6878 ldr r0, [r7, #4]
  12325. 8005926: f7fd fd81 bl 800342c <HAL_ADC_MspInit>
  12326. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  12327. /* Set ADC error code to none */
  12328. ADC_CLEAR_ERRORCODE(hadc);
  12329. 800592a: 687b ldr r3, [r7, #4]
  12330. 800592c: 2200 movs r2, #0
  12331. 800592e: 659a str r2, [r3, #88] @ 0x58
  12332. /* Initialize Lock */
  12333. hadc->Lock = HAL_UNLOCKED;
  12334. 8005930: 687b ldr r3, [r7, #4]
  12335. 8005932: 2200 movs r2, #0
  12336. 8005934: f883 2050 strb.w r2, [r3, #80] @ 0x50
  12337. }
  12338. /* - Exit from deep-power-down mode and ADC voltage regulator enable */
  12339. if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL)
  12340. 8005938: 687b ldr r3, [r7, #4]
  12341. 800593a: 681b ldr r3, [r3, #0]
  12342. 800593c: 4618 mov r0, r3
  12343. 800593e: f7ff ff19 bl 8005774 <LL_ADC_IsDeepPowerDownEnabled>
  12344. 8005942: 4603 mov r3, r0
  12345. 8005944: 2b00 cmp r3, #0
  12346. 8005946: d004 beq.n 8005952 <HAL_ADC_Init+0x56>
  12347. {
  12348. /* Disable ADC deep power down mode */
  12349. LL_ADC_DisableDeepPowerDown(hadc->Instance);
  12350. 8005948: 687b ldr r3, [r7, #4]
  12351. 800594a: 681b ldr r3, [r3, #0]
  12352. 800594c: 4618 mov r0, r3
  12353. 800594e: f7ff feff bl 8005750 <LL_ADC_DisableDeepPowerDown>
  12354. /* System was in deep power down mode, calibration must
  12355. be relaunched or a previously saved calibration factor
  12356. re-applied once the ADC voltage regulator is enabled */
  12357. }
  12358. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  12359. 8005952: 687b ldr r3, [r7, #4]
  12360. 8005954: 681b ldr r3, [r3, #0]
  12361. 8005956: 4618 mov r0, r3
  12362. 8005958: f7ff ff34 bl 80057c4 <LL_ADC_IsInternalRegulatorEnabled>
  12363. 800595c: 4603 mov r3, r0
  12364. 800595e: 2b00 cmp r3, #0
  12365. 8005960: d114 bne.n 800598c <HAL_ADC_Init+0x90>
  12366. {
  12367. /* Enable ADC internal voltage regulator */
  12368. LL_ADC_EnableInternalRegulator(hadc->Instance);
  12369. 8005962: 687b ldr r3, [r7, #4]
  12370. 8005964: 681b ldr r3, [r3, #0]
  12371. 8005966: 4618 mov r0, r3
  12372. 8005968: f7ff ff18 bl 800579c <LL_ADC_EnableInternalRegulator>
  12373. /* Note: Variable divided by 2 to compensate partially */
  12374. /* CPU processing cycles, scaling in us split to not */
  12375. /* exceed 32 bits register capacity and handle low frequency. */
  12376. wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  12377. 800596c: 4b87 ldr r3, [pc, #540] @ (8005b8c <HAL_ADC_Init+0x290>)
  12378. 800596e: 681b ldr r3, [r3, #0]
  12379. 8005970: 099b lsrs r3, r3, #6
  12380. 8005972: 4a87 ldr r2, [pc, #540] @ (8005b90 <HAL_ADC_Init+0x294>)
  12381. 8005974: fba2 2303 umull r2, r3, r2, r3
  12382. 8005978: 099b lsrs r3, r3, #6
  12383. 800597a: 3301 adds r3, #1
  12384. 800597c: 60bb str r3, [r7, #8]
  12385. while (wait_loop_index != 0UL)
  12386. 800597e: e002 b.n 8005986 <HAL_ADC_Init+0x8a>
  12387. {
  12388. wait_loop_index--;
  12389. 8005980: 68bb ldr r3, [r7, #8]
  12390. 8005982: 3b01 subs r3, #1
  12391. 8005984: 60bb str r3, [r7, #8]
  12392. while (wait_loop_index != 0UL)
  12393. 8005986: 68bb ldr r3, [r7, #8]
  12394. 8005988: 2b00 cmp r3, #0
  12395. 800598a: d1f9 bne.n 8005980 <HAL_ADC_Init+0x84>
  12396. }
  12397. /* Verification that ADC voltage regulator is correctly enabled, whether */
  12398. /* or not ADC is coming from state reset (if any potential problem of */
  12399. /* clocking, voltage regulator would not be enabled). */
  12400. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  12401. 800598c: 687b ldr r3, [r7, #4]
  12402. 800598e: 681b ldr r3, [r3, #0]
  12403. 8005990: 4618 mov r0, r3
  12404. 8005992: f7ff ff17 bl 80057c4 <LL_ADC_IsInternalRegulatorEnabled>
  12405. 8005996: 4603 mov r3, r0
  12406. 8005998: 2b00 cmp r3, #0
  12407. 800599a: d10d bne.n 80059b8 <HAL_ADC_Init+0xbc>
  12408. {
  12409. /* Update ADC state machine to error */
  12410. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  12411. 800599c: 687b ldr r3, [r7, #4]
  12412. 800599e: 6d5b ldr r3, [r3, #84] @ 0x54
  12413. 80059a0: f043 0210 orr.w r2, r3, #16
  12414. 80059a4: 687b ldr r3, [r7, #4]
  12415. 80059a6: 655a str r2, [r3, #84] @ 0x54
  12416. /* Set ADC error code to ADC peripheral internal error */
  12417. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  12418. 80059a8: 687b ldr r3, [r7, #4]
  12419. 80059aa: 6d9b ldr r3, [r3, #88] @ 0x58
  12420. 80059ac: f043 0201 orr.w r2, r3, #1
  12421. 80059b0: 687b ldr r3, [r7, #4]
  12422. 80059b2: 659a str r2, [r3, #88] @ 0x58
  12423. tmp_hal_status = HAL_ERROR;
  12424. 80059b4: 2301 movs r3, #1
  12425. 80059b6: 77fb strb r3, [r7, #31]
  12426. /* Configuration of ADC parameters if previous preliminary actions are */
  12427. /* correctly completed and if there is no conversion on going on regular */
  12428. /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */
  12429. /* called to update a parameter on the fly). */
  12430. tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  12431. 80059b8: 687b ldr r3, [r7, #4]
  12432. 80059ba: 681b ldr r3, [r3, #0]
  12433. 80059bc: 4618 mov r0, r3
  12434. 80059be: f7ff ff77 bl 80058b0 <LL_ADC_REG_IsConversionOngoing>
  12435. 80059c2: 6178 str r0, [r7, #20]
  12436. if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL)
  12437. 80059c4: 687b ldr r3, [r7, #4]
  12438. 80059c6: 6d5b ldr r3, [r3, #84] @ 0x54
  12439. 80059c8: f003 0310 and.w r3, r3, #16
  12440. 80059cc: 2b00 cmp r3, #0
  12441. 80059ce: f040 8129 bne.w 8005c24 <HAL_ADC_Init+0x328>
  12442. && (tmp_adc_reg_is_conversion_on_going == 0UL)
  12443. 80059d2: 697b ldr r3, [r7, #20]
  12444. 80059d4: 2b00 cmp r3, #0
  12445. 80059d6: f040 8125 bne.w 8005c24 <HAL_ADC_Init+0x328>
  12446. )
  12447. {
  12448. /* Set ADC state */
  12449. ADC_STATE_CLR_SET(hadc->State,
  12450. 80059da: 687b ldr r3, [r7, #4]
  12451. 80059dc: 6d5b ldr r3, [r3, #84] @ 0x54
  12452. 80059de: f423 7381 bic.w r3, r3, #258 @ 0x102
  12453. 80059e2: f043 0202 orr.w r2, r3, #2
  12454. 80059e6: 687b ldr r3, [r7, #4]
  12455. 80059e8: 655a str r2, [r3, #84] @ 0x54
  12456. /* Configuration of common ADC parameters */
  12457. /* Parameters update conditioned to ADC state: */
  12458. /* Parameters that can be updated only when ADC is disabled: */
  12459. /* - clock configuration */
  12460. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  12461. 80059ea: 687b ldr r3, [r7, #4]
  12462. 80059ec: 681b ldr r3, [r3, #0]
  12463. 80059ee: 4618 mov r0, r3
  12464. 80059f0: f7ff ff24 bl 800583c <LL_ADC_IsEnabled>
  12465. 80059f4: 4603 mov r3, r0
  12466. 80059f6: 2b00 cmp r3, #0
  12467. 80059f8: d136 bne.n 8005a68 <HAL_ADC_Init+0x16c>
  12468. {
  12469. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  12470. 80059fa: 687b ldr r3, [r7, #4]
  12471. 80059fc: 681b ldr r3, [r3, #0]
  12472. 80059fe: 4a65 ldr r2, [pc, #404] @ (8005b94 <HAL_ADC_Init+0x298>)
  12473. 8005a00: 4293 cmp r3, r2
  12474. 8005a02: d004 beq.n 8005a0e <HAL_ADC_Init+0x112>
  12475. 8005a04: 687b ldr r3, [r7, #4]
  12476. 8005a06: 681b ldr r3, [r3, #0]
  12477. 8005a08: 4a63 ldr r2, [pc, #396] @ (8005b98 <HAL_ADC_Init+0x29c>)
  12478. 8005a0a: 4293 cmp r3, r2
  12479. 8005a0c: d10e bne.n 8005a2c <HAL_ADC_Init+0x130>
  12480. 8005a0e: 4861 ldr r0, [pc, #388] @ (8005b94 <HAL_ADC_Init+0x298>)
  12481. 8005a10: f7ff ff14 bl 800583c <LL_ADC_IsEnabled>
  12482. 8005a14: 4604 mov r4, r0
  12483. 8005a16: 4860 ldr r0, [pc, #384] @ (8005b98 <HAL_ADC_Init+0x29c>)
  12484. 8005a18: f7ff ff10 bl 800583c <LL_ADC_IsEnabled>
  12485. 8005a1c: 4603 mov r3, r0
  12486. 8005a1e: 4323 orrs r3, r4
  12487. 8005a20: 2b00 cmp r3, #0
  12488. 8005a22: bf0c ite eq
  12489. 8005a24: 2301 moveq r3, #1
  12490. 8005a26: 2300 movne r3, #0
  12491. 8005a28: b2db uxtb r3, r3
  12492. 8005a2a: e008 b.n 8005a3e <HAL_ADC_Init+0x142>
  12493. 8005a2c: 485b ldr r0, [pc, #364] @ (8005b9c <HAL_ADC_Init+0x2a0>)
  12494. 8005a2e: f7ff ff05 bl 800583c <LL_ADC_IsEnabled>
  12495. 8005a32: 4603 mov r3, r0
  12496. 8005a34: 2b00 cmp r3, #0
  12497. 8005a36: bf0c ite eq
  12498. 8005a38: 2301 moveq r3, #1
  12499. 8005a3a: 2300 movne r3, #0
  12500. 8005a3c: b2db uxtb r3, r3
  12501. 8005a3e: 2b00 cmp r3, #0
  12502. 8005a40: d012 beq.n 8005a68 <HAL_ADC_Init+0x16c>
  12503. /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */
  12504. /* HAL_ADCEx_MultiModeConfigChannel() ) */
  12505. /* - internal measurement paths: Vbat, temperature sensor, Vref */
  12506. /* (set into HAL_ADC_ConfigChannel() or */
  12507. /* HAL_ADCEx_InjectedConfigChannel() ) */
  12508. LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler);
  12509. 8005a42: 687b ldr r3, [r7, #4]
  12510. 8005a44: 681b ldr r3, [r3, #0]
  12511. 8005a46: 4a53 ldr r2, [pc, #332] @ (8005b94 <HAL_ADC_Init+0x298>)
  12512. 8005a48: 4293 cmp r3, r2
  12513. 8005a4a: d004 beq.n 8005a56 <HAL_ADC_Init+0x15a>
  12514. 8005a4c: 687b ldr r3, [r7, #4]
  12515. 8005a4e: 681b ldr r3, [r3, #0]
  12516. 8005a50: 4a51 ldr r2, [pc, #324] @ (8005b98 <HAL_ADC_Init+0x29c>)
  12517. 8005a52: 4293 cmp r3, r2
  12518. 8005a54: d101 bne.n 8005a5a <HAL_ADC_Init+0x15e>
  12519. 8005a56: 4a52 ldr r2, [pc, #328] @ (8005ba0 <HAL_ADC_Init+0x2a4>)
  12520. 8005a58: e000 b.n 8005a5c <HAL_ADC_Init+0x160>
  12521. 8005a5a: 4a52 ldr r2, [pc, #328] @ (8005ba4 <HAL_ADC_Init+0x2a8>)
  12522. 8005a5c: 687b ldr r3, [r7, #4]
  12523. 8005a5e: 685b ldr r3, [r3, #4]
  12524. 8005a60: 4619 mov r1, r3
  12525. 8005a62: 4610 mov r0, r2
  12526. 8005a64: f7ff fd3c bl 80054e0 <LL_ADC_SetCommonClock>
  12527. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  12528. }
  12529. #else
  12530. if ((HAL_GetREVID() > REV_ID_Y) && (ADC_RESOLUTION_8B == hadc->Init.Resolution))
  12531. 8005a68: f7ff fcf4 bl 8005454 <HAL_GetREVID>
  12532. 8005a6c: 4603 mov r3, r0
  12533. 8005a6e: f241 0203 movw r2, #4099 @ 0x1003
  12534. 8005a72: 4293 cmp r3, r2
  12535. 8005a74: d914 bls.n 8005aa0 <HAL_ADC_Init+0x1a4>
  12536. 8005a76: 687b ldr r3, [r7, #4]
  12537. 8005a78: 689b ldr r3, [r3, #8]
  12538. 8005a7a: 2b10 cmp r3, #16
  12539. 8005a7c: d110 bne.n 8005aa0 <HAL_ADC_Init+0x1a4>
  12540. {
  12541. /* for STM32H7 silicon rev.B and above , ADC_CFGR_RES value for 8bits resolution is : b111 */
  12542. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12543. 8005a7e: 687b ldr r3, [r7, #4]
  12544. 8005a80: 7d5b ldrb r3, [r3, #21]
  12545. 8005a82: 035a lsls r2, r3, #13
  12546. hadc->Init.Overrun |
  12547. 8005a84: 687b ldr r3, [r7, #4]
  12548. 8005a86: 6b1b ldr r3, [r3, #48] @ 0x30
  12549. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12550. 8005a88: 431a orrs r2, r3
  12551. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  12552. 8005a8a: 687b ldr r3, [r7, #4]
  12553. 8005a8c: 689b ldr r3, [r3, #8]
  12554. hadc->Init.Overrun |
  12555. 8005a8e: 431a orrs r2, r3
  12556. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  12557. 8005a90: 687b ldr r3, [r7, #4]
  12558. 8005a92: 7f1b ldrb r3, [r3, #28]
  12559. 8005a94: 041b lsls r3, r3, #16
  12560. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  12561. 8005a96: 4313 orrs r3, r2
  12562. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12563. 8005a98: f043 030c orr.w r3, r3, #12
  12564. 8005a9c: 61bb str r3, [r7, #24]
  12565. 8005a9e: e00d b.n 8005abc <HAL_ADC_Init+0x1c0>
  12566. }
  12567. else
  12568. {
  12569. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12570. 8005aa0: 687b ldr r3, [r7, #4]
  12571. 8005aa2: 7d5b ldrb r3, [r3, #21]
  12572. 8005aa4: 035a lsls r2, r3, #13
  12573. hadc->Init.Overrun |
  12574. 8005aa6: 687b ldr r3, [r7, #4]
  12575. 8005aa8: 6b1b ldr r3, [r3, #48] @ 0x30
  12576. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12577. 8005aaa: 431a orrs r2, r3
  12578. hadc->Init.Resolution |
  12579. 8005aac: 687b ldr r3, [r7, #4]
  12580. 8005aae: 689b ldr r3, [r3, #8]
  12581. hadc->Init.Overrun |
  12582. 8005ab0: 431a orrs r2, r3
  12583. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  12584. 8005ab2: 687b ldr r3, [r7, #4]
  12585. 8005ab4: 7f1b ldrb r3, [r3, #28]
  12586. 8005ab6: 041b lsls r3, r3, #16
  12587. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12588. 8005ab8: 4313 orrs r3, r2
  12589. 8005aba: 61bb str r3, [r7, #24]
  12590. }
  12591. #endif /* ADC_VER_V5_3 */
  12592. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  12593. 8005abc: 687b ldr r3, [r7, #4]
  12594. 8005abe: 7f1b ldrb r3, [r3, #28]
  12595. 8005ac0: 2b01 cmp r3, #1
  12596. 8005ac2: d106 bne.n 8005ad2 <HAL_ADC_Init+0x1d6>
  12597. {
  12598. tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion);
  12599. 8005ac4: 687b ldr r3, [r7, #4]
  12600. 8005ac6: 6a1b ldr r3, [r3, #32]
  12601. 8005ac8: 3b01 subs r3, #1
  12602. 8005aca: 045b lsls r3, r3, #17
  12603. 8005acc: 69ba ldr r2, [r7, #24]
  12604. 8005ace: 4313 orrs r3, r2
  12605. 8005ad0: 61bb str r3, [r7, #24]
  12606. /* Enable external trigger if trigger selection is different of software */
  12607. /* start. */
  12608. /* Note: This configuration keeps the hardware feature of parameter */
  12609. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  12610. /* software start. */
  12611. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  12612. 8005ad2: 687b ldr r3, [r7, #4]
  12613. 8005ad4: 6a5b ldr r3, [r3, #36] @ 0x24
  12614. 8005ad6: 2b00 cmp r3, #0
  12615. 8005ad8: d009 beq.n 8005aee <HAL_ADC_Init+0x1f2>
  12616. {
  12617. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  12618. 8005ada: 687b ldr r3, [r7, #4]
  12619. 8005adc: 6a5b ldr r3, [r3, #36] @ 0x24
  12620. 8005ade: f403 7278 and.w r2, r3, #992 @ 0x3e0
  12621. | hadc->Init.ExternalTrigConvEdge
  12622. 8005ae2: 687b ldr r3, [r7, #4]
  12623. 8005ae4: 6a9b ldr r3, [r3, #40] @ 0x28
  12624. 8005ae6: 4313 orrs r3, r2
  12625. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  12626. 8005ae8: 69ba ldr r2, [r7, #24]
  12627. 8005aea: 4313 orrs r3, r2
  12628. 8005aec: 61bb str r3, [r7, #24]
  12629. /* Update Configuration Register CFGR */
  12630. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  12631. }
  12632. #else
  12633. /* Update Configuration Register CFGR */
  12634. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  12635. 8005aee: 687b ldr r3, [r7, #4]
  12636. 8005af0: 681b ldr r3, [r3, #0]
  12637. 8005af2: 68da ldr r2, [r3, #12]
  12638. 8005af4: 4b2c ldr r3, [pc, #176] @ (8005ba8 <HAL_ADC_Init+0x2ac>)
  12639. 8005af6: 4013 ands r3, r2
  12640. 8005af8: 687a ldr r2, [r7, #4]
  12641. 8005afa: 6812 ldr r2, [r2, #0]
  12642. 8005afc: 69b9 ldr r1, [r7, #24]
  12643. 8005afe: 430b orrs r3, r1
  12644. 8005b00: 60d3 str r3, [r2, #12]
  12645. /* Parameters that can be updated when ADC is disabled or enabled without */
  12646. /* conversion on going on regular and injected groups: */
  12647. /* - Conversion data management Init.ConversionDataManagement */
  12648. /* - LowPowerAutoWait feature Init.LowPowerAutoWait */
  12649. /* - Oversampling parameters Init.Oversampling */
  12650. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  12651. 8005b02: 687b ldr r3, [r7, #4]
  12652. 8005b04: 681b ldr r3, [r3, #0]
  12653. 8005b06: 4618 mov r0, r3
  12654. 8005b08: f7ff fed2 bl 80058b0 <LL_ADC_REG_IsConversionOngoing>
  12655. 8005b0c: 6138 str r0, [r7, #16]
  12656. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  12657. 8005b0e: 687b ldr r3, [r7, #4]
  12658. 8005b10: 681b ldr r3, [r3, #0]
  12659. 8005b12: 4618 mov r0, r3
  12660. 8005b14: f7ff fedf bl 80058d6 <LL_ADC_INJ_IsConversionOngoing>
  12661. 8005b18: 60f8 str r0, [r7, #12]
  12662. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  12663. 8005b1a: 693b ldr r3, [r7, #16]
  12664. 8005b1c: 2b00 cmp r3, #0
  12665. 8005b1e: d15f bne.n 8005be0 <HAL_ADC_Init+0x2e4>
  12666. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  12667. 8005b20: 68fb ldr r3, [r7, #12]
  12668. 8005b22: 2b00 cmp r3, #0
  12669. 8005b24: d15c bne.n 8005be0 <HAL_ADC_Init+0x2e4>
  12670. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  12671. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  12672. }
  12673. #else
  12674. tmpCFGR = (
  12675. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  12676. 8005b26: 687b ldr r3, [r7, #4]
  12677. 8005b28: 7d1b ldrb r3, [r3, #20]
  12678. 8005b2a: 039a lsls r2, r3, #14
  12679. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  12680. 8005b2c: 687b ldr r3, [r7, #4]
  12681. 8005b2e: 6adb ldr r3, [r3, #44] @ 0x2c
  12682. tmpCFGR = (
  12683. 8005b30: 4313 orrs r3, r2
  12684. 8005b32: 61bb str r3, [r7, #24]
  12685. #endif
  12686. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR);
  12687. 8005b34: 687b ldr r3, [r7, #4]
  12688. 8005b36: 681b ldr r3, [r3, #0]
  12689. 8005b38: 68da ldr r2, [r3, #12]
  12690. 8005b3a: 4b1c ldr r3, [pc, #112] @ (8005bac <HAL_ADC_Init+0x2b0>)
  12691. 8005b3c: 4013 ands r3, r2
  12692. 8005b3e: 687a ldr r2, [r7, #4]
  12693. 8005b40: 6812 ldr r2, [r2, #0]
  12694. 8005b42: 69b9 ldr r1, [r7, #24]
  12695. 8005b44: 430b orrs r3, r1
  12696. 8005b46: 60d3 str r3, [r2, #12]
  12697. if (hadc->Init.OversamplingMode == ENABLE)
  12698. 8005b48: 687b ldr r3, [r7, #4]
  12699. 8005b4a: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  12700. 8005b4e: 2b01 cmp r3, #1
  12701. 8005b50: d130 bne.n 8005bb4 <HAL_ADC_Init+0x2b8>
  12702. #endif
  12703. assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift));
  12704. assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode));
  12705. assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset));
  12706. if ((hadc->Init.ExternalTrigConv == ADC_SOFTWARE_START)
  12707. 8005b52: 687b ldr r3, [r7, #4]
  12708. 8005b54: 6a5b ldr r3, [r3, #36] @ 0x24
  12709. 8005b56: 2b00 cmp r3, #0
  12710. /* - Oversampling Ratio */
  12711. /* - Right bit shift */
  12712. /* - Left bit shift */
  12713. /* - Triggered mode */
  12714. /* - Oversampling mode (continued/resumed) */
  12715. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS,
  12716. 8005b58: 687b ldr r3, [r7, #4]
  12717. 8005b5a: 681b ldr r3, [r3, #0]
  12718. 8005b5c: 691a ldr r2, [r3, #16]
  12719. 8005b5e: 4b14 ldr r3, [pc, #80] @ (8005bb0 <HAL_ADC_Init+0x2b4>)
  12720. 8005b60: 4013 ands r3, r2
  12721. 8005b62: 687a ldr r2, [r7, #4]
  12722. 8005b64: 6bd2 ldr r2, [r2, #60] @ 0x3c
  12723. 8005b66: 3a01 subs r2, #1
  12724. 8005b68: 0411 lsls r1, r2, #16
  12725. 8005b6a: 687a ldr r2, [r7, #4]
  12726. 8005b6c: 6c12 ldr r2, [r2, #64] @ 0x40
  12727. 8005b6e: 4311 orrs r1, r2
  12728. 8005b70: 687a ldr r2, [r7, #4]
  12729. 8005b72: 6c52 ldr r2, [r2, #68] @ 0x44
  12730. 8005b74: 4311 orrs r1, r2
  12731. 8005b76: 687a ldr r2, [r7, #4]
  12732. 8005b78: 6c92 ldr r2, [r2, #72] @ 0x48
  12733. 8005b7a: 430a orrs r2, r1
  12734. 8005b7c: 431a orrs r2, r3
  12735. 8005b7e: 687b ldr r3, [r7, #4]
  12736. 8005b80: 681b ldr r3, [r3, #0]
  12737. 8005b82: f042 0201 orr.w r2, r2, #1
  12738. 8005b86: 611a str r2, [r3, #16]
  12739. 8005b88: e01c b.n 8005bc4 <HAL_ADC_Init+0x2c8>
  12740. 8005b8a: bf00 nop
  12741. 8005b8c: 24000034 .word 0x24000034
  12742. 8005b90: 053e2d63 .word 0x053e2d63
  12743. 8005b94: 40022000 .word 0x40022000
  12744. 8005b98: 40022100 .word 0x40022100
  12745. 8005b9c: 58026000 .word 0x58026000
  12746. 8005ba0: 40022300 .word 0x40022300
  12747. 8005ba4: 58026300 .word 0x58026300
  12748. 8005ba8: fff0c003 .word 0xfff0c003
  12749. 8005bac: ffffbffc .word 0xffffbffc
  12750. 8005bb0: fc00f81e .word 0xfc00f81e
  12751. }
  12752. else
  12753. {
  12754. /* Disable ADC oversampling scope on ADC group regular */
  12755. CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE);
  12756. 8005bb4: 687b ldr r3, [r7, #4]
  12757. 8005bb6: 681b ldr r3, [r3, #0]
  12758. 8005bb8: 691a ldr r2, [r3, #16]
  12759. 8005bba: 687b ldr r3, [r7, #4]
  12760. 8005bbc: 681b ldr r3, [r3, #0]
  12761. 8005bbe: f022 0201 bic.w r2, r2, #1
  12762. 8005bc2: 611a str r2, [r3, #16]
  12763. }
  12764. /* Set the LeftShift parameter: it is applied to the final result with or without oversampling */
  12765. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_LSHIFT, hadc->Init.LeftBitShift);
  12766. 8005bc4: 687b ldr r3, [r7, #4]
  12767. 8005bc6: 681b ldr r3, [r3, #0]
  12768. 8005bc8: 691b ldr r3, [r3, #16]
  12769. 8005bca: f023 4170 bic.w r1, r3, #4026531840 @ 0xf0000000
  12770. 8005bce: 687b ldr r3, [r7, #4]
  12771. 8005bd0: 6b5a ldr r2, [r3, #52] @ 0x34
  12772. 8005bd2: 687b ldr r3, [r7, #4]
  12773. 8005bd4: 681b ldr r3, [r3, #0]
  12774. 8005bd6: 430a orrs r2, r1
  12775. 8005bd8: 611a str r2, [r3, #16]
  12776. /* Configure the BOOST Mode */
  12777. ADC_ConfigureBoostMode(hadc);
  12778. }
  12779. #else
  12780. /* Configure the BOOST Mode */
  12781. ADC_ConfigureBoostMode(hadc);
  12782. 8005bda: 6878 ldr r0, [r7, #4]
  12783. 8005bdc: f000 fde2 bl 80067a4 <ADC_ConfigureBoostMode>
  12784. /* Note: Scan mode is not present by hardware on this device, but */
  12785. /* emulated by software for alignment over all STM32 devices. */
  12786. /* - if scan mode is enabled, regular channels sequence length is set to */
  12787. /* parameter "NbrOfConversion". */
  12788. if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE)
  12789. 8005be0: 687b ldr r3, [r7, #4]
  12790. 8005be2: 68db ldr r3, [r3, #12]
  12791. 8005be4: 2b01 cmp r3, #1
  12792. 8005be6: d10c bne.n 8005c02 <HAL_ADC_Init+0x306>
  12793. {
  12794. /* Set number of ranks in regular group sequencer */
  12795. MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1));
  12796. 8005be8: 687b ldr r3, [r7, #4]
  12797. 8005bea: 681b ldr r3, [r3, #0]
  12798. 8005bec: 6b1b ldr r3, [r3, #48] @ 0x30
  12799. 8005bee: f023 010f bic.w r1, r3, #15
  12800. 8005bf2: 687b ldr r3, [r7, #4]
  12801. 8005bf4: 699b ldr r3, [r3, #24]
  12802. 8005bf6: 1e5a subs r2, r3, #1
  12803. 8005bf8: 687b ldr r3, [r7, #4]
  12804. 8005bfa: 681b ldr r3, [r3, #0]
  12805. 8005bfc: 430a orrs r2, r1
  12806. 8005bfe: 631a str r2, [r3, #48] @ 0x30
  12807. 8005c00: e007 b.n 8005c12 <HAL_ADC_Init+0x316>
  12808. }
  12809. else
  12810. {
  12811. CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L);
  12812. 8005c02: 687b ldr r3, [r7, #4]
  12813. 8005c04: 681b ldr r3, [r3, #0]
  12814. 8005c06: 6b1a ldr r2, [r3, #48] @ 0x30
  12815. 8005c08: 687b ldr r3, [r7, #4]
  12816. 8005c0a: 681b ldr r3, [r3, #0]
  12817. 8005c0c: f022 020f bic.w r2, r2, #15
  12818. 8005c10: 631a str r2, [r3, #48] @ 0x30
  12819. }
  12820. /* Initialize the ADC state */
  12821. /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */
  12822. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY);
  12823. 8005c12: 687b ldr r3, [r7, #4]
  12824. 8005c14: 6d5b ldr r3, [r3, #84] @ 0x54
  12825. 8005c16: f023 0303 bic.w r3, r3, #3
  12826. 8005c1a: f043 0201 orr.w r2, r3, #1
  12827. 8005c1e: 687b ldr r3, [r7, #4]
  12828. 8005c20: 655a str r2, [r3, #84] @ 0x54
  12829. 8005c22: e007 b.n 8005c34 <HAL_ADC_Init+0x338>
  12830. }
  12831. else
  12832. {
  12833. /* Update ADC state machine to error */
  12834. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  12835. 8005c24: 687b ldr r3, [r7, #4]
  12836. 8005c26: 6d5b ldr r3, [r3, #84] @ 0x54
  12837. 8005c28: f043 0210 orr.w r2, r3, #16
  12838. 8005c2c: 687b ldr r3, [r7, #4]
  12839. 8005c2e: 655a str r2, [r3, #84] @ 0x54
  12840. tmp_hal_status = HAL_ERROR;
  12841. 8005c30: 2301 movs r3, #1
  12842. 8005c32: 77fb strb r3, [r7, #31]
  12843. }
  12844. /* Return function status */
  12845. return tmp_hal_status;
  12846. 8005c34: 7ffb ldrb r3, [r7, #31]
  12847. }
  12848. 8005c36: 4618 mov r0, r3
  12849. 8005c38: 3724 adds r7, #36 @ 0x24
  12850. 8005c3a: 46bd mov sp, r7
  12851. 8005c3c: bd90 pop {r4, r7, pc}
  12852. 8005c3e: bf00 nop
  12853. 08005c40 <HAL_ADC_Start_DMA>:
  12854. * @param pData Destination Buffer address.
  12855. * @param Length Number of data to be transferred from ADC peripheral to memory
  12856. * @retval HAL status.
  12857. */
  12858. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
  12859. {
  12860. 8005c40: b580 push {r7, lr}
  12861. 8005c42: b086 sub sp, #24
  12862. 8005c44: af00 add r7, sp, #0
  12863. 8005c46: 60f8 str r0, [r7, #12]
  12864. 8005c48: 60b9 str r1, [r7, #8]
  12865. 8005c4a: 607a str r2, [r7, #4]
  12866. HAL_StatusTypeDef tmp_hal_status;
  12867. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  12868. 8005c4c: 68fb ldr r3, [r7, #12]
  12869. 8005c4e: 681b ldr r3, [r3, #0]
  12870. 8005c50: 4a55 ldr r2, [pc, #340] @ (8005da8 <HAL_ADC_Start_DMA+0x168>)
  12871. 8005c52: 4293 cmp r3, r2
  12872. 8005c54: d004 beq.n 8005c60 <HAL_ADC_Start_DMA+0x20>
  12873. 8005c56: 68fb ldr r3, [r7, #12]
  12874. 8005c58: 681b ldr r3, [r3, #0]
  12875. 8005c5a: 4a54 ldr r2, [pc, #336] @ (8005dac <HAL_ADC_Start_DMA+0x16c>)
  12876. 8005c5c: 4293 cmp r3, r2
  12877. 8005c5e: d101 bne.n 8005c64 <HAL_ADC_Start_DMA+0x24>
  12878. 8005c60: 4b53 ldr r3, [pc, #332] @ (8005db0 <HAL_ADC_Start_DMA+0x170>)
  12879. 8005c62: e000 b.n 8005c66 <HAL_ADC_Start_DMA+0x26>
  12880. 8005c64: 4b53 ldr r3, [pc, #332] @ (8005db4 <HAL_ADC_Start_DMA+0x174>)
  12881. 8005c66: 4618 mov r0, r3
  12882. 8005c68: f7ff fd64 bl 8005734 <LL_ADC_GetMultimode>
  12883. 8005c6c: 6138 str r0, [r7, #16]
  12884. /* Check the parameters */
  12885. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  12886. /* Perform ADC enable and conversion start if no conversion is on going */
  12887. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  12888. 8005c6e: 68fb ldr r3, [r7, #12]
  12889. 8005c70: 681b ldr r3, [r3, #0]
  12890. 8005c72: 4618 mov r0, r3
  12891. 8005c74: f7ff fe1c bl 80058b0 <LL_ADC_REG_IsConversionOngoing>
  12892. 8005c78: 4603 mov r3, r0
  12893. 8005c7a: 2b00 cmp r3, #0
  12894. 8005c7c: f040 808c bne.w 8005d98 <HAL_ADC_Start_DMA+0x158>
  12895. {
  12896. /* Process locked */
  12897. __HAL_LOCK(hadc);
  12898. 8005c80: 68fb ldr r3, [r7, #12]
  12899. 8005c82: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  12900. 8005c86: 2b01 cmp r3, #1
  12901. 8005c88: d101 bne.n 8005c8e <HAL_ADC_Start_DMA+0x4e>
  12902. 8005c8a: 2302 movs r3, #2
  12903. 8005c8c: e087 b.n 8005d9e <HAL_ADC_Start_DMA+0x15e>
  12904. 8005c8e: 68fb ldr r3, [r7, #12]
  12905. 8005c90: 2201 movs r2, #1
  12906. 8005c92: f883 2050 strb.w r2, [r3, #80] @ 0x50
  12907. /* Ensure that multimode regular conversions are not enabled. */
  12908. /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */
  12909. if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  12910. 8005c96: 693b ldr r3, [r7, #16]
  12911. 8005c98: 2b00 cmp r3, #0
  12912. 8005c9a: d005 beq.n 8005ca8 <HAL_ADC_Start_DMA+0x68>
  12913. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT)
  12914. 8005c9c: 693b ldr r3, [r7, #16]
  12915. 8005c9e: 2b05 cmp r3, #5
  12916. 8005ca0: d002 beq.n 8005ca8 <HAL_ADC_Start_DMA+0x68>
  12917. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN)
  12918. 8005ca2: 693b ldr r3, [r7, #16]
  12919. 8005ca4: 2b09 cmp r3, #9
  12920. 8005ca6: d170 bne.n 8005d8a <HAL_ADC_Start_DMA+0x14a>
  12921. )
  12922. {
  12923. /* Enable the ADC peripheral */
  12924. tmp_hal_status = ADC_Enable(hadc);
  12925. 8005ca8: 68f8 ldr r0, [r7, #12]
  12926. 8005caa: f000 fbfd bl 80064a8 <ADC_Enable>
  12927. 8005cae: 4603 mov r3, r0
  12928. 8005cb0: 75fb strb r3, [r7, #23]
  12929. /* Start conversion if ADC is effectively enabled */
  12930. if (tmp_hal_status == HAL_OK)
  12931. 8005cb2: 7dfb ldrb r3, [r7, #23]
  12932. 8005cb4: 2b00 cmp r3, #0
  12933. 8005cb6: d163 bne.n 8005d80 <HAL_ADC_Start_DMA+0x140>
  12934. {
  12935. /* Set ADC state */
  12936. /* - Clear state bitfield related to regular group conversion results */
  12937. /* - Set state bitfield related to regular operation */
  12938. ADC_STATE_CLR_SET(hadc->State,
  12939. 8005cb8: 68fb ldr r3, [r7, #12]
  12940. 8005cba: 6d5a ldr r2, [r3, #84] @ 0x54
  12941. 8005cbc: 4b3e ldr r3, [pc, #248] @ (8005db8 <HAL_ADC_Start_DMA+0x178>)
  12942. 8005cbe: 4013 ands r3, r2
  12943. 8005cc0: f443 7280 orr.w r2, r3, #256 @ 0x100
  12944. 8005cc4: 68fb ldr r3, [r7, #12]
  12945. 8005cc6: 655a str r2, [r3, #84] @ 0x54
  12946. HAL_ADC_STATE_REG_BUSY);
  12947. /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit
  12948. - if ADC instance is master or if multimode feature is not available
  12949. - if multimode setting is disabled (ADC instance slave in independent mode) */
  12950. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  12951. 8005cc8: 68fb ldr r3, [r7, #12]
  12952. 8005cca: 681b ldr r3, [r3, #0]
  12953. 8005ccc: 4a37 ldr r2, [pc, #220] @ (8005dac <HAL_ADC_Start_DMA+0x16c>)
  12954. 8005cce: 4293 cmp r3, r2
  12955. 8005cd0: d002 beq.n 8005cd8 <HAL_ADC_Start_DMA+0x98>
  12956. 8005cd2: 68fb ldr r3, [r7, #12]
  12957. 8005cd4: 681b ldr r3, [r3, #0]
  12958. 8005cd6: e000 b.n 8005cda <HAL_ADC_Start_DMA+0x9a>
  12959. 8005cd8: 4b33 ldr r3, [pc, #204] @ (8005da8 <HAL_ADC_Start_DMA+0x168>)
  12960. 8005cda: 68fa ldr r2, [r7, #12]
  12961. 8005cdc: 6812 ldr r2, [r2, #0]
  12962. 8005cde: 4293 cmp r3, r2
  12963. 8005ce0: d002 beq.n 8005ce8 <HAL_ADC_Start_DMA+0xa8>
  12964. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  12965. 8005ce2: 693b ldr r3, [r7, #16]
  12966. 8005ce4: 2b00 cmp r3, #0
  12967. 8005ce6: d105 bne.n 8005cf4 <HAL_ADC_Start_DMA+0xb4>
  12968. )
  12969. {
  12970. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  12971. 8005ce8: 68fb ldr r3, [r7, #12]
  12972. 8005cea: 6d5b ldr r3, [r3, #84] @ 0x54
  12973. 8005cec: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  12974. 8005cf0: 68fb ldr r3, [r7, #12]
  12975. 8005cf2: 655a str r2, [r3, #84] @ 0x54
  12976. }
  12977. /* Check if a conversion is on going on ADC group injected */
  12978. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL)
  12979. 8005cf4: 68fb ldr r3, [r7, #12]
  12980. 8005cf6: 6d5b ldr r3, [r3, #84] @ 0x54
  12981. 8005cf8: f403 5380 and.w r3, r3, #4096 @ 0x1000
  12982. 8005cfc: 2b00 cmp r3, #0
  12983. 8005cfe: d006 beq.n 8005d0e <HAL_ADC_Start_DMA+0xce>
  12984. {
  12985. /* Reset ADC error code fields related to regular conversions only */
  12986. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  12987. 8005d00: 68fb ldr r3, [r7, #12]
  12988. 8005d02: 6d9b ldr r3, [r3, #88] @ 0x58
  12989. 8005d04: f023 0206 bic.w r2, r3, #6
  12990. 8005d08: 68fb ldr r3, [r7, #12]
  12991. 8005d0a: 659a str r2, [r3, #88] @ 0x58
  12992. 8005d0c: e002 b.n 8005d14 <HAL_ADC_Start_DMA+0xd4>
  12993. }
  12994. else
  12995. {
  12996. /* Reset all ADC error code fields */
  12997. ADC_CLEAR_ERRORCODE(hadc);
  12998. 8005d0e: 68fb ldr r3, [r7, #12]
  12999. 8005d10: 2200 movs r2, #0
  13000. 8005d12: 659a str r2, [r3, #88] @ 0x58
  13001. }
  13002. /* Set the DMA transfer complete callback */
  13003. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  13004. 8005d14: 68fb ldr r3, [r7, #12]
  13005. 8005d16: 6cdb ldr r3, [r3, #76] @ 0x4c
  13006. 8005d18: 4a28 ldr r2, [pc, #160] @ (8005dbc <HAL_ADC_Start_DMA+0x17c>)
  13007. 8005d1a: 63da str r2, [r3, #60] @ 0x3c
  13008. /* Set the DMA half transfer complete callback */
  13009. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  13010. 8005d1c: 68fb ldr r3, [r7, #12]
  13011. 8005d1e: 6cdb ldr r3, [r3, #76] @ 0x4c
  13012. 8005d20: 4a27 ldr r2, [pc, #156] @ (8005dc0 <HAL_ADC_Start_DMA+0x180>)
  13013. 8005d22: 641a str r2, [r3, #64] @ 0x40
  13014. /* Set the DMA error callback */
  13015. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  13016. 8005d24: 68fb ldr r3, [r7, #12]
  13017. 8005d26: 6cdb ldr r3, [r3, #76] @ 0x4c
  13018. 8005d28: 4a26 ldr r2, [pc, #152] @ (8005dc4 <HAL_ADC_Start_DMA+0x184>)
  13019. 8005d2a: 64da str r2, [r3, #76] @ 0x4c
  13020. /* ADC start (in case of SW start): */
  13021. /* Clear regular group conversion flag and overrun flag */
  13022. /* (To ensure of no unknown state from potential previous ADC */
  13023. /* operations) */
  13024. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR));
  13025. 8005d2c: 68fb ldr r3, [r7, #12]
  13026. 8005d2e: 681b ldr r3, [r3, #0]
  13027. 8005d30: 221c movs r2, #28
  13028. 8005d32: 601a str r2, [r3, #0]
  13029. /* Process unlocked */
  13030. /* Unlock before starting ADC conversions: in case of potential */
  13031. /* interruption, to let the process to ADC IRQ Handler. */
  13032. __HAL_UNLOCK(hadc);
  13033. 8005d34: 68fb ldr r3, [r7, #12]
  13034. 8005d36: 2200 movs r2, #0
  13035. 8005d38: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13036. /* With DMA, overrun event is always considered as an error even if
  13037. hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore,
  13038. ADC_IT_OVR is enabled. */
  13039. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  13040. 8005d3c: 68fb ldr r3, [r7, #12]
  13041. 8005d3e: 681b ldr r3, [r3, #0]
  13042. 8005d40: 685a ldr r2, [r3, #4]
  13043. 8005d42: 68fb ldr r3, [r7, #12]
  13044. 8005d44: 681b ldr r3, [r3, #0]
  13045. 8005d46: f042 0210 orr.w r2, r2, #16
  13046. 8005d4a: 605a str r2, [r3, #4]
  13047. {
  13048. LL_ADC_REG_SetDataTransferMode(hadc->Instance, ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13049. }
  13050. #else
  13051. LL_ADC_REG_SetDataTransferMode(hadc->Instance, (uint32_t)hadc->Init.ConversionDataManagement);
  13052. 8005d4c: 68fb ldr r3, [r7, #12]
  13053. 8005d4e: 681a ldr r2, [r3, #0]
  13054. 8005d50: 68fb ldr r3, [r7, #12]
  13055. 8005d52: 6adb ldr r3, [r3, #44] @ 0x2c
  13056. 8005d54: 4619 mov r1, r3
  13057. 8005d56: 4610 mov r0, r2
  13058. 8005d58: f7ff fc89 bl 800566e <LL_ADC_REG_SetDataTransferMode>
  13059. #endif
  13060. /* Start the DMA channel */
  13061. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  13062. 8005d5c: 68fb ldr r3, [r7, #12]
  13063. 8005d5e: 6cd8 ldr r0, [r3, #76] @ 0x4c
  13064. 8005d60: 68fb ldr r3, [r7, #12]
  13065. 8005d62: 681b ldr r3, [r3, #0]
  13066. 8005d64: 3340 adds r3, #64 @ 0x40
  13067. 8005d66: 4619 mov r1, r3
  13068. 8005d68: 68ba ldr r2, [r7, #8]
  13069. 8005d6a: 687b ldr r3, [r7, #4]
  13070. 8005d6c: f002 fa5e bl 800822c <HAL_DMA_Start_IT>
  13071. 8005d70: 4603 mov r3, r0
  13072. 8005d72: 75fb strb r3, [r7, #23]
  13073. /* Enable conversion of regular group. */
  13074. /* If software start has been selected, conversion starts immediately. */
  13075. /* If external trigger has been selected, conversion will start at next */
  13076. /* trigger event. */
  13077. /* Start ADC group regular conversion */
  13078. LL_ADC_REG_StartConversion(hadc->Instance);
  13079. 8005d74: 68fb ldr r3, [r7, #12]
  13080. 8005d76: 681b ldr r3, [r3, #0]
  13081. 8005d78: 4618 mov r0, r3
  13082. 8005d7a: f7ff fd85 bl 8005888 <LL_ADC_REG_StartConversion>
  13083. if (tmp_hal_status == HAL_OK)
  13084. 8005d7e: e00d b.n 8005d9c <HAL_ADC_Start_DMA+0x15c>
  13085. }
  13086. else
  13087. {
  13088. /* Process unlocked */
  13089. __HAL_UNLOCK(hadc);
  13090. 8005d80: 68fb ldr r3, [r7, #12]
  13091. 8005d82: 2200 movs r2, #0
  13092. 8005d84: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13093. if (tmp_hal_status == HAL_OK)
  13094. 8005d88: e008 b.n 8005d9c <HAL_ADC_Start_DMA+0x15c>
  13095. }
  13096. }
  13097. else
  13098. {
  13099. tmp_hal_status = HAL_ERROR;
  13100. 8005d8a: 2301 movs r3, #1
  13101. 8005d8c: 75fb strb r3, [r7, #23]
  13102. /* Process unlocked */
  13103. __HAL_UNLOCK(hadc);
  13104. 8005d8e: 68fb ldr r3, [r7, #12]
  13105. 8005d90: 2200 movs r2, #0
  13106. 8005d92: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13107. 8005d96: e001 b.n 8005d9c <HAL_ADC_Start_DMA+0x15c>
  13108. }
  13109. }
  13110. else
  13111. {
  13112. tmp_hal_status = HAL_BUSY;
  13113. 8005d98: 2302 movs r3, #2
  13114. 8005d9a: 75fb strb r3, [r7, #23]
  13115. }
  13116. /* Return function status */
  13117. return tmp_hal_status;
  13118. 8005d9c: 7dfb ldrb r3, [r7, #23]
  13119. }
  13120. 8005d9e: 4618 mov r0, r3
  13121. 8005da0: 3718 adds r7, #24
  13122. 8005da2: 46bd mov sp, r7
  13123. 8005da4: bd80 pop {r7, pc}
  13124. 8005da6: bf00 nop
  13125. 8005da8: 40022000 .word 0x40022000
  13126. 8005dac: 40022100 .word 0x40022100
  13127. 8005db0: 40022300 .word 0x40022300
  13128. 8005db4: 58026300 .word 0x58026300
  13129. 8005db8: fffff0fe .word 0xfffff0fe
  13130. 8005dbc: 0800667b .word 0x0800667b
  13131. 8005dc0: 08006753 .word 0x08006753
  13132. 8005dc4: 0800676f .word 0x0800676f
  13133. 08005dc8 <HAL_ADC_ConvHalfCpltCallback>:
  13134. * @brief Conversion DMA half-transfer callback in non-blocking mode.
  13135. * @param hadc ADC handle
  13136. * @retval None
  13137. */
  13138. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc)
  13139. {
  13140. 8005dc8: b480 push {r7}
  13141. 8005dca: b083 sub sp, #12
  13142. 8005dcc: af00 add r7, sp, #0
  13143. 8005dce: 6078 str r0, [r7, #4]
  13144. UNUSED(hadc);
  13145. /* NOTE : This function should not be modified. When the callback is needed,
  13146. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  13147. */
  13148. }
  13149. 8005dd0: bf00 nop
  13150. 8005dd2: 370c adds r7, #12
  13151. 8005dd4: 46bd mov sp, r7
  13152. 8005dd6: f85d 7b04 ldr.w r7, [sp], #4
  13153. 8005dda: 4770 bx lr
  13154. 08005ddc <HAL_ADC_ErrorCallback>:
  13155. * (this function is also clearing overrun flag)
  13156. * @param hadc ADC handle
  13157. * @retval None
  13158. */
  13159. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  13160. {
  13161. 8005ddc: b480 push {r7}
  13162. 8005dde: b083 sub sp, #12
  13163. 8005de0: af00 add r7, sp, #0
  13164. 8005de2: 6078 str r0, [r7, #4]
  13165. UNUSED(hadc);
  13166. /* NOTE : This function should not be modified. When the callback is needed,
  13167. function HAL_ADC_ErrorCallback must be implemented in the user file.
  13168. */
  13169. }
  13170. 8005de4: bf00 nop
  13171. 8005de6: 370c adds r7, #12
  13172. 8005de8: 46bd mov sp, r7
  13173. 8005dea: f85d 7b04 ldr.w r7, [sp], #4
  13174. 8005dee: 4770 bx lr
  13175. 08005df0 <HAL_ADC_ConfigChannel>:
  13176. * @param hadc ADC handle
  13177. * @param sConfig Structure of ADC channel assigned to ADC group regular.
  13178. * @retval HAL status
  13179. */
  13180. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig)
  13181. {
  13182. 8005df0: b590 push {r4, r7, lr}
  13183. 8005df2: b0a1 sub sp, #132 @ 0x84
  13184. 8005df4: af00 add r7, sp, #0
  13185. 8005df6: 6078 str r0, [r7, #4]
  13186. 8005df8: 6039 str r1, [r7, #0]
  13187. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  13188. 8005dfa: 2300 movs r3, #0
  13189. 8005dfc: f887 307f strb.w r3, [r7, #127] @ 0x7f
  13190. uint32_t tmpOffsetShifted;
  13191. uint32_t tmp_config_internal_channel;
  13192. __IO uint32_t wait_loop_index = 0;
  13193. 8005e00: 2300 movs r3, #0
  13194. 8005e02: 60bb str r3, [r7, #8]
  13195. /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is
  13196. ignored (considered as reset) */
  13197. assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENABLE)));
  13198. /* Verification of channel number */
  13199. if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED)
  13200. 8005e04: 683b ldr r3, [r7, #0]
  13201. 8005e06: 68db ldr r3, [r3, #12]
  13202. 8005e08: 4a65 ldr r2, [pc, #404] @ (8005fa0 <HAL_ADC_ConfigChannel+0x1b0>)
  13203. 8005e0a: 4293 cmp r3, r2
  13204. }
  13205. #endif
  13206. }
  13207. /* Process locked */
  13208. __HAL_LOCK(hadc);
  13209. 8005e0c: 687b ldr r3, [r7, #4]
  13210. 8005e0e: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  13211. 8005e12: 2b01 cmp r3, #1
  13212. 8005e14: d101 bne.n 8005e1a <HAL_ADC_ConfigChannel+0x2a>
  13213. 8005e16: 2302 movs r3, #2
  13214. 8005e18: e32e b.n 8006478 <HAL_ADC_ConfigChannel+0x688>
  13215. 8005e1a: 687b ldr r3, [r7, #4]
  13216. 8005e1c: 2201 movs r2, #1
  13217. 8005e1e: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13218. /* Parameters update conditioned to ADC state: */
  13219. /* Parameters that can be updated when ADC is disabled or enabled without */
  13220. /* conversion on going on regular group: */
  13221. /* - Channel number */
  13222. /* - Channel rank */
  13223. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  13224. 8005e22: 687b ldr r3, [r7, #4]
  13225. 8005e24: 681b ldr r3, [r3, #0]
  13226. 8005e26: 4618 mov r0, r3
  13227. 8005e28: f7ff fd42 bl 80058b0 <LL_ADC_REG_IsConversionOngoing>
  13228. 8005e2c: 4603 mov r3, r0
  13229. 8005e2e: 2b00 cmp r3, #0
  13230. 8005e30: f040 8313 bne.w 800645a <HAL_ADC_ConfigChannel+0x66a>
  13231. {
  13232. if (!(__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)))
  13233. 8005e34: 683b ldr r3, [r7, #0]
  13234. 8005e36: 681b ldr r3, [r3, #0]
  13235. 8005e38: 2b00 cmp r3, #0
  13236. 8005e3a: db2c blt.n 8005e96 <HAL_ADC_ConfigChannel+0xa6>
  13237. /* ADC channels preselection */
  13238. hadc->Instance->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  13239. }
  13240. #else
  13241. /* ADC channels preselection */
  13242. hadc->Instance->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  13243. 8005e3c: 683b ldr r3, [r7, #0]
  13244. 8005e3e: 681b ldr r3, [r3, #0]
  13245. 8005e40: f3c3 0313 ubfx r3, r3, #0, #20
  13246. 8005e44: 2b00 cmp r3, #0
  13247. 8005e46: d108 bne.n 8005e5a <HAL_ADC_ConfigChannel+0x6a>
  13248. 8005e48: 683b ldr r3, [r7, #0]
  13249. 8005e4a: 681b ldr r3, [r3, #0]
  13250. 8005e4c: 0e9b lsrs r3, r3, #26
  13251. 8005e4e: f003 031f and.w r3, r3, #31
  13252. 8005e52: 2201 movs r2, #1
  13253. 8005e54: fa02 f303 lsl.w r3, r2, r3
  13254. 8005e58: e016 b.n 8005e88 <HAL_ADC_ConfigChannel+0x98>
  13255. 8005e5a: 683b ldr r3, [r7, #0]
  13256. 8005e5c: 681b ldr r3, [r3, #0]
  13257. 8005e5e: 667b str r3, [r7, #100] @ 0x64
  13258. uint32_t result;
  13259. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  13260. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  13261. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  13262. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13263. 8005e60: 6e7b ldr r3, [r7, #100] @ 0x64
  13264. 8005e62: fa93 f3a3 rbit r3, r3
  13265. 8005e66: 663b str r3, [r7, #96] @ 0x60
  13266. result |= value & 1U;
  13267. s--;
  13268. }
  13269. result <<= s; /* shift when v's highest bits are zero */
  13270. #endif
  13271. return result;
  13272. 8005e68: 6e3b ldr r3, [r7, #96] @ 0x60
  13273. 8005e6a: 66bb str r3, [r7, #104] @ 0x68
  13274. optimisations using the logic "value was passed to __builtin_clz, so it
  13275. is non-zero".
  13276. ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a
  13277. single CLZ instruction.
  13278. */
  13279. if (value == 0U)
  13280. 8005e6c: 6ebb ldr r3, [r7, #104] @ 0x68
  13281. 8005e6e: 2b00 cmp r3, #0
  13282. 8005e70: d101 bne.n 8005e76 <HAL_ADC_ConfigChannel+0x86>
  13283. {
  13284. return 32U;
  13285. 8005e72: 2320 movs r3, #32
  13286. 8005e74: e003 b.n 8005e7e <HAL_ADC_ConfigChannel+0x8e>
  13287. }
  13288. return __builtin_clz(value);
  13289. 8005e76: 6ebb ldr r3, [r7, #104] @ 0x68
  13290. 8005e78: fab3 f383 clz r3, r3
  13291. 8005e7c: b2db uxtb r3, r3
  13292. 8005e7e: f003 031f and.w r3, r3, #31
  13293. 8005e82: 2201 movs r2, #1
  13294. 8005e84: fa02 f303 lsl.w r3, r2, r3
  13295. 8005e88: 687a ldr r2, [r7, #4]
  13296. 8005e8a: 6812 ldr r2, [r2, #0]
  13297. 8005e8c: 69d1 ldr r1, [r2, #28]
  13298. 8005e8e: 687a ldr r2, [r7, #4]
  13299. 8005e90: 6812 ldr r2, [r2, #0]
  13300. 8005e92: 430b orrs r3, r1
  13301. 8005e94: 61d3 str r3, [r2, #28]
  13302. #endif /* ADC_VER_V5_V90 */
  13303. }
  13304. /* Set ADC group regular sequence: channel on the selected scan sequence rank */
  13305. LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel);
  13306. 8005e96: 687b ldr r3, [r7, #4]
  13307. 8005e98: 6818 ldr r0, [r3, #0]
  13308. 8005e9a: 683b ldr r3, [r7, #0]
  13309. 8005e9c: 6859 ldr r1, [r3, #4]
  13310. 8005e9e: 683b ldr r3, [r7, #0]
  13311. 8005ea0: 681b ldr r3, [r3, #0]
  13312. 8005ea2: 461a mov r2, r3
  13313. 8005ea4: f7ff fbb7 bl 8005616 <LL_ADC_REG_SetSequencerRanks>
  13314. /* Parameters update conditioned to ADC state: */
  13315. /* Parameters that can be updated when ADC is disabled or enabled without */
  13316. /* conversion on going on regular group: */
  13317. /* - Channel sampling time */
  13318. /* - Channel offset */
  13319. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13320. 8005ea8: 687b ldr r3, [r7, #4]
  13321. 8005eaa: 681b ldr r3, [r3, #0]
  13322. 8005eac: 4618 mov r0, r3
  13323. 8005eae: f7ff fcff bl 80058b0 <LL_ADC_REG_IsConversionOngoing>
  13324. 8005eb2: 67b8 str r0, [r7, #120] @ 0x78
  13325. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  13326. 8005eb4: 687b ldr r3, [r7, #4]
  13327. 8005eb6: 681b ldr r3, [r3, #0]
  13328. 8005eb8: 4618 mov r0, r3
  13329. 8005eba: f7ff fd0c bl 80058d6 <LL_ADC_INJ_IsConversionOngoing>
  13330. 8005ebe: 6778 str r0, [r7, #116] @ 0x74
  13331. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  13332. 8005ec0: 6fbb ldr r3, [r7, #120] @ 0x78
  13333. 8005ec2: 2b00 cmp r3, #0
  13334. 8005ec4: f040 80b8 bne.w 8006038 <HAL_ADC_ConfigChannel+0x248>
  13335. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  13336. 8005ec8: 6f7b ldr r3, [r7, #116] @ 0x74
  13337. 8005eca: 2b00 cmp r3, #0
  13338. 8005ecc: f040 80b4 bne.w 8006038 <HAL_ADC_ConfigChannel+0x248>
  13339. )
  13340. {
  13341. /* Set sampling time of the selected ADC channel */
  13342. LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime);
  13343. 8005ed0: 687b ldr r3, [r7, #4]
  13344. 8005ed2: 6818 ldr r0, [r3, #0]
  13345. 8005ed4: 683b ldr r3, [r7, #0]
  13346. 8005ed6: 6819 ldr r1, [r3, #0]
  13347. 8005ed8: 683b ldr r3, [r7, #0]
  13348. 8005eda: 689b ldr r3, [r3, #8]
  13349. 8005edc: 461a mov r2, r3
  13350. 8005ede: f7ff fbd9 bl 8005694 <LL_ADC_SetChannelSamplingTime>
  13351. tmpOffsetShifted = ADC3_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  13352. }
  13353. else
  13354. #endif /* ADC_VER_V5_V90 */
  13355. {
  13356. tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  13357. 8005ee2: 4b30 ldr r3, [pc, #192] @ (8005fa4 <HAL_ADC_ConfigChannel+0x1b4>)
  13358. 8005ee4: 681b ldr r3, [r3, #0]
  13359. 8005ee6: f003 4370 and.w r3, r3, #4026531840 @ 0xf0000000
  13360. 8005eea: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  13361. 8005eee: d10b bne.n 8005f08 <HAL_ADC_ConfigChannel+0x118>
  13362. 8005ef0: 683b ldr r3, [r7, #0]
  13363. 8005ef2: 695a ldr r2, [r3, #20]
  13364. 8005ef4: 687b ldr r3, [r7, #4]
  13365. 8005ef6: 681b ldr r3, [r3, #0]
  13366. 8005ef8: 68db ldr r3, [r3, #12]
  13367. 8005efa: 089b lsrs r3, r3, #2
  13368. 8005efc: f003 0307 and.w r3, r3, #7
  13369. 8005f00: 005b lsls r3, r3, #1
  13370. 8005f02: fa02 f303 lsl.w r3, r2, r3
  13371. 8005f06: e01d b.n 8005f44 <HAL_ADC_ConfigChannel+0x154>
  13372. 8005f08: 687b ldr r3, [r7, #4]
  13373. 8005f0a: 681b ldr r3, [r3, #0]
  13374. 8005f0c: 68db ldr r3, [r3, #12]
  13375. 8005f0e: f003 0310 and.w r3, r3, #16
  13376. 8005f12: 2b00 cmp r3, #0
  13377. 8005f14: d10b bne.n 8005f2e <HAL_ADC_ConfigChannel+0x13e>
  13378. 8005f16: 683b ldr r3, [r7, #0]
  13379. 8005f18: 695a ldr r2, [r3, #20]
  13380. 8005f1a: 687b ldr r3, [r7, #4]
  13381. 8005f1c: 681b ldr r3, [r3, #0]
  13382. 8005f1e: 68db ldr r3, [r3, #12]
  13383. 8005f20: 089b lsrs r3, r3, #2
  13384. 8005f22: f003 0307 and.w r3, r3, #7
  13385. 8005f26: 005b lsls r3, r3, #1
  13386. 8005f28: fa02 f303 lsl.w r3, r2, r3
  13387. 8005f2c: e00a b.n 8005f44 <HAL_ADC_ConfigChannel+0x154>
  13388. 8005f2e: 683b ldr r3, [r7, #0]
  13389. 8005f30: 695a ldr r2, [r3, #20]
  13390. 8005f32: 687b ldr r3, [r7, #4]
  13391. 8005f34: 681b ldr r3, [r3, #0]
  13392. 8005f36: 68db ldr r3, [r3, #12]
  13393. 8005f38: 089b lsrs r3, r3, #2
  13394. 8005f3a: f003 0304 and.w r3, r3, #4
  13395. 8005f3e: 005b lsls r3, r3, #1
  13396. 8005f40: fa02 f303 lsl.w r3, r2, r3
  13397. 8005f44: 673b str r3, [r7, #112] @ 0x70
  13398. }
  13399. if (sConfig->OffsetNumber != ADC_OFFSET_NONE)
  13400. 8005f46: 683b ldr r3, [r7, #0]
  13401. 8005f48: 691b ldr r3, [r3, #16]
  13402. 8005f4a: 2b04 cmp r3, #4
  13403. 8005f4c: d02c beq.n 8005fa8 <HAL_ADC_ConfigChannel+0x1b8>
  13404. {
  13405. /* Set ADC selected offset number */
  13406. LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted);
  13407. 8005f4e: 687b ldr r3, [r7, #4]
  13408. 8005f50: 6818 ldr r0, [r3, #0]
  13409. 8005f52: 683b ldr r3, [r7, #0]
  13410. 8005f54: 6919 ldr r1, [r3, #16]
  13411. 8005f56: 683b ldr r3, [r7, #0]
  13412. 8005f58: 681a ldr r2, [r3, #0]
  13413. 8005f5a: 6f3b ldr r3, [r7, #112] @ 0x70
  13414. 8005f5c: f7ff faf4 bl 8005548 <LL_ADC_SetOffset>
  13415. else
  13416. #endif /* ADC_VER_V5_V90 */
  13417. {
  13418. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSignedSaturation));
  13419. /* Set ADC selected offset signed saturation */
  13420. LL_ADC_SetOffsetSignedSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSignedSaturation == ENABLE) ? LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE : LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE);
  13421. 8005f60: 687b ldr r3, [r7, #4]
  13422. 8005f62: 6818 ldr r0, [r3, #0]
  13423. 8005f64: 683b ldr r3, [r7, #0]
  13424. 8005f66: 6919 ldr r1, [r3, #16]
  13425. 8005f68: 683b ldr r3, [r7, #0]
  13426. 8005f6a: 7e5b ldrb r3, [r3, #25]
  13427. 8005f6c: 2b01 cmp r3, #1
  13428. 8005f6e: d102 bne.n 8005f76 <HAL_ADC_ConfigChannel+0x186>
  13429. 8005f70: f04f 4300 mov.w r3, #2147483648 @ 0x80000000
  13430. 8005f74: e000 b.n 8005f78 <HAL_ADC_ConfigChannel+0x188>
  13431. 8005f76: 2300 movs r3, #0
  13432. 8005f78: 461a mov r2, r3
  13433. 8005f7a: f7ff fb1e bl 80055ba <LL_ADC_SetOffsetSignedSaturation>
  13434. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetRightShift));
  13435. /* Set ADC selected offset right shift */
  13436. LL_ADC_SetDataRightShift(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetRightShift == ENABLE) ? LL_ADC_OFFSET_RSHIFT_ENABLE : LL_ADC_OFFSET_RSHIFT_DISABLE);
  13437. 8005f7e: 687b ldr r3, [r7, #4]
  13438. 8005f80: 6818 ldr r0, [r3, #0]
  13439. 8005f82: 683b ldr r3, [r7, #0]
  13440. 8005f84: 6919 ldr r1, [r3, #16]
  13441. 8005f86: 683b ldr r3, [r7, #0]
  13442. 8005f88: 7e1b ldrb r3, [r3, #24]
  13443. 8005f8a: 2b01 cmp r3, #1
  13444. 8005f8c: d102 bne.n 8005f94 <HAL_ADC_ConfigChannel+0x1a4>
  13445. 8005f8e: f44f 6300 mov.w r3, #2048 @ 0x800
  13446. 8005f92: e000 b.n 8005f96 <HAL_ADC_ConfigChannel+0x1a6>
  13447. 8005f94: 2300 movs r3, #0
  13448. 8005f96: 461a mov r2, r3
  13449. 8005f98: f7ff faf6 bl 8005588 <LL_ADC_SetDataRightShift>
  13450. 8005f9c: e04c b.n 8006038 <HAL_ADC_ConfigChannel+0x248>
  13451. 8005f9e: bf00 nop
  13452. 8005fa0: 47ff0000 .word 0x47ff0000
  13453. 8005fa4: 5c001000 .word 0x5c001000
  13454. }
  13455. }
  13456. else
  13457. #endif /* ADC_VER_V5_V90 */
  13458. {
  13459. if (((hadc->Instance->OFR1) & ADC_OFR1_OFFSET1_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13460. 8005fa8: 687b ldr r3, [r7, #4]
  13461. 8005faa: 681b ldr r3, [r3, #0]
  13462. 8005fac: 6e1b ldr r3, [r3, #96] @ 0x60
  13463. 8005fae: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13464. 8005fb2: 683b ldr r3, [r7, #0]
  13465. 8005fb4: 681b ldr r3, [r3, #0]
  13466. 8005fb6: 069b lsls r3, r3, #26
  13467. 8005fb8: 429a cmp r2, r3
  13468. 8005fba: d107 bne.n 8005fcc <HAL_ADC_ConfigChannel+0x1dc>
  13469. {
  13470. CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE);
  13471. 8005fbc: 687b ldr r3, [r7, #4]
  13472. 8005fbe: 681b ldr r3, [r3, #0]
  13473. 8005fc0: 6e1a ldr r2, [r3, #96] @ 0x60
  13474. 8005fc2: 687b ldr r3, [r7, #4]
  13475. 8005fc4: 681b ldr r3, [r3, #0]
  13476. 8005fc6: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13477. 8005fca: 661a str r2, [r3, #96] @ 0x60
  13478. }
  13479. if (((hadc->Instance->OFR2) & ADC_OFR2_OFFSET2_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13480. 8005fcc: 687b ldr r3, [r7, #4]
  13481. 8005fce: 681b ldr r3, [r3, #0]
  13482. 8005fd0: 6e5b ldr r3, [r3, #100] @ 0x64
  13483. 8005fd2: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13484. 8005fd6: 683b ldr r3, [r7, #0]
  13485. 8005fd8: 681b ldr r3, [r3, #0]
  13486. 8005fda: 069b lsls r3, r3, #26
  13487. 8005fdc: 429a cmp r2, r3
  13488. 8005fde: d107 bne.n 8005ff0 <HAL_ADC_ConfigChannel+0x200>
  13489. {
  13490. CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE);
  13491. 8005fe0: 687b ldr r3, [r7, #4]
  13492. 8005fe2: 681b ldr r3, [r3, #0]
  13493. 8005fe4: 6e5a ldr r2, [r3, #100] @ 0x64
  13494. 8005fe6: 687b ldr r3, [r7, #4]
  13495. 8005fe8: 681b ldr r3, [r3, #0]
  13496. 8005fea: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13497. 8005fee: 665a str r2, [r3, #100] @ 0x64
  13498. }
  13499. if (((hadc->Instance->OFR3) & ADC_OFR3_OFFSET3_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13500. 8005ff0: 687b ldr r3, [r7, #4]
  13501. 8005ff2: 681b ldr r3, [r3, #0]
  13502. 8005ff4: 6e9b ldr r3, [r3, #104] @ 0x68
  13503. 8005ff6: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13504. 8005ffa: 683b ldr r3, [r7, #0]
  13505. 8005ffc: 681b ldr r3, [r3, #0]
  13506. 8005ffe: 069b lsls r3, r3, #26
  13507. 8006000: 429a cmp r2, r3
  13508. 8006002: d107 bne.n 8006014 <HAL_ADC_ConfigChannel+0x224>
  13509. {
  13510. CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE);
  13511. 8006004: 687b ldr r3, [r7, #4]
  13512. 8006006: 681b ldr r3, [r3, #0]
  13513. 8006008: 6e9a ldr r2, [r3, #104] @ 0x68
  13514. 800600a: 687b ldr r3, [r7, #4]
  13515. 800600c: 681b ldr r3, [r3, #0]
  13516. 800600e: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13517. 8006012: 669a str r2, [r3, #104] @ 0x68
  13518. }
  13519. if (((hadc->Instance->OFR4) & ADC_OFR4_OFFSET4_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13520. 8006014: 687b ldr r3, [r7, #4]
  13521. 8006016: 681b ldr r3, [r3, #0]
  13522. 8006018: 6edb ldr r3, [r3, #108] @ 0x6c
  13523. 800601a: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13524. 800601e: 683b ldr r3, [r7, #0]
  13525. 8006020: 681b ldr r3, [r3, #0]
  13526. 8006022: 069b lsls r3, r3, #26
  13527. 8006024: 429a cmp r2, r3
  13528. 8006026: d107 bne.n 8006038 <HAL_ADC_ConfigChannel+0x248>
  13529. {
  13530. CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE);
  13531. 8006028: 687b ldr r3, [r7, #4]
  13532. 800602a: 681b ldr r3, [r3, #0]
  13533. 800602c: 6eda ldr r2, [r3, #108] @ 0x6c
  13534. 800602e: 687b ldr r3, [r7, #4]
  13535. 8006030: 681b ldr r3, [r3, #0]
  13536. 8006032: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13537. 8006036: 66da str r2, [r3, #108] @ 0x6c
  13538. /* Parameters update conditioned to ADC state: */
  13539. /* Parameters that can be updated only when ADC is disabled: */
  13540. /* - Single or differential mode */
  13541. /* - Internal measurement channels: Vbat/VrefInt/TempSensor */
  13542. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  13543. 8006038: 687b ldr r3, [r7, #4]
  13544. 800603a: 681b ldr r3, [r3, #0]
  13545. 800603c: 4618 mov r0, r3
  13546. 800603e: f7ff fbfd bl 800583c <LL_ADC_IsEnabled>
  13547. 8006042: 4603 mov r3, r0
  13548. 8006044: 2b00 cmp r3, #0
  13549. 8006046: f040 8211 bne.w 800646c <HAL_ADC_ConfigChannel+0x67c>
  13550. {
  13551. /* Set mode single-ended or differential input of the selected ADC channel */
  13552. LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff);
  13553. 800604a: 687b ldr r3, [r7, #4]
  13554. 800604c: 6818 ldr r0, [r3, #0]
  13555. 800604e: 683b ldr r3, [r7, #0]
  13556. 8006050: 6819 ldr r1, [r3, #0]
  13557. 8006052: 683b ldr r3, [r7, #0]
  13558. 8006054: 68db ldr r3, [r3, #12]
  13559. 8006056: 461a mov r2, r3
  13560. 8006058: f7ff fb48 bl 80056ec <LL_ADC_SetChannelSingleDiff>
  13561. /* Configuration of differential mode */
  13562. if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED)
  13563. 800605c: 683b ldr r3, [r7, #0]
  13564. 800605e: 68db ldr r3, [r3, #12]
  13565. 8006060: 4aa1 ldr r2, [pc, #644] @ (80062e8 <HAL_ADC_ConfigChannel+0x4f8>)
  13566. 8006062: 4293 cmp r3, r2
  13567. 8006064: f040 812e bne.w 80062c4 <HAL_ADC_ConfigChannel+0x4d4>
  13568. {
  13569. /* Set sampling time of the selected ADC channel */
  13570. /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits range */
  13571. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13572. 8006068: 687b ldr r3, [r7, #4]
  13573. 800606a: 6818 ldr r0, [r3, #0]
  13574. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  13575. 800606c: 683b ldr r3, [r7, #0]
  13576. 800606e: 681b ldr r3, [r3, #0]
  13577. 8006070: f3c3 0313 ubfx r3, r3, #0, #20
  13578. 8006074: 2b00 cmp r3, #0
  13579. 8006076: d10b bne.n 8006090 <HAL_ADC_ConfigChannel+0x2a0>
  13580. 8006078: 683b ldr r3, [r7, #0]
  13581. 800607a: 681b ldr r3, [r3, #0]
  13582. 800607c: 0e9b lsrs r3, r3, #26
  13583. 800607e: 3301 adds r3, #1
  13584. 8006080: f003 031f and.w r3, r3, #31
  13585. 8006084: 2b09 cmp r3, #9
  13586. 8006086: bf94 ite ls
  13587. 8006088: 2301 movls r3, #1
  13588. 800608a: 2300 movhi r3, #0
  13589. 800608c: b2db uxtb r3, r3
  13590. 800608e: e019 b.n 80060c4 <HAL_ADC_ConfigChannel+0x2d4>
  13591. 8006090: 683b ldr r3, [r7, #0]
  13592. 8006092: 681b ldr r3, [r3, #0]
  13593. 8006094: 65bb str r3, [r7, #88] @ 0x58
  13594. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13595. 8006096: 6dbb ldr r3, [r7, #88] @ 0x58
  13596. 8006098: fa93 f3a3 rbit r3, r3
  13597. 800609c: 657b str r3, [r7, #84] @ 0x54
  13598. return result;
  13599. 800609e: 6d7b ldr r3, [r7, #84] @ 0x54
  13600. 80060a0: 65fb str r3, [r7, #92] @ 0x5c
  13601. if (value == 0U)
  13602. 80060a2: 6dfb ldr r3, [r7, #92] @ 0x5c
  13603. 80060a4: 2b00 cmp r3, #0
  13604. 80060a6: d101 bne.n 80060ac <HAL_ADC_ConfigChannel+0x2bc>
  13605. return 32U;
  13606. 80060a8: 2320 movs r3, #32
  13607. 80060aa: e003 b.n 80060b4 <HAL_ADC_ConfigChannel+0x2c4>
  13608. return __builtin_clz(value);
  13609. 80060ac: 6dfb ldr r3, [r7, #92] @ 0x5c
  13610. 80060ae: fab3 f383 clz r3, r3
  13611. 80060b2: b2db uxtb r3, r3
  13612. 80060b4: 3301 adds r3, #1
  13613. 80060b6: f003 031f and.w r3, r3, #31
  13614. 80060ba: 2b09 cmp r3, #9
  13615. 80060bc: bf94 ite ls
  13616. 80060be: 2301 movls r3, #1
  13617. 80060c0: 2300 movhi r3, #0
  13618. 80060c2: b2db uxtb r3, r3
  13619. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13620. 80060c4: 2b00 cmp r3, #0
  13621. 80060c6: d079 beq.n 80061bc <HAL_ADC_ConfigChannel+0x3cc>
  13622. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  13623. 80060c8: 683b ldr r3, [r7, #0]
  13624. 80060ca: 681b ldr r3, [r3, #0]
  13625. 80060cc: f3c3 0313 ubfx r3, r3, #0, #20
  13626. 80060d0: 2b00 cmp r3, #0
  13627. 80060d2: d107 bne.n 80060e4 <HAL_ADC_ConfigChannel+0x2f4>
  13628. 80060d4: 683b ldr r3, [r7, #0]
  13629. 80060d6: 681b ldr r3, [r3, #0]
  13630. 80060d8: 0e9b lsrs r3, r3, #26
  13631. 80060da: 3301 adds r3, #1
  13632. 80060dc: 069b lsls r3, r3, #26
  13633. 80060de: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13634. 80060e2: e015 b.n 8006110 <HAL_ADC_ConfigChannel+0x320>
  13635. 80060e4: 683b ldr r3, [r7, #0]
  13636. 80060e6: 681b ldr r3, [r3, #0]
  13637. 80060e8: 64fb str r3, [r7, #76] @ 0x4c
  13638. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13639. 80060ea: 6cfb ldr r3, [r7, #76] @ 0x4c
  13640. 80060ec: fa93 f3a3 rbit r3, r3
  13641. 80060f0: 64bb str r3, [r7, #72] @ 0x48
  13642. return result;
  13643. 80060f2: 6cbb ldr r3, [r7, #72] @ 0x48
  13644. 80060f4: 653b str r3, [r7, #80] @ 0x50
  13645. if (value == 0U)
  13646. 80060f6: 6d3b ldr r3, [r7, #80] @ 0x50
  13647. 80060f8: 2b00 cmp r3, #0
  13648. 80060fa: d101 bne.n 8006100 <HAL_ADC_ConfigChannel+0x310>
  13649. return 32U;
  13650. 80060fc: 2320 movs r3, #32
  13651. 80060fe: e003 b.n 8006108 <HAL_ADC_ConfigChannel+0x318>
  13652. return __builtin_clz(value);
  13653. 8006100: 6d3b ldr r3, [r7, #80] @ 0x50
  13654. 8006102: fab3 f383 clz r3, r3
  13655. 8006106: b2db uxtb r3, r3
  13656. 8006108: 3301 adds r3, #1
  13657. 800610a: 069b lsls r3, r3, #26
  13658. 800610c: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13659. 8006110: 683b ldr r3, [r7, #0]
  13660. 8006112: 681b ldr r3, [r3, #0]
  13661. 8006114: f3c3 0313 ubfx r3, r3, #0, #20
  13662. 8006118: 2b00 cmp r3, #0
  13663. 800611a: d109 bne.n 8006130 <HAL_ADC_ConfigChannel+0x340>
  13664. 800611c: 683b ldr r3, [r7, #0]
  13665. 800611e: 681b ldr r3, [r3, #0]
  13666. 8006120: 0e9b lsrs r3, r3, #26
  13667. 8006122: 3301 adds r3, #1
  13668. 8006124: f003 031f and.w r3, r3, #31
  13669. 8006128: 2101 movs r1, #1
  13670. 800612a: fa01 f303 lsl.w r3, r1, r3
  13671. 800612e: e017 b.n 8006160 <HAL_ADC_ConfigChannel+0x370>
  13672. 8006130: 683b ldr r3, [r7, #0]
  13673. 8006132: 681b ldr r3, [r3, #0]
  13674. 8006134: 643b str r3, [r7, #64] @ 0x40
  13675. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13676. 8006136: 6c3b ldr r3, [r7, #64] @ 0x40
  13677. 8006138: fa93 f3a3 rbit r3, r3
  13678. 800613c: 63fb str r3, [r7, #60] @ 0x3c
  13679. return result;
  13680. 800613e: 6bfb ldr r3, [r7, #60] @ 0x3c
  13681. 8006140: 647b str r3, [r7, #68] @ 0x44
  13682. if (value == 0U)
  13683. 8006142: 6c7b ldr r3, [r7, #68] @ 0x44
  13684. 8006144: 2b00 cmp r3, #0
  13685. 8006146: d101 bne.n 800614c <HAL_ADC_ConfigChannel+0x35c>
  13686. return 32U;
  13687. 8006148: 2320 movs r3, #32
  13688. 800614a: e003 b.n 8006154 <HAL_ADC_ConfigChannel+0x364>
  13689. return __builtin_clz(value);
  13690. 800614c: 6c7b ldr r3, [r7, #68] @ 0x44
  13691. 800614e: fab3 f383 clz r3, r3
  13692. 8006152: b2db uxtb r3, r3
  13693. 8006154: 3301 adds r3, #1
  13694. 8006156: f003 031f and.w r3, r3, #31
  13695. 800615a: 2101 movs r1, #1
  13696. 800615c: fa01 f303 lsl.w r3, r1, r3
  13697. 8006160: ea42 0103 orr.w r1, r2, r3
  13698. 8006164: 683b ldr r3, [r7, #0]
  13699. 8006166: 681b ldr r3, [r3, #0]
  13700. 8006168: f3c3 0313 ubfx r3, r3, #0, #20
  13701. 800616c: 2b00 cmp r3, #0
  13702. 800616e: d10a bne.n 8006186 <HAL_ADC_ConfigChannel+0x396>
  13703. 8006170: 683b ldr r3, [r7, #0]
  13704. 8006172: 681b ldr r3, [r3, #0]
  13705. 8006174: 0e9b lsrs r3, r3, #26
  13706. 8006176: 3301 adds r3, #1
  13707. 8006178: f003 021f and.w r2, r3, #31
  13708. 800617c: 4613 mov r3, r2
  13709. 800617e: 005b lsls r3, r3, #1
  13710. 8006180: 4413 add r3, r2
  13711. 8006182: 051b lsls r3, r3, #20
  13712. 8006184: e018 b.n 80061b8 <HAL_ADC_ConfigChannel+0x3c8>
  13713. 8006186: 683b ldr r3, [r7, #0]
  13714. 8006188: 681b ldr r3, [r3, #0]
  13715. 800618a: 637b str r3, [r7, #52] @ 0x34
  13716. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13717. 800618c: 6b7b ldr r3, [r7, #52] @ 0x34
  13718. 800618e: fa93 f3a3 rbit r3, r3
  13719. 8006192: 633b str r3, [r7, #48] @ 0x30
  13720. return result;
  13721. 8006194: 6b3b ldr r3, [r7, #48] @ 0x30
  13722. 8006196: 63bb str r3, [r7, #56] @ 0x38
  13723. if (value == 0U)
  13724. 8006198: 6bbb ldr r3, [r7, #56] @ 0x38
  13725. 800619a: 2b00 cmp r3, #0
  13726. 800619c: d101 bne.n 80061a2 <HAL_ADC_ConfigChannel+0x3b2>
  13727. return 32U;
  13728. 800619e: 2320 movs r3, #32
  13729. 80061a0: e003 b.n 80061aa <HAL_ADC_ConfigChannel+0x3ba>
  13730. return __builtin_clz(value);
  13731. 80061a2: 6bbb ldr r3, [r7, #56] @ 0x38
  13732. 80061a4: fab3 f383 clz r3, r3
  13733. 80061a8: b2db uxtb r3, r3
  13734. 80061aa: 3301 adds r3, #1
  13735. 80061ac: f003 021f and.w r2, r3, #31
  13736. 80061b0: 4613 mov r3, r2
  13737. 80061b2: 005b lsls r3, r3, #1
  13738. 80061b4: 4413 add r3, r2
  13739. 80061b6: 051b lsls r3, r3, #20
  13740. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13741. 80061b8: 430b orrs r3, r1
  13742. 80061ba: e07e b.n 80062ba <HAL_ADC_ConfigChannel+0x4ca>
  13743. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  13744. 80061bc: 683b ldr r3, [r7, #0]
  13745. 80061be: 681b ldr r3, [r3, #0]
  13746. 80061c0: f3c3 0313 ubfx r3, r3, #0, #20
  13747. 80061c4: 2b00 cmp r3, #0
  13748. 80061c6: d107 bne.n 80061d8 <HAL_ADC_ConfigChannel+0x3e8>
  13749. 80061c8: 683b ldr r3, [r7, #0]
  13750. 80061ca: 681b ldr r3, [r3, #0]
  13751. 80061cc: 0e9b lsrs r3, r3, #26
  13752. 80061ce: 3301 adds r3, #1
  13753. 80061d0: 069b lsls r3, r3, #26
  13754. 80061d2: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13755. 80061d6: e015 b.n 8006204 <HAL_ADC_ConfigChannel+0x414>
  13756. 80061d8: 683b ldr r3, [r7, #0]
  13757. 80061da: 681b ldr r3, [r3, #0]
  13758. 80061dc: 62bb str r3, [r7, #40] @ 0x28
  13759. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13760. 80061de: 6abb ldr r3, [r7, #40] @ 0x28
  13761. 80061e0: fa93 f3a3 rbit r3, r3
  13762. 80061e4: 627b str r3, [r7, #36] @ 0x24
  13763. return result;
  13764. 80061e6: 6a7b ldr r3, [r7, #36] @ 0x24
  13765. 80061e8: 62fb str r3, [r7, #44] @ 0x2c
  13766. if (value == 0U)
  13767. 80061ea: 6afb ldr r3, [r7, #44] @ 0x2c
  13768. 80061ec: 2b00 cmp r3, #0
  13769. 80061ee: d101 bne.n 80061f4 <HAL_ADC_ConfigChannel+0x404>
  13770. return 32U;
  13771. 80061f0: 2320 movs r3, #32
  13772. 80061f2: e003 b.n 80061fc <HAL_ADC_ConfigChannel+0x40c>
  13773. return __builtin_clz(value);
  13774. 80061f4: 6afb ldr r3, [r7, #44] @ 0x2c
  13775. 80061f6: fab3 f383 clz r3, r3
  13776. 80061fa: b2db uxtb r3, r3
  13777. 80061fc: 3301 adds r3, #1
  13778. 80061fe: 069b lsls r3, r3, #26
  13779. 8006200: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13780. 8006204: 683b ldr r3, [r7, #0]
  13781. 8006206: 681b ldr r3, [r3, #0]
  13782. 8006208: f3c3 0313 ubfx r3, r3, #0, #20
  13783. 800620c: 2b00 cmp r3, #0
  13784. 800620e: d109 bne.n 8006224 <HAL_ADC_ConfigChannel+0x434>
  13785. 8006210: 683b ldr r3, [r7, #0]
  13786. 8006212: 681b ldr r3, [r3, #0]
  13787. 8006214: 0e9b lsrs r3, r3, #26
  13788. 8006216: 3301 adds r3, #1
  13789. 8006218: f003 031f and.w r3, r3, #31
  13790. 800621c: 2101 movs r1, #1
  13791. 800621e: fa01 f303 lsl.w r3, r1, r3
  13792. 8006222: e017 b.n 8006254 <HAL_ADC_ConfigChannel+0x464>
  13793. 8006224: 683b ldr r3, [r7, #0]
  13794. 8006226: 681b ldr r3, [r3, #0]
  13795. 8006228: 61fb str r3, [r7, #28]
  13796. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13797. 800622a: 69fb ldr r3, [r7, #28]
  13798. 800622c: fa93 f3a3 rbit r3, r3
  13799. 8006230: 61bb str r3, [r7, #24]
  13800. return result;
  13801. 8006232: 69bb ldr r3, [r7, #24]
  13802. 8006234: 623b str r3, [r7, #32]
  13803. if (value == 0U)
  13804. 8006236: 6a3b ldr r3, [r7, #32]
  13805. 8006238: 2b00 cmp r3, #0
  13806. 800623a: d101 bne.n 8006240 <HAL_ADC_ConfigChannel+0x450>
  13807. return 32U;
  13808. 800623c: 2320 movs r3, #32
  13809. 800623e: e003 b.n 8006248 <HAL_ADC_ConfigChannel+0x458>
  13810. return __builtin_clz(value);
  13811. 8006240: 6a3b ldr r3, [r7, #32]
  13812. 8006242: fab3 f383 clz r3, r3
  13813. 8006246: b2db uxtb r3, r3
  13814. 8006248: 3301 adds r3, #1
  13815. 800624a: f003 031f and.w r3, r3, #31
  13816. 800624e: 2101 movs r1, #1
  13817. 8006250: fa01 f303 lsl.w r3, r1, r3
  13818. 8006254: ea42 0103 orr.w r1, r2, r3
  13819. 8006258: 683b ldr r3, [r7, #0]
  13820. 800625a: 681b ldr r3, [r3, #0]
  13821. 800625c: f3c3 0313 ubfx r3, r3, #0, #20
  13822. 8006260: 2b00 cmp r3, #0
  13823. 8006262: d10d bne.n 8006280 <HAL_ADC_ConfigChannel+0x490>
  13824. 8006264: 683b ldr r3, [r7, #0]
  13825. 8006266: 681b ldr r3, [r3, #0]
  13826. 8006268: 0e9b lsrs r3, r3, #26
  13827. 800626a: 3301 adds r3, #1
  13828. 800626c: f003 021f and.w r2, r3, #31
  13829. 8006270: 4613 mov r3, r2
  13830. 8006272: 005b lsls r3, r3, #1
  13831. 8006274: 4413 add r3, r2
  13832. 8006276: 3b1e subs r3, #30
  13833. 8006278: 051b lsls r3, r3, #20
  13834. 800627a: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  13835. 800627e: e01b b.n 80062b8 <HAL_ADC_ConfigChannel+0x4c8>
  13836. 8006280: 683b ldr r3, [r7, #0]
  13837. 8006282: 681b ldr r3, [r3, #0]
  13838. 8006284: 613b str r3, [r7, #16]
  13839. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13840. 8006286: 693b ldr r3, [r7, #16]
  13841. 8006288: fa93 f3a3 rbit r3, r3
  13842. 800628c: 60fb str r3, [r7, #12]
  13843. return result;
  13844. 800628e: 68fb ldr r3, [r7, #12]
  13845. 8006290: 617b str r3, [r7, #20]
  13846. if (value == 0U)
  13847. 8006292: 697b ldr r3, [r7, #20]
  13848. 8006294: 2b00 cmp r3, #0
  13849. 8006296: d101 bne.n 800629c <HAL_ADC_ConfigChannel+0x4ac>
  13850. return 32U;
  13851. 8006298: 2320 movs r3, #32
  13852. 800629a: e003 b.n 80062a4 <HAL_ADC_ConfigChannel+0x4b4>
  13853. return __builtin_clz(value);
  13854. 800629c: 697b ldr r3, [r7, #20]
  13855. 800629e: fab3 f383 clz r3, r3
  13856. 80062a2: b2db uxtb r3, r3
  13857. 80062a4: 3301 adds r3, #1
  13858. 80062a6: f003 021f and.w r2, r3, #31
  13859. 80062aa: 4613 mov r3, r2
  13860. 80062ac: 005b lsls r3, r3, #1
  13861. 80062ae: 4413 add r3, r2
  13862. 80062b0: 3b1e subs r3, #30
  13863. 80062b2: 051b lsls r3, r3, #20
  13864. 80062b4: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  13865. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13866. 80062b8: 430b orrs r3, r1
  13867. 80062ba: 683a ldr r2, [r7, #0]
  13868. 80062bc: 6892 ldr r2, [r2, #8]
  13869. 80062be: 4619 mov r1, r3
  13870. 80062c0: f7ff f9e8 bl 8005694 <LL_ADC_SetChannelSamplingTime>
  13871. /* If internal channel selected, enable dedicated internal buffers and */
  13872. /* paths. */
  13873. /* Note: these internal measurement paths can be disabled using */
  13874. /* HAL_ADC_DeInit(). */
  13875. if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel))
  13876. 80062c4: 683b ldr r3, [r7, #0]
  13877. 80062c6: 681b ldr r3, [r3, #0]
  13878. 80062c8: 2b00 cmp r3, #0
  13879. 80062ca: f280 80cf bge.w 800646c <HAL_ADC_ConfigChannel+0x67c>
  13880. {
  13881. /* Configuration of common ADC parameters */
  13882. tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  13883. 80062ce: 687b ldr r3, [r7, #4]
  13884. 80062d0: 681b ldr r3, [r3, #0]
  13885. 80062d2: 4a06 ldr r2, [pc, #24] @ (80062ec <HAL_ADC_ConfigChannel+0x4fc>)
  13886. 80062d4: 4293 cmp r3, r2
  13887. 80062d6: d004 beq.n 80062e2 <HAL_ADC_ConfigChannel+0x4f2>
  13888. 80062d8: 687b ldr r3, [r7, #4]
  13889. 80062da: 681b ldr r3, [r3, #0]
  13890. 80062dc: 4a04 ldr r2, [pc, #16] @ (80062f0 <HAL_ADC_ConfigChannel+0x500>)
  13891. 80062de: 4293 cmp r3, r2
  13892. 80062e0: d10a bne.n 80062f8 <HAL_ADC_ConfigChannel+0x508>
  13893. 80062e2: 4b04 ldr r3, [pc, #16] @ (80062f4 <HAL_ADC_ConfigChannel+0x504>)
  13894. 80062e4: e009 b.n 80062fa <HAL_ADC_ConfigChannel+0x50a>
  13895. 80062e6: bf00 nop
  13896. 80062e8: 47ff0000 .word 0x47ff0000
  13897. 80062ec: 40022000 .word 0x40022000
  13898. 80062f0: 40022100 .word 0x40022100
  13899. 80062f4: 40022300 .word 0x40022300
  13900. 80062f8: 4b61 ldr r3, [pc, #388] @ (8006480 <HAL_ADC_ConfigChannel+0x690>)
  13901. 80062fa: 4618 mov r0, r3
  13902. 80062fc: f7ff f916 bl 800552c <LL_ADC_GetCommonPathInternalCh>
  13903. 8006300: 66f8 str r0, [r7, #108] @ 0x6c
  13904. /* Software is allowed to change common parameters only when all ADCs */
  13905. /* of the common group are disabled. */
  13906. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  13907. 8006302: 687b ldr r3, [r7, #4]
  13908. 8006304: 681b ldr r3, [r3, #0]
  13909. 8006306: 4a5f ldr r2, [pc, #380] @ (8006484 <HAL_ADC_ConfigChannel+0x694>)
  13910. 8006308: 4293 cmp r3, r2
  13911. 800630a: d004 beq.n 8006316 <HAL_ADC_ConfigChannel+0x526>
  13912. 800630c: 687b ldr r3, [r7, #4]
  13913. 800630e: 681b ldr r3, [r3, #0]
  13914. 8006310: 4a5d ldr r2, [pc, #372] @ (8006488 <HAL_ADC_ConfigChannel+0x698>)
  13915. 8006312: 4293 cmp r3, r2
  13916. 8006314: d10e bne.n 8006334 <HAL_ADC_ConfigChannel+0x544>
  13917. 8006316: 485b ldr r0, [pc, #364] @ (8006484 <HAL_ADC_ConfigChannel+0x694>)
  13918. 8006318: f7ff fa90 bl 800583c <LL_ADC_IsEnabled>
  13919. 800631c: 4604 mov r4, r0
  13920. 800631e: 485a ldr r0, [pc, #360] @ (8006488 <HAL_ADC_ConfigChannel+0x698>)
  13921. 8006320: f7ff fa8c bl 800583c <LL_ADC_IsEnabled>
  13922. 8006324: 4603 mov r3, r0
  13923. 8006326: 4323 orrs r3, r4
  13924. 8006328: 2b00 cmp r3, #0
  13925. 800632a: bf0c ite eq
  13926. 800632c: 2301 moveq r3, #1
  13927. 800632e: 2300 movne r3, #0
  13928. 8006330: b2db uxtb r3, r3
  13929. 8006332: e008 b.n 8006346 <HAL_ADC_ConfigChannel+0x556>
  13930. 8006334: 4855 ldr r0, [pc, #340] @ (800648c <HAL_ADC_ConfigChannel+0x69c>)
  13931. 8006336: f7ff fa81 bl 800583c <LL_ADC_IsEnabled>
  13932. 800633a: 4603 mov r3, r0
  13933. 800633c: 2b00 cmp r3, #0
  13934. 800633e: bf0c ite eq
  13935. 8006340: 2301 moveq r3, #1
  13936. 8006342: 2300 movne r3, #0
  13937. 8006344: b2db uxtb r3, r3
  13938. 8006346: 2b00 cmp r3, #0
  13939. 8006348: d07d beq.n 8006446 <HAL_ADC_ConfigChannel+0x656>
  13940. {
  13941. /* If the requested internal measurement path has already been enabled, */
  13942. /* bypass the configuration processing. */
  13943. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL))
  13944. 800634a: 683b ldr r3, [r7, #0]
  13945. 800634c: 681b ldr r3, [r3, #0]
  13946. 800634e: 4a50 ldr r2, [pc, #320] @ (8006490 <HAL_ADC_ConfigChannel+0x6a0>)
  13947. 8006350: 4293 cmp r3, r2
  13948. 8006352: d130 bne.n 80063b6 <HAL_ADC_ConfigChannel+0x5c6>
  13949. 8006354: 6efb ldr r3, [r7, #108] @ 0x6c
  13950. 8006356: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  13951. 800635a: 2b00 cmp r3, #0
  13952. 800635c: d12b bne.n 80063b6 <HAL_ADC_ConfigChannel+0x5c6>
  13953. {
  13954. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  13955. 800635e: 687b ldr r3, [r7, #4]
  13956. 8006360: 681b ldr r3, [r3, #0]
  13957. 8006362: 4a4a ldr r2, [pc, #296] @ (800648c <HAL_ADC_ConfigChannel+0x69c>)
  13958. 8006364: 4293 cmp r3, r2
  13959. 8006366: f040 8081 bne.w 800646c <HAL_ADC_ConfigChannel+0x67c>
  13960. {
  13961. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_channel);
  13962. 800636a: 687b ldr r3, [r7, #4]
  13963. 800636c: 681b ldr r3, [r3, #0]
  13964. 800636e: 4a45 ldr r2, [pc, #276] @ (8006484 <HAL_ADC_ConfigChannel+0x694>)
  13965. 8006370: 4293 cmp r3, r2
  13966. 8006372: d004 beq.n 800637e <HAL_ADC_ConfigChannel+0x58e>
  13967. 8006374: 687b ldr r3, [r7, #4]
  13968. 8006376: 681b ldr r3, [r3, #0]
  13969. 8006378: 4a43 ldr r2, [pc, #268] @ (8006488 <HAL_ADC_ConfigChannel+0x698>)
  13970. 800637a: 4293 cmp r3, r2
  13971. 800637c: d101 bne.n 8006382 <HAL_ADC_ConfigChannel+0x592>
  13972. 800637e: 4a45 ldr r2, [pc, #276] @ (8006494 <HAL_ADC_ConfigChannel+0x6a4>)
  13973. 8006380: e000 b.n 8006384 <HAL_ADC_ConfigChannel+0x594>
  13974. 8006382: 4a3f ldr r2, [pc, #252] @ (8006480 <HAL_ADC_ConfigChannel+0x690>)
  13975. 8006384: 6efb ldr r3, [r7, #108] @ 0x6c
  13976. 8006386: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  13977. 800638a: 4619 mov r1, r3
  13978. 800638c: 4610 mov r0, r2
  13979. 800638e: f7ff f8ba bl 8005506 <LL_ADC_SetCommonPathInternalCh>
  13980. /* Delay for temperature sensor stabilization time */
  13981. /* Wait loop initialization and execution */
  13982. /* Note: Variable divided by 2 to compensate partially */
  13983. /* CPU processing cycles, scaling in us split to not */
  13984. /* exceed 32 bits register capacity and handle low frequency. */
  13985. wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  13986. 8006392: 4b41 ldr r3, [pc, #260] @ (8006498 <HAL_ADC_ConfigChannel+0x6a8>)
  13987. 8006394: 681b ldr r3, [r3, #0]
  13988. 8006396: 099b lsrs r3, r3, #6
  13989. 8006398: 4a40 ldr r2, [pc, #256] @ (800649c <HAL_ADC_ConfigChannel+0x6ac>)
  13990. 800639a: fba2 2303 umull r2, r3, r2, r3
  13991. 800639e: 099b lsrs r3, r3, #6
  13992. 80063a0: 3301 adds r3, #1
  13993. 80063a2: 005b lsls r3, r3, #1
  13994. 80063a4: 60bb str r3, [r7, #8]
  13995. while (wait_loop_index != 0UL)
  13996. 80063a6: e002 b.n 80063ae <HAL_ADC_ConfigChannel+0x5be>
  13997. {
  13998. wait_loop_index--;
  13999. 80063a8: 68bb ldr r3, [r7, #8]
  14000. 80063aa: 3b01 subs r3, #1
  14001. 80063ac: 60bb str r3, [r7, #8]
  14002. while (wait_loop_index != 0UL)
  14003. 80063ae: 68bb ldr r3, [r7, #8]
  14004. 80063b0: 2b00 cmp r3, #0
  14005. 80063b2: d1f9 bne.n 80063a8 <HAL_ADC_ConfigChannel+0x5b8>
  14006. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  14007. 80063b4: e05a b.n 800646c <HAL_ADC_ConfigChannel+0x67c>
  14008. }
  14009. }
  14010. }
  14011. else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL))
  14012. 80063b6: 683b ldr r3, [r7, #0]
  14013. 80063b8: 681b ldr r3, [r3, #0]
  14014. 80063ba: 4a39 ldr r2, [pc, #228] @ (80064a0 <HAL_ADC_ConfigChannel+0x6b0>)
  14015. 80063bc: 4293 cmp r3, r2
  14016. 80063be: d11e bne.n 80063fe <HAL_ADC_ConfigChannel+0x60e>
  14017. 80063c0: 6efb ldr r3, [r7, #108] @ 0x6c
  14018. 80063c2: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  14019. 80063c6: 2b00 cmp r3, #0
  14020. 80063c8: d119 bne.n 80063fe <HAL_ADC_ConfigChannel+0x60e>
  14021. {
  14022. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  14023. 80063ca: 687b ldr r3, [r7, #4]
  14024. 80063cc: 681b ldr r3, [r3, #0]
  14025. 80063ce: 4a2f ldr r2, [pc, #188] @ (800648c <HAL_ADC_ConfigChannel+0x69c>)
  14026. 80063d0: 4293 cmp r3, r2
  14027. 80063d2: d14b bne.n 800646c <HAL_ADC_ConfigChannel+0x67c>
  14028. {
  14029. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel);
  14030. 80063d4: 687b ldr r3, [r7, #4]
  14031. 80063d6: 681b ldr r3, [r3, #0]
  14032. 80063d8: 4a2a ldr r2, [pc, #168] @ (8006484 <HAL_ADC_ConfigChannel+0x694>)
  14033. 80063da: 4293 cmp r3, r2
  14034. 80063dc: d004 beq.n 80063e8 <HAL_ADC_ConfigChannel+0x5f8>
  14035. 80063de: 687b ldr r3, [r7, #4]
  14036. 80063e0: 681b ldr r3, [r3, #0]
  14037. 80063e2: 4a29 ldr r2, [pc, #164] @ (8006488 <HAL_ADC_ConfigChannel+0x698>)
  14038. 80063e4: 4293 cmp r3, r2
  14039. 80063e6: d101 bne.n 80063ec <HAL_ADC_ConfigChannel+0x5fc>
  14040. 80063e8: 4a2a ldr r2, [pc, #168] @ (8006494 <HAL_ADC_ConfigChannel+0x6a4>)
  14041. 80063ea: e000 b.n 80063ee <HAL_ADC_ConfigChannel+0x5fe>
  14042. 80063ec: 4a24 ldr r2, [pc, #144] @ (8006480 <HAL_ADC_ConfigChannel+0x690>)
  14043. 80063ee: 6efb ldr r3, [r7, #108] @ 0x6c
  14044. 80063f0: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  14045. 80063f4: 4619 mov r1, r3
  14046. 80063f6: 4610 mov r0, r2
  14047. 80063f8: f7ff f885 bl 8005506 <LL_ADC_SetCommonPathInternalCh>
  14048. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  14049. 80063fc: e036 b.n 800646c <HAL_ADC_ConfigChannel+0x67c>
  14050. }
  14051. }
  14052. else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL))
  14053. 80063fe: 683b ldr r3, [r7, #0]
  14054. 8006400: 681b ldr r3, [r3, #0]
  14055. 8006402: 4a28 ldr r2, [pc, #160] @ (80064a4 <HAL_ADC_ConfigChannel+0x6b4>)
  14056. 8006404: 4293 cmp r3, r2
  14057. 8006406: d131 bne.n 800646c <HAL_ADC_ConfigChannel+0x67c>
  14058. 8006408: 6efb ldr r3, [r7, #108] @ 0x6c
  14059. 800640a: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  14060. 800640e: 2b00 cmp r3, #0
  14061. 8006410: d12c bne.n 800646c <HAL_ADC_ConfigChannel+0x67c>
  14062. {
  14063. if (ADC_VREFINT_INSTANCE(hadc))
  14064. 8006412: 687b ldr r3, [r7, #4]
  14065. 8006414: 681b ldr r3, [r3, #0]
  14066. 8006416: 4a1d ldr r2, [pc, #116] @ (800648c <HAL_ADC_ConfigChannel+0x69c>)
  14067. 8006418: 4293 cmp r3, r2
  14068. 800641a: d127 bne.n 800646c <HAL_ADC_ConfigChannel+0x67c>
  14069. {
  14070. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel);
  14071. 800641c: 687b ldr r3, [r7, #4]
  14072. 800641e: 681b ldr r3, [r3, #0]
  14073. 8006420: 4a18 ldr r2, [pc, #96] @ (8006484 <HAL_ADC_ConfigChannel+0x694>)
  14074. 8006422: 4293 cmp r3, r2
  14075. 8006424: d004 beq.n 8006430 <HAL_ADC_ConfigChannel+0x640>
  14076. 8006426: 687b ldr r3, [r7, #4]
  14077. 8006428: 681b ldr r3, [r3, #0]
  14078. 800642a: 4a17 ldr r2, [pc, #92] @ (8006488 <HAL_ADC_ConfigChannel+0x698>)
  14079. 800642c: 4293 cmp r3, r2
  14080. 800642e: d101 bne.n 8006434 <HAL_ADC_ConfigChannel+0x644>
  14081. 8006430: 4a18 ldr r2, [pc, #96] @ (8006494 <HAL_ADC_ConfigChannel+0x6a4>)
  14082. 8006432: e000 b.n 8006436 <HAL_ADC_ConfigChannel+0x646>
  14083. 8006434: 4a12 ldr r2, [pc, #72] @ (8006480 <HAL_ADC_ConfigChannel+0x690>)
  14084. 8006436: 6efb ldr r3, [r7, #108] @ 0x6c
  14085. 8006438: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  14086. 800643c: 4619 mov r1, r3
  14087. 800643e: 4610 mov r0, r2
  14088. 8006440: f7ff f861 bl 8005506 <LL_ADC_SetCommonPathInternalCh>
  14089. 8006444: e012 b.n 800646c <HAL_ADC_ConfigChannel+0x67c>
  14090. /* enabled and other ADC of the common group are enabled, internal */
  14091. /* measurement paths cannot be enabled. */
  14092. else
  14093. {
  14094. /* Update ADC state machine to error */
  14095. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  14096. 8006446: 687b ldr r3, [r7, #4]
  14097. 8006448: 6d5b ldr r3, [r3, #84] @ 0x54
  14098. 800644a: f043 0220 orr.w r2, r3, #32
  14099. 800644e: 687b ldr r3, [r7, #4]
  14100. 8006450: 655a str r2, [r3, #84] @ 0x54
  14101. tmp_hal_status = HAL_ERROR;
  14102. 8006452: 2301 movs r3, #1
  14103. 8006454: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14104. 8006458: e008 b.n 800646c <HAL_ADC_ConfigChannel+0x67c>
  14105. /* channel could be done on neither of the channel configuration structure */
  14106. /* parameters. */
  14107. else
  14108. {
  14109. /* Update ADC state machine to error */
  14110. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  14111. 800645a: 687b ldr r3, [r7, #4]
  14112. 800645c: 6d5b ldr r3, [r3, #84] @ 0x54
  14113. 800645e: f043 0220 orr.w r2, r3, #32
  14114. 8006462: 687b ldr r3, [r7, #4]
  14115. 8006464: 655a str r2, [r3, #84] @ 0x54
  14116. tmp_hal_status = HAL_ERROR;
  14117. 8006466: 2301 movs r3, #1
  14118. 8006468: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14119. }
  14120. /* Process unlocked */
  14121. __HAL_UNLOCK(hadc);
  14122. 800646c: 687b ldr r3, [r7, #4]
  14123. 800646e: 2200 movs r2, #0
  14124. 8006470: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14125. /* Return function status */
  14126. return tmp_hal_status;
  14127. 8006474: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  14128. }
  14129. 8006478: 4618 mov r0, r3
  14130. 800647a: 3784 adds r7, #132 @ 0x84
  14131. 800647c: 46bd mov sp, r7
  14132. 800647e: bd90 pop {r4, r7, pc}
  14133. 8006480: 58026300 .word 0x58026300
  14134. 8006484: 40022000 .word 0x40022000
  14135. 8006488: 40022100 .word 0x40022100
  14136. 800648c: 58026000 .word 0x58026000
  14137. 8006490: cb840000 .word 0xcb840000
  14138. 8006494: 40022300 .word 0x40022300
  14139. 8006498: 24000034 .word 0x24000034
  14140. 800649c: 053e2d63 .word 0x053e2d63
  14141. 80064a0: c7520000 .word 0xc7520000
  14142. 80064a4: cfb80000 .word 0xcfb80000
  14143. 080064a8 <ADC_Enable>:
  14144. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  14145. * @param hadc ADC handle
  14146. * @retval HAL status.
  14147. */
  14148. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc)
  14149. {
  14150. 80064a8: b580 push {r7, lr}
  14151. 80064aa: b084 sub sp, #16
  14152. 80064ac: af00 add r7, sp, #0
  14153. 80064ae: 6078 str r0, [r7, #4]
  14154. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  14155. /* enabling phase not yet completed: flag ADC ready not yet set). */
  14156. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  14157. /* causes: ADC clock not running, ...). */
  14158. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14159. 80064b0: 687b ldr r3, [r7, #4]
  14160. 80064b2: 681b ldr r3, [r3, #0]
  14161. 80064b4: 4618 mov r0, r3
  14162. 80064b6: f7ff f9c1 bl 800583c <LL_ADC_IsEnabled>
  14163. 80064ba: 4603 mov r3, r0
  14164. 80064bc: 2b00 cmp r3, #0
  14165. 80064be: d16e bne.n 800659e <ADC_Enable+0xf6>
  14166. {
  14167. /* Check if conditions to enable the ADC are fulfilled */
  14168. if ((hadc->Instance->CR & (ADC_CR_ADCAL | ADC_CR_JADSTP | ADC_CR_ADSTP | ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL)
  14169. 80064c0: 687b ldr r3, [r7, #4]
  14170. 80064c2: 681b ldr r3, [r3, #0]
  14171. 80064c4: 689a ldr r2, [r3, #8]
  14172. 80064c6: 4b38 ldr r3, [pc, #224] @ (80065a8 <ADC_Enable+0x100>)
  14173. 80064c8: 4013 ands r3, r2
  14174. 80064ca: 2b00 cmp r3, #0
  14175. 80064cc: d00d beq.n 80064ea <ADC_Enable+0x42>
  14176. {
  14177. /* Update ADC state machine to error */
  14178. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14179. 80064ce: 687b ldr r3, [r7, #4]
  14180. 80064d0: 6d5b ldr r3, [r3, #84] @ 0x54
  14181. 80064d2: f043 0210 orr.w r2, r3, #16
  14182. 80064d6: 687b ldr r3, [r7, #4]
  14183. 80064d8: 655a str r2, [r3, #84] @ 0x54
  14184. /* Set ADC error code to ADC peripheral internal error */
  14185. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14186. 80064da: 687b ldr r3, [r7, #4]
  14187. 80064dc: 6d9b ldr r3, [r3, #88] @ 0x58
  14188. 80064de: f043 0201 orr.w r2, r3, #1
  14189. 80064e2: 687b ldr r3, [r7, #4]
  14190. 80064e4: 659a str r2, [r3, #88] @ 0x58
  14191. return HAL_ERROR;
  14192. 80064e6: 2301 movs r3, #1
  14193. 80064e8: e05a b.n 80065a0 <ADC_Enable+0xf8>
  14194. }
  14195. /* Enable the ADC peripheral */
  14196. LL_ADC_Enable(hadc->Instance);
  14197. 80064ea: 687b ldr r3, [r7, #4]
  14198. 80064ec: 681b ldr r3, [r3, #0]
  14199. 80064ee: 4618 mov r0, r3
  14200. 80064f0: f7ff f97c bl 80057ec <LL_ADC_Enable>
  14201. /* Wait for ADC effectively enabled */
  14202. tickstart = HAL_GetTick();
  14203. 80064f4: f7fe ffa2 bl 800543c <HAL_GetTick>
  14204. 80064f8: 60f8 str r0, [r7, #12]
  14205. /* Poll for ADC ready flag raised except case of multimode enabled
  14206. and ADC slave selected. */
  14207. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14208. 80064fa: 687b ldr r3, [r7, #4]
  14209. 80064fc: 681b ldr r3, [r3, #0]
  14210. 80064fe: 4a2b ldr r2, [pc, #172] @ (80065ac <ADC_Enable+0x104>)
  14211. 8006500: 4293 cmp r3, r2
  14212. 8006502: d004 beq.n 800650e <ADC_Enable+0x66>
  14213. 8006504: 687b ldr r3, [r7, #4]
  14214. 8006506: 681b ldr r3, [r3, #0]
  14215. 8006508: 4a29 ldr r2, [pc, #164] @ (80065b0 <ADC_Enable+0x108>)
  14216. 800650a: 4293 cmp r3, r2
  14217. 800650c: d101 bne.n 8006512 <ADC_Enable+0x6a>
  14218. 800650e: 4b29 ldr r3, [pc, #164] @ (80065b4 <ADC_Enable+0x10c>)
  14219. 8006510: e000 b.n 8006514 <ADC_Enable+0x6c>
  14220. 8006512: 4b29 ldr r3, [pc, #164] @ (80065b8 <ADC_Enable+0x110>)
  14221. 8006514: 4618 mov r0, r3
  14222. 8006516: f7ff f90d bl 8005734 <LL_ADC_GetMultimode>
  14223. 800651a: 60b8 str r0, [r7, #8]
  14224. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  14225. 800651c: 687b ldr r3, [r7, #4]
  14226. 800651e: 681b ldr r3, [r3, #0]
  14227. 8006520: 4a23 ldr r2, [pc, #140] @ (80065b0 <ADC_Enable+0x108>)
  14228. 8006522: 4293 cmp r3, r2
  14229. 8006524: d002 beq.n 800652c <ADC_Enable+0x84>
  14230. 8006526: 687b ldr r3, [r7, #4]
  14231. 8006528: 681b ldr r3, [r3, #0]
  14232. 800652a: e000 b.n 800652e <ADC_Enable+0x86>
  14233. 800652c: 4b1f ldr r3, [pc, #124] @ (80065ac <ADC_Enable+0x104>)
  14234. 800652e: 687a ldr r2, [r7, #4]
  14235. 8006530: 6812 ldr r2, [r2, #0]
  14236. 8006532: 4293 cmp r3, r2
  14237. 8006534: d02c beq.n 8006590 <ADC_Enable+0xe8>
  14238. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14239. 8006536: 68bb ldr r3, [r7, #8]
  14240. 8006538: 2b00 cmp r3, #0
  14241. 800653a: d130 bne.n 800659e <ADC_Enable+0xf6>
  14242. )
  14243. {
  14244. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14245. 800653c: e028 b.n 8006590 <ADC_Enable+0xe8>
  14246. The workaround is to continue setting ADEN until ADRDY is becomes 1.
  14247. Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this
  14248. 4 ADC clock cycle duration */
  14249. /* Note: Test of ADC enabled required due to hardware constraint to */
  14250. /* not enable ADC if already enabled. */
  14251. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14252. 800653e: 687b ldr r3, [r7, #4]
  14253. 8006540: 681b ldr r3, [r3, #0]
  14254. 8006542: 4618 mov r0, r3
  14255. 8006544: f7ff f97a bl 800583c <LL_ADC_IsEnabled>
  14256. 8006548: 4603 mov r3, r0
  14257. 800654a: 2b00 cmp r3, #0
  14258. 800654c: d104 bne.n 8006558 <ADC_Enable+0xb0>
  14259. {
  14260. LL_ADC_Enable(hadc->Instance);
  14261. 800654e: 687b ldr r3, [r7, #4]
  14262. 8006550: 681b ldr r3, [r3, #0]
  14263. 8006552: 4618 mov r0, r3
  14264. 8006554: f7ff f94a bl 80057ec <LL_ADC_Enable>
  14265. }
  14266. if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  14267. 8006558: f7fe ff70 bl 800543c <HAL_GetTick>
  14268. 800655c: 4602 mov r2, r0
  14269. 800655e: 68fb ldr r3, [r7, #12]
  14270. 8006560: 1ad3 subs r3, r2, r3
  14271. 8006562: 2b02 cmp r3, #2
  14272. 8006564: d914 bls.n 8006590 <ADC_Enable+0xe8>
  14273. {
  14274. /* New check to avoid false timeout detection in case of preemption */
  14275. if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14276. 8006566: 687b ldr r3, [r7, #4]
  14277. 8006568: 681b ldr r3, [r3, #0]
  14278. 800656a: 681b ldr r3, [r3, #0]
  14279. 800656c: f003 0301 and.w r3, r3, #1
  14280. 8006570: 2b01 cmp r3, #1
  14281. 8006572: d00d beq.n 8006590 <ADC_Enable+0xe8>
  14282. {
  14283. /* Update ADC state machine to error */
  14284. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14285. 8006574: 687b ldr r3, [r7, #4]
  14286. 8006576: 6d5b ldr r3, [r3, #84] @ 0x54
  14287. 8006578: f043 0210 orr.w r2, r3, #16
  14288. 800657c: 687b ldr r3, [r7, #4]
  14289. 800657e: 655a str r2, [r3, #84] @ 0x54
  14290. /* Set ADC error code to ADC peripheral internal error */
  14291. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14292. 8006580: 687b ldr r3, [r7, #4]
  14293. 8006582: 6d9b ldr r3, [r3, #88] @ 0x58
  14294. 8006584: f043 0201 orr.w r2, r3, #1
  14295. 8006588: 687b ldr r3, [r7, #4]
  14296. 800658a: 659a str r2, [r3, #88] @ 0x58
  14297. return HAL_ERROR;
  14298. 800658c: 2301 movs r3, #1
  14299. 800658e: e007 b.n 80065a0 <ADC_Enable+0xf8>
  14300. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14301. 8006590: 687b ldr r3, [r7, #4]
  14302. 8006592: 681b ldr r3, [r3, #0]
  14303. 8006594: 681b ldr r3, [r3, #0]
  14304. 8006596: f003 0301 and.w r3, r3, #1
  14305. 800659a: 2b01 cmp r3, #1
  14306. 800659c: d1cf bne.n 800653e <ADC_Enable+0x96>
  14307. }
  14308. }
  14309. }
  14310. /* Return HAL status */
  14311. return HAL_OK;
  14312. 800659e: 2300 movs r3, #0
  14313. }
  14314. 80065a0: 4618 mov r0, r3
  14315. 80065a2: 3710 adds r7, #16
  14316. 80065a4: 46bd mov sp, r7
  14317. 80065a6: bd80 pop {r7, pc}
  14318. 80065a8: 8000003f .word 0x8000003f
  14319. 80065ac: 40022000 .word 0x40022000
  14320. 80065b0: 40022100 .word 0x40022100
  14321. 80065b4: 40022300 .word 0x40022300
  14322. 80065b8: 58026300 .word 0x58026300
  14323. 080065bc <ADC_Disable>:
  14324. * stopped.
  14325. * @param hadc ADC handle
  14326. * @retval HAL status.
  14327. */
  14328. HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc)
  14329. {
  14330. 80065bc: b580 push {r7, lr}
  14331. 80065be: b084 sub sp, #16
  14332. 80065c0: af00 add r7, sp, #0
  14333. 80065c2: 6078 str r0, [r7, #4]
  14334. uint32_t tickstart;
  14335. const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance);
  14336. 80065c4: 687b ldr r3, [r7, #4]
  14337. 80065c6: 681b ldr r3, [r3, #0]
  14338. 80065c8: 4618 mov r0, r3
  14339. 80065ca: f7ff f94a bl 8005862 <LL_ADC_IsDisableOngoing>
  14340. 80065ce: 60f8 str r0, [r7, #12]
  14341. /* Verification if ADC is not already disabled: */
  14342. /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */
  14343. /* disabled. */
  14344. if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL)
  14345. 80065d0: 687b ldr r3, [r7, #4]
  14346. 80065d2: 681b ldr r3, [r3, #0]
  14347. 80065d4: 4618 mov r0, r3
  14348. 80065d6: f7ff f931 bl 800583c <LL_ADC_IsEnabled>
  14349. 80065da: 4603 mov r3, r0
  14350. 80065dc: 2b00 cmp r3, #0
  14351. 80065de: d047 beq.n 8006670 <ADC_Disable+0xb4>
  14352. && (tmp_adc_is_disable_on_going == 0UL)
  14353. 80065e0: 68fb ldr r3, [r7, #12]
  14354. 80065e2: 2b00 cmp r3, #0
  14355. 80065e4: d144 bne.n 8006670 <ADC_Disable+0xb4>
  14356. )
  14357. {
  14358. /* Check if conditions to disable the ADC are fulfilled */
  14359. if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN)
  14360. 80065e6: 687b ldr r3, [r7, #4]
  14361. 80065e8: 681b ldr r3, [r3, #0]
  14362. 80065ea: 689b ldr r3, [r3, #8]
  14363. 80065ec: f003 030d and.w r3, r3, #13
  14364. 80065f0: 2b01 cmp r3, #1
  14365. 80065f2: d10c bne.n 800660e <ADC_Disable+0x52>
  14366. {
  14367. /* Disable the ADC peripheral */
  14368. LL_ADC_Disable(hadc->Instance);
  14369. 80065f4: 687b ldr r3, [r7, #4]
  14370. 80065f6: 681b ldr r3, [r3, #0]
  14371. 80065f8: 4618 mov r0, r3
  14372. 80065fa: f7ff f90b bl 8005814 <LL_ADC_Disable>
  14373. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY));
  14374. 80065fe: 687b ldr r3, [r7, #4]
  14375. 8006600: 681b ldr r3, [r3, #0]
  14376. 8006602: 2203 movs r2, #3
  14377. 8006604: 601a str r2, [r3, #0]
  14378. return HAL_ERROR;
  14379. }
  14380. /* Wait for ADC effectively disabled */
  14381. /* Get tick count */
  14382. tickstart = HAL_GetTick();
  14383. 8006606: f7fe ff19 bl 800543c <HAL_GetTick>
  14384. 800660a: 60b8 str r0, [r7, #8]
  14385. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14386. 800660c: e029 b.n 8006662 <ADC_Disable+0xa6>
  14387. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14388. 800660e: 687b ldr r3, [r7, #4]
  14389. 8006610: 6d5b ldr r3, [r3, #84] @ 0x54
  14390. 8006612: f043 0210 orr.w r2, r3, #16
  14391. 8006616: 687b ldr r3, [r7, #4]
  14392. 8006618: 655a str r2, [r3, #84] @ 0x54
  14393. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14394. 800661a: 687b ldr r3, [r7, #4]
  14395. 800661c: 6d9b ldr r3, [r3, #88] @ 0x58
  14396. 800661e: f043 0201 orr.w r2, r3, #1
  14397. 8006622: 687b ldr r3, [r7, #4]
  14398. 8006624: 659a str r2, [r3, #88] @ 0x58
  14399. return HAL_ERROR;
  14400. 8006626: 2301 movs r3, #1
  14401. 8006628: e023 b.n 8006672 <ADC_Disable+0xb6>
  14402. {
  14403. if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  14404. 800662a: f7fe ff07 bl 800543c <HAL_GetTick>
  14405. 800662e: 4602 mov r2, r0
  14406. 8006630: 68bb ldr r3, [r7, #8]
  14407. 8006632: 1ad3 subs r3, r2, r3
  14408. 8006634: 2b02 cmp r3, #2
  14409. 8006636: d914 bls.n 8006662 <ADC_Disable+0xa6>
  14410. {
  14411. /* New check to avoid false timeout detection in case of preemption */
  14412. if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14413. 8006638: 687b ldr r3, [r7, #4]
  14414. 800663a: 681b ldr r3, [r3, #0]
  14415. 800663c: 689b ldr r3, [r3, #8]
  14416. 800663e: f003 0301 and.w r3, r3, #1
  14417. 8006642: 2b00 cmp r3, #0
  14418. 8006644: d00d beq.n 8006662 <ADC_Disable+0xa6>
  14419. {
  14420. /* Update ADC state machine to error */
  14421. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14422. 8006646: 687b ldr r3, [r7, #4]
  14423. 8006648: 6d5b ldr r3, [r3, #84] @ 0x54
  14424. 800664a: f043 0210 orr.w r2, r3, #16
  14425. 800664e: 687b ldr r3, [r7, #4]
  14426. 8006650: 655a str r2, [r3, #84] @ 0x54
  14427. /* Set ADC error code to ADC peripheral internal error */
  14428. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14429. 8006652: 687b ldr r3, [r7, #4]
  14430. 8006654: 6d9b ldr r3, [r3, #88] @ 0x58
  14431. 8006656: f043 0201 orr.w r2, r3, #1
  14432. 800665a: 687b ldr r3, [r7, #4]
  14433. 800665c: 659a str r2, [r3, #88] @ 0x58
  14434. return HAL_ERROR;
  14435. 800665e: 2301 movs r3, #1
  14436. 8006660: e007 b.n 8006672 <ADC_Disable+0xb6>
  14437. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14438. 8006662: 687b ldr r3, [r7, #4]
  14439. 8006664: 681b ldr r3, [r3, #0]
  14440. 8006666: 689b ldr r3, [r3, #8]
  14441. 8006668: f003 0301 and.w r3, r3, #1
  14442. 800666c: 2b00 cmp r3, #0
  14443. 800666e: d1dc bne.n 800662a <ADC_Disable+0x6e>
  14444. }
  14445. }
  14446. }
  14447. /* Return HAL status */
  14448. return HAL_OK;
  14449. 8006670: 2300 movs r3, #0
  14450. }
  14451. 8006672: 4618 mov r0, r3
  14452. 8006674: 3710 adds r7, #16
  14453. 8006676: 46bd mov sp, r7
  14454. 8006678: bd80 pop {r7, pc}
  14455. 0800667a <ADC_DMAConvCplt>:
  14456. * @brief DMA transfer complete callback.
  14457. * @param hdma pointer to DMA handle.
  14458. * @retval None
  14459. */
  14460. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  14461. {
  14462. 800667a: b580 push {r7, lr}
  14463. 800667c: b084 sub sp, #16
  14464. 800667e: af00 add r7, sp, #0
  14465. 8006680: 6078 str r0, [r7, #4]
  14466. /* Retrieve ADC handle corresponding to current DMA handle */
  14467. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  14468. 8006682: 687b ldr r3, [r7, #4]
  14469. 8006684: 6b9b ldr r3, [r3, #56] @ 0x38
  14470. 8006686: 60fb str r3, [r7, #12]
  14471. /* Update state machine on conversion status if not in error state */
  14472. if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL)
  14473. 8006688: 68fb ldr r3, [r7, #12]
  14474. 800668a: 6d5b ldr r3, [r3, #84] @ 0x54
  14475. 800668c: f003 0350 and.w r3, r3, #80 @ 0x50
  14476. 8006690: 2b00 cmp r3, #0
  14477. 8006692: d14b bne.n 800672c <ADC_DMAConvCplt+0xb2>
  14478. {
  14479. /* Set ADC state */
  14480. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  14481. 8006694: 68fb ldr r3, [r7, #12]
  14482. 8006696: 6d5b ldr r3, [r3, #84] @ 0x54
  14483. 8006698: f443 7200 orr.w r2, r3, #512 @ 0x200
  14484. 800669c: 68fb ldr r3, [r7, #12]
  14485. 800669e: 655a str r2, [r3, #84] @ 0x54
  14486. /* Determine whether any further conversion upcoming on group regular */
  14487. /* by external trigger, continuous mode or scan sequence on going */
  14488. /* to disable interruption. */
  14489. /* Is it the end of the regular sequence ? */
  14490. if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL)
  14491. 80066a0: 68fb ldr r3, [r7, #12]
  14492. 80066a2: 681b ldr r3, [r3, #0]
  14493. 80066a4: 681b ldr r3, [r3, #0]
  14494. 80066a6: f003 0308 and.w r3, r3, #8
  14495. 80066aa: 2b00 cmp r3, #0
  14496. 80066ac: d021 beq.n 80066f2 <ADC_DMAConvCplt+0x78>
  14497. {
  14498. /* Are conversions software-triggered ? */
  14499. if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL)
  14500. 80066ae: 68fb ldr r3, [r7, #12]
  14501. 80066b0: 681b ldr r3, [r3, #0]
  14502. 80066b2: 4618 mov r0, r3
  14503. 80066b4: f7fe ff9c bl 80055f0 <LL_ADC_REG_IsTriggerSourceSWStart>
  14504. 80066b8: 4603 mov r3, r0
  14505. 80066ba: 2b00 cmp r3, #0
  14506. 80066bc: d032 beq.n 8006724 <ADC_DMAConvCplt+0xaa>
  14507. {
  14508. /* Is CONT bit set ? */
  14509. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL)
  14510. 80066be: 68fb ldr r3, [r7, #12]
  14511. 80066c0: 681b ldr r3, [r3, #0]
  14512. 80066c2: 68db ldr r3, [r3, #12]
  14513. 80066c4: f403 5300 and.w r3, r3, #8192 @ 0x2000
  14514. 80066c8: 2b00 cmp r3, #0
  14515. 80066ca: d12b bne.n 8006724 <ADC_DMAConvCplt+0xaa>
  14516. {
  14517. /* CONT bit is not set, no more conversions expected */
  14518. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  14519. 80066cc: 68fb ldr r3, [r7, #12]
  14520. 80066ce: 6d5b ldr r3, [r3, #84] @ 0x54
  14521. 80066d0: f423 7280 bic.w r2, r3, #256 @ 0x100
  14522. 80066d4: 68fb ldr r3, [r7, #12]
  14523. 80066d6: 655a str r2, [r3, #84] @ 0x54
  14524. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  14525. 80066d8: 68fb ldr r3, [r7, #12]
  14526. 80066da: 6d5b ldr r3, [r3, #84] @ 0x54
  14527. 80066dc: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14528. 80066e0: 2b00 cmp r3, #0
  14529. 80066e2: d11f bne.n 8006724 <ADC_DMAConvCplt+0xaa>
  14530. {
  14531. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  14532. 80066e4: 68fb ldr r3, [r7, #12]
  14533. 80066e6: 6d5b ldr r3, [r3, #84] @ 0x54
  14534. 80066e8: f043 0201 orr.w r2, r3, #1
  14535. 80066ec: 68fb ldr r3, [r7, #12]
  14536. 80066ee: 655a str r2, [r3, #84] @ 0x54
  14537. 80066f0: e018 b.n 8006724 <ADC_DMAConvCplt+0xaa>
  14538. }
  14539. else
  14540. {
  14541. /* DMA End of Transfer interrupt was triggered but conversions sequence
  14542. is not over. If DMACFG is set to 0, conversions are stopped. */
  14543. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT) == 0UL)
  14544. 80066f2: 68fb ldr r3, [r7, #12]
  14545. 80066f4: 681b ldr r3, [r3, #0]
  14546. 80066f6: 68db ldr r3, [r3, #12]
  14547. 80066f8: f003 0303 and.w r3, r3, #3
  14548. 80066fc: 2b00 cmp r3, #0
  14549. 80066fe: d111 bne.n 8006724 <ADC_DMAConvCplt+0xaa>
  14550. {
  14551. /* DMACFG bit is not set, conversions are stopped. */
  14552. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  14553. 8006700: 68fb ldr r3, [r7, #12]
  14554. 8006702: 6d5b ldr r3, [r3, #84] @ 0x54
  14555. 8006704: f423 7280 bic.w r2, r3, #256 @ 0x100
  14556. 8006708: 68fb ldr r3, [r7, #12]
  14557. 800670a: 655a str r2, [r3, #84] @ 0x54
  14558. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  14559. 800670c: 68fb ldr r3, [r7, #12]
  14560. 800670e: 6d5b ldr r3, [r3, #84] @ 0x54
  14561. 8006710: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14562. 8006714: 2b00 cmp r3, #0
  14563. 8006716: d105 bne.n 8006724 <ADC_DMAConvCplt+0xaa>
  14564. {
  14565. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  14566. 8006718: 68fb ldr r3, [r7, #12]
  14567. 800671a: 6d5b ldr r3, [r3, #84] @ 0x54
  14568. 800671c: f043 0201 orr.w r2, r3, #1
  14569. 8006720: 68fb ldr r3, [r7, #12]
  14570. 8006722: 655a str r2, [r3, #84] @ 0x54
  14571. /* Conversion complete callback */
  14572. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  14573. hadc->ConvCpltCallback(hadc);
  14574. #else
  14575. HAL_ADC_ConvCpltCallback(hadc);
  14576. 8006724: 68f8 ldr r0, [r7, #12]
  14577. 8006726: f7fb f82f bl 8001788 <HAL_ADC_ConvCpltCallback>
  14578. {
  14579. /* Call ADC DMA error callback */
  14580. hadc->DMA_Handle->XferErrorCallback(hdma);
  14581. }
  14582. }
  14583. }
  14584. 800672a: e00e b.n 800674a <ADC_DMAConvCplt+0xd0>
  14585. if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL)
  14586. 800672c: 68fb ldr r3, [r7, #12]
  14587. 800672e: 6d5b ldr r3, [r3, #84] @ 0x54
  14588. 8006730: f003 0310 and.w r3, r3, #16
  14589. 8006734: 2b00 cmp r3, #0
  14590. 8006736: d003 beq.n 8006740 <ADC_DMAConvCplt+0xc6>
  14591. HAL_ADC_ErrorCallback(hadc);
  14592. 8006738: 68f8 ldr r0, [r7, #12]
  14593. 800673a: f7ff fb4f bl 8005ddc <HAL_ADC_ErrorCallback>
  14594. }
  14595. 800673e: e004 b.n 800674a <ADC_DMAConvCplt+0xd0>
  14596. hadc->DMA_Handle->XferErrorCallback(hdma);
  14597. 8006740: 68fb ldr r3, [r7, #12]
  14598. 8006742: 6cdb ldr r3, [r3, #76] @ 0x4c
  14599. 8006744: 6cdb ldr r3, [r3, #76] @ 0x4c
  14600. 8006746: 6878 ldr r0, [r7, #4]
  14601. 8006748: 4798 blx r3
  14602. }
  14603. 800674a: bf00 nop
  14604. 800674c: 3710 adds r7, #16
  14605. 800674e: 46bd mov sp, r7
  14606. 8006750: bd80 pop {r7, pc}
  14607. 08006752 <ADC_DMAHalfConvCplt>:
  14608. * @brief DMA half transfer complete callback.
  14609. * @param hdma pointer to DMA handle.
  14610. * @retval None
  14611. */
  14612. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  14613. {
  14614. 8006752: b580 push {r7, lr}
  14615. 8006754: b084 sub sp, #16
  14616. 8006756: af00 add r7, sp, #0
  14617. 8006758: 6078 str r0, [r7, #4]
  14618. /* Retrieve ADC handle corresponding to current DMA handle */
  14619. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  14620. 800675a: 687b ldr r3, [r7, #4]
  14621. 800675c: 6b9b ldr r3, [r3, #56] @ 0x38
  14622. 800675e: 60fb str r3, [r7, #12]
  14623. /* Half conversion callback */
  14624. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  14625. hadc->ConvHalfCpltCallback(hadc);
  14626. #else
  14627. HAL_ADC_ConvHalfCpltCallback(hadc);
  14628. 8006760: 68f8 ldr r0, [r7, #12]
  14629. 8006762: f7ff fb31 bl 8005dc8 <HAL_ADC_ConvHalfCpltCallback>
  14630. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  14631. }
  14632. 8006766: bf00 nop
  14633. 8006768: 3710 adds r7, #16
  14634. 800676a: 46bd mov sp, r7
  14635. 800676c: bd80 pop {r7, pc}
  14636. 0800676e <ADC_DMAError>:
  14637. * @brief DMA error callback.
  14638. * @param hdma pointer to DMA handle.
  14639. * @retval None
  14640. */
  14641. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  14642. {
  14643. 800676e: b580 push {r7, lr}
  14644. 8006770: b084 sub sp, #16
  14645. 8006772: af00 add r7, sp, #0
  14646. 8006774: 6078 str r0, [r7, #4]
  14647. /* Retrieve ADC handle corresponding to current DMA handle */
  14648. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  14649. 8006776: 687b ldr r3, [r7, #4]
  14650. 8006778: 6b9b ldr r3, [r3, #56] @ 0x38
  14651. 800677a: 60fb str r3, [r7, #12]
  14652. /* Set ADC state */
  14653. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  14654. 800677c: 68fb ldr r3, [r7, #12]
  14655. 800677e: 6d5b ldr r3, [r3, #84] @ 0x54
  14656. 8006780: f043 0240 orr.w r2, r3, #64 @ 0x40
  14657. 8006784: 68fb ldr r3, [r7, #12]
  14658. 8006786: 655a str r2, [r3, #84] @ 0x54
  14659. /* Set ADC error code to DMA error */
  14660. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  14661. 8006788: 68fb ldr r3, [r7, #12]
  14662. 800678a: 6d9b ldr r3, [r3, #88] @ 0x58
  14663. 800678c: f043 0204 orr.w r2, r3, #4
  14664. 8006790: 68fb ldr r3, [r7, #12]
  14665. 8006792: 659a str r2, [r3, #88] @ 0x58
  14666. /* Error callback */
  14667. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  14668. hadc->ErrorCallback(hadc);
  14669. #else
  14670. HAL_ADC_ErrorCallback(hadc);
  14671. 8006794: 68f8 ldr r0, [r7, #12]
  14672. 8006796: f7ff fb21 bl 8005ddc <HAL_ADC_ErrorCallback>
  14673. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  14674. }
  14675. 800679a: bf00 nop
  14676. 800679c: 3710 adds r7, #16
  14677. 800679e: 46bd mov sp, r7
  14678. 80067a0: bd80 pop {r7, pc}
  14679. ...
  14680. 080067a4 <ADC_ConfigureBoostMode>:
  14681. * stopped.
  14682. * @param hadc ADC handle
  14683. * @retval None.
  14684. */
  14685. void ADC_ConfigureBoostMode(ADC_HandleTypeDef *hadc)
  14686. {
  14687. 80067a4: b580 push {r7, lr}
  14688. 80067a6: b084 sub sp, #16
  14689. 80067a8: af00 add r7, sp, #0
  14690. 80067aa: 6078 str r0, [r7, #4]
  14691. uint32_t freq;
  14692. if (ADC_IS_SYNCHRONOUS_CLOCK_MODE(hadc))
  14693. 80067ac: 687b ldr r3, [r7, #4]
  14694. 80067ae: 681b ldr r3, [r3, #0]
  14695. 80067b0: 4a7a ldr r2, [pc, #488] @ (800699c <ADC_ConfigureBoostMode+0x1f8>)
  14696. 80067b2: 4293 cmp r3, r2
  14697. 80067b4: d004 beq.n 80067c0 <ADC_ConfigureBoostMode+0x1c>
  14698. 80067b6: 687b ldr r3, [r7, #4]
  14699. 80067b8: 681b ldr r3, [r3, #0]
  14700. 80067ba: 4a79 ldr r2, [pc, #484] @ (80069a0 <ADC_ConfigureBoostMode+0x1fc>)
  14701. 80067bc: 4293 cmp r3, r2
  14702. 80067be: d109 bne.n 80067d4 <ADC_ConfigureBoostMode+0x30>
  14703. 80067c0: 4b78 ldr r3, [pc, #480] @ (80069a4 <ADC_ConfigureBoostMode+0x200>)
  14704. 80067c2: 689b ldr r3, [r3, #8]
  14705. 80067c4: f403 3340 and.w r3, r3, #196608 @ 0x30000
  14706. 80067c8: 2b00 cmp r3, #0
  14707. 80067ca: bf14 ite ne
  14708. 80067cc: 2301 movne r3, #1
  14709. 80067ce: 2300 moveq r3, #0
  14710. 80067d0: b2db uxtb r3, r3
  14711. 80067d2: e008 b.n 80067e6 <ADC_ConfigureBoostMode+0x42>
  14712. 80067d4: 4b74 ldr r3, [pc, #464] @ (80069a8 <ADC_ConfigureBoostMode+0x204>)
  14713. 80067d6: 689b ldr r3, [r3, #8]
  14714. 80067d8: f403 3340 and.w r3, r3, #196608 @ 0x30000
  14715. 80067dc: 2b00 cmp r3, #0
  14716. 80067de: bf14 ite ne
  14717. 80067e0: 2301 movne r3, #1
  14718. 80067e2: 2300 moveq r3, #0
  14719. 80067e4: b2db uxtb r3, r3
  14720. 80067e6: 2b00 cmp r3, #0
  14721. 80067e8: d01c beq.n 8006824 <ADC_ConfigureBoostMode+0x80>
  14722. {
  14723. freq = HAL_RCC_GetHCLKFreq();
  14724. 80067ea: f005 fae9 bl 800bdc0 <HAL_RCC_GetHCLKFreq>
  14725. 80067ee: 60f8 str r0, [r7, #12]
  14726. switch (hadc->Init.ClockPrescaler)
  14727. 80067f0: 687b ldr r3, [r7, #4]
  14728. 80067f2: 685b ldr r3, [r3, #4]
  14729. 80067f4: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  14730. 80067f8: d010 beq.n 800681c <ADC_ConfigureBoostMode+0x78>
  14731. 80067fa: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  14732. 80067fe: d873 bhi.n 80068e8 <ADC_ConfigureBoostMode+0x144>
  14733. 8006800: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  14734. 8006804: d002 beq.n 800680c <ADC_ConfigureBoostMode+0x68>
  14735. 8006806: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  14736. 800680a: d16d bne.n 80068e8 <ADC_ConfigureBoostMode+0x144>
  14737. {
  14738. case ADC_CLOCK_SYNC_PCLK_DIV1:
  14739. case ADC_CLOCK_SYNC_PCLK_DIV2:
  14740. freq /= (hadc->Init.ClockPrescaler >> ADC_CCR_CKMODE_Pos);
  14741. 800680c: 687b ldr r3, [r7, #4]
  14742. 800680e: 685b ldr r3, [r3, #4]
  14743. 8006810: 0c1b lsrs r3, r3, #16
  14744. 8006812: 68fa ldr r2, [r7, #12]
  14745. 8006814: fbb2 f3f3 udiv r3, r2, r3
  14746. 8006818: 60fb str r3, [r7, #12]
  14747. break;
  14748. 800681a: e068 b.n 80068ee <ADC_ConfigureBoostMode+0x14a>
  14749. case ADC_CLOCK_SYNC_PCLK_DIV4:
  14750. freq /= 4UL;
  14751. 800681c: 68fb ldr r3, [r7, #12]
  14752. 800681e: 089b lsrs r3, r3, #2
  14753. 8006820: 60fb str r3, [r7, #12]
  14754. break;
  14755. 8006822: e064 b.n 80068ee <ADC_ConfigureBoostMode+0x14a>
  14756. break;
  14757. }
  14758. }
  14759. else
  14760. {
  14761. freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC);
  14762. 8006824: f44f 2000 mov.w r0, #524288 @ 0x80000
  14763. 8006828: f04f 0100 mov.w r1, #0
  14764. 800682c: f006 fd54 bl 800d2d8 <HAL_RCCEx_GetPeriphCLKFreq>
  14765. 8006830: 60f8 str r0, [r7, #12]
  14766. switch (hadc->Init.ClockPrescaler)
  14767. 8006832: 687b ldr r3, [r7, #4]
  14768. 8006834: 685b ldr r3, [r3, #4]
  14769. 8006836: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  14770. 800683a: d051 beq.n 80068e0 <ADC_ConfigureBoostMode+0x13c>
  14771. 800683c: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  14772. 8006840: d854 bhi.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14773. 8006842: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  14774. 8006846: d047 beq.n 80068d8 <ADC_ConfigureBoostMode+0x134>
  14775. 8006848: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  14776. 800684c: d84e bhi.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14777. 800684e: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  14778. 8006852: d03d beq.n 80068d0 <ADC_ConfigureBoostMode+0x12c>
  14779. 8006854: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  14780. 8006858: d848 bhi.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14781. 800685a: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  14782. 800685e: d033 beq.n 80068c8 <ADC_ConfigureBoostMode+0x124>
  14783. 8006860: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  14784. 8006864: d842 bhi.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14785. 8006866: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  14786. 800686a: d029 beq.n 80068c0 <ADC_ConfigureBoostMode+0x11c>
  14787. 800686c: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  14788. 8006870: d83c bhi.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14789. 8006872: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  14790. 8006876: d01a beq.n 80068ae <ADC_ConfigureBoostMode+0x10a>
  14791. 8006878: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  14792. 800687c: d836 bhi.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14793. 800687e: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  14794. 8006882: d014 beq.n 80068ae <ADC_ConfigureBoostMode+0x10a>
  14795. 8006884: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  14796. 8006888: d830 bhi.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14797. 800688a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  14798. 800688e: d00e beq.n 80068ae <ADC_ConfigureBoostMode+0x10a>
  14799. 8006890: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  14800. 8006894: d82a bhi.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14801. 8006896: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  14802. 800689a: d008 beq.n 80068ae <ADC_ConfigureBoostMode+0x10a>
  14803. 800689c: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  14804. 80068a0: d824 bhi.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14805. 80068a2: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  14806. 80068a6: d002 beq.n 80068ae <ADC_ConfigureBoostMode+0x10a>
  14807. 80068a8: f5b3 2f00 cmp.w r3, #524288 @ 0x80000
  14808. 80068ac: d11e bne.n 80068ec <ADC_ConfigureBoostMode+0x148>
  14809. case ADC_CLOCK_ASYNC_DIV4:
  14810. case ADC_CLOCK_ASYNC_DIV6:
  14811. case ADC_CLOCK_ASYNC_DIV8:
  14812. case ADC_CLOCK_ASYNC_DIV10:
  14813. case ADC_CLOCK_ASYNC_DIV12:
  14814. freq /= ((hadc->Init.ClockPrescaler >> ADC_CCR_PRESC_Pos) << 1UL);
  14815. 80068ae: 687b ldr r3, [r7, #4]
  14816. 80068b0: 685b ldr r3, [r3, #4]
  14817. 80068b2: 0c9b lsrs r3, r3, #18
  14818. 80068b4: 005b lsls r3, r3, #1
  14819. 80068b6: 68fa ldr r2, [r7, #12]
  14820. 80068b8: fbb2 f3f3 udiv r3, r2, r3
  14821. 80068bc: 60fb str r3, [r7, #12]
  14822. break;
  14823. 80068be: e016 b.n 80068ee <ADC_ConfigureBoostMode+0x14a>
  14824. case ADC_CLOCK_ASYNC_DIV16:
  14825. freq /= 16UL;
  14826. 80068c0: 68fb ldr r3, [r7, #12]
  14827. 80068c2: 091b lsrs r3, r3, #4
  14828. 80068c4: 60fb str r3, [r7, #12]
  14829. break;
  14830. 80068c6: e012 b.n 80068ee <ADC_ConfigureBoostMode+0x14a>
  14831. case ADC_CLOCK_ASYNC_DIV32:
  14832. freq /= 32UL;
  14833. 80068c8: 68fb ldr r3, [r7, #12]
  14834. 80068ca: 095b lsrs r3, r3, #5
  14835. 80068cc: 60fb str r3, [r7, #12]
  14836. break;
  14837. 80068ce: e00e b.n 80068ee <ADC_ConfigureBoostMode+0x14a>
  14838. case ADC_CLOCK_ASYNC_DIV64:
  14839. freq /= 64UL;
  14840. 80068d0: 68fb ldr r3, [r7, #12]
  14841. 80068d2: 099b lsrs r3, r3, #6
  14842. 80068d4: 60fb str r3, [r7, #12]
  14843. break;
  14844. 80068d6: e00a b.n 80068ee <ADC_ConfigureBoostMode+0x14a>
  14845. case ADC_CLOCK_ASYNC_DIV128:
  14846. freq /= 128UL;
  14847. 80068d8: 68fb ldr r3, [r7, #12]
  14848. 80068da: 09db lsrs r3, r3, #7
  14849. 80068dc: 60fb str r3, [r7, #12]
  14850. break;
  14851. 80068de: e006 b.n 80068ee <ADC_ConfigureBoostMode+0x14a>
  14852. case ADC_CLOCK_ASYNC_DIV256:
  14853. freq /= 256UL;
  14854. 80068e0: 68fb ldr r3, [r7, #12]
  14855. 80068e2: 0a1b lsrs r3, r3, #8
  14856. 80068e4: 60fb str r3, [r7, #12]
  14857. break;
  14858. 80068e6: e002 b.n 80068ee <ADC_ConfigureBoostMode+0x14a>
  14859. break;
  14860. 80068e8: bf00 nop
  14861. 80068ea: e000 b.n 80068ee <ADC_ConfigureBoostMode+0x14a>
  14862. default:
  14863. break;
  14864. 80068ec: bf00 nop
  14865. else /* if(freq > 25000000UL) */
  14866. {
  14867. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  14868. }
  14869. #else
  14870. if (HAL_GetREVID() <= REV_ID_Y) /* STM32H7 silicon Rev.Y */
  14871. 80068ee: f7fe fdb1 bl 8005454 <HAL_GetREVID>
  14872. 80068f2: 4603 mov r3, r0
  14873. 80068f4: f241 0203 movw r2, #4099 @ 0x1003
  14874. 80068f8: 4293 cmp r3, r2
  14875. 80068fa: d815 bhi.n 8006928 <ADC_ConfigureBoostMode+0x184>
  14876. {
  14877. if (freq > 20000000UL)
  14878. 80068fc: 68fb ldr r3, [r7, #12]
  14879. 80068fe: 4a2b ldr r2, [pc, #172] @ (80069ac <ADC_ConfigureBoostMode+0x208>)
  14880. 8006900: 4293 cmp r3, r2
  14881. 8006902: d908 bls.n 8006916 <ADC_ConfigureBoostMode+0x172>
  14882. {
  14883. SET_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  14884. 8006904: 687b ldr r3, [r7, #4]
  14885. 8006906: 681b ldr r3, [r3, #0]
  14886. 8006908: 689a ldr r2, [r3, #8]
  14887. 800690a: 687b ldr r3, [r7, #4]
  14888. 800690c: 681b ldr r3, [r3, #0]
  14889. 800690e: f442 7280 orr.w r2, r2, #256 @ 0x100
  14890. 8006912: 609a str r2, [r3, #8]
  14891. {
  14892. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  14893. }
  14894. }
  14895. #endif /* ADC_VER_V5_3 */
  14896. }
  14897. 8006914: e03e b.n 8006994 <ADC_ConfigureBoostMode+0x1f0>
  14898. CLEAR_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  14899. 8006916: 687b ldr r3, [r7, #4]
  14900. 8006918: 681b ldr r3, [r3, #0]
  14901. 800691a: 689a ldr r2, [r3, #8]
  14902. 800691c: 687b ldr r3, [r7, #4]
  14903. 800691e: 681b ldr r3, [r3, #0]
  14904. 8006920: f422 7280 bic.w r2, r2, #256 @ 0x100
  14905. 8006924: 609a str r2, [r3, #8]
  14906. }
  14907. 8006926: e035 b.n 8006994 <ADC_ConfigureBoostMode+0x1f0>
  14908. freq /= 2U; /* divider by 2 for Rev.V */
  14909. 8006928: 68fb ldr r3, [r7, #12]
  14910. 800692a: 085b lsrs r3, r3, #1
  14911. 800692c: 60fb str r3, [r7, #12]
  14912. if (freq <= 6250000UL)
  14913. 800692e: 68fb ldr r3, [r7, #12]
  14914. 8006930: 4a1f ldr r2, [pc, #124] @ (80069b0 <ADC_ConfigureBoostMode+0x20c>)
  14915. 8006932: 4293 cmp r3, r2
  14916. 8006934: d808 bhi.n 8006948 <ADC_ConfigureBoostMode+0x1a4>
  14917. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL);
  14918. 8006936: 687b ldr r3, [r7, #4]
  14919. 8006938: 681b ldr r3, [r3, #0]
  14920. 800693a: 689a ldr r2, [r3, #8]
  14921. 800693c: 687b ldr r3, [r7, #4]
  14922. 800693e: 681b ldr r3, [r3, #0]
  14923. 8006940: f422 7240 bic.w r2, r2, #768 @ 0x300
  14924. 8006944: 609a str r2, [r3, #8]
  14925. }
  14926. 8006946: e025 b.n 8006994 <ADC_ConfigureBoostMode+0x1f0>
  14927. else if (freq <= 12500000UL)
  14928. 8006948: 68fb ldr r3, [r7, #12]
  14929. 800694a: 4a1a ldr r2, [pc, #104] @ (80069b4 <ADC_ConfigureBoostMode+0x210>)
  14930. 800694c: 4293 cmp r3, r2
  14931. 800694e: d80a bhi.n 8006966 <ADC_ConfigureBoostMode+0x1c2>
  14932. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0);
  14933. 8006950: 687b ldr r3, [r7, #4]
  14934. 8006952: 681b ldr r3, [r3, #0]
  14935. 8006954: 689b ldr r3, [r3, #8]
  14936. 8006956: f423 7240 bic.w r2, r3, #768 @ 0x300
  14937. 800695a: 687b ldr r3, [r7, #4]
  14938. 800695c: 681b ldr r3, [r3, #0]
  14939. 800695e: f442 7280 orr.w r2, r2, #256 @ 0x100
  14940. 8006962: 609a str r2, [r3, #8]
  14941. }
  14942. 8006964: e016 b.n 8006994 <ADC_ConfigureBoostMode+0x1f0>
  14943. else if (freq <= 25000000UL)
  14944. 8006966: 68fb ldr r3, [r7, #12]
  14945. 8006968: 4a13 ldr r2, [pc, #76] @ (80069b8 <ADC_ConfigureBoostMode+0x214>)
  14946. 800696a: 4293 cmp r3, r2
  14947. 800696c: d80a bhi.n 8006984 <ADC_ConfigureBoostMode+0x1e0>
  14948. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1);
  14949. 800696e: 687b ldr r3, [r7, #4]
  14950. 8006970: 681b ldr r3, [r3, #0]
  14951. 8006972: 689b ldr r3, [r3, #8]
  14952. 8006974: f423 7240 bic.w r2, r3, #768 @ 0x300
  14953. 8006978: 687b ldr r3, [r7, #4]
  14954. 800697a: 681b ldr r3, [r3, #0]
  14955. 800697c: f442 7200 orr.w r2, r2, #512 @ 0x200
  14956. 8006980: 609a str r2, [r3, #8]
  14957. }
  14958. 8006982: e007 b.n 8006994 <ADC_ConfigureBoostMode+0x1f0>
  14959. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  14960. 8006984: 687b ldr r3, [r7, #4]
  14961. 8006986: 681b ldr r3, [r3, #0]
  14962. 8006988: 689a ldr r2, [r3, #8]
  14963. 800698a: 687b ldr r3, [r7, #4]
  14964. 800698c: 681b ldr r3, [r3, #0]
  14965. 800698e: f442 7240 orr.w r2, r2, #768 @ 0x300
  14966. 8006992: 609a str r2, [r3, #8]
  14967. }
  14968. 8006994: bf00 nop
  14969. 8006996: 3710 adds r7, #16
  14970. 8006998: 46bd mov sp, r7
  14971. 800699a: bd80 pop {r7, pc}
  14972. 800699c: 40022000 .word 0x40022000
  14973. 80069a0: 40022100 .word 0x40022100
  14974. 80069a4: 40022300 .word 0x40022300
  14975. 80069a8: 58026300 .word 0x58026300
  14976. 80069ac: 01312d00 .word 0x01312d00
  14977. 80069b0: 005f5e10 .word 0x005f5e10
  14978. 80069b4: 00bebc20 .word 0x00bebc20
  14979. 80069b8: 017d7840 .word 0x017d7840
  14980. 080069bc <LL_ADC_IsEnabled>:
  14981. {
  14982. 80069bc: b480 push {r7}
  14983. 80069be: b083 sub sp, #12
  14984. 80069c0: af00 add r7, sp, #0
  14985. 80069c2: 6078 str r0, [r7, #4]
  14986. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  14987. 80069c4: 687b ldr r3, [r7, #4]
  14988. 80069c6: 689b ldr r3, [r3, #8]
  14989. 80069c8: f003 0301 and.w r3, r3, #1
  14990. 80069cc: 2b01 cmp r3, #1
  14991. 80069ce: d101 bne.n 80069d4 <LL_ADC_IsEnabled+0x18>
  14992. 80069d0: 2301 movs r3, #1
  14993. 80069d2: e000 b.n 80069d6 <LL_ADC_IsEnabled+0x1a>
  14994. 80069d4: 2300 movs r3, #0
  14995. }
  14996. 80069d6: 4618 mov r0, r3
  14997. 80069d8: 370c adds r7, #12
  14998. 80069da: 46bd mov sp, r7
  14999. 80069dc: f85d 7b04 ldr.w r7, [sp], #4
  15000. 80069e0: 4770 bx lr
  15001. ...
  15002. 080069e4 <LL_ADC_StartCalibration>:
  15003. {
  15004. 80069e4: b480 push {r7}
  15005. 80069e6: b085 sub sp, #20
  15006. 80069e8: af00 add r7, sp, #0
  15007. 80069ea: 60f8 str r0, [r7, #12]
  15008. 80069ec: 60b9 str r1, [r7, #8]
  15009. 80069ee: 607a str r2, [r7, #4]
  15010. MODIFY_REG(ADCx->CR,
  15011. 80069f0: 68fb ldr r3, [r7, #12]
  15012. 80069f2: 689a ldr r2, [r3, #8]
  15013. 80069f4: 4b09 ldr r3, [pc, #36] @ (8006a1c <LL_ADC_StartCalibration+0x38>)
  15014. 80069f6: 4013 ands r3, r2
  15015. 80069f8: 68ba ldr r2, [r7, #8]
  15016. 80069fa: f402 3180 and.w r1, r2, #65536 @ 0x10000
  15017. 80069fe: 687a ldr r2, [r7, #4]
  15018. 8006a00: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000
  15019. 8006a04: 430a orrs r2, r1
  15020. 8006a06: 4313 orrs r3, r2
  15021. 8006a08: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  15022. 8006a0c: 68fb ldr r3, [r7, #12]
  15023. 8006a0e: 609a str r2, [r3, #8]
  15024. }
  15025. 8006a10: bf00 nop
  15026. 8006a12: 3714 adds r7, #20
  15027. 8006a14: 46bd mov sp, r7
  15028. 8006a16: f85d 7b04 ldr.w r7, [sp], #4
  15029. 8006a1a: 4770 bx lr
  15030. 8006a1c: 3ffeffc0 .word 0x3ffeffc0
  15031. 08006a20 <LL_ADC_IsCalibrationOnGoing>:
  15032. {
  15033. 8006a20: b480 push {r7}
  15034. 8006a22: b083 sub sp, #12
  15035. 8006a24: af00 add r7, sp, #0
  15036. 8006a26: 6078 str r0, [r7, #4]
  15037. return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL);
  15038. 8006a28: 687b ldr r3, [r7, #4]
  15039. 8006a2a: 689b ldr r3, [r3, #8]
  15040. 8006a2c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  15041. 8006a30: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  15042. 8006a34: d101 bne.n 8006a3a <LL_ADC_IsCalibrationOnGoing+0x1a>
  15043. 8006a36: 2301 movs r3, #1
  15044. 8006a38: e000 b.n 8006a3c <LL_ADC_IsCalibrationOnGoing+0x1c>
  15045. 8006a3a: 2300 movs r3, #0
  15046. }
  15047. 8006a3c: 4618 mov r0, r3
  15048. 8006a3e: 370c adds r7, #12
  15049. 8006a40: 46bd mov sp, r7
  15050. 8006a42: f85d 7b04 ldr.w r7, [sp], #4
  15051. 8006a46: 4770 bx lr
  15052. 08006a48 <LL_ADC_REG_IsConversionOngoing>:
  15053. {
  15054. 8006a48: b480 push {r7}
  15055. 8006a4a: b083 sub sp, #12
  15056. 8006a4c: af00 add r7, sp, #0
  15057. 8006a4e: 6078 str r0, [r7, #4]
  15058. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  15059. 8006a50: 687b ldr r3, [r7, #4]
  15060. 8006a52: 689b ldr r3, [r3, #8]
  15061. 8006a54: f003 0304 and.w r3, r3, #4
  15062. 8006a58: 2b04 cmp r3, #4
  15063. 8006a5a: d101 bne.n 8006a60 <LL_ADC_REG_IsConversionOngoing+0x18>
  15064. 8006a5c: 2301 movs r3, #1
  15065. 8006a5e: e000 b.n 8006a62 <LL_ADC_REG_IsConversionOngoing+0x1a>
  15066. 8006a60: 2300 movs r3, #0
  15067. }
  15068. 8006a62: 4618 mov r0, r3
  15069. 8006a64: 370c adds r7, #12
  15070. 8006a66: 46bd mov sp, r7
  15071. 8006a68: f85d 7b04 ldr.w r7, [sp], #4
  15072. 8006a6c: 4770 bx lr
  15073. ...
  15074. 08006a70 <HAL_ADCEx_Calibration_Start>:
  15075. * @arg @ref ADC_SINGLE_ENDED Channel in mode input single ended
  15076. * @arg @ref ADC_DIFFERENTIAL_ENDED Channel in mode input differential ended
  15077. * @retval HAL status
  15078. */
  15079. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t CalibrationMode, uint32_t SingleDiff)
  15080. {
  15081. 8006a70: b580 push {r7, lr}
  15082. 8006a72: b086 sub sp, #24
  15083. 8006a74: af00 add r7, sp, #0
  15084. 8006a76: 60f8 str r0, [r7, #12]
  15085. 8006a78: 60b9 str r1, [r7, #8]
  15086. 8006a7a: 607a str r2, [r7, #4]
  15087. HAL_StatusTypeDef tmp_hal_status;
  15088. __IO uint32_t wait_loop_index = 0UL;
  15089. 8006a7c: 2300 movs r3, #0
  15090. 8006a7e: 613b str r3, [r7, #16]
  15091. /* Check the parameters */
  15092. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  15093. assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
  15094. /* Process locked */
  15095. __HAL_LOCK(hadc);
  15096. 8006a80: 68fb ldr r3, [r7, #12]
  15097. 8006a82: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  15098. 8006a86: 2b01 cmp r3, #1
  15099. 8006a88: d101 bne.n 8006a8e <HAL_ADCEx_Calibration_Start+0x1e>
  15100. 8006a8a: 2302 movs r3, #2
  15101. 8006a8c: e04c b.n 8006b28 <HAL_ADCEx_Calibration_Start+0xb8>
  15102. 8006a8e: 68fb ldr r3, [r7, #12]
  15103. 8006a90: 2201 movs r2, #1
  15104. 8006a92: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15105. /* Calibration prerequisite: ADC must be disabled. */
  15106. /* Disable the ADC (if not already disabled) */
  15107. tmp_hal_status = ADC_Disable(hadc);
  15108. 8006a96: 68f8 ldr r0, [r7, #12]
  15109. 8006a98: f7ff fd90 bl 80065bc <ADC_Disable>
  15110. 8006a9c: 4603 mov r3, r0
  15111. 8006a9e: 75fb strb r3, [r7, #23]
  15112. /* Check if ADC is effectively disabled */
  15113. if (tmp_hal_status == HAL_OK)
  15114. 8006aa0: 7dfb ldrb r3, [r7, #23]
  15115. 8006aa2: 2b00 cmp r3, #0
  15116. 8006aa4: d135 bne.n 8006b12 <HAL_ADCEx_Calibration_Start+0xa2>
  15117. {
  15118. /* Set ADC state */
  15119. ADC_STATE_CLR_SET(hadc->State,
  15120. 8006aa6: 68fb ldr r3, [r7, #12]
  15121. 8006aa8: 6d5a ldr r2, [r3, #84] @ 0x54
  15122. 8006aaa: 4b21 ldr r3, [pc, #132] @ (8006b30 <HAL_ADCEx_Calibration_Start+0xc0>)
  15123. 8006aac: 4013 ands r3, r2
  15124. 8006aae: f043 0202 orr.w r2, r3, #2
  15125. 8006ab2: 68fb ldr r3, [r7, #12]
  15126. 8006ab4: 655a str r2, [r3, #84] @ 0x54
  15127. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  15128. HAL_ADC_STATE_BUSY_INTERNAL);
  15129. /* Start ADC calibration in mode single-ended or differential */
  15130. LL_ADC_StartCalibration(hadc->Instance, CalibrationMode, SingleDiff);
  15131. 8006ab6: 68fb ldr r3, [r7, #12]
  15132. 8006ab8: 681b ldr r3, [r3, #0]
  15133. 8006aba: 687a ldr r2, [r7, #4]
  15134. 8006abc: 68b9 ldr r1, [r7, #8]
  15135. 8006abe: 4618 mov r0, r3
  15136. 8006ac0: f7ff ff90 bl 80069e4 <LL_ADC_StartCalibration>
  15137. /* Wait for calibration completion */
  15138. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  15139. 8006ac4: e014 b.n 8006af0 <HAL_ADCEx_Calibration_Start+0x80>
  15140. {
  15141. wait_loop_index++;
  15142. 8006ac6: 693b ldr r3, [r7, #16]
  15143. 8006ac8: 3301 adds r3, #1
  15144. 8006aca: 613b str r3, [r7, #16]
  15145. if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT)
  15146. 8006acc: 693b ldr r3, [r7, #16]
  15147. 8006ace: 4a19 ldr r2, [pc, #100] @ (8006b34 <HAL_ADCEx_Calibration_Start+0xc4>)
  15148. 8006ad0: 4293 cmp r3, r2
  15149. 8006ad2: d30d bcc.n 8006af0 <HAL_ADCEx_Calibration_Start+0x80>
  15150. {
  15151. /* Update ADC state machine to error */
  15152. ADC_STATE_CLR_SET(hadc->State,
  15153. 8006ad4: 68fb ldr r3, [r7, #12]
  15154. 8006ad6: 6d5b ldr r3, [r3, #84] @ 0x54
  15155. 8006ad8: f023 0312 bic.w r3, r3, #18
  15156. 8006adc: f043 0210 orr.w r2, r3, #16
  15157. 8006ae0: 68fb ldr r3, [r7, #12]
  15158. 8006ae2: 655a str r2, [r3, #84] @ 0x54
  15159. HAL_ADC_STATE_BUSY_INTERNAL,
  15160. HAL_ADC_STATE_ERROR_INTERNAL);
  15161. /* Process unlocked */
  15162. __HAL_UNLOCK(hadc);
  15163. 8006ae4: 68fb ldr r3, [r7, #12]
  15164. 8006ae6: 2200 movs r2, #0
  15165. 8006ae8: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15166. return HAL_ERROR;
  15167. 8006aec: 2301 movs r3, #1
  15168. 8006aee: e01b b.n 8006b28 <HAL_ADCEx_Calibration_Start+0xb8>
  15169. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  15170. 8006af0: 68fb ldr r3, [r7, #12]
  15171. 8006af2: 681b ldr r3, [r3, #0]
  15172. 8006af4: 4618 mov r0, r3
  15173. 8006af6: f7ff ff93 bl 8006a20 <LL_ADC_IsCalibrationOnGoing>
  15174. 8006afa: 4603 mov r3, r0
  15175. 8006afc: 2b00 cmp r3, #0
  15176. 8006afe: d1e2 bne.n 8006ac6 <HAL_ADCEx_Calibration_Start+0x56>
  15177. }
  15178. }
  15179. /* Set ADC state */
  15180. ADC_STATE_CLR_SET(hadc->State,
  15181. 8006b00: 68fb ldr r3, [r7, #12]
  15182. 8006b02: 6d5b ldr r3, [r3, #84] @ 0x54
  15183. 8006b04: f023 0303 bic.w r3, r3, #3
  15184. 8006b08: f043 0201 orr.w r2, r3, #1
  15185. 8006b0c: 68fb ldr r3, [r7, #12]
  15186. 8006b0e: 655a str r2, [r3, #84] @ 0x54
  15187. 8006b10: e005 b.n 8006b1e <HAL_ADCEx_Calibration_Start+0xae>
  15188. HAL_ADC_STATE_BUSY_INTERNAL,
  15189. HAL_ADC_STATE_READY);
  15190. }
  15191. else
  15192. {
  15193. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15194. 8006b12: 68fb ldr r3, [r7, #12]
  15195. 8006b14: 6d5b ldr r3, [r3, #84] @ 0x54
  15196. 8006b16: f043 0210 orr.w r2, r3, #16
  15197. 8006b1a: 68fb ldr r3, [r7, #12]
  15198. 8006b1c: 655a str r2, [r3, #84] @ 0x54
  15199. /* Note: No need to update variable "tmp_hal_status" here: already set */
  15200. /* to state "HAL_ERROR" by function disabling the ADC. */
  15201. }
  15202. /* Process unlocked */
  15203. __HAL_UNLOCK(hadc);
  15204. 8006b1e: 68fb ldr r3, [r7, #12]
  15205. 8006b20: 2200 movs r2, #0
  15206. 8006b22: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15207. /* Return function status */
  15208. return tmp_hal_status;
  15209. 8006b26: 7dfb ldrb r3, [r7, #23]
  15210. }
  15211. 8006b28: 4618 mov r0, r3
  15212. 8006b2a: 3718 adds r7, #24
  15213. 8006b2c: 46bd mov sp, r7
  15214. 8006b2e: bd80 pop {r7, pc}
  15215. 8006b30: ffffeefd .word 0xffffeefd
  15216. 8006b34: 25c3f800 .word 0x25c3f800
  15217. 08006b38 <HAL_ADCEx_MultiModeConfigChannel>:
  15218. * @param hadc Master ADC handle
  15219. * @param multimode Structure of ADC multimode configuration
  15220. * @retval HAL status
  15221. */
  15222. HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode)
  15223. {
  15224. 8006b38: b590 push {r4, r7, lr}
  15225. 8006b3a: b09f sub sp, #124 @ 0x7c
  15226. 8006b3c: af00 add r7, sp, #0
  15227. 8006b3e: 6078 str r0, [r7, #4]
  15228. 8006b40: 6039 str r1, [r7, #0]
  15229. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  15230. 8006b42: 2300 movs r3, #0
  15231. 8006b44: f887 3077 strb.w r3, [r7, #119] @ 0x77
  15232. assert_param(IS_ADC_DUAL_DATA_MODE(multimode->DualModeData));
  15233. assert_param(IS_ADC_SAMPLING_DELAY(multimode->TwoSamplingDelay));
  15234. }
  15235. /* Process locked */
  15236. __HAL_LOCK(hadc);
  15237. 8006b48: 687b ldr r3, [r7, #4]
  15238. 8006b4a: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  15239. 8006b4e: 2b01 cmp r3, #1
  15240. 8006b50: d101 bne.n 8006b56 <HAL_ADCEx_MultiModeConfigChannel+0x1e>
  15241. 8006b52: 2302 movs r3, #2
  15242. 8006b54: e0be b.n 8006cd4 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  15243. 8006b56: 687b ldr r3, [r7, #4]
  15244. 8006b58: 2201 movs r2, #1
  15245. 8006b5a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15246. tmphadcSlave.State = HAL_ADC_STATE_RESET;
  15247. 8006b5e: 2300 movs r3, #0
  15248. 8006b60: 65fb str r3, [r7, #92] @ 0x5c
  15249. tmphadcSlave.ErrorCode = HAL_ADC_ERROR_NONE;
  15250. 8006b62: 2300 movs r3, #0
  15251. 8006b64: 663b str r3, [r7, #96] @ 0x60
  15252. ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
  15253. 8006b66: 687b ldr r3, [r7, #4]
  15254. 8006b68: 681b ldr r3, [r3, #0]
  15255. 8006b6a: 4a5c ldr r2, [pc, #368] @ (8006cdc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15256. 8006b6c: 4293 cmp r3, r2
  15257. 8006b6e: d102 bne.n 8006b76 <HAL_ADCEx_MultiModeConfigChannel+0x3e>
  15258. 8006b70: 4b5b ldr r3, [pc, #364] @ (8006ce0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15259. 8006b72: 60bb str r3, [r7, #8]
  15260. 8006b74: e001 b.n 8006b7a <HAL_ADCEx_MultiModeConfigChannel+0x42>
  15261. 8006b76: 2300 movs r3, #0
  15262. 8006b78: 60bb str r3, [r7, #8]
  15263. if (tmphadcSlave.Instance == NULL)
  15264. 8006b7a: 68bb ldr r3, [r7, #8]
  15265. 8006b7c: 2b00 cmp r3, #0
  15266. 8006b7e: d10b bne.n 8006b98 <HAL_ADCEx_MultiModeConfigChannel+0x60>
  15267. {
  15268. /* Update ADC state machine to error */
  15269. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15270. 8006b80: 687b ldr r3, [r7, #4]
  15271. 8006b82: 6d5b ldr r3, [r3, #84] @ 0x54
  15272. 8006b84: f043 0220 orr.w r2, r3, #32
  15273. 8006b88: 687b ldr r3, [r7, #4]
  15274. 8006b8a: 655a str r2, [r3, #84] @ 0x54
  15275. /* Process unlocked */
  15276. __HAL_UNLOCK(hadc);
  15277. 8006b8c: 687b ldr r3, [r7, #4]
  15278. 8006b8e: 2200 movs r2, #0
  15279. 8006b90: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15280. return HAL_ERROR;
  15281. 8006b94: 2301 movs r3, #1
  15282. 8006b96: e09d b.n 8006cd4 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  15283. /* Parameters update conditioned to ADC state: */
  15284. /* Parameters that can be updated when ADC is disabled or enabled without */
  15285. /* conversion on going on regular group: */
  15286. /* - Multimode DATA Format configuration */
  15287. tmphadcSlave_conversion_on_going = LL_ADC_REG_IsConversionOngoing((&tmphadcSlave)->Instance);
  15288. 8006b98: 68bb ldr r3, [r7, #8]
  15289. 8006b9a: 4618 mov r0, r3
  15290. 8006b9c: f7ff ff54 bl 8006a48 <LL_ADC_REG_IsConversionOngoing>
  15291. 8006ba0: 6738 str r0, [r7, #112] @ 0x70
  15292. if ((LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  15293. 8006ba2: 687b ldr r3, [r7, #4]
  15294. 8006ba4: 681b ldr r3, [r3, #0]
  15295. 8006ba6: 4618 mov r0, r3
  15296. 8006ba8: f7ff ff4e bl 8006a48 <LL_ADC_REG_IsConversionOngoing>
  15297. 8006bac: 4603 mov r3, r0
  15298. 8006bae: 2b00 cmp r3, #0
  15299. 8006bb0: d17f bne.n 8006cb2 <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  15300. && (tmphadcSlave_conversion_on_going == 0UL))
  15301. 8006bb2: 6f3b ldr r3, [r7, #112] @ 0x70
  15302. 8006bb4: 2b00 cmp r3, #0
  15303. 8006bb6: d17c bne.n 8006cb2 <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  15304. {
  15305. /* Pointer to the common control register */
  15306. tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance);
  15307. 8006bb8: 687b ldr r3, [r7, #4]
  15308. 8006bba: 681b ldr r3, [r3, #0]
  15309. 8006bbc: 4a47 ldr r2, [pc, #284] @ (8006cdc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15310. 8006bbe: 4293 cmp r3, r2
  15311. 8006bc0: d004 beq.n 8006bcc <HAL_ADCEx_MultiModeConfigChannel+0x94>
  15312. 8006bc2: 687b ldr r3, [r7, #4]
  15313. 8006bc4: 681b ldr r3, [r3, #0]
  15314. 8006bc6: 4a46 ldr r2, [pc, #280] @ (8006ce0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15315. 8006bc8: 4293 cmp r3, r2
  15316. 8006bca: d101 bne.n 8006bd0 <HAL_ADCEx_MultiModeConfigChannel+0x98>
  15317. 8006bcc: 4b45 ldr r3, [pc, #276] @ (8006ce4 <HAL_ADCEx_MultiModeConfigChannel+0x1ac>)
  15318. 8006bce: e000 b.n 8006bd2 <HAL_ADCEx_MultiModeConfigChannel+0x9a>
  15319. 8006bd0: 4b45 ldr r3, [pc, #276] @ (8006ce8 <HAL_ADCEx_MultiModeConfigChannel+0x1b0>)
  15320. 8006bd2: 66fb str r3, [r7, #108] @ 0x6c
  15321. /* If multimode is selected, configure all multimode parameters. */
  15322. /* Otherwise, reset multimode parameters (can be used in case of */
  15323. /* transition from multimode to independent mode). */
  15324. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15325. 8006bd4: 683b ldr r3, [r7, #0]
  15326. 8006bd6: 681b ldr r3, [r3, #0]
  15327. 8006bd8: 2b00 cmp r3, #0
  15328. 8006bda: d039 beq.n 8006c50 <HAL_ADCEx_MultiModeConfigChannel+0x118>
  15329. {
  15330. MODIFY_REG(tmpADC_Common->CCR, ADC_CCR_DAMDF, multimode->DualModeData);
  15331. 8006bdc: 6efb ldr r3, [r7, #108] @ 0x6c
  15332. 8006bde: 689b ldr r3, [r3, #8]
  15333. 8006be0: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  15334. 8006be4: 683b ldr r3, [r7, #0]
  15335. 8006be6: 685b ldr r3, [r3, #4]
  15336. 8006be8: 431a orrs r2, r3
  15337. 8006bea: 6efb ldr r3, [r7, #108] @ 0x6c
  15338. 8006bec: 609a str r2, [r3, #8]
  15339. /* from 1 to 8 clock cycles for 12 bits */
  15340. /* from 1 to 6 clock cycles for 10 and 8 bits */
  15341. /* If a higher delay is selected, it will be clipped to maximum delay */
  15342. /* range */
  15343. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15344. 8006bee: 687b ldr r3, [r7, #4]
  15345. 8006bf0: 681b ldr r3, [r3, #0]
  15346. 8006bf2: 4a3a ldr r2, [pc, #232] @ (8006cdc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15347. 8006bf4: 4293 cmp r3, r2
  15348. 8006bf6: d004 beq.n 8006c02 <HAL_ADCEx_MultiModeConfigChannel+0xca>
  15349. 8006bf8: 687b ldr r3, [r7, #4]
  15350. 8006bfa: 681b ldr r3, [r3, #0]
  15351. 8006bfc: 4a38 ldr r2, [pc, #224] @ (8006ce0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15352. 8006bfe: 4293 cmp r3, r2
  15353. 8006c00: d10e bne.n 8006c20 <HAL_ADCEx_MultiModeConfigChannel+0xe8>
  15354. 8006c02: 4836 ldr r0, [pc, #216] @ (8006cdc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15355. 8006c04: f7ff feda bl 80069bc <LL_ADC_IsEnabled>
  15356. 8006c08: 4604 mov r4, r0
  15357. 8006c0a: 4835 ldr r0, [pc, #212] @ (8006ce0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15358. 8006c0c: f7ff fed6 bl 80069bc <LL_ADC_IsEnabled>
  15359. 8006c10: 4603 mov r3, r0
  15360. 8006c12: 4323 orrs r3, r4
  15361. 8006c14: 2b00 cmp r3, #0
  15362. 8006c16: bf0c ite eq
  15363. 8006c18: 2301 moveq r3, #1
  15364. 8006c1a: 2300 movne r3, #0
  15365. 8006c1c: b2db uxtb r3, r3
  15366. 8006c1e: e008 b.n 8006c32 <HAL_ADCEx_MultiModeConfigChannel+0xfa>
  15367. 8006c20: 4832 ldr r0, [pc, #200] @ (8006cec <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  15368. 8006c22: f7ff fecb bl 80069bc <LL_ADC_IsEnabled>
  15369. 8006c26: 4603 mov r3, r0
  15370. 8006c28: 2b00 cmp r3, #0
  15371. 8006c2a: bf0c ite eq
  15372. 8006c2c: 2301 moveq r3, #1
  15373. 8006c2e: 2300 movne r3, #0
  15374. 8006c30: b2db uxtb r3, r3
  15375. 8006c32: 2b00 cmp r3, #0
  15376. 8006c34: d047 beq.n 8006cc6 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15377. {
  15378. MODIFY_REG(tmpADC_Common->CCR,
  15379. 8006c36: 6efb ldr r3, [r7, #108] @ 0x6c
  15380. 8006c38: 689a ldr r2, [r3, #8]
  15381. 8006c3a: 4b2d ldr r3, [pc, #180] @ (8006cf0 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  15382. 8006c3c: 4013 ands r3, r2
  15383. 8006c3e: 683a ldr r2, [r7, #0]
  15384. 8006c40: 6811 ldr r1, [r2, #0]
  15385. 8006c42: 683a ldr r2, [r7, #0]
  15386. 8006c44: 6892 ldr r2, [r2, #8]
  15387. 8006c46: 430a orrs r2, r1
  15388. 8006c48: 431a orrs r2, r3
  15389. 8006c4a: 6efb ldr r3, [r7, #108] @ 0x6c
  15390. 8006c4c: 609a str r2, [r3, #8]
  15391. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15392. 8006c4e: e03a b.n 8006cc6 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15393. );
  15394. }
  15395. }
  15396. else /* ADC_MODE_INDEPENDENT */
  15397. {
  15398. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DAMDF);
  15399. 8006c50: 6efb ldr r3, [r7, #108] @ 0x6c
  15400. 8006c52: 689b ldr r3, [r3, #8]
  15401. 8006c54: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  15402. 8006c58: 6efb ldr r3, [r7, #108] @ 0x6c
  15403. 8006c5a: 609a str r2, [r3, #8]
  15404. /* Parameters that can be updated only when ADC is disabled: */
  15405. /* - Multimode mode selection */
  15406. /* - Multimode delay */
  15407. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15408. 8006c5c: 687b ldr r3, [r7, #4]
  15409. 8006c5e: 681b ldr r3, [r3, #0]
  15410. 8006c60: 4a1e ldr r2, [pc, #120] @ (8006cdc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15411. 8006c62: 4293 cmp r3, r2
  15412. 8006c64: d004 beq.n 8006c70 <HAL_ADCEx_MultiModeConfigChannel+0x138>
  15413. 8006c66: 687b ldr r3, [r7, #4]
  15414. 8006c68: 681b ldr r3, [r3, #0]
  15415. 8006c6a: 4a1d ldr r2, [pc, #116] @ (8006ce0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15416. 8006c6c: 4293 cmp r3, r2
  15417. 8006c6e: d10e bne.n 8006c8e <HAL_ADCEx_MultiModeConfigChannel+0x156>
  15418. 8006c70: 481a ldr r0, [pc, #104] @ (8006cdc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15419. 8006c72: f7ff fea3 bl 80069bc <LL_ADC_IsEnabled>
  15420. 8006c76: 4604 mov r4, r0
  15421. 8006c78: 4819 ldr r0, [pc, #100] @ (8006ce0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15422. 8006c7a: f7ff fe9f bl 80069bc <LL_ADC_IsEnabled>
  15423. 8006c7e: 4603 mov r3, r0
  15424. 8006c80: 4323 orrs r3, r4
  15425. 8006c82: 2b00 cmp r3, #0
  15426. 8006c84: bf0c ite eq
  15427. 8006c86: 2301 moveq r3, #1
  15428. 8006c88: 2300 movne r3, #0
  15429. 8006c8a: b2db uxtb r3, r3
  15430. 8006c8c: e008 b.n 8006ca0 <HAL_ADCEx_MultiModeConfigChannel+0x168>
  15431. 8006c8e: 4817 ldr r0, [pc, #92] @ (8006cec <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  15432. 8006c90: f7ff fe94 bl 80069bc <LL_ADC_IsEnabled>
  15433. 8006c94: 4603 mov r3, r0
  15434. 8006c96: 2b00 cmp r3, #0
  15435. 8006c98: bf0c ite eq
  15436. 8006c9a: 2301 moveq r3, #1
  15437. 8006c9c: 2300 movne r3, #0
  15438. 8006c9e: b2db uxtb r3, r3
  15439. 8006ca0: 2b00 cmp r3, #0
  15440. 8006ca2: d010 beq.n 8006cc6 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15441. {
  15442. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DUAL | ADC_CCR_DELAY);
  15443. 8006ca4: 6efb ldr r3, [r7, #108] @ 0x6c
  15444. 8006ca6: 689a ldr r2, [r3, #8]
  15445. 8006ca8: 4b11 ldr r3, [pc, #68] @ (8006cf0 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  15446. 8006caa: 4013 ands r3, r2
  15447. 8006cac: 6efa ldr r2, [r7, #108] @ 0x6c
  15448. 8006cae: 6093 str r3, [r2, #8]
  15449. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15450. 8006cb0: e009 b.n 8006cc6 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15451. /* If one of the ADC sharing the same common group is enabled, no update */
  15452. /* could be done on neither of the multimode structure parameters. */
  15453. else
  15454. {
  15455. /* Update ADC state machine to error */
  15456. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15457. 8006cb2: 687b ldr r3, [r7, #4]
  15458. 8006cb4: 6d5b ldr r3, [r3, #84] @ 0x54
  15459. 8006cb6: f043 0220 orr.w r2, r3, #32
  15460. 8006cba: 687b ldr r3, [r7, #4]
  15461. 8006cbc: 655a str r2, [r3, #84] @ 0x54
  15462. tmp_hal_status = HAL_ERROR;
  15463. 8006cbe: 2301 movs r3, #1
  15464. 8006cc0: f887 3077 strb.w r3, [r7, #119] @ 0x77
  15465. 8006cc4: e000 b.n 8006cc8 <HAL_ADCEx_MultiModeConfigChannel+0x190>
  15466. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15467. 8006cc6: bf00 nop
  15468. }
  15469. /* Process unlocked */
  15470. __HAL_UNLOCK(hadc);
  15471. 8006cc8: 687b ldr r3, [r7, #4]
  15472. 8006cca: 2200 movs r2, #0
  15473. 8006ccc: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15474. /* Return function status */
  15475. return tmp_hal_status;
  15476. 8006cd0: f897 3077 ldrb.w r3, [r7, #119] @ 0x77
  15477. }
  15478. 8006cd4: 4618 mov r0, r3
  15479. 8006cd6: 377c adds r7, #124 @ 0x7c
  15480. 8006cd8: 46bd mov sp, r7
  15481. 8006cda: bd90 pop {r4, r7, pc}
  15482. 8006cdc: 40022000 .word 0x40022000
  15483. 8006ce0: 40022100 .word 0x40022100
  15484. 8006ce4: 40022300 .word 0x40022300
  15485. 8006ce8: 58026300 .word 0x58026300
  15486. 8006cec: 58026000 .word 0x58026000
  15487. 8006cf0: fffff0e0 .word 0xfffff0e0
  15488. 08006cf4 <HAL_COMP_Init>:
  15489. * To unlock the configuration, perform a system reset.
  15490. * @param hcomp COMP handle
  15491. * @retval HAL status
  15492. */
  15493. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  15494. {
  15495. 8006cf4: b580 push {r7, lr}
  15496. 8006cf6: b088 sub sp, #32
  15497. 8006cf8: af00 add r7, sp, #0
  15498. 8006cfa: 6078 str r0, [r7, #4]
  15499. uint32_t tmp_csr ;
  15500. uint32_t exti_line ;
  15501. uint32_t comp_voltage_scaler_initialized; /* Value "0" is comparator voltage scaler is not initialized */
  15502. __IO uint32_t wait_loop_index = 0UL;
  15503. 8006cfc: 2300 movs r3, #0
  15504. 8006cfe: 60fb str r3, [r7, #12]
  15505. HAL_StatusTypeDef status = HAL_OK;
  15506. 8006d00: 2300 movs r3, #0
  15507. 8006d02: 77fb strb r3, [r7, #31]
  15508. /* Check the COMP handle allocation and lock status */
  15509. if(hcomp == NULL)
  15510. 8006d04: 687b ldr r3, [r7, #4]
  15511. 8006d06: 2b00 cmp r3, #0
  15512. 8006d08: d102 bne.n 8006d10 <HAL_COMP_Init+0x1c>
  15513. {
  15514. status = HAL_ERROR;
  15515. 8006d0a: 2301 movs r3, #1
  15516. 8006d0c: 77fb strb r3, [r7, #31]
  15517. 8006d0e: e10e b.n 8006f2e <HAL_COMP_Init+0x23a>
  15518. }
  15519. else if(__HAL_COMP_IS_LOCKED(hcomp))
  15520. 8006d10: 687b ldr r3, [r7, #4]
  15521. 8006d12: 681b ldr r3, [r3, #0]
  15522. 8006d14: 681b ldr r3, [r3, #0]
  15523. 8006d16: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  15524. 8006d1a: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  15525. 8006d1e: d102 bne.n 8006d26 <HAL_COMP_Init+0x32>
  15526. {
  15527. status = HAL_ERROR;
  15528. 8006d20: 2301 movs r3, #1
  15529. 8006d22: 77fb strb r3, [r7, #31]
  15530. 8006d24: e103 b.n 8006f2e <HAL_COMP_Init+0x23a>
  15531. assert_param(IS_COMP_HYSTERESIS(hcomp->Init.Hysteresis));
  15532. assert_param(IS_COMP_BLANKINGSRCE(hcomp->Init.BlankingSrce));
  15533. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  15534. assert_param(IS_COMP_WINDOWMODE(hcomp->Init.WindowMode));
  15535. if(hcomp->State == HAL_COMP_STATE_RESET)
  15536. 8006d26: 687b ldr r3, [r7, #4]
  15537. 8006d28: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  15538. 8006d2c: b2db uxtb r3, r3
  15539. 8006d2e: 2b00 cmp r3, #0
  15540. 8006d30: d109 bne.n 8006d46 <HAL_COMP_Init+0x52>
  15541. {
  15542. /* Allocate lock resource and initialize it */
  15543. hcomp->Lock = HAL_UNLOCKED;
  15544. 8006d32: 687b ldr r3, [r7, #4]
  15545. 8006d34: 2200 movs r2, #0
  15546. 8006d36: f883 2024 strb.w r2, [r3, #36] @ 0x24
  15547. /* Set COMP error code to none */
  15548. COMP_CLEAR_ERRORCODE(hcomp);
  15549. 8006d3a: 687b ldr r3, [r7, #4]
  15550. 8006d3c: 2200 movs r2, #0
  15551. 8006d3e: 629a str r2, [r3, #40] @ 0x28
  15552. /* Init the low level hardware */
  15553. hcomp->MspInitCallback(hcomp);
  15554. #else
  15555. /* Init the low level hardware */
  15556. HAL_COMP_MspInit(hcomp);
  15557. 8006d40: 6878 ldr r0, [r7, #4]
  15558. 8006d42: f7fc fd4b bl 80037dc <HAL_COMP_MspInit>
  15559. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  15560. }
  15561. /* Memorize voltage scaler state before initialization */
  15562. comp_voltage_scaler_initialized = READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN);
  15563. 8006d46: 687b ldr r3, [r7, #4]
  15564. 8006d48: 681b ldr r3, [r3, #0]
  15565. 8006d4a: 681b ldr r3, [r3, #0]
  15566. 8006d4c: f003 0304 and.w r3, r3, #4
  15567. 8006d50: 61bb str r3, [r7, #24]
  15568. /* Set BLANKING bits according to hcomp->Init.BlankingSrce value */
  15569. /* Set HYST bits according to hcomp->Init.Hysteresis value */
  15570. /* Set POLARITY bit according to hcomp->Init.OutputPol value */
  15571. /* Set POWERMODE bits according to hcomp->Init.Mode value */
  15572. tmp_csr = (hcomp->Init.InvertingInput | \
  15573. 8006d52: 687b ldr r3, [r7, #4]
  15574. 8006d54: 691a ldr r2, [r3, #16]
  15575. hcomp->Init.NonInvertingInput | \
  15576. 8006d56: 687b ldr r3, [r7, #4]
  15577. 8006d58: 68db ldr r3, [r3, #12]
  15578. tmp_csr = (hcomp->Init.InvertingInput | \
  15579. 8006d5a: 431a orrs r2, r3
  15580. hcomp->Init.BlankingSrce | \
  15581. 8006d5c: 687b ldr r3, [r7, #4]
  15582. 8006d5e: 69db ldr r3, [r3, #28]
  15583. hcomp->Init.NonInvertingInput | \
  15584. 8006d60: 431a orrs r2, r3
  15585. hcomp->Init.Hysteresis | \
  15586. 8006d62: 687b ldr r3, [r7, #4]
  15587. 8006d64: 695b ldr r3, [r3, #20]
  15588. hcomp->Init.BlankingSrce | \
  15589. 8006d66: 431a orrs r2, r3
  15590. hcomp->Init.OutputPol | \
  15591. 8006d68: 687b ldr r3, [r7, #4]
  15592. 8006d6a: 699b ldr r3, [r3, #24]
  15593. hcomp->Init.Hysteresis | \
  15594. 8006d6c: 431a orrs r2, r3
  15595. hcomp->Init.Mode );
  15596. 8006d6e: 687b ldr r3, [r7, #4]
  15597. 8006d70: 689b ldr r3, [r3, #8]
  15598. tmp_csr = (hcomp->Init.InvertingInput | \
  15599. 8006d72: 4313 orrs r3, r2
  15600. 8006d74: 617b str r3, [r7, #20]
  15601. COMP_CFGRx_INP2SEL | COMP_CFGRx_WINMODE | COMP_CFGRx_POLARITY | COMP_CFGRx_HYST |
  15602. COMP_CFGRx_BLANKING | COMP_CFGRx_BRGEN | COMP_CFGRx_SCALEN,
  15603. tmp_csr
  15604. );
  15605. #else
  15606. MODIFY_REG(hcomp->Instance->CFGR,
  15607. 8006d76: 687b ldr r3, [r7, #4]
  15608. 8006d78: 681b ldr r3, [r3, #0]
  15609. 8006d7a: 681a ldr r2, [r3, #0]
  15610. 8006d7c: 4b6e ldr r3, [pc, #440] @ (8006f38 <HAL_COMP_Init+0x244>)
  15611. 8006d7e: 4013 ands r3, r2
  15612. 8006d80: 687a ldr r2, [r7, #4]
  15613. 8006d82: 6812 ldr r2, [r2, #0]
  15614. 8006d84: 6979 ldr r1, [r7, #20]
  15615. 8006d86: 430b orrs r3, r1
  15616. 8006d88: 6013 str r3, [r2, #0]
  15617. #endif
  15618. /* Set window mode */
  15619. /* Note: Window mode bit is located into 1 out of the 2 pairs of COMP */
  15620. /* instances. Therefore, this function can update another COMP */
  15621. /* instance that the one currently selected. */
  15622. if(hcomp->Init.WindowMode == COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON)
  15623. 8006d8a: 687b ldr r3, [r7, #4]
  15624. 8006d8c: 685b ldr r3, [r3, #4]
  15625. 8006d8e: 2b10 cmp r3, #16
  15626. 8006d90: d108 bne.n 8006da4 <HAL_COMP_Init+0xb0>
  15627. {
  15628. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  15629. 8006d92: 687b ldr r3, [r7, #4]
  15630. 8006d94: 681b ldr r3, [r3, #0]
  15631. 8006d96: 681a ldr r2, [r3, #0]
  15632. 8006d98: 687b ldr r3, [r7, #4]
  15633. 8006d9a: 681b ldr r3, [r3, #0]
  15634. 8006d9c: f042 0210 orr.w r2, r2, #16
  15635. 8006da0: 601a str r2, [r3, #0]
  15636. 8006da2: e007 b.n 8006db4 <HAL_COMP_Init+0xc0>
  15637. }
  15638. else
  15639. {
  15640. CLEAR_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  15641. 8006da4: 687b ldr r3, [r7, #4]
  15642. 8006da6: 681b ldr r3, [r3, #0]
  15643. 8006da8: 681a ldr r2, [r3, #0]
  15644. 8006daa: 687b ldr r3, [r7, #4]
  15645. 8006dac: 681b ldr r3, [r3, #0]
  15646. 8006dae: f022 0210 bic.w r2, r2, #16
  15647. 8006db2: 601a str r2, [r3, #0]
  15648. }
  15649. /* Delay for COMP scaler bridge voltage stabilization */
  15650. /* Apply the delay if voltage scaler bridge is enabled for the first time */
  15651. if ((READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN) != 0UL) &&
  15652. 8006db4: 687b ldr r3, [r7, #4]
  15653. 8006db6: 681b ldr r3, [r3, #0]
  15654. 8006db8: 681b ldr r3, [r3, #0]
  15655. 8006dba: f003 0304 and.w r3, r3, #4
  15656. 8006dbe: 2b00 cmp r3, #0
  15657. 8006dc0: d016 beq.n 8006df0 <HAL_COMP_Init+0xfc>
  15658. 8006dc2: 69bb ldr r3, [r7, #24]
  15659. 8006dc4: 2b00 cmp r3, #0
  15660. 8006dc6: d013 beq.n 8006df0 <HAL_COMP_Init+0xfc>
  15661. {
  15662. /* Wait loop initialization and execution */
  15663. /* Note: Variable divided by 2 to compensate partially */
  15664. /* CPU processing cycles.*/
  15665. wait_loop_index = ((COMP_DELAY_VOLTAGE_SCALER_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  15666. 8006dc8: 4b5c ldr r3, [pc, #368] @ (8006f3c <HAL_COMP_Init+0x248>)
  15667. 8006dca: 681b ldr r3, [r3, #0]
  15668. 8006dcc: 099b lsrs r3, r3, #6
  15669. 8006dce: 4a5c ldr r2, [pc, #368] @ (8006f40 <HAL_COMP_Init+0x24c>)
  15670. 8006dd0: fba2 2303 umull r2, r3, r2, r3
  15671. 8006dd4: 099b lsrs r3, r3, #6
  15672. 8006dd6: 1c5a adds r2, r3, #1
  15673. 8006dd8: 4613 mov r3, r2
  15674. 8006dda: 009b lsls r3, r3, #2
  15675. 8006ddc: 4413 add r3, r2
  15676. 8006dde: 009b lsls r3, r3, #2
  15677. 8006de0: 60fb str r3, [r7, #12]
  15678. while(wait_loop_index != 0UL)
  15679. 8006de2: e002 b.n 8006dea <HAL_COMP_Init+0xf6>
  15680. {
  15681. wait_loop_index --;
  15682. 8006de4: 68fb ldr r3, [r7, #12]
  15683. 8006de6: 3b01 subs r3, #1
  15684. 8006de8: 60fb str r3, [r7, #12]
  15685. while(wait_loop_index != 0UL)
  15686. 8006dea: 68fb ldr r3, [r7, #12]
  15687. 8006dec: 2b00 cmp r3, #0
  15688. 8006dee: d1f9 bne.n 8006de4 <HAL_COMP_Init+0xf0>
  15689. }
  15690. }
  15691. /* Get the EXTI line corresponding to the selected COMP instance */
  15692. exti_line = COMP_GET_EXTI_LINE(hcomp->Instance);
  15693. 8006df0: 687b ldr r3, [r7, #4]
  15694. 8006df2: 681b ldr r3, [r3, #0]
  15695. 8006df4: 4a53 ldr r2, [pc, #332] @ (8006f44 <HAL_COMP_Init+0x250>)
  15696. 8006df6: 4293 cmp r3, r2
  15697. 8006df8: d102 bne.n 8006e00 <HAL_COMP_Init+0x10c>
  15698. 8006dfa: f44f 1380 mov.w r3, #1048576 @ 0x100000
  15699. 8006dfe: e001 b.n 8006e04 <HAL_COMP_Init+0x110>
  15700. 8006e00: f44f 1300 mov.w r3, #2097152 @ 0x200000
  15701. 8006e04: 613b str r3, [r7, #16]
  15702. /* Manage EXTI settings */
  15703. if((hcomp->Init.TriggerMode & (COMP_EXTI_IT | COMP_EXTI_EVENT)) != 0UL)
  15704. 8006e06: 687b ldr r3, [r7, #4]
  15705. 8006e08: 6a1b ldr r3, [r3, #32]
  15706. 8006e0a: f003 0303 and.w r3, r3, #3
  15707. 8006e0e: 2b00 cmp r3, #0
  15708. 8006e10: d06d beq.n 8006eee <HAL_COMP_Init+0x1fa>
  15709. {
  15710. /* Configure EXTI rising edge */
  15711. if((hcomp->Init.TriggerMode & COMP_EXTI_RISING) != 0UL)
  15712. 8006e12: 687b ldr r3, [r7, #4]
  15713. 8006e14: 6a1b ldr r3, [r3, #32]
  15714. 8006e16: f003 0310 and.w r3, r3, #16
  15715. 8006e1a: 2b00 cmp r3, #0
  15716. 8006e1c: d008 beq.n 8006e30 <HAL_COMP_Init+0x13c>
  15717. {
  15718. SET_BIT(EXTI->RTSR1, exti_line);
  15719. 8006e1e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15720. 8006e22: 681a ldr r2, [r3, #0]
  15721. 8006e24: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15722. 8006e28: 693b ldr r3, [r7, #16]
  15723. 8006e2a: 4313 orrs r3, r2
  15724. 8006e2c: 600b str r3, [r1, #0]
  15725. 8006e2e: e008 b.n 8006e42 <HAL_COMP_Init+0x14e>
  15726. }
  15727. else
  15728. {
  15729. CLEAR_BIT(EXTI->RTSR1, exti_line);
  15730. 8006e30: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15731. 8006e34: 681a ldr r2, [r3, #0]
  15732. 8006e36: 693b ldr r3, [r7, #16]
  15733. 8006e38: 43db mvns r3, r3
  15734. 8006e3a: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15735. 8006e3e: 4013 ands r3, r2
  15736. 8006e40: 600b str r3, [r1, #0]
  15737. }
  15738. /* Configure EXTI falling edge */
  15739. if((hcomp->Init.TriggerMode & COMP_EXTI_FALLING) != 0UL)
  15740. 8006e42: 687b ldr r3, [r7, #4]
  15741. 8006e44: 6a1b ldr r3, [r3, #32]
  15742. 8006e46: f003 0320 and.w r3, r3, #32
  15743. 8006e4a: 2b00 cmp r3, #0
  15744. 8006e4c: d008 beq.n 8006e60 <HAL_COMP_Init+0x16c>
  15745. {
  15746. SET_BIT(EXTI->FTSR1, exti_line);
  15747. 8006e4e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15748. 8006e52: 685a ldr r2, [r3, #4]
  15749. 8006e54: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15750. 8006e58: 693b ldr r3, [r7, #16]
  15751. 8006e5a: 4313 orrs r3, r2
  15752. 8006e5c: 604b str r3, [r1, #4]
  15753. 8006e5e: e008 b.n 8006e72 <HAL_COMP_Init+0x17e>
  15754. }
  15755. else
  15756. {
  15757. CLEAR_BIT(EXTI->FTSR1, exti_line);
  15758. 8006e60: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15759. 8006e64: 685a ldr r2, [r3, #4]
  15760. 8006e66: 693b ldr r3, [r7, #16]
  15761. 8006e68: 43db mvns r3, r3
  15762. 8006e6a: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15763. 8006e6e: 4013 ands r3, r2
  15764. 8006e70: 604b str r3, [r1, #4]
  15765. }
  15766. #if !defined (CORE_CM4)
  15767. /* Clear COMP EXTI pending bit (if any) */
  15768. WRITE_REG(EXTI->PR1, exti_line);
  15769. 8006e72: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  15770. 8006e76: 693b ldr r3, [r7, #16]
  15771. 8006e78: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  15772. /* Configure EXTI event mode */
  15773. if((hcomp->Init.TriggerMode & COMP_EXTI_EVENT) != 0UL)
  15774. 8006e7c: 687b ldr r3, [r7, #4]
  15775. 8006e7e: 6a1b ldr r3, [r3, #32]
  15776. 8006e80: f003 0302 and.w r3, r3, #2
  15777. 8006e84: 2b00 cmp r3, #0
  15778. 8006e86: d00a beq.n 8006e9e <HAL_COMP_Init+0x1aa>
  15779. {
  15780. SET_BIT(EXTI->EMR1, exti_line);
  15781. 8006e88: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15782. 8006e8c: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  15783. 8006e90: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15784. 8006e94: 693b ldr r3, [r7, #16]
  15785. 8006e96: 4313 orrs r3, r2
  15786. 8006e98: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  15787. 8006e9c: e00a b.n 8006eb4 <HAL_COMP_Init+0x1c0>
  15788. }
  15789. else
  15790. {
  15791. CLEAR_BIT(EXTI->EMR1, exti_line);
  15792. 8006e9e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15793. 8006ea2: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  15794. 8006ea6: 693b ldr r3, [r7, #16]
  15795. 8006ea8: 43db mvns r3, r3
  15796. 8006eaa: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15797. 8006eae: 4013 ands r3, r2
  15798. 8006eb0: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  15799. }
  15800. /* Configure EXTI interrupt mode */
  15801. if((hcomp->Init.TriggerMode & COMP_EXTI_IT) != 0UL)
  15802. 8006eb4: 687b ldr r3, [r7, #4]
  15803. 8006eb6: 6a1b ldr r3, [r3, #32]
  15804. 8006eb8: f003 0301 and.w r3, r3, #1
  15805. 8006ebc: 2b00 cmp r3, #0
  15806. 8006ebe: d00a beq.n 8006ed6 <HAL_COMP_Init+0x1e2>
  15807. {
  15808. SET_BIT(EXTI->IMR1, exti_line);
  15809. 8006ec0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15810. 8006ec4: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  15811. 8006ec8: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15812. 8006ecc: 693b ldr r3, [r7, #16]
  15813. 8006ece: 4313 orrs r3, r2
  15814. 8006ed0: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  15815. 8006ed4: e021 b.n 8006f1a <HAL_COMP_Init+0x226>
  15816. }
  15817. else
  15818. {
  15819. CLEAR_BIT(EXTI->IMR1, exti_line);
  15820. 8006ed6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15821. 8006eda: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  15822. 8006ede: 693b ldr r3, [r7, #16]
  15823. 8006ee0: 43db mvns r3, r3
  15824. 8006ee2: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15825. 8006ee6: 4013 ands r3, r2
  15826. 8006ee8: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  15827. 8006eec: e015 b.n 8006f1a <HAL_COMP_Init+0x226>
  15828. }
  15829. }
  15830. else
  15831. {
  15832. /* Disable EXTI event mode */
  15833. CLEAR_BIT(EXTI->EMR1, exti_line);
  15834. 8006eee: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15835. 8006ef2: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  15836. 8006ef6: 693b ldr r3, [r7, #16]
  15837. 8006ef8: 43db mvns r3, r3
  15838. 8006efa: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15839. 8006efe: 4013 ands r3, r2
  15840. 8006f00: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  15841. /* Disable EXTI interrupt mode */
  15842. CLEAR_BIT(EXTI->IMR1, exti_line);
  15843. 8006f04: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15844. 8006f08: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  15845. 8006f0c: 693b ldr r3, [r7, #16]
  15846. 8006f0e: 43db mvns r3, r3
  15847. 8006f10: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15848. 8006f14: 4013 ands r3, r2
  15849. 8006f16: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  15850. }
  15851. #endif
  15852. /* Set HAL COMP handle state */
  15853. /* Note: Transition from state reset to state ready, */
  15854. /* otherwise (coming from state ready or busy) no state update. */
  15855. if (hcomp->State == HAL_COMP_STATE_RESET)
  15856. 8006f1a: 687b ldr r3, [r7, #4]
  15857. 8006f1c: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  15858. 8006f20: b2db uxtb r3, r3
  15859. 8006f22: 2b00 cmp r3, #0
  15860. 8006f24: d103 bne.n 8006f2e <HAL_COMP_Init+0x23a>
  15861. {
  15862. hcomp->State = HAL_COMP_STATE_READY;
  15863. 8006f26: 687b ldr r3, [r7, #4]
  15864. 8006f28: 2201 movs r2, #1
  15865. 8006f2a: f883 2025 strb.w r2, [r3, #37] @ 0x25
  15866. }
  15867. }
  15868. return status;
  15869. 8006f2e: 7ffb ldrb r3, [r7, #31]
  15870. }
  15871. 8006f30: 4618 mov r0, r3
  15872. 8006f32: 3720 adds r7, #32
  15873. 8006f34: 46bd mov sp, r7
  15874. 8006f36: bd80 pop {r7, pc}
  15875. 8006f38: f0e8cce1 .word 0xf0e8cce1
  15876. 8006f3c: 24000034 .word 0x24000034
  15877. 8006f40: 053e2d63 .word 0x053e2d63
  15878. 8006f44: 5800380c .word 0x5800380c
  15879. 08006f48 <HAL_COMP_Start>:
  15880. * @brief Start the comparator.
  15881. * @param hcomp COMP handle
  15882. * @retval HAL status
  15883. */
  15884. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  15885. {
  15886. 8006f48: b480 push {r7}
  15887. 8006f4a: b085 sub sp, #20
  15888. 8006f4c: af00 add r7, sp, #0
  15889. 8006f4e: 6078 str r0, [r7, #4]
  15890. __IO uint32_t wait_loop_index = 0UL;
  15891. 8006f50: 2300 movs r3, #0
  15892. 8006f52: 60bb str r3, [r7, #8]
  15893. HAL_StatusTypeDef status = HAL_OK;
  15894. 8006f54: 2300 movs r3, #0
  15895. 8006f56: 73fb strb r3, [r7, #15]
  15896. /* Check the COMP handle allocation and lock status */
  15897. if(hcomp == NULL)
  15898. 8006f58: 687b ldr r3, [r7, #4]
  15899. 8006f5a: 2b00 cmp r3, #0
  15900. 8006f5c: d102 bne.n 8006f64 <HAL_COMP_Start+0x1c>
  15901. {
  15902. status = HAL_ERROR;
  15903. 8006f5e: 2301 movs r3, #1
  15904. 8006f60: 73fb strb r3, [r7, #15]
  15905. 8006f62: e030 b.n 8006fc6 <HAL_COMP_Start+0x7e>
  15906. }
  15907. else if(__HAL_COMP_IS_LOCKED(hcomp))
  15908. 8006f64: 687b ldr r3, [r7, #4]
  15909. 8006f66: 681b ldr r3, [r3, #0]
  15910. 8006f68: 681b ldr r3, [r3, #0]
  15911. 8006f6a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  15912. 8006f6e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  15913. 8006f72: d102 bne.n 8006f7a <HAL_COMP_Start+0x32>
  15914. {
  15915. status = HAL_ERROR;
  15916. 8006f74: 2301 movs r3, #1
  15917. 8006f76: 73fb strb r3, [r7, #15]
  15918. 8006f78: e025 b.n 8006fc6 <HAL_COMP_Start+0x7e>
  15919. else
  15920. {
  15921. /* Check the parameter */
  15922. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  15923. if(hcomp->State == HAL_COMP_STATE_READY)
  15924. 8006f7a: 687b ldr r3, [r7, #4]
  15925. 8006f7c: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  15926. 8006f80: b2db uxtb r3, r3
  15927. 8006f82: 2b01 cmp r3, #1
  15928. 8006f84: d11d bne.n 8006fc2 <HAL_COMP_Start+0x7a>
  15929. {
  15930. /* Enable the selected comparator */
  15931. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_EN);
  15932. 8006f86: 687b ldr r3, [r7, #4]
  15933. 8006f88: 681b ldr r3, [r3, #0]
  15934. 8006f8a: 681a ldr r2, [r3, #0]
  15935. 8006f8c: 687b ldr r3, [r7, #4]
  15936. 8006f8e: 681b ldr r3, [r3, #0]
  15937. 8006f90: f042 0201 orr.w r2, r2, #1
  15938. 8006f94: 601a str r2, [r3, #0]
  15939. /* Set HAL COMP handle state */
  15940. hcomp->State = HAL_COMP_STATE_BUSY;
  15941. 8006f96: 687b ldr r3, [r7, #4]
  15942. 8006f98: 2202 movs r2, #2
  15943. 8006f9a: f883 2025 strb.w r2, [r3, #37] @ 0x25
  15944. /* Delay for COMP startup time */
  15945. /* Wait loop initialization and execution */
  15946. /* Note: Variable divided by 2 to compensate partially */
  15947. /* CPU processing cycles. */
  15948. wait_loop_index = ((COMP_DELAY_STARTUP_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  15949. 8006f9e: 4b0d ldr r3, [pc, #52] @ (8006fd4 <HAL_COMP_Start+0x8c>)
  15950. 8006fa0: 681b ldr r3, [r3, #0]
  15951. 8006fa2: 099b lsrs r3, r3, #6
  15952. 8006fa4: 4a0c ldr r2, [pc, #48] @ (8006fd8 <HAL_COMP_Start+0x90>)
  15953. 8006fa6: fba2 2303 umull r2, r3, r2, r3
  15954. 8006faa: 099b lsrs r3, r3, #6
  15955. 8006fac: 3301 adds r3, #1
  15956. 8006fae: 00db lsls r3, r3, #3
  15957. 8006fb0: 60bb str r3, [r7, #8]
  15958. while(wait_loop_index != 0UL)
  15959. 8006fb2: e002 b.n 8006fba <HAL_COMP_Start+0x72>
  15960. {
  15961. wait_loop_index--;
  15962. 8006fb4: 68bb ldr r3, [r7, #8]
  15963. 8006fb6: 3b01 subs r3, #1
  15964. 8006fb8: 60bb str r3, [r7, #8]
  15965. while(wait_loop_index != 0UL)
  15966. 8006fba: 68bb ldr r3, [r7, #8]
  15967. 8006fbc: 2b00 cmp r3, #0
  15968. 8006fbe: d1f9 bne.n 8006fb4 <HAL_COMP_Start+0x6c>
  15969. 8006fc0: e001 b.n 8006fc6 <HAL_COMP_Start+0x7e>
  15970. }
  15971. }
  15972. else
  15973. {
  15974. status = HAL_ERROR;
  15975. 8006fc2: 2301 movs r3, #1
  15976. 8006fc4: 73fb strb r3, [r7, #15]
  15977. }
  15978. }
  15979. return status;
  15980. 8006fc6: 7bfb ldrb r3, [r7, #15]
  15981. }
  15982. 8006fc8: 4618 mov r0, r3
  15983. 8006fca: 3714 adds r7, #20
  15984. 8006fcc: 46bd mov sp, r7
  15985. 8006fce: f85d 7b04 ldr.w r7, [sp], #4
  15986. 8006fd2: 4770 bx lr
  15987. 8006fd4: 24000034 .word 0x24000034
  15988. 8006fd8: 053e2d63 .word 0x053e2d63
  15989. 08006fdc <HAL_COMP_GetOutputLevel>:
  15990. * @arg @ref COMP_OUTPUT_LEVEL_LOW
  15991. * @arg @ref COMP_OUTPUT_LEVEL_HIGH
  15992. *
  15993. */
  15994. uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp)
  15995. {
  15996. 8006fdc: b480 push {r7}
  15997. 8006fde: b083 sub sp, #12
  15998. 8006fe0: af00 add r7, sp, #0
  15999. 8006fe2: 6078 str r0, [r7, #4]
  16000. /* Check the parameter */
  16001. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  16002. if (hcomp->Instance == COMP1)
  16003. 8006fe4: 687b ldr r3, [r7, #4]
  16004. 8006fe6: 681b ldr r3, [r3, #0]
  16005. 8006fe8: 4a09 ldr r2, [pc, #36] @ (8007010 <HAL_COMP_GetOutputLevel+0x34>)
  16006. 8006fea: 4293 cmp r3, r2
  16007. 8006fec: d104 bne.n 8006ff8 <HAL_COMP_GetOutputLevel+0x1c>
  16008. {
  16009. return (uint32_t)(READ_BIT(COMP12->SR, COMP_SR_C1VAL));
  16010. 8006fee: 4b09 ldr r3, [pc, #36] @ (8007014 <HAL_COMP_GetOutputLevel+0x38>)
  16011. 8006ff0: 681b ldr r3, [r3, #0]
  16012. 8006ff2: f003 0301 and.w r3, r3, #1
  16013. 8006ff6: e004 b.n 8007002 <HAL_COMP_GetOutputLevel+0x26>
  16014. }
  16015. else
  16016. {
  16017. return (uint32_t)((READ_BIT(COMP12->SR, COMP_SR_C2VAL))>> 1UL);
  16018. 8006ff8: 4b06 ldr r3, [pc, #24] @ (8007014 <HAL_COMP_GetOutputLevel+0x38>)
  16019. 8006ffa: 681b ldr r3, [r3, #0]
  16020. 8006ffc: 085b lsrs r3, r3, #1
  16021. 8006ffe: f003 0301 and.w r3, r3, #1
  16022. }
  16023. }
  16024. 8007002: 4618 mov r0, r3
  16025. 8007004: 370c adds r7, #12
  16026. 8007006: 46bd mov sp, r7
  16027. 8007008: f85d 7b04 ldr.w r7, [sp], #4
  16028. 800700c: 4770 bx lr
  16029. 800700e: bf00 nop
  16030. 8007010: 5800380c .word 0x5800380c
  16031. 8007014: 58003800 .word 0x58003800
  16032. 08007018 <__NVIC_SetPriorityGrouping>:
  16033. {
  16034. 8007018: b480 push {r7}
  16035. 800701a: b085 sub sp, #20
  16036. 800701c: af00 add r7, sp, #0
  16037. 800701e: 6078 str r0, [r7, #4]
  16038. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  16039. 8007020: 687b ldr r3, [r7, #4]
  16040. 8007022: f003 0307 and.w r3, r3, #7
  16041. 8007026: 60fb str r3, [r7, #12]
  16042. reg_value = SCB->AIRCR; /* read old register configuration */
  16043. 8007028: 4b0b ldr r3, [pc, #44] @ (8007058 <__NVIC_SetPriorityGrouping+0x40>)
  16044. 800702a: 68db ldr r3, [r3, #12]
  16045. 800702c: 60bb str r3, [r7, #8]
  16046. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  16047. 800702e: 68ba ldr r2, [r7, #8]
  16048. 8007030: f64f 03ff movw r3, #63743 @ 0xf8ff
  16049. 8007034: 4013 ands r3, r2
  16050. 8007036: 60bb str r3, [r7, #8]
  16051. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  16052. 8007038: 68fb ldr r3, [r7, #12]
  16053. 800703a: 021a lsls r2, r3, #8
  16054. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  16055. 800703c: 68bb ldr r3, [r7, #8]
  16056. 800703e: 431a orrs r2, r3
  16057. reg_value = (reg_value |
  16058. 8007040: 4b06 ldr r3, [pc, #24] @ (800705c <__NVIC_SetPriorityGrouping+0x44>)
  16059. 8007042: 4313 orrs r3, r2
  16060. 8007044: 60bb str r3, [r7, #8]
  16061. SCB->AIRCR = reg_value;
  16062. 8007046: 4a04 ldr r2, [pc, #16] @ (8007058 <__NVIC_SetPriorityGrouping+0x40>)
  16063. 8007048: 68bb ldr r3, [r7, #8]
  16064. 800704a: 60d3 str r3, [r2, #12]
  16065. }
  16066. 800704c: bf00 nop
  16067. 800704e: 3714 adds r7, #20
  16068. 8007050: 46bd mov sp, r7
  16069. 8007052: f85d 7b04 ldr.w r7, [sp], #4
  16070. 8007056: 4770 bx lr
  16071. 8007058: e000ed00 .word 0xe000ed00
  16072. 800705c: 05fa0000 .word 0x05fa0000
  16073. 08007060 <__NVIC_GetPriorityGrouping>:
  16074. {
  16075. 8007060: b480 push {r7}
  16076. 8007062: af00 add r7, sp, #0
  16077. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  16078. 8007064: 4b04 ldr r3, [pc, #16] @ (8007078 <__NVIC_GetPriorityGrouping+0x18>)
  16079. 8007066: 68db ldr r3, [r3, #12]
  16080. 8007068: 0a1b lsrs r3, r3, #8
  16081. 800706a: f003 0307 and.w r3, r3, #7
  16082. }
  16083. 800706e: 4618 mov r0, r3
  16084. 8007070: 46bd mov sp, r7
  16085. 8007072: f85d 7b04 ldr.w r7, [sp], #4
  16086. 8007076: 4770 bx lr
  16087. 8007078: e000ed00 .word 0xe000ed00
  16088. 0800707c <__NVIC_EnableIRQ>:
  16089. {
  16090. 800707c: b480 push {r7}
  16091. 800707e: b083 sub sp, #12
  16092. 8007080: af00 add r7, sp, #0
  16093. 8007082: 4603 mov r3, r0
  16094. 8007084: 80fb strh r3, [r7, #6]
  16095. if ((int32_t)(IRQn) >= 0)
  16096. 8007086: f9b7 3006 ldrsh.w r3, [r7, #6]
  16097. 800708a: 2b00 cmp r3, #0
  16098. 800708c: db0b blt.n 80070a6 <__NVIC_EnableIRQ+0x2a>
  16099. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  16100. 800708e: 88fb ldrh r3, [r7, #6]
  16101. 8007090: f003 021f and.w r2, r3, #31
  16102. 8007094: 4907 ldr r1, [pc, #28] @ (80070b4 <__NVIC_EnableIRQ+0x38>)
  16103. 8007096: f9b7 3006 ldrsh.w r3, [r7, #6]
  16104. 800709a: 095b lsrs r3, r3, #5
  16105. 800709c: 2001 movs r0, #1
  16106. 800709e: fa00 f202 lsl.w r2, r0, r2
  16107. 80070a2: f841 2023 str.w r2, [r1, r3, lsl #2]
  16108. }
  16109. 80070a6: bf00 nop
  16110. 80070a8: 370c adds r7, #12
  16111. 80070aa: 46bd mov sp, r7
  16112. 80070ac: f85d 7b04 ldr.w r7, [sp], #4
  16113. 80070b0: 4770 bx lr
  16114. 80070b2: bf00 nop
  16115. 80070b4: e000e100 .word 0xe000e100
  16116. 080070b8 <__NVIC_SetPriority>:
  16117. {
  16118. 80070b8: b480 push {r7}
  16119. 80070ba: b083 sub sp, #12
  16120. 80070bc: af00 add r7, sp, #0
  16121. 80070be: 4603 mov r3, r0
  16122. 80070c0: 6039 str r1, [r7, #0]
  16123. 80070c2: 80fb strh r3, [r7, #6]
  16124. if ((int32_t)(IRQn) >= 0)
  16125. 80070c4: f9b7 3006 ldrsh.w r3, [r7, #6]
  16126. 80070c8: 2b00 cmp r3, #0
  16127. 80070ca: db0a blt.n 80070e2 <__NVIC_SetPriority+0x2a>
  16128. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  16129. 80070cc: 683b ldr r3, [r7, #0]
  16130. 80070ce: b2da uxtb r2, r3
  16131. 80070d0: 490c ldr r1, [pc, #48] @ (8007104 <__NVIC_SetPriority+0x4c>)
  16132. 80070d2: f9b7 3006 ldrsh.w r3, [r7, #6]
  16133. 80070d6: 0112 lsls r2, r2, #4
  16134. 80070d8: b2d2 uxtb r2, r2
  16135. 80070da: 440b add r3, r1
  16136. 80070dc: f883 2300 strb.w r2, [r3, #768] @ 0x300
  16137. }
  16138. 80070e0: e00a b.n 80070f8 <__NVIC_SetPriority+0x40>
  16139. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  16140. 80070e2: 683b ldr r3, [r7, #0]
  16141. 80070e4: b2da uxtb r2, r3
  16142. 80070e6: 4908 ldr r1, [pc, #32] @ (8007108 <__NVIC_SetPriority+0x50>)
  16143. 80070e8: 88fb ldrh r3, [r7, #6]
  16144. 80070ea: f003 030f and.w r3, r3, #15
  16145. 80070ee: 3b04 subs r3, #4
  16146. 80070f0: 0112 lsls r2, r2, #4
  16147. 80070f2: b2d2 uxtb r2, r2
  16148. 80070f4: 440b add r3, r1
  16149. 80070f6: 761a strb r2, [r3, #24]
  16150. }
  16151. 80070f8: bf00 nop
  16152. 80070fa: 370c adds r7, #12
  16153. 80070fc: 46bd mov sp, r7
  16154. 80070fe: f85d 7b04 ldr.w r7, [sp], #4
  16155. 8007102: 4770 bx lr
  16156. 8007104: e000e100 .word 0xe000e100
  16157. 8007108: e000ed00 .word 0xe000ed00
  16158. 0800710c <NVIC_EncodePriority>:
  16159. {
  16160. 800710c: b480 push {r7}
  16161. 800710e: b089 sub sp, #36 @ 0x24
  16162. 8007110: af00 add r7, sp, #0
  16163. 8007112: 60f8 str r0, [r7, #12]
  16164. 8007114: 60b9 str r1, [r7, #8]
  16165. 8007116: 607a str r2, [r7, #4]
  16166. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  16167. 8007118: 68fb ldr r3, [r7, #12]
  16168. 800711a: f003 0307 and.w r3, r3, #7
  16169. 800711e: 61fb str r3, [r7, #28]
  16170. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  16171. 8007120: 69fb ldr r3, [r7, #28]
  16172. 8007122: f1c3 0307 rsb r3, r3, #7
  16173. 8007126: 2b04 cmp r3, #4
  16174. 8007128: bf28 it cs
  16175. 800712a: 2304 movcs r3, #4
  16176. 800712c: 61bb str r3, [r7, #24]
  16177. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  16178. 800712e: 69fb ldr r3, [r7, #28]
  16179. 8007130: 3304 adds r3, #4
  16180. 8007132: 2b06 cmp r3, #6
  16181. 8007134: d902 bls.n 800713c <NVIC_EncodePriority+0x30>
  16182. 8007136: 69fb ldr r3, [r7, #28]
  16183. 8007138: 3b03 subs r3, #3
  16184. 800713a: e000 b.n 800713e <NVIC_EncodePriority+0x32>
  16185. 800713c: 2300 movs r3, #0
  16186. 800713e: 617b str r3, [r7, #20]
  16187. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  16188. 8007140: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  16189. 8007144: 69bb ldr r3, [r7, #24]
  16190. 8007146: fa02 f303 lsl.w r3, r2, r3
  16191. 800714a: 43da mvns r2, r3
  16192. 800714c: 68bb ldr r3, [r7, #8]
  16193. 800714e: 401a ands r2, r3
  16194. 8007150: 697b ldr r3, [r7, #20]
  16195. 8007152: 409a lsls r2, r3
  16196. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  16197. 8007154: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  16198. 8007158: 697b ldr r3, [r7, #20]
  16199. 800715a: fa01 f303 lsl.w r3, r1, r3
  16200. 800715e: 43d9 mvns r1, r3
  16201. 8007160: 687b ldr r3, [r7, #4]
  16202. 8007162: 400b ands r3, r1
  16203. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  16204. 8007164: 4313 orrs r3, r2
  16205. }
  16206. 8007166: 4618 mov r0, r3
  16207. 8007168: 3724 adds r7, #36 @ 0x24
  16208. 800716a: 46bd mov sp, r7
  16209. 800716c: f85d 7b04 ldr.w r7, [sp], #4
  16210. 8007170: 4770 bx lr
  16211. 08007172 <HAL_NVIC_SetPriorityGrouping>:
  16212. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  16213. * The pending IRQ priority will be managed only by the subpriority.
  16214. * @retval None
  16215. */
  16216. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  16217. {
  16218. 8007172: b580 push {r7, lr}
  16219. 8007174: b082 sub sp, #8
  16220. 8007176: af00 add r7, sp, #0
  16221. 8007178: 6078 str r0, [r7, #4]
  16222. /* Check the parameters */
  16223. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  16224. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  16225. NVIC_SetPriorityGrouping(PriorityGroup);
  16226. 800717a: 6878 ldr r0, [r7, #4]
  16227. 800717c: f7ff ff4c bl 8007018 <__NVIC_SetPriorityGrouping>
  16228. }
  16229. 8007180: bf00 nop
  16230. 8007182: 3708 adds r7, #8
  16231. 8007184: 46bd mov sp, r7
  16232. 8007186: bd80 pop {r7, pc}
  16233. 08007188 <HAL_NVIC_SetPriority>:
  16234. * This parameter can be a value between 0 and 15
  16235. * A lower priority value indicates a higher priority.
  16236. * @retval None
  16237. */
  16238. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  16239. {
  16240. 8007188: b580 push {r7, lr}
  16241. 800718a: b086 sub sp, #24
  16242. 800718c: af00 add r7, sp, #0
  16243. 800718e: 4603 mov r3, r0
  16244. 8007190: 60b9 str r1, [r7, #8]
  16245. 8007192: 607a str r2, [r7, #4]
  16246. 8007194: 81fb strh r3, [r7, #14]
  16247. /* Check the parameters */
  16248. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  16249. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  16250. prioritygroup = NVIC_GetPriorityGrouping();
  16251. 8007196: f7ff ff63 bl 8007060 <__NVIC_GetPriorityGrouping>
  16252. 800719a: 6178 str r0, [r7, #20]
  16253. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  16254. 800719c: 687a ldr r2, [r7, #4]
  16255. 800719e: 68b9 ldr r1, [r7, #8]
  16256. 80071a0: 6978 ldr r0, [r7, #20]
  16257. 80071a2: f7ff ffb3 bl 800710c <NVIC_EncodePriority>
  16258. 80071a6: 4602 mov r2, r0
  16259. 80071a8: f9b7 300e ldrsh.w r3, [r7, #14]
  16260. 80071ac: 4611 mov r1, r2
  16261. 80071ae: 4618 mov r0, r3
  16262. 80071b0: f7ff ff82 bl 80070b8 <__NVIC_SetPriority>
  16263. }
  16264. 80071b4: bf00 nop
  16265. 80071b6: 3718 adds r7, #24
  16266. 80071b8: 46bd mov sp, r7
  16267. 80071ba: bd80 pop {r7, pc}
  16268. 080071bc <HAL_NVIC_EnableIRQ>:
  16269. * This parameter can be an enumerator of IRQn_Type enumeration
  16270. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  16271. * @retval None
  16272. */
  16273. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  16274. {
  16275. 80071bc: b580 push {r7, lr}
  16276. 80071be: b082 sub sp, #8
  16277. 80071c0: af00 add r7, sp, #0
  16278. 80071c2: 4603 mov r3, r0
  16279. 80071c4: 80fb strh r3, [r7, #6]
  16280. /* Check the parameters */
  16281. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  16282. /* Enable interrupt */
  16283. NVIC_EnableIRQ(IRQn);
  16284. 80071c6: f9b7 3006 ldrsh.w r3, [r7, #6]
  16285. 80071ca: 4618 mov r0, r3
  16286. 80071cc: f7ff ff56 bl 800707c <__NVIC_EnableIRQ>
  16287. }
  16288. 80071d0: bf00 nop
  16289. 80071d2: 3708 adds r7, #8
  16290. 80071d4: 46bd mov sp, r7
  16291. 80071d6: bd80 pop {r7, pc}
  16292. 080071d8 <HAL_MPU_Disable>:
  16293. /**
  16294. * @brief Disables the MPU
  16295. * @retval None
  16296. */
  16297. void HAL_MPU_Disable(void)
  16298. {
  16299. 80071d8: b480 push {r7}
  16300. 80071da: af00 add r7, sp, #0
  16301. __ASM volatile ("dmb 0xF":::"memory");
  16302. 80071dc: f3bf 8f5f dmb sy
  16303. }
  16304. 80071e0: bf00 nop
  16305. /* Make sure outstanding transfers are done */
  16306. __DMB();
  16307. /* Disable fault exceptions */
  16308. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  16309. 80071e2: 4b07 ldr r3, [pc, #28] @ (8007200 <HAL_MPU_Disable+0x28>)
  16310. 80071e4: 6a5b ldr r3, [r3, #36] @ 0x24
  16311. 80071e6: 4a06 ldr r2, [pc, #24] @ (8007200 <HAL_MPU_Disable+0x28>)
  16312. 80071e8: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  16313. 80071ec: 6253 str r3, [r2, #36] @ 0x24
  16314. /* Disable the MPU and clear the control register*/
  16315. MPU->CTRL = 0;
  16316. 80071ee: 4b05 ldr r3, [pc, #20] @ (8007204 <HAL_MPU_Disable+0x2c>)
  16317. 80071f0: 2200 movs r2, #0
  16318. 80071f2: 605a str r2, [r3, #4]
  16319. }
  16320. 80071f4: bf00 nop
  16321. 80071f6: 46bd mov sp, r7
  16322. 80071f8: f85d 7b04 ldr.w r7, [sp], #4
  16323. 80071fc: 4770 bx lr
  16324. 80071fe: bf00 nop
  16325. 8007200: e000ed00 .word 0xe000ed00
  16326. 8007204: e000ed90 .word 0xe000ed90
  16327. 08007208 <HAL_MPU_Enable>:
  16328. * @arg MPU_PRIVILEGED_DEFAULT
  16329. * @arg MPU_HFNMI_PRIVDEF
  16330. * @retval None
  16331. */
  16332. void HAL_MPU_Enable(uint32_t MPU_Control)
  16333. {
  16334. 8007208: b480 push {r7}
  16335. 800720a: b083 sub sp, #12
  16336. 800720c: af00 add r7, sp, #0
  16337. 800720e: 6078 str r0, [r7, #4]
  16338. /* Enable the MPU */
  16339. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  16340. 8007210: 4a0b ldr r2, [pc, #44] @ (8007240 <HAL_MPU_Enable+0x38>)
  16341. 8007212: 687b ldr r3, [r7, #4]
  16342. 8007214: f043 0301 orr.w r3, r3, #1
  16343. 8007218: 6053 str r3, [r2, #4]
  16344. /* Enable fault exceptions */
  16345. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  16346. 800721a: 4b0a ldr r3, [pc, #40] @ (8007244 <HAL_MPU_Enable+0x3c>)
  16347. 800721c: 6a5b ldr r3, [r3, #36] @ 0x24
  16348. 800721e: 4a09 ldr r2, [pc, #36] @ (8007244 <HAL_MPU_Enable+0x3c>)
  16349. 8007220: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  16350. 8007224: 6253 str r3, [r2, #36] @ 0x24
  16351. __ASM volatile ("dsb 0xF":::"memory");
  16352. 8007226: f3bf 8f4f dsb sy
  16353. }
  16354. 800722a: bf00 nop
  16355. __ASM volatile ("isb 0xF":::"memory");
  16356. 800722c: f3bf 8f6f isb sy
  16357. }
  16358. 8007230: bf00 nop
  16359. /* Ensure MPU setting take effects */
  16360. __DSB();
  16361. __ISB();
  16362. }
  16363. 8007232: bf00 nop
  16364. 8007234: 370c adds r7, #12
  16365. 8007236: 46bd mov sp, r7
  16366. 8007238: f85d 7b04 ldr.w r7, [sp], #4
  16367. 800723c: 4770 bx lr
  16368. 800723e: bf00 nop
  16369. 8007240: e000ed90 .word 0xe000ed90
  16370. 8007244: e000ed00 .word 0xe000ed00
  16371. 08007248 <HAL_MPU_ConfigRegion>:
  16372. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  16373. * the initialization and configuration information.
  16374. * @retval None
  16375. */
  16376. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  16377. {
  16378. 8007248: b480 push {r7}
  16379. 800724a: b083 sub sp, #12
  16380. 800724c: af00 add r7, sp, #0
  16381. 800724e: 6078 str r0, [r7, #4]
  16382. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  16383. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  16384. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  16385. /* Set the Region number */
  16386. MPU->RNR = MPU_Init->Number;
  16387. 8007250: 687b ldr r3, [r7, #4]
  16388. 8007252: 785a ldrb r2, [r3, #1]
  16389. 8007254: 4b1b ldr r3, [pc, #108] @ (80072c4 <HAL_MPU_ConfigRegion+0x7c>)
  16390. 8007256: 609a str r2, [r3, #8]
  16391. /* Disable the Region */
  16392. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  16393. 8007258: 4b1a ldr r3, [pc, #104] @ (80072c4 <HAL_MPU_ConfigRegion+0x7c>)
  16394. 800725a: 691b ldr r3, [r3, #16]
  16395. 800725c: 4a19 ldr r2, [pc, #100] @ (80072c4 <HAL_MPU_ConfigRegion+0x7c>)
  16396. 800725e: f023 0301 bic.w r3, r3, #1
  16397. 8007262: 6113 str r3, [r2, #16]
  16398. /* Apply configuration */
  16399. MPU->RBAR = MPU_Init->BaseAddress;
  16400. 8007264: 4a17 ldr r2, [pc, #92] @ (80072c4 <HAL_MPU_ConfigRegion+0x7c>)
  16401. 8007266: 687b ldr r3, [r7, #4]
  16402. 8007268: 685b ldr r3, [r3, #4]
  16403. 800726a: 60d3 str r3, [r2, #12]
  16404. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16405. 800726c: 687b ldr r3, [r7, #4]
  16406. 800726e: 7b1b ldrb r3, [r3, #12]
  16407. 8007270: 071a lsls r2, r3, #28
  16408. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  16409. 8007272: 687b ldr r3, [r7, #4]
  16410. 8007274: 7adb ldrb r3, [r3, #11]
  16411. 8007276: 061b lsls r3, r3, #24
  16412. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16413. 8007278: 431a orrs r2, r3
  16414. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  16415. 800727a: 687b ldr r3, [r7, #4]
  16416. 800727c: 7a9b ldrb r3, [r3, #10]
  16417. 800727e: 04db lsls r3, r3, #19
  16418. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  16419. 8007280: 431a orrs r2, r3
  16420. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  16421. 8007282: 687b ldr r3, [r7, #4]
  16422. 8007284: 7b5b ldrb r3, [r3, #13]
  16423. 8007286: 049b lsls r3, r3, #18
  16424. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  16425. 8007288: 431a orrs r2, r3
  16426. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  16427. 800728a: 687b ldr r3, [r7, #4]
  16428. 800728c: 7b9b ldrb r3, [r3, #14]
  16429. 800728e: 045b lsls r3, r3, #17
  16430. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  16431. 8007290: 431a orrs r2, r3
  16432. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  16433. 8007292: 687b ldr r3, [r7, #4]
  16434. 8007294: 7bdb ldrb r3, [r3, #15]
  16435. 8007296: 041b lsls r3, r3, #16
  16436. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  16437. 8007298: 431a orrs r2, r3
  16438. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  16439. 800729a: 687b ldr r3, [r7, #4]
  16440. 800729c: 7a5b ldrb r3, [r3, #9]
  16441. 800729e: 021b lsls r3, r3, #8
  16442. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  16443. 80072a0: 431a orrs r2, r3
  16444. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  16445. 80072a2: 687b ldr r3, [r7, #4]
  16446. 80072a4: 7a1b ldrb r3, [r3, #8]
  16447. 80072a6: 005b lsls r3, r3, #1
  16448. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  16449. 80072a8: 4313 orrs r3, r2
  16450. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  16451. 80072aa: 687a ldr r2, [r7, #4]
  16452. 80072ac: 7812 ldrb r2, [r2, #0]
  16453. 80072ae: 4611 mov r1, r2
  16454. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16455. 80072b0: 4a04 ldr r2, [pc, #16] @ (80072c4 <HAL_MPU_ConfigRegion+0x7c>)
  16456. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  16457. 80072b2: 430b orrs r3, r1
  16458. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16459. 80072b4: 6113 str r3, [r2, #16]
  16460. }
  16461. 80072b6: bf00 nop
  16462. 80072b8: 370c adds r7, #12
  16463. 80072ba: 46bd mov sp, r7
  16464. 80072bc: f85d 7b04 ldr.w r7, [sp], #4
  16465. 80072c0: 4770 bx lr
  16466. 80072c2: bf00 nop
  16467. 80072c4: e000ed90 .word 0xe000ed90
  16468. 080072c8 <HAL_CRC_Init>:
  16469. * parameters in the CRC_InitTypeDef and create the associated handle.
  16470. * @param hcrc CRC handle
  16471. * @retval HAL status
  16472. */
  16473. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  16474. {
  16475. 80072c8: b580 push {r7, lr}
  16476. 80072ca: b082 sub sp, #8
  16477. 80072cc: af00 add r7, sp, #0
  16478. 80072ce: 6078 str r0, [r7, #4]
  16479. /* Check the CRC handle allocation */
  16480. if (hcrc == NULL)
  16481. 80072d0: 687b ldr r3, [r7, #4]
  16482. 80072d2: 2b00 cmp r3, #0
  16483. 80072d4: d101 bne.n 80072da <HAL_CRC_Init+0x12>
  16484. {
  16485. return HAL_ERROR;
  16486. 80072d6: 2301 movs r3, #1
  16487. 80072d8: e054 b.n 8007384 <HAL_CRC_Init+0xbc>
  16488. }
  16489. /* Check the parameters */
  16490. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  16491. if (hcrc->State == HAL_CRC_STATE_RESET)
  16492. 80072da: 687b ldr r3, [r7, #4]
  16493. 80072dc: 7f5b ldrb r3, [r3, #29]
  16494. 80072de: b2db uxtb r3, r3
  16495. 80072e0: 2b00 cmp r3, #0
  16496. 80072e2: d105 bne.n 80072f0 <HAL_CRC_Init+0x28>
  16497. {
  16498. /* Allocate lock resource and initialize it */
  16499. hcrc->Lock = HAL_UNLOCKED;
  16500. 80072e4: 687b ldr r3, [r7, #4]
  16501. 80072e6: 2200 movs r2, #0
  16502. 80072e8: 771a strb r2, [r3, #28]
  16503. /* Init the low level hardware */
  16504. HAL_CRC_MspInit(hcrc);
  16505. 80072ea: 6878 ldr r0, [r7, #4]
  16506. 80072ec: f7fc fabc bl 8003868 <HAL_CRC_MspInit>
  16507. }
  16508. hcrc->State = HAL_CRC_STATE_BUSY;
  16509. 80072f0: 687b ldr r3, [r7, #4]
  16510. 80072f2: 2202 movs r2, #2
  16511. 80072f4: 775a strb r2, [r3, #29]
  16512. /* check whether or not non-default generating polynomial has been
  16513. * picked up by user */
  16514. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  16515. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  16516. 80072f6: 687b ldr r3, [r7, #4]
  16517. 80072f8: 791b ldrb r3, [r3, #4]
  16518. 80072fa: 2b00 cmp r3, #0
  16519. 80072fc: d10c bne.n 8007318 <HAL_CRC_Init+0x50>
  16520. {
  16521. /* initialize peripheral with default generating polynomial */
  16522. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  16523. 80072fe: 687b ldr r3, [r7, #4]
  16524. 8007300: 681b ldr r3, [r3, #0]
  16525. 8007302: 4a22 ldr r2, [pc, #136] @ (800738c <HAL_CRC_Init+0xc4>)
  16526. 8007304: 615a str r2, [r3, #20]
  16527. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  16528. 8007306: 687b ldr r3, [r7, #4]
  16529. 8007308: 681b ldr r3, [r3, #0]
  16530. 800730a: 689a ldr r2, [r3, #8]
  16531. 800730c: 687b ldr r3, [r7, #4]
  16532. 800730e: 681b ldr r3, [r3, #0]
  16533. 8007310: f022 0218 bic.w r2, r2, #24
  16534. 8007314: 609a str r2, [r3, #8]
  16535. 8007316: e00c b.n 8007332 <HAL_CRC_Init+0x6a>
  16536. }
  16537. else
  16538. {
  16539. /* initialize CRC peripheral with generating polynomial defined by user */
  16540. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  16541. 8007318: 687b ldr r3, [r7, #4]
  16542. 800731a: 6899 ldr r1, [r3, #8]
  16543. 800731c: 687b ldr r3, [r7, #4]
  16544. 800731e: 68db ldr r3, [r3, #12]
  16545. 8007320: 461a mov r2, r3
  16546. 8007322: 6878 ldr r0, [r7, #4]
  16547. 8007324: f000 f948 bl 80075b8 <HAL_CRCEx_Polynomial_Set>
  16548. 8007328: 4603 mov r3, r0
  16549. 800732a: 2b00 cmp r3, #0
  16550. 800732c: d001 beq.n 8007332 <HAL_CRC_Init+0x6a>
  16551. {
  16552. return HAL_ERROR;
  16553. 800732e: 2301 movs r3, #1
  16554. 8007330: e028 b.n 8007384 <HAL_CRC_Init+0xbc>
  16555. }
  16556. /* check whether or not non-default CRC initial value has been
  16557. * picked up by user */
  16558. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  16559. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  16560. 8007332: 687b ldr r3, [r7, #4]
  16561. 8007334: 795b ldrb r3, [r3, #5]
  16562. 8007336: 2b00 cmp r3, #0
  16563. 8007338: d105 bne.n 8007346 <HAL_CRC_Init+0x7e>
  16564. {
  16565. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  16566. 800733a: 687b ldr r3, [r7, #4]
  16567. 800733c: 681b ldr r3, [r3, #0]
  16568. 800733e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  16569. 8007342: 611a str r2, [r3, #16]
  16570. 8007344: e004 b.n 8007350 <HAL_CRC_Init+0x88>
  16571. }
  16572. else
  16573. {
  16574. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  16575. 8007346: 687b ldr r3, [r7, #4]
  16576. 8007348: 681b ldr r3, [r3, #0]
  16577. 800734a: 687a ldr r2, [r7, #4]
  16578. 800734c: 6912 ldr r2, [r2, #16]
  16579. 800734e: 611a str r2, [r3, #16]
  16580. }
  16581. /* set input data inversion mode */
  16582. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  16583. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  16584. 8007350: 687b ldr r3, [r7, #4]
  16585. 8007352: 681b ldr r3, [r3, #0]
  16586. 8007354: 689b ldr r3, [r3, #8]
  16587. 8007356: f023 0160 bic.w r1, r3, #96 @ 0x60
  16588. 800735a: 687b ldr r3, [r7, #4]
  16589. 800735c: 695a ldr r2, [r3, #20]
  16590. 800735e: 687b ldr r3, [r7, #4]
  16591. 8007360: 681b ldr r3, [r3, #0]
  16592. 8007362: 430a orrs r2, r1
  16593. 8007364: 609a str r2, [r3, #8]
  16594. /* set output data inversion mode */
  16595. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  16596. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  16597. 8007366: 687b ldr r3, [r7, #4]
  16598. 8007368: 681b ldr r3, [r3, #0]
  16599. 800736a: 689b ldr r3, [r3, #8]
  16600. 800736c: f023 0180 bic.w r1, r3, #128 @ 0x80
  16601. 8007370: 687b ldr r3, [r7, #4]
  16602. 8007372: 699a ldr r2, [r3, #24]
  16603. 8007374: 687b ldr r3, [r7, #4]
  16604. 8007376: 681b ldr r3, [r3, #0]
  16605. 8007378: 430a orrs r2, r1
  16606. 800737a: 609a str r2, [r3, #8]
  16607. /* makes sure the input data format (bytes, halfwords or words stream)
  16608. * is properly specified by user */
  16609. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  16610. /* Change CRC peripheral state */
  16611. hcrc->State = HAL_CRC_STATE_READY;
  16612. 800737c: 687b ldr r3, [r7, #4]
  16613. 800737e: 2201 movs r2, #1
  16614. 8007380: 775a strb r2, [r3, #29]
  16615. /* Return function status */
  16616. return HAL_OK;
  16617. 8007382: 2300 movs r3, #0
  16618. }
  16619. 8007384: 4618 mov r0, r3
  16620. 8007386: 3708 adds r7, #8
  16621. 8007388: 46bd mov sp, r7
  16622. 800738a: bd80 pop {r7, pc}
  16623. 800738c: 04c11db7 .word 0x04c11db7
  16624. 08007390 <HAL_CRC_Calculate>:
  16625. * and the API will internally adjust its input data processing based on the
  16626. * handle field hcrc->InputDataFormat.
  16627. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  16628. */
  16629. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  16630. {
  16631. 8007390: b580 push {r7, lr}
  16632. 8007392: b086 sub sp, #24
  16633. 8007394: af00 add r7, sp, #0
  16634. 8007396: 60f8 str r0, [r7, #12]
  16635. 8007398: 60b9 str r1, [r7, #8]
  16636. 800739a: 607a str r2, [r7, #4]
  16637. uint32_t index; /* CRC input data buffer index */
  16638. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  16639. 800739c: 2300 movs r3, #0
  16640. 800739e: 613b str r3, [r7, #16]
  16641. /* Change CRC peripheral state */
  16642. hcrc->State = HAL_CRC_STATE_BUSY;
  16643. 80073a0: 68fb ldr r3, [r7, #12]
  16644. 80073a2: 2202 movs r2, #2
  16645. 80073a4: 775a strb r2, [r3, #29]
  16646. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  16647. * written in hcrc->Instance->DR) */
  16648. __HAL_CRC_DR_RESET(hcrc);
  16649. 80073a6: 68fb ldr r3, [r7, #12]
  16650. 80073a8: 681b ldr r3, [r3, #0]
  16651. 80073aa: 689a ldr r2, [r3, #8]
  16652. 80073ac: 68fb ldr r3, [r7, #12]
  16653. 80073ae: 681b ldr r3, [r3, #0]
  16654. 80073b0: f042 0201 orr.w r2, r2, #1
  16655. 80073b4: 609a str r2, [r3, #8]
  16656. switch (hcrc->InputDataFormat)
  16657. 80073b6: 68fb ldr r3, [r7, #12]
  16658. 80073b8: 6a1b ldr r3, [r3, #32]
  16659. 80073ba: 2b03 cmp r3, #3
  16660. 80073bc: d006 beq.n 80073cc <HAL_CRC_Calculate+0x3c>
  16661. 80073be: 2b03 cmp r3, #3
  16662. 80073c0: d829 bhi.n 8007416 <HAL_CRC_Calculate+0x86>
  16663. 80073c2: 2b01 cmp r3, #1
  16664. 80073c4: d019 beq.n 80073fa <HAL_CRC_Calculate+0x6a>
  16665. 80073c6: 2b02 cmp r3, #2
  16666. 80073c8: d01e beq.n 8007408 <HAL_CRC_Calculate+0x78>
  16667. /* Specific 16-bit input data handling */
  16668. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  16669. break;
  16670. default:
  16671. break;
  16672. 80073ca: e024 b.n 8007416 <HAL_CRC_Calculate+0x86>
  16673. for (index = 0U; index < BufferLength; index++)
  16674. 80073cc: 2300 movs r3, #0
  16675. 80073ce: 617b str r3, [r7, #20]
  16676. 80073d0: e00a b.n 80073e8 <HAL_CRC_Calculate+0x58>
  16677. hcrc->Instance->DR = pBuffer[index];
  16678. 80073d2: 697b ldr r3, [r7, #20]
  16679. 80073d4: 009b lsls r3, r3, #2
  16680. 80073d6: 68ba ldr r2, [r7, #8]
  16681. 80073d8: 441a add r2, r3
  16682. 80073da: 68fb ldr r3, [r7, #12]
  16683. 80073dc: 681b ldr r3, [r3, #0]
  16684. 80073de: 6812 ldr r2, [r2, #0]
  16685. 80073e0: 601a str r2, [r3, #0]
  16686. for (index = 0U; index < BufferLength; index++)
  16687. 80073e2: 697b ldr r3, [r7, #20]
  16688. 80073e4: 3301 adds r3, #1
  16689. 80073e6: 617b str r3, [r7, #20]
  16690. 80073e8: 697a ldr r2, [r7, #20]
  16691. 80073ea: 687b ldr r3, [r7, #4]
  16692. 80073ec: 429a cmp r2, r3
  16693. 80073ee: d3f0 bcc.n 80073d2 <HAL_CRC_Calculate+0x42>
  16694. temp = hcrc->Instance->DR;
  16695. 80073f0: 68fb ldr r3, [r7, #12]
  16696. 80073f2: 681b ldr r3, [r3, #0]
  16697. 80073f4: 681b ldr r3, [r3, #0]
  16698. 80073f6: 613b str r3, [r7, #16]
  16699. break;
  16700. 80073f8: e00e b.n 8007418 <HAL_CRC_Calculate+0x88>
  16701. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  16702. 80073fa: 687a ldr r2, [r7, #4]
  16703. 80073fc: 68b9 ldr r1, [r7, #8]
  16704. 80073fe: 68f8 ldr r0, [r7, #12]
  16705. 8007400: f000 f812 bl 8007428 <CRC_Handle_8>
  16706. 8007404: 6138 str r0, [r7, #16]
  16707. break;
  16708. 8007406: e007 b.n 8007418 <HAL_CRC_Calculate+0x88>
  16709. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  16710. 8007408: 687a ldr r2, [r7, #4]
  16711. 800740a: 68b9 ldr r1, [r7, #8]
  16712. 800740c: 68f8 ldr r0, [r7, #12]
  16713. 800740e: f000 f899 bl 8007544 <CRC_Handle_16>
  16714. 8007412: 6138 str r0, [r7, #16]
  16715. break;
  16716. 8007414: e000 b.n 8007418 <HAL_CRC_Calculate+0x88>
  16717. break;
  16718. 8007416: bf00 nop
  16719. }
  16720. /* Change CRC peripheral state */
  16721. hcrc->State = HAL_CRC_STATE_READY;
  16722. 8007418: 68fb ldr r3, [r7, #12]
  16723. 800741a: 2201 movs r2, #1
  16724. 800741c: 775a strb r2, [r3, #29]
  16725. /* Return the CRC computed value */
  16726. return temp;
  16727. 800741e: 693b ldr r3, [r7, #16]
  16728. }
  16729. 8007420: 4618 mov r0, r3
  16730. 8007422: 3718 adds r7, #24
  16731. 8007424: 46bd mov sp, r7
  16732. 8007426: bd80 pop {r7, pc}
  16733. 08007428 <CRC_Handle_8>:
  16734. * @param pBuffer pointer to the input data buffer
  16735. * @param BufferLength input data buffer length
  16736. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  16737. */
  16738. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  16739. {
  16740. 8007428: b480 push {r7}
  16741. 800742a: b089 sub sp, #36 @ 0x24
  16742. 800742c: af00 add r7, sp, #0
  16743. 800742e: 60f8 str r0, [r7, #12]
  16744. 8007430: 60b9 str r1, [r7, #8]
  16745. 8007432: 607a str r2, [r7, #4]
  16746. __IO uint16_t *pReg;
  16747. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  16748. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  16749. * handling by the peripheral */
  16750. for (i = 0U; i < (BufferLength / 4U); i++)
  16751. 8007434: 2300 movs r3, #0
  16752. 8007436: 61fb str r3, [r7, #28]
  16753. 8007438: e023 b.n 8007482 <CRC_Handle_8+0x5a>
  16754. {
  16755. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  16756. 800743a: 69fb ldr r3, [r7, #28]
  16757. 800743c: 009b lsls r3, r3, #2
  16758. 800743e: 68ba ldr r2, [r7, #8]
  16759. 8007440: 4413 add r3, r2
  16760. 8007442: 781b ldrb r3, [r3, #0]
  16761. 8007444: 061a lsls r2, r3, #24
  16762. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  16763. 8007446: 69fb ldr r3, [r7, #28]
  16764. 8007448: 009b lsls r3, r3, #2
  16765. 800744a: 3301 adds r3, #1
  16766. 800744c: 68b9 ldr r1, [r7, #8]
  16767. 800744e: 440b add r3, r1
  16768. 8007450: 781b ldrb r3, [r3, #0]
  16769. 8007452: 041b lsls r3, r3, #16
  16770. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  16771. 8007454: 431a orrs r2, r3
  16772. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  16773. 8007456: 69fb ldr r3, [r7, #28]
  16774. 8007458: 009b lsls r3, r3, #2
  16775. 800745a: 3302 adds r3, #2
  16776. 800745c: 68b9 ldr r1, [r7, #8]
  16777. 800745e: 440b add r3, r1
  16778. 8007460: 781b ldrb r3, [r3, #0]
  16779. 8007462: 021b lsls r3, r3, #8
  16780. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  16781. 8007464: 431a orrs r2, r3
  16782. (uint32_t)pBuffer[(4U * i) + 3U];
  16783. 8007466: 69fb ldr r3, [r7, #28]
  16784. 8007468: 009b lsls r3, r3, #2
  16785. 800746a: 3303 adds r3, #3
  16786. 800746c: 68b9 ldr r1, [r7, #8]
  16787. 800746e: 440b add r3, r1
  16788. 8007470: 781b ldrb r3, [r3, #0]
  16789. 8007472: 4619 mov r1, r3
  16790. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  16791. 8007474: 68fb ldr r3, [r7, #12]
  16792. 8007476: 681b ldr r3, [r3, #0]
  16793. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  16794. 8007478: 430a orrs r2, r1
  16795. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  16796. 800747a: 601a str r2, [r3, #0]
  16797. for (i = 0U; i < (BufferLength / 4U); i++)
  16798. 800747c: 69fb ldr r3, [r7, #28]
  16799. 800747e: 3301 adds r3, #1
  16800. 8007480: 61fb str r3, [r7, #28]
  16801. 8007482: 687b ldr r3, [r7, #4]
  16802. 8007484: 089b lsrs r3, r3, #2
  16803. 8007486: 69fa ldr r2, [r7, #28]
  16804. 8007488: 429a cmp r2, r3
  16805. 800748a: d3d6 bcc.n 800743a <CRC_Handle_8+0x12>
  16806. }
  16807. /* last bytes specific handling */
  16808. if ((BufferLength % 4U) != 0U)
  16809. 800748c: 687b ldr r3, [r7, #4]
  16810. 800748e: f003 0303 and.w r3, r3, #3
  16811. 8007492: 2b00 cmp r3, #0
  16812. 8007494: d04d beq.n 8007532 <CRC_Handle_8+0x10a>
  16813. {
  16814. if ((BufferLength % 4U) == 1U)
  16815. 8007496: 687b ldr r3, [r7, #4]
  16816. 8007498: f003 0303 and.w r3, r3, #3
  16817. 800749c: 2b01 cmp r3, #1
  16818. 800749e: d107 bne.n 80074b0 <CRC_Handle_8+0x88>
  16819. {
  16820. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  16821. 80074a0: 69fb ldr r3, [r7, #28]
  16822. 80074a2: 009b lsls r3, r3, #2
  16823. 80074a4: 68ba ldr r2, [r7, #8]
  16824. 80074a6: 4413 add r3, r2
  16825. 80074a8: 68fa ldr r2, [r7, #12]
  16826. 80074aa: 6812 ldr r2, [r2, #0]
  16827. 80074ac: 781b ldrb r3, [r3, #0]
  16828. 80074ae: 7013 strb r3, [r2, #0]
  16829. }
  16830. if ((BufferLength % 4U) == 2U)
  16831. 80074b0: 687b ldr r3, [r7, #4]
  16832. 80074b2: f003 0303 and.w r3, r3, #3
  16833. 80074b6: 2b02 cmp r3, #2
  16834. 80074b8: d116 bne.n 80074e8 <CRC_Handle_8+0xc0>
  16835. {
  16836. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  16837. 80074ba: 69fb ldr r3, [r7, #28]
  16838. 80074bc: 009b lsls r3, r3, #2
  16839. 80074be: 68ba ldr r2, [r7, #8]
  16840. 80074c0: 4413 add r3, r2
  16841. 80074c2: 781b ldrb r3, [r3, #0]
  16842. 80074c4: 021b lsls r3, r3, #8
  16843. 80074c6: b21a sxth r2, r3
  16844. 80074c8: 69fb ldr r3, [r7, #28]
  16845. 80074ca: 009b lsls r3, r3, #2
  16846. 80074cc: 3301 adds r3, #1
  16847. 80074ce: 68b9 ldr r1, [r7, #8]
  16848. 80074d0: 440b add r3, r1
  16849. 80074d2: 781b ldrb r3, [r3, #0]
  16850. 80074d4: b21b sxth r3, r3
  16851. 80074d6: 4313 orrs r3, r2
  16852. 80074d8: b21b sxth r3, r3
  16853. 80074da: 837b strh r3, [r7, #26]
  16854. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  16855. 80074dc: 68fb ldr r3, [r7, #12]
  16856. 80074de: 681b ldr r3, [r3, #0]
  16857. 80074e0: 617b str r3, [r7, #20]
  16858. *pReg = data;
  16859. 80074e2: 697b ldr r3, [r7, #20]
  16860. 80074e4: 8b7a ldrh r2, [r7, #26]
  16861. 80074e6: 801a strh r2, [r3, #0]
  16862. }
  16863. if ((BufferLength % 4U) == 3U)
  16864. 80074e8: 687b ldr r3, [r7, #4]
  16865. 80074ea: f003 0303 and.w r3, r3, #3
  16866. 80074ee: 2b03 cmp r3, #3
  16867. 80074f0: d11f bne.n 8007532 <CRC_Handle_8+0x10a>
  16868. {
  16869. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  16870. 80074f2: 69fb ldr r3, [r7, #28]
  16871. 80074f4: 009b lsls r3, r3, #2
  16872. 80074f6: 68ba ldr r2, [r7, #8]
  16873. 80074f8: 4413 add r3, r2
  16874. 80074fa: 781b ldrb r3, [r3, #0]
  16875. 80074fc: 021b lsls r3, r3, #8
  16876. 80074fe: b21a sxth r2, r3
  16877. 8007500: 69fb ldr r3, [r7, #28]
  16878. 8007502: 009b lsls r3, r3, #2
  16879. 8007504: 3301 adds r3, #1
  16880. 8007506: 68b9 ldr r1, [r7, #8]
  16881. 8007508: 440b add r3, r1
  16882. 800750a: 781b ldrb r3, [r3, #0]
  16883. 800750c: b21b sxth r3, r3
  16884. 800750e: 4313 orrs r3, r2
  16885. 8007510: b21b sxth r3, r3
  16886. 8007512: 837b strh r3, [r7, #26]
  16887. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  16888. 8007514: 68fb ldr r3, [r7, #12]
  16889. 8007516: 681b ldr r3, [r3, #0]
  16890. 8007518: 617b str r3, [r7, #20]
  16891. *pReg = data;
  16892. 800751a: 697b ldr r3, [r7, #20]
  16893. 800751c: 8b7a ldrh r2, [r7, #26]
  16894. 800751e: 801a strh r2, [r3, #0]
  16895. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  16896. 8007520: 69fb ldr r3, [r7, #28]
  16897. 8007522: 009b lsls r3, r3, #2
  16898. 8007524: 3302 adds r3, #2
  16899. 8007526: 68ba ldr r2, [r7, #8]
  16900. 8007528: 4413 add r3, r2
  16901. 800752a: 68fa ldr r2, [r7, #12]
  16902. 800752c: 6812 ldr r2, [r2, #0]
  16903. 800752e: 781b ldrb r3, [r3, #0]
  16904. 8007530: 7013 strb r3, [r2, #0]
  16905. }
  16906. }
  16907. /* Return the CRC computed value */
  16908. return hcrc->Instance->DR;
  16909. 8007532: 68fb ldr r3, [r7, #12]
  16910. 8007534: 681b ldr r3, [r3, #0]
  16911. 8007536: 681b ldr r3, [r3, #0]
  16912. }
  16913. 8007538: 4618 mov r0, r3
  16914. 800753a: 3724 adds r7, #36 @ 0x24
  16915. 800753c: 46bd mov sp, r7
  16916. 800753e: f85d 7b04 ldr.w r7, [sp], #4
  16917. 8007542: 4770 bx lr
  16918. 08007544 <CRC_Handle_16>:
  16919. * @param pBuffer pointer to the input data buffer
  16920. * @param BufferLength input data buffer length
  16921. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  16922. */
  16923. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  16924. {
  16925. 8007544: b480 push {r7}
  16926. 8007546: b087 sub sp, #28
  16927. 8007548: af00 add r7, sp, #0
  16928. 800754a: 60f8 str r0, [r7, #12]
  16929. 800754c: 60b9 str r1, [r7, #8]
  16930. 800754e: 607a str r2, [r7, #4]
  16931. __IO uint16_t *pReg;
  16932. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  16933. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  16934. * a correct type handling by the peripheral */
  16935. for (i = 0U; i < (BufferLength / 2U); i++)
  16936. 8007550: 2300 movs r3, #0
  16937. 8007552: 617b str r3, [r7, #20]
  16938. 8007554: e013 b.n 800757e <CRC_Handle_16+0x3a>
  16939. {
  16940. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  16941. 8007556: 697b ldr r3, [r7, #20]
  16942. 8007558: 009b lsls r3, r3, #2
  16943. 800755a: 68ba ldr r2, [r7, #8]
  16944. 800755c: 4413 add r3, r2
  16945. 800755e: 881b ldrh r3, [r3, #0]
  16946. 8007560: 041a lsls r2, r3, #16
  16947. 8007562: 697b ldr r3, [r7, #20]
  16948. 8007564: 009b lsls r3, r3, #2
  16949. 8007566: 3302 adds r3, #2
  16950. 8007568: 68b9 ldr r1, [r7, #8]
  16951. 800756a: 440b add r3, r1
  16952. 800756c: 881b ldrh r3, [r3, #0]
  16953. 800756e: 4619 mov r1, r3
  16954. 8007570: 68fb ldr r3, [r7, #12]
  16955. 8007572: 681b ldr r3, [r3, #0]
  16956. 8007574: 430a orrs r2, r1
  16957. 8007576: 601a str r2, [r3, #0]
  16958. for (i = 0U; i < (BufferLength / 2U); i++)
  16959. 8007578: 697b ldr r3, [r7, #20]
  16960. 800757a: 3301 adds r3, #1
  16961. 800757c: 617b str r3, [r7, #20]
  16962. 800757e: 687b ldr r3, [r7, #4]
  16963. 8007580: 085b lsrs r3, r3, #1
  16964. 8007582: 697a ldr r2, [r7, #20]
  16965. 8007584: 429a cmp r2, r3
  16966. 8007586: d3e6 bcc.n 8007556 <CRC_Handle_16+0x12>
  16967. }
  16968. if ((BufferLength % 2U) != 0U)
  16969. 8007588: 687b ldr r3, [r7, #4]
  16970. 800758a: f003 0301 and.w r3, r3, #1
  16971. 800758e: 2b00 cmp r3, #0
  16972. 8007590: d009 beq.n 80075a6 <CRC_Handle_16+0x62>
  16973. {
  16974. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  16975. 8007592: 68fb ldr r3, [r7, #12]
  16976. 8007594: 681b ldr r3, [r3, #0]
  16977. 8007596: 613b str r3, [r7, #16]
  16978. *pReg = pBuffer[2U * i];
  16979. 8007598: 697b ldr r3, [r7, #20]
  16980. 800759a: 009b lsls r3, r3, #2
  16981. 800759c: 68ba ldr r2, [r7, #8]
  16982. 800759e: 4413 add r3, r2
  16983. 80075a0: 881a ldrh r2, [r3, #0]
  16984. 80075a2: 693b ldr r3, [r7, #16]
  16985. 80075a4: 801a strh r2, [r3, #0]
  16986. }
  16987. /* Return the CRC computed value */
  16988. return hcrc->Instance->DR;
  16989. 80075a6: 68fb ldr r3, [r7, #12]
  16990. 80075a8: 681b ldr r3, [r3, #0]
  16991. 80075aa: 681b ldr r3, [r3, #0]
  16992. }
  16993. 80075ac: 4618 mov r0, r3
  16994. 80075ae: 371c adds r7, #28
  16995. 80075b0: 46bd mov sp, r7
  16996. 80075b2: f85d 7b04 ldr.w r7, [sp], #4
  16997. 80075b6: 4770 bx lr
  16998. 080075b8 <HAL_CRCEx_Polynomial_Set>:
  16999. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  17000. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  17001. * @retval HAL status
  17002. */
  17003. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  17004. {
  17005. 80075b8: b480 push {r7}
  17006. 80075ba: b087 sub sp, #28
  17007. 80075bc: af00 add r7, sp, #0
  17008. 80075be: 60f8 str r0, [r7, #12]
  17009. 80075c0: 60b9 str r1, [r7, #8]
  17010. 80075c2: 607a str r2, [r7, #4]
  17011. HAL_StatusTypeDef status = HAL_OK;
  17012. 80075c4: 2300 movs r3, #0
  17013. 80075c6: 75fb strb r3, [r7, #23]
  17014. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  17015. 80075c8: 231f movs r3, #31
  17016. 80075ca: 613b str r3, [r7, #16]
  17017. /* Check the parameters */
  17018. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  17019. /* Ensure that the generating polynomial is odd */
  17020. if ((Pol & (uint32_t)(0x1U)) == 0U)
  17021. 80075cc: 68bb ldr r3, [r7, #8]
  17022. 80075ce: f003 0301 and.w r3, r3, #1
  17023. 80075d2: 2b00 cmp r3, #0
  17024. 80075d4: d102 bne.n 80075dc <HAL_CRCEx_Polynomial_Set+0x24>
  17025. {
  17026. status = HAL_ERROR;
  17027. 80075d6: 2301 movs r3, #1
  17028. 80075d8: 75fb strb r3, [r7, #23]
  17029. 80075da: e063 b.n 80076a4 <HAL_CRCEx_Polynomial_Set+0xec>
  17030. * definition. HAL_ERROR is reported if Pol degree is
  17031. * larger than that indicated by PolyLength.
  17032. * Look for MSB position: msb will contain the degree of
  17033. * the second to the largest polynomial member. E.g., for
  17034. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  17035. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  17036. 80075dc: bf00 nop
  17037. 80075de: 693b ldr r3, [r7, #16]
  17038. 80075e0: 1e5a subs r2, r3, #1
  17039. 80075e2: 613a str r2, [r7, #16]
  17040. 80075e4: 2b00 cmp r3, #0
  17041. 80075e6: d009 beq.n 80075fc <HAL_CRCEx_Polynomial_Set+0x44>
  17042. 80075e8: 693b ldr r3, [r7, #16]
  17043. 80075ea: f003 031f and.w r3, r3, #31
  17044. 80075ee: 68ba ldr r2, [r7, #8]
  17045. 80075f0: fa22 f303 lsr.w r3, r2, r3
  17046. 80075f4: f003 0301 and.w r3, r3, #1
  17047. 80075f8: 2b00 cmp r3, #0
  17048. 80075fa: d0f0 beq.n 80075de <HAL_CRCEx_Polynomial_Set+0x26>
  17049. {
  17050. }
  17051. switch (PolyLength)
  17052. 80075fc: 687b ldr r3, [r7, #4]
  17053. 80075fe: 2b18 cmp r3, #24
  17054. 8007600: d846 bhi.n 8007690 <HAL_CRCEx_Polynomial_Set+0xd8>
  17055. 8007602: a201 add r2, pc, #4 @ (adr r2, 8007608 <HAL_CRCEx_Polynomial_Set+0x50>)
  17056. 8007604: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  17057. 8007608: 08007697 .word 0x08007697
  17058. 800760c: 08007691 .word 0x08007691
  17059. 8007610: 08007691 .word 0x08007691
  17060. 8007614: 08007691 .word 0x08007691
  17061. 8007618: 08007691 .word 0x08007691
  17062. 800761c: 08007691 .word 0x08007691
  17063. 8007620: 08007691 .word 0x08007691
  17064. 8007624: 08007691 .word 0x08007691
  17065. 8007628: 08007685 .word 0x08007685
  17066. 800762c: 08007691 .word 0x08007691
  17067. 8007630: 08007691 .word 0x08007691
  17068. 8007634: 08007691 .word 0x08007691
  17069. 8007638: 08007691 .word 0x08007691
  17070. 800763c: 08007691 .word 0x08007691
  17071. 8007640: 08007691 .word 0x08007691
  17072. 8007644: 08007691 .word 0x08007691
  17073. 8007648: 08007679 .word 0x08007679
  17074. 800764c: 08007691 .word 0x08007691
  17075. 8007650: 08007691 .word 0x08007691
  17076. 8007654: 08007691 .word 0x08007691
  17077. 8007658: 08007691 .word 0x08007691
  17078. 800765c: 08007691 .word 0x08007691
  17079. 8007660: 08007691 .word 0x08007691
  17080. 8007664: 08007691 .word 0x08007691
  17081. 8007668: 0800766d .word 0x0800766d
  17082. {
  17083. case CRC_POLYLENGTH_7B:
  17084. if (msb >= HAL_CRC_LENGTH_7B)
  17085. 800766c: 693b ldr r3, [r7, #16]
  17086. 800766e: 2b06 cmp r3, #6
  17087. 8007670: d913 bls.n 800769a <HAL_CRCEx_Polynomial_Set+0xe2>
  17088. {
  17089. status = HAL_ERROR;
  17090. 8007672: 2301 movs r3, #1
  17091. 8007674: 75fb strb r3, [r7, #23]
  17092. }
  17093. break;
  17094. 8007676: e010 b.n 800769a <HAL_CRCEx_Polynomial_Set+0xe2>
  17095. case CRC_POLYLENGTH_8B:
  17096. if (msb >= HAL_CRC_LENGTH_8B)
  17097. 8007678: 693b ldr r3, [r7, #16]
  17098. 800767a: 2b07 cmp r3, #7
  17099. 800767c: d90f bls.n 800769e <HAL_CRCEx_Polynomial_Set+0xe6>
  17100. {
  17101. status = HAL_ERROR;
  17102. 800767e: 2301 movs r3, #1
  17103. 8007680: 75fb strb r3, [r7, #23]
  17104. }
  17105. break;
  17106. 8007682: e00c b.n 800769e <HAL_CRCEx_Polynomial_Set+0xe6>
  17107. case CRC_POLYLENGTH_16B:
  17108. if (msb >= HAL_CRC_LENGTH_16B)
  17109. 8007684: 693b ldr r3, [r7, #16]
  17110. 8007686: 2b0f cmp r3, #15
  17111. 8007688: d90b bls.n 80076a2 <HAL_CRCEx_Polynomial_Set+0xea>
  17112. {
  17113. status = HAL_ERROR;
  17114. 800768a: 2301 movs r3, #1
  17115. 800768c: 75fb strb r3, [r7, #23]
  17116. }
  17117. break;
  17118. 800768e: e008 b.n 80076a2 <HAL_CRCEx_Polynomial_Set+0xea>
  17119. case CRC_POLYLENGTH_32B:
  17120. /* no polynomial definition vs. polynomial length issue possible */
  17121. break;
  17122. default:
  17123. status = HAL_ERROR;
  17124. 8007690: 2301 movs r3, #1
  17125. 8007692: 75fb strb r3, [r7, #23]
  17126. break;
  17127. 8007694: e006 b.n 80076a4 <HAL_CRCEx_Polynomial_Set+0xec>
  17128. break;
  17129. 8007696: bf00 nop
  17130. 8007698: e004 b.n 80076a4 <HAL_CRCEx_Polynomial_Set+0xec>
  17131. break;
  17132. 800769a: bf00 nop
  17133. 800769c: e002 b.n 80076a4 <HAL_CRCEx_Polynomial_Set+0xec>
  17134. break;
  17135. 800769e: bf00 nop
  17136. 80076a0: e000 b.n 80076a4 <HAL_CRCEx_Polynomial_Set+0xec>
  17137. break;
  17138. 80076a2: bf00 nop
  17139. }
  17140. }
  17141. if (status == HAL_OK)
  17142. 80076a4: 7dfb ldrb r3, [r7, #23]
  17143. 80076a6: 2b00 cmp r3, #0
  17144. 80076a8: d10d bne.n 80076c6 <HAL_CRCEx_Polynomial_Set+0x10e>
  17145. {
  17146. /* set generating polynomial */
  17147. WRITE_REG(hcrc->Instance->POL, Pol);
  17148. 80076aa: 68fb ldr r3, [r7, #12]
  17149. 80076ac: 681b ldr r3, [r3, #0]
  17150. 80076ae: 68ba ldr r2, [r7, #8]
  17151. 80076b0: 615a str r2, [r3, #20]
  17152. /* set generating polynomial size */
  17153. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  17154. 80076b2: 68fb ldr r3, [r7, #12]
  17155. 80076b4: 681b ldr r3, [r3, #0]
  17156. 80076b6: 689b ldr r3, [r3, #8]
  17157. 80076b8: f023 0118 bic.w r1, r3, #24
  17158. 80076bc: 68fb ldr r3, [r7, #12]
  17159. 80076be: 681b ldr r3, [r3, #0]
  17160. 80076c0: 687a ldr r2, [r7, #4]
  17161. 80076c2: 430a orrs r2, r1
  17162. 80076c4: 609a str r2, [r3, #8]
  17163. }
  17164. /* Return function status */
  17165. return status;
  17166. 80076c6: 7dfb ldrb r3, [r7, #23]
  17167. }
  17168. 80076c8: 4618 mov r0, r3
  17169. 80076ca: 371c adds r7, #28
  17170. 80076cc: 46bd mov sp, r7
  17171. 80076ce: f85d 7b04 ldr.w r7, [sp], #4
  17172. 80076d2: 4770 bx lr
  17173. 080076d4 <HAL_DAC_Init>:
  17174. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  17175. * the configuration information for the specified DAC.
  17176. * @retval HAL status
  17177. */
  17178. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  17179. {
  17180. 80076d4: b580 push {r7, lr}
  17181. 80076d6: b082 sub sp, #8
  17182. 80076d8: af00 add r7, sp, #0
  17183. 80076da: 6078 str r0, [r7, #4]
  17184. /* Check the DAC peripheral handle */
  17185. if (hdac == NULL)
  17186. 80076dc: 687b ldr r3, [r7, #4]
  17187. 80076de: 2b00 cmp r3, #0
  17188. 80076e0: d101 bne.n 80076e6 <HAL_DAC_Init+0x12>
  17189. {
  17190. return HAL_ERROR;
  17191. 80076e2: 2301 movs r3, #1
  17192. 80076e4: e014 b.n 8007710 <HAL_DAC_Init+0x3c>
  17193. }
  17194. /* Check the parameters */
  17195. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  17196. if (hdac->State == HAL_DAC_STATE_RESET)
  17197. 80076e6: 687b ldr r3, [r7, #4]
  17198. 80076e8: 791b ldrb r3, [r3, #4]
  17199. 80076ea: b2db uxtb r3, r3
  17200. 80076ec: 2b00 cmp r3, #0
  17201. 80076ee: d105 bne.n 80076fc <HAL_DAC_Init+0x28>
  17202. hdac->MspInitCallback = HAL_DAC_MspInit;
  17203. }
  17204. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17205. /* Allocate lock resource and initialize it */
  17206. hdac->Lock = HAL_UNLOCKED;
  17207. 80076f0: 687b ldr r3, [r7, #4]
  17208. 80076f2: 2200 movs r2, #0
  17209. 80076f4: 715a strb r2, [r3, #5]
  17210. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  17211. /* Init the low level hardware */
  17212. hdac->MspInitCallback(hdac);
  17213. #else
  17214. /* Init the low level hardware */
  17215. HAL_DAC_MspInit(hdac);
  17216. 80076f6: 6878 ldr r0, [r7, #4]
  17217. 80076f8: f7fc f8d8 bl 80038ac <HAL_DAC_MspInit>
  17218. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17219. }
  17220. /* Initialize the DAC state*/
  17221. hdac->State = HAL_DAC_STATE_BUSY;
  17222. 80076fc: 687b ldr r3, [r7, #4]
  17223. 80076fe: 2202 movs r2, #2
  17224. 8007700: 711a strb r2, [r3, #4]
  17225. /* Set DAC error code to none */
  17226. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  17227. 8007702: 687b ldr r3, [r7, #4]
  17228. 8007704: 2200 movs r2, #0
  17229. 8007706: 611a str r2, [r3, #16]
  17230. /* Initialize the DAC state*/
  17231. hdac->State = HAL_DAC_STATE_READY;
  17232. 8007708: 687b ldr r3, [r7, #4]
  17233. 800770a: 2201 movs r2, #1
  17234. 800770c: 711a strb r2, [r3, #4]
  17235. /* Return function status */
  17236. return HAL_OK;
  17237. 800770e: 2300 movs r3, #0
  17238. }
  17239. 8007710: 4618 mov r0, r3
  17240. 8007712: 3708 adds r7, #8
  17241. 8007714: 46bd mov sp, r7
  17242. 8007716: bd80 pop {r7, pc}
  17243. 08007718 <HAL_DAC_Start>:
  17244. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  17245. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  17246. * @retval HAL status
  17247. */
  17248. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  17249. {
  17250. 8007718: b480 push {r7}
  17251. 800771a: b083 sub sp, #12
  17252. 800771c: af00 add r7, sp, #0
  17253. 800771e: 6078 str r0, [r7, #4]
  17254. 8007720: 6039 str r1, [r7, #0]
  17255. /* Check the DAC peripheral handle */
  17256. if (hdac == NULL)
  17257. 8007722: 687b ldr r3, [r7, #4]
  17258. 8007724: 2b00 cmp r3, #0
  17259. 8007726: d101 bne.n 800772c <HAL_DAC_Start+0x14>
  17260. {
  17261. return HAL_ERROR;
  17262. 8007728: 2301 movs r3, #1
  17263. 800772a: e046 b.n 80077ba <HAL_DAC_Start+0xa2>
  17264. /* Check the parameters */
  17265. assert_param(IS_DAC_CHANNEL(Channel));
  17266. /* Process locked */
  17267. __HAL_LOCK(hdac);
  17268. 800772c: 687b ldr r3, [r7, #4]
  17269. 800772e: 795b ldrb r3, [r3, #5]
  17270. 8007730: 2b01 cmp r3, #1
  17271. 8007732: d101 bne.n 8007738 <HAL_DAC_Start+0x20>
  17272. 8007734: 2302 movs r3, #2
  17273. 8007736: e040 b.n 80077ba <HAL_DAC_Start+0xa2>
  17274. 8007738: 687b ldr r3, [r7, #4]
  17275. 800773a: 2201 movs r2, #1
  17276. 800773c: 715a strb r2, [r3, #5]
  17277. /* Change DAC state */
  17278. hdac->State = HAL_DAC_STATE_BUSY;
  17279. 800773e: 687b ldr r3, [r7, #4]
  17280. 8007740: 2202 movs r2, #2
  17281. 8007742: 711a strb r2, [r3, #4]
  17282. /* Enable the Peripheral */
  17283. __HAL_DAC_ENABLE(hdac, Channel);
  17284. 8007744: 687b ldr r3, [r7, #4]
  17285. 8007746: 681b ldr r3, [r3, #0]
  17286. 8007748: 6819 ldr r1, [r3, #0]
  17287. 800774a: 683b ldr r3, [r7, #0]
  17288. 800774c: f003 0310 and.w r3, r3, #16
  17289. 8007750: 2201 movs r2, #1
  17290. 8007752: 409a lsls r2, r3
  17291. 8007754: 687b ldr r3, [r7, #4]
  17292. 8007756: 681b ldr r3, [r3, #0]
  17293. 8007758: 430a orrs r2, r1
  17294. 800775a: 601a str r2, [r3, #0]
  17295. if (Channel == DAC_CHANNEL_1)
  17296. 800775c: 683b ldr r3, [r7, #0]
  17297. 800775e: 2b00 cmp r3, #0
  17298. 8007760: d10f bne.n 8007782 <HAL_DAC_Start+0x6a>
  17299. {
  17300. /* Check if software trigger enabled */
  17301. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  17302. 8007762: 687b ldr r3, [r7, #4]
  17303. 8007764: 681b ldr r3, [r3, #0]
  17304. 8007766: 681b ldr r3, [r3, #0]
  17305. 8007768: f003 033e and.w r3, r3, #62 @ 0x3e
  17306. 800776c: 2b02 cmp r3, #2
  17307. 800776e: d11d bne.n 80077ac <HAL_DAC_Start+0x94>
  17308. {
  17309. /* Enable the selected DAC software conversion */
  17310. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  17311. 8007770: 687b ldr r3, [r7, #4]
  17312. 8007772: 681b ldr r3, [r3, #0]
  17313. 8007774: 685a ldr r2, [r3, #4]
  17314. 8007776: 687b ldr r3, [r7, #4]
  17315. 8007778: 681b ldr r3, [r3, #0]
  17316. 800777a: f042 0201 orr.w r2, r2, #1
  17317. 800777e: 605a str r2, [r3, #4]
  17318. 8007780: e014 b.n 80077ac <HAL_DAC_Start+0x94>
  17319. }
  17320. else
  17321. {
  17322. /* Check if software trigger enabled */
  17323. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  17324. 8007782: 687b ldr r3, [r7, #4]
  17325. 8007784: 681b ldr r3, [r3, #0]
  17326. 8007786: 681b ldr r3, [r3, #0]
  17327. 8007788: f403 1278 and.w r2, r3, #4063232 @ 0x3e0000
  17328. 800778c: 683b ldr r3, [r7, #0]
  17329. 800778e: f003 0310 and.w r3, r3, #16
  17330. 8007792: 2102 movs r1, #2
  17331. 8007794: fa01 f303 lsl.w r3, r1, r3
  17332. 8007798: 429a cmp r2, r3
  17333. 800779a: d107 bne.n 80077ac <HAL_DAC_Start+0x94>
  17334. {
  17335. /* Enable the selected DAC software conversion*/
  17336. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  17337. 800779c: 687b ldr r3, [r7, #4]
  17338. 800779e: 681b ldr r3, [r3, #0]
  17339. 80077a0: 685a ldr r2, [r3, #4]
  17340. 80077a2: 687b ldr r3, [r7, #4]
  17341. 80077a4: 681b ldr r3, [r3, #0]
  17342. 80077a6: f042 0202 orr.w r2, r2, #2
  17343. 80077aa: 605a str r2, [r3, #4]
  17344. }
  17345. }
  17346. /* Change DAC state */
  17347. hdac->State = HAL_DAC_STATE_READY;
  17348. 80077ac: 687b ldr r3, [r7, #4]
  17349. 80077ae: 2201 movs r2, #1
  17350. 80077b0: 711a strb r2, [r3, #4]
  17351. /* Process unlocked */
  17352. __HAL_UNLOCK(hdac);
  17353. 80077b2: 687b ldr r3, [r7, #4]
  17354. 80077b4: 2200 movs r2, #0
  17355. 80077b6: 715a strb r2, [r3, #5]
  17356. /* Return function status */
  17357. return HAL_OK;
  17358. 80077b8: 2300 movs r3, #0
  17359. }
  17360. 80077ba: 4618 mov r0, r3
  17361. 80077bc: 370c adds r7, #12
  17362. 80077be: 46bd mov sp, r7
  17363. 80077c0: f85d 7b04 ldr.w r7, [sp], #4
  17364. 80077c4: 4770 bx lr
  17365. 080077c6 <HAL_DAC_IRQHandler>:
  17366. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  17367. * the configuration information for the specified DAC.
  17368. * @retval None
  17369. */
  17370. void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac)
  17371. {
  17372. 80077c6: b580 push {r7, lr}
  17373. 80077c8: b084 sub sp, #16
  17374. 80077ca: af00 add r7, sp, #0
  17375. 80077cc: 6078 str r0, [r7, #4]
  17376. uint32_t itsource = hdac->Instance->CR;
  17377. 80077ce: 687b ldr r3, [r7, #4]
  17378. 80077d0: 681b ldr r3, [r3, #0]
  17379. 80077d2: 681b ldr r3, [r3, #0]
  17380. 80077d4: 60fb str r3, [r7, #12]
  17381. uint32_t itflag = hdac->Instance->SR;
  17382. 80077d6: 687b ldr r3, [r7, #4]
  17383. 80077d8: 681b ldr r3, [r3, #0]
  17384. 80077da: 6b5b ldr r3, [r3, #52] @ 0x34
  17385. 80077dc: 60bb str r3, [r7, #8]
  17386. if ((itsource & DAC_IT_DMAUDR1) == DAC_IT_DMAUDR1)
  17387. 80077de: 68fb ldr r3, [r7, #12]
  17388. 80077e0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  17389. 80077e4: 2b00 cmp r3, #0
  17390. 80077e6: d01d beq.n 8007824 <HAL_DAC_IRQHandler+0x5e>
  17391. {
  17392. /* Check underrun flag of DAC channel 1 */
  17393. if ((itflag & DAC_FLAG_DMAUDR1) == DAC_FLAG_DMAUDR1)
  17394. 80077e8: 68bb ldr r3, [r7, #8]
  17395. 80077ea: f403 5300 and.w r3, r3, #8192 @ 0x2000
  17396. 80077ee: 2b00 cmp r3, #0
  17397. 80077f0: d018 beq.n 8007824 <HAL_DAC_IRQHandler+0x5e>
  17398. {
  17399. /* Change DAC state to error state */
  17400. hdac->State = HAL_DAC_STATE_ERROR;
  17401. 80077f2: 687b ldr r3, [r7, #4]
  17402. 80077f4: 2204 movs r2, #4
  17403. 80077f6: 711a strb r2, [r3, #4]
  17404. /* Set DAC error code to channel1 DMA underrun error */
  17405. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH1);
  17406. 80077f8: 687b ldr r3, [r7, #4]
  17407. 80077fa: 691b ldr r3, [r3, #16]
  17408. 80077fc: f043 0201 orr.w r2, r3, #1
  17409. 8007800: 687b ldr r3, [r7, #4]
  17410. 8007802: 611a str r2, [r3, #16]
  17411. /* Clear the underrun flag */
  17412. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR1);
  17413. 8007804: 687b ldr r3, [r7, #4]
  17414. 8007806: 681b ldr r3, [r3, #0]
  17415. 8007808: f44f 5200 mov.w r2, #8192 @ 0x2000
  17416. 800780c: 635a str r2, [r3, #52] @ 0x34
  17417. /* Disable the selected DAC channel1 DMA request */
  17418. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN1);
  17419. 800780e: 687b ldr r3, [r7, #4]
  17420. 8007810: 681b ldr r3, [r3, #0]
  17421. 8007812: 681a ldr r2, [r3, #0]
  17422. 8007814: 687b ldr r3, [r7, #4]
  17423. 8007816: 681b ldr r3, [r3, #0]
  17424. 8007818: f422 5280 bic.w r2, r2, #4096 @ 0x1000
  17425. 800781c: 601a str r2, [r3, #0]
  17426. /* Error callback */
  17427. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  17428. hdac->DMAUnderrunCallbackCh1(hdac);
  17429. #else
  17430. HAL_DAC_DMAUnderrunCallbackCh1(hdac);
  17431. 800781e: 6878 ldr r0, [r7, #4]
  17432. 8007820: f000 f851 bl 80078c6 <HAL_DAC_DMAUnderrunCallbackCh1>
  17433. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17434. }
  17435. }
  17436. if ((itsource & DAC_IT_DMAUDR2) == DAC_IT_DMAUDR2)
  17437. 8007824: 68fb ldr r3, [r7, #12]
  17438. 8007826: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  17439. 800782a: 2b00 cmp r3, #0
  17440. 800782c: d01d beq.n 800786a <HAL_DAC_IRQHandler+0xa4>
  17441. {
  17442. /* Check underrun flag of DAC channel 2 */
  17443. if ((itflag & DAC_FLAG_DMAUDR2) == DAC_FLAG_DMAUDR2)
  17444. 800782e: 68bb ldr r3, [r7, #8]
  17445. 8007830: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  17446. 8007834: 2b00 cmp r3, #0
  17447. 8007836: d018 beq.n 800786a <HAL_DAC_IRQHandler+0xa4>
  17448. {
  17449. /* Change DAC state to error state */
  17450. hdac->State = HAL_DAC_STATE_ERROR;
  17451. 8007838: 687b ldr r3, [r7, #4]
  17452. 800783a: 2204 movs r2, #4
  17453. 800783c: 711a strb r2, [r3, #4]
  17454. /* Set DAC error code to channel2 DMA underrun error */
  17455. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH2);
  17456. 800783e: 687b ldr r3, [r7, #4]
  17457. 8007840: 691b ldr r3, [r3, #16]
  17458. 8007842: f043 0202 orr.w r2, r3, #2
  17459. 8007846: 687b ldr r3, [r7, #4]
  17460. 8007848: 611a str r2, [r3, #16]
  17461. /* Clear the underrun flag */
  17462. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR2);
  17463. 800784a: 687b ldr r3, [r7, #4]
  17464. 800784c: 681b ldr r3, [r3, #0]
  17465. 800784e: f04f 5200 mov.w r2, #536870912 @ 0x20000000
  17466. 8007852: 635a str r2, [r3, #52] @ 0x34
  17467. /* Disable the selected DAC channel2 DMA request */
  17468. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN2);
  17469. 8007854: 687b ldr r3, [r7, #4]
  17470. 8007856: 681b ldr r3, [r3, #0]
  17471. 8007858: 681a ldr r2, [r3, #0]
  17472. 800785a: 687b ldr r3, [r7, #4]
  17473. 800785c: 681b ldr r3, [r3, #0]
  17474. 800785e: f022 5280 bic.w r2, r2, #268435456 @ 0x10000000
  17475. 8007862: 601a str r2, [r3, #0]
  17476. /* Error callback */
  17477. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  17478. hdac->DMAUnderrunCallbackCh2(hdac);
  17479. #else
  17480. HAL_DACEx_DMAUnderrunCallbackCh2(hdac);
  17481. 8007864: 6878 ldr r0, [r7, #4]
  17482. 8007866: f000 f97b bl 8007b60 <HAL_DACEx_DMAUnderrunCallbackCh2>
  17483. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17484. }
  17485. }
  17486. }
  17487. 800786a: bf00 nop
  17488. 800786c: 3710 adds r7, #16
  17489. 800786e: 46bd mov sp, r7
  17490. 8007870: bd80 pop {r7, pc}
  17491. 08007872 <HAL_DAC_SetValue>:
  17492. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  17493. * @param Data Data to be loaded in the selected data holding register.
  17494. * @retval HAL status
  17495. */
  17496. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  17497. {
  17498. 8007872: b480 push {r7}
  17499. 8007874: b087 sub sp, #28
  17500. 8007876: af00 add r7, sp, #0
  17501. 8007878: 60f8 str r0, [r7, #12]
  17502. 800787a: 60b9 str r1, [r7, #8]
  17503. 800787c: 607a str r2, [r7, #4]
  17504. 800787e: 603b str r3, [r7, #0]
  17505. __IO uint32_t tmp = 0UL;
  17506. 8007880: 2300 movs r3, #0
  17507. 8007882: 617b str r3, [r7, #20]
  17508. /* Check the DAC peripheral handle */
  17509. if (hdac == NULL)
  17510. 8007884: 68fb ldr r3, [r7, #12]
  17511. 8007886: 2b00 cmp r3, #0
  17512. 8007888: d101 bne.n 800788e <HAL_DAC_SetValue+0x1c>
  17513. {
  17514. return HAL_ERROR;
  17515. 800788a: 2301 movs r3, #1
  17516. 800788c: e015 b.n 80078ba <HAL_DAC_SetValue+0x48>
  17517. /* Check the parameters */
  17518. assert_param(IS_DAC_CHANNEL(Channel));
  17519. assert_param(IS_DAC_ALIGN(Alignment));
  17520. assert_param(IS_DAC_DATA(Data));
  17521. tmp = (uint32_t)hdac->Instance;
  17522. 800788e: 68fb ldr r3, [r7, #12]
  17523. 8007890: 681b ldr r3, [r3, #0]
  17524. 8007892: 617b str r3, [r7, #20]
  17525. if (Channel == DAC_CHANNEL_1)
  17526. 8007894: 68bb ldr r3, [r7, #8]
  17527. 8007896: 2b00 cmp r3, #0
  17528. 8007898: d105 bne.n 80078a6 <HAL_DAC_SetValue+0x34>
  17529. {
  17530. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  17531. 800789a: 697a ldr r2, [r7, #20]
  17532. 800789c: 687b ldr r3, [r7, #4]
  17533. 800789e: 4413 add r3, r2
  17534. 80078a0: 3308 adds r3, #8
  17535. 80078a2: 617b str r3, [r7, #20]
  17536. 80078a4: e004 b.n 80078b0 <HAL_DAC_SetValue+0x3e>
  17537. }
  17538. else
  17539. {
  17540. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  17541. 80078a6: 697a ldr r2, [r7, #20]
  17542. 80078a8: 687b ldr r3, [r7, #4]
  17543. 80078aa: 4413 add r3, r2
  17544. 80078ac: 3314 adds r3, #20
  17545. 80078ae: 617b str r3, [r7, #20]
  17546. }
  17547. /* Set the DAC channel selected data holding register */
  17548. *(__IO uint32_t *) tmp = Data;
  17549. 80078b0: 697b ldr r3, [r7, #20]
  17550. 80078b2: 461a mov r2, r3
  17551. 80078b4: 683b ldr r3, [r7, #0]
  17552. 80078b6: 6013 str r3, [r2, #0]
  17553. /* Return function status */
  17554. return HAL_OK;
  17555. 80078b8: 2300 movs r3, #0
  17556. }
  17557. 80078ba: 4618 mov r0, r3
  17558. 80078bc: 371c adds r7, #28
  17559. 80078be: 46bd mov sp, r7
  17560. 80078c0: f85d 7b04 ldr.w r7, [sp], #4
  17561. 80078c4: 4770 bx lr
  17562. 080078c6 <HAL_DAC_DMAUnderrunCallbackCh1>:
  17563. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  17564. * the configuration information for the specified DAC.
  17565. * @retval None
  17566. */
  17567. __weak void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac)
  17568. {
  17569. 80078c6: b480 push {r7}
  17570. 80078c8: b083 sub sp, #12
  17571. 80078ca: af00 add r7, sp, #0
  17572. 80078cc: 6078 str r0, [r7, #4]
  17573. UNUSED(hdac);
  17574. /* NOTE : This function should not be modified, when the callback is needed,
  17575. the HAL_DAC_DMAUnderrunCallbackCh1 could be implemented in the user file
  17576. */
  17577. }
  17578. 80078ce: bf00 nop
  17579. 80078d0: 370c adds r7, #12
  17580. 80078d2: 46bd mov sp, r7
  17581. 80078d4: f85d 7b04 ldr.w r7, [sp], #4
  17582. 80078d8: 4770 bx lr
  17583. ...
  17584. 080078dc <HAL_DAC_ConfigChannel>:
  17585. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  17586. * @retval HAL status
  17587. */
  17588. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac,
  17589. const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  17590. {
  17591. 80078dc: b580 push {r7, lr}
  17592. 80078de: b08a sub sp, #40 @ 0x28
  17593. 80078e0: af00 add r7, sp, #0
  17594. 80078e2: 60f8 str r0, [r7, #12]
  17595. 80078e4: 60b9 str r1, [r7, #8]
  17596. 80078e6: 607a str r2, [r7, #4]
  17597. HAL_StatusTypeDef status = HAL_OK;
  17598. 80078e8: 2300 movs r3, #0
  17599. 80078ea: f887 3023 strb.w r3, [r7, #35] @ 0x23
  17600. uint32_t tmpreg2;
  17601. uint32_t tickstart;
  17602. uint32_t connectOnChip;
  17603. /* Check the DAC peripheral handle and channel configuration struct */
  17604. if ((hdac == NULL) || (sConfig == NULL))
  17605. 80078ee: 68fb ldr r3, [r7, #12]
  17606. 80078f0: 2b00 cmp r3, #0
  17607. 80078f2: d002 beq.n 80078fa <HAL_DAC_ConfigChannel+0x1e>
  17608. 80078f4: 68bb ldr r3, [r7, #8]
  17609. 80078f6: 2b00 cmp r3, #0
  17610. 80078f8: d101 bne.n 80078fe <HAL_DAC_ConfigChannel+0x22>
  17611. {
  17612. return HAL_ERROR;
  17613. 80078fa: 2301 movs r3, #1
  17614. 80078fc: e12a b.n 8007b54 <HAL_DAC_ConfigChannel+0x278>
  17615. assert_param(IS_DAC_REFRESHTIME(sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime));
  17616. }
  17617. assert_param(IS_DAC_CHANNEL(Channel));
  17618. /* Process locked */
  17619. __HAL_LOCK(hdac);
  17620. 80078fe: 68fb ldr r3, [r7, #12]
  17621. 8007900: 795b ldrb r3, [r3, #5]
  17622. 8007902: 2b01 cmp r3, #1
  17623. 8007904: d101 bne.n 800790a <HAL_DAC_ConfigChannel+0x2e>
  17624. 8007906: 2302 movs r3, #2
  17625. 8007908: e124 b.n 8007b54 <HAL_DAC_ConfigChannel+0x278>
  17626. 800790a: 68fb ldr r3, [r7, #12]
  17627. 800790c: 2201 movs r2, #1
  17628. 800790e: 715a strb r2, [r3, #5]
  17629. /* Change DAC state */
  17630. hdac->State = HAL_DAC_STATE_BUSY;
  17631. 8007910: 68fb ldr r3, [r7, #12]
  17632. 8007912: 2202 movs r2, #2
  17633. 8007914: 711a strb r2, [r3, #4]
  17634. /* Sample and hold configuration */
  17635. if (sConfig->DAC_SampleAndHold == DAC_SAMPLEANDHOLD_ENABLE)
  17636. 8007916: 68bb ldr r3, [r7, #8]
  17637. 8007918: 681b ldr r3, [r3, #0]
  17638. 800791a: 2b04 cmp r3, #4
  17639. 800791c: d17a bne.n 8007a14 <HAL_DAC_ConfigChannel+0x138>
  17640. {
  17641. /* Get timeout */
  17642. tickstart = HAL_GetTick();
  17643. 800791e: f7fd fd8d bl 800543c <HAL_GetTick>
  17644. 8007922: 61f8 str r0, [r7, #28]
  17645. if (Channel == DAC_CHANNEL_1)
  17646. 8007924: 687b ldr r3, [r7, #4]
  17647. 8007926: 2b00 cmp r3, #0
  17648. 8007928: d13d bne.n 80079a6 <HAL_DAC_ConfigChannel+0xca>
  17649. {
  17650. /* SHSR1 can be written when BWST1 is cleared */
  17651. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  17652. 800792a: e018 b.n 800795e <HAL_DAC_ConfigChannel+0x82>
  17653. {
  17654. /* Check for the Timeout */
  17655. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  17656. 800792c: f7fd fd86 bl 800543c <HAL_GetTick>
  17657. 8007930: 4602 mov r2, r0
  17658. 8007932: 69fb ldr r3, [r7, #28]
  17659. 8007934: 1ad3 subs r3, r2, r3
  17660. 8007936: 2b01 cmp r3, #1
  17661. 8007938: d911 bls.n 800795e <HAL_DAC_ConfigChannel+0x82>
  17662. {
  17663. /* New check to avoid false timeout detection in case of preemption */
  17664. if (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  17665. 800793a: 68fb ldr r3, [r7, #12]
  17666. 800793c: 681b ldr r3, [r3, #0]
  17667. 800793e: 6b5a ldr r2, [r3, #52] @ 0x34
  17668. 8007940: 4b86 ldr r3, [pc, #536] @ (8007b5c <HAL_DAC_ConfigChannel+0x280>)
  17669. 8007942: 4013 ands r3, r2
  17670. 8007944: 2b00 cmp r3, #0
  17671. 8007946: d00a beq.n 800795e <HAL_DAC_ConfigChannel+0x82>
  17672. {
  17673. /* Update error code */
  17674. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  17675. 8007948: 68fb ldr r3, [r7, #12]
  17676. 800794a: 691b ldr r3, [r3, #16]
  17677. 800794c: f043 0208 orr.w r2, r3, #8
  17678. 8007950: 68fb ldr r3, [r7, #12]
  17679. 8007952: 611a str r2, [r3, #16]
  17680. /* Change the DMA state */
  17681. hdac->State = HAL_DAC_STATE_TIMEOUT;
  17682. 8007954: 68fb ldr r3, [r7, #12]
  17683. 8007956: 2203 movs r2, #3
  17684. 8007958: 711a strb r2, [r3, #4]
  17685. return HAL_TIMEOUT;
  17686. 800795a: 2303 movs r3, #3
  17687. 800795c: e0fa b.n 8007b54 <HAL_DAC_ConfigChannel+0x278>
  17688. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  17689. 800795e: 68fb ldr r3, [r7, #12]
  17690. 8007960: 681b ldr r3, [r3, #0]
  17691. 8007962: 6b5a ldr r2, [r3, #52] @ 0x34
  17692. 8007964: 4b7d ldr r3, [pc, #500] @ (8007b5c <HAL_DAC_ConfigChannel+0x280>)
  17693. 8007966: 4013 ands r3, r2
  17694. 8007968: 2b00 cmp r3, #0
  17695. 800796a: d1df bne.n 800792c <HAL_DAC_ConfigChannel+0x50>
  17696. }
  17697. }
  17698. }
  17699. hdac->Instance->SHSR1 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  17700. 800796c: 68fb ldr r3, [r7, #12]
  17701. 800796e: 681b ldr r3, [r3, #0]
  17702. 8007970: 68ba ldr r2, [r7, #8]
  17703. 8007972: 6992 ldr r2, [r2, #24]
  17704. 8007974: 641a str r2, [r3, #64] @ 0x40
  17705. 8007976: e020 b.n 80079ba <HAL_DAC_ConfigChannel+0xde>
  17706. {
  17707. /* SHSR2 can be written when BWST2 is cleared */
  17708. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  17709. {
  17710. /* Check for the Timeout */
  17711. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  17712. 8007978: f7fd fd60 bl 800543c <HAL_GetTick>
  17713. 800797c: 4602 mov r2, r0
  17714. 800797e: 69fb ldr r3, [r7, #28]
  17715. 8007980: 1ad3 subs r3, r2, r3
  17716. 8007982: 2b01 cmp r3, #1
  17717. 8007984: d90f bls.n 80079a6 <HAL_DAC_ConfigChannel+0xca>
  17718. {
  17719. /* New check to avoid false timeout detection in case of preemption */
  17720. if (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  17721. 8007986: 68fb ldr r3, [r7, #12]
  17722. 8007988: 681b ldr r3, [r3, #0]
  17723. 800798a: 6b5b ldr r3, [r3, #52] @ 0x34
  17724. 800798c: 2b00 cmp r3, #0
  17725. 800798e: da0a bge.n 80079a6 <HAL_DAC_ConfigChannel+0xca>
  17726. {
  17727. /* Update error code */
  17728. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  17729. 8007990: 68fb ldr r3, [r7, #12]
  17730. 8007992: 691b ldr r3, [r3, #16]
  17731. 8007994: f043 0208 orr.w r2, r3, #8
  17732. 8007998: 68fb ldr r3, [r7, #12]
  17733. 800799a: 611a str r2, [r3, #16]
  17734. /* Change the DMA state */
  17735. hdac->State = HAL_DAC_STATE_TIMEOUT;
  17736. 800799c: 68fb ldr r3, [r7, #12]
  17737. 800799e: 2203 movs r2, #3
  17738. 80079a0: 711a strb r2, [r3, #4]
  17739. return HAL_TIMEOUT;
  17740. 80079a2: 2303 movs r3, #3
  17741. 80079a4: e0d6 b.n 8007b54 <HAL_DAC_ConfigChannel+0x278>
  17742. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  17743. 80079a6: 68fb ldr r3, [r7, #12]
  17744. 80079a8: 681b ldr r3, [r3, #0]
  17745. 80079aa: 6b5b ldr r3, [r3, #52] @ 0x34
  17746. 80079ac: 2b00 cmp r3, #0
  17747. 80079ae: dbe3 blt.n 8007978 <HAL_DAC_ConfigChannel+0x9c>
  17748. }
  17749. }
  17750. }
  17751. hdac->Instance->SHSR2 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  17752. 80079b0: 68fb ldr r3, [r7, #12]
  17753. 80079b2: 681b ldr r3, [r3, #0]
  17754. 80079b4: 68ba ldr r2, [r7, #8]
  17755. 80079b6: 6992 ldr r2, [r2, #24]
  17756. 80079b8: 645a str r2, [r3, #68] @ 0x44
  17757. }
  17758. /* HoldTime */
  17759. MODIFY_REG(hdac->Instance->SHHR, DAC_SHHR_THOLD1 << (Channel & 0x10UL),
  17760. 80079ba: 68fb ldr r3, [r7, #12]
  17761. 80079bc: 681b ldr r3, [r3, #0]
  17762. 80079be: 6c9a ldr r2, [r3, #72] @ 0x48
  17763. 80079c0: 687b ldr r3, [r7, #4]
  17764. 80079c2: f003 0310 and.w r3, r3, #16
  17765. 80079c6: f240 31ff movw r1, #1023 @ 0x3ff
  17766. 80079ca: fa01 f303 lsl.w r3, r1, r3
  17767. 80079ce: 43db mvns r3, r3
  17768. 80079d0: ea02 0103 and.w r1, r2, r3
  17769. 80079d4: 68bb ldr r3, [r7, #8]
  17770. 80079d6: 69da ldr r2, [r3, #28]
  17771. 80079d8: 687b ldr r3, [r7, #4]
  17772. 80079da: f003 0310 and.w r3, r3, #16
  17773. 80079de: 409a lsls r2, r3
  17774. 80079e0: 68fb ldr r3, [r7, #12]
  17775. 80079e2: 681b ldr r3, [r3, #0]
  17776. 80079e4: 430a orrs r2, r1
  17777. 80079e6: 649a str r2, [r3, #72] @ 0x48
  17778. (sConfig->DAC_SampleAndHoldConfig.DAC_HoldTime) << (Channel & 0x10UL));
  17779. /* RefreshTime */
  17780. MODIFY_REG(hdac->Instance->SHRR, DAC_SHRR_TREFRESH1 << (Channel & 0x10UL),
  17781. 80079e8: 68fb ldr r3, [r7, #12]
  17782. 80079ea: 681b ldr r3, [r3, #0]
  17783. 80079ec: 6cda ldr r2, [r3, #76] @ 0x4c
  17784. 80079ee: 687b ldr r3, [r7, #4]
  17785. 80079f0: f003 0310 and.w r3, r3, #16
  17786. 80079f4: 21ff movs r1, #255 @ 0xff
  17787. 80079f6: fa01 f303 lsl.w r3, r1, r3
  17788. 80079fa: 43db mvns r3, r3
  17789. 80079fc: ea02 0103 and.w r1, r2, r3
  17790. 8007a00: 68bb ldr r3, [r7, #8]
  17791. 8007a02: 6a1a ldr r2, [r3, #32]
  17792. 8007a04: 687b ldr r3, [r7, #4]
  17793. 8007a06: f003 0310 and.w r3, r3, #16
  17794. 8007a0a: 409a lsls r2, r3
  17795. 8007a0c: 68fb ldr r3, [r7, #12]
  17796. 8007a0e: 681b ldr r3, [r3, #0]
  17797. 8007a10: 430a orrs r2, r1
  17798. 8007a12: 64da str r2, [r3, #76] @ 0x4c
  17799. (sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime) << (Channel & 0x10UL));
  17800. }
  17801. if (sConfig->DAC_UserTrimming == DAC_TRIMMING_USER)
  17802. 8007a14: 68bb ldr r3, [r7, #8]
  17803. 8007a16: 691b ldr r3, [r3, #16]
  17804. 8007a18: 2b01 cmp r3, #1
  17805. 8007a1a: d11d bne.n 8007a58 <HAL_DAC_ConfigChannel+0x17c>
  17806. /* USER TRIMMING */
  17807. {
  17808. /* Get the DAC CCR value */
  17809. tmpreg1 = hdac->Instance->CCR;
  17810. 8007a1c: 68fb ldr r3, [r7, #12]
  17811. 8007a1e: 681b ldr r3, [r3, #0]
  17812. 8007a20: 6b9b ldr r3, [r3, #56] @ 0x38
  17813. 8007a22: 61bb str r3, [r7, #24]
  17814. /* Clear trimming value */
  17815. tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL));
  17816. 8007a24: 687b ldr r3, [r7, #4]
  17817. 8007a26: f003 0310 and.w r3, r3, #16
  17818. 8007a2a: 221f movs r2, #31
  17819. 8007a2c: fa02 f303 lsl.w r3, r2, r3
  17820. 8007a30: 43db mvns r3, r3
  17821. 8007a32: 69ba ldr r2, [r7, #24]
  17822. 8007a34: 4013 ands r3, r2
  17823. 8007a36: 61bb str r3, [r7, #24]
  17824. /* Configure for the selected trimming offset */
  17825. tmpreg2 = sConfig->DAC_TrimmingValue;
  17826. 8007a38: 68bb ldr r3, [r7, #8]
  17827. 8007a3a: 695b ldr r3, [r3, #20]
  17828. 8007a3c: 617b str r3, [r7, #20]
  17829. /* Calculate CCR register value depending on DAC_Channel */
  17830. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  17831. 8007a3e: 687b ldr r3, [r7, #4]
  17832. 8007a40: f003 0310 and.w r3, r3, #16
  17833. 8007a44: 697a ldr r2, [r7, #20]
  17834. 8007a46: fa02 f303 lsl.w r3, r2, r3
  17835. 8007a4a: 69ba ldr r2, [r7, #24]
  17836. 8007a4c: 4313 orrs r3, r2
  17837. 8007a4e: 61bb str r3, [r7, #24]
  17838. /* Write to DAC CCR */
  17839. hdac->Instance->CCR = tmpreg1;
  17840. 8007a50: 68fb ldr r3, [r7, #12]
  17841. 8007a52: 681b ldr r3, [r3, #0]
  17842. 8007a54: 69ba ldr r2, [r7, #24]
  17843. 8007a56: 639a str r2, [r3, #56] @ 0x38
  17844. }
  17845. /* else factory trimming is used (factory setting are available at reset)*/
  17846. /* SW Nothing has nothing to do */
  17847. /* Get the DAC MCR value */
  17848. tmpreg1 = hdac->Instance->MCR;
  17849. 8007a58: 68fb ldr r3, [r7, #12]
  17850. 8007a5a: 681b ldr r3, [r3, #0]
  17851. 8007a5c: 6bdb ldr r3, [r3, #60] @ 0x3c
  17852. 8007a5e: 61bb str r3, [r7, #24]
  17853. /* Clear DAC_MCR_MODEx bits */
  17854. tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL));
  17855. 8007a60: 687b ldr r3, [r7, #4]
  17856. 8007a62: f003 0310 and.w r3, r3, #16
  17857. 8007a66: 2207 movs r2, #7
  17858. 8007a68: fa02 f303 lsl.w r3, r2, r3
  17859. 8007a6c: 43db mvns r3, r3
  17860. 8007a6e: 69ba ldr r2, [r7, #24]
  17861. 8007a70: 4013 ands r3, r2
  17862. 8007a72: 61bb str r3, [r7, #24]
  17863. /* Configure for the selected DAC channel: mode, buffer output & on chip peripheral connect */
  17864. if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_EXTERNAL)
  17865. 8007a74: 68bb ldr r3, [r7, #8]
  17866. 8007a76: 68db ldr r3, [r3, #12]
  17867. 8007a78: 2b01 cmp r3, #1
  17868. 8007a7a: d102 bne.n 8007a82 <HAL_DAC_ConfigChannel+0x1a6>
  17869. {
  17870. connectOnChip = 0x00000000UL;
  17871. 8007a7c: 2300 movs r3, #0
  17872. 8007a7e: 627b str r3, [r7, #36] @ 0x24
  17873. 8007a80: e00f b.n 8007aa2 <HAL_DAC_ConfigChannel+0x1c6>
  17874. }
  17875. else if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_INTERNAL)
  17876. 8007a82: 68bb ldr r3, [r7, #8]
  17877. 8007a84: 68db ldr r3, [r3, #12]
  17878. 8007a86: 2b02 cmp r3, #2
  17879. 8007a88: d102 bne.n 8007a90 <HAL_DAC_ConfigChannel+0x1b4>
  17880. {
  17881. connectOnChip = DAC_MCR_MODE1_0;
  17882. 8007a8a: 2301 movs r3, #1
  17883. 8007a8c: 627b str r3, [r7, #36] @ 0x24
  17884. 8007a8e: e008 b.n 8007aa2 <HAL_DAC_ConfigChannel+0x1c6>
  17885. }
  17886. else /* (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_BOTH) */
  17887. {
  17888. if (sConfig->DAC_OutputBuffer == DAC_OUTPUTBUFFER_ENABLE)
  17889. 8007a90: 68bb ldr r3, [r7, #8]
  17890. 8007a92: 689b ldr r3, [r3, #8]
  17891. 8007a94: 2b00 cmp r3, #0
  17892. 8007a96: d102 bne.n 8007a9e <HAL_DAC_ConfigChannel+0x1c2>
  17893. {
  17894. connectOnChip = DAC_MCR_MODE1_0;
  17895. 8007a98: 2301 movs r3, #1
  17896. 8007a9a: 627b str r3, [r7, #36] @ 0x24
  17897. 8007a9c: e001 b.n 8007aa2 <HAL_DAC_ConfigChannel+0x1c6>
  17898. }
  17899. else
  17900. {
  17901. connectOnChip = 0x00000000UL;
  17902. 8007a9e: 2300 movs r3, #0
  17903. 8007aa0: 627b str r3, [r7, #36] @ 0x24
  17904. }
  17905. }
  17906. tmpreg2 = (sConfig->DAC_SampleAndHold | sConfig->DAC_OutputBuffer | connectOnChip);
  17907. 8007aa2: 68bb ldr r3, [r7, #8]
  17908. 8007aa4: 681a ldr r2, [r3, #0]
  17909. 8007aa6: 68bb ldr r3, [r7, #8]
  17910. 8007aa8: 689b ldr r3, [r3, #8]
  17911. 8007aaa: 4313 orrs r3, r2
  17912. 8007aac: 6a7a ldr r2, [r7, #36] @ 0x24
  17913. 8007aae: 4313 orrs r3, r2
  17914. 8007ab0: 617b str r3, [r7, #20]
  17915. /* Calculate MCR register value depending on DAC_Channel */
  17916. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  17917. 8007ab2: 687b ldr r3, [r7, #4]
  17918. 8007ab4: f003 0310 and.w r3, r3, #16
  17919. 8007ab8: 697a ldr r2, [r7, #20]
  17920. 8007aba: fa02 f303 lsl.w r3, r2, r3
  17921. 8007abe: 69ba ldr r2, [r7, #24]
  17922. 8007ac0: 4313 orrs r3, r2
  17923. 8007ac2: 61bb str r3, [r7, #24]
  17924. /* Write to DAC MCR */
  17925. hdac->Instance->MCR = tmpreg1;
  17926. 8007ac4: 68fb ldr r3, [r7, #12]
  17927. 8007ac6: 681b ldr r3, [r3, #0]
  17928. 8007ac8: 69ba ldr r2, [r7, #24]
  17929. 8007aca: 63da str r2, [r3, #60] @ 0x3c
  17930. /* DAC in normal operating mode hence clear DAC_CR_CENx bit */
  17931. CLEAR_BIT(hdac->Instance->CR, DAC_CR_CEN1 << (Channel & 0x10UL));
  17932. 8007acc: 68fb ldr r3, [r7, #12]
  17933. 8007ace: 681b ldr r3, [r3, #0]
  17934. 8007ad0: 6819 ldr r1, [r3, #0]
  17935. 8007ad2: 687b ldr r3, [r7, #4]
  17936. 8007ad4: f003 0310 and.w r3, r3, #16
  17937. 8007ad8: f44f 4280 mov.w r2, #16384 @ 0x4000
  17938. 8007adc: fa02 f303 lsl.w r3, r2, r3
  17939. 8007ae0: 43da mvns r2, r3
  17940. 8007ae2: 68fb ldr r3, [r7, #12]
  17941. 8007ae4: 681b ldr r3, [r3, #0]
  17942. 8007ae6: 400a ands r2, r1
  17943. 8007ae8: 601a str r2, [r3, #0]
  17944. /* Get the DAC CR value */
  17945. tmpreg1 = hdac->Instance->CR;
  17946. 8007aea: 68fb ldr r3, [r7, #12]
  17947. 8007aec: 681b ldr r3, [r3, #0]
  17948. 8007aee: 681b ldr r3, [r3, #0]
  17949. 8007af0: 61bb str r3, [r7, #24]
  17950. /* Clear TENx, TSELx, WAVEx and MAMPx bits */
  17951. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1)) << (Channel & 0x10UL));
  17952. 8007af2: 687b ldr r3, [r7, #4]
  17953. 8007af4: f003 0310 and.w r3, r3, #16
  17954. 8007af8: f640 72fe movw r2, #4094 @ 0xffe
  17955. 8007afc: fa02 f303 lsl.w r3, r2, r3
  17956. 8007b00: 43db mvns r3, r3
  17957. 8007b02: 69ba ldr r2, [r7, #24]
  17958. 8007b04: 4013 ands r3, r2
  17959. 8007b06: 61bb str r3, [r7, #24]
  17960. /* Configure for the selected DAC channel: trigger */
  17961. /* Set TSELx and TENx bits according to DAC_Trigger value */
  17962. tmpreg2 = sConfig->DAC_Trigger;
  17963. 8007b08: 68bb ldr r3, [r7, #8]
  17964. 8007b0a: 685b ldr r3, [r3, #4]
  17965. 8007b0c: 617b str r3, [r7, #20]
  17966. /* Calculate CR register value depending on DAC_Channel */
  17967. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  17968. 8007b0e: 687b ldr r3, [r7, #4]
  17969. 8007b10: f003 0310 and.w r3, r3, #16
  17970. 8007b14: 697a ldr r2, [r7, #20]
  17971. 8007b16: fa02 f303 lsl.w r3, r2, r3
  17972. 8007b1a: 69ba ldr r2, [r7, #24]
  17973. 8007b1c: 4313 orrs r3, r2
  17974. 8007b1e: 61bb str r3, [r7, #24]
  17975. /* Write to DAC CR */
  17976. hdac->Instance->CR = tmpreg1;
  17977. 8007b20: 68fb ldr r3, [r7, #12]
  17978. 8007b22: 681b ldr r3, [r3, #0]
  17979. 8007b24: 69ba ldr r2, [r7, #24]
  17980. 8007b26: 601a str r2, [r3, #0]
  17981. /* Disable wave generation */
  17982. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  17983. 8007b28: 68fb ldr r3, [r7, #12]
  17984. 8007b2a: 681b ldr r3, [r3, #0]
  17985. 8007b2c: 6819 ldr r1, [r3, #0]
  17986. 8007b2e: 687b ldr r3, [r7, #4]
  17987. 8007b30: f003 0310 and.w r3, r3, #16
  17988. 8007b34: 22c0 movs r2, #192 @ 0xc0
  17989. 8007b36: fa02 f303 lsl.w r3, r2, r3
  17990. 8007b3a: 43da mvns r2, r3
  17991. 8007b3c: 68fb ldr r3, [r7, #12]
  17992. 8007b3e: 681b ldr r3, [r3, #0]
  17993. 8007b40: 400a ands r2, r1
  17994. 8007b42: 601a str r2, [r3, #0]
  17995. /* Change DAC state */
  17996. hdac->State = HAL_DAC_STATE_READY;
  17997. 8007b44: 68fb ldr r3, [r7, #12]
  17998. 8007b46: 2201 movs r2, #1
  17999. 8007b48: 711a strb r2, [r3, #4]
  18000. /* Process unlocked */
  18001. __HAL_UNLOCK(hdac);
  18002. 8007b4a: 68fb ldr r3, [r7, #12]
  18003. 8007b4c: 2200 movs r2, #0
  18004. 8007b4e: 715a strb r2, [r3, #5]
  18005. /* Return function status */
  18006. return status;
  18007. 8007b50: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  18008. }
  18009. 8007b54: 4618 mov r0, r3
  18010. 8007b56: 3728 adds r7, #40 @ 0x28
  18011. 8007b58: 46bd mov sp, r7
  18012. 8007b5a: bd80 pop {r7, pc}
  18013. 8007b5c: 20008000 .word 0x20008000
  18014. 08007b60 <HAL_DACEx_DMAUnderrunCallbackCh2>:
  18015. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18016. * the configuration information for the specified DAC.
  18017. * @retval None
  18018. */
  18019. __weak void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac)
  18020. {
  18021. 8007b60: b480 push {r7}
  18022. 8007b62: b083 sub sp, #12
  18023. 8007b64: af00 add r7, sp, #0
  18024. 8007b66: 6078 str r0, [r7, #4]
  18025. UNUSED(hdac);
  18026. /* NOTE : This function should not be modified, when the callback is needed,
  18027. the HAL_DACEx_DMAUnderrunCallbackCh2 could be implemented in the user file
  18028. */
  18029. }
  18030. 8007b68: bf00 nop
  18031. 8007b6a: 370c adds r7, #12
  18032. 8007b6c: 46bd mov sp, r7
  18033. 8007b6e: f85d 7b04 ldr.w r7, [sp], #4
  18034. 8007b72: 4770 bx lr
  18035. 08007b74 <HAL_DMA_Init>:
  18036. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  18037. * the configuration information for the specified DMA Stream.
  18038. * @retval HAL status
  18039. */
  18040. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  18041. {
  18042. 8007b74: b580 push {r7, lr}
  18043. 8007b76: b086 sub sp, #24
  18044. 8007b78: af00 add r7, sp, #0
  18045. 8007b7a: 6078 str r0, [r7, #4]
  18046. uint32_t registerValue;
  18047. uint32_t tickstart = HAL_GetTick();
  18048. 8007b7c: f7fd fc5e bl 800543c <HAL_GetTick>
  18049. 8007b80: 6138 str r0, [r7, #16]
  18050. DMA_Base_Registers *regs_dma;
  18051. BDMA_Base_Registers *regs_bdma;
  18052. /* Check the DMA peripheral handle */
  18053. if(hdma == NULL)
  18054. 8007b82: 687b ldr r3, [r7, #4]
  18055. 8007b84: 2b00 cmp r3, #0
  18056. 8007b86: d101 bne.n 8007b8c <HAL_DMA_Init+0x18>
  18057. {
  18058. return HAL_ERROR;
  18059. 8007b88: 2301 movs r3, #1
  18060. 8007b8a: e316 b.n 80081ba <HAL_DMA_Init+0x646>
  18061. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  18062. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  18063. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  18064. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  18065. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  18066. 8007b8c: 687b ldr r3, [r7, #4]
  18067. 8007b8e: 681b ldr r3, [r3, #0]
  18068. 8007b90: 4a66 ldr r2, [pc, #408] @ (8007d2c <HAL_DMA_Init+0x1b8>)
  18069. 8007b92: 4293 cmp r3, r2
  18070. 8007b94: d04a beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18071. 8007b96: 687b ldr r3, [r7, #4]
  18072. 8007b98: 681b ldr r3, [r3, #0]
  18073. 8007b9a: 4a65 ldr r2, [pc, #404] @ (8007d30 <HAL_DMA_Init+0x1bc>)
  18074. 8007b9c: 4293 cmp r3, r2
  18075. 8007b9e: d045 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18076. 8007ba0: 687b ldr r3, [r7, #4]
  18077. 8007ba2: 681b ldr r3, [r3, #0]
  18078. 8007ba4: 4a63 ldr r2, [pc, #396] @ (8007d34 <HAL_DMA_Init+0x1c0>)
  18079. 8007ba6: 4293 cmp r3, r2
  18080. 8007ba8: d040 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18081. 8007baa: 687b ldr r3, [r7, #4]
  18082. 8007bac: 681b ldr r3, [r3, #0]
  18083. 8007bae: 4a62 ldr r2, [pc, #392] @ (8007d38 <HAL_DMA_Init+0x1c4>)
  18084. 8007bb0: 4293 cmp r3, r2
  18085. 8007bb2: d03b beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18086. 8007bb4: 687b ldr r3, [r7, #4]
  18087. 8007bb6: 681b ldr r3, [r3, #0]
  18088. 8007bb8: 4a60 ldr r2, [pc, #384] @ (8007d3c <HAL_DMA_Init+0x1c8>)
  18089. 8007bba: 4293 cmp r3, r2
  18090. 8007bbc: d036 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18091. 8007bbe: 687b ldr r3, [r7, #4]
  18092. 8007bc0: 681b ldr r3, [r3, #0]
  18093. 8007bc2: 4a5f ldr r2, [pc, #380] @ (8007d40 <HAL_DMA_Init+0x1cc>)
  18094. 8007bc4: 4293 cmp r3, r2
  18095. 8007bc6: d031 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18096. 8007bc8: 687b ldr r3, [r7, #4]
  18097. 8007bca: 681b ldr r3, [r3, #0]
  18098. 8007bcc: 4a5d ldr r2, [pc, #372] @ (8007d44 <HAL_DMA_Init+0x1d0>)
  18099. 8007bce: 4293 cmp r3, r2
  18100. 8007bd0: d02c beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18101. 8007bd2: 687b ldr r3, [r7, #4]
  18102. 8007bd4: 681b ldr r3, [r3, #0]
  18103. 8007bd6: 4a5c ldr r2, [pc, #368] @ (8007d48 <HAL_DMA_Init+0x1d4>)
  18104. 8007bd8: 4293 cmp r3, r2
  18105. 8007bda: d027 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18106. 8007bdc: 687b ldr r3, [r7, #4]
  18107. 8007bde: 681b ldr r3, [r3, #0]
  18108. 8007be0: 4a5a ldr r2, [pc, #360] @ (8007d4c <HAL_DMA_Init+0x1d8>)
  18109. 8007be2: 4293 cmp r3, r2
  18110. 8007be4: d022 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18111. 8007be6: 687b ldr r3, [r7, #4]
  18112. 8007be8: 681b ldr r3, [r3, #0]
  18113. 8007bea: 4a59 ldr r2, [pc, #356] @ (8007d50 <HAL_DMA_Init+0x1dc>)
  18114. 8007bec: 4293 cmp r3, r2
  18115. 8007bee: d01d beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18116. 8007bf0: 687b ldr r3, [r7, #4]
  18117. 8007bf2: 681b ldr r3, [r3, #0]
  18118. 8007bf4: 4a57 ldr r2, [pc, #348] @ (8007d54 <HAL_DMA_Init+0x1e0>)
  18119. 8007bf6: 4293 cmp r3, r2
  18120. 8007bf8: d018 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18121. 8007bfa: 687b ldr r3, [r7, #4]
  18122. 8007bfc: 681b ldr r3, [r3, #0]
  18123. 8007bfe: 4a56 ldr r2, [pc, #344] @ (8007d58 <HAL_DMA_Init+0x1e4>)
  18124. 8007c00: 4293 cmp r3, r2
  18125. 8007c02: d013 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18126. 8007c04: 687b ldr r3, [r7, #4]
  18127. 8007c06: 681b ldr r3, [r3, #0]
  18128. 8007c08: 4a54 ldr r2, [pc, #336] @ (8007d5c <HAL_DMA_Init+0x1e8>)
  18129. 8007c0a: 4293 cmp r3, r2
  18130. 8007c0c: d00e beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18131. 8007c0e: 687b ldr r3, [r7, #4]
  18132. 8007c10: 681b ldr r3, [r3, #0]
  18133. 8007c12: 4a53 ldr r2, [pc, #332] @ (8007d60 <HAL_DMA_Init+0x1ec>)
  18134. 8007c14: 4293 cmp r3, r2
  18135. 8007c16: d009 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18136. 8007c18: 687b ldr r3, [r7, #4]
  18137. 8007c1a: 681b ldr r3, [r3, #0]
  18138. 8007c1c: 4a51 ldr r2, [pc, #324] @ (8007d64 <HAL_DMA_Init+0x1f0>)
  18139. 8007c1e: 4293 cmp r3, r2
  18140. 8007c20: d004 beq.n 8007c2c <HAL_DMA_Init+0xb8>
  18141. 8007c22: 687b ldr r3, [r7, #4]
  18142. 8007c24: 681b ldr r3, [r3, #0]
  18143. 8007c26: 4a50 ldr r2, [pc, #320] @ (8007d68 <HAL_DMA_Init+0x1f4>)
  18144. 8007c28: 4293 cmp r3, r2
  18145. 8007c2a: d101 bne.n 8007c30 <HAL_DMA_Init+0xbc>
  18146. 8007c2c: 2301 movs r3, #1
  18147. 8007c2e: e000 b.n 8007c32 <HAL_DMA_Init+0xbe>
  18148. 8007c30: 2300 movs r3, #0
  18149. 8007c32: 2b00 cmp r3, #0
  18150. 8007c34: f000 813b beq.w 8007eae <HAL_DMA_Init+0x33a>
  18151. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  18152. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  18153. }
  18154. /* Change DMA peripheral state */
  18155. hdma->State = HAL_DMA_STATE_BUSY;
  18156. 8007c38: 687b ldr r3, [r7, #4]
  18157. 8007c3a: 2202 movs r2, #2
  18158. 8007c3c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18159. /* Allocate lock resource */
  18160. __HAL_UNLOCK(hdma);
  18161. 8007c40: 687b ldr r3, [r7, #4]
  18162. 8007c42: 2200 movs r2, #0
  18163. 8007c44: f883 2034 strb.w r2, [r3, #52] @ 0x34
  18164. /* Disable the peripheral */
  18165. __HAL_DMA_DISABLE(hdma);
  18166. 8007c48: 687b ldr r3, [r7, #4]
  18167. 8007c4a: 681b ldr r3, [r3, #0]
  18168. 8007c4c: 4a37 ldr r2, [pc, #220] @ (8007d2c <HAL_DMA_Init+0x1b8>)
  18169. 8007c4e: 4293 cmp r3, r2
  18170. 8007c50: d04a beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18171. 8007c52: 687b ldr r3, [r7, #4]
  18172. 8007c54: 681b ldr r3, [r3, #0]
  18173. 8007c56: 4a36 ldr r2, [pc, #216] @ (8007d30 <HAL_DMA_Init+0x1bc>)
  18174. 8007c58: 4293 cmp r3, r2
  18175. 8007c5a: d045 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18176. 8007c5c: 687b ldr r3, [r7, #4]
  18177. 8007c5e: 681b ldr r3, [r3, #0]
  18178. 8007c60: 4a34 ldr r2, [pc, #208] @ (8007d34 <HAL_DMA_Init+0x1c0>)
  18179. 8007c62: 4293 cmp r3, r2
  18180. 8007c64: d040 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18181. 8007c66: 687b ldr r3, [r7, #4]
  18182. 8007c68: 681b ldr r3, [r3, #0]
  18183. 8007c6a: 4a33 ldr r2, [pc, #204] @ (8007d38 <HAL_DMA_Init+0x1c4>)
  18184. 8007c6c: 4293 cmp r3, r2
  18185. 8007c6e: d03b beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18186. 8007c70: 687b ldr r3, [r7, #4]
  18187. 8007c72: 681b ldr r3, [r3, #0]
  18188. 8007c74: 4a31 ldr r2, [pc, #196] @ (8007d3c <HAL_DMA_Init+0x1c8>)
  18189. 8007c76: 4293 cmp r3, r2
  18190. 8007c78: d036 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18191. 8007c7a: 687b ldr r3, [r7, #4]
  18192. 8007c7c: 681b ldr r3, [r3, #0]
  18193. 8007c7e: 4a30 ldr r2, [pc, #192] @ (8007d40 <HAL_DMA_Init+0x1cc>)
  18194. 8007c80: 4293 cmp r3, r2
  18195. 8007c82: d031 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18196. 8007c84: 687b ldr r3, [r7, #4]
  18197. 8007c86: 681b ldr r3, [r3, #0]
  18198. 8007c88: 4a2e ldr r2, [pc, #184] @ (8007d44 <HAL_DMA_Init+0x1d0>)
  18199. 8007c8a: 4293 cmp r3, r2
  18200. 8007c8c: d02c beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18201. 8007c8e: 687b ldr r3, [r7, #4]
  18202. 8007c90: 681b ldr r3, [r3, #0]
  18203. 8007c92: 4a2d ldr r2, [pc, #180] @ (8007d48 <HAL_DMA_Init+0x1d4>)
  18204. 8007c94: 4293 cmp r3, r2
  18205. 8007c96: d027 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18206. 8007c98: 687b ldr r3, [r7, #4]
  18207. 8007c9a: 681b ldr r3, [r3, #0]
  18208. 8007c9c: 4a2b ldr r2, [pc, #172] @ (8007d4c <HAL_DMA_Init+0x1d8>)
  18209. 8007c9e: 4293 cmp r3, r2
  18210. 8007ca0: d022 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18211. 8007ca2: 687b ldr r3, [r7, #4]
  18212. 8007ca4: 681b ldr r3, [r3, #0]
  18213. 8007ca6: 4a2a ldr r2, [pc, #168] @ (8007d50 <HAL_DMA_Init+0x1dc>)
  18214. 8007ca8: 4293 cmp r3, r2
  18215. 8007caa: d01d beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18216. 8007cac: 687b ldr r3, [r7, #4]
  18217. 8007cae: 681b ldr r3, [r3, #0]
  18218. 8007cb0: 4a28 ldr r2, [pc, #160] @ (8007d54 <HAL_DMA_Init+0x1e0>)
  18219. 8007cb2: 4293 cmp r3, r2
  18220. 8007cb4: d018 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18221. 8007cb6: 687b ldr r3, [r7, #4]
  18222. 8007cb8: 681b ldr r3, [r3, #0]
  18223. 8007cba: 4a27 ldr r2, [pc, #156] @ (8007d58 <HAL_DMA_Init+0x1e4>)
  18224. 8007cbc: 4293 cmp r3, r2
  18225. 8007cbe: d013 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18226. 8007cc0: 687b ldr r3, [r7, #4]
  18227. 8007cc2: 681b ldr r3, [r3, #0]
  18228. 8007cc4: 4a25 ldr r2, [pc, #148] @ (8007d5c <HAL_DMA_Init+0x1e8>)
  18229. 8007cc6: 4293 cmp r3, r2
  18230. 8007cc8: d00e beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18231. 8007cca: 687b ldr r3, [r7, #4]
  18232. 8007ccc: 681b ldr r3, [r3, #0]
  18233. 8007cce: 4a24 ldr r2, [pc, #144] @ (8007d60 <HAL_DMA_Init+0x1ec>)
  18234. 8007cd0: 4293 cmp r3, r2
  18235. 8007cd2: d009 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18236. 8007cd4: 687b ldr r3, [r7, #4]
  18237. 8007cd6: 681b ldr r3, [r3, #0]
  18238. 8007cd8: 4a22 ldr r2, [pc, #136] @ (8007d64 <HAL_DMA_Init+0x1f0>)
  18239. 8007cda: 4293 cmp r3, r2
  18240. 8007cdc: d004 beq.n 8007ce8 <HAL_DMA_Init+0x174>
  18241. 8007cde: 687b ldr r3, [r7, #4]
  18242. 8007ce0: 681b ldr r3, [r3, #0]
  18243. 8007ce2: 4a21 ldr r2, [pc, #132] @ (8007d68 <HAL_DMA_Init+0x1f4>)
  18244. 8007ce4: 4293 cmp r3, r2
  18245. 8007ce6: d108 bne.n 8007cfa <HAL_DMA_Init+0x186>
  18246. 8007ce8: 687b ldr r3, [r7, #4]
  18247. 8007cea: 681b ldr r3, [r3, #0]
  18248. 8007cec: 681a ldr r2, [r3, #0]
  18249. 8007cee: 687b ldr r3, [r7, #4]
  18250. 8007cf0: 681b ldr r3, [r3, #0]
  18251. 8007cf2: f022 0201 bic.w r2, r2, #1
  18252. 8007cf6: 601a str r2, [r3, #0]
  18253. 8007cf8: e007 b.n 8007d0a <HAL_DMA_Init+0x196>
  18254. 8007cfa: 687b ldr r3, [r7, #4]
  18255. 8007cfc: 681b ldr r3, [r3, #0]
  18256. 8007cfe: 681a ldr r2, [r3, #0]
  18257. 8007d00: 687b ldr r3, [r7, #4]
  18258. 8007d02: 681b ldr r3, [r3, #0]
  18259. 8007d04: f022 0201 bic.w r2, r2, #1
  18260. 8007d08: 601a str r2, [r3, #0]
  18261. /* Check if the DMA Stream is effectively disabled */
  18262. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  18263. 8007d0a: e02f b.n 8007d6c <HAL_DMA_Init+0x1f8>
  18264. {
  18265. /* Check for the Timeout */
  18266. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  18267. 8007d0c: f7fd fb96 bl 800543c <HAL_GetTick>
  18268. 8007d10: 4602 mov r2, r0
  18269. 8007d12: 693b ldr r3, [r7, #16]
  18270. 8007d14: 1ad3 subs r3, r2, r3
  18271. 8007d16: 2b05 cmp r3, #5
  18272. 8007d18: d928 bls.n 8007d6c <HAL_DMA_Init+0x1f8>
  18273. {
  18274. /* Update error code */
  18275. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  18276. 8007d1a: 687b ldr r3, [r7, #4]
  18277. 8007d1c: 2220 movs r2, #32
  18278. 8007d1e: 655a str r2, [r3, #84] @ 0x54
  18279. /* Change the DMA state */
  18280. hdma->State = HAL_DMA_STATE_ERROR;
  18281. 8007d20: 687b ldr r3, [r7, #4]
  18282. 8007d22: 2203 movs r2, #3
  18283. 8007d24: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18284. return HAL_ERROR;
  18285. 8007d28: 2301 movs r3, #1
  18286. 8007d2a: e246 b.n 80081ba <HAL_DMA_Init+0x646>
  18287. 8007d2c: 40020010 .word 0x40020010
  18288. 8007d30: 40020028 .word 0x40020028
  18289. 8007d34: 40020040 .word 0x40020040
  18290. 8007d38: 40020058 .word 0x40020058
  18291. 8007d3c: 40020070 .word 0x40020070
  18292. 8007d40: 40020088 .word 0x40020088
  18293. 8007d44: 400200a0 .word 0x400200a0
  18294. 8007d48: 400200b8 .word 0x400200b8
  18295. 8007d4c: 40020410 .word 0x40020410
  18296. 8007d50: 40020428 .word 0x40020428
  18297. 8007d54: 40020440 .word 0x40020440
  18298. 8007d58: 40020458 .word 0x40020458
  18299. 8007d5c: 40020470 .word 0x40020470
  18300. 8007d60: 40020488 .word 0x40020488
  18301. 8007d64: 400204a0 .word 0x400204a0
  18302. 8007d68: 400204b8 .word 0x400204b8
  18303. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  18304. 8007d6c: 687b ldr r3, [r7, #4]
  18305. 8007d6e: 681b ldr r3, [r3, #0]
  18306. 8007d70: 681b ldr r3, [r3, #0]
  18307. 8007d72: f003 0301 and.w r3, r3, #1
  18308. 8007d76: 2b00 cmp r3, #0
  18309. 8007d78: d1c8 bne.n 8007d0c <HAL_DMA_Init+0x198>
  18310. }
  18311. }
  18312. /* Get the CR register value */
  18313. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  18314. 8007d7a: 687b ldr r3, [r7, #4]
  18315. 8007d7c: 681b ldr r3, [r3, #0]
  18316. 8007d7e: 681b ldr r3, [r3, #0]
  18317. 8007d80: 617b str r3, [r7, #20]
  18318. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  18319. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  18320. 8007d82: 697a ldr r2, [r7, #20]
  18321. 8007d84: 4b83 ldr r3, [pc, #524] @ (8007f94 <HAL_DMA_Init+0x420>)
  18322. 8007d86: 4013 ands r3, r2
  18323. 8007d88: 617b str r3, [r7, #20]
  18324. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  18325. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  18326. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  18327. /* Prepare the DMA Stream configuration */
  18328. registerValue |= hdma->Init.Direction |
  18329. 8007d8a: 687b ldr r3, [r7, #4]
  18330. 8007d8c: 689a ldr r2, [r3, #8]
  18331. hdma->Init.PeriphInc | hdma->Init.MemInc |
  18332. 8007d8e: 687b ldr r3, [r7, #4]
  18333. 8007d90: 68db ldr r3, [r3, #12]
  18334. registerValue |= hdma->Init.Direction |
  18335. 8007d92: 431a orrs r2, r3
  18336. hdma->Init.PeriphInc | hdma->Init.MemInc |
  18337. 8007d94: 687b ldr r3, [r7, #4]
  18338. 8007d96: 691b ldr r3, [r3, #16]
  18339. 8007d98: 431a orrs r2, r3
  18340. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  18341. 8007d9a: 687b ldr r3, [r7, #4]
  18342. 8007d9c: 695b ldr r3, [r3, #20]
  18343. hdma->Init.PeriphInc | hdma->Init.MemInc |
  18344. 8007d9e: 431a orrs r2, r3
  18345. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  18346. 8007da0: 687b ldr r3, [r7, #4]
  18347. 8007da2: 699b ldr r3, [r3, #24]
  18348. 8007da4: 431a orrs r2, r3
  18349. hdma->Init.Mode | hdma->Init.Priority;
  18350. 8007da6: 687b ldr r3, [r7, #4]
  18351. 8007da8: 69db ldr r3, [r3, #28]
  18352. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  18353. 8007daa: 431a orrs r2, r3
  18354. hdma->Init.Mode | hdma->Init.Priority;
  18355. 8007dac: 687b ldr r3, [r7, #4]
  18356. 8007dae: 6a1b ldr r3, [r3, #32]
  18357. 8007db0: 4313 orrs r3, r2
  18358. registerValue |= hdma->Init.Direction |
  18359. 8007db2: 697a ldr r2, [r7, #20]
  18360. 8007db4: 4313 orrs r3, r2
  18361. 8007db6: 617b str r3, [r7, #20]
  18362. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  18363. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  18364. 8007db8: 687b ldr r3, [r7, #4]
  18365. 8007dba: 6a5b ldr r3, [r3, #36] @ 0x24
  18366. 8007dbc: 2b04 cmp r3, #4
  18367. 8007dbe: d107 bne.n 8007dd0 <HAL_DMA_Init+0x25c>
  18368. {
  18369. /* Get memory burst and peripheral burst */
  18370. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  18371. 8007dc0: 687b ldr r3, [r7, #4]
  18372. 8007dc2: 6ada ldr r2, [r3, #44] @ 0x2c
  18373. 8007dc4: 687b ldr r3, [r7, #4]
  18374. 8007dc6: 6b1b ldr r3, [r3, #48] @ 0x30
  18375. 8007dc8: 4313 orrs r3, r2
  18376. 8007dca: 697a ldr r2, [r7, #20]
  18377. 8007dcc: 4313 orrs r3, r2
  18378. 8007dce: 617b str r3, [r7, #20]
  18379. }
  18380. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  18381. lock when transferring data to/from USART/UART */
  18382. #if (STM32H7_DEV_ID == 0x450UL)
  18383. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  18384. 8007dd0: 4b71 ldr r3, [pc, #452] @ (8007f98 <HAL_DMA_Init+0x424>)
  18385. 8007dd2: 681a ldr r2, [r3, #0]
  18386. 8007dd4: 4b71 ldr r3, [pc, #452] @ (8007f9c <HAL_DMA_Init+0x428>)
  18387. 8007dd6: 4013 ands r3, r2
  18388. 8007dd8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  18389. 8007ddc: d328 bcc.n 8007e30 <HAL_DMA_Init+0x2bc>
  18390. {
  18391. #endif /* STM32H7_DEV_ID == 0x450UL */
  18392. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  18393. 8007dde: 687b ldr r3, [r7, #4]
  18394. 8007de0: 685b ldr r3, [r3, #4]
  18395. 8007de2: 2b28 cmp r3, #40 @ 0x28
  18396. 8007de4: d903 bls.n 8007dee <HAL_DMA_Init+0x27a>
  18397. 8007de6: 687b ldr r3, [r7, #4]
  18398. 8007de8: 685b ldr r3, [r3, #4]
  18399. 8007dea: 2b2e cmp r3, #46 @ 0x2e
  18400. 8007dec: d917 bls.n 8007e1e <HAL_DMA_Init+0x2aa>
  18401. 8007dee: 687b ldr r3, [r7, #4]
  18402. 8007df0: 685b ldr r3, [r3, #4]
  18403. 8007df2: 2b3e cmp r3, #62 @ 0x3e
  18404. 8007df4: d903 bls.n 8007dfe <HAL_DMA_Init+0x28a>
  18405. 8007df6: 687b ldr r3, [r7, #4]
  18406. 8007df8: 685b ldr r3, [r3, #4]
  18407. 8007dfa: 2b42 cmp r3, #66 @ 0x42
  18408. 8007dfc: d90f bls.n 8007e1e <HAL_DMA_Init+0x2aa>
  18409. 8007dfe: 687b ldr r3, [r7, #4]
  18410. 8007e00: 685b ldr r3, [r3, #4]
  18411. 8007e02: 2b46 cmp r3, #70 @ 0x46
  18412. 8007e04: d903 bls.n 8007e0e <HAL_DMA_Init+0x29a>
  18413. 8007e06: 687b ldr r3, [r7, #4]
  18414. 8007e08: 685b ldr r3, [r3, #4]
  18415. 8007e0a: 2b48 cmp r3, #72 @ 0x48
  18416. 8007e0c: d907 bls.n 8007e1e <HAL_DMA_Init+0x2aa>
  18417. 8007e0e: 687b ldr r3, [r7, #4]
  18418. 8007e10: 685b ldr r3, [r3, #4]
  18419. 8007e12: 2b4e cmp r3, #78 @ 0x4e
  18420. 8007e14: d905 bls.n 8007e22 <HAL_DMA_Init+0x2ae>
  18421. 8007e16: 687b ldr r3, [r7, #4]
  18422. 8007e18: 685b ldr r3, [r3, #4]
  18423. 8007e1a: 2b52 cmp r3, #82 @ 0x52
  18424. 8007e1c: d801 bhi.n 8007e22 <HAL_DMA_Init+0x2ae>
  18425. 8007e1e: 2301 movs r3, #1
  18426. 8007e20: e000 b.n 8007e24 <HAL_DMA_Init+0x2b0>
  18427. 8007e22: 2300 movs r3, #0
  18428. 8007e24: 2b00 cmp r3, #0
  18429. 8007e26: d003 beq.n 8007e30 <HAL_DMA_Init+0x2bc>
  18430. {
  18431. registerValue |= DMA_SxCR_TRBUFF;
  18432. 8007e28: 697b ldr r3, [r7, #20]
  18433. 8007e2a: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  18434. 8007e2e: 617b str r3, [r7, #20]
  18435. #if (STM32H7_DEV_ID == 0x450UL)
  18436. }
  18437. #endif /* STM32H7_DEV_ID == 0x450UL */
  18438. /* Write to DMA Stream CR register */
  18439. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  18440. 8007e30: 687b ldr r3, [r7, #4]
  18441. 8007e32: 681b ldr r3, [r3, #0]
  18442. 8007e34: 697a ldr r2, [r7, #20]
  18443. 8007e36: 601a str r2, [r3, #0]
  18444. /* Get the FCR register value */
  18445. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  18446. 8007e38: 687b ldr r3, [r7, #4]
  18447. 8007e3a: 681b ldr r3, [r3, #0]
  18448. 8007e3c: 695b ldr r3, [r3, #20]
  18449. 8007e3e: 617b str r3, [r7, #20]
  18450. /* Clear Direct mode and FIFO threshold bits */
  18451. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  18452. 8007e40: 697b ldr r3, [r7, #20]
  18453. 8007e42: f023 0307 bic.w r3, r3, #7
  18454. 8007e46: 617b str r3, [r7, #20]
  18455. /* Prepare the DMA Stream FIFO configuration */
  18456. registerValue |= hdma->Init.FIFOMode;
  18457. 8007e48: 687b ldr r3, [r7, #4]
  18458. 8007e4a: 6a5b ldr r3, [r3, #36] @ 0x24
  18459. 8007e4c: 697a ldr r2, [r7, #20]
  18460. 8007e4e: 4313 orrs r3, r2
  18461. 8007e50: 617b str r3, [r7, #20]
  18462. /* the FIFO threshold is not used when the FIFO mode is disabled */
  18463. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  18464. 8007e52: 687b ldr r3, [r7, #4]
  18465. 8007e54: 6a5b ldr r3, [r3, #36] @ 0x24
  18466. 8007e56: 2b04 cmp r3, #4
  18467. 8007e58: d117 bne.n 8007e8a <HAL_DMA_Init+0x316>
  18468. {
  18469. /* Get the FIFO threshold */
  18470. registerValue |= hdma->Init.FIFOThreshold;
  18471. 8007e5a: 687b ldr r3, [r7, #4]
  18472. 8007e5c: 6a9b ldr r3, [r3, #40] @ 0x28
  18473. 8007e5e: 697a ldr r2, [r7, #20]
  18474. 8007e60: 4313 orrs r3, r2
  18475. 8007e62: 617b str r3, [r7, #20]
  18476. /* Check compatibility between FIFO threshold level and size of the memory burst */
  18477. /* for INCR4, INCR8, INCR16 */
  18478. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  18479. 8007e64: 687b ldr r3, [r7, #4]
  18480. 8007e66: 6adb ldr r3, [r3, #44] @ 0x2c
  18481. 8007e68: 2b00 cmp r3, #0
  18482. 8007e6a: d00e beq.n 8007e8a <HAL_DMA_Init+0x316>
  18483. {
  18484. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  18485. 8007e6c: 6878 ldr r0, [r7, #4]
  18486. 8007e6e: f002 fb33 bl 800a4d8 <DMA_CheckFifoParam>
  18487. 8007e72: 4603 mov r3, r0
  18488. 8007e74: 2b00 cmp r3, #0
  18489. 8007e76: d008 beq.n 8007e8a <HAL_DMA_Init+0x316>
  18490. {
  18491. /* Update error code */
  18492. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  18493. 8007e78: 687b ldr r3, [r7, #4]
  18494. 8007e7a: 2240 movs r2, #64 @ 0x40
  18495. 8007e7c: 655a str r2, [r3, #84] @ 0x54
  18496. /* Change the DMA state */
  18497. hdma->State = HAL_DMA_STATE_READY;
  18498. 8007e7e: 687b ldr r3, [r7, #4]
  18499. 8007e80: 2201 movs r2, #1
  18500. 8007e82: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18501. return HAL_ERROR;
  18502. 8007e86: 2301 movs r3, #1
  18503. 8007e88: e197 b.n 80081ba <HAL_DMA_Init+0x646>
  18504. }
  18505. }
  18506. }
  18507. /* Write to DMA Stream FCR */
  18508. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  18509. 8007e8a: 687b ldr r3, [r7, #4]
  18510. 8007e8c: 681b ldr r3, [r3, #0]
  18511. 8007e8e: 697a ldr r2, [r7, #20]
  18512. 8007e90: 615a str r2, [r3, #20]
  18513. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  18514. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  18515. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  18516. 8007e92: 6878 ldr r0, [r7, #4]
  18517. 8007e94: f002 fa6e bl 800a374 <DMA_CalcBaseAndBitshift>
  18518. 8007e98: 4603 mov r3, r0
  18519. 8007e9a: 60bb str r3, [r7, #8]
  18520. /* Clear all interrupt flags */
  18521. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  18522. 8007e9c: 687b ldr r3, [r7, #4]
  18523. 8007e9e: 6ddb ldr r3, [r3, #92] @ 0x5c
  18524. 8007ea0: f003 031f and.w r3, r3, #31
  18525. 8007ea4: 223f movs r2, #63 @ 0x3f
  18526. 8007ea6: 409a lsls r2, r3
  18527. 8007ea8: 68bb ldr r3, [r7, #8]
  18528. 8007eaa: 609a str r2, [r3, #8]
  18529. 8007eac: e0cd b.n 800804a <HAL_DMA_Init+0x4d6>
  18530. }
  18531. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  18532. 8007eae: 687b ldr r3, [r7, #4]
  18533. 8007eb0: 681b ldr r3, [r3, #0]
  18534. 8007eb2: 4a3b ldr r2, [pc, #236] @ (8007fa0 <HAL_DMA_Init+0x42c>)
  18535. 8007eb4: 4293 cmp r3, r2
  18536. 8007eb6: d022 beq.n 8007efe <HAL_DMA_Init+0x38a>
  18537. 8007eb8: 687b ldr r3, [r7, #4]
  18538. 8007eba: 681b ldr r3, [r3, #0]
  18539. 8007ebc: 4a39 ldr r2, [pc, #228] @ (8007fa4 <HAL_DMA_Init+0x430>)
  18540. 8007ebe: 4293 cmp r3, r2
  18541. 8007ec0: d01d beq.n 8007efe <HAL_DMA_Init+0x38a>
  18542. 8007ec2: 687b ldr r3, [r7, #4]
  18543. 8007ec4: 681b ldr r3, [r3, #0]
  18544. 8007ec6: 4a38 ldr r2, [pc, #224] @ (8007fa8 <HAL_DMA_Init+0x434>)
  18545. 8007ec8: 4293 cmp r3, r2
  18546. 8007eca: d018 beq.n 8007efe <HAL_DMA_Init+0x38a>
  18547. 8007ecc: 687b ldr r3, [r7, #4]
  18548. 8007ece: 681b ldr r3, [r3, #0]
  18549. 8007ed0: 4a36 ldr r2, [pc, #216] @ (8007fac <HAL_DMA_Init+0x438>)
  18550. 8007ed2: 4293 cmp r3, r2
  18551. 8007ed4: d013 beq.n 8007efe <HAL_DMA_Init+0x38a>
  18552. 8007ed6: 687b ldr r3, [r7, #4]
  18553. 8007ed8: 681b ldr r3, [r3, #0]
  18554. 8007eda: 4a35 ldr r2, [pc, #212] @ (8007fb0 <HAL_DMA_Init+0x43c>)
  18555. 8007edc: 4293 cmp r3, r2
  18556. 8007ede: d00e beq.n 8007efe <HAL_DMA_Init+0x38a>
  18557. 8007ee0: 687b ldr r3, [r7, #4]
  18558. 8007ee2: 681b ldr r3, [r3, #0]
  18559. 8007ee4: 4a33 ldr r2, [pc, #204] @ (8007fb4 <HAL_DMA_Init+0x440>)
  18560. 8007ee6: 4293 cmp r3, r2
  18561. 8007ee8: d009 beq.n 8007efe <HAL_DMA_Init+0x38a>
  18562. 8007eea: 687b ldr r3, [r7, #4]
  18563. 8007eec: 681b ldr r3, [r3, #0]
  18564. 8007eee: 4a32 ldr r2, [pc, #200] @ (8007fb8 <HAL_DMA_Init+0x444>)
  18565. 8007ef0: 4293 cmp r3, r2
  18566. 8007ef2: d004 beq.n 8007efe <HAL_DMA_Init+0x38a>
  18567. 8007ef4: 687b ldr r3, [r7, #4]
  18568. 8007ef6: 681b ldr r3, [r3, #0]
  18569. 8007ef8: 4a30 ldr r2, [pc, #192] @ (8007fbc <HAL_DMA_Init+0x448>)
  18570. 8007efa: 4293 cmp r3, r2
  18571. 8007efc: d101 bne.n 8007f02 <HAL_DMA_Init+0x38e>
  18572. 8007efe: 2301 movs r3, #1
  18573. 8007f00: e000 b.n 8007f04 <HAL_DMA_Init+0x390>
  18574. 8007f02: 2300 movs r3, #0
  18575. 8007f04: 2b00 cmp r3, #0
  18576. 8007f06: f000 8097 beq.w 8008038 <HAL_DMA_Init+0x4c4>
  18577. {
  18578. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  18579. 8007f0a: 687b ldr r3, [r7, #4]
  18580. 8007f0c: 681b ldr r3, [r3, #0]
  18581. 8007f0e: 4a24 ldr r2, [pc, #144] @ (8007fa0 <HAL_DMA_Init+0x42c>)
  18582. 8007f10: 4293 cmp r3, r2
  18583. 8007f12: d021 beq.n 8007f58 <HAL_DMA_Init+0x3e4>
  18584. 8007f14: 687b ldr r3, [r7, #4]
  18585. 8007f16: 681b ldr r3, [r3, #0]
  18586. 8007f18: 4a22 ldr r2, [pc, #136] @ (8007fa4 <HAL_DMA_Init+0x430>)
  18587. 8007f1a: 4293 cmp r3, r2
  18588. 8007f1c: d01c beq.n 8007f58 <HAL_DMA_Init+0x3e4>
  18589. 8007f1e: 687b ldr r3, [r7, #4]
  18590. 8007f20: 681b ldr r3, [r3, #0]
  18591. 8007f22: 4a21 ldr r2, [pc, #132] @ (8007fa8 <HAL_DMA_Init+0x434>)
  18592. 8007f24: 4293 cmp r3, r2
  18593. 8007f26: d017 beq.n 8007f58 <HAL_DMA_Init+0x3e4>
  18594. 8007f28: 687b ldr r3, [r7, #4]
  18595. 8007f2a: 681b ldr r3, [r3, #0]
  18596. 8007f2c: 4a1f ldr r2, [pc, #124] @ (8007fac <HAL_DMA_Init+0x438>)
  18597. 8007f2e: 4293 cmp r3, r2
  18598. 8007f30: d012 beq.n 8007f58 <HAL_DMA_Init+0x3e4>
  18599. 8007f32: 687b ldr r3, [r7, #4]
  18600. 8007f34: 681b ldr r3, [r3, #0]
  18601. 8007f36: 4a1e ldr r2, [pc, #120] @ (8007fb0 <HAL_DMA_Init+0x43c>)
  18602. 8007f38: 4293 cmp r3, r2
  18603. 8007f3a: d00d beq.n 8007f58 <HAL_DMA_Init+0x3e4>
  18604. 8007f3c: 687b ldr r3, [r7, #4]
  18605. 8007f3e: 681b ldr r3, [r3, #0]
  18606. 8007f40: 4a1c ldr r2, [pc, #112] @ (8007fb4 <HAL_DMA_Init+0x440>)
  18607. 8007f42: 4293 cmp r3, r2
  18608. 8007f44: d008 beq.n 8007f58 <HAL_DMA_Init+0x3e4>
  18609. 8007f46: 687b ldr r3, [r7, #4]
  18610. 8007f48: 681b ldr r3, [r3, #0]
  18611. 8007f4a: 4a1b ldr r2, [pc, #108] @ (8007fb8 <HAL_DMA_Init+0x444>)
  18612. 8007f4c: 4293 cmp r3, r2
  18613. 8007f4e: d003 beq.n 8007f58 <HAL_DMA_Init+0x3e4>
  18614. 8007f50: 687b ldr r3, [r7, #4]
  18615. 8007f52: 681b ldr r3, [r3, #0]
  18616. 8007f54: 4a19 ldr r2, [pc, #100] @ (8007fbc <HAL_DMA_Init+0x448>)
  18617. 8007f56: 4293 cmp r3, r2
  18618. /* Check the request parameter */
  18619. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  18620. }
  18621. /* Change DMA peripheral state */
  18622. hdma->State = HAL_DMA_STATE_BUSY;
  18623. 8007f58: 687b ldr r3, [r7, #4]
  18624. 8007f5a: 2202 movs r2, #2
  18625. 8007f5c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18626. /* Allocate lock resource */
  18627. __HAL_UNLOCK(hdma);
  18628. 8007f60: 687b ldr r3, [r7, #4]
  18629. 8007f62: 2200 movs r2, #0
  18630. 8007f64: f883 2034 strb.w r2, [r3, #52] @ 0x34
  18631. /* Get the CR register value */
  18632. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  18633. 8007f68: 687b ldr r3, [r7, #4]
  18634. 8007f6a: 681b ldr r3, [r3, #0]
  18635. 8007f6c: 681b ldr r3, [r3, #0]
  18636. 8007f6e: 617b str r3, [r7, #20]
  18637. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  18638. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  18639. 8007f70: 697a ldr r2, [r7, #20]
  18640. 8007f72: 4b13 ldr r3, [pc, #76] @ (8007fc0 <HAL_DMA_Init+0x44c>)
  18641. 8007f74: 4013 ands r3, r2
  18642. 8007f76: 617b str r3, [r7, #20]
  18643. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  18644. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  18645. BDMA_CCR_CT));
  18646. /* Prepare the DMA Channel configuration */
  18647. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  18648. 8007f78: 687b ldr r3, [r7, #4]
  18649. 8007f7a: 689b ldr r3, [r3, #8]
  18650. 8007f7c: 2b40 cmp r3, #64 @ 0x40
  18651. 8007f7e: d021 beq.n 8007fc4 <HAL_DMA_Init+0x450>
  18652. 8007f80: 687b ldr r3, [r7, #4]
  18653. 8007f82: 689b ldr r3, [r3, #8]
  18654. 8007f84: 2b80 cmp r3, #128 @ 0x80
  18655. 8007f86: d102 bne.n 8007f8e <HAL_DMA_Init+0x41a>
  18656. 8007f88: f44f 4380 mov.w r3, #16384 @ 0x4000
  18657. 8007f8c: e01b b.n 8007fc6 <HAL_DMA_Init+0x452>
  18658. 8007f8e: 2300 movs r3, #0
  18659. 8007f90: e019 b.n 8007fc6 <HAL_DMA_Init+0x452>
  18660. 8007f92: bf00 nop
  18661. 8007f94: fe10803f .word 0xfe10803f
  18662. 8007f98: 5c001000 .word 0x5c001000
  18663. 8007f9c: ffff0000 .word 0xffff0000
  18664. 8007fa0: 58025408 .word 0x58025408
  18665. 8007fa4: 5802541c .word 0x5802541c
  18666. 8007fa8: 58025430 .word 0x58025430
  18667. 8007fac: 58025444 .word 0x58025444
  18668. 8007fb0: 58025458 .word 0x58025458
  18669. 8007fb4: 5802546c .word 0x5802546c
  18670. 8007fb8: 58025480 .word 0x58025480
  18671. 8007fbc: 58025494 .word 0x58025494
  18672. 8007fc0: fffe000f .word 0xfffe000f
  18673. 8007fc4: 2310 movs r3, #16
  18674. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  18675. 8007fc6: 687a ldr r2, [r7, #4]
  18676. 8007fc8: 68d2 ldr r2, [r2, #12]
  18677. 8007fca: 08d2 lsrs r2, r2, #3
  18678. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  18679. 8007fcc: 431a orrs r2, r3
  18680. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  18681. 8007fce: 687b ldr r3, [r7, #4]
  18682. 8007fd0: 691b ldr r3, [r3, #16]
  18683. 8007fd2: 08db lsrs r3, r3, #3
  18684. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  18685. 8007fd4: 431a orrs r2, r3
  18686. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  18687. 8007fd6: 687b ldr r3, [r7, #4]
  18688. 8007fd8: 695b ldr r3, [r3, #20]
  18689. 8007fda: 08db lsrs r3, r3, #3
  18690. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  18691. 8007fdc: 431a orrs r2, r3
  18692. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  18693. 8007fde: 687b ldr r3, [r7, #4]
  18694. 8007fe0: 699b ldr r3, [r3, #24]
  18695. 8007fe2: 08db lsrs r3, r3, #3
  18696. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  18697. 8007fe4: 431a orrs r2, r3
  18698. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  18699. 8007fe6: 687b ldr r3, [r7, #4]
  18700. 8007fe8: 69db ldr r3, [r3, #28]
  18701. 8007fea: 08db lsrs r3, r3, #3
  18702. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  18703. 8007fec: 431a orrs r2, r3
  18704. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  18705. 8007fee: 687b ldr r3, [r7, #4]
  18706. 8007ff0: 6a1b ldr r3, [r3, #32]
  18707. 8007ff2: 091b lsrs r3, r3, #4
  18708. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  18709. 8007ff4: 4313 orrs r3, r2
  18710. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  18711. 8007ff6: 697a ldr r2, [r7, #20]
  18712. 8007ff8: 4313 orrs r3, r2
  18713. 8007ffa: 617b str r3, [r7, #20]
  18714. /* Write to DMA Channel CR register */
  18715. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  18716. 8007ffc: 687b ldr r3, [r7, #4]
  18717. 8007ffe: 681b ldr r3, [r3, #0]
  18718. 8008000: 697a ldr r2, [r7, #20]
  18719. 8008002: 601a str r2, [r3, #0]
  18720. /* calculation of the channel index */
  18721. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  18722. 8008004: 687b ldr r3, [r7, #4]
  18723. 8008006: 681b ldr r3, [r3, #0]
  18724. 8008008: 461a mov r2, r3
  18725. 800800a: 4b6e ldr r3, [pc, #440] @ (80081c4 <HAL_DMA_Init+0x650>)
  18726. 800800c: 4413 add r3, r2
  18727. 800800e: 4a6e ldr r2, [pc, #440] @ (80081c8 <HAL_DMA_Init+0x654>)
  18728. 8008010: fba2 2303 umull r2, r3, r2, r3
  18729. 8008014: 091b lsrs r3, r3, #4
  18730. 8008016: 009a lsls r2, r3, #2
  18731. 8008018: 687b ldr r3, [r7, #4]
  18732. 800801a: 65da str r2, [r3, #92] @ 0x5c
  18733. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  18734. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  18735. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  18736. 800801c: 6878 ldr r0, [r7, #4]
  18737. 800801e: f002 f9a9 bl 800a374 <DMA_CalcBaseAndBitshift>
  18738. 8008022: 4603 mov r3, r0
  18739. 8008024: 60fb str r3, [r7, #12]
  18740. /* Clear all interrupt flags */
  18741. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  18742. 8008026: 687b ldr r3, [r7, #4]
  18743. 8008028: 6ddb ldr r3, [r3, #92] @ 0x5c
  18744. 800802a: f003 031f and.w r3, r3, #31
  18745. 800802e: 2201 movs r2, #1
  18746. 8008030: 409a lsls r2, r3
  18747. 8008032: 68fb ldr r3, [r7, #12]
  18748. 8008034: 605a str r2, [r3, #4]
  18749. 8008036: e008 b.n 800804a <HAL_DMA_Init+0x4d6>
  18750. }
  18751. else
  18752. {
  18753. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  18754. 8008038: 687b ldr r3, [r7, #4]
  18755. 800803a: 2240 movs r2, #64 @ 0x40
  18756. 800803c: 655a str r2, [r3, #84] @ 0x54
  18757. hdma->State = HAL_DMA_STATE_ERROR;
  18758. 800803e: 687b ldr r3, [r7, #4]
  18759. 8008040: 2203 movs r2, #3
  18760. 8008042: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18761. return HAL_ERROR;
  18762. 8008046: 2301 movs r3, #1
  18763. 8008048: e0b7 b.n 80081ba <HAL_DMA_Init+0x646>
  18764. }
  18765. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  18766. 800804a: 687b ldr r3, [r7, #4]
  18767. 800804c: 681b ldr r3, [r3, #0]
  18768. 800804e: 4a5f ldr r2, [pc, #380] @ (80081cc <HAL_DMA_Init+0x658>)
  18769. 8008050: 4293 cmp r3, r2
  18770. 8008052: d072 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18771. 8008054: 687b ldr r3, [r7, #4]
  18772. 8008056: 681b ldr r3, [r3, #0]
  18773. 8008058: 4a5d ldr r2, [pc, #372] @ (80081d0 <HAL_DMA_Init+0x65c>)
  18774. 800805a: 4293 cmp r3, r2
  18775. 800805c: d06d beq.n 800813a <HAL_DMA_Init+0x5c6>
  18776. 800805e: 687b ldr r3, [r7, #4]
  18777. 8008060: 681b ldr r3, [r3, #0]
  18778. 8008062: 4a5c ldr r2, [pc, #368] @ (80081d4 <HAL_DMA_Init+0x660>)
  18779. 8008064: 4293 cmp r3, r2
  18780. 8008066: d068 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18781. 8008068: 687b ldr r3, [r7, #4]
  18782. 800806a: 681b ldr r3, [r3, #0]
  18783. 800806c: 4a5a ldr r2, [pc, #360] @ (80081d8 <HAL_DMA_Init+0x664>)
  18784. 800806e: 4293 cmp r3, r2
  18785. 8008070: d063 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18786. 8008072: 687b ldr r3, [r7, #4]
  18787. 8008074: 681b ldr r3, [r3, #0]
  18788. 8008076: 4a59 ldr r2, [pc, #356] @ (80081dc <HAL_DMA_Init+0x668>)
  18789. 8008078: 4293 cmp r3, r2
  18790. 800807a: d05e beq.n 800813a <HAL_DMA_Init+0x5c6>
  18791. 800807c: 687b ldr r3, [r7, #4]
  18792. 800807e: 681b ldr r3, [r3, #0]
  18793. 8008080: 4a57 ldr r2, [pc, #348] @ (80081e0 <HAL_DMA_Init+0x66c>)
  18794. 8008082: 4293 cmp r3, r2
  18795. 8008084: d059 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18796. 8008086: 687b ldr r3, [r7, #4]
  18797. 8008088: 681b ldr r3, [r3, #0]
  18798. 800808a: 4a56 ldr r2, [pc, #344] @ (80081e4 <HAL_DMA_Init+0x670>)
  18799. 800808c: 4293 cmp r3, r2
  18800. 800808e: d054 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18801. 8008090: 687b ldr r3, [r7, #4]
  18802. 8008092: 681b ldr r3, [r3, #0]
  18803. 8008094: 4a54 ldr r2, [pc, #336] @ (80081e8 <HAL_DMA_Init+0x674>)
  18804. 8008096: 4293 cmp r3, r2
  18805. 8008098: d04f beq.n 800813a <HAL_DMA_Init+0x5c6>
  18806. 800809a: 687b ldr r3, [r7, #4]
  18807. 800809c: 681b ldr r3, [r3, #0]
  18808. 800809e: 4a53 ldr r2, [pc, #332] @ (80081ec <HAL_DMA_Init+0x678>)
  18809. 80080a0: 4293 cmp r3, r2
  18810. 80080a2: d04a beq.n 800813a <HAL_DMA_Init+0x5c6>
  18811. 80080a4: 687b ldr r3, [r7, #4]
  18812. 80080a6: 681b ldr r3, [r3, #0]
  18813. 80080a8: 4a51 ldr r2, [pc, #324] @ (80081f0 <HAL_DMA_Init+0x67c>)
  18814. 80080aa: 4293 cmp r3, r2
  18815. 80080ac: d045 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18816. 80080ae: 687b ldr r3, [r7, #4]
  18817. 80080b0: 681b ldr r3, [r3, #0]
  18818. 80080b2: 4a50 ldr r2, [pc, #320] @ (80081f4 <HAL_DMA_Init+0x680>)
  18819. 80080b4: 4293 cmp r3, r2
  18820. 80080b6: d040 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18821. 80080b8: 687b ldr r3, [r7, #4]
  18822. 80080ba: 681b ldr r3, [r3, #0]
  18823. 80080bc: 4a4e ldr r2, [pc, #312] @ (80081f8 <HAL_DMA_Init+0x684>)
  18824. 80080be: 4293 cmp r3, r2
  18825. 80080c0: d03b beq.n 800813a <HAL_DMA_Init+0x5c6>
  18826. 80080c2: 687b ldr r3, [r7, #4]
  18827. 80080c4: 681b ldr r3, [r3, #0]
  18828. 80080c6: 4a4d ldr r2, [pc, #308] @ (80081fc <HAL_DMA_Init+0x688>)
  18829. 80080c8: 4293 cmp r3, r2
  18830. 80080ca: d036 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18831. 80080cc: 687b ldr r3, [r7, #4]
  18832. 80080ce: 681b ldr r3, [r3, #0]
  18833. 80080d0: 4a4b ldr r2, [pc, #300] @ (8008200 <HAL_DMA_Init+0x68c>)
  18834. 80080d2: 4293 cmp r3, r2
  18835. 80080d4: d031 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18836. 80080d6: 687b ldr r3, [r7, #4]
  18837. 80080d8: 681b ldr r3, [r3, #0]
  18838. 80080da: 4a4a ldr r2, [pc, #296] @ (8008204 <HAL_DMA_Init+0x690>)
  18839. 80080dc: 4293 cmp r3, r2
  18840. 80080de: d02c beq.n 800813a <HAL_DMA_Init+0x5c6>
  18841. 80080e0: 687b ldr r3, [r7, #4]
  18842. 80080e2: 681b ldr r3, [r3, #0]
  18843. 80080e4: 4a48 ldr r2, [pc, #288] @ (8008208 <HAL_DMA_Init+0x694>)
  18844. 80080e6: 4293 cmp r3, r2
  18845. 80080e8: d027 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18846. 80080ea: 687b ldr r3, [r7, #4]
  18847. 80080ec: 681b ldr r3, [r3, #0]
  18848. 80080ee: 4a47 ldr r2, [pc, #284] @ (800820c <HAL_DMA_Init+0x698>)
  18849. 80080f0: 4293 cmp r3, r2
  18850. 80080f2: d022 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18851. 80080f4: 687b ldr r3, [r7, #4]
  18852. 80080f6: 681b ldr r3, [r3, #0]
  18853. 80080f8: 4a45 ldr r2, [pc, #276] @ (8008210 <HAL_DMA_Init+0x69c>)
  18854. 80080fa: 4293 cmp r3, r2
  18855. 80080fc: d01d beq.n 800813a <HAL_DMA_Init+0x5c6>
  18856. 80080fe: 687b ldr r3, [r7, #4]
  18857. 8008100: 681b ldr r3, [r3, #0]
  18858. 8008102: 4a44 ldr r2, [pc, #272] @ (8008214 <HAL_DMA_Init+0x6a0>)
  18859. 8008104: 4293 cmp r3, r2
  18860. 8008106: d018 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18861. 8008108: 687b ldr r3, [r7, #4]
  18862. 800810a: 681b ldr r3, [r3, #0]
  18863. 800810c: 4a42 ldr r2, [pc, #264] @ (8008218 <HAL_DMA_Init+0x6a4>)
  18864. 800810e: 4293 cmp r3, r2
  18865. 8008110: d013 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18866. 8008112: 687b ldr r3, [r7, #4]
  18867. 8008114: 681b ldr r3, [r3, #0]
  18868. 8008116: 4a41 ldr r2, [pc, #260] @ (800821c <HAL_DMA_Init+0x6a8>)
  18869. 8008118: 4293 cmp r3, r2
  18870. 800811a: d00e beq.n 800813a <HAL_DMA_Init+0x5c6>
  18871. 800811c: 687b ldr r3, [r7, #4]
  18872. 800811e: 681b ldr r3, [r3, #0]
  18873. 8008120: 4a3f ldr r2, [pc, #252] @ (8008220 <HAL_DMA_Init+0x6ac>)
  18874. 8008122: 4293 cmp r3, r2
  18875. 8008124: d009 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18876. 8008126: 687b ldr r3, [r7, #4]
  18877. 8008128: 681b ldr r3, [r3, #0]
  18878. 800812a: 4a3e ldr r2, [pc, #248] @ (8008224 <HAL_DMA_Init+0x6b0>)
  18879. 800812c: 4293 cmp r3, r2
  18880. 800812e: d004 beq.n 800813a <HAL_DMA_Init+0x5c6>
  18881. 8008130: 687b ldr r3, [r7, #4]
  18882. 8008132: 681b ldr r3, [r3, #0]
  18883. 8008134: 4a3c ldr r2, [pc, #240] @ (8008228 <HAL_DMA_Init+0x6b4>)
  18884. 8008136: 4293 cmp r3, r2
  18885. 8008138: d101 bne.n 800813e <HAL_DMA_Init+0x5ca>
  18886. 800813a: 2301 movs r3, #1
  18887. 800813c: e000 b.n 8008140 <HAL_DMA_Init+0x5cc>
  18888. 800813e: 2300 movs r3, #0
  18889. 8008140: 2b00 cmp r3, #0
  18890. 8008142: d032 beq.n 80081aa <HAL_DMA_Init+0x636>
  18891. {
  18892. /* Initialize parameters for DMAMUX channel :
  18893. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  18894. */
  18895. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  18896. 8008144: 6878 ldr r0, [r7, #4]
  18897. 8008146: f002 fa43 bl 800a5d0 <DMA_CalcDMAMUXChannelBaseAndMask>
  18898. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  18899. 800814a: 687b ldr r3, [r7, #4]
  18900. 800814c: 689b ldr r3, [r3, #8]
  18901. 800814e: 2b80 cmp r3, #128 @ 0x80
  18902. 8008150: d102 bne.n 8008158 <HAL_DMA_Init+0x5e4>
  18903. {
  18904. /* if memory to memory force the request to 0*/
  18905. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  18906. 8008152: 687b ldr r3, [r7, #4]
  18907. 8008154: 2200 movs r2, #0
  18908. 8008156: 605a str r2, [r3, #4]
  18909. }
  18910. /* Set peripheral request to DMAMUX channel */
  18911. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  18912. 8008158: 687b ldr r3, [r7, #4]
  18913. 800815a: 685a ldr r2, [r3, #4]
  18914. 800815c: 687b ldr r3, [r7, #4]
  18915. 800815e: 6e1b ldr r3, [r3, #96] @ 0x60
  18916. 8008160: b2d2 uxtb r2, r2
  18917. 8008162: 601a str r2, [r3, #0]
  18918. /* Clear the DMAMUX synchro overrun flag */
  18919. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  18920. 8008164: 687b ldr r3, [r7, #4]
  18921. 8008166: 6e5b ldr r3, [r3, #100] @ 0x64
  18922. 8008168: 687a ldr r2, [r7, #4]
  18923. 800816a: 6e92 ldr r2, [r2, #104] @ 0x68
  18924. 800816c: 605a str r2, [r3, #4]
  18925. /* Initialize parameters for DMAMUX request generator :
  18926. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  18927. */
  18928. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  18929. 800816e: 687b ldr r3, [r7, #4]
  18930. 8008170: 685b ldr r3, [r3, #4]
  18931. 8008172: 2b00 cmp r3, #0
  18932. 8008174: d010 beq.n 8008198 <HAL_DMA_Init+0x624>
  18933. 8008176: 687b ldr r3, [r7, #4]
  18934. 8008178: 685b ldr r3, [r3, #4]
  18935. 800817a: 2b08 cmp r3, #8
  18936. 800817c: d80c bhi.n 8008198 <HAL_DMA_Init+0x624>
  18937. {
  18938. /* Initialize parameters for DMAMUX request generator :
  18939. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  18940. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  18941. 800817e: 6878 ldr r0, [r7, #4]
  18942. 8008180: f002 fac0 bl 800a704 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  18943. /* Reset the DMAMUX request generator register */
  18944. hdma->DMAmuxRequestGen->RGCR = 0U;
  18945. 8008184: 687b ldr r3, [r7, #4]
  18946. 8008186: 6edb ldr r3, [r3, #108] @ 0x6c
  18947. 8008188: 2200 movs r2, #0
  18948. 800818a: 601a str r2, [r3, #0]
  18949. /* Clear the DMAMUX request generator overrun flag */
  18950. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  18951. 800818c: 687b ldr r3, [r7, #4]
  18952. 800818e: 6f1b ldr r3, [r3, #112] @ 0x70
  18953. 8008190: 687a ldr r2, [r7, #4]
  18954. 8008192: 6f52 ldr r2, [r2, #116] @ 0x74
  18955. 8008194: 605a str r2, [r3, #4]
  18956. 8008196: e008 b.n 80081aa <HAL_DMA_Init+0x636>
  18957. }
  18958. else
  18959. {
  18960. hdma->DMAmuxRequestGen = 0U;
  18961. 8008198: 687b ldr r3, [r7, #4]
  18962. 800819a: 2200 movs r2, #0
  18963. 800819c: 66da str r2, [r3, #108] @ 0x6c
  18964. hdma->DMAmuxRequestGenStatus = 0U;
  18965. 800819e: 687b ldr r3, [r7, #4]
  18966. 80081a0: 2200 movs r2, #0
  18967. 80081a2: 671a str r2, [r3, #112] @ 0x70
  18968. hdma->DMAmuxRequestGenStatusMask = 0U;
  18969. 80081a4: 687b ldr r3, [r7, #4]
  18970. 80081a6: 2200 movs r2, #0
  18971. 80081a8: 675a str r2, [r3, #116] @ 0x74
  18972. }
  18973. }
  18974. /* Initialize the error code */
  18975. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  18976. 80081aa: 687b ldr r3, [r7, #4]
  18977. 80081ac: 2200 movs r2, #0
  18978. 80081ae: 655a str r2, [r3, #84] @ 0x54
  18979. /* Initialize the DMA state */
  18980. hdma->State = HAL_DMA_STATE_READY;
  18981. 80081b0: 687b ldr r3, [r7, #4]
  18982. 80081b2: 2201 movs r2, #1
  18983. 80081b4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18984. return HAL_OK;
  18985. 80081b8: 2300 movs r3, #0
  18986. }
  18987. 80081ba: 4618 mov r0, r3
  18988. 80081bc: 3718 adds r7, #24
  18989. 80081be: 46bd mov sp, r7
  18990. 80081c0: bd80 pop {r7, pc}
  18991. 80081c2: bf00 nop
  18992. 80081c4: a7fdabf8 .word 0xa7fdabf8
  18993. 80081c8: cccccccd .word 0xcccccccd
  18994. 80081cc: 40020010 .word 0x40020010
  18995. 80081d0: 40020028 .word 0x40020028
  18996. 80081d4: 40020040 .word 0x40020040
  18997. 80081d8: 40020058 .word 0x40020058
  18998. 80081dc: 40020070 .word 0x40020070
  18999. 80081e0: 40020088 .word 0x40020088
  19000. 80081e4: 400200a0 .word 0x400200a0
  19001. 80081e8: 400200b8 .word 0x400200b8
  19002. 80081ec: 40020410 .word 0x40020410
  19003. 80081f0: 40020428 .word 0x40020428
  19004. 80081f4: 40020440 .word 0x40020440
  19005. 80081f8: 40020458 .word 0x40020458
  19006. 80081fc: 40020470 .word 0x40020470
  19007. 8008200: 40020488 .word 0x40020488
  19008. 8008204: 400204a0 .word 0x400204a0
  19009. 8008208: 400204b8 .word 0x400204b8
  19010. 800820c: 58025408 .word 0x58025408
  19011. 8008210: 5802541c .word 0x5802541c
  19012. 8008214: 58025430 .word 0x58025430
  19013. 8008218: 58025444 .word 0x58025444
  19014. 800821c: 58025458 .word 0x58025458
  19015. 8008220: 5802546c .word 0x5802546c
  19016. 8008224: 58025480 .word 0x58025480
  19017. 8008228: 58025494 .word 0x58025494
  19018. 0800822c <HAL_DMA_Start_IT>:
  19019. * @param DstAddress: The destination memory Buffer address
  19020. * @param DataLength: The length of data to be transferred from source to destination
  19021. * @retval HAL status
  19022. */
  19023. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  19024. {
  19025. 800822c: b580 push {r7, lr}
  19026. 800822e: b086 sub sp, #24
  19027. 8008230: af00 add r7, sp, #0
  19028. 8008232: 60f8 str r0, [r7, #12]
  19029. 8008234: 60b9 str r1, [r7, #8]
  19030. 8008236: 607a str r2, [r7, #4]
  19031. 8008238: 603b str r3, [r7, #0]
  19032. HAL_StatusTypeDef status = HAL_OK;
  19033. 800823a: 2300 movs r3, #0
  19034. 800823c: 75fb strb r3, [r7, #23]
  19035. /* Check the parameters */
  19036. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  19037. /* Check the DMA peripheral handle */
  19038. if(hdma == NULL)
  19039. 800823e: 68fb ldr r3, [r7, #12]
  19040. 8008240: 2b00 cmp r3, #0
  19041. 8008242: d101 bne.n 8008248 <HAL_DMA_Start_IT+0x1c>
  19042. {
  19043. return HAL_ERROR;
  19044. 8008244: 2301 movs r3, #1
  19045. 8008246: e226 b.n 8008696 <HAL_DMA_Start_IT+0x46a>
  19046. }
  19047. /* Process locked */
  19048. __HAL_LOCK(hdma);
  19049. 8008248: 68fb ldr r3, [r7, #12]
  19050. 800824a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  19051. 800824e: 2b01 cmp r3, #1
  19052. 8008250: d101 bne.n 8008256 <HAL_DMA_Start_IT+0x2a>
  19053. 8008252: 2302 movs r3, #2
  19054. 8008254: e21f b.n 8008696 <HAL_DMA_Start_IT+0x46a>
  19055. 8008256: 68fb ldr r3, [r7, #12]
  19056. 8008258: 2201 movs r2, #1
  19057. 800825a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19058. if(HAL_DMA_STATE_READY == hdma->State)
  19059. 800825e: 68fb ldr r3, [r7, #12]
  19060. 8008260: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  19061. 8008264: b2db uxtb r3, r3
  19062. 8008266: 2b01 cmp r3, #1
  19063. 8008268: f040 820a bne.w 8008680 <HAL_DMA_Start_IT+0x454>
  19064. {
  19065. /* Change DMA peripheral state */
  19066. hdma->State = HAL_DMA_STATE_BUSY;
  19067. 800826c: 68fb ldr r3, [r7, #12]
  19068. 800826e: 2202 movs r2, #2
  19069. 8008270: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19070. /* Initialize the error code */
  19071. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  19072. 8008274: 68fb ldr r3, [r7, #12]
  19073. 8008276: 2200 movs r2, #0
  19074. 8008278: 655a str r2, [r3, #84] @ 0x54
  19075. /* Disable the peripheral */
  19076. __HAL_DMA_DISABLE(hdma);
  19077. 800827a: 68fb ldr r3, [r7, #12]
  19078. 800827c: 681b ldr r3, [r3, #0]
  19079. 800827e: 4a68 ldr r2, [pc, #416] @ (8008420 <HAL_DMA_Start_IT+0x1f4>)
  19080. 8008280: 4293 cmp r3, r2
  19081. 8008282: d04a beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19082. 8008284: 68fb ldr r3, [r7, #12]
  19083. 8008286: 681b ldr r3, [r3, #0]
  19084. 8008288: 4a66 ldr r2, [pc, #408] @ (8008424 <HAL_DMA_Start_IT+0x1f8>)
  19085. 800828a: 4293 cmp r3, r2
  19086. 800828c: d045 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19087. 800828e: 68fb ldr r3, [r7, #12]
  19088. 8008290: 681b ldr r3, [r3, #0]
  19089. 8008292: 4a65 ldr r2, [pc, #404] @ (8008428 <HAL_DMA_Start_IT+0x1fc>)
  19090. 8008294: 4293 cmp r3, r2
  19091. 8008296: d040 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19092. 8008298: 68fb ldr r3, [r7, #12]
  19093. 800829a: 681b ldr r3, [r3, #0]
  19094. 800829c: 4a63 ldr r2, [pc, #396] @ (800842c <HAL_DMA_Start_IT+0x200>)
  19095. 800829e: 4293 cmp r3, r2
  19096. 80082a0: d03b beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19097. 80082a2: 68fb ldr r3, [r7, #12]
  19098. 80082a4: 681b ldr r3, [r3, #0]
  19099. 80082a6: 4a62 ldr r2, [pc, #392] @ (8008430 <HAL_DMA_Start_IT+0x204>)
  19100. 80082a8: 4293 cmp r3, r2
  19101. 80082aa: d036 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19102. 80082ac: 68fb ldr r3, [r7, #12]
  19103. 80082ae: 681b ldr r3, [r3, #0]
  19104. 80082b0: 4a60 ldr r2, [pc, #384] @ (8008434 <HAL_DMA_Start_IT+0x208>)
  19105. 80082b2: 4293 cmp r3, r2
  19106. 80082b4: d031 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19107. 80082b6: 68fb ldr r3, [r7, #12]
  19108. 80082b8: 681b ldr r3, [r3, #0]
  19109. 80082ba: 4a5f ldr r2, [pc, #380] @ (8008438 <HAL_DMA_Start_IT+0x20c>)
  19110. 80082bc: 4293 cmp r3, r2
  19111. 80082be: d02c beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19112. 80082c0: 68fb ldr r3, [r7, #12]
  19113. 80082c2: 681b ldr r3, [r3, #0]
  19114. 80082c4: 4a5d ldr r2, [pc, #372] @ (800843c <HAL_DMA_Start_IT+0x210>)
  19115. 80082c6: 4293 cmp r3, r2
  19116. 80082c8: d027 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19117. 80082ca: 68fb ldr r3, [r7, #12]
  19118. 80082cc: 681b ldr r3, [r3, #0]
  19119. 80082ce: 4a5c ldr r2, [pc, #368] @ (8008440 <HAL_DMA_Start_IT+0x214>)
  19120. 80082d0: 4293 cmp r3, r2
  19121. 80082d2: d022 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19122. 80082d4: 68fb ldr r3, [r7, #12]
  19123. 80082d6: 681b ldr r3, [r3, #0]
  19124. 80082d8: 4a5a ldr r2, [pc, #360] @ (8008444 <HAL_DMA_Start_IT+0x218>)
  19125. 80082da: 4293 cmp r3, r2
  19126. 80082dc: d01d beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19127. 80082de: 68fb ldr r3, [r7, #12]
  19128. 80082e0: 681b ldr r3, [r3, #0]
  19129. 80082e2: 4a59 ldr r2, [pc, #356] @ (8008448 <HAL_DMA_Start_IT+0x21c>)
  19130. 80082e4: 4293 cmp r3, r2
  19131. 80082e6: d018 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19132. 80082e8: 68fb ldr r3, [r7, #12]
  19133. 80082ea: 681b ldr r3, [r3, #0]
  19134. 80082ec: 4a57 ldr r2, [pc, #348] @ (800844c <HAL_DMA_Start_IT+0x220>)
  19135. 80082ee: 4293 cmp r3, r2
  19136. 80082f0: d013 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19137. 80082f2: 68fb ldr r3, [r7, #12]
  19138. 80082f4: 681b ldr r3, [r3, #0]
  19139. 80082f6: 4a56 ldr r2, [pc, #344] @ (8008450 <HAL_DMA_Start_IT+0x224>)
  19140. 80082f8: 4293 cmp r3, r2
  19141. 80082fa: d00e beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19142. 80082fc: 68fb ldr r3, [r7, #12]
  19143. 80082fe: 681b ldr r3, [r3, #0]
  19144. 8008300: 4a54 ldr r2, [pc, #336] @ (8008454 <HAL_DMA_Start_IT+0x228>)
  19145. 8008302: 4293 cmp r3, r2
  19146. 8008304: d009 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19147. 8008306: 68fb ldr r3, [r7, #12]
  19148. 8008308: 681b ldr r3, [r3, #0]
  19149. 800830a: 4a53 ldr r2, [pc, #332] @ (8008458 <HAL_DMA_Start_IT+0x22c>)
  19150. 800830c: 4293 cmp r3, r2
  19151. 800830e: d004 beq.n 800831a <HAL_DMA_Start_IT+0xee>
  19152. 8008310: 68fb ldr r3, [r7, #12]
  19153. 8008312: 681b ldr r3, [r3, #0]
  19154. 8008314: 4a51 ldr r2, [pc, #324] @ (800845c <HAL_DMA_Start_IT+0x230>)
  19155. 8008316: 4293 cmp r3, r2
  19156. 8008318: d108 bne.n 800832c <HAL_DMA_Start_IT+0x100>
  19157. 800831a: 68fb ldr r3, [r7, #12]
  19158. 800831c: 681b ldr r3, [r3, #0]
  19159. 800831e: 681a ldr r2, [r3, #0]
  19160. 8008320: 68fb ldr r3, [r7, #12]
  19161. 8008322: 681b ldr r3, [r3, #0]
  19162. 8008324: f022 0201 bic.w r2, r2, #1
  19163. 8008328: 601a str r2, [r3, #0]
  19164. 800832a: e007 b.n 800833c <HAL_DMA_Start_IT+0x110>
  19165. 800832c: 68fb ldr r3, [r7, #12]
  19166. 800832e: 681b ldr r3, [r3, #0]
  19167. 8008330: 681a ldr r2, [r3, #0]
  19168. 8008332: 68fb ldr r3, [r7, #12]
  19169. 8008334: 681b ldr r3, [r3, #0]
  19170. 8008336: f022 0201 bic.w r2, r2, #1
  19171. 800833a: 601a str r2, [r3, #0]
  19172. /* Configure the source, destination address and the data length */
  19173. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  19174. 800833c: 683b ldr r3, [r7, #0]
  19175. 800833e: 687a ldr r2, [r7, #4]
  19176. 8008340: 68b9 ldr r1, [r7, #8]
  19177. 8008342: 68f8 ldr r0, [r7, #12]
  19178. 8008344: f001 fe6a bl 800a01c <DMA_SetConfig>
  19179. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19180. 8008348: 68fb ldr r3, [r7, #12]
  19181. 800834a: 681b ldr r3, [r3, #0]
  19182. 800834c: 4a34 ldr r2, [pc, #208] @ (8008420 <HAL_DMA_Start_IT+0x1f4>)
  19183. 800834e: 4293 cmp r3, r2
  19184. 8008350: d04a beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19185. 8008352: 68fb ldr r3, [r7, #12]
  19186. 8008354: 681b ldr r3, [r3, #0]
  19187. 8008356: 4a33 ldr r2, [pc, #204] @ (8008424 <HAL_DMA_Start_IT+0x1f8>)
  19188. 8008358: 4293 cmp r3, r2
  19189. 800835a: d045 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19190. 800835c: 68fb ldr r3, [r7, #12]
  19191. 800835e: 681b ldr r3, [r3, #0]
  19192. 8008360: 4a31 ldr r2, [pc, #196] @ (8008428 <HAL_DMA_Start_IT+0x1fc>)
  19193. 8008362: 4293 cmp r3, r2
  19194. 8008364: d040 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19195. 8008366: 68fb ldr r3, [r7, #12]
  19196. 8008368: 681b ldr r3, [r3, #0]
  19197. 800836a: 4a30 ldr r2, [pc, #192] @ (800842c <HAL_DMA_Start_IT+0x200>)
  19198. 800836c: 4293 cmp r3, r2
  19199. 800836e: d03b beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19200. 8008370: 68fb ldr r3, [r7, #12]
  19201. 8008372: 681b ldr r3, [r3, #0]
  19202. 8008374: 4a2e ldr r2, [pc, #184] @ (8008430 <HAL_DMA_Start_IT+0x204>)
  19203. 8008376: 4293 cmp r3, r2
  19204. 8008378: d036 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19205. 800837a: 68fb ldr r3, [r7, #12]
  19206. 800837c: 681b ldr r3, [r3, #0]
  19207. 800837e: 4a2d ldr r2, [pc, #180] @ (8008434 <HAL_DMA_Start_IT+0x208>)
  19208. 8008380: 4293 cmp r3, r2
  19209. 8008382: d031 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19210. 8008384: 68fb ldr r3, [r7, #12]
  19211. 8008386: 681b ldr r3, [r3, #0]
  19212. 8008388: 4a2b ldr r2, [pc, #172] @ (8008438 <HAL_DMA_Start_IT+0x20c>)
  19213. 800838a: 4293 cmp r3, r2
  19214. 800838c: d02c beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19215. 800838e: 68fb ldr r3, [r7, #12]
  19216. 8008390: 681b ldr r3, [r3, #0]
  19217. 8008392: 4a2a ldr r2, [pc, #168] @ (800843c <HAL_DMA_Start_IT+0x210>)
  19218. 8008394: 4293 cmp r3, r2
  19219. 8008396: d027 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19220. 8008398: 68fb ldr r3, [r7, #12]
  19221. 800839a: 681b ldr r3, [r3, #0]
  19222. 800839c: 4a28 ldr r2, [pc, #160] @ (8008440 <HAL_DMA_Start_IT+0x214>)
  19223. 800839e: 4293 cmp r3, r2
  19224. 80083a0: d022 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19225. 80083a2: 68fb ldr r3, [r7, #12]
  19226. 80083a4: 681b ldr r3, [r3, #0]
  19227. 80083a6: 4a27 ldr r2, [pc, #156] @ (8008444 <HAL_DMA_Start_IT+0x218>)
  19228. 80083a8: 4293 cmp r3, r2
  19229. 80083aa: d01d beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19230. 80083ac: 68fb ldr r3, [r7, #12]
  19231. 80083ae: 681b ldr r3, [r3, #0]
  19232. 80083b0: 4a25 ldr r2, [pc, #148] @ (8008448 <HAL_DMA_Start_IT+0x21c>)
  19233. 80083b2: 4293 cmp r3, r2
  19234. 80083b4: d018 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19235. 80083b6: 68fb ldr r3, [r7, #12]
  19236. 80083b8: 681b ldr r3, [r3, #0]
  19237. 80083ba: 4a24 ldr r2, [pc, #144] @ (800844c <HAL_DMA_Start_IT+0x220>)
  19238. 80083bc: 4293 cmp r3, r2
  19239. 80083be: d013 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19240. 80083c0: 68fb ldr r3, [r7, #12]
  19241. 80083c2: 681b ldr r3, [r3, #0]
  19242. 80083c4: 4a22 ldr r2, [pc, #136] @ (8008450 <HAL_DMA_Start_IT+0x224>)
  19243. 80083c6: 4293 cmp r3, r2
  19244. 80083c8: d00e beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19245. 80083ca: 68fb ldr r3, [r7, #12]
  19246. 80083cc: 681b ldr r3, [r3, #0]
  19247. 80083ce: 4a21 ldr r2, [pc, #132] @ (8008454 <HAL_DMA_Start_IT+0x228>)
  19248. 80083d0: 4293 cmp r3, r2
  19249. 80083d2: d009 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19250. 80083d4: 68fb ldr r3, [r7, #12]
  19251. 80083d6: 681b ldr r3, [r3, #0]
  19252. 80083d8: 4a1f ldr r2, [pc, #124] @ (8008458 <HAL_DMA_Start_IT+0x22c>)
  19253. 80083da: 4293 cmp r3, r2
  19254. 80083dc: d004 beq.n 80083e8 <HAL_DMA_Start_IT+0x1bc>
  19255. 80083de: 68fb ldr r3, [r7, #12]
  19256. 80083e0: 681b ldr r3, [r3, #0]
  19257. 80083e2: 4a1e ldr r2, [pc, #120] @ (800845c <HAL_DMA_Start_IT+0x230>)
  19258. 80083e4: 4293 cmp r3, r2
  19259. 80083e6: d101 bne.n 80083ec <HAL_DMA_Start_IT+0x1c0>
  19260. 80083e8: 2301 movs r3, #1
  19261. 80083ea: e000 b.n 80083ee <HAL_DMA_Start_IT+0x1c2>
  19262. 80083ec: 2300 movs r3, #0
  19263. 80083ee: 2b00 cmp r3, #0
  19264. 80083f0: d036 beq.n 8008460 <HAL_DMA_Start_IT+0x234>
  19265. {
  19266. /* Enable Common interrupts*/
  19267. MODIFY_REG(((DMA_Stream_TypeDef *)hdma->Instance)->CR, (DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT), (DMA_IT_TC | DMA_IT_TE | DMA_IT_DME));
  19268. 80083f2: 68fb ldr r3, [r7, #12]
  19269. 80083f4: 681b ldr r3, [r3, #0]
  19270. 80083f6: 681b ldr r3, [r3, #0]
  19271. 80083f8: f023 021e bic.w r2, r3, #30
  19272. 80083fc: 68fb ldr r3, [r7, #12]
  19273. 80083fe: 681b ldr r3, [r3, #0]
  19274. 8008400: f042 0216 orr.w r2, r2, #22
  19275. 8008404: 601a str r2, [r3, #0]
  19276. if(hdma->XferHalfCpltCallback != NULL)
  19277. 8008406: 68fb ldr r3, [r7, #12]
  19278. 8008408: 6c1b ldr r3, [r3, #64] @ 0x40
  19279. 800840a: 2b00 cmp r3, #0
  19280. 800840c: d03e beq.n 800848c <HAL_DMA_Start_IT+0x260>
  19281. {
  19282. /* Enable Half Transfer IT if corresponding Callback is set */
  19283. ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT;
  19284. 800840e: 68fb ldr r3, [r7, #12]
  19285. 8008410: 681b ldr r3, [r3, #0]
  19286. 8008412: 681a ldr r2, [r3, #0]
  19287. 8008414: 68fb ldr r3, [r7, #12]
  19288. 8008416: 681b ldr r3, [r3, #0]
  19289. 8008418: f042 0208 orr.w r2, r2, #8
  19290. 800841c: 601a str r2, [r3, #0]
  19291. 800841e: e035 b.n 800848c <HAL_DMA_Start_IT+0x260>
  19292. 8008420: 40020010 .word 0x40020010
  19293. 8008424: 40020028 .word 0x40020028
  19294. 8008428: 40020040 .word 0x40020040
  19295. 800842c: 40020058 .word 0x40020058
  19296. 8008430: 40020070 .word 0x40020070
  19297. 8008434: 40020088 .word 0x40020088
  19298. 8008438: 400200a0 .word 0x400200a0
  19299. 800843c: 400200b8 .word 0x400200b8
  19300. 8008440: 40020410 .word 0x40020410
  19301. 8008444: 40020428 .word 0x40020428
  19302. 8008448: 40020440 .word 0x40020440
  19303. 800844c: 40020458 .word 0x40020458
  19304. 8008450: 40020470 .word 0x40020470
  19305. 8008454: 40020488 .word 0x40020488
  19306. 8008458: 400204a0 .word 0x400204a0
  19307. 800845c: 400204b8 .word 0x400204b8
  19308. }
  19309. }
  19310. else /* BDMA channel */
  19311. {
  19312. /* Enable Common interrupts */
  19313. MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE));
  19314. 8008460: 68fb ldr r3, [r7, #12]
  19315. 8008462: 681b ldr r3, [r3, #0]
  19316. 8008464: 681b ldr r3, [r3, #0]
  19317. 8008466: f023 020e bic.w r2, r3, #14
  19318. 800846a: 68fb ldr r3, [r7, #12]
  19319. 800846c: 681b ldr r3, [r3, #0]
  19320. 800846e: f042 020a orr.w r2, r2, #10
  19321. 8008472: 601a str r2, [r3, #0]
  19322. if(hdma->XferHalfCpltCallback != NULL)
  19323. 8008474: 68fb ldr r3, [r7, #12]
  19324. 8008476: 6c1b ldr r3, [r3, #64] @ 0x40
  19325. 8008478: 2b00 cmp r3, #0
  19326. 800847a: d007 beq.n 800848c <HAL_DMA_Start_IT+0x260>
  19327. {
  19328. /*Enable Half Transfer IT if corresponding Callback is set */
  19329. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE;
  19330. 800847c: 68fb ldr r3, [r7, #12]
  19331. 800847e: 681b ldr r3, [r3, #0]
  19332. 8008480: 681a ldr r2, [r3, #0]
  19333. 8008482: 68fb ldr r3, [r7, #12]
  19334. 8008484: 681b ldr r3, [r3, #0]
  19335. 8008486: f042 0204 orr.w r2, r2, #4
  19336. 800848a: 601a str r2, [r3, #0]
  19337. }
  19338. }
  19339. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  19340. 800848c: 68fb ldr r3, [r7, #12]
  19341. 800848e: 681b ldr r3, [r3, #0]
  19342. 8008490: 4a83 ldr r2, [pc, #524] @ (80086a0 <HAL_DMA_Start_IT+0x474>)
  19343. 8008492: 4293 cmp r3, r2
  19344. 8008494: d072 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19345. 8008496: 68fb ldr r3, [r7, #12]
  19346. 8008498: 681b ldr r3, [r3, #0]
  19347. 800849a: 4a82 ldr r2, [pc, #520] @ (80086a4 <HAL_DMA_Start_IT+0x478>)
  19348. 800849c: 4293 cmp r3, r2
  19349. 800849e: d06d beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19350. 80084a0: 68fb ldr r3, [r7, #12]
  19351. 80084a2: 681b ldr r3, [r3, #0]
  19352. 80084a4: 4a80 ldr r2, [pc, #512] @ (80086a8 <HAL_DMA_Start_IT+0x47c>)
  19353. 80084a6: 4293 cmp r3, r2
  19354. 80084a8: d068 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19355. 80084aa: 68fb ldr r3, [r7, #12]
  19356. 80084ac: 681b ldr r3, [r3, #0]
  19357. 80084ae: 4a7f ldr r2, [pc, #508] @ (80086ac <HAL_DMA_Start_IT+0x480>)
  19358. 80084b0: 4293 cmp r3, r2
  19359. 80084b2: d063 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19360. 80084b4: 68fb ldr r3, [r7, #12]
  19361. 80084b6: 681b ldr r3, [r3, #0]
  19362. 80084b8: 4a7d ldr r2, [pc, #500] @ (80086b0 <HAL_DMA_Start_IT+0x484>)
  19363. 80084ba: 4293 cmp r3, r2
  19364. 80084bc: d05e beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19365. 80084be: 68fb ldr r3, [r7, #12]
  19366. 80084c0: 681b ldr r3, [r3, #0]
  19367. 80084c2: 4a7c ldr r2, [pc, #496] @ (80086b4 <HAL_DMA_Start_IT+0x488>)
  19368. 80084c4: 4293 cmp r3, r2
  19369. 80084c6: d059 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19370. 80084c8: 68fb ldr r3, [r7, #12]
  19371. 80084ca: 681b ldr r3, [r3, #0]
  19372. 80084cc: 4a7a ldr r2, [pc, #488] @ (80086b8 <HAL_DMA_Start_IT+0x48c>)
  19373. 80084ce: 4293 cmp r3, r2
  19374. 80084d0: d054 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19375. 80084d2: 68fb ldr r3, [r7, #12]
  19376. 80084d4: 681b ldr r3, [r3, #0]
  19377. 80084d6: 4a79 ldr r2, [pc, #484] @ (80086bc <HAL_DMA_Start_IT+0x490>)
  19378. 80084d8: 4293 cmp r3, r2
  19379. 80084da: d04f beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19380. 80084dc: 68fb ldr r3, [r7, #12]
  19381. 80084de: 681b ldr r3, [r3, #0]
  19382. 80084e0: 4a77 ldr r2, [pc, #476] @ (80086c0 <HAL_DMA_Start_IT+0x494>)
  19383. 80084e2: 4293 cmp r3, r2
  19384. 80084e4: d04a beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19385. 80084e6: 68fb ldr r3, [r7, #12]
  19386. 80084e8: 681b ldr r3, [r3, #0]
  19387. 80084ea: 4a76 ldr r2, [pc, #472] @ (80086c4 <HAL_DMA_Start_IT+0x498>)
  19388. 80084ec: 4293 cmp r3, r2
  19389. 80084ee: d045 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19390. 80084f0: 68fb ldr r3, [r7, #12]
  19391. 80084f2: 681b ldr r3, [r3, #0]
  19392. 80084f4: 4a74 ldr r2, [pc, #464] @ (80086c8 <HAL_DMA_Start_IT+0x49c>)
  19393. 80084f6: 4293 cmp r3, r2
  19394. 80084f8: d040 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19395. 80084fa: 68fb ldr r3, [r7, #12]
  19396. 80084fc: 681b ldr r3, [r3, #0]
  19397. 80084fe: 4a73 ldr r2, [pc, #460] @ (80086cc <HAL_DMA_Start_IT+0x4a0>)
  19398. 8008500: 4293 cmp r3, r2
  19399. 8008502: d03b beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19400. 8008504: 68fb ldr r3, [r7, #12]
  19401. 8008506: 681b ldr r3, [r3, #0]
  19402. 8008508: 4a71 ldr r2, [pc, #452] @ (80086d0 <HAL_DMA_Start_IT+0x4a4>)
  19403. 800850a: 4293 cmp r3, r2
  19404. 800850c: d036 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19405. 800850e: 68fb ldr r3, [r7, #12]
  19406. 8008510: 681b ldr r3, [r3, #0]
  19407. 8008512: 4a70 ldr r2, [pc, #448] @ (80086d4 <HAL_DMA_Start_IT+0x4a8>)
  19408. 8008514: 4293 cmp r3, r2
  19409. 8008516: d031 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19410. 8008518: 68fb ldr r3, [r7, #12]
  19411. 800851a: 681b ldr r3, [r3, #0]
  19412. 800851c: 4a6e ldr r2, [pc, #440] @ (80086d8 <HAL_DMA_Start_IT+0x4ac>)
  19413. 800851e: 4293 cmp r3, r2
  19414. 8008520: d02c beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19415. 8008522: 68fb ldr r3, [r7, #12]
  19416. 8008524: 681b ldr r3, [r3, #0]
  19417. 8008526: 4a6d ldr r2, [pc, #436] @ (80086dc <HAL_DMA_Start_IT+0x4b0>)
  19418. 8008528: 4293 cmp r3, r2
  19419. 800852a: d027 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19420. 800852c: 68fb ldr r3, [r7, #12]
  19421. 800852e: 681b ldr r3, [r3, #0]
  19422. 8008530: 4a6b ldr r2, [pc, #428] @ (80086e0 <HAL_DMA_Start_IT+0x4b4>)
  19423. 8008532: 4293 cmp r3, r2
  19424. 8008534: d022 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19425. 8008536: 68fb ldr r3, [r7, #12]
  19426. 8008538: 681b ldr r3, [r3, #0]
  19427. 800853a: 4a6a ldr r2, [pc, #424] @ (80086e4 <HAL_DMA_Start_IT+0x4b8>)
  19428. 800853c: 4293 cmp r3, r2
  19429. 800853e: d01d beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19430. 8008540: 68fb ldr r3, [r7, #12]
  19431. 8008542: 681b ldr r3, [r3, #0]
  19432. 8008544: 4a68 ldr r2, [pc, #416] @ (80086e8 <HAL_DMA_Start_IT+0x4bc>)
  19433. 8008546: 4293 cmp r3, r2
  19434. 8008548: d018 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19435. 800854a: 68fb ldr r3, [r7, #12]
  19436. 800854c: 681b ldr r3, [r3, #0]
  19437. 800854e: 4a67 ldr r2, [pc, #412] @ (80086ec <HAL_DMA_Start_IT+0x4c0>)
  19438. 8008550: 4293 cmp r3, r2
  19439. 8008552: d013 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19440. 8008554: 68fb ldr r3, [r7, #12]
  19441. 8008556: 681b ldr r3, [r3, #0]
  19442. 8008558: 4a65 ldr r2, [pc, #404] @ (80086f0 <HAL_DMA_Start_IT+0x4c4>)
  19443. 800855a: 4293 cmp r3, r2
  19444. 800855c: d00e beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19445. 800855e: 68fb ldr r3, [r7, #12]
  19446. 8008560: 681b ldr r3, [r3, #0]
  19447. 8008562: 4a64 ldr r2, [pc, #400] @ (80086f4 <HAL_DMA_Start_IT+0x4c8>)
  19448. 8008564: 4293 cmp r3, r2
  19449. 8008566: d009 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19450. 8008568: 68fb ldr r3, [r7, #12]
  19451. 800856a: 681b ldr r3, [r3, #0]
  19452. 800856c: 4a62 ldr r2, [pc, #392] @ (80086f8 <HAL_DMA_Start_IT+0x4cc>)
  19453. 800856e: 4293 cmp r3, r2
  19454. 8008570: d004 beq.n 800857c <HAL_DMA_Start_IT+0x350>
  19455. 8008572: 68fb ldr r3, [r7, #12]
  19456. 8008574: 681b ldr r3, [r3, #0]
  19457. 8008576: 4a61 ldr r2, [pc, #388] @ (80086fc <HAL_DMA_Start_IT+0x4d0>)
  19458. 8008578: 4293 cmp r3, r2
  19459. 800857a: d101 bne.n 8008580 <HAL_DMA_Start_IT+0x354>
  19460. 800857c: 2301 movs r3, #1
  19461. 800857e: e000 b.n 8008582 <HAL_DMA_Start_IT+0x356>
  19462. 8008580: 2300 movs r3, #0
  19463. 8008582: 2b00 cmp r3, #0
  19464. 8008584: d01a beq.n 80085bc <HAL_DMA_Start_IT+0x390>
  19465. {
  19466. /* Check if DMAMUX Synchronization is enabled */
  19467. if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U)
  19468. 8008586: 68fb ldr r3, [r7, #12]
  19469. 8008588: 6e1b ldr r3, [r3, #96] @ 0x60
  19470. 800858a: 681b ldr r3, [r3, #0]
  19471. 800858c: f403 3380 and.w r3, r3, #65536 @ 0x10000
  19472. 8008590: 2b00 cmp r3, #0
  19473. 8008592: d007 beq.n 80085a4 <HAL_DMA_Start_IT+0x378>
  19474. {
  19475. /* Enable DMAMUX sync overrun IT*/
  19476. hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE;
  19477. 8008594: 68fb ldr r3, [r7, #12]
  19478. 8008596: 6e1b ldr r3, [r3, #96] @ 0x60
  19479. 8008598: 681a ldr r2, [r3, #0]
  19480. 800859a: 68fb ldr r3, [r7, #12]
  19481. 800859c: 6e1b ldr r3, [r3, #96] @ 0x60
  19482. 800859e: f442 7280 orr.w r2, r2, #256 @ 0x100
  19483. 80085a2: 601a str r2, [r3, #0]
  19484. }
  19485. if(hdma->DMAmuxRequestGen != 0U)
  19486. 80085a4: 68fb ldr r3, [r7, #12]
  19487. 80085a6: 6edb ldr r3, [r3, #108] @ 0x6c
  19488. 80085a8: 2b00 cmp r3, #0
  19489. 80085aa: d007 beq.n 80085bc <HAL_DMA_Start_IT+0x390>
  19490. {
  19491. /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/
  19492. /* enable the request gen overrun IT */
  19493. hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE;
  19494. 80085ac: 68fb ldr r3, [r7, #12]
  19495. 80085ae: 6edb ldr r3, [r3, #108] @ 0x6c
  19496. 80085b0: 681a ldr r2, [r3, #0]
  19497. 80085b2: 68fb ldr r3, [r7, #12]
  19498. 80085b4: 6edb ldr r3, [r3, #108] @ 0x6c
  19499. 80085b6: f442 7280 orr.w r2, r2, #256 @ 0x100
  19500. 80085ba: 601a str r2, [r3, #0]
  19501. }
  19502. }
  19503. /* Enable the Peripheral */
  19504. __HAL_DMA_ENABLE(hdma);
  19505. 80085bc: 68fb ldr r3, [r7, #12]
  19506. 80085be: 681b ldr r3, [r3, #0]
  19507. 80085c0: 4a37 ldr r2, [pc, #220] @ (80086a0 <HAL_DMA_Start_IT+0x474>)
  19508. 80085c2: 4293 cmp r3, r2
  19509. 80085c4: d04a beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19510. 80085c6: 68fb ldr r3, [r7, #12]
  19511. 80085c8: 681b ldr r3, [r3, #0]
  19512. 80085ca: 4a36 ldr r2, [pc, #216] @ (80086a4 <HAL_DMA_Start_IT+0x478>)
  19513. 80085cc: 4293 cmp r3, r2
  19514. 80085ce: d045 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19515. 80085d0: 68fb ldr r3, [r7, #12]
  19516. 80085d2: 681b ldr r3, [r3, #0]
  19517. 80085d4: 4a34 ldr r2, [pc, #208] @ (80086a8 <HAL_DMA_Start_IT+0x47c>)
  19518. 80085d6: 4293 cmp r3, r2
  19519. 80085d8: d040 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19520. 80085da: 68fb ldr r3, [r7, #12]
  19521. 80085dc: 681b ldr r3, [r3, #0]
  19522. 80085de: 4a33 ldr r2, [pc, #204] @ (80086ac <HAL_DMA_Start_IT+0x480>)
  19523. 80085e0: 4293 cmp r3, r2
  19524. 80085e2: d03b beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19525. 80085e4: 68fb ldr r3, [r7, #12]
  19526. 80085e6: 681b ldr r3, [r3, #0]
  19527. 80085e8: 4a31 ldr r2, [pc, #196] @ (80086b0 <HAL_DMA_Start_IT+0x484>)
  19528. 80085ea: 4293 cmp r3, r2
  19529. 80085ec: d036 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19530. 80085ee: 68fb ldr r3, [r7, #12]
  19531. 80085f0: 681b ldr r3, [r3, #0]
  19532. 80085f2: 4a30 ldr r2, [pc, #192] @ (80086b4 <HAL_DMA_Start_IT+0x488>)
  19533. 80085f4: 4293 cmp r3, r2
  19534. 80085f6: d031 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19535. 80085f8: 68fb ldr r3, [r7, #12]
  19536. 80085fa: 681b ldr r3, [r3, #0]
  19537. 80085fc: 4a2e ldr r2, [pc, #184] @ (80086b8 <HAL_DMA_Start_IT+0x48c>)
  19538. 80085fe: 4293 cmp r3, r2
  19539. 8008600: d02c beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19540. 8008602: 68fb ldr r3, [r7, #12]
  19541. 8008604: 681b ldr r3, [r3, #0]
  19542. 8008606: 4a2d ldr r2, [pc, #180] @ (80086bc <HAL_DMA_Start_IT+0x490>)
  19543. 8008608: 4293 cmp r3, r2
  19544. 800860a: d027 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19545. 800860c: 68fb ldr r3, [r7, #12]
  19546. 800860e: 681b ldr r3, [r3, #0]
  19547. 8008610: 4a2b ldr r2, [pc, #172] @ (80086c0 <HAL_DMA_Start_IT+0x494>)
  19548. 8008612: 4293 cmp r3, r2
  19549. 8008614: d022 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19550. 8008616: 68fb ldr r3, [r7, #12]
  19551. 8008618: 681b ldr r3, [r3, #0]
  19552. 800861a: 4a2a ldr r2, [pc, #168] @ (80086c4 <HAL_DMA_Start_IT+0x498>)
  19553. 800861c: 4293 cmp r3, r2
  19554. 800861e: d01d beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19555. 8008620: 68fb ldr r3, [r7, #12]
  19556. 8008622: 681b ldr r3, [r3, #0]
  19557. 8008624: 4a28 ldr r2, [pc, #160] @ (80086c8 <HAL_DMA_Start_IT+0x49c>)
  19558. 8008626: 4293 cmp r3, r2
  19559. 8008628: d018 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19560. 800862a: 68fb ldr r3, [r7, #12]
  19561. 800862c: 681b ldr r3, [r3, #0]
  19562. 800862e: 4a27 ldr r2, [pc, #156] @ (80086cc <HAL_DMA_Start_IT+0x4a0>)
  19563. 8008630: 4293 cmp r3, r2
  19564. 8008632: d013 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19565. 8008634: 68fb ldr r3, [r7, #12]
  19566. 8008636: 681b ldr r3, [r3, #0]
  19567. 8008638: 4a25 ldr r2, [pc, #148] @ (80086d0 <HAL_DMA_Start_IT+0x4a4>)
  19568. 800863a: 4293 cmp r3, r2
  19569. 800863c: d00e beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19570. 800863e: 68fb ldr r3, [r7, #12]
  19571. 8008640: 681b ldr r3, [r3, #0]
  19572. 8008642: 4a24 ldr r2, [pc, #144] @ (80086d4 <HAL_DMA_Start_IT+0x4a8>)
  19573. 8008644: 4293 cmp r3, r2
  19574. 8008646: d009 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19575. 8008648: 68fb ldr r3, [r7, #12]
  19576. 800864a: 681b ldr r3, [r3, #0]
  19577. 800864c: 4a22 ldr r2, [pc, #136] @ (80086d8 <HAL_DMA_Start_IT+0x4ac>)
  19578. 800864e: 4293 cmp r3, r2
  19579. 8008650: d004 beq.n 800865c <HAL_DMA_Start_IT+0x430>
  19580. 8008652: 68fb ldr r3, [r7, #12]
  19581. 8008654: 681b ldr r3, [r3, #0]
  19582. 8008656: 4a21 ldr r2, [pc, #132] @ (80086dc <HAL_DMA_Start_IT+0x4b0>)
  19583. 8008658: 4293 cmp r3, r2
  19584. 800865a: d108 bne.n 800866e <HAL_DMA_Start_IT+0x442>
  19585. 800865c: 68fb ldr r3, [r7, #12]
  19586. 800865e: 681b ldr r3, [r3, #0]
  19587. 8008660: 681a ldr r2, [r3, #0]
  19588. 8008662: 68fb ldr r3, [r7, #12]
  19589. 8008664: 681b ldr r3, [r3, #0]
  19590. 8008666: f042 0201 orr.w r2, r2, #1
  19591. 800866a: 601a str r2, [r3, #0]
  19592. 800866c: e012 b.n 8008694 <HAL_DMA_Start_IT+0x468>
  19593. 800866e: 68fb ldr r3, [r7, #12]
  19594. 8008670: 681b ldr r3, [r3, #0]
  19595. 8008672: 681a ldr r2, [r3, #0]
  19596. 8008674: 68fb ldr r3, [r7, #12]
  19597. 8008676: 681b ldr r3, [r3, #0]
  19598. 8008678: f042 0201 orr.w r2, r2, #1
  19599. 800867c: 601a str r2, [r3, #0]
  19600. 800867e: e009 b.n 8008694 <HAL_DMA_Start_IT+0x468>
  19601. }
  19602. else
  19603. {
  19604. /* Set the error code to busy */
  19605. hdma->ErrorCode = HAL_DMA_ERROR_BUSY;
  19606. 8008680: 68fb ldr r3, [r7, #12]
  19607. 8008682: f44f 6200 mov.w r2, #2048 @ 0x800
  19608. 8008686: 655a str r2, [r3, #84] @ 0x54
  19609. /* Process unlocked */
  19610. __HAL_UNLOCK(hdma);
  19611. 8008688: 68fb ldr r3, [r7, #12]
  19612. 800868a: 2200 movs r2, #0
  19613. 800868c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19614. /* Return error status */
  19615. status = HAL_ERROR;
  19616. 8008690: 2301 movs r3, #1
  19617. 8008692: 75fb strb r3, [r7, #23]
  19618. }
  19619. return status;
  19620. 8008694: 7dfb ldrb r3, [r7, #23]
  19621. }
  19622. 8008696: 4618 mov r0, r3
  19623. 8008698: 3718 adds r7, #24
  19624. 800869a: 46bd mov sp, r7
  19625. 800869c: bd80 pop {r7, pc}
  19626. 800869e: bf00 nop
  19627. 80086a0: 40020010 .word 0x40020010
  19628. 80086a4: 40020028 .word 0x40020028
  19629. 80086a8: 40020040 .word 0x40020040
  19630. 80086ac: 40020058 .word 0x40020058
  19631. 80086b0: 40020070 .word 0x40020070
  19632. 80086b4: 40020088 .word 0x40020088
  19633. 80086b8: 400200a0 .word 0x400200a0
  19634. 80086bc: 400200b8 .word 0x400200b8
  19635. 80086c0: 40020410 .word 0x40020410
  19636. 80086c4: 40020428 .word 0x40020428
  19637. 80086c8: 40020440 .word 0x40020440
  19638. 80086cc: 40020458 .word 0x40020458
  19639. 80086d0: 40020470 .word 0x40020470
  19640. 80086d4: 40020488 .word 0x40020488
  19641. 80086d8: 400204a0 .word 0x400204a0
  19642. 80086dc: 400204b8 .word 0x400204b8
  19643. 80086e0: 58025408 .word 0x58025408
  19644. 80086e4: 5802541c .word 0x5802541c
  19645. 80086e8: 58025430 .word 0x58025430
  19646. 80086ec: 58025444 .word 0x58025444
  19647. 80086f0: 58025458 .word 0x58025458
  19648. 80086f4: 5802546c .word 0x5802546c
  19649. 80086f8: 58025480 .word 0x58025480
  19650. 80086fc: 58025494 .word 0x58025494
  19651. 08008700 <HAL_DMA_Abort>:
  19652. * and the Stream will be effectively disabled only after the transfer of
  19653. * this single data is finished.
  19654. * @retval HAL status
  19655. */
  19656. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  19657. {
  19658. 8008700: b580 push {r7, lr}
  19659. 8008702: b086 sub sp, #24
  19660. 8008704: af00 add r7, sp, #0
  19661. 8008706: 6078 str r0, [r7, #4]
  19662. /* calculate DMA base and stream number */
  19663. DMA_Base_Registers *regs_dma;
  19664. BDMA_Base_Registers *regs_bdma;
  19665. const __IO uint32_t *enableRegister;
  19666. uint32_t tickstart = HAL_GetTick();
  19667. 8008708: f7fc fe98 bl 800543c <HAL_GetTick>
  19668. 800870c: 6138 str r0, [r7, #16]
  19669. /* Check the DMA peripheral handle */
  19670. if(hdma == NULL)
  19671. 800870e: 687b ldr r3, [r7, #4]
  19672. 8008710: 2b00 cmp r3, #0
  19673. 8008712: d101 bne.n 8008718 <HAL_DMA_Abort+0x18>
  19674. {
  19675. return HAL_ERROR;
  19676. 8008714: 2301 movs r3, #1
  19677. 8008716: e2dc b.n 8008cd2 <HAL_DMA_Abort+0x5d2>
  19678. }
  19679. /* Check the DMA peripheral state */
  19680. if(hdma->State != HAL_DMA_STATE_BUSY)
  19681. 8008718: 687b ldr r3, [r7, #4]
  19682. 800871a: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  19683. 800871e: b2db uxtb r3, r3
  19684. 8008720: 2b02 cmp r3, #2
  19685. 8008722: d008 beq.n 8008736 <HAL_DMA_Abort+0x36>
  19686. {
  19687. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  19688. 8008724: 687b ldr r3, [r7, #4]
  19689. 8008726: 2280 movs r2, #128 @ 0x80
  19690. 8008728: 655a str r2, [r3, #84] @ 0x54
  19691. /* Process Unlocked */
  19692. __HAL_UNLOCK(hdma);
  19693. 800872a: 687b ldr r3, [r7, #4]
  19694. 800872c: 2200 movs r2, #0
  19695. 800872e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19696. return HAL_ERROR;
  19697. 8008732: 2301 movs r3, #1
  19698. 8008734: e2cd b.n 8008cd2 <HAL_DMA_Abort+0x5d2>
  19699. }
  19700. else
  19701. {
  19702. /* Disable all the transfer interrupts */
  19703. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19704. 8008736: 687b ldr r3, [r7, #4]
  19705. 8008738: 681b ldr r3, [r3, #0]
  19706. 800873a: 4a76 ldr r2, [pc, #472] @ (8008914 <HAL_DMA_Abort+0x214>)
  19707. 800873c: 4293 cmp r3, r2
  19708. 800873e: d04a beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19709. 8008740: 687b ldr r3, [r7, #4]
  19710. 8008742: 681b ldr r3, [r3, #0]
  19711. 8008744: 4a74 ldr r2, [pc, #464] @ (8008918 <HAL_DMA_Abort+0x218>)
  19712. 8008746: 4293 cmp r3, r2
  19713. 8008748: d045 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19714. 800874a: 687b ldr r3, [r7, #4]
  19715. 800874c: 681b ldr r3, [r3, #0]
  19716. 800874e: 4a73 ldr r2, [pc, #460] @ (800891c <HAL_DMA_Abort+0x21c>)
  19717. 8008750: 4293 cmp r3, r2
  19718. 8008752: d040 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19719. 8008754: 687b ldr r3, [r7, #4]
  19720. 8008756: 681b ldr r3, [r3, #0]
  19721. 8008758: 4a71 ldr r2, [pc, #452] @ (8008920 <HAL_DMA_Abort+0x220>)
  19722. 800875a: 4293 cmp r3, r2
  19723. 800875c: d03b beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19724. 800875e: 687b ldr r3, [r7, #4]
  19725. 8008760: 681b ldr r3, [r3, #0]
  19726. 8008762: 4a70 ldr r2, [pc, #448] @ (8008924 <HAL_DMA_Abort+0x224>)
  19727. 8008764: 4293 cmp r3, r2
  19728. 8008766: d036 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19729. 8008768: 687b ldr r3, [r7, #4]
  19730. 800876a: 681b ldr r3, [r3, #0]
  19731. 800876c: 4a6e ldr r2, [pc, #440] @ (8008928 <HAL_DMA_Abort+0x228>)
  19732. 800876e: 4293 cmp r3, r2
  19733. 8008770: d031 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19734. 8008772: 687b ldr r3, [r7, #4]
  19735. 8008774: 681b ldr r3, [r3, #0]
  19736. 8008776: 4a6d ldr r2, [pc, #436] @ (800892c <HAL_DMA_Abort+0x22c>)
  19737. 8008778: 4293 cmp r3, r2
  19738. 800877a: d02c beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19739. 800877c: 687b ldr r3, [r7, #4]
  19740. 800877e: 681b ldr r3, [r3, #0]
  19741. 8008780: 4a6b ldr r2, [pc, #428] @ (8008930 <HAL_DMA_Abort+0x230>)
  19742. 8008782: 4293 cmp r3, r2
  19743. 8008784: d027 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19744. 8008786: 687b ldr r3, [r7, #4]
  19745. 8008788: 681b ldr r3, [r3, #0]
  19746. 800878a: 4a6a ldr r2, [pc, #424] @ (8008934 <HAL_DMA_Abort+0x234>)
  19747. 800878c: 4293 cmp r3, r2
  19748. 800878e: d022 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19749. 8008790: 687b ldr r3, [r7, #4]
  19750. 8008792: 681b ldr r3, [r3, #0]
  19751. 8008794: 4a68 ldr r2, [pc, #416] @ (8008938 <HAL_DMA_Abort+0x238>)
  19752. 8008796: 4293 cmp r3, r2
  19753. 8008798: d01d beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19754. 800879a: 687b ldr r3, [r7, #4]
  19755. 800879c: 681b ldr r3, [r3, #0]
  19756. 800879e: 4a67 ldr r2, [pc, #412] @ (800893c <HAL_DMA_Abort+0x23c>)
  19757. 80087a0: 4293 cmp r3, r2
  19758. 80087a2: d018 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19759. 80087a4: 687b ldr r3, [r7, #4]
  19760. 80087a6: 681b ldr r3, [r3, #0]
  19761. 80087a8: 4a65 ldr r2, [pc, #404] @ (8008940 <HAL_DMA_Abort+0x240>)
  19762. 80087aa: 4293 cmp r3, r2
  19763. 80087ac: d013 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19764. 80087ae: 687b ldr r3, [r7, #4]
  19765. 80087b0: 681b ldr r3, [r3, #0]
  19766. 80087b2: 4a64 ldr r2, [pc, #400] @ (8008944 <HAL_DMA_Abort+0x244>)
  19767. 80087b4: 4293 cmp r3, r2
  19768. 80087b6: d00e beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19769. 80087b8: 687b ldr r3, [r7, #4]
  19770. 80087ba: 681b ldr r3, [r3, #0]
  19771. 80087bc: 4a62 ldr r2, [pc, #392] @ (8008948 <HAL_DMA_Abort+0x248>)
  19772. 80087be: 4293 cmp r3, r2
  19773. 80087c0: d009 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19774. 80087c2: 687b ldr r3, [r7, #4]
  19775. 80087c4: 681b ldr r3, [r3, #0]
  19776. 80087c6: 4a61 ldr r2, [pc, #388] @ (800894c <HAL_DMA_Abort+0x24c>)
  19777. 80087c8: 4293 cmp r3, r2
  19778. 80087ca: d004 beq.n 80087d6 <HAL_DMA_Abort+0xd6>
  19779. 80087cc: 687b ldr r3, [r7, #4]
  19780. 80087ce: 681b ldr r3, [r3, #0]
  19781. 80087d0: 4a5f ldr r2, [pc, #380] @ (8008950 <HAL_DMA_Abort+0x250>)
  19782. 80087d2: 4293 cmp r3, r2
  19783. 80087d4: d101 bne.n 80087da <HAL_DMA_Abort+0xda>
  19784. 80087d6: 2301 movs r3, #1
  19785. 80087d8: e000 b.n 80087dc <HAL_DMA_Abort+0xdc>
  19786. 80087da: 2300 movs r3, #0
  19787. 80087dc: 2b00 cmp r3, #0
  19788. 80087de: d013 beq.n 8008808 <HAL_DMA_Abort+0x108>
  19789. {
  19790. /* Disable DMA All Interrupts */
  19791. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  19792. 80087e0: 687b ldr r3, [r7, #4]
  19793. 80087e2: 681b ldr r3, [r3, #0]
  19794. 80087e4: 681a ldr r2, [r3, #0]
  19795. 80087e6: 687b ldr r3, [r7, #4]
  19796. 80087e8: 681b ldr r3, [r3, #0]
  19797. 80087ea: f022 021e bic.w r2, r2, #30
  19798. 80087ee: 601a str r2, [r3, #0]
  19799. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  19800. 80087f0: 687b ldr r3, [r7, #4]
  19801. 80087f2: 681b ldr r3, [r3, #0]
  19802. 80087f4: 695a ldr r2, [r3, #20]
  19803. 80087f6: 687b ldr r3, [r7, #4]
  19804. 80087f8: 681b ldr r3, [r3, #0]
  19805. 80087fa: f022 0280 bic.w r2, r2, #128 @ 0x80
  19806. 80087fe: 615a str r2, [r3, #20]
  19807. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  19808. 8008800: 687b ldr r3, [r7, #4]
  19809. 8008802: 681b ldr r3, [r3, #0]
  19810. 8008804: 617b str r3, [r7, #20]
  19811. 8008806: e00a b.n 800881e <HAL_DMA_Abort+0x11e>
  19812. }
  19813. else /* BDMA channel */
  19814. {
  19815. /* Disable DMA All Interrupts */
  19816. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  19817. 8008808: 687b ldr r3, [r7, #4]
  19818. 800880a: 681b ldr r3, [r3, #0]
  19819. 800880c: 681a ldr r2, [r3, #0]
  19820. 800880e: 687b ldr r3, [r7, #4]
  19821. 8008810: 681b ldr r3, [r3, #0]
  19822. 8008812: f022 020e bic.w r2, r2, #14
  19823. 8008816: 601a str r2, [r3, #0]
  19824. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  19825. 8008818: 687b ldr r3, [r7, #4]
  19826. 800881a: 681b ldr r3, [r3, #0]
  19827. 800881c: 617b str r3, [r7, #20]
  19828. }
  19829. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  19830. 800881e: 687b ldr r3, [r7, #4]
  19831. 8008820: 681b ldr r3, [r3, #0]
  19832. 8008822: 4a3c ldr r2, [pc, #240] @ (8008914 <HAL_DMA_Abort+0x214>)
  19833. 8008824: 4293 cmp r3, r2
  19834. 8008826: d072 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19835. 8008828: 687b ldr r3, [r7, #4]
  19836. 800882a: 681b ldr r3, [r3, #0]
  19837. 800882c: 4a3a ldr r2, [pc, #232] @ (8008918 <HAL_DMA_Abort+0x218>)
  19838. 800882e: 4293 cmp r3, r2
  19839. 8008830: d06d beq.n 800890e <HAL_DMA_Abort+0x20e>
  19840. 8008832: 687b ldr r3, [r7, #4]
  19841. 8008834: 681b ldr r3, [r3, #0]
  19842. 8008836: 4a39 ldr r2, [pc, #228] @ (800891c <HAL_DMA_Abort+0x21c>)
  19843. 8008838: 4293 cmp r3, r2
  19844. 800883a: d068 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19845. 800883c: 687b ldr r3, [r7, #4]
  19846. 800883e: 681b ldr r3, [r3, #0]
  19847. 8008840: 4a37 ldr r2, [pc, #220] @ (8008920 <HAL_DMA_Abort+0x220>)
  19848. 8008842: 4293 cmp r3, r2
  19849. 8008844: d063 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19850. 8008846: 687b ldr r3, [r7, #4]
  19851. 8008848: 681b ldr r3, [r3, #0]
  19852. 800884a: 4a36 ldr r2, [pc, #216] @ (8008924 <HAL_DMA_Abort+0x224>)
  19853. 800884c: 4293 cmp r3, r2
  19854. 800884e: d05e beq.n 800890e <HAL_DMA_Abort+0x20e>
  19855. 8008850: 687b ldr r3, [r7, #4]
  19856. 8008852: 681b ldr r3, [r3, #0]
  19857. 8008854: 4a34 ldr r2, [pc, #208] @ (8008928 <HAL_DMA_Abort+0x228>)
  19858. 8008856: 4293 cmp r3, r2
  19859. 8008858: d059 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19860. 800885a: 687b ldr r3, [r7, #4]
  19861. 800885c: 681b ldr r3, [r3, #0]
  19862. 800885e: 4a33 ldr r2, [pc, #204] @ (800892c <HAL_DMA_Abort+0x22c>)
  19863. 8008860: 4293 cmp r3, r2
  19864. 8008862: d054 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19865. 8008864: 687b ldr r3, [r7, #4]
  19866. 8008866: 681b ldr r3, [r3, #0]
  19867. 8008868: 4a31 ldr r2, [pc, #196] @ (8008930 <HAL_DMA_Abort+0x230>)
  19868. 800886a: 4293 cmp r3, r2
  19869. 800886c: d04f beq.n 800890e <HAL_DMA_Abort+0x20e>
  19870. 800886e: 687b ldr r3, [r7, #4]
  19871. 8008870: 681b ldr r3, [r3, #0]
  19872. 8008872: 4a30 ldr r2, [pc, #192] @ (8008934 <HAL_DMA_Abort+0x234>)
  19873. 8008874: 4293 cmp r3, r2
  19874. 8008876: d04a beq.n 800890e <HAL_DMA_Abort+0x20e>
  19875. 8008878: 687b ldr r3, [r7, #4]
  19876. 800887a: 681b ldr r3, [r3, #0]
  19877. 800887c: 4a2e ldr r2, [pc, #184] @ (8008938 <HAL_DMA_Abort+0x238>)
  19878. 800887e: 4293 cmp r3, r2
  19879. 8008880: d045 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19880. 8008882: 687b ldr r3, [r7, #4]
  19881. 8008884: 681b ldr r3, [r3, #0]
  19882. 8008886: 4a2d ldr r2, [pc, #180] @ (800893c <HAL_DMA_Abort+0x23c>)
  19883. 8008888: 4293 cmp r3, r2
  19884. 800888a: d040 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19885. 800888c: 687b ldr r3, [r7, #4]
  19886. 800888e: 681b ldr r3, [r3, #0]
  19887. 8008890: 4a2b ldr r2, [pc, #172] @ (8008940 <HAL_DMA_Abort+0x240>)
  19888. 8008892: 4293 cmp r3, r2
  19889. 8008894: d03b beq.n 800890e <HAL_DMA_Abort+0x20e>
  19890. 8008896: 687b ldr r3, [r7, #4]
  19891. 8008898: 681b ldr r3, [r3, #0]
  19892. 800889a: 4a2a ldr r2, [pc, #168] @ (8008944 <HAL_DMA_Abort+0x244>)
  19893. 800889c: 4293 cmp r3, r2
  19894. 800889e: d036 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19895. 80088a0: 687b ldr r3, [r7, #4]
  19896. 80088a2: 681b ldr r3, [r3, #0]
  19897. 80088a4: 4a28 ldr r2, [pc, #160] @ (8008948 <HAL_DMA_Abort+0x248>)
  19898. 80088a6: 4293 cmp r3, r2
  19899. 80088a8: d031 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19900. 80088aa: 687b ldr r3, [r7, #4]
  19901. 80088ac: 681b ldr r3, [r3, #0]
  19902. 80088ae: 4a27 ldr r2, [pc, #156] @ (800894c <HAL_DMA_Abort+0x24c>)
  19903. 80088b0: 4293 cmp r3, r2
  19904. 80088b2: d02c beq.n 800890e <HAL_DMA_Abort+0x20e>
  19905. 80088b4: 687b ldr r3, [r7, #4]
  19906. 80088b6: 681b ldr r3, [r3, #0]
  19907. 80088b8: 4a25 ldr r2, [pc, #148] @ (8008950 <HAL_DMA_Abort+0x250>)
  19908. 80088ba: 4293 cmp r3, r2
  19909. 80088bc: d027 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19910. 80088be: 687b ldr r3, [r7, #4]
  19911. 80088c0: 681b ldr r3, [r3, #0]
  19912. 80088c2: 4a24 ldr r2, [pc, #144] @ (8008954 <HAL_DMA_Abort+0x254>)
  19913. 80088c4: 4293 cmp r3, r2
  19914. 80088c6: d022 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19915. 80088c8: 687b ldr r3, [r7, #4]
  19916. 80088ca: 681b ldr r3, [r3, #0]
  19917. 80088cc: 4a22 ldr r2, [pc, #136] @ (8008958 <HAL_DMA_Abort+0x258>)
  19918. 80088ce: 4293 cmp r3, r2
  19919. 80088d0: d01d beq.n 800890e <HAL_DMA_Abort+0x20e>
  19920. 80088d2: 687b ldr r3, [r7, #4]
  19921. 80088d4: 681b ldr r3, [r3, #0]
  19922. 80088d6: 4a21 ldr r2, [pc, #132] @ (800895c <HAL_DMA_Abort+0x25c>)
  19923. 80088d8: 4293 cmp r3, r2
  19924. 80088da: d018 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19925. 80088dc: 687b ldr r3, [r7, #4]
  19926. 80088de: 681b ldr r3, [r3, #0]
  19927. 80088e0: 4a1f ldr r2, [pc, #124] @ (8008960 <HAL_DMA_Abort+0x260>)
  19928. 80088e2: 4293 cmp r3, r2
  19929. 80088e4: d013 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19930. 80088e6: 687b ldr r3, [r7, #4]
  19931. 80088e8: 681b ldr r3, [r3, #0]
  19932. 80088ea: 4a1e ldr r2, [pc, #120] @ (8008964 <HAL_DMA_Abort+0x264>)
  19933. 80088ec: 4293 cmp r3, r2
  19934. 80088ee: d00e beq.n 800890e <HAL_DMA_Abort+0x20e>
  19935. 80088f0: 687b ldr r3, [r7, #4]
  19936. 80088f2: 681b ldr r3, [r3, #0]
  19937. 80088f4: 4a1c ldr r2, [pc, #112] @ (8008968 <HAL_DMA_Abort+0x268>)
  19938. 80088f6: 4293 cmp r3, r2
  19939. 80088f8: d009 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19940. 80088fa: 687b ldr r3, [r7, #4]
  19941. 80088fc: 681b ldr r3, [r3, #0]
  19942. 80088fe: 4a1b ldr r2, [pc, #108] @ (800896c <HAL_DMA_Abort+0x26c>)
  19943. 8008900: 4293 cmp r3, r2
  19944. 8008902: d004 beq.n 800890e <HAL_DMA_Abort+0x20e>
  19945. 8008904: 687b ldr r3, [r7, #4]
  19946. 8008906: 681b ldr r3, [r3, #0]
  19947. 8008908: 4a19 ldr r2, [pc, #100] @ (8008970 <HAL_DMA_Abort+0x270>)
  19948. 800890a: 4293 cmp r3, r2
  19949. 800890c: d132 bne.n 8008974 <HAL_DMA_Abort+0x274>
  19950. 800890e: 2301 movs r3, #1
  19951. 8008910: e031 b.n 8008976 <HAL_DMA_Abort+0x276>
  19952. 8008912: bf00 nop
  19953. 8008914: 40020010 .word 0x40020010
  19954. 8008918: 40020028 .word 0x40020028
  19955. 800891c: 40020040 .word 0x40020040
  19956. 8008920: 40020058 .word 0x40020058
  19957. 8008924: 40020070 .word 0x40020070
  19958. 8008928: 40020088 .word 0x40020088
  19959. 800892c: 400200a0 .word 0x400200a0
  19960. 8008930: 400200b8 .word 0x400200b8
  19961. 8008934: 40020410 .word 0x40020410
  19962. 8008938: 40020428 .word 0x40020428
  19963. 800893c: 40020440 .word 0x40020440
  19964. 8008940: 40020458 .word 0x40020458
  19965. 8008944: 40020470 .word 0x40020470
  19966. 8008948: 40020488 .word 0x40020488
  19967. 800894c: 400204a0 .word 0x400204a0
  19968. 8008950: 400204b8 .word 0x400204b8
  19969. 8008954: 58025408 .word 0x58025408
  19970. 8008958: 5802541c .word 0x5802541c
  19971. 800895c: 58025430 .word 0x58025430
  19972. 8008960: 58025444 .word 0x58025444
  19973. 8008964: 58025458 .word 0x58025458
  19974. 8008968: 5802546c .word 0x5802546c
  19975. 800896c: 58025480 .word 0x58025480
  19976. 8008970: 58025494 .word 0x58025494
  19977. 8008974: 2300 movs r3, #0
  19978. 8008976: 2b00 cmp r3, #0
  19979. 8008978: d007 beq.n 800898a <HAL_DMA_Abort+0x28a>
  19980. {
  19981. /* disable the DMAMUX sync overrun IT */
  19982. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  19983. 800897a: 687b ldr r3, [r7, #4]
  19984. 800897c: 6e1b ldr r3, [r3, #96] @ 0x60
  19985. 800897e: 681a ldr r2, [r3, #0]
  19986. 8008980: 687b ldr r3, [r7, #4]
  19987. 8008982: 6e1b ldr r3, [r3, #96] @ 0x60
  19988. 8008984: f422 7280 bic.w r2, r2, #256 @ 0x100
  19989. 8008988: 601a str r2, [r3, #0]
  19990. }
  19991. /* Disable the stream */
  19992. __HAL_DMA_DISABLE(hdma);
  19993. 800898a: 687b ldr r3, [r7, #4]
  19994. 800898c: 681b ldr r3, [r3, #0]
  19995. 800898e: 4a6d ldr r2, [pc, #436] @ (8008b44 <HAL_DMA_Abort+0x444>)
  19996. 8008990: 4293 cmp r3, r2
  19997. 8008992: d04a beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  19998. 8008994: 687b ldr r3, [r7, #4]
  19999. 8008996: 681b ldr r3, [r3, #0]
  20000. 8008998: 4a6b ldr r2, [pc, #428] @ (8008b48 <HAL_DMA_Abort+0x448>)
  20001. 800899a: 4293 cmp r3, r2
  20002. 800899c: d045 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20003. 800899e: 687b ldr r3, [r7, #4]
  20004. 80089a0: 681b ldr r3, [r3, #0]
  20005. 80089a2: 4a6a ldr r2, [pc, #424] @ (8008b4c <HAL_DMA_Abort+0x44c>)
  20006. 80089a4: 4293 cmp r3, r2
  20007. 80089a6: d040 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20008. 80089a8: 687b ldr r3, [r7, #4]
  20009. 80089aa: 681b ldr r3, [r3, #0]
  20010. 80089ac: 4a68 ldr r2, [pc, #416] @ (8008b50 <HAL_DMA_Abort+0x450>)
  20011. 80089ae: 4293 cmp r3, r2
  20012. 80089b0: d03b beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20013. 80089b2: 687b ldr r3, [r7, #4]
  20014. 80089b4: 681b ldr r3, [r3, #0]
  20015. 80089b6: 4a67 ldr r2, [pc, #412] @ (8008b54 <HAL_DMA_Abort+0x454>)
  20016. 80089b8: 4293 cmp r3, r2
  20017. 80089ba: d036 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20018. 80089bc: 687b ldr r3, [r7, #4]
  20019. 80089be: 681b ldr r3, [r3, #0]
  20020. 80089c0: 4a65 ldr r2, [pc, #404] @ (8008b58 <HAL_DMA_Abort+0x458>)
  20021. 80089c2: 4293 cmp r3, r2
  20022. 80089c4: d031 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20023. 80089c6: 687b ldr r3, [r7, #4]
  20024. 80089c8: 681b ldr r3, [r3, #0]
  20025. 80089ca: 4a64 ldr r2, [pc, #400] @ (8008b5c <HAL_DMA_Abort+0x45c>)
  20026. 80089cc: 4293 cmp r3, r2
  20027. 80089ce: d02c beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20028. 80089d0: 687b ldr r3, [r7, #4]
  20029. 80089d2: 681b ldr r3, [r3, #0]
  20030. 80089d4: 4a62 ldr r2, [pc, #392] @ (8008b60 <HAL_DMA_Abort+0x460>)
  20031. 80089d6: 4293 cmp r3, r2
  20032. 80089d8: d027 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20033. 80089da: 687b ldr r3, [r7, #4]
  20034. 80089dc: 681b ldr r3, [r3, #0]
  20035. 80089de: 4a61 ldr r2, [pc, #388] @ (8008b64 <HAL_DMA_Abort+0x464>)
  20036. 80089e0: 4293 cmp r3, r2
  20037. 80089e2: d022 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20038. 80089e4: 687b ldr r3, [r7, #4]
  20039. 80089e6: 681b ldr r3, [r3, #0]
  20040. 80089e8: 4a5f ldr r2, [pc, #380] @ (8008b68 <HAL_DMA_Abort+0x468>)
  20041. 80089ea: 4293 cmp r3, r2
  20042. 80089ec: d01d beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20043. 80089ee: 687b ldr r3, [r7, #4]
  20044. 80089f0: 681b ldr r3, [r3, #0]
  20045. 80089f2: 4a5e ldr r2, [pc, #376] @ (8008b6c <HAL_DMA_Abort+0x46c>)
  20046. 80089f4: 4293 cmp r3, r2
  20047. 80089f6: d018 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20048. 80089f8: 687b ldr r3, [r7, #4]
  20049. 80089fa: 681b ldr r3, [r3, #0]
  20050. 80089fc: 4a5c ldr r2, [pc, #368] @ (8008b70 <HAL_DMA_Abort+0x470>)
  20051. 80089fe: 4293 cmp r3, r2
  20052. 8008a00: d013 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20053. 8008a02: 687b ldr r3, [r7, #4]
  20054. 8008a04: 681b ldr r3, [r3, #0]
  20055. 8008a06: 4a5b ldr r2, [pc, #364] @ (8008b74 <HAL_DMA_Abort+0x474>)
  20056. 8008a08: 4293 cmp r3, r2
  20057. 8008a0a: d00e beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20058. 8008a0c: 687b ldr r3, [r7, #4]
  20059. 8008a0e: 681b ldr r3, [r3, #0]
  20060. 8008a10: 4a59 ldr r2, [pc, #356] @ (8008b78 <HAL_DMA_Abort+0x478>)
  20061. 8008a12: 4293 cmp r3, r2
  20062. 8008a14: d009 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20063. 8008a16: 687b ldr r3, [r7, #4]
  20064. 8008a18: 681b ldr r3, [r3, #0]
  20065. 8008a1a: 4a58 ldr r2, [pc, #352] @ (8008b7c <HAL_DMA_Abort+0x47c>)
  20066. 8008a1c: 4293 cmp r3, r2
  20067. 8008a1e: d004 beq.n 8008a2a <HAL_DMA_Abort+0x32a>
  20068. 8008a20: 687b ldr r3, [r7, #4]
  20069. 8008a22: 681b ldr r3, [r3, #0]
  20070. 8008a24: 4a56 ldr r2, [pc, #344] @ (8008b80 <HAL_DMA_Abort+0x480>)
  20071. 8008a26: 4293 cmp r3, r2
  20072. 8008a28: d108 bne.n 8008a3c <HAL_DMA_Abort+0x33c>
  20073. 8008a2a: 687b ldr r3, [r7, #4]
  20074. 8008a2c: 681b ldr r3, [r3, #0]
  20075. 8008a2e: 681a ldr r2, [r3, #0]
  20076. 8008a30: 687b ldr r3, [r7, #4]
  20077. 8008a32: 681b ldr r3, [r3, #0]
  20078. 8008a34: f022 0201 bic.w r2, r2, #1
  20079. 8008a38: 601a str r2, [r3, #0]
  20080. 8008a3a: e007 b.n 8008a4c <HAL_DMA_Abort+0x34c>
  20081. 8008a3c: 687b ldr r3, [r7, #4]
  20082. 8008a3e: 681b ldr r3, [r3, #0]
  20083. 8008a40: 681a ldr r2, [r3, #0]
  20084. 8008a42: 687b ldr r3, [r7, #4]
  20085. 8008a44: 681b ldr r3, [r3, #0]
  20086. 8008a46: f022 0201 bic.w r2, r2, #1
  20087. 8008a4a: 601a str r2, [r3, #0]
  20088. /* Check if the DMA Stream is effectively disabled */
  20089. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  20090. 8008a4c: e013 b.n 8008a76 <HAL_DMA_Abort+0x376>
  20091. {
  20092. /* Check for the Timeout */
  20093. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  20094. 8008a4e: f7fc fcf5 bl 800543c <HAL_GetTick>
  20095. 8008a52: 4602 mov r2, r0
  20096. 8008a54: 693b ldr r3, [r7, #16]
  20097. 8008a56: 1ad3 subs r3, r2, r3
  20098. 8008a58: 2b05 cmp r3, #5
  20099. 8008a5a: d90c bls.n 8008a76 <HAL_DMA_Abort+0x376>
  20100. {
  20101. /* Update error code */
  20102. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  20103. 8008a5c: 687b ldr r3, [r7, #4]
  20104. 8008a5e: 2220 movs r2, #32
  20105. 8008a60: 655a str r2, [r3, #84] @ 0x54
  20106. /* Change the DMA state */
  20107. hdma->State = HAL_DMA_STATE_ERROR;
  20108. 8008a62: 687b ldr r3, [r7, #4]
  20109. 8008a64: 2203 movs r2, #3
  20110. 8008a66: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20111. /* Process Unlocked */
  20112. __HAL_UNLOCK(hdma);
  20113. 8008a6a: 687b ldr r3, [r7, #4]
  20114. 8008a6c: 2200 movs r2, #0
  20115. 8008a6e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20116. return HAL_ERROR;
  20117. 8008a72: 2301 movs r3, #1
  20118. 8008a74: e12d b.n 8008cd2 <HAL_DMA_Abort+0x5d2>
  20119. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  20120. 8008a76: 697b ldr r3, [r7, #20]
  20121. 8008a78: 681b ldr r3, [r3, #0]
  20122. 8008a7a: f003 0301 and.w r3, r3, #1
  20123. 8008a7e: 2b00 cmp r3, #0
  20124. 8008a80: d1e5 bne.n 8008a4e <HAL_DMA_Abort+0x34e>
  20125. }
  20126. }
  20127. /* Clear all interrupt flags at correct offset within the register */
  20128. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20129. 8008a82: 687b ldr r3, [r7, #4]
  20130. 8008a84: 681b ldr r3, [r3, #0]
  20131. 8008a86: 4a2f ldr r2, [pc, #188] @ (8008b44 <HAL_DMA_Abort+0x444>)
  20132. 8008a88: 4293 cmp r3, r2
  20133. 8008a8a: d04a beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20134. 8008a8c: 687b ldr r3, [r7, #4]
  20135. 8008a8e: 681b ldr r3, [r3, #0]
  20136. 8008a90: 4a2d ldr r2, [pc, #180] @ (8008b48 <HAL_DMA_Abort+0x448>)
  20137. 8008a92: 4293 cmp r3, r2
  20138. 8008a94: d045 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20139. 8008a96: 687b ldr r3, [r7, #4]
  20140. 8008a98: 681b ldr r3, [r3, #0]
  20141. 8008a9a: 4a2c ldr r2, [pc, #176] @ (8008b4c <HAL_DMA_Abort+0x44c>)
  20142. 8008a9c: 4293 cmp r3, r2
  20143. 8008a9e: d040 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20144. 8008aa0: 687b ldr r3, [r7, #4]
  20145. 8008aa2: 681b ldr r3, [r3, #0]
  20146. 8008aa4: 4a2a ldr r2, [pc, #168] @ (8008b50 <HAL_DMA_Abort+0x450>)
  20147. 8008aa6: 4293 cmp r3, r2
  20148. 8008aa8: d03b beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20149. 8008aaa: 687b ldr r3, [r7, #4]
  20150. 8008aac: 681b ldr r3, [r3, #0]
  20151. 8008aae: 4a29 ldr r2, [pc, #164] @ (8008b54 <HAL_DMA_Abort+0x454>)
  20152. 8008ab0: 4293 cmp r3, r2
  20153. 8008ab2: d036 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20154. 8008ab4: 687b ldr r3, [r7, #4]
  20155. 8008ab6: 681b ldr r3, [r3, #0]
  20156. 8008ab8: 4a27 ldr r2, [pc, #156] @ (8008b58 <HAL_DMA_Abort+0x458>)
  20157. 8008aba: 4293 cmp r3, r2
  20158. 8008abc: d031 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20159. 8008abe: 687b ldr r3, [r7, #4]
  20160. 8008ac0: 681b ldr r3, [r3, #0]
  20161. 8008ac2: 4a26 ldr r2, [pc, #152] @ (8008b5c <HAL_DMA_Abort+0x45c>)
  20162. 8008ac4: 4293 cmp r3, r2
  20163. 8008ac6: d02c beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20164. 8008ac8: 687b ldr r3, [r7, #4]
  20165. 8008aca: 681b ldr r3, [r3, #0]
  20166. 8008acc: 4a24 ldr r2, [pc, #144] @ (8008b60 <HAL_DMA_Abort+0x460>)
  20167. 8008ace: 4293 cmp r3, r2
  20168. 8008ad0: d027 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20169. 8008ad2: 687b ldr r3, [r7, #4]
  20170. 8008ad4: 681b ldr r3, [r3, #0]
  20171. 8008ad6: 4a23 ldr r2, [pc, #140] @ (8008b64 <HAL_DMA_Abort+0x464>)
  20172. 8008ad8: 4293 cmp r3, r2
  20173. 8008ada: d022 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20174. 8008adc: 687b ldr r3, [r7, #4]
  20175. 8008ade: 681b ldr r3, [r3, #0]
  20176. 8008ae0: 4a21 ldr r2, [pc, #132] @ (8008b68 <HAL_DMA_Abort+0x468>)
  20177. 8008ae2: 4293 cmp r3, r2
  20178. 8008ae4: d01d beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20179. 8008ae6: 687b ldr r3, [r7, #4]
  20180. 8008ae8: 681b ldr r3, [r3, #0]
  20181. 8008aea: 4a20 ldr r2, [pc, #128] @ (8008b6c <HAL_DMA_Abort+0x46c>)
  20182. 8008aec: 4293 cmp r3, r2
  20183. 8008aee: d018 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20184. 8008af0: 687b ldr r3, [r7, #4]
  20185. 8008af2: 681b ldr r3, [r3, #0]
  20186. 8008af4: 4a1e ldr r2, [pc, #120] @ (8008b70 <HAL_DMA_Abort+0x470>)
  20187. 8008af6: 4293 cmp r3, r2
  20188. 8008af8: d013 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20189. 8008afa: 687b ldr r3, [r7, #4]
  20190. 8008afc: 681b ldr r3, [r3, #0]
  20191. 8008afe: 4a1d ldr r2, [pc, #116] @ (8008b74 <HAL_DMA_Abort+0x474>)
  20192. 8008b00: 4293 cmp r3, r2
  20193. 8008b02: d00e beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20194. 8008b04: 687b ldr r3, [r7, #4]
  20195. 8008b06: 681b ldr r3, [r3, #0]
  20196. 8008b08: 4a1b ldr r2, [pc, #108] @ (8008b78 <HAL_DMA_Abort+0x478>)
  20197. 8008b0a: 4293 cmp r3, r2
  20198. 8008b0c: d009 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20199. 8008b0e: 687b ldr r3, [r7, #4]
  20200. 8008b10: 681b ldr r3, [r3, #0]
  20201. 8008b12: 4a1a ldr r2, [pc, #104] @ (8008b7c <HAL_DMA_Abort+0x47c>)
  20202. 8008b14: 4293 cmp r3, r2
  20203. 8008b16: d004 beq.n 8008b22 <HAL_DMA_Abort+0x422>
  20204. 8008b18: 687b ldr r3, [r7, #4]
  20205. 8008b1a: 681b ldr r3, [r3, #0]
  20206. 8008b1c: 4a18 ldr r2, [pc, #96] @ (8008b80 <HAL_DMA_Abort+0x480>)
  20207. 8008b1e: 4293 cmp r3, r2
  20208. 8008b20: d101 bne.n 8008b26 <HAL_DMA_Abort+0x426>
  20209. 8008b22: 2301 movs r3, #1
  20210. 8008b24: e000 b.n 8008b28 <HAL_DMA_Abort+0x428>
  20211. 8008b26: 2300 movs r3, #0
  20212. 8008b28: 2b00 cmp r3, #0
  20213. 8008b2a: d02b beq.n 8008b84 <HAL_DMA_Abort+0x484>
  20214. {
  20215. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  20216. 8008b2c: 687b ldr r3, [r7, #4]
  20217. 8008b2e: 6d9b ldr r3, [r3, #88] @ 0x58
  20218. 8008b30: 60bb str r3, [r7, #8]
  20219. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  20220. 8008b32: 687b ldr r3, [r7, #4]
  20221. 8008b34: 6ddb ldr r3, [r3, #92] @ 0x5c
  20222. 8008b36: f003 031f and.w r3, r3, #31
  20223. 8008b3a: 223f movs r2, #63 @ 0x3f
  20224. 8008b3c: 409a lsls r2, r3
  20225. 8008b3e: 68bb ldr r3, [r7, #8]
  20226. 8008b40: 609a str r2, [r3, #8]
  20227. 8008b42: e02a b.n 8008b9a <HAL_DMA_Abort+0x49a>
  20228. 8008b44: 40020010 .word 0x40020010
  20229. 8008b48: 40020028 .word 0x40020028
  20230. 8008b4c: 40020040 .word 0x40020040
  20231. 8008b50: 40020058 .word 0x40020058
  20232. 8008b54: 40020070 .word 0x40020070
  20233. 8008b58: 40020088 .word 0x40020088
  20234. 8008b5c: 400200a0 .word 0x400200a0
  20235. 8008b60: 400200b8 .word 0x400200b8
  20236. 8008b64: 40020410 .word 0x40020410
  20237. 8008b68: 40020428 .word 0x40020428
  20238. 8008b6c: 40020440 .word 0x40020440
  20239. 8008b70: 40020458 .word 0x40020458
  20240. 8008b74: 40020470 .word 0x40020470
  20241. 8008b78: 40020488 .word 0x40020488
  20242. 8008b7c: 400204a0 .word 0x400204a0
  20243. 8008b80: 400204b8 .word 0x400204b8
  20244. }
  20245. else /* BDMA channel */
  20246. {
  20247. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  20248. 8008b84: 687b ldr r3, [r7, #4]
  20249. 8008b86: 6d9b ldr r3, [r3, #88] @ 0x58
  20250. 8008b88: 60fb str r3, [r7, #12]
  20251. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  20252. 8008b8a: 687b ldr r3, [r7, #4]
  20253. 8008b8c: 6ddb ldr r3, [r3, #92] @ 0x5c
  20254. 8008b8e: f003 031f and.w r3, r3, #31
  20255. 8008b92: 2201 movs r2, #1
  20256. 8008b94: 409a lsls r2, r3
  20257. 8008b96: 68fb ldr r3, [r7, #12]
  20258. 8008b98: 605a str r2, [r3, #4]
  20259. }
  20260. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20261. 8008b9a: 687b ldr r3, [r7, #4]
  20262. 8008b9c: 681b ldr r3, [r3, #0]
  20263. 8008b9e: 4a4f ldr r2, [pc, #316] @ (8008cdc <HAL_DMA_Abort+0x5dc>)
  20264. 8008ba0: 4293 cmp r3, r2
  20265. 8008ba2: d072 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20266. 8008ba4: 687b ldr r3, [r7, #4]
  20267. 8008ba6: 681b ldr r3, [r3, #0]
  20268. 8008ba8: 4a4d ldr r2, [pc, #308] @ (8008ce0 <HAL_DMA_Abort+0x5e0>)
  20269. 8008baa: 4293 cmp r3, r2
  20270. 8008bac: d06d beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20271. 8008bae: 687b ldr r3, [r7, #4]
  20272. 8008bb0: 681b ldr r3, [r3, #0]
  20273. 8008bb2: 4a4c ldr r2, [pc, #304] @ (8008ce4 <HAL_DMA_Abort+0x5e4>)
  20274. 8008bb4: 4293 cmp r3, r2
  20275. 8008bb6: d068 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20276. 8008bb8: 687b ldr r3, [r7, #4]
  20277. 8008bba: 681b ldr r3, [r3, #0]
  20278. 8008bbc: 4a4a ldr r2, [pc, #296] @ (8008ce8 <HAL_DMA_Abort+0x5e8>)
  20279. 8008bbe: 4293 cmp r3, r2
  20280. 8008bc0: d063 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20281. 8008bc2: 687b ldr r3, [r7, #4]
  20282. 8008bc4: 681b ldr r3, [r3, #0]
  20283. 8008bc6: 4a49 ldr r2, [pc, #292] @ (8008cec <HAL_DMA_Abort+0x5ec>)
  20284. 8008bc8: 4293 cmp r3, r2
  20285. 8008bca: d05e beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20286. 8008bcc: 687b ldr r3, [r7, #4]
  20287. 8008bce: 681b ldr r3, [r3, #0]
  20288. 8008bd0: 4a47 ldr r2, [pc, #284] @ (8008cf0 <HAL_DMA_Abort+0x5f0>)
  20289. 8008bd2: 4293 cmp r3, r2
  20290. 8008bd4: d059 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20291. 8008bd6: 687b ldr r3, [r7, #4]
  20292. 8008bd8: 681b ldr r3, [r3, #0]
  20293. 8008bda: 4a46 ldr r2, [pc, #280] @ (8008cf4 <HAL_DMA_Abort+0x5f4>)
  20294. 8008bdc: 4293 cmp r3, r2
  20295. 8008bde: d054 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20296. 8008be0: 687b ldr r3, [r7, #4]
  20297. 8008be2: 681b ldr r3, [r3, #0]
  20298. 8008be4: 4a44 ldr r2, [pc, #272] @ (8008cf8 <HAL_DMA_Abort+0x5f8>)
  20299. 8008be6: 4293 cmp r3, r2
  20300. 8008be8: d04f beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20301. 8008bea: 687b ldr r3, [r7, #4]
  20302. 8008bec: 681b ldr r3, [r3, #0]
  20303. 8008bee: 4a43 ldr r2, [pc, #268] @ (8008cfc <HAL_DMA_Abort+0x5fc>)
  20304. 8008bf0: 4293 cmp r3, r2
  20305. 8008bf2: d04a beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20306. 8008bf4: 687b ldr r3, [r7, #4]
  20307. 8008bf6: 681b ldr r3, [r3, #0]
  20308. 8008bf8: 4a41 ldr r2, [pc, #260] @ (8008d00 <HAL_DMA_Abort+0x600>)
  20309. 8008bfa: 4293 cmp r3, r2
  20310. 8008bfc: d045 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20311. 8008bfe: 687b ldr r3, [r7, #4]
  20312. 8008c00: 681b ldr r3, [r3, #0]
  20313. 8008c02: 4a40 ldr r2, [pc, #256] @ (8008d04 <HAL_DMA_Abort+0x604>)
  20314. 8008c04: 4293 cmp r3, r2
  20315. 8008c06: d040 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20316. 8008c08: 687b ldr r3, [r7, #4]
  20317. 8008c0a: 681b ldr r3, [r3, #0]
  20318. 8008c0c: 4a3e ldr r2, [pc, #248] @ (8008d08 <HAL_DMA_Abort+0x608>)
  20319. 8008c0e: 4293 cmp r3, r2
  20320. 8008c10: d03b beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20321. 8008c12: 687b ldr r3, [r7, #4]
  20322. 8008c14: 681b ldr r3, [r3, #0]
  20323. 8008c16: 4a3d ldr r2, [pc, #244] @ (8008d0c <HAL_DMA_Abort+0x60c>)
  20324. 8008c18: 4293 cmp r3, r2
  20325. 8008c1a: d036 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20326. 8008c1c: 687b ldr r3, [r7, #4]
  20327. 8008c1e: 681b ldr r3, [r3, #0]
  20328. 8008c20: 4a3b ldr r2, [pc, #236] @ (8008d10 <HAL_DMA_Abort+0x610>)
  20329. 8008c22: 4293 cmp r3, r2
  20330. 8008c24: d031 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20331. 8008c26: 687b ldr r3, [r7, #4]
  20332. 8008c28: 681b ldr r3, [r3, #0]
  20333. 8008c2a: 4a3a ldr r2, [pc, #232] @ (8008d14 <HAL_DMA_Abort+0x614>)
  20334. 8008c2c: 4293 cmp r3, r2
  20335. 8008c2e: d02c beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20336. 8008c30: 687b ldr r3, [r7, #4]
  20337. 8008c32: 681b ldr r3, [r3, #0]
  20338. 8008c34: 4a38 ldr r2, [pc, #224] @ (8008d18 <HAL_DMA_Abort+0x618>)
  20339. 8008c36: 4293 cmp r3, r2
  20340. 8008c38: d027 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20341. 8008c3a: 687b ldr r3, [r7, #4]
  20342. 8008c3c: 681b ldr r3, [r3, #0]
  20343. 8008c3e: 4a37 ldr r2, [pc, #220] @ (8008d1c <HAL_DMA_Abort+0x61c>)
  20344. 8008c40: 4293 cmp r3, r2
  20345. 8008c42: d022 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20346. 8008c44: 687b ldr r3, [r7, #4]
  20347. 8008c46: 681b ldr r3, [r3, #0]
  20348. 8008c48: 4a35 ldr r2, [pc, #212] @ (8008d20 <HAL_DMA_Abort+0x620>)
  20349. 8008c4a: 4293 cmp r3, r2
  20350. 8008c4c: d01d beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20351. 8008c4e: 687b ldr r3, [r7, #4]
  20352. 8008c50: 681b ldr r3, [r3, #0]
  20353. 8008c52: 4a34 ldr r2, [pc, #208] @ (8008d24 <HAL_DMA_Abort+0x624>)
  20354. 8008c54: 4293 cmp r3, r2
  20355. 8008c56: d018 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20356. 8008c58: 687b ldr r3, [r7, #4]
  20357. 8008c5a: 681b ldr r3, [r3, #0]
  20358. 8008c5c: 4a32 ldr r2, [pc, #200] @ (8008d28 <HAL_DMA_Abort+0x628>)
  20359. 8008c5e: 4293 cmp r3, r2
  20360. 8008c60: d013 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20361. 8008c62: 687b ldr r3, [r7, #4]
  20362. 8008c64: 681b ldr r3, [r3, #0]
  20363. 8008c66: 4a31 ldr r2, [pc, #196] @ (8008d2c <HAL_DMA_Abort+0x62c>)
  20364. 8008c68: 4293 cmp r3, r2
  20365. 8008c6a: d00e beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20366. 8008c6c: 687b ldr r3, [r7, #4]
  20367. 8008c6e: 681b ldr r3, [r3, #0]
  20368. 8008c70: 4a2f ldr r2, [pc, #188] @ (8008d30 <HAL_DMA_Abort+0x630>)
  20369. 8008c72: 4293 cmp r3, r2
  20370. 8008c74: d009 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20371. 8008c76: 687b ldr r3, [r7, #4]
  20372. 8008c78: 681b ldr r3, [r3, #0]
  20373. 8008c7a: 4a2e ldr r2, [pc, #184] @ (8008d34 <HAL_DMA_Abort+0x634>)
  20374. 8008c7c: 4293 cmp r3, r2
  20375. 8008c7e: d004 beq.n 8008c8a <HAL_DMA_Abort+0x58a>
  20376. 8008c80: 687b ldr r3, [r7, #4]
  20377. 8008c82: 681b ldr r3, [r3, #0]
  20378. 8008c84: 4a2c ldr r2, [pc, #176] @ (8008d38 <HAL_DMA_Abort+0x638>)
  20379. 8008c86: 4293 cmp r3, r2
  20380. 8008c88: d101 bne.n 8008c8e <HAL_DMA_Abort+0x58e>
  20381. 8008c8a: 2301 movs r3, #1
  20382. 8008c8c: e000 b.n 8008c90 <HAL_DMA_Abort+0x590>
  20383. 8008c8e: 2300 movs r3, #0
  20384. 8008c90: 2b00 cmp r3, #0
  20385. 8008c92: d015 beq.n 8008cc0 <HAL_DMA_Abort+0x5c0>
  20386. {
  20387. /* Clear the DMAMUX synchro overrun flag */
  20388. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  20389. 8008c94: 687b ldr r3, [r7, #4]
  20390. 8008c96: 6e5b ldr r3, [r3, #100] @ 0x64
  20391. 8008c98: 687a ldr r2, [r7, #4]
  20392. 8008c9a: 6e92 ldr r2, [r2, #104] @ 0x68
  20393. 8008c9c: 605a str r2, [r3, #4]
  20394. if(hdma->DMAmuxRequestGen != 0U)
  20395. 8008c9e: 687b ldr r3, [r7, #4]
  20396. 8008ca0: 6edb ldr r3, [r3, #108] @ 0x6c
  20397. 8008ca2: 2b00 cmp r3, #0
  20398. 8008ca4: d00c beq.n 8008cc0 <HAL_DMA_Abort+0x5c0>
  20399. {
  20400. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  20401. /* disable the request gen overrun IT */
  20402. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  20403. 8008ca6: 687b ldr r3, [r7, #4]
  20404. 8008ca8: 6edb ldr r3, [r3, #108] @ 0x6c
  20405. 8008caa: 681a ldr r2, [r3, #0]
  20406. 8008cac: 687b ldr r3, [r7, #4]
  20407. 8008cae: 6edb ldr r3, [r3, #108] @ 0x6c
  20408. 8008cb0: f422 7280 bic.w r2, r2, #256 @ 0x100
  20409. 8008cb4: 601a str r2, [r3, #0]
  20410. /* Clear the DMAMUX request generator overrun flag */
  20411. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  20412. 8008cb6: 687b ldr r3, [r7, #4]
  20413. 8008cb8: 6f1b ldr r3, [r3, #112] @ 0x70
  20414. 8008cba: 687a ldr r2, [r7, #4]
  20415. 8008cbc: 6f52 ldr r2, [r2, #116] @ 0x74
  20416. 8008cbe: 605a str r2, [r3, #4]
  20417. }
  20418. }
  20419. /* Change the DMA state */
  20420. hdma->State = HAL_DMA_STATE_READY;
  20421. 8008cc0: 687b ldr r3, [r7, #4]
  20422. 8008cc2: 2201 movs r2, #1
  20423. 8008cc4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20424. /* Process Unlocked */
  20425. __HAL_UNLOCK(hdma);
  20426. 8008cc8: 687b ldr r3, [r7, #4]
  20427. 8008cca: 2200 movs r2, #0
  20428. 8008ccc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20429. }
  20430. return HAL_OK;
  20431. 8008cd0: 2300 movs r3, #0
  20432. }
  20433. 8008cd2: 4618 mov r0, r3
  20434. 8008cd4: 3718 adds r7, #24
  20435. 8008cd6: 46bd mov sp, r7
  20436. 8008cd8: bd80 pop {r7, pc}
  20437. 8008cda: bf00 nop
  20438. 8008cdc: 40020010 .word 0x40020010
  20439. 8008ce0: 40020028 .word 0x40020028
  20440. 8008ce4: 40020040 .word 0x40020040
  20441. 8008ce8: 40020058 .word 0x40020058
  20442. 8008cec: 40020070 .word 0x40020070
  20443. 8008cf0: 40020088 .word 0x40020088
  20444. 8008cf4: 400200a0 .word 0x400200a0
  20445. 8008cf8: 400200b8 .word 0x400200b8
  20446. 8008cfc: 40020410 .word 0x40020410
  20447. 8008d00: 40020428 .word 0x40020428
  20448. 8008d04: 40020440 .word 0x40020440
  20449. 8008d08: 40020458 .word 0x40020458
  20450. 8008d0c: 40020470 .word 0x40020470
  20451. 8008d10: 40020488 .word 0x40020488
  20452. 8008d14: 400204a0 .word 0x400204a0
  20453. 8008d18: 400204b8 .word 0x400204b8
  20454. 8008d1c: 58025408 .word 0x58025408
  20455. 8008d20: 5802541c .word 0x5802541c
  20456. 8008d24: 58025430 .word 0x58025430
  20457. 8008d28: 58025444 .word 0x58025444
  20458. 8008d2c: 58025458 .word 0x58025458
  20459. 8008d30: 5802546c .word 0x5802546c
  20460. 8008d34: 58025480 .word 0x58025480
  20461. 8008d38: 58025494 .word 0x58025494
  20462. 08008d3c <HAL_DMA_Abort_IT>:
  20463. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  20464. * the configuration information for the specified DMA Stream.
  20465. * @retval HAL status
  20466. */
  20467. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  20468. {
  20469. 8008d3c: b580 push {r7, lr}
  20470. 8008d3e: b084 sub sp, #16
  20471. 8008d40: af00 add r7, sp, #0
  20472. 8008d42: 6078 str r0, [r7, #4]
  20473. BDMA_Base_Registers *regs_bdma;
  20474. /* Check the DMA peripheral handle */
  20475. if(hdma == NULL)
  20476. 8008d44: 687b ldr r3, [r7, #4]
  20477. 8008d46: 2b00 cmp r3, #0
  20478. 8008d48: d101 bne.n 8008d4e <HAL_DMA_Abort_IT+0x12>
  20479. {
  20480. return HAL_ERROR;
  20481. 8008d4a: 2301 movs r3, #1
  20482. 8008d4c: e237 b.n 80091be <HAL_DMA_Abort_IT+0x482>
  20483. }
  20484. if(hdma->State != HAL_DMA_STATE_BUSY)
  20485. 8008d4e: 687b ldr r3, [r7, #4]
  20486. 8008d50: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20487. 8008d54: b2db uxtb r3, r3
  20488. 8008d56: 2b02 cmp r3, #2
  20489. 8008d58: d004 beq.n 8008d64 <HAL_DMA_Abort_IT+0x28>
  20490. {
  20491. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  20492. 8008d5a: 687b ldr r3, [r7, #4]
  20493. 8008d5c: 2280 movs r2, #128 @ 0x80
  20494. 8008d5e: 655a str r2, [r3, #84] @ 0x54
  20495. return HAL_ERROR;
  20496. 8008d60: 2301 movs r3, #1
  20497. 8008d62: e22c b.n 80091be <HAL_DMA_Abort_IT+0x482>
  20498. }
  20499. else
  20500. {
  20501. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20502. 8008d64: 687b ldr r3, [r7, #4]
  20503. 8008d66: 681b ldr r3, [r3, #0]
  20504. 8008d68: 4a5c ldr r2, [pc, #368] @ (8008edc <HAL_DMA_Abort_IT+0x1a0>)
  20505. 8008d6a: 4293 cmp r3, r2
  20506. 8008d6c: d04a beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20507. 8008d6e: 687b ldr r3, [r7, #4]
  20508. 8008d70: 681b ldr r3, [r3, #0]
  20509. 8008d72: 4a5b ldr r2, [pc, #364] @ (8008ee0 <HAL_DMA_Abort_IT+0x1a4>)
  20510. 8008d74: 4293 cmp r3, r2
  20511. 8008d76: d045 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20512. 8008d78: 687b ldr r3, [r7, #4]
  20513. 8008d7a: 681b ldr r3, [r3, #0]
  20514. 8008d7c: 4a59 ldr r2, [pc, #356] @ (8008ee4 <HAL_DMA_Abort_IT+0x1a8>)
  20515. 8008d7e: 4293 cmp r3, r2
  20516. 8008d80: d040 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20517. 8008d82: 687b ldr r3, [r7, #4]
  20518. 8008d84: 681b ldr r3, [r3, #0]
  20519. 8008d86: 4a58 ldr r2, [pc, #352] @ (8008ee8 <HAL_DMA_Abort_IT+0x1ac>)
  20520. 8008d88: 4293 cmp r3, r2
  20521. 8008d8a: d03b beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20522. 8008d8c: 687b ldr r3, [r7, #4]
  20523. 8008d8e: 681b ldr r3, [r3, #0]
  20524. 8008d90: 4a56 ldr r2, [pc, #344] @ (8008eec <HAL_DMA_Abort_IT+0x1b0>)
  20525. 8008d92: 4293 cmp r3, r2
  20526. 8008d94: d036 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20527. 8008d96: 687b ldr r3, [r7, #4]
  20528. 8008d98: 681b ldr r3, [r3, #0]
  20529. 8008d9a: 4a55 ldr r2, [pc, #340] @ (8008ef0 <HAL_DMA_Abort_IT+0x1b4>)
  20530. 8008d9c: 4293 cmp r3, r2
  20531. 8008d9e: d031 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20532. 8008da0: 687b ldr r3, [r7, #4]
  20533. 8008da2: 681b ldr r3, [r3, #0]
  20534. 8008da4: 4a53 ldr r2, [pc, #332] @ (8008ef4 <HAL_DMA_Abort_IT+0x1b8>)
  20535. 8008da6: 4293 cmp r3, r2
  20536. 8008da8: d02c beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20537. 8008daa: 687b ldr r3, [r7, #4]
  20538. 8008dac: 681b ldr r3, [r3, #0]
  20539. 8008dae: 4a52 ldr r2, [pc, #328] @ (8008ef8 <HAL_DMA_Abort_IT+0x1bc>)
  20540. 8008db0: 4293 cmp r3, r2
  20541. 8008db2: d027 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20542. 8008db4: 687b ldr r3, [r7, #4]
  20543. 8008db6: 681b ldr r3, [r3, #0]
  20544. 8008db8: 4a50 ldr r2, [pc, #320] @ (8008efc <HAL_DMA_Abort_IT+0x1c0>)
  20545. 8008dba: 4293 cmp r3, r2
  20546. 8008dbc: d022 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20547. 8008dbe: 687b ldr r3, [r7, #4]
  20548. 8008dc0: 681b ldr r3, [r3, #0]
  20549. 8008dc2: 4a4f ldr r2, [pc, #316] @ (8008f00 <HAL_DMA_Abort_IT+0x1c4>)
  20550. 8008dc4: 4293 cmp r3, r2
  20551. 8008dc6: d01d beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20552. 8008dc8: 687b ldr r3, [r7, #4]
  20553. 8008dca: 681b ldr r3, [r3, #0]
  20554. 8008dcc: 4a4d ldr r2, [pc, #308] @ (8008f04 <HAL_DMA_Abort_IT+0x1c8>)
  20555. 8008dce: 4293 cmp r3, r2
  20556. 8008dd0: d018 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20557. 8008dd2: 687b ldr r3, [r7, #4]
  20558. 8008dd4: 681b ldr r3, [r3, #0]
  20559. 8008dd6: 4a4c ldr r2, [pc, #304] @ (8008f08 <HAL_DMA_Abort_IT+0x1cc>)
  20560. 8008dd8: 4293 cmp r3, r2
  20561. 8008dda: d013 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20562. 8008ddc: 687b ldr r3, [r7, #4]
  20563. 8008dde: 681b ldr r3, [r3, #0]
  20564. 8008de0: 4a4a ldr r2, [pc, #296] @ (8008f0c <HAL_DMA_Abort_IT+0x1d0>)
  20565. 8008de2: 4293 cmp r3, r2
  20566. 8008de4: d00e beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20567. 8008de6: 687b ldr r3, [r7, #4]
  20568. 8008de8: 681b ldr r3, [r3, #0]
  20569. 8008dea: 4a49 ldr r2, [pc, #292] @ (8008f10 <HAL_DMA_Abort_IT+0x1d4>)
  20570. 8008dec: 4293 cmp r3, r2
  20571. 8008dee: d009 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20572. 8008df0: 687b ldr r3, [r7, #4]
  20573. 8008df2: 681b ldr r3, [r3, #0]
  20574. 8008df4: 4a47 ldr r2, [pc, #284] @ (8008f14 <HAL_DMA_Abort_IT+0x1d8>)
  20575. 8008df6: 4293 cmp r3, r2
  20576. 8008df8: d004 beq.n 8008e04 <HAL_DMA_Abort_IT+0xc8>
  20577. 8008dfa: 687b ldr r3, [r7, #4]
  20578. 8008dfc: 681b ldr r3, [r3, #0]
  20579. 8008dfe: 4a46 ldr r2, [pc, #280] @ (8008f18 <HAL_DMA_Abort_IT+0x1dc>)
  20580. 8008e00: 4293 cmp r3, r2
  20581. 8008e02: d101 bne.n 8008e08 <HAL_DMA_Abort_IT+0xcc>
  20582. 8008e04: 2301 movs r3, #1
  20583. 8008e06: e000 b.n 8008e0a <HAL_DMA_Abort_IT+0xce>
  20584. 8008e08: 2300 movs r3, #0
  20585. 8008e0a: 2b00 cmp r3, #0
  20586. 8008e0c: f000 8086 beq.w 8008f1c <HAL_DMA_Abort_IT+0x1e0>
  20587. {
  20588. /* Set Abort State */
  20589. hdma->State = HAL_DMA_STATE_ABORT;
  20590. 8008e10: 687b ldr r3, [r7, #4]
  20591. 8008e12: 2204 movs r2, #4
  20592. 8008e14: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20593. /* Disable the stream */
  20594. __HAL_DMA_DISABLE(hdma);
  20595. 8008e18: 687b ldr r3, [r7, #4]
  20596. 8008e1a: 681b ldr r3, [r3, #0]
  20597. 8008e1c: 4a2f ldr r2, [pc, #188] @ (8008edc <HAL_DMA_Abort_IT+0x1a0>)
  20598. 8008e1e: 4293 cmp r3, r2
  20599. 8008e20: d04a beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20600. 8008e22: 687b ldr r3, [r7, #4]
  20601. 8008e24: 681b ldr r3, [r3, #0]
  20602. 8008e26: 4a2e ldr r2, [pc, #184] @ (8008ee0 <HAL_DMA_Abort_IT+0x1a4>)
  20603. 8008e28: 4293 cmp r3, r2
  20604. 8008e2a: d045 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20605. 8008e2c: 687b ldr r3, [r7, #4]
  20606. 8008e2e: 681b ldr r3, [r3, #0]
  20607. 8008e30: 4a2c ldr r2, [pc, #176] @ (8008ee4 <HAL_DMA_Abort_IT+0x1a8>)
  20608. 8008e32: 4293 cmp r3, r2
  20609. 8008e34: d040 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20610. 8008e36: 687b ldr r3, [r7, #4]
  20611. 8008e38: 681b ldr r3, [r3, #0]
  20612. 8008e3a: 4a2b ldr r2, [pc, #172] @ (8008ee8 <HAL_DMA_Abort_IT+0x1ac>)
  20613. 8008e3c: 4293 cmp r3, r2
  20614. 8008e3e: d03b beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20615. 8008e40: 687b ldr r3, [r7, #4]
  20616. 8008e42: 681b ldr r3, [r3, #0]
  20617. 8008e44: 4a29 ldr r2, [pc, #164] @ (8008eec <HAL_DMA_Abort_IT+0x1b0>)
  20618. 8008e46: 4293 cmp r3, r2
  20619. 8008e48: d036 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20620. 8008e4a: 687b ldr r3, [r7, #4]
  20621. 8008e4c: 681b ldr r3, [r3, #0]
  20622. 8008e4e: 4a28 ldr r2, [pc, #160] @ (8008ef0 <HAL_DMA_Abort_IT+0x1b4>)
  20623. 8008e50: 4293 cmp r3, r2
  20624. 8008e52: d031 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20625. 8008e54: 687b ldr r3, [r7, #4]
  20626. 8008e56: 681b ldr r3, [r3, #0]
  20627. 8008e58: 4a26 ldr r2, [pc, #152] @ (8008ef4 <HAL_DMA_Abort_IT+0x1b8>)
  20628. 8008e5a: 4293 cmp r3, r2
  20629. 8008e5c: d02c beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20630. 8008e5e: 687b ldr r3, [r7, #4]
  20631. 8008e60: 681b ldr r3, [r3, #0]
  20632. 8008e62: 4a25 ldr r2, [pc, #148] @ (8008ef8 <HAL_DMA_Abort_IT+0x1bc>)
  20633. 8008e64: 4293 cmp r3, r2
  20634. 8008e66: d027 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20635. 8008e68: 687b ldr r3, [r7, #4]
  20636. 8008e6a: 681b ldr r3, [r3, #0]
  20637. 8008e6c: 4a23 ldr r2, [pc, #140] @ (8008efc <HAL_DMA_Abort_IT+0x1c0>)
  20638. 8008e6e: 4293 cmp r3, r2
  20639. 8008e70: d022 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20640. 8008e72: 687b ldr r3, [r7, #4]
  20641. 8008e74: 681b ldr r3, [r3, #0]
  20642. 8008e76: 4a22 ldr r2, [pc, #136] @ (8008f00 <HAL_DMA_Abort_IT+0x1c4>)
  20643. 8008e78: 4293 cmp r3, r2
  20644. 8008e7a: d01d beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20645. 8008e7c: 687b ldr r3, [r7, #4]
  20646. 8008e7e: 681b ldr r3, [r3, #0]
  20647. 8008e80: 4a20 ldr r2, [pc, #128] @ (8008f04 <HAL_DMA_Abort_IT+0x1c8>)
  20648. 8008e82: 4293 cmp r3, r2
  20649. 8008e84: d018 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20650. 8008e86: 687b ldr r3, [r7, #4]
  20651. 8008e88: 681b ldr r3, [r3, #0]
  20652. 8008e8a: 4a1f ldr r2, [pc, #124] @ (8008f08 <HAL_DMA_Abort_IT+0x1cc>)
  20653. 8008e8c: 4293 cmp r3, r2
  20654. 8008e8e: d013 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20655. 8008e90: 687b ldr r3, [r7, #4]
  20656. 8008e92: 681b ldr r3, [r3, #0]
  20657. 8008e94: 4a1d ldr r2, [pc, #116] @ (8008f0c <HAL_DMA_Abort_IT+0x1d0>)
  20658. 8008e96: 4293 cmp r3, r2
  20659. 8008e98: d00e beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20660. 8008e9a: 687b ldr r3, [r7, #4]
  20661. 8008e9c: 681b ldr r3, [r3, #0]
  20662. 8008e9e: 4a1c ldr r2, [pc, #112] @ (8008f10 <HAL_DMA_Abort_IT+0x1d4>)
  20663. 8008ea0: 4293 cmp r3, r2
  20664. 8008ea2: d009 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20665. 8008ea4: 687b ldr r3, [r7, #4]
  20666. 8008ea6: 681b ldr r3, [r3, #0]
  20667. 8008ea8: 4a1a ldr r2, [pc, #104] @ (8008f14 <HAL_DMA_Abort_IT+0x1d8>)
  20668. 8008eaa: 4293 cmp r3, r2
  20669. 8008eac: d004 beq.n 8008eb8 <HAL_DMA_Abort_IT+0x17c>
  20670. 8008eae: 687b ldr r3, [r7, #4]
  20671. 8008eb0: 681b ldr r3, [r3, #0]
  20672. 8008eb2: 4a19 ldr r2, [pc, #100] @ (8008f18 <HAL_DMA_Abort_IT+0x1dc>)
  20673. 8008eb4: 4293 cmp r3, r2
  20674. 8008eb6: d108 bne.n 8008eca <HAL_DMA_Abort_IT+0x18e>
  20675. 8008eb8: 687b ldr r3, [r7, #4]
  20676. 8008eba: 681b ldr r3, [r3, #0]
  20677. 8008ebc: 681a ldr r2, [r3, #0]
  20678. 8008ebe: 687b ldr r3, [r7, #4]
  20679. 8008ec0: 681b ldr r3, [r3, #0]
  20680. 8008ec2: f022 0201 bic.w r2, r2, #1
  20681. 8008ec6: 601a str r2, [r3, #0]
  20682. 8008ec8: e178 b.n 80091bc <HAL_DMA_Abort_IT+0x480>
  20683. 8008eca: 687b ldr r3, [r7, #4]
  20684. 8008ecc: 681b ldr r3, [r3, #0]
  20685. 8008ece: 681a ldr r2, [r3, #0]
  20686. 8008ed0: 687b ldr r3, [r7, #4]
  20687. 8008ed2: 681b ldr r3, [r3, #0]
  20688. 8008ed4: f022 0201 bic.w r2, r2, #1
  20689. 8008ed8: 601a str r2, [r3, #0]
  20690. 8008eda: e16f b.n 80091bc <HAL_DMA_Abort_IT+0x480>
  20691. 8008edc: 40020010 .word 0x40020010
  20692. 8008ee0: 40020028 .word 0x40020028
  20693. 8008ee4: 40020040 .word 0x40020040
  20694. 8008ee8: 40020058 .word 0x40020058
  20695. 8008eec: 40020070 .word 0x40020070
  20696. 8008ef0: 40020088 .word 0x40020088
  20697. 8008ef4: 400200a0 .word 0x400200a0
  20698. 8008ef8: 400200b8 .word 0x400200b8
  20699. 8008efc: 40020410 .word 0x40020410
  20700. 8008f00: 40020428 .word 0x40020428
  20701. 8008f04: 40020440 .word 0x40020440
  20702. 8008f08: 40020458 .word 0x40020458
  20703. 8008f0c: 40020470 .word 0x40020470
  20704. 8008f10: 40020488 .word 0x40020488
  20705. 8008f14: 400204a0 .word 0x400204a0
  20706. 8008f18: 400204b8 .word 0x400204b8
  20707. }
  20708. else /* BDMA channel */
  20709. {
  20710. /* Disable DMA All Interrupts */
  20711. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  20712. 8008f1c: 687b ldr r3, [r7, #4]
  20713. 8008f1e: 681b ldr r3, [r3, #0]
  20714. 8008f20: 681a ldr r2, [r3, #0]
  20715. 8008f22: 687b ldr r3, [r7, #4]
  20716. 8008f24: 681b ldr r3, [r3, #0]
  20717. 8008f26: f022 020e bic.w r2, r2, #14
  20718. 8008f2a: 601a str r2, [r3, #0]
  20719. /* Disable the channel */
  20720. __HAL_DMA_DISABLE(hdma);
  20721. 8008f2c: 687b ldr r3, [r7, #4]
  20722. 8008f2e: 681b ldr r3, [r3, #0]
  20723. 8008f30: 4a6c ldr r2, [pc, #432] @ (80090e4 <HAL_DMA_Abort_IT+0x3a8>)
  20724. 8008f32: 4293 cmp r3, r2
  20725. 8008f34: d04a beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20726. 8008f36: 687b ldr r3, [r7, #4]
  20727. 8008f38: 681b ldr r3, [r3, #0]
  20728. 8008f3a: 4a6b ldr r2, [pc, #428] @ (80090e8 <HAL_DMA_Abort_IT+0x3ac>)
  20729. 8008f3c: 4293 cmp r3, r2
  20730. 8008f3e: d045 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20731. 8008f40: 687b ldr r3, [r7, #4]
  20732. 8008f42: 681b ldr r3, [r3, #0]
  20733. 8008f44: 4a69 ldr r2, [pc, #420] @ (80090ec <HAL_DMA_Abort_IT+0x3b0>)
  20734. 8008f46: 4293 cmp r3, r2
  20735. 8008f48: d040 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20736. 8008f4a: 687b ldr r3, [r7, #4]
  20737. 8008f4c: 681b ldr r3, [r3, #0]
  20738. 8008f4e: 4a68 ldr r2, [pc, #416] @ (80090f0 <HAL_DMA_Abort_IT+0x3b4>)
  20739. 8008f50: 4293 cmp r3, r2
  20740. 8008f52: d03b beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20741. 8008f54: 687b ldr r3, [r7, #4]
  20742. 8008f56: 681b ldr r3, [r3, #0]
  20743. 8008f58: 4a66 ldr r2, [pc, #408] @ (80090f4 <HAL_DMA_Abort_IT+0x3b8>)
  20744. 8008f5a: 4293 cmp r3, r2
  20745. 8008f5c: d036 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20746. 8008f5e: 687b ldr r3, [r7, #4]
  20747. 8008f60: 681b ldr r3, [r3, #0]
  20748. 8008f62: 4a65 ldr r2, [pc, #404] @ (80090f8 <HAL_DMA_Abort_IT+0x3bc>)
  20749. 8008f64: 4293 cmp r3, r2
  20750. 8008f66: d031 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20751. 8008f68: 687b ldr r3, [r7, #4]
  20752. 8008f6a: 681b ldr r3, [r3, #0]
  20753. 8008f6c: 4a63 ldr r2, [pc, #396] @ (80090fc <HAL_DMA_Abort_IT+0x3c0>)
  20754. 8008f6e: 4293 cmp r3, r2
  20755. 8008f70: d02c beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20756. 8008f72: 687b ldr r3, [r7, #4]
  20757. 8008f74: 681b ldr r3, [r3, #0]
  20758. 8008f76: 4a62 ldr r2, [pc, #392] @ (8009100 <HAL_DMA_Abort_IT+0x3c4>)
  20759. 8008f78: 4293 cmp r3, r2
  20760. 8008f7a: d027 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20761. 8008f7c: 687b ldr r3, [r7, #4]
  20762. 8008f7e: 681b ldr r3, [r3, #0]
  20763. 8008f80: 4a60 ldr r2, [pc, #384] @ (8009104 <HAL_DMA_Abort_IT+0x3c8>)
  20764. 8008f82: 4293 cmp r3, r2
  20765. 8008f84: d022 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20766. 8008f86: 687b ldr r3, [r7, #4]
  20767. 8008f88: 681b ldr r3, [r3, #0]
  20768. 8008f8a: 4a5f ldr r2, [pc, #380] @ (8009108 <HAL_DMA_Abort_IT+0x3cc>)
  20769. 8008f8c: 4293 cmp r3, r2
  20770. 8008f8e: d01d beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20771. 8008f90: 687b ldr r3, [r7, #4]
  20772. 8008f92: 681b ldr r3, [r3, #0]
  20773. 8008f94: 4a5d ldr r2, [pc, #372] @ (800910c <HAL_DMA_Abort_IT+0x3d0>)
  20774. 8008f96: 4293 cmp r3, r2
  20775. 8008f98: d018 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20776. 8008f9a: 687b ldr r3, [r7, #4]
  20777. 8008f9c: 681b ldr r3, [r3, #0]
  20778. 8008f9e: 4a5c ldr r2, [pc, #368] @ (8009110 <HAL_DMA_Abort_IT+0x3d4>)
  20779. 8008fa0: 4293 cmp r3, r2
  20780. 8008fa2: d013 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20781. 8008fa4: 687b ldr r3, [r7, #4]
  20782. 8008fa6: 681b ldr r3, [r3, #0]
  20783. 8008fa8: 4a5a ldr r2, [pc, #360] @ (8009114 <HAL_DMA_Abort_IT+0x3d8>)
  20784. 8008faa: 4293 cmp r3, r2
  20785. 8008fac: d00e beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20786. 8008fae: 687b ldr r3, [r7, #4]
  20787. 8008fb0: 681b ldr r3, [r3, #0]
  20788. 8008fb2: 4a59 ldr r2, [pc, #356] @ (8009118 <HAL_DMA_Abort_IT+0x3dc>)
  20789. 8008fb4: 4293 cmp r3, r2
  20790. 8008fb6: d009 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20791. 8008fb8: 687b ldr r3, [r7, #4]
  20792. 8008fba: 681b ldr r3, [r3, #0]
  20793. 8008fbc: 4a57 ldr r2, [pc, #348] @ (800911c <HAL_DMA_Abort_IT+0x3e0>)
  20794. 8008fbe: 4293 cmp r3, r2
  20795. 8008fc0: d004 beq.n 8008fcc <HAL_DMA_Abort_IT+0x290>
  20796. 8008fc2: 687b ldr r3, [r7, #4]
  20797. 8008fc4: 681b ldr r3, [r3, #0]
  20798. 8008fc6: 4a56 ldr r2, [pc, #344] @ (8009120 <HAL_DMA_Abort_IT+0x3e4>)
  20799. 8008fc8: 4293 cmp r3, r2
  20800. 8008fca: d108 bne.n 8008fde <HAL_DMA_Abort_IT+0x2a2>
  20801. 8008fcc: 687b ldr r3, [r7, #4]
  20802. 8008fce: 681b ldr r3, [r3, #0]
  20803. 8008fd0: 681a ldr r2, [r3, #0]
  20804. 8008fd2: 687b ldr r3, [r7, #4]
  20805. 8008fd4: 681b ldr r3, [r3, #0]
  20806. 8008fd6: f022 0201 bic.w r2, r2, #1
  20807. 8008fda: 601a str r2, [r3, #0]
  20808. 8008fdc: e007 b.n 8008fee <HAL_DMA_Abort_IT+0x2b2>
  20809. 8008fde: 687b ldr r3, [r7, #4]
  20810. 8008fe0: 681b ldr r3, [r3, #0]
  20811. 8008fe2: 681a ldr r2, [r3, #0]
  20812. 8008fe4: 687b ldr r3, [r7, #4]
  20813. 8008fe6: 681b ldr r3, [r3, #0]
  20814. 8008fe8: f022 0201 bic.w r2, r2, #1
  20815. 8008fec: 601a str r2, [r3, #0]
  20816. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20817. 8008fee: 687b ldr r3, [r7, #4]
  20818. 8008ff0: 681b ldr r3, [r3, #0]
  20819. 8008ff2: 4a3c ldr r2, [pc, #240] @ (80090e4 <HAL_DMA_Abort_IT+0x3a8>)
  20820. 8008ff4: 4293 cmp r3, r2
  20821. 8008ff6: d072 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20822. 8008ff8: 687b ldr r3, [r7, #4]
  20823. 8008ffa: 681b ldr r3, [r3, #0]
  20824. 8008ffc: 4a3a ldr r2, [pc, #232] @ (80090e8 <HAL_DMA_Abort_IT+0x3ac>)
  20825. 8008ffe: 4293 cmp r3, r2
  20826. 8009000: d06d beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20827. 8009002: 687b ldr r3, [r7, #4]
  20828. 8009004: 681b ldr r3, [r3, #0]
  20829. 8009006: 4a39 ldr r2, [pc, #228] @ (80090ec <HAL_DMA_Abort_IT+0x3b0>)
  20830. 8009008: 4293 cmp r3, r2
  20831. 800900a: d068 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20832. 800900c: 687b ldr r3, [r7, #4]
  20833. 800900e: 681b ldr r3, [r3, #0]
  20834. 8009010: 4a37 ldr r2, [pc, #220] @ (80090f0 <HAL_DMA_Abort_IT+0x3b4>)
  20835. 8009012: 4293 cmp r3, r2
  20836. 8009014: d063 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20837. 8009016: 687b ldr r3, [r7, #4]
  20838. 8009018: 681b ldr r3, [r3, #0]
  20839. 800901a: 4a36 ldr r2, [pc, #216] @ (80090f4 <HAL_DMA_Abort_IT+0x3b8>)
  20840. 800901c: 4293 cmp r3, r2
  20841. 800901e: d05e beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20842. 8009020: 687b ldr r3, [r7, #4]
  20843. 8009022: 681b ldr r3, [r3, #0]
  20844. 8009024: 4a34 ldr r2, [pc, #208] @ (80090f8 <HAL_DMA_Abort_IT+0x3bc>)
  20845. 8009026: 4293 cmp r3, r2
  20846. 8009028: d059 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20847. 800902a: 687b ldr r3, [r7, #4]
  20848. 800902c: 681b ldr r3, [r3, #0]
  20849. 800902e: 4a33 ldr r2, [pc, #204] @ (80090fc <HAL_DMA_Abort_IT+0x3c0>)
  20850. 8009030: 4293 cmp r3, r2
  20851. 8009032: d054 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20852. 8009034: 687b ldr r3, [r7, #4]
  20853. 8009036: 681b ldr r3, [r3, #0]
  20854. 8009038: 4a31 ldr r2, [pc, #196] @ (8009100 <HAL_DMA_Abort_IT+0x3c4>)
  20855. 800903a: 4293 cmp r3, r2
  20856. 800903c: d04f beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20857. 800903e: 687b ldr r3, [r7, #4]
  20858. 8009040: 681b ldr r3, [r3, #0]
  20859. 8009042: 4a30 ldr r2, [pc, #192] @ (8009104 <HAL_DMA_Abort_IT+0x3c8>)
  20860. 8009044: 4293 cmp r3, r2
  20861. 8009046: d04a beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20862. 8009048: 687b ldr r3, [r7, #4]
  20863. 800904a: 681b ldr r3, [r3, #0]
  20864. 800904c: 4a2e ldr r2, [pc, #184] @ (8009108 <HAL_DMA_Abort_IT+0x3cc>)
  20865. 800904e: 4293 cmp r3, r2
  20866. 8009050: d045 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20867. 8009052: 687b ldr r3, [r7, #4]
  20868. 8009054: 681b ldr r3, [r3, #0]
  20869. 8009056: 4a2d ldr r2, [pc, #180] @ (800910c <HAL_DMA_Abort_IT+0x3d0>)
  20870. 8009058: 4293 cmp r3, r2
  20871. 800905a: d040 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20872. 800905c: 687b ldr r3, [r7, #4]
  20873. 800905e: 681b ldr r3, [r3, #0]
  20874. 8009060: 4a2b ldr r2, [pc, #172] @ (8009110 <HAL_DMA_Abort_IT+0x3d4>)
  20875. 8009062: 4293 cmp r3, r2
  20876. 8009064: d03b beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20877. 8009066: 687b ldr r3, [r7, #4]
  20878. 8009068: 681b ldr r3, [r3, #0]
  20879. 800906a: 4a2a ldr r2, [pc, #168] @ (8009114 <HAL_DMA_Abort_IT+0x3d8>)
  20880. 800906c: 4293 cmp r3, r2
  20881. 800906e: d036 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20882. 8009070: 687b ldr r3, [r7, #4]
  20883. 8009072: 681b ldr r3, [r3, #0]
  20884. 8009074: 4a28 ldr r2, [pc, #160] @ (8009118 <HAL_DMA_Abort_IT+0x3dc>)
  20885. 8009076: 4293 cmp r3, r2
  20886. 8009078: d031 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20887. 800907a: 687b ldr r3, [r7, #4]
  20888. 800907c: 681b ldr r3, [r3, #0]
  20889. 800907e: 4a27 ldr r2, [pc, #156] @ (800911c <HAL_DMA_Abort_IT+0x3e0>)
  20890. 8009080: 4293 cmp r3, r2
  20891. 8009082: d02c beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20892. 8009084: 687b ldr r3, [r7, #4]
  20893. 8009086: 681b ldr r3, [r3, #0]
  20894. 8009088: 4a25 ldr r2, [pc, #148] @ (8009120 <HAL_DMA_Abort_IT+0x3e4>)
  20895. 800908a: 4293 cmp r3, r2
  20896. 800908c: d027 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20897. 800908e: 687b ldr r3, [r7, #4]
  20898. 8009090: 681b ldr r3, [r3, #0]
  20899. 8009092: 4a24 ldr r2, [pc, #144] @ (8009124 <HAL_DMA_Abort_IT+0x3e8>)
  20900. 8009094: 4293 cmp r3, r2
  20901. 8009096: d022 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20902. 8009098: 687b ldr r3, [r7, #4]
  20903. 800909a: 681b ldr r3, [r3, #0]
  20904. 800909c: 4a22 ldr r2, [pc, #136] @ (8009128 <HAL_DMA_Abort_IT+0x3ec>)
  20905. 800909e: 4293 cmp r3, r2
  20906. 80090a0: d01d beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20907. 80090a2: 687b ldr r3, [r7, #4]
  20908. 80090a4: 681b ldr r3, [r3, #0]
  20909. 80090a6: 4a21 ldr r2, [pc, #132] @ (800912c <HAL_DMA_Abort_IT+0x3f0>)
  20910. 80090a8: 4293 cmp r3, r2
  20911. 80090aa: d018 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20912. 80090ac: 687b ldr r3, [r7, #4]
  20913. 80090ae: 681b ldr r3, [r3, #0]
  20914. 80090b0: 4a1f ldr r2, [pc, #124] @ (8009130 <HAL_DMA_Abort_IT+0x3f4>)
  20915. 80090b2: 4293 cmp r3, r2
  20916. 80090b4: d013 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20917. 80090b6: 687b ldr r3, [r7, #4]
  20918. 80090b8: 681b ldr r3, [r3, #0]
  20919. 80090ba: 4a1e ldr r2, [pc, #120] @ (8009134 <HAL_DMA_Abort_IT+0x3f8>)
  20920. 80090bc: 4293 cmp r3, r2
  20921. 80090be: d00e beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20922. 80090c0: 687b ldr r3, [r7, #4]
  20923. 80090c2: 681b ldr r3, [r3, #0]
  20924. 80090c4: 4a1c ldr r2, [pc, #112] @ (8009138 <HAL_DMA_Abort_IT+0x3fc>)
  20925. 80090c6: 4293 cmp r3, r2
  20926. 80090c8: d009 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20927. 80090ca: 687b ldr r3, [r7, #4]
  20928. 80090cc: 681b ldr r3, [r3, #0]
  20929. 80090ce: 4a1b ldr r2, [pc, #108] @ (800913c <HAL_DMA_Abort_IT+0x400>)
  20930. 80090d0: 4293 cmp r3, r2
  20931. 80090d2: d004 beq.n 80090de <HAL_DMA_Abort_IT+0x3a2>
  20932. 80090d4: 687b ldr r3, [r7, #4]
  20933. 80090d6: 681b ldr r3, [r3, #0]
  20934. 80090d8: 4a19 ldr r2, [pc, #100] @ (8009140 <HAL_DMA_Abort_IT+0x404>)
  20935. 80090da: 4293 cmp r3, r2
  20936. 80090dc: d132 bne.n 8009144 <HAL_DMA_Abort_IT+0x408>
  20937. 80090de: 2301 movs r3, #1
  20938. 80090e0: e031 b.n 8009146 <HAL_DMA_Abort_IT+0x40a>
  20939. 80090e2: bf00 nop
  20940. 80090e4: 40020010 .word 0x40020010
  20941. 80090e8: 40020028 .word 0x40020028
  20942. 80090ec: 40020040 .word 0x40020040
  20943. 80090f0: 40020058 .word 0x40020058
  20944. 80090f4: 40020070 .word 0x40020070
  20945. 80090f8: 40020088 .word 0x40020088
  20946. 80090fc: 400200a0 .word 0x400200a0
  20947. 8009100: 400200b8 .word 0x400200b8
  20948. 8009104: 40020410 .word 0x40020410
  20949. 8009108: 40020428 .word 0x40020428
  20950. 800910c: 40020440 .word 0x40020440
  20951. 8009110: 40020458 .word 0x40020458
  20952. 8009114: 40020470 .word 0x40020470
  20953. 8009118: 40020488 .word 0x40020488
  20954. 800911c: 400204a0 .word 0x400204a0
  20955. 8009120: 400204b8 .word 0x400204b8
  20956. 8009124: 58025408 .word 0x58025408
  20957. 8009128: 5802541c .word 0x5802541c
  20958. 800912c: 58025430 .word 0x58025430
  20959. 8009130: 58025444 .word 0x58025444
  20960. 8009134: 58025458 .word 0x58025458
  20961. 8009138: 5802546c .word 0x5802546c
  20962. 800913c: 58025480 .word 0x58025480
  20963. 8009140: 58025494 .word 0x58025494
  20964. 8009144: 2300 movs r3, #0
  20965. 8009146: 2b00 cmp r3, #0
  20966. 8009148: d028 beq.n 800919c <HAL_DMA_Abort_IT+0x460>
  20967. {
  20968. /* disable the DMAMUX sync overrun IT */
  20969. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  20970. 800914a: 687b ldr r3, [r7, #4]
  20971. 800914c: 6e1b ldr r3, [r3, #96] @ 0x60
  20972. 800914e: 681a ldr r2, [r3, #0]
  20973. 8009150: 687b ldr r3, [r7, #4]
  20974. 8009152: 6e1b ldr r3, [r3, #96] @ 0x60
  20975. 8009154: f422 7280 bic.w r2, r2, #256 @ 0x100
  20976. 8009158: 601a str r2, [r3, #0]
  20977. /* Clear all flags */
  20978. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  20979. 800915a: 687b ldr r3, [r7, #4]
  20980. 800915c: 6d9b ldr r3, [r3, #88] @ 0x58
  20981. 800915e: 60fb str r3, [r7, #12]
  20982. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  20983. 8009160: 687b ldr r3, [r7, #4]
  20984. 8009162: 6ddb ldr r3, [r3, #92] @ 0x5c
  20985. 8009164: f003 031f and.w r3, r3, #31
  20986. 8009168: 2201 movs r2, #1
  20987. 800916a: 409a lsls r2, r3
  20988. 800916c: 68fb ldr r3, [r7, #12]
  20989. 800916e: 605a str r2, [r3, #4]
  20990. /* Clear the DMAMUX synchro overrun flag */
  20991. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  20992. 8009170: 687b ldr r3, [r7, #4]
  20993. 8009172: 6e5b ldr r3, [r3, #100] @ 0x64
  20994. 8009174: 687a ldr r2, [r7, #4]
  20995. 8009176: 6e92 ldr r2, [r2, #104] @ 0x68
  20996. 8009178: 605a str r2, [r3, #4]
  20997. if(hdma->DMAmuxRequestGen != 0U)
  20998. 800917a: 687b ldr r3, [r7, #4]
  20999. 800917c: 6edb ldr r3, [r3, #108] @ 0x6c
  21000. 800917e: 2b00 cmp r3, #0
  21001. 8009180: d00c beq.n 800919c <HAL_DMA_Abort_IT+0x460>
  21002. {
  21003. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  21004. /* disable the request gen overrun IT */
  21005. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  21006. 8009182: 687b ldr r3, [r7, #4]
  21007. 8009184: 6edb ldr r3, [r3, #108] @ 0x6c
  21008. 8009186: 681a ldr r2, [r3, #0]
  21009. 8009188: 687b ldr r3, [r7, #4]
  21010. 800918a: 6edb ldr r3, [r3, #108] @ 0x6c
  21011. 800918c: f422 7280 bic.w r2, r2, #256 @ 0x100
  21012. 8009190: 601a str r2, [r3, #0]
  21013. /* Clear the DMAMUX request generator overrun flag */
  21014. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  21015. 8009192: 687b ldr r3, [r7, #4]
  21016. 8009194: 6f1b ldr r3, [r3, #112] @ 0x70
  21017. 8009196: 687a ldr r2, [r7, #4]
  21018. 8009198: 6f52 ldr r2, [r2, #116] @ 0x74
  21019. 800919a: 605a str r2, [r3, #4]
  21020. }
  21021. }
  21022. /* Change the DMA state */
  21023. hdma->State = HAL_DMA_STATE_READY;
  21024. 800919c: 687b ldr r3, [r7, #4]
  21025. 800919e: 2201 movs r2, #1
  21026. 80091a0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21027. /* Process Unlocked */
  21028. __HAL_UNLOCK(hdma);
  21029. 80091a4: 687b ldr r3, [r7, #4]
  21030. 80091a6: 2200 movs r2, #0
  21031. 80091a8: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21032. /* Call User Abort callback */
  21033. if(hdma->XferAbortCallback != NULL)
  21034. 80091ac: 687b ldr r3, [r7, #4]
  21035. 80091ae: 6d1b ldr r3, [r3, #80] @ 0x50
  21036. 80091b0: 2b00 cmp r3, #0
  21037. 80091b2: d003 beq.n 80091bc <HAL_DMA_Abort_IT+0x480>
  21038. {
  21039. hdma->XferAbortCallback(hdma);
  21040. 80091b4: 687b ldr r3, [r7, #4]
  21041. 80091b6: 6d1b ldr r3, [r3, #80] @ 0x50
  21042. 80091b8: 6878 ldr r0, [r7, #4]
  21043. 80091ba: 4798 blx r3
  21044. }
  21045. }
  21046. }
  21047. return HAL_OK;
  21048. 80091bc: 2300 movs r3, #0
  21049. }
  21050. 80091be: 4618 mov r0, r3
  21051. 80091c0: 3710 adds r7, #16
  21052. 80091c2: 46bd mov sp, r7
  21053. 80091c4: bd80 pop {r7, pc}
  21054. 80091c6: bf00 nop
  21055. 080091c8 <HAL_DMA_IRQHandler>:
  21056. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  21057. * the configuration information for the specified DMA Stream.
  21058. * @retval None
  21059. */
  21060. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  21061. {
  21062. 80091c8: b580 push {r7, lr}
  21063. 80091ca: b08a sub sp, #40 @ 0x28
  21064. 80091cc: af00 add r7, sp, #0
  21065. 80091ce: 6078 str r0, [r7, #4]
  21066. uint32_t tmpisr_dma, tmpisr_bdma;
  21067. uint32_t ccr_reg;
  21068. __IO uint32_t count = 0U;
  21069. 80091d0: 2300 movs r3, #0
  21070. 80091d2: 60fb str r3, [r7, #12]
  21071. uint32_t timeout = SystemCoreClock / 9600U;
  21072. 80091d4: 4b67 ldr r3, [pc, #412] @ (8009374 <HAL_DMA_IRQHandler+0x1ac>)
  21073. 80091d6: 681b ldr r3, [r3, #0]
  21074. 80091d8: 4a67 ldr r2, [pc, #412] @ (8009378 <HAL_DMA_IRQHandler+0x1b0>)
  21075. 80091da: fba2 2303 umull r2, r3, r2, r3
  21076. 80091de: 0a9b lsrs r3, r3, #10
  21077. 80091e0: 627b str r3, [r7, #36] @ 0x24
  21078. /* calculate DMA base and stream number */
  21079. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  21080. 80091e2: 687b ldr r3, [r7, #4]
  21081. 80091e4: 6d9b ldr r3, [r3, #88] @ 0x58
  21082. 80091e6: 623b str r3, [r7, #32]
  21083. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21084. 80091e8: 687b ldr r3, [r7, #4]
  21085. 80091ea: 6d9b ldr r3, [r3, #88] @ 0x58
  21086. 80091ec: 61fb str r3, [r7, #28]
  21087. tmpisr_dma = regs_dma->ISR;
  21088. 80091ee: 6a3b ldr r3, [r7, #32]
  21089. 80091f0: 681b ldr r3, [r3, #0]
  21090. 80091f2: 61bb str r3, [r7, #24]
  21091. tmpisr_bdma = regs_bdma->ISR;
  21092. 80091f4: 69fb ldr r3, [r7, #28]
  21093. 80091f6: 681b ldr r3, [r3, #0]
  21094. 80091f8: 617b str r3, [r7, #20]
  21095. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21096. 80091fa: 687b ldr r3, [r7, #4]
  21097. 80091fc: 681b ldr r3, [r3, #0]
  21098. 80091fe: 4a5f ldr r2, [pc, #380] @ (800937c <HAL_DMA_IRQHandler+0x1b4>)
  21099. 8009200: 4293 cmp r3, r2
  21100. 8009202: d04a beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21101. 8009204: 687b ldr r3, [r7, #4]
  21102. 8009206: 681b ldr r3, [r3, #0]
  21103. 8009208: 4a5d ldr r2, [pc, #372] @ (8009380 <HAL_DMA_IRQHandler+0x1b8>)
  21104. 800920a: 4293 cmp r3, r2
  21105. 800920c: d045 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21106. 800920e: 687b ldr r3, [r7, #4]
  21107. 8009210: 681b ldr r3, [r3, #0]
  21108. 8009212: 4a5c ldr r2, [pc, #368] @ (8009384 <HAL_DMA_IRQHandler+0x1bc>)
  21109. 8009214: 4293 cmp r3, r2
  21110. 8009216: d040 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21111. 8009218: 687b ldr r3, [r7, #4]
  21112. 800921a: 681b ldr r3, [r3, #0]
  21113. 800921c: 4a5a ldr r2, [pc, #360] @ (8009388 <HAL_DMA_IRQHandler+0x1c0>)
  21114. 800921e: 4293 cmp r3, r2
  21115. 8009220: d03b beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21116. 8009222: 687b ldr r3, [r7, #4]
  21117. 8009224: 681b ldr r3, [r3, #0]
  21118. 8009226: 4a59 ldr r2, [pc, #356] @ (800938c <HAL_DMA_IRQHandler+0x1c4>)
  21119. 8009228: 4293 cmp r3, r2
  21120. 800922a: d036 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21121. 800922c: 687b ldr r3, [r7, #4]
  21122. 800922e: 681b ldr r3, [r3, #0]
  21123. 8009230: 4a57 ldr r2, [pc, #348] @ (8009390 <HAL_DMA_IRQHandler+0x1c8>)
  21124. 8009232: 4293 cmp r3, r2
  21125. 8009234: d031 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21126. 8009236: 687b ldr r3, [r7, #4]
  21127. 8009238: 681b ldr r3, [r3, #0]
  21128. 800923a: 4a56 ldr r2, [pc, #344] @ (8009394 <HAL_DMA_IRQHandler+0x1cc>)
  21129. 800923c: 4293 cmp r3, r2
  21130. 800923e: d02c beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21131. 8009240: 687b ldr r3, [r7, #4]
  21132. 8009242: 681b ldr r3, [r3, #0]
  21133. 8009244: 4a54 ldr r2, [pc, #336] @ (8009398 <HAL_DMA_IRQHandler+0x1d0>)
  21134. 8009246: 4293 cmp r3, r2
  21135. 8009248: d027 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21136. 800924a: 687b ldr r3, [r7, #4]
  21137. 800924c: 681b ldr r3, [r3, #0]
  21138. 800924e: 4a53 ldr r2, [pc, #332] @ (800939c <HAL_DMA_IRQHandler+0x1d4>)
  21139. 8009250: 4293 cmp r3, r2
  21140. 8009252: d022 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21141. 8009254: 687b ldr r3, [r7, #4]
  21142. 8009256: 681b ldr r3, [r3, #0]
  21143. 8009258: 4a51 ldr r2, [pc, #324] @ (80093a0 <HAL_DMA_IRQHandler+0x1d8>)
  21144. 800925a: 4293 cmp r3, r2
  21145. 800925c: d01d beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21146. 800925e: 687b ldr r3, [r7, #4]
  21147. 8009260: 681b ldr r3, [r3, #0]
  21148. 8009262: 4a50 ldr r2, [pc, #320] @ (80093a4 <HAL_DMA_IRQHandler+0x1dc>)
  21149. 8009264: 4293 cmp r3, r2
  21150. 8009266: d018 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21151. 8009268: 687b ldr r3, [r7, #4]
  21152. 800926a: 681b ldr r3, [r3, #0]
  21153. 800926c: 4a4e ldr r2, [pc, #312] @ (80093a8 <HAL_DMA_IRQHandler+0x1e0>)
  21154. 800926e: 4293 cmp r3, r2
  21155. 8009270: d013 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21156. 8009272: 687b ldr r3, [r7, #4]
  21157. 8009274: 681b ldr r3, [r3, #0]
  21158. 8009276: 4a4d ldr r2, [pc, #308] @ (80093ac <HAL_DMA_IRQHandler+0x1e4>)
  21159. 8009278: 4293 cmp r3, r2
  21160. 800927a: d00e beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21161. 800927c: 687b ldr r3, [r7, #4]
  21162. 800927e: 681b ldr r3, [r3, #0]
  21163. 8009280: 4a4b ldr r2, [pc, #300] @ (80093b0 <HAL_DMA_IRQHandler+0x1e8>)
  21164. 8009282: 4293 cmp r3, r2
  21165. 8009284: d009 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21166. 8009286: 687b ldr r3, [r7, #4]
  21167. 8009288: 681b ldr r3, [r3, #0]
  21168. 800928a: 4a4a ldr r2, [pc, #296] @ (80093b4 <HAL_DMA_IRQHandler+0x1ec>)
  21169. 800928c: 4293 cmp r3, r2
  21170. 800928e: d004 beq.n 800929a <HAL_DMA_IRQHandler+0xd2>
  21171. 8009290: 687b ldr r3, [r7, #4]
  21172. 8009292: 681b ldr r3, [r3, #0]
  21173. 8009294: 4a48 ldr r2, [pc, #288] @ (80093b8 <HAL_DMA_IRQHandler+0x1f0>)
  21174. 8009296: 4293 cmp r3, r2
  21175. 8009298: d101 bne.n 800929e <HAL_DMA_IRQHandler+0xd6>
  21176. 800929a: 2301 movs r3, #1
  21177. 800929c: e000 b.n 80092a0 <HAL_DMA_IRQHandler+0xd8>
  21178. 800929e: 2300 movs r3, #0
  21179. 80092a0: 2b00 cmp r3, #0
  21180. 80092a2: f000 842b beq.w 8009afc <HAL_DMA_IRQHandler+0x934>
  21181. {
  21182. /* Transfer Error Interrupt management ***************************************/
  21183. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21184. 80092a6: 687b ldr r3, [r7, #4]
  21185. 80092a8: 6ddb ldr r3, [r3, #92] @ 0x5c
  21186. 80092aa: f003 031f and.w r3, r3, #31
  21187. 80092ae: 2208 movs r2, #8
  21188. 80092b0: 409a lsls r2, r3
  21189. 80092b2: 69bb ldr r3, [r7, #24]
  21190. 80092b4: 4013 ands r3, r2
  21191. 80092b6: 2b00 cmp r3, #0
  21192. 80092b8: f000 80a2 beq.w 8009400 <HAL_DMA_IRQHandler+0x238>
  21193. {
  21194. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  21195. 80092bc: 687b ldr r3, [r7, #4]
  21196. 80092be: 681b ldr r3, [r3, #0]
  21197. 80092c0: 4a2e ldr r2, [pc, #184] @ (800937c <HAL_DMA_IRQHandler+0x1b4>)
  21198. 80092c2: 4293 cmp r3, r2
  21199. 80092c4: d04a beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21200. 80092c6: 687b ldr r3, [r7, #4]
  21201. 80092c8: 681b ldr r3, [r3, #0]
  21202. 80092ca: 4a2d ldr r2, [pc, #180] @ (8009380 <HAL_DMA_IRQHandler+0x1b8>)
  21203. 80092cc: 4293 cmp r3, r2
  21204. 80092ce: d045 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21205. 80092d0: 687b ldr r3, [r7, #4]
  21206. 80092d2: 681b ldr r3, [r3, #0]
  21207. 80092d4: 4a2b ldr r2, [pc, #172] @ (8009384 <HAL_DMA_IRQHandler+0x1bc>)
  21208. 80092d6: 4293 cmp r3, r2
  21209. 80092d8: d040 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21210. 80092da: 687b ldr r3, [r7, #4]
  21211. 80092dc: 681b ldr r3, [r3, #0]
  21212. 80092de: 4a2a ldr r2, [pc, #168] @ (8009388 <HAL_DMA_IRQHandler+0x1c0>)
  21213. 80092e0: 4293 cmp r3, r2
  21214. 80092e2: d03b beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21215. 80092e4: 687b ldr r3, [r7, #4]
  21216. 80092e6: 681b ldr r3, [r3, #0]
  21217. 80092e8: 4a28 ldr r2, [pc, #160] @ (800938c <HAL_DMA_IRQHandler+0x1c4>)
  21218. 80092ea: 4293 cmp r3, r2
  21219. 80092ec: d036 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21220. 80092ee: 687b ldr r3, [r7, #4]
  21221. 80092f0: 681b ldr r3, [r3, #0]
  21222. 80092f2: 4a27 ldr r2, [pc, #156] @ (8009390 <HAL_DMA_IRQHandler+0x1c8>)
  21223. 80092f4: 4293 cmp r3, r2
  21224. 80092f6: d031 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21225. 80092f8: 687b ldr r3, [r7, #4]
  21226. 80092fa: 681b ldr r3, [r3, #0]
  21227. 80092fc: 4a25 ldr r2, [pc, #148] @ (8009394 <HAL_DMA_IRQHandler+0x1cc>)
  21228. 80092fe: 4293 cmp r3, r2
  21229. 8009300: d02c beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21230. 8009302: 687b ldr r3, [r7, #4]
  21231. 8009304: 681b ldr r3, [r3, #0]
  21232. 8009306: 4a24 ldr r2, [pc, #144] @ (8009398 <HAL_DMA_IRQHandler+0x1d0>)
  21233. 8009308: 4293 cmp r3, r2
  21234. 800930a: d027 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21235. 800930c: 687b ldr r3, [r7, #4]
  21236. 800930e: 681b ldr r3, [r3, #0]
  21237. 8009310: 4a22 ldr r2, [pc, #136] @ (800939c <HAL_DMA_IRQHandler+0x1d4>)
  21238. 8009312: 4293 cmp r3, r2
  21239. 8009314: d022 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21240. 8009316: 687b ldr r3, [r7, #4]
  21241. 8009318: 681b ldr r3, [r3, #0]
  21242. 800931a: 4a21 ldr r2, [pc, #132] @ (80093a0 <HAL_DMA_IRQHandler+0x1d8>)
  21243. 800931c: 4293 cmp r3, r2
  21244. 800931e: d01d beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21245. 8009320: 687b ldr r3, [r7, #4]
  21246. 8009322: 681b ldr r3, [r3, #0]
  21247. 8009324: 4a1f ldr r2, [pc, #124] @ (80093a4 <HAL_DMA_IRQHandler+0x1dc>)
  21248. 8009326: 4293 cmp r3, r2
  21249. 8009328: d018 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21250. 800932a: 687b ldr r3, [r7, #4]
  21251. 800932c: 681b ldr r3, [r3, #0]
  21252. 800932e: 4a1e ldr r2, [pc, #120] @ (80093a8 <HAL_DMA_IRQHandler+0x1e0>)
  21253. 8009330: 4293 cmp r3, r2
  21254. 8009332: d013 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21255. 8009334: 687b ldr r3, [r7, #4]
  21256. 8009336: 681b ldr r3, [r3, #0]
  21257. 8009338: 4a1c ldr r2, [pc, #112] @ (80093ac <HAL_DMA_IRQHandler+0x1e4>)
  21258. 800933a: 4293 cmp r3, r2
  21259. 800933c: d00e beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21260. 800933e: 687b ldr r3, [r7, #4]
  21261. 8009340: 681b ldr r3, [r3, #0]
  21262. 8009342: 4a1b ldr r2, [pc, #108] @ (80093b0 <HAL_DMA_IRQHandler+0x1e8>)
  21263. 8009344: 4293 cmp r3, r2
  21264. 8009346: d009 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21265. 8009348: 687b ldr r3, [r7, #4]
  21266. 800934a: 681b ldr r3, [r3, #0]
  21267. 800934c: 4a19 ldr r2, [pc, #100] @ (80093b4 <HAL_DMA_IRQHandler+0x1ec>)
  21268. 800934e: 4293 cmp r3, r2
  21269. 8009350: d004 beq.n 800935c <HAL_DMA_IRQHandler+0x194>
  21270. 8009352: 687b ldr r3, [r7, #4]
  21271. 8009354: 681b ldr r3, [r3, #0]
  21272. 8009356: 4a18 ldr r2, [pc, #96] @ (80093b8 <HAL_DMA_IRQHandler+0x1f0>)
  21273. 8009358: 4293 cmp r3, r2
  21274. 800935a: d12f bne.n 80093bc <HAL_DMA_IRQHandler+0x1f4>
  21275. 800935c: 687b ldr r3, [r7, #4]
  21276. 800935e: 681b ldr r3, [r3, #0]
  21277. 8009360: 681b ldr r3, [r3, #0]
  21278. 8009362: f003 0304 and.w r3, r3, #4
  21279. 8009366: 2b00 cmp r3, #0
  21280. 8009368: bf14 ite ne
  21281. 800936a: 2301 movne r3, #1
  21282. 800936c: 2300 moveq r3, #0
  21283. 800936e: b2db uxtb r3, r3
  21284. 8009370: e02e b.n 80093d0 <HAL_DMA_IRQHandler+0x208>
  21285. 8009372: bf00 nop
  21286. 8009374: 24000034 .word 0x24000034
  21287. 8009378: 1b4e81b5 .word 0x1b4e81b5
  21288. 800937c: 40020010 .word 0x40020010
  21289. 8009380: 40020028 .word 0x40020028
  21290. 8009384: 40020040 .word 0x40020040
  21291. 8009388: 40020058 .word 0x40020058
  21292. 800938c: 40020070 .word 0x40020070
  21293. 8009390: 40020088 .word 0x40020088
  21294. 8009394: 400200a0 .word 0x400200a0
  21295. 8009398: 400200b8 .word 0x400200b8
  21296. 800939c: 40020410 .word 0x40020410
  21297. 80093a0: 40020428 .word 0x40020428
  21298. 80093a4: 40020440 .word 0x40020440
  21299. 80093a8: 40020458 .word 0x40020458
  21300. 80093ac: 40020470 .word 0x40020470
  21301. 80093b0: 40020488 .word 0x40020488
  21302. 80093b4: 400204a0 .word 0x400204a0
  21303. 80093b8: 400204b8 .word 0x400204b8
  21304. 80093bc: 687b ldr r3, [r7, #4]
  21305. 80093be: 681b ldr r3, [r3, #0]
  21306. 80093c0: 681b ldr r3, [r3, #0]
  21307. 80093c2: f003 0308 and.w r3, r3, #8
  21308. 80093c6: 2b00 cmp r3, #0
  21309. 80093c8: bf14 ite ne
  21310. 80093ca: 2301 movne r3, #1
  21311. 80093cc: 2300 moveq r3, #0
  21312. 80093ce: b2db uxtb r3, r3
  21313. 80093d0: 2b00 cmp r3, #0
  21314. 80093d2: d015 beq.n 8009400 <HAL_DMA_IRQHandler+0x238>
  21315. {
  21316. /* Disable the transfer error interrupt */
  21317. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  21318. 80093d4: 687b ldr r3, [r7, #4]
  21319. 80093d6: 681b ldr r3, [r3, #0]
  21320. 80093d8: 681a ldr r2, [r3, #0]
  21321. 80093da: 687b ldr r3, [r7, #4]
  21322. 80093dc: 681b ldr r3, [r3, #0]
  21323. 80093de: f022 0204 bic.w r2, r2, #4
  21324. 80093e2: 601a str r2, [r3, #0]
  21325. /* Clear the transfer error flag */
  21326. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  21327. 80093e4: 687b ldr r3, [r7, #4]
  21328. 80093e6: 6ddb ldr r3, [r3, #92] @ 0x5c
  21329. 80093e8: f003 031f and.w r3, r3, #31
  21330. 80093ec: 2208 movs r2, #8
  21331. 80093ee: 409a lsls r2, r3
  21332. 80093f0: 6a3b ldr r3, [r7, #32]
  21333. 80093f2: 609a str r2, [r3, #8]
  21334. /* Update error code */
  21335. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  21336. 80093f4: 687b ldr r3, [r7, #4]
  21337. 80093f6: 6d5b ldr r3, [r3, #84] @ 0x54
  21338. 80093f8: f043 0201 orr.w r2, r3, #1
  21339. 80093fc: 687b ldr r3, [r7, #4]
  21340. 80093fe: 655a str r2, [r3, #84] @ 0x54
  21341. }
  21342. }
  21343. /* FIFO Error Interrupt management ******************************************/
  21344. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21345. 8009400: 687b ldr r3, [r7, #4]
  21346. 8009402: 6ddb ldr r3, [r3, #92] @ 0x5c
  21347. 8009404: f003 031f and.w r3, r3, #31
  21348. 8009408: 69ba ldr r2, [r7, #24]
  21349. 800940a: fa22 f303 lsr.w r3, r2, r3
  21350. 800940e: f003 0301 and.w r3, r3, #1
  21351. 8009412: 2b00 cmp r3, #0
  21352. 8009414: d06e beq.n 80094f4 <HAL_DMA_IRQHandler+0x32c>
  21353. {
  21354. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  21355. 8009416: 687b ldr r3, [r7, #4]
  21356. 8009418: 681b ldr r3, [r3, #0]
  21357. 800941a: 4a69 ldr r2, [pc, #420] @ (80095c0 <HAL_DMA_IRQHandler+0x3f8>)
  21358. 800941c: 4293 cmp r3, r2
  21359. 800941e: d04a beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21360. 8009420: 687b ldr r3, [r7, #4]
  21361. 8009422: 681b ldr r3, [r3, #0]
  21362. 8009424: 4a67 ldr r2, [pc, #412] @ (80095c4 <HAL_DMA_IRQHandler+0x3fc>)
  21363. 8009426: 4293 cmp r3, r2
  21364. 8009428: d045 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21365. 800942a: 687b ldr r3, [r7, #4]
  21366. 800942c: 681b ldr r3, [r3, #0]
  21367. 800942e: 4a66 ldr r2, [pc, #408] @ (80095c8 <HAL_DMA_IRQHandler+0x400>)
  21368. 8009430: 4293 cmp r3, r2
  21369. 8009432: d040 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21370. 8009434: 687b ldr r3, [r7, #4]
  21371. 8009436: 681b ldr r3, [r3, #0]
  21372. 8009438: 4a64 ldr r2, [pc, #400] @ (80095cc <HAL_DMA_IRQHandler+0x404>)
  21373. 800943a: 4293 cmp r3, r2
  21374. 800943c: d03b beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21375. 800943e: 687b ldr r3, [r7, #4]
  21376. 8009440: 681b ldr r3, [r3, #0]
  21377. 8009442: 4a63 ldr r2, [pc, #396] @ (80095d0 <HAL_DMA_IRQHandler+0x408>)
  21378. 8009444: 4293 cmp r3, r2
  21379. 8009446: d036 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21380. 8009448: 687b ldr r3, [r7, #4]
  21381. 800944a: 681b ldr r3, [r3, #0]
  21382. 800944c: 4a61 ldr r2, [pc, #388] @ (80095d4 <HAL_DMA_IRQHandler+0x40c>)
  21383. 800944e: 4293 cmp r3, r2
  21384. 8009450: d031 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21385. 8009452: 687b ldr r3, [r7, #4]
  21386. 8009454: 681b ldr r3, [r3, #0]
  21387. 8009456: 4a60 ldr r2, [pc, #384] @ (80095d8 <HAL_DMA_IRQHandler+0x410>)
  21388. 8009458: 4293 cmp r3, r2
  21389. 800945a: d02c beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21390. 800945c: 687b ldr r3, [r7, #4]
  21391. 800945e: 681b ldr r3, [r3, #0]
  21392. 8009460: 4a5e ldr r2, [pc, #376] @ (80095dc <HAL_DMA_IRQHandler+0x414>)
  21393. 8009462: 4293 cmp r3, r2
  21394. 8009464: d027 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21395. 8009466: 687b ldr r3, [r7, #4]
  21396. 8009468: 681b ldr r3, [r3, #0]
  21397. 800946a: 4a5d ldr r2, [pc, #372] @ (80095e0 <HAL_DMA_IRQHandler+0x418>)
  21398. 800946c: 4293 cmp r3, r2
  21399. 800946e: d022 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21400. 8009470: 687b ldr r3, [r7, #4]
  21401. 8009472: 681b ldr r3, [r3, #0]
  21402. 8009474: 4a5b ldr r2, [pc, #364] @ (80095e4 <HAL_DMA_IRQHandler+0x41c>)
  21403. 8009476: 4293 cmp r3, r2
  21404. 8009478: d01d beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21405. 800947a: 687b ldr r3, [r7, #4]
  21406. 800947c: 681b ldr r3, [r3, #0]
  21407. 800947e: 4a5a ldr r2, [pc, #360] @ (80095e8 <HAL_DMA_IRQHandler+0x420>)
  21408. 8009480: 4293 cmp r3, r2
  21409. 8009482: d018 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21410. 8009484: 687b ldr r3, [r7, #4]
  21411. 8009486: 681b ldr r3, [r3, #0]
  21412. 8009488: 4a58 ldr r2, [pc, #352] @ (80095ec <HAL_DMA_IRQHandler+0x424>)
  21413. 800948a: 4293 cmp r3, r2
  21414. 800948c: d013 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21415. 800948e: 687b ldr r3, [r7, #4]
  21416. 8009490: 681b ldr r3, [r3, #0]
  21417. 8009492: 4a57 ldr r2, [pc, #348] @ (80095f0 <HAL_DMA_IRQHandler+0x428>)
  21418. 8009494: 4293 cmp r3, r2
  21419. 8009496: d00e beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21420. 8009498: 687b ldr r3, [r7, #4]
  21421. 800949a: 681b ldr r3, [r3, #0]
  21422. 800949c: 4a55 ldr r2, [pc, #340] @ (80095f4 <HAL_DMA_IRQHandler+0x42c>)
  21423. 800949e: 4293 cmp r3, r2
  21424. 80094a0: d009 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21425. 80094a2: 687b ldr r3, [r7, #4]
  21426. 80094a4: 681b ldr r3, [r3, #0]
  21427. 80094a6: 4a54 ldr r2, [pc, #336] @ (80095f8 <HAL_DMA_IRQHandler+0x430>)
  21428. 80094a8: 4293 cmp r3, r2
  21429. 80094aa: d004 beq.n 80094b6 <HAL_DMA_IRQHandler+0x2ee>
  21430. 80094ac: 687b ldr r3, [r7, #4]
  21431. 80094ae: 681b ldr r3, [r3, #0]
  21432. 80094b0: 4a52 ldr r2, [pc, #328] @ (80095fc <HAL_DMA_IRQHandler+0x434>)
  21433. 80094b2: 4293 cmp r3, r2
  21434. 80094b4: d10a bne.n 80094cc <HAL_DMA_IRQHandler+0x304>
  21435. 80094b6: 687b ldr r3, [r7, #4]
  21436. 80094b8: 681b ldr r3, [r3, #0]
  21437. 80094ba: 695b ldr r3, [r3, #20]
  21438. 80094bc: f003 0380 and.w r3, r3, #128 @ 0x80
  21439. 80094c0: 2b00 cmp r3, #0
  21440. 80094c2: bf14 ite ne
  21441. 80094c4: 2301 movne r3, #1
  21442. 80094c6: 2300 moveq r3, #0
  21443. 80094c8: b2db uxtb r3, r3
  21444. 80094ca: e003 b.n 80094d4 <HAL_DMA_IRQHandler+0x30c>
  21445. 80094cc: 687b ldr r3, [r7, #4]
  21446. 80094ce: 681b ldr r3, [r3, #0]
  21447. 80094d0: 681b ldr r3, [r3, #0]
  21448. 80094d2: 2300 movs r3, #0
  21449. 80094d4: 2b00 cmp r3, #0
  21450. 80094d6: d00d beq.n 80094f4 <HAL_DMA_IRQHandler+0x32c>
  21451. {
  21452. /* Clear the FIFO error flag */
  21453. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  21454. 80094d8: 687b ldr r3, [r7, #4]
  21455. 80094da: 6ddb ldr r3, [r3, #92] @ 0x5c
  21456. 80094dc: f003 031f and.w r3, r3, #31
  21457. 80094e0: 2201 movs r2, #1
  21458. 80094e2: 409a lsls r2, r3
  21459. 80094e4: 6a3b ldr r3, [r7, #32]
  21460. 80094e6: 609a str r2, [r3, #8]
  21461. /* Update error code */
  21462. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  21463. 80094e8: 687b ldr r3, [r7, #4]
  21464. 80094ea: 6d5b ldr r3, [r3, #84] @ 0x54
  21465. 80094ec: f043 0202 orr.w r2, r3, #2
  21466. 80094f0: 687b ldr r3, [r7, #4]
  21467. 80094f2: 655a str r2, [r3, #84] @ 0x54
  21468. }
  21469. }
  21470. /* Direct Mode Error Interrupt management ***********************************/
  21471. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21472. 80094f4: 687b ldr r3, [r7, #4]
  21473. 80094f6: 6ddb ldr r3, [r3, #92] @ 0x5c
  21474. 80094f8: f003 031f and.w r3, r3, #31
  21475. 80094fc: 2204 movs r2, #4
  21476. 80094fe: 409a lsls r2, r3
  21477. 8009500: 69bb ldr r3, [r7, #24]
  21478. 8009502: 4013 ands r3, r2
  21479. 8009504: 2b00 cmp r3, #0
  21480. 8009506: f000 808f beq.w 8009628 <HAL_DMA_IRQHandler+0x460>
  21481. {
  21482. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  21483. 800950a: 687b ldr r3, [r7, #4]
  21484. 800950c: 681b ldr r3, [r3, #0]
  21485. 800950e: 4a2c ldr r2, [pc, #176] @ (80095c0 <HAL_DMA_IRQHandler+0x3f8>)
  21486. 8009510: 4293 cmp r3, r2
  21487. 8009512: d04a beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21488. 8009514: 687b ldr r3, [r7, #4]
  21489. 8009516: 681b ldr r3, [r3, #0]
  21490. 8009518: 4a2a ldr r2, [pc, #168] @ (80095c4 <HAL_DMA_IRQHandler+0x3fc>)
  21491. 800951a: 4293 cmp r3, r2
  21492. 800951c: d045 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21493. 800951e: 687b ldr r3, [r7, #4]
  21494. 8009520: 681b ldr r3, [r3, #0]
  21495. 8009522: 4a29 ldr r2, [pc, #164] @ (80095c8 <HAL_DMA_IRQHandler+0x400>)
  21496. 8009524: 4293 cmp r3, r2
  21497. 8009526: d040 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21498. 8009528: 687b ldr r3, [r7, #4]
  21499. 800952a: 681b ldr r3, [r3, #0]
  21500. 800952c: 4a27 ldr r2, [pc, #156] @ (80095cc <HAL_DMA_IRQHandler+0x404>)
  21501. 800952e: 4293 cmp r3, r2
  21502. 8009530: d03b beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21503. 8009532: 687b ldr r3, [r7, #4]
  21504. 8009534: 681b ldr r3, [r3, #0]
  21505. 8009536: 4a26 ldr r2, [pc, #152] @ (80095d0 <HAL_DMA_IRQHandler+0x408>)
  21506. 8009538: 4293 cmp r3, r2
  21507. 800953a: d036 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21508. 800953c: 687b ldr r3, [r7, #4]
  21509. 800953e: 681b ldr r3, [r3, #0]
  21510. 8009540: 4a24 ldr r2, [pc, #144] @ (80095d4 <HAL_DMA_IRQHandler+0x40c>)
  21511. 8009542: 4293 cmp r3, r2
  21512. 8009544: d031 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21513. 8009546: 687b ldr r3, [r7, #4]
  21514. 8009548: 681b ldr r3, [r3, #0]
  21515. 800954a: 4a23 ldr r2, [pc, #140] @ (80095d8 <HAL_DMA_IRQHandler+0x410>)
  21516. 800954c: 4293 cmp r3, r2
  21517. 800954e: d02c beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21518. 8009550: 687b ldr r3, [r7, #4]
  21519. 8009552: 681b ldr r3, [r3, #0]
  21520. 8009554: 4a21 ldr r2, [pc, #132] @ (80095dc <HAL_DMA_IRQHandler+0x414>)
  21521. 8009556: 4293 cmp r3, r2
  21522. 8009558: d027 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21523. 800955a: 687b ldr r3, [r7, #4]
  21524. 800955c: 681b ldr r3, [r3, #0]
  21525. 800955e: 4a20 ldr r2, [pc, #128] @ (80095e0 <HAL_DMA_IRQHandler+0x418>)
  21526. 8009560: 4293 cmp r3, r2
  21527. 8009562: d022 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21528. 8009564: 687b ldr r3, [r7, #4]
  21529. 8009566: 681b ldr r3, [r3, #0]
  21530. 8009568: 4a1e ldr r2, [pc, #120] @ (80095e4 <HAL_DMA_IRQHandler+0x41c>)
  21531. 800956a: 4293 cmp r3, r2
  21532. 800956c: d01d beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21533. 800956e: 687b ldr r3, [r7, #4]
  21534. 8009570: 681b ldr r3, [r3, #0]
  21535. 8009572: 4a1d ldr r2, [pc, #116] @ (80095e8 <HAL_DMA_IRQHandler+0x420>)
  21536. 8009574: 4293 cmp r3, r2
  21537. 8009576: d018 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21538. 8009578: 687b ldr r3, [r7, #4]
  21539. 800957a: 681b ldr r3, [r3, #0]
  21540. 800957c: 4a1b ldr r2, [pc, #108] @ (80095ec <HAL_DMA_IRQHandler+0x424>)
  21541. 800957e: 4293 cmp r3, r2
  21542. 8009580: d013 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21543. 8009582: 687b ldr r3, [r7, #4]
  21544. 8009584: 681b ldr r3, [r3, #0]
  21545. 8009586: 4a1a ldr r2, [pc, #104] @ (80095f0 <HAL_DMA_IRQHandler+0x428>)
  21546. 8009588: 4293 cmp r3, r2
  21547. 800958a: d00e beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21548. 800958c: 687b ldr r3, [r7, #4]
  21549. 800958e: 681b ldr r3, [r3, #0]
  21550. 8009590: 4a18 ldr r2, [pc, #96] @ (80095f4 <HAL_DMA_IRQHandler+0x42c>)
  21551. 8009592: 4293 cmp r3, r2
  21552. 8009594: d009 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21553. 8009596: 687b ldr r3, [r7, #4]
  21554. 8009598: 681b ldr r3, [r3, #0]
  21555. 800959a: 4a17 ldr r2, [pc, #92] @ (80095f8 <HAL_DMA_IRQHandler+0x430>)
  21556. 800959c: 4293 cmp r3, r2
  21557. 800959e: d004 beq.n 80095aa <HAL_DMA_IRQHandler+0x3e2>
  21558. 80095a0: 687b ldr r3, [r7, #4]
  21559. 80095a2: 681b ldr r3, [r3, #0]
  21560. 80095a4: 4a15 ldr r2, [pc, #84] @ (80095fc <HAL_DMA_IRQHandler+0x434>)
  21561. 80095a6: 4293 cmp r3, r2
  21562. 80095a8: d12a bne.n 8009600 <HAL_DMA_IRQHandler+0x438>
  21563. 80095aa: 687b ldr r3, [r7, #4]
  21564. 80095ac: 681b ldr r3, [r3, #0]
  21565. 80095ae: 681b ldr r3, [r3, #0]
  21566. 80095b0: f003 0302 and.w r3, r3, #2
  21567. 80095b4: 2b00 cmp r3, #0
  21568. 80095b6: bf14 ite ne
  21569. 80095b8: 2301 movne r3, #1
  21570. 80095ba: 2300 moveq r3, #0
  21571. 80095bc: b2db uxtb r3, r3
  21572. 80095be: e023 b.n 8009608 <HAL_DMA_IRQHandler+0x440>
  21573. 80095c0: 40020010 .word 0x40020010
  21574. 80095c4: 40020028 .word 0x40020028
  21575. 80095c8: 40020040 .word 0x40020040
  21576. 80095cc: 40020058 .word 0x40020058
  21577. 80095d0: 40020070 .word 0x40020070
  21578. 80095d4: 40020088 .word 0x40020088
  21579. 80095d8: 400200a0 .word 0x400200a0
  21580. 80095dc: 400200b8 .word 0x400200b8
  21581. 80095e0: 40020410 .word 0x40020410
  21582. 80095e4: 40020428 .word 0x40020428
  21583. 80095e8: 40020440 .word 0x40020440
  21584. 80095ec: 40020458 .word 0x40020458
  21585. 80095f0: 40020470 .word 0x40020470
  21586. 80095f4: 40020488 .word 0x40020488
  21587. 80095f8: 400204a0 .word 0x400204a0
  21588. 80095fc: 400204b8 .word 0x400204b8
  21589. 8009600: 687b ldr r3, [r7, #4]
  21590. 8009602: 681b ldr r3, [r3, #0]
  21591. 8009604: 681b ldr r3, [r3, #0]
  21592. 8009606: 2300 movs r3, #0
  21593. 8009608: 2b00 cmp r3, #0
  21594. 800960a: d00d beq.n 8009628 <HAL_DMA_IRQHandler+0x460>
  21595. {
  21596. /* Clear the direct mode error flag */
  21597. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  21598. 800960c: 687b ldr r3, [r7, #4]
  21599. 800960e: 6ddb ldr r3, [r3, #92] @ 0x5c
  21600. 8009610: f003 031f and.w r3, r3, #31
  21601. 8009614: 2204 movs r2, #4
  21602. 8009616: 409a lsls r2, r3
  21603. 8009618: 6a3b ldr r3, [r7, #32]
  21604. 800961a: 609a str r2, [r3, #8]
  21605. /* Update error code */
  21606. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  21607. 800961c: 687b ldr r3, [r7, #4]
  21608. 800961e: 6d5b ldr r3, [r3, #84] @ 0x54
  21609. 8009620: f043 0204 orr.w r2, r3, #4
  21610. 8009624: 687b ldr r3, [r7, #4]
  21611. 8009626: 655a str r2, [r3, #84] @ 0x54
  21612. }
  21613. }
  21614. /* Half Transfer Complete Interrupt management ******************************/
  21615. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21616. 8009628: 687b ldr r3, [r7, #4]
  21617. 800962a: 6ddb ldr r3, [r3, #92] @ 0x5c
  21618. 800962c: f003 031f and.w r3, r3, #31
  21619. 8009630: 2210 movs r2, #16
  21620. 8009632: 409a lsls r2, r3
  21621. 8009634: 69bb ldr r3, [r7, #24]
  21622. 8009636: 4013 ands r3, r2
  21623. 8009638: 2b00 cmp r3, #0
  21624. 800963a: f000 80a6 beq.w 800978a <HAL_DMA_IRQHandler+0x5c2>
  21625. {
  21626. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  21627. 800963e: 687b ldr r3, [r7, #4]
  21628. 8009640: 681b ldr r3, [r3, #0]
  21629. 8009642: 4a85 ldr r2, [pc, #532] @ (8009858 <HAL_DMA_IRQHandler+0x690>)
  21630. 8009644: 4293 cmp r3, r2
  21631. 8009646: d04a beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21632. 8009648: 687b ldr r3, [r7, #4]
  21633. 800964a: 681b ldr r3, [r3, #0]
  21634. 800964c: 4a83 ldr r2, [pc, #524] @ (800985c <HAL_DMA_IRQHandler+0x694>)
  21635. 800964e: 4293 cmp r3, r2
  21636. 8009650: d045 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21637. 8009652: 687b ldr r3, [r7, #4]
  21638. 8009654: 681b ldr r3, [r3, #0]
  21639. 8009656: 4a82 ldr r2, [pc, #520] @ (8009860 <HAL_DMA_IRQHandler+0x698>)
  21640. 8009658: 4293 cmp r3, r2
  21641. 800965a: d040 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21642. 800965c: 687b ldr r3, [r7, #4]
  21643. 800965e: 681b ldr r3, [r3, #0]
  21644. 8009660: 4a80 ldr r2, [pc, #512] @ (8009864 <HAL_DMA_IRQHandler+0x69c>)
  21645. 8009662: 4293 cmp r3, r2
  21646. 8009664: d03b beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21647. 8009666: 687b ldr r3, [r7, #4]
  21648. 8009668: 681b ldr r3, [r3, #0]
  21649. 800966a: 4a7f ldr r2, [pc, #508] @ (8009868 <HAL_DMA_IRQHandler+0x6a0>)
  21650. 800966c: 4293 cmp r3, r2
  21651. 800966e: d036 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21652. 8009670: 687b ldr r3, [r7, #4]
  21653. 8009672: 681b ldr r3, [r3, #0]
  21654. 8009674: 4a7d ldr r2, [pc, #500] @ (800986c <HAL_DMA_IRQHandler+0x6a4>)
  21655. 8009676: 4293 cmp r3, r2
  21656. 8009678: d031 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21657. 800967a: 687b ldr r3, [r7, #4]
  21658. 800967c: 681b ldr r3, [r3, #0]
  21659. 800967e: 4a7c ldr r2, [pc, #496] @ (8009870 <HAL_DMA_IRQHandler+0x6a8>)
  21660. 8009680: 4293 cmp r3, r2
  21661. 8009682: d02c beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21662. 8009684: 687b ldr r3, [r7, #4]
  21663. 8009686: 681b ldr r3, [r3, #0]
  21664. 8009688: 4a7a ldr r2, [pc, #488] @ (8009874 <HAL_DMA_IRQHandler+0x6ac>)
  21665. 800968a: 4293 cmp r3, r2
  21666. 800968c: d027 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21667. 800968e: 687b ldr r3, [r7, #4]
  21668. 8009690: 681b ldr r3, [r3, #0]
  21669. 8009692: 4a79 ldr r2, [pc, #484] @ (8009878 <HAL_DMA_IRQHandler+0x6b0>)
  21670. 8009694: 4293 cmp r3, r2
  21671. 8009696: d022 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21672. 8009698: 687b ldr r3, [r7, #4]
  21673. 800969a: 681b ldr r3, [r3, #0]
  21674. 800969c: 4a77 ldr r2, [pc, #476] @ (800987c <HAL_DMA_IRQHandler+0x6b4>)
  21675. 800969e: 4293 cmp r3, r2
  21676. 80096a0: d01d beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21677. 80096a2: 687b ldr r3, [r7, #4]
  21678. 80096a4: 681b ldr r3, [r3, #0]
  21679. 80096a6: 4a76 ldr r2, [pc, #472] @ (8009880 <HAL_DMA_IRQHandler+0x6b8>)
  21680. 80096a8: 4293 cmp r3, r2
  21681. 80096aa: d018 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21682. 80096ac: 687b ldr r3, [r7, #4]
  21683. 80096ae: 681b ldr r3, [r3, #0]
  21684. 80096b0: 4a74 ldr r2, [pc, #464] @ (8009884 <HAL_DMA_IRQHandler+0x6bc>)
  21685. 80096b2: 4293 cmp r3, r2
  21686. 80096b4: d013 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21687. 80096b6: 687b ldr r3, [r7, #4]
  21688. 80096b8: 681b ldr r3, [r3, #0]
  21689. 80096ba: 4a73 ldr r2, [pc, #460] @ (8009888 <HAL_DMA_IRQHandler+0x6c0>)
  21690. 80096bc: 4293 cmp r3, r2
  21691. 80096be: d00e beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21692. 80096c0: 687b ldr r3, [r7, #4]
  21693. 80096c2: 681b ldr r3, [r3, #0]
  21694. 80096c4: 4a71 ldr r2, [pc, #452] @ (800988c <HAL_DMA_IRQHandler+0x6c4>)
  21695. 80096c6: 4293 cmp r3, r2
  21696. 80096c8: d009 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21697. 80096ca: 687b ldr r3, [r7, #4]
  21698. 80096cc: 681b ldr r3, [r3, #0]
  21699. 80096ce: 4a70 ldr r2, [pc, #448] @ (8009890 <HAL_DMA_IRQHandler+0x6c8>)
  21700. 80096d0: 4293 cmp r3, r2
  21701. 80096d2: d004 beq.n 80096de <HAL_DMA_IRQHandler+0x516>
  21702. 80096d4: 687b ldr r3, [r7, #4]
  21703. 80096d6: 681b ldr r3, [r3, #0]
  21704. 80096d8: 4a6e ldr r2, [pc, #440] @ (8009894 <HAL_DMA_IRQHandler+0x6cc>)
  21705. 80096da: 4293 cmp r3, r2
  21706. 80096dc: d10a bne.n 80096f4 <HAL_DMA_IRQHandler+0x52c>
  21707. 80096de: 687b ldr r3, [r7, #4]
  21708. 80096e0: 681b ldr r3, [r3, #0]
  21709. 80096e2: 681b ldr r3, [r3, #0]
  21710. 80096e4: f003 0308 and.w r3, r3, #8
  21711. 80096e8: 2b00 cmp r3, #0
  21712. 80096ea: bf14 ite ne
  21713. 80096ec: 2301 movne r3, #1
  21714. 80096ee: 2300 moveq r3, #0
  21715. 80096f0: b2db uxtb r3, r3
  21716. 80096f2: e009 b.n 8009708 <HAL_DMA_IRQHandler+0x540>
  21717. 80096f4: 687b ldr r3, [r7, #4]
  21718. 80096f6: 681b ldr r3, [r3, #0]
  21719. 80096f8: 681b ldr r3, [r3, #0]
  21720. 80096fa: f003 0304 and.w r3, r3, #4
  21721. 80096fe: 2b00 cmp r3, #0
  21722. 8009700: bf14 ite ne
  21723. 8009702: 2301 movne r3, #1
  21724. 8009704: 2300 moveq r3, #0
  21725. 8009706: b2db uxtb r3, r3
  21726. 8009708: 2b00 cmp r3, #0
  21727. 800970a: d03e beq.n 800978a <HAL_DMA_IRQHandler+0x5c2>
  21728. {
  21729. /* Clear the half transfer complete flag */
  21730. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  21731. 800970c: 687b ldr r3, [r7, #4]
  21732. 800970e: 6ddb ldr r3, [r3, #92] @ 0x5c
  21733. 8009710: f003 031f and.w r3, r3, #31
  21734. 8009714: 2210 movs r2, #16
  21735. 8009716: 409a lsls r2, r3
  21736. 8009718: 6a3b ldr r3, [r7, #32]
  21737. 800971a: 609a str r2, [r3, #8]
  21738. /* Multi_Buffering mode enabled */
  21739. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  21740. 800971c: 687b ldr r3, [r7, #4]
  21741. 800971e: 681b ldr r3, [r3, #0]
  21742. 8009720: 681b ldr r3, [r3, #0]
  21743. 8009722: f403 2380 and.w r3, r3, #262144 @ 0x40000
  21744. 8009726: 2b00 cmp r3, #0
  21745. 8009728: d018 beq.n 800975c <HAL_DMA_IRQHandler+0x594>
  21746. {
  21747. /* Current memory buffer used is Memory 0 */
  21748. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  21749. 800972a: 687b ldr r3, [r7, #4]
  21750. 800972c: 681b ldr r3, [r3, #0]
  21751. 800972e: 681b ldr r3, [r3, #0]
  21752. 8009730: f403 2300 and.w r3, r3, #524288 @ 0x80000
  21753. 8009734: 2b00 cmp r3, #0
  21754. 8009736: d108 bne.n 800974a <HAL_DMA_IRQHandler+0x582>
  21755. {
  21756. if(hdma->XferHalfCpltCallback != NULL)
  21757. 8009738: 687b ldr r3, [r7, #4]
  21758. 800973a: 6c1b ldr r3, [r3, #64] @ 0x40
  21759. 800973c: 2b00 cmp r3, #0
  21760. 800973e: d024 beq.n 800978a <HAL_DMA_IRQHandler+0x5c2>
  21761. {
  21762. /* Half transfer callback */
  21763. hdma->XferHalfCpltCallback(hdma);
  21764. 8009740: 687b ldr r3, [r7, #4]
  21765. 8009742: 6c1b ldr r3, [r3, #64] @ 0x40
  21766. 8009744: 6878 ldr r0, [r7, #4]
  21767. 8009746: 4798 blx r3
  21768. 8009748: e01f b.n 800978a <HAL_DMA_IRQHandler+0x5c2>
  21769. }
  21770. }
  21771. /* Current memory buffer used is Memory 1 */
  21772. else
  21773. {
  21774. if(hdma->XferM1HalfCpltCallback != NULL)
  21775. 800974a: 687b ldr r3, [r7, #4]
  21776. 800974c: 6c9b ldr r3, [r3, #72] @ 0x48
  21777. 800974e: 2b00 cmp r3, #0
  21778. 8009750: d01b beq.n 800978a <HAL_DMA_IRQHandler+0x5c2>
  21779. {
  21780. /* Half transfer callback */
  21781. hdma->XferM1HalfCpltCallback(hdma);
  21782. 8009752: 687b ldr r3, [r7, #4]
  21783. 8009754: 6c9b ldr r3, [r3, #72] @ 0x48
  21784. 8009756: 6878 ldr r0, [r7, #4]
  21785. 8009758: 4798 blx r3
  21786. 800975a: e016 b.n 800978a <HAL_DMA_IRQHandler+0x5c2>
  21787. }
  21788. }
  21789. else
  21790. {
  21791. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  21792. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  21793. 800975c: 687b ldr r3, [r7, #4]
  21794. 800975e: 681b ldr r3, [r3, #0]
  21795. 8009760: 681b ldr r3, [r3, #0]
  21796. 8009762: f403 7380 and.w r3, r3, #256 @ 0x100
  21797. 8009766: 2b00 cmp r3, #0
  21798. 8009768: d107 bne.n 800977a <HAL_DMA_IRQHandler+0x5b2>
  21799. {
  21800. /* Disable the half transfer interrupt */
  21801. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  21802. 800976a: 687b ldr r3, [r7, #4]
  21803. 800976c: 681b ldr r3, [r3, #0]
  21804. 800976e: 681a ldr r2, [r3, #0]
  21805. 8009770: 687b ldr r3, [r7, #4]
  21806. 8009772: 681b ldr r3, [r3, #0]
  21807. 8009774: f022 0208 bic.w r2, r2, #8
  21808. 8009778: 601a str r2, [r3, #0]
  21809. }
  21810. if(hdma->XferHalfCpltCallback != NULL)
  21811. 800977a: 687b ldr r3, [r7, #4]
  21812. 800977c: 6c1b ldr r3, [r3, #64] @ 0x40
  21813. 800977e: 2b00 cmp r3, #0
  21814. 8009780: d003 beq.n 800978a <HAL_DMA_IRQHandler+0x5c2>
  21815. {
  21816. /* Half transfer callback */
  21817. hdma->XferHalfCpltCallback(hdma);
  21818. 8009782: 687b ldr r3, [r7, #4]
  21819. 8009784: 6c1b ldr r3, [r3, #64] @ 0x40
  21820. 8009786: 6878 ldr r0, [r7, #4]
  21821. 8009788: 4798 blx r3
  21822. }
  21823. }
  21824. }
  21825. }
  21826. /* Transfer Complete Interrupt management ***********************************/
  21827. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21828. 800978a: 687b ldr r3, [r7, #4]
  21829. 800978c: 6ddb ldr r3, [r3, #92] @ 0x5c
  21830. 800978e: f003 031f and.w r3, r3, #31
  21831. 8009792: 2220 movs r2, #32
  21832. 8009794: 409a lsls r2, r3
  21833. 8009796: 69bb ldr r3, [r7, #24]
  21834. 8009798: 4013 ands r3, r2
  21835. 800979a: 2b00 cmp r3, #0
  21836. 800979c: f000 8110 beq.w 80099c0 <HAL_DMA_IRQHandler+0x7f8>
  21837. {
  21838. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  21839. 80097a0: 687b ldr r3, [r7, #4]
  21840. 80097a2: 681b ldr r3, [r3, #0]
  21841. 80097a4: 4a2c ldr r2, [pc, #176] @ (8009858 <HAL_DMA_IRQHandler+0x690>)
  21842. 80097a6: 4293 cmp r3, r2
  21843. 80097a8: d04a beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21844. 80097aa: 687b ldr r3, [r7, #4]
  21845. 80097ac: 681b ldr r3, [r3, #0]
  21846. 80097ae: 4a2b ldr r2, [pc, #172] @ (800985c <HAL_DMA_IRQHandler+0x694>)
  21847. 80097b0: 4293 cmp r3, r2
  21848. 80097b2: d045 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21849. 80097b4: 687b ldr r3, [r7, #4]
  21850. 80097b6: 681b ldr r3, [r3, #0]
  21851. 80097b8: 4a29 ldr r2, [pc, #164] @ (8009860 <HAL_DMA_IRQHandler+0x698>)
  21852. 80097ba: 4293 cmp r3, r2
  21853. 80097bc: d040 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21854. 80097be: 687b ldr r3, [r7, #4]
  21855. 80097c0: 681b ldr r3, [r3, #0]
  21856. 80097c2: 4a28 ldr r2, [pc, #160] @ (8009864 <HAL_DMA_IRQHandler+0x69c>)
  21857. 80097c4: 4293 cmp r3, r2
  21858. 80097c6: d03b beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21859. 80097c8: 687b ldr r3, [r7, #4]
  21860. 80097ca: 681b ldr r3, [r3, #0]
  21861. 80097cc: 4a26 ldr r2, [pc, #152] @ (8009868 <HAL_DMA_IRQHandler+0x6a0>)
  21862. 80097ce: 4293 cmp r3, r2
  21863. 80097d0: d036 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21864. 80097d2: 687b ldr r3, [r7, #4]
  21865. 80097d4: 681b ldr r3, [r3, #0]
  21866. 80097d6: 4a25 ldr r2, [pc, #148] @ (800986c <HAL_DMA_IRQHandler+0x6a4>)
  21867. 80097d8: 4293 cmp r3, r2
  21868. 80097da: d031 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21869. 80097dc: 687b ldr r3, [r7, #4]
  21870. 80097de: 681b ldr r3, [r3, #0]
  21871. 80097e0: 4a23 ldr r2, [pc, #140] @ (8009870 <HAL_DMA_IRQHandler+0x6a8>)
  21872. 80097e2: 4293 cmp r3, r2
  21873. 80097e4: d02c beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21874. 80097e6: 687b ldr r3, [r7, #4]
  21875. 80097e8: 681b ldr r3, [r3, #0]
  21876. 80097ea: 4a22 ldr r2, [pc, #136] @ (8009874 <HAL_DMA_IRQHandler+0x6ac>)
  21877. 80097ec: 4293 cmp r3, r2
  21878. 80097ee: d027 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21879. 80097f0: 687b ldr r3, [r7, #4]
  21880. 80097f2: 681b ldr r3, [r3, #0]
  21881. 80097f4: 4a20 ldr r2, [pc, #128] @ (8009878 <HAL_DMA_IRQHandler+0x6b0>)
  21882. 80097f6: 4293 cmp r3, r2
  21883. 80097f8: d022 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21884. 80097fa: 687b ldr r3, [r7, #4]
  21885. 80097fc: 681b ldr r3, [r3, #0]
  21886. 80097fe: 4a1f ldr r2, [pc, #124] @ (800987c <HAL_DMA_IRQHandler+0x6b4>)
  21887. 8009800: 4293 cmp r3, r2
  21888. 8009802: d01d beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21889. 8009804: 687b ldr r3, [r7, #4]
  21890. 8009806: 681b ldr r3, [r3, #0]
  21891. 8009808: 4a1d ldr r2, [pc, #116] @ (8009880 <HAL_DMA_IRQHandler+0x6b8>)
  21892. 800980a: 4293 cmp r3, r2
  21893. 800980c: d018 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21894. 800980e: 687b ldr r3, [r7, #4]
  21895. 8009810: 681b ldr r3, [r3, #0]
  21896. 8009812: 4a1c ldr r2, [pc, #112] @ (8009884 <HAL_DMA_IRQHandler+0x6bc>)
  21897. 8009814: 4293 cmp r3, r2
  21898. 8009816: d013 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21899. 8009818: 687b ldr r3, [r7, #4]
  21900. 800981a: 681b ldr r3, [r3, #0]
  21901. 800981c: 4a1a ldr r2, [pc, #104] @ (8009888 <HAL_DMA_IRQHandler+0x6c0>)
  21902. 800981e: 4293 cmp r3, r2
  21903. 8009820: d00e beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21904. 8009822: 687b ldr r3, [r7, #4]
  21905. 8009824: 681b ldr r3, [r3, #0]
  21906. 8009826: 4a19 ldr r2, [pc, #100] @ (800988c <HAL_DMA_IRQHandler+0x6c4>)
  21907. 8009828: 4293 cmp r3, r2
  21908. 800982a: d009 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21909. 800982c: 687b ldr r3, [r7, #4]
  21910. 800982e: 681b ldr r3, [r3, #0]
  21911. 8009830: 4a17 ldr r2, [pc, #92] @ (8009890 <HAL_DMA_IRQHandler+0x6c8>)
  21912. 8009832: 4293 cmp r3, r2
  21913. 8009834: d004 beq.n 8009840 <HAL_DMA_IRQHandler+0x678>
  21914. 8009836: 687b ldr r3, [r7, #4]
  21915. 8009838: 681b ldr r3, [r3, #0]
  21916. 800983a: 4a16 ldr r2, [pc, #88] @ (8009894 <HAL_DMA_IRQHandler+0x6cc>)
  21917. 800983c: 4293 cmp r3, r2
  21918. 800983e: d12b bne.n 8009898 <HAL_DMA_IRQHandler+0x6d0>
  21919. 8009840: 687b ldr r3, [r7, #4]
  21920. 8009842: 681b ldr r3, [r3, #0]
  21921. 8009844: 681b ldr r3, [r3, #0]
  21922. 8009846: f003 0310 and.w r3, r3, #16
  21923. 800984a: 2b00 cmp r3, #0
  21924. 800984c: bf14 ite ne
  21925. 800984e: 2301 movne r3, #1
  21926. 8009850: 2300 moveq r3, #0
  21927. 8009852: b2db uxtb r3, r3
  21928. 8009854: e02a b.n 80098ac <HAL_DMA_IRQHandler+0x6e4>
  21929. 8009856: bf00 nop
  21930. 8009858: 40020010 .word 0x40020010
  21931. 800985c: 40020028 .word 0x40020028
  21932. 8009860: 40020040 .word 0x40020040
  21933. 8009864: 40020058 .word 0x40020058
  21934. 8009868: 40020070 .word 0x40020070
  21935. 800986c: 40020088 .word 0x40020088
  21936. 8009870: 400200a0 .word 0x400200a0
  21937. 8009874: 400200b8 .word 0x400200b8
  21938. 8009878: 40020410 .word 0x40020410
  21939. 800987c: 40020428 .word 0x40020428
  21940. 8009880: 40020440 .word 0x40020440
  21941. 8009884: 40020458 .word 0x40020458
  21942. 8009888: 40020470 .word 0x40020470
  21943. 800988c: 40020488 .word 0x40020488
  21944. 8009890: 400204a0 .word 0x400204a0
  21945. 8009894: 400204b8 .word 0x400204b8
  21946. 8009898: 687b ldr r3, [r7, #4]
  21947. 800989a: 681b ldr r3, [r3, #0]
  21948. 800989c: 681b ldr r3, [r3, #0]
  21949. 800989e: f003 0302 and.w r3, r3, #2
  21950. 80098a2: 2b00 cmp r3, #0
  21951. 80098a4: bf14 ite ne
  21952. 80098a6: 2301 movne r3, #1
  21953. 80098a8: 2300 moveq r3, #0
  21954. 80098aa: b2db uxtb r3, r3
  21955. 80098ac: 2b00 cmp r3, #0
  21956. 80098ae: f000 8087 beq.w 80099c0 <HAL_DMA_IRQHandler+0x7f8>
  21957. {
  21958. /* Clear the transfer complete flag */
  21959. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  21960. 80098b2: 687b ldr r3, [r7, #4]
  21961. 80098b4: 6ddb ldr r3, [r3, #92] @ 0x5c
  21962. 80098b6: f003 031f and.w r3, r3, #31
  21963. 80098ba: 2220 movs r2, #32
  21964. 80098bc: 409a lsls r2, r3
  21965. 80098be: 6a3b ldr r3, [r7, #32]
  21966. 80098c0: 609a str r2, [r3, #8]
  21967. if(HAL_DMA_STATE_ABORT == hdma->State)
  21968. 80098c2: 687b ldr r3, [r7, #4]
  21969. 80098c4: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  21970. 80098c8: b2db uxtb r3, r3
  21971. 80098ca: 2b04 cmp r3, #4
  21972. 80098cc: d139 bne.n 8009942 <HAL_DMA_IRQHandler+0x77a>
  21973. {
  21974. /* Disable all the transfer interrupts */
  21975. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  21976. 80098ce: 687b ldr r3, [r7, #4]
  21977. 80098d0: 681b ldr r3, [r3, #0]
  21978. 80098d2: 681a ldr r2, [r3, #0]
  21979. 80098d4: 687b ldr r3, [r7, #4]
  21980. 80098d6: 681b ldr r3, [r3, #0]
  21981. 80098d8: f022 0216 bic.w r2, r2, #22
  21982. 80098dc: 601a str r2, [r3, #0]
  21983. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  21984. 80098de: 687b ldr r3, [r7, #4]
  21985. 80098e0: 681b ldr r3, [r3, #0]
  21986. 80098e2: 695a ldr r2, [r3, #20]
  21987. 80098e4: 687b ldr r3, [r7, #4]
  21988. 80098e6: 681b ldr r3, [r3, #0]
  21989. 80098e8: f022 0280 bic.w r2, r2, #128 @ 0x80
  21990. 80098ec: 615a str r2, [r3, #20]
  21991. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  21992. 80098ee: 687b ldr r3, [r7, #4]
  21993. 80098f0: 6c1b ldr r3, [r3, #64] @ 0x40
  21994. 80098f2: 2b00 cmp r3, #0
  21995. 80098f4: d103 bne.n 80098fe <HAL_DMA_IRQHandler+0x736>
  21996. 80098f6: 687b ldr r3, [r7, #4]
  21997. 80098f8: 6c9b ldr r3, [r3, #72] @ 0x48
  21998. 80098fa: 2b00 cmp r3, #0
  21999. 80098fc: d007 beq.n 800990e <HAL_DMA_IRQHandler+0x746>
  22000. {
  22001. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  22002. 80098fe: 687b ldr r3, [r7, #4]
  22003. 8009900: 681b ldr r3, [r3, #0]
  22004. 8009902: 681a ldr r2, [r3, #0]
  22005. 8009904: 687b ldr r3, [r7, #4]
  22006. 8009906: 681b ldr r3, [r3, #0]
  22007. 8009908: f022 0208 bic.w r2, r2, #8
  22008. 800990c: 601a str r2, [r3, #0]
  22009. }
  22010. /* Clear all interrupt flags at correct offset within the register */
  22011. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  22012. 800990e: 687b ldr r3, [r7, #4]
  22013. 8009910: 6ddb ldr r3, [r3, #92] @ 0x5c
  22014. 8009912: f003 031f and.w r3, r3, #31
  22015. 8009916: 223f movs r2, #63 @ 0x3f
  22016. 8009918: 409a lsls r2, r3
  22017. 800991a: 6a3b ldr r3, [r7, #32]
  22018. 800991c: 609a str r2, [r3, #8]
  22019. /* Change the DMA state */
  22020. hdma->State = HAL_DMA_STATE_READY;
  22021. 800991e: 687b ldr r3, [r7, #4]
  22022. 8009920: 2201 movs r2, #1
  22023. 8009922: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22024. /* Process Unlocked */
  22025. __HAL_UNLOCK(hdma);
  22026. 8009926: 687b ldr r3, [r7, #4]
  22027. 8009928: 2200 movs r2, #0
  22028. 800992a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22029. if(hdma->XferAbortCallback != NULL)
  22030. 800992e: 687b ldr r3, [r7, #4]
  22031. 8009930: 6d1b ldr r3, [r3, #80] @ 0x50
  22032. 8009932: 2b00 cmp r3, #0
  22033. 8009934: f000 834a beq.w 8009fcc <HAL_DMA_IRQHandler+0xe04>
  22034. {
  22035. hdma->XferAbortCallback(hdma);
  22036. 8009938: 687b ldr r3, [r7, #4]
  22037. 800993a: 6d1b ldr r3, [r3, #80] @ 0x50
  22038. 800993c: 6878 ldr r0, [r7, #4]
  22039. 800993e: 4798 blx r3
  22040. }
  22041. return;
  22042. 8009940: e344 b.n 8009fcc <HAL_DMA_IRQHandler+0xe04>
  22043. }
  22044. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  22045. 8009942: 687b ldr r3, [r7, #4]
  22046. 8009944: 681b ldr r3, [r3, #0]
  22047. 8009946: 681b ldr r3, [r3, #0]
  22048. 8009948: f403 2380 and.w r3, r3, #262144 @ 0x40000
  22049. 800994c: 2b00 cmp r3, #0
  22050. 800994e: d018 beq.n 8009982 <HAL_DMA_IRQHandler+0x7ba>
  22051. {
  22052. /* Current memory buffer used is Memory 0 */
  22053. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  22054. 8009950: 687b ldr r3, [r7, #4]
  22055. 8009952: 681b ldr r3, [r3, #0]
  22056. 8009954: 681b ldr r3, [r3, #0]
  22057. 8009956: f403 2300 and.w r3, r3, #524288 @ 0x80000
  22058. 800995a: 2b00 cmp r3, #0
  22059. 800995c: d108 bne.n 8009970 <HAL_DMA_IRQHandler+0x7a8>
  22060. {
  22061. if(hdma->XferM1CpltCallback != NULL)
  22062. 800995e: 687b ldr r3, [r7, #4]
  22063. 8009960: 6c5b ldr r3, [r3, #68] @ 0x44
  22064. 8009962: 2b00 cmp r3, #0
  22065. 8009964: d02c beq.n 80099c0 <HAL_DMA_IRQHandler+0x7f8>
  22066. {
  22067. /* Transfer complete Callback for memory1 */
  22068. hdma->XferM1CpltCallback(hdma);
  22069. 8009966: 687b ldr r3, [r7, #4]
  22070. 8009968: 6c5b ldr r3, [r3, #68] @ 0x44
  22071. 800996a: 6878 ldr r0, [r7, #4]
  22072. 800996c: 4798 blx r3
  22073. 800996e: e027 b.n 80099c0 <HAL_DMA_IRQHandler+0x7f8>
  22074. }
  22075. }
  22076. /* Current memory buffer used is Memory 1 */
  22077. else
  22078. {
  22079. if(hdma->XferCpltCallback != NULL)
  22080. 8009970: 687b ldr r3, [r7, #4]
  22081. 8009972: 6bdb ldr r3, [r3, #60] @ 0x3c
  22082. 8009974: 2b00 cmp r3, #0
  22083. 8009976: d023 beq.n 80099c0 <HAL_DMA_IRQHandler+0x7f8>
  22084. {
  22085. /* Transfer complete Callback for memory0 */
  22086. hdma->XferCpltCallback(hdma);
  22087. 8009978: 687b ldr r3, [r7, #4]
  22088. 800997a: 6bdb ldr r3, [r3, #60] @ 0x3c
  22089. 800997c: 6878 ldr r0, [r7, #4]
  22090. 800997e: 4798 blx r3
  22091. 8009980: e01e b.n 80099c0 <HAL_DMA_IRQHandler+0x7f8>
  22092. }
  22093. }
  22094. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  22095. else
  22096. {
  22097. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  22098. 8009982: 687b ldr r3, [r7, #4]
  22099. 8009984: 681b ldr r3, [r3, #0]
  22100. 8009986: 681b ldr r3, [r3, #0]
  22101. 8009988: f403 7380 and.w r3, r3, #256 @ 0x100
  22102. 800998c: 2b00 cmp r3, #0
  22103. 800998e: d10f bne.n 80099b0 <HAL_DMA_IRQHandler+0x7e8>
  22104. {
  22105. /* Disable the transfer complete interrupt */
  22106. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  22107. 8009990: 687b ldr r3, [r7, #4]
  22108. 8009992: 681b ldr r3, [r3, #0]
  22109. 8009994: 681a ldr r2, [r3, #0]
  22110. 8009996: 687b ldr r3, [r7, #4]
  22111. 8009998: 681b ldr r3, [r3, #0]
  22112. 800999a: f022 0210 bic.w r2, r2, #16
  22113. 800999e: 601a str r2, [r3, #0]
  22114. /* Change the DMA state */
  22115. hdma->State = HAL_DMA_STATE_READY;
  22116. 80099a0: 687b ldr r3, [r7, #4]
  22117. 80099a2: 2201 movs r2, #1
  22118. 80099a4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22119. /* Process Unlocked */
  22120. __HAL_UNLOCK(hdma);
  22121. 80099a8: 687b ldr r3, [r7, #4]
  22122. 80099aa: 2200 movs r2, #0
  22123. 80099ac: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22124. }
  22125. if(hdma->XferCpltCallback != NULL)
  22126. 80099b0: 687b ldr r3, [r7, #4]
  22127. 80099b2: 6bdb ldr r3, [r3, #60] @ 0x3c
  22128. 80099b4: 2b00 cmp r3, #0
  22129. 80099b6: d003 beq.n 80099c0 <HAL_DMA_IRQHandler+0x7f8>
  22130. {
  22131. /* Transfer complete callback */
  22132. hdma->XferCpltCallback(hdma);
  22133. 80099b8: 687b ldr r3, [r7, #4]
  22134. 80099ba: 6bdb ldr r3, [r3, #60] @ 0x3c
  22135. 80099bc: 6878 ldr r0, [r7, #4]
  22136. 80099be: 4798 blx r3
  22137. }
  22138. }
  22139. }
  22140. /* manage error case */
  22141. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  22142. 80099c0: 687b ldr r3, [r7, #4]
  22143. 80099c2: 6d5b ldr r3, [r3, #84] @ 0x54
  22144. 80099c4: 2b00 cmp r3, #0
  22145. 80099c6: f000 8306 beq.w 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22146. {
  22147. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  22148. 80099ca: 687b ldr r3, [r7, #4]
  22149. 80099cc: 6d5b ldr r3, [r3, #84] @ 0x54
  22150. 80099ce: f003 0301 and.w r3, r3, #1
  22151. 80099d2: 2b00 cmp r3, #0
  22152. 80099d4: f000 8088 beq.w 8009ae8 <HAL_DMA_IRQHandler+0x920>
  22153. {
  22154. hdma->State = HAL_DMA_STATE_ABORT;
  22155. 80099d8: 687b ldr r3, [r7, #4]
  22156. 80099da: 2204 movs r2, #4
  22157. 80099dc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22158. /* Disable the stream */
  22159. __HAL_DMA_DISABLE(hdma);
  22160. 80099e0: 687b ldr r3, [r7, #4]
  22161. 80099e2: 681b ldr r3, [r3, #0]
  22162. 80099e4: 4a7a ldr r2, [pc, #488] @ (8009bd0 <HAL_DMA_IRQHandler+0xa08>)
  22163. 80099e6: 4293 cmp r3, r2
  22164. 80099e8: d04a beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22165. 80099ea: 687b ldr r3, [r7, #4]
  22166. 80099ec: 681b ldr r3, [r3, #0]
  22167. 80099ee: 4a79 ldr r2, [pc, #484] @ (8009bd4 <HAL_DMA_IRQHandler+0xa0c>)
  22168. 80099f0: 4293 cmp r3, r2
  22169. 80099f2: d045 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22170. 80099f4: 687b ldr r3, [r7, #4]
  22171. 80099f6: 681b ldr r3, [r3, #0]
  22172. 80099f8: 4a77 ldr r2, [pc, #476] @ (8009bd8 <HAL_DMA_IRQHandler+0xa10>)
  22173. 80099fa: 4293 cmp r3, r2
  22174. 80099fc: d040 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22175. 80099fe: 687b ldr r3, [r7, #4]
  22176. 8009a00: 681b ldr r3, [r3, #0]
  22177. 8009a02: 4a76 ldr r2, [pc, #472] @ (8009bdc <HAL_DMA_IRQHandler+0xa14>)
  22178. 8009a04: 4293 cmp r3, r2
  22179. 8009a06: d03b beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22180. 8009a08: 687b ldr r3, [r7, #4]
  22181. 8009a0a: 681b ldr r3, [r3, #0]
  22182. 8009a0c: 4a74 ldr r2, [pc, #464] @ (8009be0 <HAL_DMA_IRQHandler+0xa18>)
  22183. 8009a0e: 4293 cmp r3, r2
  22184. 8009a10: d036 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22185. 8009a12: 687b ldr r3, [r7, #4]
  22186. 8009a14: 681b ldr r3, [r3, #0]
  22187. 8009a16: 4a73 ldr r2, [pc, #460] @ (8009be4 <HAL_DMA_IRQHandler+0xa1c>)
  22188. 8009a18: 4293 cmp r3, r2
  22189. 8009a1a: d031 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22190. 8009a1c: 687b ldr r3, [r7, #4]
  22191. 8009a1e: 681b ldr r3, [r3, #0]
  22192. 8009a20: 4a71 ldr r2, [pc, #452] @ (8009be8 <HAL_DMA_IRQHandler+0xa20>)
  22193. 8009a22: 4293 cmp r3, r2
  22194. 8009a24: d02c beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22195. 8009a26: 687b ldr r3, [r7, #4]
  22196. 8009a28: 681b ldr r3, [r3, #0]
  22197. 8009a2a: 4a70 ldr r2, [pc, #448] @ (8009bec <HAL_DMA_IRQHandler+0xa24>)
  22198. 8009a2c: 4293 cmp r3, r2
  22199. 8009a2e: d027 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22200. 8009a30: 687b ldr r3, [r7, #4]
  22201. 8009a32: 681b ldr r3, [r3, #0]
  22202. 8009a34: 4a6e ldr r2, [pc, #440] @ (8009bf0 <HAL_DMA_IRQHandler+0xa28>)
  22203. 8009a36: 4293 cmp r3, r2
  22204. 8009a38: d022 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22205. 8009a3a: 687b ldr r3, [r7, #4]
  22206. 8009a3c: 681b ldr r3, [r3, #0]
  22207. 8009a3e: 4a6d ldr r2, [pc, #436] @ (8009bf4 <HAL_DMA_IRQHandler+0xa2c>)
  22208. 8009a40: 4293 cmp r3, r2
  22209. 8009a42: d01d beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22210. 8009a44: 687b ldr r3, [r7, #4]
  22211. 8009a46: 681b ldr r3, [r3, #0]
  22212. 8009a48: 4a6b ldr r2, [pc, #428] @ (8009bf8 <HAL_DMA_IRQHandler+0xa30>)
  22213. 8009a4a: 4293 cmp r3, r2
  22214. 8009a4c: d018 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22215. 8009a4e: 687b ldr r3, [r7, #4]
  22216. 8009a50: 681b ldr r3, [r3, #0]
  22217. 8009a52: 4a6a ldr r2, [pc, #424] @ (8009bfc <HAL_DMA_IRQHandler+0xa34>)
  22218. 8009a54: 4293 cmp r3, r2
  22219. 8009a56: d013 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22220. 8009a58: 687b ldr r3, [r7, #4]
  22221. 8009a5a: 681b ldr r3, [r3, #0]
  22222. 8009a5c: 4a68 ldr r2, [pc, #416] @ (8009c00 <HAL_DMA_IRQHandler+0xa38>)
  22223. 8009a5e: 4293 cmp r3, r2
  22224. 8009a60: d00e beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22225. 8009a62: 687b ldr r3, [r7, #4]
  22226. 8009a64: 681b ldr r3, [r3, #0]
  22227. 8009a66: 4a67 ldr r2, [pc, #412] @ (8009c04 <HAL_DMA_IRQHandler+0xa3c>)
  22228. 8009a68: 4293 cmp r3, r2
  22229. 8009a6a: d009 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22230. 8009a6c: 687b ldr r3, [r7, #4]
  22231. 8009a6e: 681b ldr r3, [r3, #0]
  22232. 8009a70: 4a65 ldr r2, [pc, #404] @ (8009c08 <HAL_DMA_IRQHandler+0xa40>)
  22233. 8009a72: 4293 cmp r3, r2
  22234. 8009a74: d004 beq.n 8009a80 <HAL_DMA_IRQHandler+0x8b8>
  22235. 8009a76: 687b ldr r3, [r7, #4]
  22236. 8009a78: 681b ldr r3, [r3, #0]
  22237. 8009a7a: 4a64 ldr r2, [pc, #400] @ (8009c0c <HAL_DMA_IRQHandler+0xa44>)
  22238. 8009a7c: 4293 cmp r3, r2
  22239. 8009a7e: d108 bne.n 8009a92 <HAL_DMA_IRQHandler+0x8ca>
  22240. 8009a80: 687b ldr r3, [r7, #4]
  22241. 8009a82: 681b ldr r3, [r3, #0]
  22242. 8009a84: 681a ldr r2, [r3, #0]
  22243. 8009a86: 687b ldr r3, [r7, #4]
  22244. 8009a88: 681b ldr r3, [r3, #0]
  22245. 8009a8a: f022 0201 bic.w r2, r2, #1
  22246. 8009a8e: 601a str r2, [r3, #0]
  22247. 8009a90: e007 b.n 8009aa2 <HAL_DMA_IRQHandler+0x8da>
  22248. 8009a92: 687b ldr r3, [r7, #4]
  22249. 8009a94: 681b ldr r3, [r3, #0]
  22250. 8009a96: 681a ldr r2, [r3, #0]
  22251. 8009a98: 687b ldr r3, [r7, #4]
  22252. 8009a9a: 681b ldr r3, [r3, #0]
  22253. 8009a9c: f022 0201 bic.w r2, r2, #1
  22254. 8009aa0: 601a str r2, [r3, #0]
  22255. do
  22256. {
  22257. if (++count > timeout)
  22258. 8009aa2: 68fb ldr r3, [r7, #12]
  22259. 8009aa4: 3301 adds r3, #1
  22260. 8009aa6: 60fb str r3, [r7, #12]
  22261. 8009aa8: 6a7a ldr r2, [r7, #36] @ 0x24
  22262. 8009aaa: 429a cmp r2, r3
  22263. 8009aac: d307 bcc.n 8009abe <HAL_DMA_IRQHandler+0x8f6>
  22264. {
  22265. break;
  22266. }
  22267. }
  22268. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  22269. 8009aae: 687b ldr r3, [r7, #4]
  22270. 8009ab0: 681b ldr r3, [r3, #0]
  22271. 8009ab2: 681b ldr r3, [r3, #0]
  22272. 8009ab4: f003 0301 and.w r3, r3, #1
  22273. 8009ab8: 2b00 cmp r3, #0
  22274. 8009aba: d1f2 bne.n 8009aa2 <HAL_DMA_IRQHandler+0x8da>
  22275. 8009abc: e000 b.n 8009ac0 <HAL_DMA_IRQHandler+0x8f8>
  22276. break;
  22277. 8009abe: bf00 nop
  22278. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  22279. 8009ac0: 687b ldr r3, [r7, #4]
  22280. 8009ac2: 681b ldr r3, [r3, #0]
  22281. 8009ac4: 681b ldr r3, [r3, #0]
  22282. 8009ac6: f003 0301 and.w r3, r3, #1
  22283. 8009aca: 2b00 cmp r3, #0
  22284. 8009acc: d004 beq.n 8009ad8 <HAL_DMA_IRQHandler+0x910>
  22285. {
  22286. /* Change the DMA state to error if DMA disable fails */
  22287. hdma->State = HAL_DMA_STATE_ERROR;
  22288. 8009ace: 687b ldr r3, [r7, #4]
  22289. 8009ad0: 2203 movs r2, #3
  22290. 8009ad2: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22291. 8009ad6: e003 b.n 8009ae0 <HAL_DMA_IRQHandler+0x918>
  22292. }
  22293. else
  22294. {
  22295. /* Change the DMA state to Ready if DMA disable success */
  22296. hdma->State = HAL_DMA_STATE_READY;
  22297. 8009ad8: 687b ldr r3, [r7, #4]
  22298. 8009ada: 2201 movs r2, #1
  22299. 8009adc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22300. }
  22301. /* Process Unlocked */
  22302. __HAL_UNLOCK(hdma);
  22303. 8009ae0: 687b ldr r3, [r7, #4]
  22304. 8009ae2: 2200 movs r2, #0
  22305. 8009ae4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22306. }
  22307. if(hdma->XferErrorCallback != NULL)
  22308. 8009ae8: 687b ldr r3, [r7, #4]
  22309. 8009aea: 6cdb ldr r3, [r3, #76] @ 0x4c
  22310. 8009aec: 2b00 cmp r3, #0
  22311. 8009aee: f000 8272 beq.w 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22312. {
  22313. /* Transfer error callback */
  22314. hdma->XferErrorCallback(hdma);
  22315. 8009af2: 687b ldr r3, [r7, #4]
  22316. 8009af4: 6cdb ldr r3, [r3, #76] @ 0x4c
  22317. 8009af6: 6878 ldr r0, [r7, #4]
  22318. 8009af8: 4798 blx r3
  22319. 8009afa: e26c b.n 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22320. }
  22321. }
  22322. }
  22323. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  22324. 8009afc: 687b ldr r3, [r7, #4]
  22325. 8009afe: 681b ldr r3, [r3, #0]
  22326. 8009b00: 4a43 ldr r2, [pc, #268] @ (8009c10 <HAL_DMA_IRQHandler+0xa48>)
  22327. 8009b02: 4293 cmp r3, r2
  22328. 8009b04: d022 beq.n 8009b4c <HAL_DMA_IRQHandler+0x984>
  22329. 8009b06: 687b ldr r3, [r7, #4]
  22330. 8009b08: 681b ldr r3, [r3, #0]
  22331. 8009b0a: 4a42 ldr r2, [pc, #264] @ (8009c14 <HAL_DMA_IRQHandler+0xa4c>)
  22332. 8009b0c: 4293 cmp r3, r2
  22333. 8009b0e: d01d beq.n 8009b4c <HAL_DMA_IRQHandler+0x984>
  22334. 8009b10: 687b ldr r3, [r7, #4]
  22335. 8009b12: 681b ldr r3, [r3, #0]
  22336. 8009b14: 4a40 ldr r2, [pc, #256] @ (8009c18 <HAL_DMA_IRQHandler+0xa50>)
  22337. 8009b16: 4293 cmp r3, r2
  22338. 8009b18: d018 beq.n 8009b4c <HAL_DMA_IRQHandler+0x984>
  22339. 8009b1a: 687b ldr r3, [r7, #4]
  22340. 8009b1c: 681b ldr r3, [r3, #0]
  22341. 8009b1e: 4a3f ldr r2, [pc, #252] @ (8009c1c <HAL_DMA_IRQHandler+0xa54>)
  22342. 8009b20: 4293 cmp r3, r2
  22343. 8009b22: d013 beq.n 8009b4c <HAL_DMA_IRQHandler+0x984>
  22344. 8009b24: 687b ldr r3, [r7, #4]
  22345. 8009b26: 681b ldr r3, [r3, #0]
  22346. 8009b28: 4a3d ldr r2, [pc, #244] @ (8009c20 <HAL_DMA_IRQHandler+0xa58>)
  22347. 8009b2a: 4293 cmp r3, r2
  22348. 8009b2c: d00e beq.n 8009b4c <HAL_DMA_IRQHandler+0x984>
  22349. 8009b2e: 687b ldr r3, [r7, #4]
  22350. 8009b30: 681b ldr r3, [r3, #0]
  22351. 8009b32: 4a3c ldr r2, [pc, #240] @ (8009c24 <HAL_DMA_IRQHandler+0xa5c>)
  22352. 8009b34: 4293 cmp r3, r2
  22353. 8009b36: d009 beq.n 8009b4c <HAL_DMA_IRQHandler+0x984>
  22354. 8009b38: 687b ldr r3, [r7, #4]
  22355. 8009b3a: 681b ldr r3, [r3, #0]
  22356. 8009b3c: 4a3a ldr r2, [pc, #232] @ (8009c28 <HAL_DMA_IRQHandler+0xa60>)
  22357. 8009b3e: 4293 cmp r3, r2
  22358. 8009b40: d004 beq.n 8009b4c <HAL_DMA_IRQHandler+0x984>
  22359. 8009b42: 687b ldr r3, [r7, #4]
  22360. 8009b44: 681b ldr r3, [r3, #0]
  22361. 8009b46: 4a39 ldr r2, [pc, #228] @ (8009c2c <HAL_DMA_IRQHandler+0xa64>)
  22362. 8009b48: 4293 cmp r3, r2
  22363. 8009b4a: d101 bne.n 8009b50 <HAL_DMA_IRQHandler+0x988>
  22364. 8009b4c: 2301 movs r3, #1
  22365. 8009b4e: e000 b.n 8009b52 <HAL_DMA_IRQHandler+0x98a>
  22366. 8009b50: 2300 movs r3, #0
  22367. 8009b52: 2b00 cmp r3, #0
  22368. 8009b54: f000 823f beq.w 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22369. {
  22370. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  22371. 8009b58: 687b ldr r3, [r7, #4]
  22372. 8009b5a: 681b ldr r3, [r3, #0]
  22373. 8009b5c: 681b ldr r3, [r3, #0]
  22374. 8009b5e: 613b str r3, [r7, #16]
  22375. /* Half Transfer Complete Interrupt management ******************************/
  22376. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  22377. 8009b60: 687b ldr r3, [r7, #4]
  22378. 8009b62: 6ddb ldr r3, [r3, #92] @ 0x5c
  22379. 8009b64: f003 031f and.w r3, r3, #31
  22380. 8009b68: 2204 movs r2, #4
  22381. 8009b6a: 409a lsls r2, r3
  22382. 8009b6c: 697b ldr r3, [r7, #20]
  22383. 8009b6e: 4013 ands r3, r2
  22384. 8009b70: 2b00 cmp r3, #0
  22385. 8009b72: f000 80cd beq.w 8009d10 <HAL_DMA_IRQHandler+0xb48>
  22386. 8009b76: 693b ldr r3, [r7, #16]
  22387. 8009b78: f003 0304 and.w r3, r3, #4
  22388. 8009b7c: 2b00 cmp r3, #0
  22389. 8009b7e: f000 80c7 beq.w 8009d10 <HAL_DMA_IRQHandler+0xb48>
  22390. {
  22391. /* Clear the half transfer complete flag */
  22392. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  22393. 8009b82: 687b ldr r3, [r7, #4]
  22394. 8009b84: 6ddb ldr r3, [r3, #92] @ 0x5c
  22395. 8009b86: f003 031f and.w r3, r3, #31
  22396. 8009b8a: 2204 movs r2, #4
  22397. 8009b8c: 409a lsls r2, r3
  22398. 8009b8e: 69fb ldr r3, [r7, #28]
  22399. 8009b90: 605a str r2, [r3, #4]
  22400. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  22401. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22402. 8009b92: 693b ldr r3, [r7, #16]
  22403. 8009b94: f403 4300 and.w r3, r3, #32768 @ 0x8000
  22404. 8009b98: 2b00 cmp r3, #0
  22405. 8009b9a: d049 beq.n 8009c30 <HAL_DMA_IRQHandler+0xa68>
  22406. {
  22407. /* Current memory buffer used is Memory 0 */
  22408. if((ccr_reg & BDMA_CCR_CT) == 0U)
  22409. 8009b9c: 693b ldr r3, [r7, #16]
  22410. 8009b9e: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22411. 8009ba2: 2b00 cmp r3, #0
  22412. 8009ba4: d109 bne.n 8009bba <HAL_DMA_IRQHandler+0x9f2>
  22413. {
  22414. if(hdma->XferM1HalfCpltCallback != NULL)
  22415. 8009ba6: 687b ldr r3, [r7, #4]
  22416. 8009ba8: 6c9b ldr r3, [r3, #72] @ 0x48
  22417. 8009baa: 2b00 cmp r3, #0
  22418. 8009bac: f000 8210 beq.w 8009fd0 <HAL_DMA_IRQHandler+0xe08>
  22419. {
  22420. /* Half transfer Callback for Memory 1 */
  22421. hdma->XferM1HalfCpltCallback(hdma);
  22422. 8009bb0: 687b ldr r3, [r7, #4]
  22423. 8009bb2: 6c9b ldr r3, [r3, #72] @ 0x48
  22424. 8009bb4: 6878 ldr r0, [r7, #4]
  22425. 8009bb6: 4798 blx r3
  22426. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22427. 8009bb8: e20a b.n 8009fd0 <HAL_DMA_IRQHandler+0xe08>
  22428. }
  22429. }
  22430. /* Current memory buffer used is Memory 1 */
  22431. else
  22432. {
  22433. if(hdma->XferHalfCpltCallback != NULL)
  22434. 8009bba: 687b ldr r3, [r7, #4]
  22435. 8009bbc: 6c1b ldr r3, [r3, #64] @ 0x40
  22436. 8009bbe: 2b00 cmp r3, #0
  22437. 8009bc0: f000 8206 beq.w 8009fd0 <HAL_DMA_IRQHandler+0xe08>
  22438. {
  22439. /* Half transfer Callback for Memory 0 */
  22440. hdma->XferHalfCpltCallback(hdma);
  22441. 8009bc4: 687b ldr r3, [r7, #4]
  22442. 8009bc6: 6c1b ldr r3, [r3, #64] @ 0x40
  22443. 8009bc8: 6878 ldr r0, [r7, #4]
  22444. 8009bca: 4798 blx r3
  22445. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22446. 8009bcc: e200 b.n 8009fd0 <HAL_DMA_IRQHandler+0xe08>
  22447. 8009bce: bf00 nop
  22448. 8009bd0: 40020010 .word 0x40020010
  22449. 8009bd4: 40020028 .word 0x40020028
  22450. 8009bd8: 40020040 .word 0x40020040
  22451. 8009bdc: 40020058 .word 0x40020058
  22452. 8009be0: 40020070 .word 0x40020070
  22453. 8009be4: 40020088 .word 0x40020088
  22454. 8009be8: 400200a0 .word 0x400200a0
  22455. 8009bec: 400200b8 .word 0x400200b8
  22456. 8009bf0: 40020410 .word 0x40020410
  22457. 8009bf4: 40020428 .word 0x40020428
  22458. 8009bf8: 40020440 .word 0x40020440
  22459. 8009bfc: 40020458 .word 0x40020458
  22460. 8009c00: 40020470 .word 0x40020470
  22461. 8009c04: 40020488 .word 0x40020488
  22462. 8009c08: 400204a0 .word 0x400204a0
  22463. 8009c0c: 400204b8 .word 0x400204b8
  22464. 8009c10: 58025408 .word 0x58025408
  22465. 8009c14: 5802541c .word 0x5802541c
  22466. 8009c18: 58025430 .word 0x58025430
  22467. 8009c1c: 58025444 .word 0x58025444
  22468. 8009c20: 58025458 .word 0x58025458
  22469. 8009c24: 5802546c .word 0x5802546c
  22470. 8009c28: 58025480 .word 0x58025480
  22471. 8009c2c: 58025494 .word 0x58025494
  22472. }
  22473. }
  22474. }
  22475. else
  22476. {
  22477. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  22478. 8009c30: 693b ldr r3, [r7, #16]
  22479. 8009c32: f003 0320 and.w r3, r3, #32
  22480. 8009c36: 2b00 cmp r3, #0
  22481. 8009c38: d160 bne.n 8009cfc <HAL_DMA_IRQHandler+0xb34>
  22482. {
  22483. /* Disable the half transfer interrupt */
  22484. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  22485. 8009c3a: 687b ldr r3, [r7, #4]
  22486. 8009c3c: 681b ldr r3, [r3, #0]
  22487. 8009c3e: 4a7f ldr r2, [pc, #508] @ (8009e3c <HAL_DMA_IRQHandler+0xc74>)
  22488. 8009c40: 4293 cmp r3, r2
  22489. 8009c42: d04a beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22490. 8009c44: 687b ldr r3, [r7, #4]
  22491. 8009c46: 681b ldr r3, [r3, #0]
  22492. 8009c48: 4a7d ldr r2, [pc, #500] @ (8009e40 <HAL_DMA_IRQHandler+0xc78>)
  22493. 8009c4a: 4293 cmp r3, r2
  22494. 8009c4c: d045 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22495. 8009c4e: 687b ldr r3, [r7, #4]
  22496. 8009c50: 681b ldr r3, [r3, #0]
  22497. 8009c52: 4a7c ldr r2, [pc, #496] @ (8009e44 <HAL_DMA_IRQHandler+0xc7c>)
  22498. 8009c54: 4293 cmp r3, r2
  22499. 8009c56: d040 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22500. 8009c58: 687b ldr r3, [r7, #4]
  22501. 8009c5a: 681b ldr r3, [r3, #0]
  22502. 8009c5c: 4a7a ldr r2, [pc, #488] @ (8009e48 <HAL_DMA_IRQHandler+0xc80>)
  22503. 8009c5e: 4293 cmp r3, r2
  22504. 8009c60: d03b beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22505. 8009c62: 687b ldr r3, [r7, #4]
  22506. 8009c64: 681b ldr r3, [r3, #0]
  22507. 8009c66: 4a79 ldr r2, [pc, #484] @ (8009e4c <HAL_DMA_IRQHandler+0xc84>)
  22508. 8009c68: 4293 cmp r3, r2
  22509. 8009c6a: d036 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22510. 8009c6c: 687b ldr r3, [r7, #4]
  22511. 8009c6e: 681b ldr r3, [r3, #0]
  22512. 8009c70: 4a77 ldr r2, [pc, #476] @ (8009e50 <HAL_DMA_IRQHandler+0xc88>)
  22513. 8009c72: 4293 cmp r3, r2
  22514. 8009c74: d031 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22515. 8009c76: 687b ldr r3, [r7, #4]
  22516. 8009c78: 681b ldr r3, [r3, #0]
  22517. 8009c7a: 4a76 ldr r2, [pc, #472] @ (8009e54 <HAL_DMA_IRQHandler+0xc8c>)
  22518. 8009c7c: 4293 cmp r3, r2
  22519. 8009c7e: d02c beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22520. 8009c80: 687b ldr r3, [r7, #4]
  22521. 8009c82: 681b ldr r3, [r3, #0]
  22522. 8009c84: 4a74 ldr r2, [pc, #464] @ (8009e58 <HAL_DMA_IRQHandler+0xc90>)
  22523. 8009c86: 4293 cmp r3, r2
  22524. 8009c88: d027 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22525. 8009c8a: 687b ldr r3, [r7, #4]
  22526. 8009c8c: 681b ldr r3, [r3, #0]
  22527. 8009c8e: 4a73 ldr r2, [pc, #460] @ (8009e5c <HAL_DMA_IRQHandler+0xc94>)
  22528. 8009c90: 4293 cmp r3, r2
  22529. 8009c92: d022 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22530. 8009c94: 687b ldr r3, [r7, #4]
  22531. 8009c96: 681b ldr r3, [r3, #0]
  22532. 8009c98: 4a71 ldr r2, [pc, #452] @ (8009e60 <HAL_DMA_IRQHandler+0xc98>)
  22533. 8009c9a: 4293 cmp r3, r2
  22534. 8009c9c: d01d beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22535. 8009c9e: 687b ldr r3, [r7, #4]
  22536. 8009ca0: 681b ldr r3, [r3, #0]
  22537. 8009ca2: 4a70 ldr r2, [pc, #448] @ (8009e64 <HAL_DMA_IRQHandler+0xc9c>)
  22538. 8009ca4: 4293 cmp r3, r2
  22539. 8009ca6: d018 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22540. 8009ca8: 687b ldr r3, [r7, #4]
  22541. 8009caa: 681b ldr r3, [r3, #0]
  22542. 8009cac: 4a6e ldr r2, [pc, #440] @ (8009e68 <HAL_DMA_IRQHandler+0xca0>)
  22543. 8009cae: 4293 cmp r3, r2
  22544. 8009cb0: d013 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22545. 8009cb2: 687b ldr r3, [r7, #4]
  22546. 8009cb4: 681b ldr r3, [r3, #0]
  22547. 8009cb6: 4a6d ldr r2, [pc, #436] @ (8009e6c <HAL_DMA_IRQHandler+0xca4>)
  22548. 8009cb8: 4293 cmp r3, r2
  22549. 8009cba: d00e beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22550. 8009cbc: 687b ldr r3, [r7, #4]
  22551. 8009cbe: 681b ldr r3, [r3, #0]
  22552. 8009cc0: 4a6b ldr r2, [pc, #428] @ (8009e70 <HAL_DMA_IRQHandler+0xca8>)
  22553. 8009cc2: 4293 cmp r3, r2
  22554. 8009cc4: d009 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22555. 8009cc6: 687b ldr r3, [r7, #4]
  22556. 8009cc8: 681b ldr r3, [r3, #0]
  22557. 8009cca: 4a6a ldr r2, [pc, #424] @ (8009e74 <HAL_DMA_IRQHandler+0xcac>)
  22558. 8009ccc: 4293 cmp r3, r2
  22559. 8009cce: d004 beq.n 8009cda <HAL_DMA_IRQHandler+0xb12>
  22560. 8009cd0: 687b ldr r3, [r7, #4]
  22561. 8009cd2: 681b ldr r3, [r3, #0]
  22562. 8009cd4: 4a68 ldr r2, [pc, #416] @ (8009e78 <HAL_DMA_IRQHandler+0xcb0>)
  22563. 8009cd6: 4293 cmp r3, r2
  22564. 8009cd8: d108 bne.n 8009cec <HAL_DMA_IRQHandler+0xb24>
  22565. 8009cda: 687b ldr r3, [r7, #4]
  22566. 8009cdc: 681b ldr r3, [r3, #0]
  22567. 8009cde: 681a ldr r2, [r3, #0]
  22568. 8009ce0: 687b ldr r3, [r7, #4]
  22569. 8009ce2: 681b ldr r3, [r3, #0]
  22570. 8009ce4: f022 0208 bic.w r2, r2, #8
  22571. 8009ce8: 601a str r2, [r3, #0]
  22572. 8009cea: e007 b.n 8009cfc <HAL_DMA_IRQHandler+0xb34>
  22573. 8009cec: 687b ldr r3, [r7, #4]
  22574. 8009cee: 681b ldr r3, [r3, #0]
  22575. 8009cf0: 681a ldr r2, [r3, #0]
  22576. 8009cf2: 687b ldr r3, [r7, #4]
  22577. 8009cf4: 681b ldr r3, [r3, #0]
  22578. 8009cf6: f022 0204 bic.w r2, r2, #4
  22579. 8009cfa: 601a str r2, [r3, #0]
  22580. }
  22581. /* DMA peripheral state is not updated in Half Transfer */
  22582. /* but in Transfer Complete case */
  22583. if(hdma->XferHalfCpltCallback != NULL)
  22584. 8009cfc: 687b ldr r3, [r7, #4]
  22585. 8009cfe: 6c1b ldr r3, [r3, #64] @ 0x40
  22586. 8009d00: 2b00 cmp r3, #0
  22587. 8009d02: f000 8165 beq.w 8009fd0 <HAL_DMA_IRQHandler+0xe08>
  22588. {
  22589. /* Half transfer callback */
  22590. hdma->XferHalfCpltCallback(hdma);
  22591. 8009d06: 687b ldr r3, [r7, #4]
  22592. 8009d08: 6c1b ldr r3, [r3, #64] @ 0x40
  22593. 8009d0a: 6878 ldr r0, [r7, #4]
  22594. 8009d0c: 4798 blx r3
  22595. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22596. 8009d0e: e15f b.n 8009fd0 <HAL_DMA_IRQHandler+0xe08>
  22597. }
  22598. }
  22599. }
  22600. /* Transfer Complete Interrupt management ***********************************/
  22601. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  22602. 8009d10: 687b ldr r3, [r7, #4]
  22603. 8009d12: 6ddb ldr r3, [r3, #92] @ 0x5c
  22604. 8009d14: f003 031f and.w r3, r3, #31
  22605. 8009d18: 2202 movs r2, #2
  22606. 8009d1a: 409a lsls r2, r3
  22607. 8009d1c: 697b ldr r3, [r7, #20]
  22608. 8009d1e: 4013 ands r3, r2
  22609. 8009d20: 2b00 cmp r3, #0
  22610. 8009d22: f000 80c5 beq.w 8009eb0 <HAL_DMA_IRQHandler+0xce8>
  22611. 8009d26: 693b ldr r3, [r7, #16]
  22612. 8009d28: f003 0302 and.w r3, r3, #2
  22613. 8009d2c: 2b00 cmp r3, #0
  22614. 8009d2e: f000 80bf beq.w 8009eb0 <HAL_DMA_IRQHandler+0xce8>
  22615. {
  22616. /* Clear the transfer complete flag */
  22617. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  22618. 8009d32: 687b ldr r3, [r7, #4]
  22619. 8009d34: 6ddb ldr r3, [r3, #92] @ 0x5c
  22620. 8009d36: f003 031f and.w r3, r3, #31
  22621. 8009d3a: 2202 movs r2, #2
  22622. 8009d3c: 409a lsls r2, r3
  22623. 8009d3e: 69fb ldr r3, [r7, #28]
  22624. 8009d40: 605a str r2, [r3, #4]
  22625. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  22626. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22627. 8009d42: 693b ldr r3, [r7, #16]
  22628. 8009d44: f403 4300 and.w r3, r3, #32768 @ 0x8000
  22629. 8009d48: 2b00 cmp r3, #0
  22630. 8009d4a: d018 beq.n 8009d7e <HAL_DMA_IRQHandler+0xbb6>
  22631. {
  22632. /* Current memory buffer used is Memory 0 */
  22633. if((ccr_reg & BDMA_CCR_CT) == 0U)
  22634. 8009d4c: 693b ldr r3, [r7, #16]
  22635. 8009d4e: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22636. 8009d52: 2b00 cmp r3, #0
  22637. 8009d54: d109 bne.n 8009d6a <HAL_DMA_IRQHandler+0xba2>
  22638. {
  22639. if(hdma->XferM1CpltCallback != NULL)
  22640. 8009d56: 687b ldr r3, [r7, #4]
  22641. 8009d58: 6c5b ldr r3, [r3, #68] @ 0x44
  22642. 8009d5a: 2b00 cmp r3, #0
  22643. 8009d5c: f000 813a beq.w 8009fd4 <HAL_DMA_IRQHandler+0xe0c>
  22644. {
  22645. /* Transfer complete Callback for Memory 1 */
  22646. hdma->XferM1CpltCallback(hdma);
  22647. 8009d60: 687b ldr r3, [r7, #4]
  22648. 8009d62: 6c5b ldr r3, [r3, #68] @ 0x44
  22649. 8009d64: 6878 ldr r0, [r7, #4]
  22650. 8009d66: 4798 blx r3
  22651. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22652. 8009d68: e134 b.n 8009fd4 <HAL_DMA_IRQHandler+0xe0c>
  22653. }
  22654. }
  22655. /* Current memory buffer used is Memory 1 */
  22656. else
  22657. {
  22658. if(hdma->XferCpltCallback != NULL)
  22659. 8009d6a: 687b ldr r3, [r7, #4]
  22660. 8009d6c: 6bdb ldr r3, [r3, #60] @ 0x3c
  22661. 8009d6e: 2b00 cmp r3, #0
  22662. 8009d70: f000 8130 beq.w 8009fd4 <HAL_DMA_IRQHandler+0xe0c>
  22663. {
  22664. /* Transfer complete Callback for Memory 0 */
  22665. hdma->XferCpltCallback(hdma);
  22666. 8009d74: 687b ldr r3, [r7, #4]
  22667. 8009d76: 6bdb ldr r3, [r3, #60] @ 0x3c
  22668. 8009d78: 6878 ldr r0, [r7, #4]
  22669. 8009d7a: 4798 blx r3
  22670. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22671. 8009d7c: e12a b.n 8009fd4 <HAL_DMA_IRQHandler+0xe0c>
  22672. }
  22673. }
  22674. }
  22675. else
  22676. {
  22677. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  22678. 8009d7e: 693b ldr r3, [r7, #16]
  22679. 8009d80: f003 0320 and.w r3, r3, #32
  22680. 8009d84: 2b00 cmp r3, #0
  22681. 8009d86: f040 8089 bne.w 8009e9c <HAL_DMA_IRQHandler+0xcd4>
  22682. {
  22683. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  22684. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  22685. 8009d8a: 687b ldr r3, [r7, #4]
  22686. 8009d8c: 681b ldr r3, [r3, #0]
  22687. 8009d8e: 4a2b ldr r2, [pc, #172] @ (8009e3c <HAL_DMA_IRQHandler+0xc74>)
  22688. 8009d90: 4293 cmp r3, r2
  22689. 8009d92: d04a beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22690. 8009d94: 687b ldr r3, [r7, #4]
  22691. 8009d96: 681b ldr r3, [r3, #0]
  22692. 8009d98: 4a29 ldr r2, [pc, #164] @ (8009e40 <HAL_DMA_IRQHandler+0xc78>)
  22693. 8009d9a: 4293 cmp r3, r2
  22694. 8009d9c: d045 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22695. 8009d9e: 687b ldr r3, [r7, #4]
  22696. 8009da0: 681b ldr r3, [r3, #0]
  22697. 8009da2: 4a28 ldr r2, [pc, #160] @ (8009e44 <HAL_DMA_IRQHandler+0xc7c>)
  22698. 8009da4: 4293 cmp r3, r2
  22699. 8009da6: d040 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22700. 8009da8: 687b ldr r3, [r7, #4]
  22701. 8009daa: 681b ldr r3, [r3, #0]
  22702. 8009dac: 4a26 ldr r2, [pc, #152] @ (8009e48 <HAL_DMA_IRQHandler+0xc80>)
  22703. 8009dae: 4293 cmp r3, r2
  22704. 8009db0: d03b beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22705. 8009db2: 687b ldr r3, [r7, #4]
  22706. 8009db4: 681b ldr r3, [r3, #0]
  22707. 8009db6: 4a25 ldr r2, [pc, #148] @ (8009e4c <HAL_DMA_IRQHandler+0xc84>)
  22708. 8009db8: 4293 cmp r3, r2
  22709. 8009dba: d036 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22710. 8009dbc: 687b ldr r3, [r7, #4]
  22711. 8009dbe: 681b ldr r3, [r3, #0]
  22712. 8009dc0: 4a23 ldr r2, [pc, #140] @ (8009e50 <HAL_DMA_IRQHandler+0xc88>)
  22713. 8009dc2: 4293 cmp r3, r2
  22714. 8009dc4: d031 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22715. 8009dc6: 687b ldr r3, [r7, #4]
  22716. 8009dc8: 681b ldr r3, [r3, #0]
  22717. 8009dca: 4a22 ldr r2, [pc, #136] @ (8009e54 <HAL_DMA_IRQHandler+0xc8c>)
  22718. 8009dcc: 4293 cmp r3, r2
  22719. 8009dce: d02c beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22720. 8009dd0: 687b ldr r3, [r7, #4]
  22721. 8009dd2: 681b ldr r3, [r3, #0]
  22722. 8009dd4: 4a20 ldr r2, [pc, #128] @ (8009e58 <HAL_DMA_IRQHandler+0xc90>)
  22723. 8009dd6: 4293 cmp r3, r2
  22724. 8009dd8: d027 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22725. 8009dda: 687b ldr r3, [r7, #4]
  22726. 8009ddc: 681b ldr r3, [r3, #0]
  22727. 8009dde: 4a1f ldr r2, [pc, #124] @ (8009e5c <HAL_DMA_IRQHandler+0xc94>)
  22728. 8009de0: 4293 cmp r3, r2
  22729. 8009de2: d022 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22730. 8009de4: 687b ldr r3, [r7, #4]
  22731. 8009de6: 681b ldr r3, [r3, #0]
  22732. 8009de8: 4a1d ldr r2, [pc, #116] @ (8009e60 <HAL_DMA_IRQHandler+0xc98>)
  22733. 8009dea: 4293 cmp r3, r2
  22734. 8009dec: d01d beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22735. 8009dee: 687b ldr r3, [r7, #4]
  22736. 8009df0: 681b ldr r3, [r3, #0]
  22737. 8009df2: 4a1c ldr r2, [pc, #112] @ (8009e64 <HAL_DMA_IRQHandler+0xc9c>)
  22738. 8009df4: 4293 cmp r3, r2
  22739. 8009df6: d018 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22740. 8009df8: 687b ldr r3, [r7, #4]
  22741. 8009dfa: 681b ldr r3, [r3, #0]
  22742. 8009dfc: 4a1a ldr r2, [pc, #104] @ (8009e68 <HAL_DMA_IRQHandler+0xca0>)
  22743. 8009dfe: 4293 cmp r3, r2
  22744. 8009e00: d013 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22745. 8009e02: 687b ldr r3, [r7, #4]
  22746. 8009e04: 681b ldr r3, [r3, #0]
  22747. 8009e06: 4a19 ldr r2, [pc, #100] @ (8009e6c <HAL_DMA_IRQHandler+0xca4>)
  22748. 8009e08: 4293 cmp r3, r2
  22749. 8009e0a: d00e beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22750. 8009e0c: 687b ldr r3, [r7, #4]
  22751. 8009e0e: 681b ldr r3, [r3, #0]
  22752. 8009e10: 4a17 ldr r2, [pc, #92] @ (8009e70 <HAL_DMA_IRQHandler+0xca8>)
  22753. 8009e12: 4293 cmp r3, r2
  22754. 8009e14: d009 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22755. 8009e16: 687b ldr r3, [r7, #4]
  22756. 8009e18: 681b ldr r3, [r3, #0]
  22757. 8009e1a: 4a16 ldr r2, [pc, #88] @ (8009e74 <HAL_DMA_IRQHandler+0xcac>)
  22758. 8009e1c: 4293 cmp r3, r2
  22759. 8009e1e: d004 beq.n 8009e2a <HAL_DMA_IRQHandler+0xc62>
  22760. 8009e20: 687b ldr r3, [r7, #4]
  22761. 8009e22: 681b ldr r3, [r3, #0]
  22762. 8009e24: 4a14 ldr r2, [pc, #80] @ (8009e78 <HAL_DMA_IRQHandler+0xcb0>)
  22763. 8009e26: 4293 cmp r3, r2
  22764. 8009e28: d128 bne.n 8009e7c <HAL_DMA_IRQHandler+0xcb4>
  22765. 8009e2a: 687b ldr r3, [r7, #4]
  22766. 8009e2c: 681b ldr r3, [r3, #0]
  22767. 8009e2e: 681a ldr r2, [r3, #0]
  22768. 8009e30: 687b ldr r3, [r7, #4]
  22769. 8009e32: 681b ldr r3, [r3, #0]
  22770. 8009e34: f022 0214 bic.w r2, r2, #20
  22771. 8009e38: 601a str r2, [r3, #0]
  22772. 8009e3a: e027 b.n 8009e8c <HAL_DMA_IRQHandler+0xcc4>
  22773. 8009e3c: 40020010 .word 0x40020010
  22774. 8009e40: 40020028 .word 0x40020028
  22775. 8009e44: 40020040 .word 0x40020040
  22776. 8009e48: 40020058 .word 0x40020058
  22777. 8009e4c: 40020070 .word 0x40020070
  22778. 8009e50: 40020088 .word 0x40020088
  22779. 8009e54: 400200a0 .word 0x400200a0
  22780. 8009e58: 400200b8 .word 0x400200b8
  22781. 8009e5c: 40020410 .word 0x40020410
  22782. 8009e60: 40020428 .word 0x40020428
  22783. 8009e64: 40020440 .word 0x40020440
  22784. 8009e68: 40020458 .word 0x40020458
  22785. 8009e6c: 40020470 .word 0x40020470
  22786. 8009e70: 40020488 .word 0x40020488
  22787. 8009e74: 400204a0 .word 0x400204a0
  22788. 8009e78: 400204b8 .word 0x400204b8
  22789. 8009e7c: 687b ldr r3, [r7, #4]
  22790. 8009e7e: 681b ldr r3, [r3, #0]
  22791. 8009e80: 681a ldr r2, [r3, #0]
  22792. 8009e82: 687b ldr r3, [r7, #4]
  22793. 8009e84: 681b ldr r3, [r3, #0]
  22794. 8009e86: f022 020a bic.w r2, r2, #10
  22795. 8009e8a: 601a str r2, [r3, #0]
  22796. /* Change the DMA state */
  22797. hdma->State = HAL_DMA_STATE_READY;
  22798. 8009e8c: 687b ldr r3, [r7, #4]
  22799. 8009e8e: 2201 movs r2, #1
  22800. 8009e90: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22801. /* Process Unlocked */
  22802. __HAL_UNLOCK(hdma);
  22803. 8009e94: 687b ldr r3, [r7, #4]
  22804. 8009e96: 2200 movs r2, #0
  22805. 8009e98: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22806. }
  22807. if(hdma->XferCpltCallback != NULL)
  22808. 8009e9c: 687b ldr r3, [r7, #4]
  22809. 8009e9e: 6bdb ldr r3, [r3, #60] @ 0x3c
  22810. 8009ea0: 2b00 cmp r3, #0
  22811. 8009ea2: f000 8097 beq.w 8009fd4 <HAL_DMA_IRQHandler+0xe0c>
  22812. {
  22813. /* Transfer complete callback */
  22814. hdma->XferCpltCallback(hdma);
  22815. 8009ea6: 687b ldr r3, [r7, #4]
  22816. 8009ea8: 6bdb ldr r3, [r3, #60] @ 0x3c
  22817. 8009eaa: 6878 ldr r0, [r7, #4]
  22818. 8009eac: 4798 blx r3
  22819. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22820. 8009eae: e091 b.n 8009fd4 <HAL_DMA_IRQHandler+0xe0c>
  22821. }
  22822. }
  22823. }
  22824. /* Transfer Error Interrupt management **************************************/
  22825. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  22826. 8009eb0: 687b ldr r3, [r7, #4]
  22827. 8009eb2: 6ddb ldr r3, [r3, #92] @ 0x5c
  22828. 8009eb4: f003 031f and.w r3, r3, #31
  22829. 8009eb8: 2208 movs r2, #8
  22830. 8009eba: 409a lsls r2, r3
  22831. 8009ebc: 697b ldr r3, [r7, #20]
  22832. 8009ebe: 4013 ands r3, r2
  22833. 8009ec0: 2b00 cmp r3, #0
  22834. 8009ec2: f000 8088 beq.w 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22835. 8009ec6: 693b ldr r3, [r7, #16]
  22836. 8009ec8: f003 0308 and.w r3, r3, #8
  22837. 8009ecc: 2b00 cmp r3, #0
  22838. 8009ece: f000 8082 beq.w 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22839. {
  22840. /* When a DMA transfer error occurs */
  22841. /* A hardware clear of its EN bits is performed */
  22842. /* Disable ALL DMA IT */
  22843. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  22844. 8009ed2: 687b ldr r3, [r7, #4]
  22845. 8009ed4: 681b ldr r3, [r3, #0]
  22846. 8009ed6: 4a41 ldr r2, [pc, #260] @ (8009fdc <HAL_DMA_IRQHandler+0xe14>)
  22847. 8009ed8: 4293 cmp r3, r2
  22848. 8009eda: d04a beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22849. 8009edc: 687b ldr r3, [r7, #4]
  22850. 8009ede: 681b ldr r3, [r3, #0]
  22851. 8009ee0: 4a3f ldr r2, [pc, #252] @ (8009fe0 <HAL_DMA_IRQHandler+0xe18>)
  22852. 8009ee2: 4293 cmp r3, r2
  22853. 8009ee4: d045 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22854. 8009ee6: 687b ldr r3, [r7, #4]
  22855. 8009ee8: 681b ldr r3, [r3, #0]
  22856. 8009eea: 4a3e ldr r2, [pc, #248] @ (8009fe4 <HAL_DMA_IRQHandler+0xe1c>)
  22857. 8009eec: 4293 cmp r3, r2
  22858. 8009eee: d040 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22859. 8009ef0: 687b ldr r3, [r7, #4]
  22860. 8009ef2: 681b ldr r3, [r3, #0]
  22861. 8009ef4: 4a3c ldr r2, [pc, #240] @ (8009fe8 <HAL_DMA_IRQHandler+0xe20>)
  22862. 8009ef6: 4293 cmp r3, r2
  22863. 8009ef8: d03b beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22864. 8009efa: 687b ldr r3, [r7, #4]
  22865. 8009efc: 681b ldr r3, [r3, #0]
  22866. 8009efe: 4a3b ldr r2, [pc, #236] @ (8009fec <HAL_DMA_IRQHandler+0xe24>)
  22867. 8009f00: 4293 cmp r3, r2
  22868. 8009f02: d036 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22869. 8009f04: 687b ldr r3, [r7, #4]
  22870. 8009f06: 681b ldr r3, [r3, #0]
  22871. 8009f08: 4a39 ldr r2, [pc, #228] @ (8009ff0 <HAL_DMA_IRQHandler+0xe28>)
  22872. 8009f0a: 4293 cmp r3, r2
  22873. 8009f0c: d031 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22874. 8009f0e: 687b ldr r3, [r7, #4]
  22875. 8009f10: 681b ldr r3, [r3, #0]
  22876. 8009f12: 4a38 ldr r2, [pc, #224] @ (8009ff4 <HAL_DMA_IRQHandler+0xe2c>)
  22877. 8009f14: 4293 cmp r3, r2
  22878. 8009f16: d02c beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22879. 8009f18: 687b ldr r3, [r7, #4]
  22880. 8009f1a: 681b ldr r3, [r3, #0]
  22881. 8009f1c: 4a36 ldr r2, [pc, #216] @ (8009ff8 <HAL_DMA_IRQHandler+0xe30>)
  22882. 8009f1e: 4293 cmp r3, r2
  22883. 8009f20: d027 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22884. 8009f22: 687b ldr r3, [r7, #4]
  22885. 8009f24: 681b ldr r3, [r3, #0]
  22886. 8009f26: 4a35 ldr r2, [pc, #212] @ (8009ffc <HAL_DMA_IRQHandler+0xe34>)
  22887. 8009f28: 4293 cmp r3, r2
  22888. 8009f2a: d022 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22889. 8009f2c: 687b ldr r3, [r7, #4]
  22890. 8009f2e: 681b ldr r3, [r3, #0]
  22891. 8009f30: 4a33 ldr r2, [pc, #204] @ (800a000 <HAL_DMA_IRQHandler+0xe38>)
  22892. 8009f32: 4293 cmp r3, r2
  22893. 8009f34: d01d beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22894. 8009f36: 687b ldr r3, [r7, #4]
  22895. 8009f38: 681b ldr r3, [r3, #0]
  22896. 8009f3a: 4a32 ldr r2, [pc, #200] @ (800a004 <HAL_DMA_IRQHandler+0xe3c>)
  22897. 8009f3c: 4293 cmp r3, r2
  22898. 8009f3e: d018 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22899. 8009f40: 687b ldr r3, [r7, #4]
  22900. 8009f42: 681b ldr r3, [r3, #0]
  22901. 8009f44: 4a30 ldr r2, [pc, #192] @ (800a008 <HAL_DMA_IRQHandler+0xe40>)
  22902. 8009f46: 4293 cmp r3, r2
  22903. 8009f48: d013 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22904. 8009f4a: 687b ldr r3, [r7, #4]
  22905. 8009f4c: 681b ldr r3, [r3, #0]
  22906. 8009f4e: 4a2f ldr r2, [pc, #188] @ (800a00c <HAL_DMA_IRQHandler+0xe44>)
  22907. 8009f50: 4293 cmp r3, r2
  22908. 8009f52: d00e beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22909. 8009f54: 687b ldr r3, [r7, #4]
  22910. 8009f56: 681b ldr r3, [r3, #0]
  22911. 8009f58: 4a2d ldr r2, [pc, #180] @ (800a010 <HAL_DMA_IRQHandler+0xe48>)
  22912. 8009f5a: 4293 cmp r3, r2
  22913. 8009f5c: d009 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22914. 8009f5e: 687b ldr r3, [r7, #4]
  22915. 8009f60: 681b ldr r3, [r3, #0]
  22916. 8009f62: 4a2c ldr r2, [pc, #176] @ (800a014 <HAL_DMA_IRQHandler+0xe4c>)
  22917. 8009f64: 4293 cmp r3, r2
  22918. 8009f66: d004 beq.n 8009f72 <HAL_DMA_IRQHandler+0xdaa>
  22919. 8009f68: 687b ldr r3, [r7, #4]
  22920. 8009f6a: 681b ldr r3, [r3, #0]
  22921. 8009f6c: 4a2a ldr r2, [pc, #168] @ (800a018 <HAL_DMA_IRQHandler+0xe50>)
  22922. 8009f6e: 4293 cmp r3, r2
  22923. 8009f70: d108 bne.n 8009f84 <HAL_DMA_IRQHandler+0xdbc>
  22924. 8009f72: 687b ldr r3, [r7, #4]
  22925. 8009f74: 681b ldr r3, [r3, #0]
  22926. 8009f76: 681a ldr r2, [r3, #0]
  22927. 8009f78: 687b ldr r3, [r7, #4]
  22928. 8009f7a: 681b ldr r3, [r3, #0]
  22929. 8009f7c: f022 021c bic.w r2, r2, #28
  22930. 8009f80: 601a str r2, [r3, #0]
  22931. 8009f82: e007 b.n 8009f94 <HAL_DMA_IRQHandler+0xdcc>
  22932. 8009f84: 687b ldr r3, [r7, #4]
  22933. 8009f86: 681b ldr r3, [r3, #0]
  22934. 8009f88: 681a ldr r2, [r3, #0]
  22935. 8009f8a: 687b ldr r3, [r7, #4]
  22936. 8009f8c: 681b ldr r3, [r3, #0]
  22937. 8009f8e: f022 020e bic.w r2, r2, #14
  22938. 8009f92: 601a str r2, [r3, #0]
  22939. /* Clear all flags */
  22940. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  22941. 8009f94: 687b ldr r3, [r7, #4]
  22942. 8009f96: 6ddb ldr r3, [r3, #92] @ 0x5c
  22943. 8009f98: f003 031f and.w r3, r3, #31
  22944. 8009f9c: 2201 movs r2, #1
  22945. 8009f9e: 409a lsls r2, r3
  22946. 8009fa0: 69fb ldr r3, [r7, #28]
  22947. 8009fa2: 605a str r2, [r3, #4]
  22948. /* Update error code */
  22949. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  22950. 8009fa4: 687b ldr r3, [r7, #4]
  22951. 8009fa6: 2201 movs r2, #1
  22952. 8009fa8: 655a str r2, [r3, #84] @ 0x54
  22953. /* Change the DMA state */
  22954. hdma->State = HAL_DMA_STATE_READY;
  22955. 8009faa: 687b ldr r3, [r7, #4]
  22956. 8009fac: 2201 movs r2, #1
  22957. 8009fae: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22958. /* Process Unlocked */
  22959. __HAL_UNLOCK(hdma);
  22960. 8009fb2: 687b ldr r3, [r7, #4]
  22961. 8009fb4: 2200 movs r2, #0
  22962. 8009fb6: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22963. if (hdma->XferErrorCallback != NULL)
  22964. 8009fba: 687b ldr r3, [r7, #4]
  22965. 8009fbc: 6cdb ldr r3, [r3, #76] @ 0x4c
  22966. 8009fbe: 2b00 cmp r3, #0
  22967. 8009fc0: d009 beq.n 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22968. {
  22969. /* Transfer error callback */
  22970. hdma->XferErrorCallback(hdma);
  22971. 8009fc2: 687b ldr r3, [r7, #4]
  22972. 8009fc4: 6cdb ldr r3, [r3, #76] @ 0x4c
  22973. 8009fc6: 6878 ldr r0, [r7, #4]
  22974. 8009fc8: 4798 blx r3
  22975. 8009fca: e004 b.n 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22976. return;
  22977. 8009fcc: bf00 nop
  22978. 8009fce: e002 b.n 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22979. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22980. 8009fd0: bf00 nop
  22981. 8009fd2: e000 b.n 8009fd6 <HAL_DMA_IRQHandler+0xe0e>
  22982. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22983. 8009fd4: bf00 nop
  22984. }
  22985. else
  22986. {
  22987. /* Nothing To Do */
  22988. }
  22989. }
  22990. 8009fd6: 3728 adds r7, #40 @ 0x28
  22991. 8009fd8: 46bd mov sp, r7
  22992. 8009fda: bd80 pop {r7, pc}
  22993. 8009fdc: 40020010 .word 0x40020010
  22994. 8009fe0: 40020028 .word 0x40020028
  22995. 8009fe4: 40020040 .word 0x40020040
  22996. 8009fe8: 40020058 .word 0x40020058
  22997. 8009fec: 40020070 .word 0x40020070
  22998. 8009ff0: 40020088 .word 0x40020088
  22999. 8009ff4: 400200a0 .word 0x400200a0
  23000. 8009ff8: 400200b8 .word 0x400200b8
  23001. 8009ffc: 40020410 .word 0x40020410
  23002. 800a000: 40020428 .word 0x40020428
  23003. 800a004: 40020440 .word 0x40020440
  23004. 800a008: 40020458 .word 0x40020458
  23005. 800a00c: 40020470 .word 0x40020470
  23006. 800a010: 40020488 .word 0x40020488
  23007. 800a014: 400204a0 .word 0x400204a0
  23008. 800a018: 400204b8 .word 0x400204b8
  23009. 0800a01c <DMA_SetConfig>:
  23010. * @param DstAddress: The destination memory Buffer address
  23011. * @param DataLength: The length of data to be transferred from source to destination
  23012. * @retval None
  23013. */
  23014. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  23015. {
  23016. 800a01c: b480 push {r7}
  23017. 800a01e: b087 sub sp, #28
  23018. 800a020: af00 add r7, sp, #0
  23019. 800a022: 60f8 str r0, [r7, #12]
  23020. 800a024: 60b9 str r1, [r7, #8]
  23021. 800a026: 607a str r2, [r7, #4]
  23022. 800a028: 603b str r3, [r7, #0]
  23023. /* calculate DMA base and stream number */
  23024. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  23025. 800a02a: 68fb ldr r3, [r7, #12]
  23026. 800a02c: 6d9b ldr r3, [r3, #88] @ 0x58
  23027. 800a02e: 617b str r3, [r7, #20]
  23028. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  23029. 800a030: 68fb ldr r3, [r7, #12]
  23030. 800a032: 6d9b ldr r3, [r3, #88] @ 0x58
  23031. 800a034: 613b str r3, [r7, #16]
  23032. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  23033. 800a036: 68fb ldr r3, [r7, #12]
  23034. 800a038: 681b ldr r3, [r3, #0]
  23035. 800a03a: 4a7f ldr r2, [pc, #508] @ (800a238 <DMA_SetConfig+0x21c>)
  23036. 800a03c: 4293 cmp r3, r2
  23037. 800a03e: d072 beq.n 800a126 <DMA_SetConfig+0x10a>
  23038. 800a040: 68fb ldr r3, [r7, #12]
  23039. 800a042: 681b ldr r3, [r3, #0]
  23040. 800a044: 4a7d ldr r2, [pc, #500] @ (800a23c <DMA_SetConfig+0x220>)
  23041. 800a046: 4293 cmp r3, r2
  23042. 800a048: d06d beq.n 800a126 <DMA_SetConfig+0x10a>
  23043. 800a04a: 68fb ldr r3, [r7, #12]
  23044. 800a04c: 681b ldr r3, [r3, #0]
  23045. 800a04e: 4a7c ldr r2, [pc, #496] @ (800a240 <DMA_SetConfig+0x224>)
  23046. 800a050: 4293 cmp r3, r2
  23047. 800a052: d068 beq.n 800a126 <DMA_SetConfig+0x10a>
  23048. 800a054: 68fb ldr r3, [r7, #12]
  23049. 800a056: 681b ldr r3, [r3, #0]
  23050. 800a058: 4a7a ldr r2, [pc, #488] @ (800a244 <DMA_SetConfig+0x228>)
  23051. 800a05a: 4293 cmp r3, r2
  23052. 800a05c: d063 beq.n 800a126 <DMA_SetConfig+0x10a>
  23053. 800a05e: 68fb ldr r3, [r7, #12]
  23054. 800a060: 681b ldr r3, [r3, #0]
  23055. 800a062: 4a79 ldr r2, [pc, #484] @ (800a248 <DMA_SetConfig+0x22c>)
  23056. 800a064: 4293 cmp r3, r2
  23057. 800a066: d05e beq.n 800a126 <DMA_SetConfig+0x10a>
  23058. 800a068: 68fb ldr r3, [r7, #12]
  23059. 800a06a: 681b ldr r3, [r3, #0]
  23060. 800a06c: 4a77 ldr r2, [pc, #476] @ (800a24c <DMA_SetConfig+0x230>)
  23061. 800a06e: 4293 cmp r3, r2
  23062. 800a070: d059 beq.n 800a126 <DMA_SetConfig+0x10a>
  23063. 800a072: 68fb ldr r3, [r7, #12]
  23064. 800a074: 681b ldr r3, [r3, #0]
  23065. 800a076: 4a76 ldr r2, [pc, #472] @ (800a250 <DMA_SetConfig+0x234>)
  23066. 800a078: 4293 cmp r3, r2
  23067. 800a07a: d054 beq.n 800a126 <DMA_SetConfig+0x10a>
  23068. 800a07c: 68fb ldr r3, [r7, #12]
  23069. 800a07e: 681b ldr r3, [r3, #0]
  23070. 800a080: 4a74 ldr r2, [pc, #464] @ (800a254 <DMA_SetConfig+0x238>)
  23071. 800a082: 4293 cmp r3, r2
  23072. 800a084: d04f beq.n 800a126 <DMA_SetConfig+0x10a>
  23073. 800a086: 68fb ldr r3, [r7, #12]
  23074. 800a088: 681b ldr r3, [r3, #0]
  23075. 800a08a: 4a73 ldr r2, [pc, #460] @ (800a258 <DMA_SetConfig+0x23c>)
  23076. 800a08c: 4293 cmp r3, r2
  23077. 800a08e: d04a beq.n 800a126 <DMA_SetConfig+0x10a>
  23078. 800a090: 68fb ldr r3, [r7, #12]
  23079. 800a092: 681b ldr r3, [r3, #0]
  23080. 800a094: 4a71 ldr r2, [pc, #452] @ (800a25c <DMA_SetConfig+0x240>)
  23081. 800a096: 4293 cmp r3, r2
  23082. 800a098: d045 beq.n 800a126 <DMA_SetConfig+0x10a>
  23083. 800a09a: 68fb ldr r3, [r7, #12]
  23084. 800a09c: 681b ldr r3, [r3, #0]
  23085. 800a09e: 4a70 ldr r2, [pc, #448] @ (800a260 <DMA_SetConfig+0x244>)
  23086. 800a0a0: 4293 cmp r3, r2
  23087. 800a0a2: d040 beq.n 800a126 <DMA_SetConfig+0x10a>
  23088. 800a0a4: 68fb ldr r3, [r7, #12]
  23089. 800a0a6: 681b ldr r3, [r3, #0]
  23090. 800a0a8: 4a6e ldr r2, [pc, #440] @ (800a264 <DMA_SetConfig+0x248>)
  23091. 800a0aa: 4293 cmp r3, r2
  23092. 800a0ac: d03b beq.n 800a126 <DMA_SetConfig+0x10a>
  23093. 800a0ae: 68fb ldr r3, [r7, #12]
  23094. 800a0b0: 681b ldr r3, [r3, #0]
  23095. 800a0b2: 4a6d ldr r2, [pc, #436] @ (800a268 <DMA_SetConfig+0x24c>)
  23096. 800a0b4: 4293 cmp r3, r2
  23097. 800a0b6: d036 beq.n 800a126 <DMA_SetConfig+0x10a>
  23098. 800a0b8: 68fb ldr r3, [r7, #12]
  23099. 800a0ba: 681b ldr r3, [r3, #0]
  23100. 800a0bc: 4a6b ldr r2, [pc, #428] @ (800a26c <DMA_SetConfig+0x250>)
  23101. 800a0be: 4293 cmp r3, r2
  23102. 800a0c0: d031 beq.n 800a126 <DMA_SetConfig+0x10a>
  23103. 800a0c2: 68fb ldr r3, [r7, #12]
  23104. 800a0c4: 681b ldr r3, [r3, #0]
  23105. 800a0c6: 4a6a ldr r2, [pc, #424] @ (800a270 <DMA_SetConfig+0x254>)
  23106. 800a0c8: 4293 cmp r3, r2
  23107. 800a0ca: d02c beq.n 800a126 <DMA_SetConfig+0x10a>
  23108. 800a0cc: 68fb ldr r3, [r7, #12]
  23109. 800a0ce: 681b ldr r3, [r3, #0]
  23110. 800a0d0: 4a68 ldr r2, [pc, #416] @ (800a274 <DMA_SetConfig+0x258>)
  23111. 800a0d2: 4293 cmp r3, r2
  23112. 800a0d4: d027 beq.n 800a126 <DMA_SetConfig+0x10a>
  23113. 800a0d6: 68fb ldr r3, [r7, #12]
  23114. 800a0d8: 681b ldr r3, [r3, #0]
  23115. 800a0da: 4a67 ldr r2, [pc, #412] @ (800a278 <DMA_SetConfig+0x25c>)
  23116. 800a0dc: 4293 cmp r3, r2
  23117. 800a0de: d022 beq.n 800a126 <DMA_SetConfig+0x10a>
  23118. 800a0e0: 68fb ldr r3, [r7, #12]
  23119. 800a0e2: 681b ldr r3, [r3, #0]
  23120. 800a0e4: 4a65 ldr r2, [pc, #404] @ (800a27c <DMA_SetConfig+0x260>)
  23121. 800a0e6: 4293 cmp r3, r2
  23122. 800a0e8: d01d beq.n 800a126 <DMA_SetConfig+0x10a>
  23123. 800a0ea: 68fb ldr r3, [r7, #12]
  23124. 800a0ec: 681b ldr r3, [r3, #0]
  23125. 800a0ee: 4a64 ldr r2, [pc, #400] @ (800a280 <DMA_SetConfig+0x264>)
  23126. 800a0f0: 4293 cmp r3, r2
  23127. 800a0f2: d018 beq.n 800a126 <DMA_SetConfig+0x10a>
  23128. 800a0f4: 68fb ldr r3, [r7, #12]
  23129. 800a0f6: 681b ldr r3, [r3, #0]
  23130. 800a0f8: 4a62 ldr r2, [pc, #392] @ (800a284 <DMA_SetConfig+0x268>)
  23131. 800a0fa: 4293 cmp r3, r2
  23132. 800a0fc: d013 beq.n 800a126 <DMA_SetConfig+0x10a>
  23133. 800a0fe: 68fb ldr r3, [r7, #12]
  23134. 800a100: 681b ldr r3, [r3, #0]
  23135. 800a102: 4a61 ldr r2, [pc, #388] @ (800a288 <DMA_SetConfig+0x26c>)
  23136. 800a104: 4293 cmp r3, r2
  23137. 800a106: d00e beq.n 800a126 <DMA_SetConfig+0x10a>
  23138. 800a108: 68fb ldr r3, [r7, #12]
  23139. 800a10a: 681b ldr r3, [r3, #0]
  23140. 800a10c: 4a5f ldr r2, [pc, #380] @ (800a28c <DMA_SetConfig+0x270>)
  23141. 800a10e: 4293 cmp r3, r2
  23142. 800a110: d009 beq.n 800a126 <DMA_SetConfig+0x10a>
  23143. 800a112: 68fb ldr r3, [r7, #12]
  23144. 800a114: 681b ldr r3, [r3, #0]
  23145. 800a116: 4a5e ldr r2, [pc, #376] @ (800a290 <DMA_SetConfig+0x274>)
  23146. 800a118: 4293 cmp r3, r2
  23147. 800a11a: d004 beq.n 800a126 <DMA_SetConfig+0x10a>
  23148. 800a11c: 68fb ldr r3, [r7, #12]
  23149. 800a11e: 681b ldr r3, [r3, #0]
  23150. 800a120: 4a5c ldr r2, [pc, #368] @ (800a294 <DMA_SetConfig+0x278>)
  23151. 800a122: 4293 cmp r3, r2
  23152. 800a124: d101 bne.n 800a12a <DMA_SetConfig+0x10e>
  23153. 800a126: 2301 movs r3, #1
  23154. 800a128: e000 b.n 800a12c <DMA_SetConfig+0x110>
  23155. 800a12a: 2300 movs r3, #0
  23156. 800a12c: 2b00 cmp r3, #0
  23157. 800a12e: d00d beq.n 800a14c <DMA_SetConfig+0x130>
  23158. {
  23159. /* Clear the DMAMUX synchro overrun flag */
  23160. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  23161. 800a130: 68fb ldr r3, [r7, #12]
  23162. 800a132: 6e5b ldr r3, [r3, #100] @ 0x64
  23163. 800a134: 68fa ldr r2, [r7, #12]
  23164. 800a136: 6e92 ldr r2, [r2, #104] @ 0x68
  23165. 800a138: 605a str r2, [r3, #4]
  23166. if(hdma->DMAmuxRequestGen != 0U)
  23167. 800a13a: 68fb ldr r3, [r7, #12]
  23168. 800a13c: 6edb ldr r3, [r3, #108] @ 0x6c
  23169. 800a13e: 2b00 cmp r3, #0
  23170. 800a140: d004 beq.n 800a14c <DMA_SetConfig+0x130>
  23171. {
  23172. /* Clear the DMAMUX request generator overrun flag */
  23173. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  23174. 800a142: 68fb ldr r3, [r7, #12]
  23175. 800a144: 6f1b ldr r3, [r3, #112] @ 0x70
  23176. 800a146: 68fa ldr r2, [r7, #12]
  23177. 800a148: 6f52 ldr r2, [r2, #116] @ 0x74
  23178. 800a14a: 605a str r2, [r3, #4]
  23179. }
  23180. }
  23181. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  23182. 800a14c: 68fb ldr r3, [r7, #12]
  23183. 800a14e: 681b ldr r3, [r3, #0]
  23184. 800a150: 4a39 ldr r2, [pc, #228] @ (800a238 <DMA_SetConfig+0x21c>)
  23185. 800a152: 4293 cmp r3, r2
  23186. 800a154: d04a beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23187. 800a156: 68fb ldr r3, [r7, #12]
  23188. 800a158: 681b ldr r3, [r3, #0]
  23189. 800a15a: 4a38 ldr r2, [pc, #224] @ (800a23c <DMA_SetConfig+0x220>)
  23190. 800a15c: 4293 cmp r3, r2
  23191. 800a15e: d045 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23192. 800a160: 68fb ldr r3, [r7, #12]
  23193. 800a162: 681b ldr r3, [r3, #0]
  23194. 800a164: 4a36 ldr r2, [pc, #216] @ (800a240 <DMA_SetConfig+0x224>)
  23195. 800a166: 4293 cmp r3, r2
  23196. 800a168: d040 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23197. 800a16a: 68fb ldr r3, [r7, #12]
  23198. 800a16c: 681b ldr r3, [r3, #0]
  23199. 800a16e: 4a35 ldr r2, [pc, #212] @ (800a244 <DMA_SetConfig+0x228>)
  23200. 800a170: 4293 cmp r3, r2
  23201. 800a172: d03b beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23202. 800a174: 68fb ldr r3, [r7, #12]
  23203. 800a176: 681b ldr r3, [r3, #0]
  23204. 800a178: 4a33 ldr r2, [pc, #204] @ (800a248 <DMA_SetConfig+0x22c>)
  23205. 800a17a: 4293 cmp r3, r2
  23206. 800a17c: d036 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23207. 800a17e: 68fb ldr r3, [r7, #12]
  23208. 800a180: 681b ldr r3, [r3, #0]
  23209. 800a182: 4a32 ldr r2, [pc, #200] @ (800a24c <DMA_SetConfig+0x230>)
  23210. 800a184: 4293 cmp r3, r2
  23211. 800a186: d031 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23212. 800a188: 68fb ldr r3, [r7, #12]
  23213. 800a18a: 681b ldr r3, [r3, #0]
  23214. 800a18c: 4a30 ldr r2, [pc, #192] @ (800a250 <DMA_SetConfig+0x234>)
  23215. 800a18e: 4293 cmp r3, r2
  23216. 800a190: d02c beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23217. 800a192: 68fb ldr r3, [r7, #12]
  23218. 800a194: 681b ldr r3, [r3, #0]
  23219. 800a196: 4a2f ldr r2, [pc, #188] @ (800a254 <DMA_SetConfig+0x238>)
  23220. 800a198: 4293 cmp r3, r2
  23221. 800a19a: d027 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23222. 800a19c: 68fb ldr r3, [r7, #12]
  23223. 800a19e: 681b ldr r3, [r3, #0]
  23224. 800a1a0: 4a2d ldr r2, [pc, #180] @ (800a258 <DMA_SetConfig+0x23c>)
  23225. 800a1a2: 4293 cmp r3, r2
  23226. 800a1a4: d022 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23227. 800a1a6: 68fb ldr r3, [r7, #12]
  23228. 800a1a8: 681b ldr r3, [r3, #0]
  23229. 800a1aa: 4a2c ldr r2, [pc, #176] @ (800a25c <DMA_SetConfig+0x240>)
  23230. 800a1ac: 4293 cmp r3, r2
  23231. 800a1ae: d01d beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23232. 800a1b0: 68fb ldr r3, [r7, #12]
  23233. 800a1b2: 681b ldr r3, [r3, #0]
  23234. 800a1b4: 4a2a ldr r2, [pc, #168] @ (800a260 <DMA_SetConfig+0x244>)
  23235. 800a1b6: 4293 cmp r3, r2
  23236. 800a1b8: d018 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23237. 800a1ba: 68fb ldr r3, [r7, #12]
  23238. 800a1bc: 681b ldr r3, [r3, #0]
  23239. 800a1be: 4a29 ldr r2, [pc, #164] @ (800a264 <DMA_SetConfig+0x248>)
  23240. 800a1c0: 4293 cmp r3, r2
  23241. 800a1c2: d013 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23242. 800a1c4: 68fb ldr r3, [r7, #12]
  23243. 800a1c6: 681b ldr r3, [r3, #0]
  23244. 800a1c8: 4a27 ldr r2, [pc, #156] @ (800a268 <DMA_SetConfig+0x24c>)
  23245. 800a1ca: 4293 cmp r3, r2
  23246. 800a1cc: d00e beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23247. 800a1ce: 68fb ldr r3, [r7, #12]
  23248. 800a1d0: 681b ldr r3, [r3, #0]
  23249. 800a1d2: 4a26 ldr r2, [pc, #152] @ (800a26c <DMA_SetConfig+0x250>)
  23250. 800a1d4: 4293 cmp r3, r2
  23251. 800a1d6: d009 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23252. 800a1d8: 68fb ldr r3, [r7, #12]
  23253. 800a1da: 681b ldr r3, [r3, #0]
  23254. 800a1dc: 4a24 ldr r2, [pc, #144] @ (800a270 <DMA_SetConfig+0x254>)
  23255. 800a1de: 4293 cmp r3, r2
  23256. 800a1e0: d004 beq.n 800a1ec <DMA_SetConfig+0x1d0>
  23257. 800a1e2: 68fb ldr r3, [r7, #12]
  23258. 800a1e4: 681b ldr r3, [r3, #0]
  23259. 800a1e6: 4a23 ldr r2, [pc, #140] @ (800a274 <DMA_SetConfig+0x258>)
  23260. 800a1e8: 4293 cmp r3, r2
  23261. 800a1ea: d101 bne.n 800a1f0 <DMA_SetConfig+0x1d4>
  23262. 800a1ec: 2301 movs r3, #1
  23263. 800a1ee: e000 b.n 800a1f2 <DMA_SetConfig+0x1d6>
  23264. 800a1f0: 2300 movs r3, #0
  23265. 800a1f2: 2b00 cmp r3, #0
  23266. 800a1f4: d059 beq.n 800a2aa <DMA_SetConfig+0x28e>
  23267. {
  23268. /* Clear all interrupt flags at correct offset within the register */
  23269. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  23270. 800a1f6: 68fb ldr r3, [r7, #12]
  23271. 800a1f8: 6ddb ldr r3, [r3, #92] @ 0x5c
  23272. 800a1fa: f003 031f and.w r3, r3, #31
  23273. 800a1fe: 223f movs r2, #63 @ 0x3f
  23274. 800a200: 409a lsls r2, r3
  23275. 800a202: 697b ldr r3, [r7, #20]
  23276. 800a204: 609a str r2, [r3, #8]
  23277. /* Clear DBM bit */
  23278. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= (uint32_t)(~DMA_SxCR_DBM);
  23279. 800a206: 68fb ldr r3, [r7, #12]
  23280. 800a208: 681b ldr r3, [r3, #0]
  23281. 800a20a: 681a ldr r2, [r3, #0]
  23282. 800a20c: 68fb ldr r3, [r7, #12]
  23283. 800a20e: 681b ldr r3, [r3, #0]
  23284. 800a210: f422 2280 bic.w r2, r2, #262144 @ 0x40000
  23285. 800a214: 601a str r2, [r3, #0]
  23286. /* Configure DMA Stream data length */
  23287. ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength;
  23288. 800a216: 68fb ldr r3, [r7, #12]
  23289. 800a218: 681b ldr r3, [r3, #0]
  23290. 800a21a: 683a ldr r2, [r7, #0]
  23291. 800a21c: 605a str r2, [r3, #4]
  23292. /* Peripheral to Memory */
  23293. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  23294. 800a21e: 68fb ldr r3, [r7, #12]
  23295. 800a220: 689b ldr r3, [r3, #8]
  23296. 800a222: 2b40 cmp r3, #64 @ 0x40
  23297. 800a224: d138 bne.n 800a298 <DMA_SetConfig+0x27c>
  23298. {
  23299. /* Configure DMA Stream destination address */
  23300. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress;
  23301. 800a226: 68fb ldr r3, [r7, #12]
  23302. 800a228: 681b ldr r3, [r3, #0]
  23303. 800a22a: 687a ldr r2, [r7, #4]
  23304. 800a22c: 609a str r2, [r3, #8]
  23305. /* Configure DMA Stream source address */
  23306. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress;
  23307. 800a22e: 68fb ldr r3, [r7, #12]
  23308. 800a230: 681b ldr r3, [r3, #0]
  23309. 800a232: 68ba ldr r2, [r7, #8]
  23310. 800a234: 60da str r2, [r3, #12]
  23311. }
  23312. else
  23313. {
  23314. /* Nothing To Do */
  23315. }
  23316. }
  23317. 800a236: e086 b.n 800a346 <DMA_SetConfig+0x32a>
  23318. 800a238: 40020010 .word 0x40020010
  23319. 800a23c: 40020028 .word 0x40020028
  23320. 800a240: 40020040 .word 0x40020040
  23321. 800a244: 40020058 .word 0x40020058
  23322. 800a248: 40020070 .word 0x40020070
  23323. 800a24c: 40020088 .word 0x40020088
  23324. 800a250: 400200a0 .word 0x400200a0
  23325. 800a254: 400200b8 .word 0x400200b8
  23326. 800a258: 40020410 .word 0x40020410
  23327. 800a25c: 40020428 .word 0x40020428
  23328. 800a260: 40020440 .word 0x40020440
  23329. 800a264: 40020458 .word 0x40020458
  23330. 800a268: 40020470 .word 0x40020470
  23331. 800a26c: 40020488 .word 0x40020488
  23332. 800a270: 400204a0 .word 0x400204a0
  23333. 800a274: 400204b8 .word 0x400204b8
  23334. 800a278: 58025408 .word 0x58025408
  23335. 800a27c: 5802541c .word 0x5802541c
  23336. 800a280: 58025430 .word 0x58025430
  23337. 800a284: 58025444 .word 0x58025444
  23338. 800a288: 58025458 .word 0x58025458
  23339. 800a28c: 5802546c .word 0x5802546c
  23340. 800a290: 58025480 .word 0x58025480
  23341. 800a294: 58025494 .word 0x58025494
  23342. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress;
  23343. 800a298: 68fb ldr r3, [r7, #12]
  23344. 800a29a: 681b ldr r3, [r3, #0]
  23345. 800a29c: 68ba ldr r2, [r7, #8]
  23346. 800a29e: 609a str r2, [r3, #8]
  23347. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress;
  23348. 800a2a0: 68fb ldr r3, [r7, #12]
  23349. 800a2a2: 681b ldr r3, [r3, #0]
  23350. 800a2a4: 687a ldr r2, [r7, #4]
  23351. 800a2a6: 60da str r2, [r3, #12]
  23352. }
  23353. 800a2a8: e04d b.n 800a346 <DMA_SetConfig+0x32a>
  23354. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  23355. 800a2aa: 68fb ldr r3, [r7, #12]
  23356. 800a2ac: 681b ldr r3, [r3, #0]
  23357. 800a2ae: 4a29 ldr r2, [pc, #164] @ (800a354 <DMA_SetConfig+0x338>)
  23358. 800a2b0: 4293 cmp r3, r2
  23359. 800a2b2: d022 beq.n 800a2fa <DMA_SetConfig+0x2de>
  23360. 800a2b4: 68fb ldr r3, [r7, #12]
  23361. 800a2b6: 681b ldr r3, [r3, #0]
  23362. 800a2b8: 4a27 ldr r2, [pc, #156] @ (800a358 <DMA_SetConfig+0x33c>)
  23363. 800a2ba: 4293 cmp r3, r2
  23364. 800a2bc: d01d beq.n 800a2fa <DMA_SetConfig+0x2de>
  23365. 800a2be: 68fb ldr r3, [r7, #12]
  23366. 800a2c0: 681b ldr r3, [r3, #0]
  23367. 800a2c2: 4a26 ldr r2, [pc, #152] @ (800a35c <DMA_SetConfig+0x340>)
  23368. 800a2c4: 4293 cmp r3, r2
  23369. 800a2c6: d018 beq.n 800a2fa <DMA_SetConfig+0x2de>
  23370. 800a2c8: 68fb ldr r3, [r7, #12]
  23371. 800a2ca: 681b ldr r3, [r3, #0]
  23372. 800a2cc: 4a24 ldr r2, [pc, #144] @ (800a360 <DMA_SetConfig+0x344>)
  23373. 800a2ce: 4293 cmp r3, r2
  23374. 800a2d0: d013 beq.n 800a2fa <DMA_SetConfig+0x2de>
  23375. 800a2d2: 68fb ldr r3, [r7, #12]
  23376. 800a2d4: 681b ldr r3, [r3, #0]
  23377. 800a2d6: 4a23 ldr r2, [pc, #140] @ (800a364 <DMA_SetConfig+0x348>)
  23378. 800a2d8: 4293 cmp r3, r2
  23379. 800a2da: d00e beq.n 800a2fa <DMA_SetConfig+0x2de>
  23380. 800a2dc: 68fb ldr r3, [r7, #12]
  23381. 800a2de: 681b ldr r3, [r3, #0]
  23382. 800a2e0: 4a21 ldr r2, [pc, #132] @ (800a368 <DMA_SetConfig+0x34c>)
  23383. 800a2e2: 4293 cmp r3, r2
  23384. 800a2e4: d009 beq.n 800a2fa <DMA_SetConfig+0x2de>
  23385. 800a2e6: 68fb ldr r3, [r7, #12]
  23386. 800a2e8: 681b ldr r3, [r3, #0]
  23387. 800a2ea: 4a20 ldr r2, [pc, #128] @ (800a36c <DMA_SetConfig+0x350>)
  23388. 800a2ec: 4293 cmp r3, r2
  23389. 800a2ee: d004 beq.n 800a2fa <DMA_SetConfig+0x2de>
  23390. 800a2f0: 68fb ldr r3, [r7, #12]
  23391. 800a2f2: 681b ldr r3, [r3, #0]
  23392. 800a2f4: 4a1e ldr r2, [pc, #120] @ (800a370 <DMA_SetConfig+0x354>)
  23393. 800a2f6: 4293 cmp r3, r2
  23394. 800a2f8: d101 bne.n 800a2fe <DMA_SetConfig+0x2e2>
  23395. 800a2fa: 2301 movs r3, #1
  23396. 800a2fc: e000 b.n 800a300 <DMA_SetConfig+0x2e4>
  23397. 800a2fe: 2300 movs r3, #0
  23398. 800a300: 2b00 cmp r3, #0
  23399. 800a302: d020 beq.n 800a346 <DMA_SetConfig+0x32a>
  23400. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  23401. 800a304: 68fb ldr r3, [r7, #12]
  23402. 800a306: 6ddb ldr r3, [r3, #92] @ 0x5c
  23403. 800a308: f003 031f and.w r3, r3, #31
  23404. 800a30c: 2201 movs r2, #1
  23405. 800a30e: 409a lsls r2, r3
  23406. 800a310: 693b ldr r3, [r7, #16]
  23407. 800a312: 605a str r2, [r3, #4]
  23408. ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength;
  23409. 800a314: 68fb ldr r3, [r7, #12]
  23410. 800a316: 681b ldr r3, [r3, #0]
  23411. 800a318: 683a ldr r2, [r7, #0]
  23412. 800a31a: 605a str r2, [r3, #4]
  23413. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  23414. 800a31c: 68fb ldr r3, [r7, #12]
  23415. 800a31e: 689b ldr r3, [r3, #8]
  23416. 800a320: 2b40 cmp r3, #64 @ 0x40
  23417. 800a322: d108 bne.n 800a336 <DMA_SetConfig+0x31a>
  23418. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress;
  23419. 800a324: 68fb ldr r3, [r7, #12]
  23420. 800a326: 681b ldr r3, [r3, #0]
  23421. 800a328: 687a ldr r2, [r7, #4]
  23422. 800a32a: 609a str r2, [r3, #8]
  23423. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress;
  23424. 800a32c: 68fb ldr r3, [r7, #12]
  23425. 800a32e: 681b ldr r3, [r3, #0]
  23426. 800a330: 68ba ldr r2, [r7, #8]
  23427. 800a332: 60da str r2, [r3, #12]
  23428. }
  23429. 800a334: e007 b.n 800a346 <DMA_SetConfig+0x32a>
  23430. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress;
  23431. 800a336: 68fb ldr r3, [r7, #12]
  23432. 800a338: 681b ldr r3, [r3, #0]
  23433. 800a33a: 68ba ldr r2, [r7, #8]
  23434. 800a33c: 609a str r2, [r3, #8]
  23435. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress;
  23436. 800a33e: 68fb ldr r3, [r7, #12]
  23437. 800a340: 681b ldr r3, [r3, #0]
  23438. 800a342: 687a ldr r2, [r7, #4]
  23439. 800a344: 60da str r2, [r3, #12]
  23440. }
  23441. 800a346: bf00 nop
  23442. 800a348: 371c adds r7, #28
  23443. 800a34a: 46bd mov sp, r7
  23444. 800a34c: f85d 7b04 ldr.w r7, [sp], #4
  23445. 800a350: 4770 bx lr
  23446. 800a352: bf00 nop
  23447. 800a354: 58025408 .word 0x58025408
  23448. 800a358: 5802541c .word 0x5802541c
  23449. 800a35c: 58025430 .word 0x58025430
  23450. 800a360: 58025444 .word 0x58025444
  23451. 800a364: 58025458 .word 0x58025458
  23452. 800a368: 5802546c .word 0x5802546c
  23453. 800a36c: 58025480 .word 0x58025480
  23454. 800a370: 58025494 .word 0x58025494
  23455. 0800a374 <DMA_CalcBaseAndBitshift>:
  23456. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  23457. * the configuration information for the specified DMA Stream.
  23458. * @retval Stream base address
  23459. */
  23460. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  23461. {
  23462. 800a374: b480 push {r7}
  23463. 800a376: b085 sub sp, #20
  23464. 800a378: af00 add r7, sp, #0
  23465. 800a37a: 6078 str r0, [r7, #4]
  23466. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  23467. 800a37c: 687b ldr r3, [r7, #4]
  23468. 800a37e: 681b ldr r3, [r3, #0]
  23469. 800a380: 4a42 ldr r2, [pc, #264] @ (800a48c <DMA_CalcBaseAndBitshift+0x118>)
  23470. 800a382: 4293 cmp r3, r2
  23471. 800a384: d04a beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23472. 800a386: 687b ldr r3, [r7, #4]
  23473. 800a388: 681b ldr r3, [r3, #0]
  23474. 800a38a: 4a41 ldr r2, [pc, #260] @ (800a490 <DMA_CalcBaseAndBitshift+0x11c>)
  23475. 800a38c: 4293 cmp r3, r2
  23476. 800a38e: d045 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23477. 800a390: 687b ldr r3, [r7, #4]
  23478. 800a392: 681b ldr r3, [r3, #0]
  23479. 800a394: 4a3f ldr r2, [pc, #252] @ (800a494 <DMA_CalcBaseAndBitshift+0x120>)
  23480. 800a396: 4293 cmp r3, r2
  23481. 800a398: d040 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23482. 800a39a: 687b ldr r3, [r7, #4]
  23483. 800a39c: 681b ldr r3, [r3, #0]
  23484. 800a39e: 4a3e ldr r2, [pc, #248] @ (800a498 <DMA_CalcBaseAndBitshift+0x124>)
  23485. 800a3a0: 4293 cmp r3, r2
  23486. 800a3a2: d03b beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23487. 800a3a4: 687b ldr r3, [r7, #4]
  23488. 800a3a6: 681b ldr r3, [r3, #0]
  23489. 800a3a8: 4a3c ldr r2, [pc, #240] @ (800a49c <DMA_CalcBaseAndBitshift+0x128>)
  23490. 800a3aa: 4293 cmp r3, r2
  23491. 800a3ac: d036 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23492. 800a3ae: 687b ldr r3, [r7, #4]
  23493. 800a3b0: 681b ldr r3, [r3, #0]
  23494. 800a3b2: 4a3b ldr r2, [pc, #236] @ (800a4a0 <DMA_CalcBaseAndBitshift+0x12c>)
  23495. 800a3b4: 4293 cmp r3, r2
  23496. 800a3b6: d031 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23497. 800a3b8: 687b ldr r3, [r7, #4]
  23498. 800a3ba: 681b ldr r3, [r3, #0]
  23499. 800a3bc: 4a39 ldr r2, [pc, #228] @ (800a4a4 <DMA_CalcBaseAndBitshift+0x130>)
  23500. 800a3be: 4293 cmp r3, r2
  23501. 800a3c0: d02c beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23502. 800a3c2: 687b ldr r3, [r7, #4]
  23503. 800a3c4: 681b ldr r3, [r3, #0]
  23504. 800a3c6: 4a38 ldr r2, [pc, #224] @ (800a4a8 <DMA_CalcBaseAndBitshift+0x134>)
  23505. 800a3c8: 4293 cmp r3, r2
  23506. 800a3ca: d027 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23507. 800a3cc: 687b ldr r3, [r7, #4]
  23508. 800a3ce: 681b ldr r3, [r3, #0]
  23509. 800a3d0: 4a36 ldr r2, [pc, #216] @ (800a4ac <DMA_CalcBaseAndBitshift+0x138>)
  23510. 800a3d2: 4293 cmp r3, r2
  23511. 800a3d4: d022 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23512. 800a3d6: 687b ldr r3, [r7, #4]
  23513. 800a3d8: 681b ldr r3, [r3, #0]
  23514. 800a3da: 4a35 ldr r2, [pc, #212] @ (800a4b0 <DMA_CalcBaseAndBitshift+0x13c>)
  23515. 800a3dc: 4293 cmp r3, r2
  23516. 800a3de: d01d beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23517. 800a3e0: 687b ldr r3, [r7, #4]
  23518. 800a3e2: 681b ldr r3, [r3, #0]
  23519. 800a3e4: 4a33 ldr r2, [pc, #204] @ (800a4b4 <DMA_CalcBaseAndBitshift+0x140>)
  23520. 800a3e6: 4293 cmp r3, r2
  23521. 800a3e8: d018 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23522. 800a3ea: 687b ldr r3, [r7, #4]
  23523. 800a3ec: 681b ldr r3, [r3, #0]
  23524. 800a3ee: 4a32 ldr r2, [pc, #200] @ (800a4b8 <DMA_CalcBaseAndBitshift+0x144>)
  23525. 800a3f0: 4293 cmp r3, r2
  23526. 800a3f2: d013 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23527. 800a3f4: 687b ldr r3, [r7, #4]
  23528. 800a3f6: 681b ldr r3, [r3, #0]
  23529. 800a3f8: 4a30 ldr r2, [pc, #192] @ (800a4bc <DMA_CalcBaseAndBitshift+0x148>)
  23530. 800a3fa: 4293 cmp r3, r2
  23531. 800a3fc: d00e beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23532. 800a3fe: 687b ldr r3, [r7, #4]
  23533. 800a400: 681b ldr r3, [r3, #0]
  23534. 800a402: 4a2f ldr r2, [pc, #188] @ (800a4c0 <DMA_CalcBaseAndBitshift+0x14c>)
  23535. 800a404: 4293 cmp r3, r2
  23536. 800a406: d009 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23537. 800a408: 687b ldr r3, [r7, #4]
  23538. 800a40a: 681b ldr r3, [r3, #0]
  23539. 800a40c: 4a2d ldr r2, [pc, #180] @ (800a4c4 <DMA_CalcBaseAndBitshift+0x150>)
  23540. 800a40e: 4293 cmp r3, r2
  23541. 800a410: d004 beq.n 800a41c <DMA_CalcBaseAndBitshift+0xa8>
  23542. 800a412: 687b ldr r3, [r7, #4]
  23543. 800a414: 681b ldr r3, [r3, #0]
  23544. 800a416: 4a2c ldr r2, [pc, #176] @ (800a4c8 <DMA_CalcBaseAndBitshift+0x154>)
  23545. 800a418: 4293 cmp r3, r2
  23546. 800a41a: d101 bne.n 800a420 <DMA_CalcBaseAndBitshift+0xac>
  23547. 800a41c: 2301 movs r3, #1
  23548. 800a41e: e000 b.n 800a422 <DMA_CalcBaseAndBitshift+0xae>
  23549. 800a420: 2300 movs r3, #0
  23550. 800a422: 2b00 cmp r3, #0
  23551. 800a424: d024 beq.n 800a470 <DMA_CalcBaseAndBitshift+0xfc>
  23552. {
  23553. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  23554. 800a426: 687b ldr r3, [r7, #4]
  23555. 800a428: 681b ldr r3, [r3, #0]
  23556. 800a42a: b2db uxtb r3, r3
  23557. 800a42c: 3b10 subs r3, #16
  23558. 800a42e: 4a27 ldr r2, [pc, #156] @ (800a4cc <DMA_CalcBaseAndBitshift+0x158>)
  23559. 800a430: fba2 2303 umull r2, r3, r2, r3
  23560. 800a434: 091b lsrs r3, r3, #4
  23561. 800a436: 60fb str r3, [r7, #12]
  23562. /* lookup table for necessary bitshift of flags within status registers */
  23563. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  23564. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  23565. 800a438: 68fb ldr r3, [r7, #12]
  23566. 800a43a: f003 0307 and.w r3, r3, #7
  23567. 800a43e: 4a24 ldr r2, [pc, #144] @ (800a4d0 <DMA_CalcBaseAndBitshift+0x15c>)
  23568. 800a440: 5cd3 ldrb r3, [r2, r3]
  23569. 800a442: 461a mov r2, r3
  23570. 800a444: 687b ldr r3, [r7, #4]
  23571. 800a446: 65da str r2, [r3, #92] @ 0x5c
  23572. if (stream_number > 3U)
  23573. 800a448: 68fb ldr r3, [r7, #12]
  23574. 800a44a: 2b03 cmp r3, #3
  23575. 800a44c: d908 bls.n 800a460 <DMA_CalcBaseAndBitshift+0xec>
  23576. {
  23577. /* return pointer to HISR and HIFCR */
  23578. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  23579. 800a44e: 687b ldr r3, [r7, #4]
  23580. 800a450: 681b ldr r3, [r3, #0]
  23581. 800a452: 461a mov r2, r3
  23582. 800a454: 4b1f ldr r3, [pc, #124] @ (800a4d4 <DMA_CalcBaseAndBitshift+0x160>)
  23583. 800a456: 4013 ands r3, r2
  23584. 800a458: 1d1a adds r2, r3, #4
  23585. 800a45a: 687b ldr r3, [r7, #4]
  23586. 800a45c: 659a str r2, [r3, #88] @ 0x58
  23587. 800a45e: e00d b.n 800a47c <DMA_CalcBaseAndBitshift+0x108>
  23588. }
  23589. else
  23590. {
  23591. /* return pointer to LISR and LIFCR */
  23592. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  23593. 800a460: 687b ldr r3, [r7, #4]
  23594. 800a462: 681b ldr r3, [r3, #0]
  23595. 800a464: 461a mov r2, r3
  23596. 800a466: 4b1b ldr r3, [pc, #108] @ (800a4d4 <DMA_CalcBaseAndBitshift+0x160>)
  23597. 800a468: 4013 ands r3, r2
  23598. 800a46a: 687a ldr r2, [r7, #4]
  23599. 800a46c: 6593 str r3, [r2, #88] @ 0x58
  23600. 800a46e: e005 b.n 800a47c <DMA_CalcBaseAndBitshift+0x108>
  23601. }
  23602. }
  23603. else /* BDMA instance(s) */
  23604. {
  23605. /* return pointer to ISR and IFCR */
  23606. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  23607. 800a470: 687b ldr r3, [r7, #4]
  23608. 800a472: 681b ldr r3, [r3, #0]
  23609. 800a474: f023 02ff bic.w r2, r3, #255 @ 0xff
  23610. 800a478: 687b ldr r3, [r7, #4]
  23611. 800a47a: 659a str r2, [r3, #88] @ 0x58
  23612. }
  23613. return hdma->StreamBaseAddress;
  23614. 800a47c: 687b ldr r3, [r7, #4]
  23615. 800a47e: 6d9b ldr r3, [r3, #88] @ 0x58
  23616. }
  23617. 800a480: 4618 mov r0, r3
  23618. 800a482: 3714 adds r7, #20
  23619. 800a484: 46bd mov sp, r7
  23620. 800a486: f85d 7b04 ldr.w r7, [sp], #4
  23621. 800a48a: 4770 bx lr
  23622. 800a48c: 40020010 .word 0x40020010
  23623. 800a490: 40020028 .word 0x40020028
  23624. 800a494: 40020040 .word 0x40020040
  23625. 800a498: 40020058 .word 0x40020058
  23626. 800a49c: 40020070 .word 0x40020070
  23627. 800a4a0: 40020088 .word 0x40020088
  23628. 800a4a4: 400200a0 .word 0x400200a0
  23629. 800a4a8: 400200b8 .word 0x400200b8
  23630. 800a4ac: 40020410 .word 0x40020410
  23631. 800a4b0: 40020428 .word 0x40020428
  23632. 800a4b4: 40020440 .word 0x40020440
  23633. 800a4b8: 40020458 .word 0x40020458
  23634. 800a4bc: 40020470 .word 0x40020470
  23635. 800a4c0: 40020488 .word 0x40020488
  23636. 800a4c4: 400204a0 .word 0x400204a0
  23637. 800a4c8: 400204b8 .word 0x400204b8
  23638. 800a4cc: aaaaaaab .word 0xaaaaaaab
  23639. 800a4d0: 08018a38 .word 0x08018a38
  23640. 800a4d4: fffffc00 .word 0xfffffc00
  23641. 0800a4d8 <DMA_CheckFifoParam>:
  23642. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  23643. * the configuration information for the specified DMA Stream.
  23644. * @retval HAL status
  23645. */
  23646. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  23647. {
  23648. 800a4d8: b480 push {r7}
  23649. 800a4da: b085 sub sp, #20
  23650. 800a4dc: af00 add r7, sp, #0
  23651. 800a4de: 6078 str r0, [r7, #4]
  23652. HAL_StatusTypeDef status = HAL_OK;
  23653. 800a4e0: 2300 movs r3, #0
  23654. 800a4e2: 73fb strb r3, [r7, #15]
  23655. /* Memory Data size equal to Byte */
  23656. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  23657. 800a4e4: 687b ldr r3, [r7, #4]
  23658. 800a4e6: 699b ldr r3, [r3, #24]
  23659. 800a4e8: 2b00 cmp r3, #0
  23660. 800a4ea: d120 bne.n 800a52e <DMA_CheckFifoParam+0x56>
  23661. {
  23662. switch (hdma->Init.FIFOThreshold)
  23663. 800a4ec: 687b ldr r3, [r7, #4]
  23664. 800a4ee: 6a9b ldr r3, [r3, #40] @ 0x28
  23665. 800a4f0: 2b03 cmp r3, #3
  23666. 800a4f2: d858 bhi.n 800a5a6 <DMA_CheckFifoParam+0xce>
  23667. 800a4f4: a201 add r2, pc, #4 @ (adr r2, 800a4fc <DMA_CheckFifoParam+0x24>)
  23668. 800a4f6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  23669. 800a4fa: bf00 nop
  23670. 800a4fc: 0800a50d .word 0x0800a50d
  23671. 800a500: 0800a51f .word 0x0800a51f
  23672. 800a504: 0800a50d .word 0x0800a50d
  23673. 800a508: 0800a5a7 .word 0x0800a5a7
  23674. {
  23675. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  23676. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  23677. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  23678. 800a50c: 687b ldr r3, [r7, #4]
  23679. 800a50e: 6adb ldr r3, [r3, #44] @ 0x2c
  23680. 800a510: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  23681. 800a514: 2b00 cmp r3, #0
  23682. 800a516: d048 beq.n 800a5aa <DMA_CheckFifoParam+0xd2>
  23683. {
  23684. status = HAL_ERROR;
  23685. 800a518: 2301 movs r3, #1
  23686. 800a51a: 73fb strb r3, [r7, #15]
  23687. }
  23688. break;
  23689. 800a51c: e045 b.n 800a5aa <DMA_CheckFifoParam+0xd2>
  23690. case DMA_FIFO_THRESHOLD_HALFFULL:
  23691. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  23692. 800a51e: 687b ldr r3, [r7, #4]
  23693. 800a520: 6adb ldr r3, [r3, #44] @ 0x2c
  23694. 800a522: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  23695. 800a526: d142 bne.n 800a5ae <DMA_CheckFifoParam+0xd6>
  23696. {
  23697. status = HAL_ERROR;
  23698. 800a528: 2301 movs r3, #1
  23699. 800a52a: 73fb strb r3, [r7, #15]
  23700. }
  23701. break;
  23702. 800a52c: e03f b.n 800a5ae <DMA_CheckFifoParam+0xd6>
  23703. break;
  23704. }
  23705. }
  23706. /* Memory Data size equal to Half-Word */
  23707. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  23708. 800a52e: 687b ldr r3, [r7, #4]
  23709. 800a530: 699b ldr r3, [r3, #24]
  23710. 800a532: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  23711. 800a536: d123 bne.n 800a580 <DMA_CheckFifoParam+0xa8>
  23712. {
  23713. switch (hdma->Init.FIFOThreshold)
  23714. 800a538: 687b ldr r3, [r7, #4]
  23715. 800a53a: 6a9b ldr r3, [r3, #40] @ 0x28
  23716. 800a53c: 2b03 cmp r3, #3
  23717. 800a53e: d838 bhi.n 800a5b2 <DMA_CheckFifoParam+0xda>
  23718. 800a540: a201 add r2, pc, #4 @ (adr r2, 800a548 <DMA_CheckFifoParam+0x70>)
  23719. 800a542: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  23720. 800a546: bf00 nop
  23721. 800a548: 0800a559 .word 0x0800a559
  23722. 800a54c: 0800a55f .word 0x0800a55f
  23723. 800a550: 0800a559 .word 0x0800a559
  23724. 800a554: 0800a571 .word 0x0800a571
  23725. {
  23726. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  23727. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  23728. status = HAL_ERROR;
  23729. 800a558: 2301 movs r3, #1
  23730. 800a55a: 73fb strb r3, [r7, #15]
  23731. break;
  23732. 800a55c: e030 b.n 800a5c0 <DMA_CheckFifoParam+0xe8>
  23733. case DMA_FIFO_THRESHOLD_HALFFULL:
  23734. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  23735. 800a55e: 687b ldr r3, [r7, #4]
  23736. 800a560: 6adb ldr r3, [r3, #44] @ 0x2c
  23737. 800a562: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  23738. 800a566: 2b00 cmp r3, #0
  23739. 800a568: d025 beq.n 800a5b6 <DMA_CheckFifoParam+0xde>
  23740. {
  23741. status = HAL_ERROR;
  23742. 800a56a: 2301 movs r3, #1
  23743. 800a56c: 73fb strb r3, [r7, #15]
  23744. }
  23745. break;
  23746. 800a56e: e022 b.n 800a5b6 <DMA_CheckFifoParam+0xde>
  23747. case DMA_FIFO_THRESHOLD_FULL:
  23748. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  23749. 800a570: 687b ldr r3, [r7, #4]
  23750. 800a572: 6adb ldr r3, [r3, #44] @ 0x2c
  23751. 800a574: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  23752. 800a578: d11f bne.n 800a5ba <DMA_CheckFifoParam+0xe2>
  23753. {
  23754. status = HAL_ERROR;
  23755. 800a57a: 2301 movs r3, #1
  23756. 800a57c: 73fb strb r3, [r7, #15]
  23757. }
  23758. break;
  23759. 800a57e: e01c b.n 800a5ba <DMA_CheckFifoParam+0xe2>
  23760. }
  23761. /* Memory Data size equal to Word */
  23762. else
  23763. {
  23764. switch (hdma->Init.FIFOThreshold)
  23765. 800a580: 687b ldr r3, [r7, #4]
  23766. 800a582: 6a9b ldr r3, [r3, #40] @ 0x28
  23767. 800a584: 2b02 cmp r3, #2
  23768. 800a586: d902 bls.n 800a58e <DMA_CheckFifoParam+0xb6>
  23769. 800a588: 2b03 cmp r3, #3
  23770. 800a58a: d003 beq.n 800a594 <DMA_CheckFifoParam+0xbc>
  23771. status = HAL_ERROR;
  23772. }
  23773. break;
  23774. default:
  23775. break;
  23776. 800a58c: e018 b.n 800a5c0 <DMA_CheckFifoParam+0xe8>
  23777. status = HAL_ERROR;
  23778. 800a58e: 2301 movs r3, #1
  23779. 800a590: 73fb strb r3, [r7, #15]
  23780. break;
  23781. 800a592: e015 b.n 800a5c0 <DMA_CheckFifoParam+0xe8>
  23782. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  23783. 800a594: 687b ldr r3, [r7, #4]
  23784. 800a596: 6adb ldr r3, [r3, #44] @ 0x2c
  23785. 800a598: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  23786. 800a59c: 2b00 cmp r3, #0
  23787. 800a59e: d00e beq.n 800a5be <DMA_CheckFifoParam+0xe6>
  23788. status = HAL_ERROR;
  23789. 800a5a0: 2301 movs r3, #1
  23790. 800a5a2: 73fb strb r3, [r7, #15]
  23791. break;
  23792. 800a5a4: e00b b.n 800a5be <DMA_CheckFifoParam+0xe6>
  23793. break;
  23794. 800a5a6: bf00 nop
  23795. 800a5a8: e00a b.n 800a5c0 <DMA_CheckFifoParam+0xe8>
  23796. break;
  23797. 800a5aa: bf00 nop
  23798. 800a5ac: e008 b.n 800a5c0 <DMA_CheckFifoParam+0xe8>
  23799. break;
  23800. 800a5ae: bf00 nop
  23801. 800a5b0: e006 b.n 800a5c0 <DMA_CheckFifoParam+0xe8>
  23802. break;
  23803. 800a5b2: bf00 nop
  23804. 800a5b4: e004 b.n 800a5c0 <DMA_CheckFifoParam+0xe8>
  23805. break;
  23806. 800a5b6: bf00 nop
  23807. 800a5b8: e002 b.n 800a5c0 <DMA_CheckFifoParam+0xe8>
  23808. break;
  23809. 800a5ba: bf00 nop
  23810. 800a5bc: e000 b.n 800a5c0 <DMA_CheckFifoParam+0xe8>
  23811. break;
  23812. 800a5be: bf00 nop
  23813. }
  23814. }
  23815. return status;
  23816. 800a5c0: 7bfb ldrb r3, [r7, #15]
  23817. }
  23818. 800a5c2: 4618 mov r0, r3
  23819. 800a5c4: 3714 adds r7, #20
  23820. 800a5c6: 46bd mov sp, r7
  23821. 800a5c8: f85d 7b04 ldr.w r7, [sp], #4
  23822. 800a5cc: 4770 bx lr
  23823. 800a5ce: bf00 nop
  23824. 0800a5d0 <DMA_CalcDMAMUXChannelBaseAndMask>:
  23825. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  23826. * the configuration information for the specified DMA Stream.
  23827. * @retval HAL status
  23828. */
  23829. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  23830. {
  23831. 800a5d0: b480 push {r7}
  23832. 800a5d2: b085 sub sp, #20
  23833. 800a5d4: af00 add r7, sp, #0
  23834. 800a5d6: 6078 str r0, [r7, #4]
  23835. uint32_t stream_number;
  23836. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  23837. 800a5d8: 687b ldr r3, [r7, #4]
  23838. 800a5da: 681b ldr r3, [r3, #0]
  23839. 800a5dc: 60bb str r3, [r7, #8]
  23840. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  23841. 800a5de: 687b ldr r3, [r7, #4]
  23842. 800a5e0: 681b ldr r3, [r3, #0]
  23843. 800a5e2: 4a38 ldr r2, [pc, #224] @ (800a6c4 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  23844. 800a5e4: 4293 cmp r3, r2
  23845. 800a5e6: d022 beq.n 800a62e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  23846. 800a5e8: 687b ldr r3, [r7, #4]
  23847. 800a5ea: 681b ldr r3, [r3, #0]
  23848. 800a5ec: 4a36 ldr r2, [pc, #216] @ (800a6c8 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  23849. 800a5ee: 4293 cmp r3, r2
  23850. 800a5f0: d01d beq.n 800a62e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  23851. 800a5f2: 687b ldr r3, [r7, #4]
  23852. 800a5f4: 681b ldr r3, [r3, #0]
  23853. 800a5f6: 4a35 ldr r2, [pc, #212] @ (800a6cc <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  23854. 800a5f8: 4293 cmp r3, r2
  23855. 800a5fa: d018 beq.n 800a62e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  23856. 800a5fc: 687b ldr r3, [r7, #4]
  23857. 800a5fe: 681b ldr r3, [r3, #0]
  23858. 800a600: 4a33 ldr r2, [pc, #204] @ (800a6d0 <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  23859. 800a602: 4293 cmp r3, r2
  23860. 800a604: d013 beq.n 800a62e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  23861. 800a606: 687b ldr r3, [r7, #4]
  23862. 800a608: 681b ldr r3, [r3, #0]
  23863. 800a60a: 4a32 ldr r2, [pc, #200] @ (800a6d4 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  23864. 800a60c: 4293 cmp r3, r2
  23865. 800a60e: d00e beq.n 800a62e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  23866. 800a610: 687b ldr r3, [r7, #4]
  23867. 800a612: 681b ldr r3, [r3, #0]
  23868. 800a614: 4a30 ldr r2, [pc, #192] @ (800a6d8 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  23869. 800a616: 4293 cmp r3, r2
  23870. 800a618: d009 beq.n 800a62e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  23871. 800a61a: 687b ldr r3, [r7, #4]
  23872. 800a61c: 681b ldr r3, [r3, #0]
  23873. 800a61e: 4a2f ldr r2, [pc, #188] @ (800a6dc <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  23874. 800a620: 4293 cmp r3, r2
  23875. 800a622: d004 beq.n 800a62e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  23876. 800a624: 687b ldr r3, [r7, #4]
  23877. 800a626: 681b ldr r3, [r3, #0]
  23878. 800a628: 4a2d ldr r2, [pc, #180] @ (800a6e0 <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  23879. 800a62a: 4293 cmp r3, r2
  23880. 800a62c: d101 bne.n 800a632 <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  23881. 800a62e: 2301 movs r3, #1
  23882. 800a630: e000 b.n 800a634 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  23883. 800a632: 2300 movs r3, #0
  23884. 800a634: 2b00 cmp r3, #0
  23885. 800a636: d01a beq.n 800a66e <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  23886. {
  23887. /* BDMA Channels are connected to DMAMUX2 channels */
  23888. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  23889. 800a638: 687b ldr r3, [r7, #4]
  23890. 800a63a: 681b ldr r3, [r3, #0]
  23891. 800a63c: b2db uxtb r3, r3
  23892. 800a63e: 3b08 subs r3, #8
  23893. 800a640: 4a28 ldr r2, [pc, #160] @ (800a6e4 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  23894. 800a642: fba2 2303 umull r2, r3, r2, r3
  23895. 800a646: 091b lsrs r3, r3, #4
  23896. 800a648: 60fb str r3, [r7, #12]
  23897. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  23898. 800a64a: 68fa ldr r2, [r7, #12]
  23899. 800a64c: 4b26 ldr r3, [pc, #152] @ (800a6e8 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  23900. 800a64e: 4413 add r3, r2
  23901. 800a650: 009b lsls r3, r3, #2
  23902. 800a652: 461a mov r2, r3
  23903. 800a654: 687b ldr r3, [r7, #4]
  23904. 800a656: 661a str r2, [r3, #96] @ 0x60
  23905. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  23906. 800a658: 687b ldr r3, [r7, #4]
  23907. 800a65a: 4a24 ldr r2, [pc, #144] @ (800a6ec <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  23908. 800a65c: 665a str r2, [r3, #100] @ 0x64
  23909. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  23910. 800a65e: 68fb ldr r3, [r7, #12]
  23911. 800a660: f003 031f and.w r3, r3, #31
  23912. 800a664: 2201 movs r2, #1
  23913. 800a666: 409a lsls r2, r3
  23914. 800a668: 687b ldr r3, [r7, #4]
  23915. 800a66a: 669a str r2, [r3, #104] @ 0x68
  23916. }
  23917. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  23918. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  23919. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  23920. }
  23921. }
  23922. 800a66c: e024 b.n 800a6b8 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  23923. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  23924. 800a66e: 687b ldr r3, [r7, #4]
  23925. 800a670: 681b ldr r3, [r3, #0]
  23926. 800a672: b2db uxtb r3, r3
  23927. 800a674: 3b10 subs r3, #16
  23928. 800a676: 4a1e ldr r2, [pc, #120] @ (800a6f0 <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  23929. 800a678: fba2 2303 umull r2, r3, r2, r3
  23930. 800a67c: 091b lsrs r3, r3, #4
  23931. 800a67e: 60fb str r3, [r7, #12]
  23932. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  23933. 800a680: 68bb ldr r3, [r7, #8]
  23934. 800a682: 4a1c ldr r2, [pc, #112] @ (800a6f4 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  23935. 800a684: 4293 cmp r3, r2
  23936. 800a686: d806 bhi.n 800a696 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  23937. 800a688: 68bb ldr r3, [r7, #8]
  23938. 800a68a: 4a1b ldr r2, [pc, #108] @ (800a6f8 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  23939. 800a68c: 4293 cmp r3, r2
  23940. 800a68e: d902 bls.n 800a696 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  23941. stream_number += 8U;
  23942. 800a690: 68fb ldr r3, [r7, #12]
  23943. 800a692: 3308 adds r3, #8
  23944. 800a694: 60fb str r3, [r7, #12]
  23945. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  23946. 800a696: 68fa ldr r2, [r7, #12]
  23947. 800a698: 4b18 ldr r3, [pc, #96] @ (800a6fc <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  23948. 800a69a: 4413 add r3, r2
  23949. 800a69c: 009b lsls r3, r3, #2
  23950. 800a69e: 461a mov r2, r3
  23951. 800a6a0: 687b ldr r3, [r7, #4]
  23952. 800a6a2: 661a str r2, [r3, #96] @ 0x60
  23953. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  23954. 800a6a4: 687b ldr r3, [r7, #4]
  23955. 800a6a6: 4a16 ldr r2, [pc, #88] @ (800a700 <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  23956. 800a6a8: 665a str r2, [r3, #100] @ 0x64
  23957. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  23958. 800a6aa: 68fb ldr r3, [r7, #12]
  23959. 800a6ac: f003 031f and.w r3, r3, #31
  23960. 800a6b0: 2201 movs r2, #1
  23961. 800a6b2: 409a lsls r2, r3
  23962. 800a6b4: 687b ldr r3, [r7, #4]
  23963. 800a6b6: 669a str r2, [r3, #104] @ 0x68
  23964. }
  23965. 800a6b8: bf00 nop
  23966. 800a6ba: 3714 adds r7, #20
  23967. 800a6bc: 46bd mov sp, r7
  23968. 800a6be: f85d 7b04 ldr.w r7, [sp], #4
  23969. 800a6c2: 4770 bx lr
  23970. 800a6c4: 58025408 .word 0x58025408
  23971. 800a6c8: 5802541c .word 0x5802541c
  23972. 800a6cc: 58025430 .word 0x58025430
  23973. 800a6d0: 58025444 .word 0x58025444
  23974. 800a6d4: 58025458 .word 0x58025458
  23975. 800a6d8: 5802546c .word 0x5802546c
  23976. 800a6dc: 58025480 .word 0x58025480
  23977. 800a6e0: 58025494 .word 0x58025494
  23978. 800a6e4: cccccccd .word 0xcccccccd
  23979. 800a6e8: 16009600 .word 0x16009600
  23980. 800a6ec: 58025880 .word 0x58025880
  23981. 800a6f0: aaaaaaab .word 0xaaaaaaab
  23982. 800a6f4: 400204b8 .word 0x400204b8
  23983. 800a6f8: 4002040f .word 0x4002040f
  23984. 800a6fc: 10008200 .word 0x10008200
  23985. 800a700: 40020880 .word 0x40020880
  23986. 0800a704 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  23987. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  23988. * the configuration information for the specified DMA Stream.
  23989. * @retval HAL status
  23990. */
  23991. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  23992. {
  23993. 800a704: b480 push {r7}
  23994. 800a706: b085 sub sp, #20
  23995. 800a708: af00 add r7, sp, #0
  23996. 800a70a: 6078 str r0, [r7, #4]
  23997. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  23998. 800a70c: 687b ldr r3, [r7, #4]
  23999. 800a70e: 685b ldr r3, [r3, #4]
  24000. 800a710: b2db uxtb r3, r3
  24001. 800a712: 60fb str r3, [r7, #12]
  24002. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  24003. 800a714: 68fb ldr r3, [r7, #12]
  24004. 800a716: 2b00 cmp r3, #0
  24005. 800a718: d04a beq.n 800a7b0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  24006. 800a71a: 68fb ldr r3, [r7, #12]
  24007. 800a71c: 2b08 cmp r3, #8
  24008. 800a71e: d847 bhi.n 800a7b0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  24009. {
  24010. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  24011. 800a720: 687b ldr r3, [r7, #4]
  24012. 800a722: 681b ldr r3, [r3, #0]
  24013. 800a724: 4a25 ldr r2, [pc, #148] @ (800a7bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  24014. 800a726: 4293 cmp r3, r2
  24015. 800a728: d022 beq.n 800a770 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24016. 800a72a: 687b ldr r3, [r7, #4]
  24017. 800a72c: 681b ldr r3, [r3, #0]
  24018. 800a72e: 4a24 ldr r2, [pc, #144] @ (800a7c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  24019. 800a730: 4293 cmp r3, r2
  24020. 800a732: d01d beq.n 800a770 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24021. 800a734: 687b ldr r3, [r7, #4]
  24022. 800a736: 681b ldr r3, [r3, #0]
  24023. 800a738: 4a22 ldr r2, [pc, #136] @ (800a7c4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  24024. 800a73a: 4293 cmp r3, r2
  24025. 800a73c: d018 beq.n 800a770 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24026. 800a73e: 687b ldr r3, [r7, #4]
  24027. 800a740: 681b ldr r3, [r3, #0]
  24028. 800a742: 4a21 ldr r2, [pc, #132] @ (800a7c8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  24029. 800a744: 4293 cmp r3, r2
  24030. 800a746: d013 beq.n 800a770 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24031. 800a748: 687b ldr r3, [r7, #4]
  24032. 800a74a: 681b ldr r3, [r3, #0]
  24033. 800a74c: 4a1f ldr r2, [pc, #124] @ (800a7cc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  24034. 800a74e: 4293 cmp r3, r2
  24035. 800a750: d00e beq.n 800a770 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24036. 800a752: 687b ldr r3, [r7, #4]
  24037. 800a754: 681b ldr r3, [r3, #0]
  24038. 800a756: 4a1e ldr r2, [pc, #120] @ (800a7d0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  24039. 800a758: 4293 cmp r3, r2
  24040. 800a75a: d009 beq.n 800a770 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24041. 800a75c: 687b ldr r3, [r7, #4]
  24042. 800a75e: 681b ldr r3, [r3, #0]
  24043. 800a760: 4a1c ldr r2, [pc, #112] @ (800a7d4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  24044. 800a762: 4293 cmp r3, r2
  24045. 800a764: d004 beq.n 800a770 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24046. 800a766: 687b ldr r3, [r7, #4]
  24047. 800a768: 681b ldr r3, [r3, #0]
  24048. 800a76a: 4a1b ldr r2, [pc, #108] @ (800a7d8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  24049. 800a76c: 4293 cmp r3, r2
  24050. 800a76e: d101 bne.n 800a774 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  24051. 800a770: 2301 movs r3, #1
  24052. 800a772: e000 b.n 800a776 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  24053. 800a774: 2300 movs r3, #0
  24054. 800a776: 2b00 cmp r3, #0
  24055. 800a778: d00a beq.n 800a790 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  24056. {
  24057. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  24058. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  24059. 800a77a: 68fa ldr r2, [r7, #12]
  24060. 800a77c: 4b17 ldr r3, [pc, #92] @ (800a7dc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  24061. 800a77e: 4413 add r3, r2
  24062. 800a780: 009b lsls r3, r3, #2
  24063. 800a782: 461a mov r2, r3
  24064. 800a784: 687b ldr r3, [r7, #4]
  24065. 800a786: 66da str r2, [r3, #108] @ 0x6c
  24066. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  24067. 800a788: 687b ldr r3, [r7, #4]
  24068. 800a78a: 4a15 ldr r2, [pc, #84] @ (800a7e0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  24069. 800a78c: 671a str r2, [r3, #112] @ 0x70
  24070. 800a78e: e009 b.n 800a7a4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  24071. }
  24072. else
  24073. {
  24074. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  24075. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  24076. 800a790: 68fa ldr r2, [r7, #12]
  24077. 800a792: 4b14 ldr r3, [pc, #80] @ (800a7e4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  24078. 800a794: 4413 add r3, r2
  24079. 800a796: 009b lsls r3, r3, #2
  24080. 800a798: 461a mov r2, r3
  24081. 800a79a: 687b ldr r3, [r7, #4]
  24082. 800a79c: 66da str r2, [r3, #108] @ 0x6c
  24083. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  24084. 800a79e: 687b ldr r3, [r7, #4]
  24085. 800a7a0: 4a11 ldr r2, [pc, #68] @ (800a7e8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  24086. 800a7a2: 671a str r2, [r3, #112] @ 0x70
  24087. }
  24088. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  24089. 800a7a4: 68fb ldr r3, [r7, #12]
  24090. 800a7a6: 3b01 subs r3, #1
  24091. 800a7a8: 2201 movs r2, #1
  24092. 800a7aa: 409a lsls r2, r3
  24093. 800a7ac: 687b ldr r3, [r7, #4]
  24094. 800a7ae: 675a str r2, [r3, #116] @ 0x74
  24095. }
  24096. }
  24097. 800a7b0: bf00 nop
  24098. 800a7b2: 3714 adds r7, #20
  24099. 800a7b4: 46bd mov sp, r7
  24100. 800a7b6: f85d 7b04 ldr.w r7, [sp], #4
  24101. 800a7ba: 4770 bx lr
  24102. 800a7bc: 58025408 .word 0x58025408
  24103. 800a7c0: 5802541c .word 0x5802541c
  24104. 800a7c4: 58025430 .word 0x58025430
  24105. 800a7c8: 58025444 .word 0x58025444
  24106. 800a7cc: 58025458 .word 0x58025458
  24107. 800a7d0: 5802546c .word 0x5802546c
  24108. 800a7d4: 58025480 .word 0x58025480
  24109. 800a7d8: 58025494 .word 0x58025494
  24110. 800a7dc: 1600963f .word 0x1600963f
  24111. 800a7e0: 58025940 .word 0x58025940
  24112. 800a7e4: 1000823f .word 0x1000823f
  24113. 800a7e8: 40020940 .word 0x40020940
  24114. 0800a7ec <HAL_GPIO_Init>:
  24115. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  24116. * the configuration information for the specified GPIO peripheral.
  24117. * @retval None
  24118. */
  24119. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  24120. {
  24121. 800a7ec: b480 push {r7}
  24122. 800a7ee: b089 sub sp, #36 @ 0x24
  24123. 800a7f0: af00 add r7, sp, #0
  24124. 800a7f2: 6078 str r0, [r7, #4]
  24125. 800a7f4: 6039 str r1, [r7, #0]
  24126. uint32_t position = 0x00U;
  24127. 800a7f6: 2300 movs r3, #0
  24128. 800a7f8: 61fb str r3, [r7, #28]
  24129. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  24130. #if defined(DUAL_CORE) && defined(CORE_CM4)
  24131. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  24132. #else
  24133. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  24134. 800a7fa: 4b89 ldr r3, [pc, #548] @ (800aa20 <HAL_GPIO_Init+0x234>)
  24135. 800a7fc: 617b str r3, [r7, #20]
  24136. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  24137. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  24138. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  24139. /* Configure the port pins */
  24140. while (((GPIO_Init->Pin) >> position) != 0x00U)
  24141. 800a7fe: e194 b.n 800ab2a <HAL_GPIO_Init+0x33e>
  24142. {
  24143. /* Get current io position */
  24144. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  24145. 800a800: 683b ldr r3, [r7, #0]
  24146. 800a802: 681a ldr r2, [r3, #0]
  24147. 800a804: 2101 movs r1, #1
  24148. 800a806: 69fb ldr r3, [r7, #28]
  24149. 800a808: fa01 f303 lsl.w r3, r1, r3
  24150. 800a80c: 4013 ands r3, r2
  24151. 800a80e: 613b str r3, [r7, #16]
  24152. if (iocurrent != 0x00U)
  24153. 800a810: 693b ldr r3, [r7, #16]
  24154. 800a812: 2b00 cmp r3, #0
  24155. 800a814: f000 8186 beq.w 800ab24 <HAL_GPIO_Init+0x338>
  24156. {
  24157. /*--------------------- GPIO Mode Configuration ------------------------*/
  24158. /* In case of Output or Alternate function mode selection */
  24159. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  24160. 800a818: 683b ldr r3, [r7, #0]
  24161. 800a81a: 685b ldr r3, [r3, #4]
  24162. 800a81c: f003 0303 and.w r3, r3, #3
  24163. 800a820: 2b01 cmp r3, #1
  24164. 800a822: d005 beq.n 800a830 <HAL_GPIO_Init+0x44>
  24165. 800a824: 683b ldr r3, [r7, #0]
  24166. 800a826: 685b ldr r3, [r3, #4]
  24167. 800a828: f003 0303 and.w r3, r3, #3
  24168. 800a82c: 2b02 cmp r3, #2
  24169. 800a82e: d130 bne.n 800a892 <HAL_GPIO_Init+0xa6>
  24170. {
  24171. /* Check the Speed parameter */
  24172. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  24173. /* Configure the IO Speed */
  24174. temp = GPIOx->OSPEEDR;
  24175. 800a830: 687b ldr r3, [r7, #4]
  24176. 800a832: 689b ldr r3, [r3, #8]
  24177. 800a834: 61bb str r3, [r7, #24]
  24178. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  24179. 800a836: 69fb ldr r3, [r7, #28]
  24180. 800a838: 005b lsls r3, r3, #1
  24181. 800a83a: 2203 movs r2, #3
  24182. 800a83c: fa02 f303 lsl.w r3, r2, r3
  24183. 800a840: 43db mvns r3, r3
  24184. 800a842: 69ba ldr r2, [r7, #24]
  24185. 800a844: 4013 ands r3, r2
  24186. 800a846: 61bb str r3, [r7, #24]
  24187. temp |= (GPIO_Init->Speed << (position * 2U));
  24188. 800a848: 683b ldr r3, [r7, #0]
  24189. 800a84a: 68da ldr r2, [r3, #12]
  24190. 800a84c: 69fb ldr r3, [r7, #28]
  24191. 800a84e: 005b lsls r3, r3, #1
  24192. 800a850: fa02 f303 lsl.w r3, r2, r3
  24193. 800a854: 69ba ldr r2, [r7, #24]
  24194. 800a856: 4313 orrs r3, r2
  24195. 800a858: 61bb str r3, [r7, #24]
  24196. GPIOx->OSPEEDR = temp;
  24197. 800a85a: 687b ldr r3, [r7, #4]
  24198. 800a85c: 69ba ldr r2, [r7, #24]
  24199. 800a85e: 609a str r2, [r3, #8]
  24200. /* Configure the IO Output Type */
  24201. temp = GPIOx->OTYPER;
  24202. 800a860: 687b ldr r3, [r7, #4]
  24203. 800a862: 685b ldr r3, [r3, #4]
  24204. 800a864: 61bb str r3, [r7, #24]
  24205. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  24206. 800a866: 2201 movs r2, #1
  24207. 800a868: 69fb ldr r3, [r7, #28]
  24208. 800a86a: fa02 f303 lsl.w r3, r2, r3
  24209. 800a86e: 43db mvns r3, r3
  24210. 800a870: 69ba ldr r2, [r7, #24]
  24211. 800a872: 4013 ands r3, r2
  24212. 800a874: 61bb str r3, [r7, #24]
  24213. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  24214. 800a876: 683b ldr r3, [r7, #0]
  24215. 800a878: 685b ldr r3, [r3, #4]
  24216. 800a87a: 091b lsrs r3, r3, #4
  24217. 800a87c: f003 0201 and.w r2, r3, #1
  24218. 800a880: 69fb ldr r3, [r7, #28]
  24219. 800a882: fa02 f303 lsl.w r3, r2, r3
  24220. 800a886: 69ba ldr r2, [r7, #24]
  24221. 800a888: 4313 orrs r3, r2
  24222. 800a88a: 61bb str r3, [r7, #24]
  24223. GPIOx->OTYPER = temp;
  24224. 800a88c: 687b ldr r3, [r7, #4]
  24225. 800a88e: 69ba ldr r2, [r7, #24]
  24226. 800a890: 605a str r2, [r3, #4]
  24227. }
  24228. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  24229. 800a892: 683b ldr r3, [r7, #0]
  24230. 800a894: 685b ldr r3, [r3, #4]
  24231. 800a896: f003 0303 and.w r3, r3, #3
  24232. 800a89a: 2b03 cmp r3, #3
  24233. 800a89c: d017 beq.n 800a8ce <HAL_GPIO_Init+0xe2>
  24234. {
  24235. /* Check the Pull parameter */
  24236. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  24237. /* Activate the Pull-up or Pull down resistor for the current IO */
  24238. temp = GPIOx->PUPDR;
  24239. 800a89e: 687b ldr r3, [r7, #4]
  24240. 800a8a0: 68db ldr r3, [r3, #12]
  24241. 800a8a2: 61bb str r3, [r7, #24]
  24242. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  24243. 800a8a4: 69fb ldr r3, [r7, #28]
  24244. 800a8a6: 005b lsls r3, r3, #1
  24245. 800a8a8: 2203 movs r2, #3
  24246. 800a8aa: fa02 f303 lsl.w r3, r2, r3
  24247. 800a8ae: 43db mvns r3, r3
  24248. 800a8b0: 69ba ldr r2, [r7, #24]
  24249. 800a8b2: 4013 ands r3, r2
  24250. 800a8b4: 61bb str r3, [r7, #24]
  24251. temp |= ((GPIO_Init->Pull) << (position * 2U));
  24252. 800a8b6: 683b ldr r3, [r7, #0]
  24253. 800a8b8: 689a ldr r2, [r3, #8]
  24254. 800a8ba: 69fb ldr r3, [r7, #28]
  24255. 800a8bc: 005b lsls r3, r3, #1
  24256. 800a8be: fa02 f303 lsl.w r3, r2, r3
  24257. 800a8c2: 69ba ldr r2, [r7, #24]
  24258. 800a8c4: 4313 orrs r3, r2
  24259. 800a8c6: 61bb str r3, [r7, #24]
  24260. GPIOx->PUPDR = temp;
  24261. 800a8c8: 687b ldr r3, [r7, #4]
  24262. 800a8ca: 69ba ldr r2, [r7, #24]
  24263. 800a8cc: 60da str r2, [r3, #12]
  24264. }
  24265. /* In case of Alternate function mode selection */
  24266. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  24267. 800a8ce: 683b ldr r3, [r7, #0]
  24268. 800a8d0: 685b ldr r3, [r3, #4]
  24269. 800a8d2: f003 0303 and.w r3, r3, #3
  24270. 800a8d6: 2b02 cmp r3, #2
  24271. 800a8d8: d123 bne.n 800a922 <HAL_GPIO_Init+0x136>
  24272. /* Check the Alternate function parameters */
  24273. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  24274. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  24275. /* Configure Alternate function mapped with the current IO */
  24276. temp = GPIOx->AFR[position >> 3U];
  24277. 800a8da: 69fb ldr r3, [r7, #28]
  24278. 800a8dc: 08da lsrs r2, r3, #3
  24279. 800a8de: 687b ldr r3, [r7, #4]
  24280. 800a8e0: 3208 adds r2, #8
  24281. 800a8e2: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  24282. 800a8e6: 61bb str r3, [r7, #24]
  24283. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  24284. 800a8e8: 69fb ldr r3, [r7, #28]
  24285. 800a8ea: f003 0307 and.w r3, r3, #7
  24286. 800a8ee: 009b lsls r3, r3, #2
  24287. 800a8f0: 220f movs r2, #15
  24288. 800a8f2: fa02 f303 lsl.w r3, r2, r3
  24289. 800a8f6: 43db mvns r3, r3
  24290. 800a8f8: 69ba ldr r2, [r7, #24]
  24291. 800a8fa: 4013 ands r3, r2
  24292. 800a8fc: 61bb str r3, [r7, #24]
  24293. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  24294. 800a8fe: 683b ldr r3, [r7, #0]
  24295. 800a900: 691a ldr r2, [r3, #16]
  24296. 800a902: 69fb ldr r3, [r7, #28]
  24297. 800a904: f003 0307 and.w r3, r3, #7
  24298. 800a908: 009b lsls r3, r3, #2
  24299. 800a90a: fa02 f303 lsl.w r3, r2, r3
  24300. 800a90e: 69ba ldr r2, [r7, #24]
  24301. 800a910: 4313 orrs r3, r2
  24302. 800a912: 61bb str r3, [r7, #24]
  24303. GPIOx->AFR[position >> 3U] = temp;
  24304. 800a914: 69fb ldr r3, [r7, #28]
  24305. 800a916: 08da lsrs r2, r3, #3
  24306. 800a918: 687b ldr r3, [r7, #4]
  24307. 800a91a: 3208 adds r2, #8
  24308. 800a91c: 69b9 ldr r1, [r7, #24]
  24309. 800a91e: f843 1022 str.w r1, [r3, r2, lsl #2]
  24310. }
  24311. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  24312. temp = GPIOx->MODER;
  24313. 800a922: 687b ldr r3, [r7, #4]
  24314. 800a924: 681b ldr r3, [r3, #0]
  24315. 800a926: 61bb str r3, [r7, #24]
  24316. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  24317. 800a928: 69fb ldr r3, [r7, #28]
  24318. 800a92a: 005b lsls r3, r3, #1
  24319. 800a92c: 2203 movs r2, #3
  24320. 800a92e: fa02 f303 lsl.w r3, r2, r3
  24321. 800a932: 43db mvns r3, r3
  24322. 800a934: 69ba ldr r2, [r7, #24]
  24323. 800a936: 4013 ands r3, r2
  24324. 800a938: 61bb str r3, [r7, #24]
  24325. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  24326. 800a93a: 683b ldr r3, [r7, #0]
  24327. 800a93c: 685b ldr r3, [r3, #4]
  24328. 800a93e: f003 0203 and.w r2, r3, #3
  24329. 800a942: 69fb ldr r3, [r7, #28]
  24330. 800a944: 005b lsls r3, r3, #1
  24331. 800a946: fa02 f303 lsl.w r3, r2, r3
  24332. 800a94a: 69ba ldr r2, [r7, #24]
  24333. 800a94c: 4313 orrs r3, r2
  24334. 800a94e: 61bb str r3, [r7, #24]
  24335. GPIOx->MODER = temp;
  24336. 800a950: 687b ldr r3, [r7, #4]
  24337. 800a952: 69ba ldr r2, [r7, #24]
  24338. 800a954: 601a str r2, [r3, #0]
  24339. /*--------------------- EXTI Mode Configuration ------------------------*/
  24340. /* Configure the External Interrupt or event for the current IO */
  24341. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  24342. 800a956: 683b ldr r3, [r7, #0]
  24343. 800a958: 685b ldr r3, [r3, #4]
  24344. 800a95a: f403 3340 and.w r3, r3, #196608 @ 0x30000
  24345. 800a95e: 2b00 cmp r3, #0
  24346. 800a960: f000 80e0 beq.w 800ab24 <HAL_GPIO_Init+0x338>
  24347. {
  24348. /* Enable SYSCFG Clock */
  24349. __HAL_RCC_SYSCFG_CLK_ENABLE();
  24350. 800a964: 4b2f ldr r3, [pc, #188] @ (800aa24 <HAL_GPIO_Init+0x238>)
  24351. 800a966: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  24352. 800a96a: 4a2e ldr r2, [pc, #184] @ (800aa24 <HAL_GPIO_Init+0x238>)
  24353. 800a96c: f043 0302 orr.w r3, r3, #2
  24354. 800a970: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  24355. 800a974: 4b2b ldr r3, [pc, #172] @ (800aa24 <HAL_GPIO_Init+0x238>)
  24356. 800a976: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  24357. 800a97a: f003 0302 and.w r3, r3, #2
  24358. 800a97e: 60fb str r3, [r7, #12]
  24359. 800a980: 68fb ldr r3, [r7, #12]
  24360. temp = SYSCFG->EXTICR[position >> 2U];
  24361. 800a982: 4a29 ldr r2, [pc, #164] @ (800aa28 <HAL_GPIO_Init+0x23c>)
  24362. 800a984: 69fb ldr r3, [r7, #28]
  24363. 800a986: 089b lsrs r3, r3, #2
  24364. 800a988: 3302 adds r3, #2
  24365. 800a98a: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  24366. 800a98e: 61bb str r3, [r7, #24]
  24367. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  24368. 800a990: 69fb ldr r3, [r7, #28]
  24369. 800a992: f003 0303 and.w r3, r3, #3
  24370. 800a996: 009b lsls r3, r3, #2
  24371. 800a998: 220f movs r2, #15
  24372. 800a99a: fa02 f303 lsl.w r3, r2, r3
  24373. 800a99e: 43db mvns r3, r3
  24374. 800a9a0: 69ba ldr r2, [r7, #24]
  24375. 800a9a2: 4013 ands r3, r2
  24376. 800a9a4: 61bb str r3, [r7, #24]
  24377. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  24378. 800a9a6: 687b ldr r3, [r7, #4]
  24379. 800a9a8: 4a20 ldr r2, [pc, #128] @ (800aa2c <HAL_GPIO_Init+0x240>)
  24380. 800a9aa: 4293 cmp r3, r2
  24381. 800a9ac: d052 beq.n 800aa54 <HAL_GPIO_Init+0x268>
  24382. 800a9ae: 687b ldr r3, [r7, #4]
  24383. 800a9b0: 4a1f ldr r2, [pc, #124] @ (800aa30 <HAL_GPIO_Init+0x244>)
  24384. 800a9b2: 4293 cmp r3, r2
  24385. 800a9b4: d031 beq.n 800aa1a <HAL_GPIO_Init+0x22e>
  24386. 800a9b6: 687b ldr r3, [r7, #4]
  24387. 800a9b8: 4a1e ldr r2, [pc, #120] @ (800aa34 <HAL_GPIO_Init+0x248>)
  24388. 800a9ba: 4293 cmp r3, r2
  24389. 800a9bc: d02b beq.n 800aa16 <HAL_GPIO_Init+0x22a>
  24390. 800a9be: 687b ldr r3, [r7, #4]
  24391. 800a9c0: 4a1d ldr r2, [pc, #116] @ (800aa38 <HAL_GPIO_Init+0x24c>)
  24392. 800a9c2: 4293 cmp r3, r2
  24393. 800a9c4: d025 beq.n 800aa12 <HAL_GPIO_Init+0x226>
  24394. 800a9c6: 687b ldr r3, [r7, #4]
  24395. 800a9c8: 4a1c ldr r2, [pc, #112] @ (800aa3c <HAL_GPIO_Init+0x250>)
  24396. 800a9ca: 4293 cmp r3, r2
  24397. 800a9cc: d01f beq.n 800aa0e <HAL_GPIO_Init+0x222>
  24398. 800a9ce: 687b ldr r3, [r7, #4]
  24399. 800a9d0: 4a1b ldr r2, [pc, #108] @ (800aa40 <HAL_GPIO_Init+0x254>)
  24400. 800a9d2: 4293 cmp r3, r2
  24401. 800a9d4: d019 beq.n 800aa0a <HAL_GPIO_Init+0x21e>
  24402. 800a9d6: 687b ldr r3, [r7, #4]
  24403. 800a9d8: 4a1a ldr r2, [pc, #104] @ (800aa44 <HAL_GPIO_Init+0x258>)
  24404. 800a9da: 4293 cmp r3, r2
  24405. 800a9dc: d013 beq.n 800aa06 <HAL_GPIO_Init+0x21a>
  24406. 800a9de: 687b ldr r3, [r7, #4]
  24407. 800a9e0: 4a19 ldr r2, [pc, #100] @ (800aa48 <HAL_GPIO_Init+0x25c>)
  24408. 800a9e2: 4293 cmp r3, r2
  24409. 800a9e4: d00d beq.n 800aa02 <HAL_GPIO_Init+0x216>
  24410. 800a9e6: 687b ldr r3, [r7, #4]
  24411. 800a9e8: 4a18 ldr r2, [pc, #96] @ (800aa4c <HAL_GPIO_Init+0x260>)
  24412. 800a9ea: 4293 cmp r3, r2
  24413. 800a9ec: d007 beq.n 800a9fe <HAL_GPIO_Init+0x212>
  24414. 800a9ee: 687b ldr r3, [r7, #4]
  24415. 800a9f0: 4a17 ldr r2, [pc, #92] @ (800aa50 <HAL_GPIO_Init+0x264>)
  24416. 800a9f2: 4293 cmp r3, r2
  24417. 800a9f4: d101 bne.n 800a9fa <HAL_GPIO_Init+0x20e>
  24418. 800a9f6: 2309 movs r3, #9
  24419. 800a9f8: e02d b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24420. 800a9fa: 230a movs r3, #10
  24421. 800a9fc: e02b b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24422. 800a9fe: 2308 movs r3, #8
  24423. 800aa00: e029 b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24424. 800aa02: 2307 movs r3, #7
  24425. 800aa04: e027 b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24426. 800aa06: 2306 movs r3, #6
  24427. 800aa08: e025 b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24428. 800aa0a: 2305 movs r3, #5
  24429. 800aa0c: e023 b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24430. 800aa0e: 2304 movs r3, #4
  24431. 800aa10: e021 b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24432. 800aa12: 2303 movs r3, #3
  24433. 800aa14: e01f b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24434. 800aa16: 2302 movs r3, #2
  24435. 800aa18: e01d b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24436. 800aa1a: 2301 movs r3, #1
  24437. 800aa1c: e01b b.n 800aa56 <HAL_GPIO_Init+0x26a>
  24438. 800aa1e: bf00 nop
  24439. 800aa20: 58000080 .word 0x58000080
  24440. 800aa24: 58024400 .word 0x58024400
  24441. 800aa28: 58000400 .word 0x58000400
  24442. 800aa2c: 58020000 .word 0x58020000
  24443. 800aa30: 58020400 .word 0x58020400
  24444. 800aa34: 58020800 .word 0x58020800
  24445. 800aa38: 58020c00 .word 0x58020c00
  24446. 800aa3c: 58021000 .word 0x58021000
  24447. 800aa40: 58021400 .word 0x58021400
  24448. 800aa44: 58021800 .word 0x58021800
  24449. 800aa48: 58021c00 .word 0x58021c00
  24450. 800aa4c: 58022000 .word 0x58022000
  24451. 800aa50: 58022400 .word 0x58022400
  24452. 800aa54: 2300 movs r3, #0
  24453. 800aa56: 69fa ldr r2, [r7, #28]
  24454. 800aa58: f002 0203 and.w r2, r2, #3
  24455. 800aa5c: 0092 lsls r2, r2, #2
  24456. 800aa5e: 4093 lsls r3, r2
  24457. 800aa60: 69ba ldr r2, [r7, #24]
  24458. 800aa62: 4313 orrs r3, r2
  24459. 800aa64: 61bb str r3, [r7, #24]
  24460. SYSCFG->EXTICR[position >> 2U] = temp;
  24461. 800aa66: 4938 ldr r1, [pc, #224] @ (800ab48 <HAL_GPIO_Init+0x35c>)
  24462. 800aa68: 69fb ldr r3, [r7, #28]
  24463. 800aa6a: 089b lsrs r3, r3, #2
  24464. 800aa6c: 3302 adds r3, #2
  24465. 800aa6e: 69ba ldr r2, [r7, #24]
  24466. 800aa70: f841 2023 str.w r2, [r1, r3, lsl #2]
  24467. /* Clear Rising Falling edge configuration */
  24468. temp = EXTI->RTSR1;
  24469. 800aa74: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24470. 800aa78: 681b ldr r3, [r3, #0]
  24471. 800aa7a: 61bb str r3, [r7, #24]
  24472. temp &= ~(iocurrent);
  24473. 800aa7c: 693b ldr r3, [r7, #16]
  24474. 800aa7e: 43db mvns r3, r3
  24475. 800aa80: 69ba ldr r2, [r7, #24]
  24476. 800aa82: 4013 ands r3, r2
  24477. 800aa84: 61bb str r3, [r7, #24]
  24478. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  24479. 800aa86: 683b ldr r3, [r7, #0]
  24480. 800aa88: 685b ldr r3, [r3, #4]
  24481. 800aa8a: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  24482. 800aa8e: 2b00 cmp r3, #0
  24483. 800aa90: d003 beq.n 800aa9a <HAL_GPIO_Init+0x2ae>
  24484. {
  24485. temp |= iocurrent;
  24486. 800aa92: 69ba ldr r2, [r7, #24]
  24487. 800aa94: 693b ldr r3, [r7, #16]
  24488. 800aa96: 4313 orrs r3, r2
  24489. 800aa98: 61bb str r3, [r7, #24]
  24490. }
  24491. EXTI->RTSR1 = temp;
  24492. 800aa9a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24493. 800aa9e: 69bb ldr r3, [r7, #24]
  24494. 800aaa0: 6013 str r3, [r2, #0]
  24495. temp = EXTI->FTSR1;
  24496. 800aaa2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24497. 800aaa6: 685b ldr r3, [r3, #4]
  24498. 800aaa8: 61bb str r3, [r7, #24]
  24499. temp &= ~(iocurrent);
  24500. 800aaaa: 693b ldr r3, [r7, #16]
  24501. 800aaac: 43db mvns r3, r3
  24502. 800aaae: 69ba ldr r2, [r7, #24]
  24503. 800aab0: 4013 ands r3, r2
  24504. 800aab2: 61bb str r3, [r7, #24]
  24505. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  24506. 800aab4: 683b ldr r3, [r7, #0]
  24507. 800aab6: 685b ldr r3, [r3, #4]
  24508. 800aab8: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  24509. 800aabc: 2b00 cmp r3, #0
  24510. 800aabe: d003 beq.n 800aac8 <HAL_GPIO_Init+0x2dc>
  24511. {
  24512. temp |= iocurrent;
  24513. 800aac0: 69ba ldr r2, [r7, #24]
  24514. 800aac2: 693b ldr r3, [r7, #16]
  24515. 800aac4: 4313 orrs r3, r2
  24516. 800aac6: 61bb str r3, [r7, #24]
  24517. }
  24518. EXTI->FTSR1 = temp;
  24519. 800aac8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24520. 800aacc: 69bb ldr r3, [r7, #24]
  24521. 800aace: 6053 str r3, [r2, #4]
  24522. temp = EXTI_CurrentCPU->EMR1;
  24523. 800aad0: 697b ldr r3, [r7, #20]
  24524. 800aad2: 685b ldr r3, [r3, #4]
  24525. 800aad4: 61bb str r3, [r7, #24]
  24526. temp &= ~(iocurrent);
  24527. 800aad6: 693b ldr r3, [r7, #16]
  24528. 800aad8: 43db mvns r3, r3
  24529. 800aada: 69ba ldr r2, [r7, #24]
  24530. 800aadc: 4013 ands r3, r2
  24531. 800aade: 61bb str r3, [r7, #24]
  24532. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  24533. 800aae0: 683b ldr r3, [r7, #0]
  24534. 800aae2: 685b ldr r3, [r3, #4]
  24535. 800aae4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  24536. 800aae8: 2b00 cmp r3, #0
  24537. 800aaea: d003 beq.n 800aaf4 <HAL_GPIO_Init+0x308>
  24538. {
  24539. temp |= iocurrent;
  24540. 800aaec: 69ba ldr r2, [r7, #24]
  24541. 800aaee: 693b ldr r3, [r7, #16]
  24542. 800aaf0: 4313 orrs r3, r2
  24543. 800aaf2: 61bb str r3, [r7, #24]
  24544. }
  24545. EXTI_CurrentCPU->EMR1 = temp;
  24546. 800aaf4: 697b ldr r3, [r7, #20]
  24547. 800aaf6: 69ba ldr r2, [r7, #24]
  24548. 800aaf8: 605a str r2, [r3, #4]
  24549. /* Clear EXTI line configuration */
  24550. temp = EXTI_CurrentCPU->IMR1;
  24551. 800aafa: 697b ldr r3, [r7, #20]
  24552. 800aafc: 681b ldr r3, [r3, #0]
  24553. 800aafe: 61bb str r3, [r7, #24]
  24554. temp &= ~(iocurrent);
  24555. 800ab00: 693b ldr r3, [r7, #16]
  24556. 800ab02: 43db mvns r3, r3
  24557. 800ab04: 69ba ldr r2, [r7, #24]
  24558. 800ab06: 4013 ands r3, r2
  24559. 800ab08: 61bb str r3, [r7, #24]
  24560. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  24561. 800ab0a: 683b ldr r3, [r7, #0]
  24562. 800ab0c: 685b ldr r3, [r3, #4]
  24563. 800ab0e: f403 3380 and.w r3, r3, #65536 @ 0x10000
  24564. 800ab12: 2b00 cmp r3, #0
  24565. 800ab14: d003 beq.n 800ab1e <HAL_GPIO_Init+0x332>
  24566. {
  24567. temp |= iocurrent;
  24568. 800ab16: 69ba ldr r2, [r7, #24]
  24569. 800ab18: 693b ldr r3, [r7, #16]
  24570. 800ab1a: 4313 orrs r3, r2
  24571. 800ab1c: 61bb str r3, [r7, #24]
  24572. }
  24573. EXTI_CurrentCPU->IMR1 = temp;
  24574. 800ab1e: 697b ldr r3, [r7, #20]
  24575. 800ab20: 69ba ldr r2, [r7, #24]
  24576. 800ab22: 601a str r2, [r3, #0]
  24577. }
  24578. }
  24579. position++;
  24580. 800ab24: 69fb ldr r3, [r7, #28]
  24581. 800ab26: 3301 adds r3, #1
  24582. 800ab28: 61fb str r3, [r7, #28]
  24583. while (((GPIO_Init->Pin) >> position) != 0x00U)
  24584. 800ab2a: 683b ldr r3, [r7, #0]
  24585. 800ab2c: 681a ldr r2, [r3, #0]
  24586. 800ab2e: 69fb ldr r3, [r7, #28]
  24587. 800ab30: fa22 f303 lsr.w r3, r2, r3
  24588. 800ab34: 2b00 cmp r3, #0
  24589. 800ab36: f47f ae63 bne.w 800a800 <HAL_GPIO_Init+0x14>
  24590. }
  24591. }
  24592. 800ab3a: bf00 nop
  24593. 800ab3c: bf00 nop
  24594. 800ab3e: 3724 adds r7, #36 @ 0x24
  24595. 800ab40: 46bd mov sp, r7
  24596. 800ab42: f85d 7b04 ldr.w r7, [sp], #4
  24597. 800ab46: 4770 bx lr
  24598. 800ab48: 58000400 .word 0x58000400
  24599. 0800ab4c <HAL_GPIO_ReadPin>:
  24600. * @param GPIO_Pin: specifies the port bit to read.
  24601. * This parameter can be GPIO_PIN_x where x can be (0..15).
  24602. * @retval The input port pin value.
  24603. */
  24604. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  24605. {
  24606. 800ab4c: b480 push {r7}
  24607. 800ab4e: b085 sub sp, #20
  24608. 800ab50: af00 add r7, sp, #0
  24609. 800ab52: 6078 str r0, [r7, #4]
  24610. 800ab54: 460b mov r3, r1
  24611. 800ab56: 807b strh r3, [r7, #2]
  24612. GPIO_PinState bitstatus;
  24613. /* Check the parameters */
  24614. assert_param(IS_GPIO_PIN(GPIO_Pin));
  24615. if ((GPIOx->IDR & GPIO_Pin) != 0x00U)
  24616. 800ab58: 687b ldr r3, [r7, #4]
  24617. 800ab5a: 691a ldr r2, [r3, #16]
  24618. 800ab5c: 887b ldrh r3, [r7, #2]
  24619. 800ab5e: 4013 ands r3, r2
  24620. 800ab60: 2b00 cmp r3, #0
  24621. 800ab62: d002 beq.n 800ab6a <HAL_GPIO_ReadPin+0x1e>
  24622. {
  24623. bitstatus = GPIO_PIN_SET;
  24624. 800ab64: 2301 movs r3, #1
  24625. 800ab66: 73fb strb r3, [r7, #15]
  24626. 800ab68: e001 b.n 800ab6e <HAL_GPIO_ReadPin+0x22>
  24627. }
  24628. else
  24629. {
  24630. bitstatus = GPIO_PIN_RESET;
  24631. 800ab6a: 2300 movs r3, #0
  24632. 800ab6c: 73fb strb r3, [r7, #15]
  24633. }
  24634. return bitstatus;
  24635. 800ab6e: 7bfb ldrb r3, [r7, #15]
  24636. }
  24637. 800ab70: 4618 mov r0, r3
  24638. 800ab72: 3714 adds r7, #20
  24639. 800ab74: 46bd mov sp, r7
  24640. 800ab76: f85d 7b04 ldr.w r7, [sp], #4
  24641. 800ab7a: 4770 bx lr
  24642. 0800ab7c <HAL_GPIO_WritePin>:
  24643. * @arg GPIO_PIN_RESET: to clear the port pin
  24644. * @arg GPIO_PIN_SET: to set the port pin
  24645. * @retval None
  24646. */
  24647. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  24648. {
  24649. 800ab7c: b480 push {r7}
  24650. 800ab7e: b083 sub sp, #12
  24651. 800ab80: af00 add r7, sp, #0
  24652. 800ab82: 6078 str r0, [r7, #4]
  24653. 800ab84: 460b mov r3, r1
  24654. 800ab86: 807b strh r3, [r7, #2]
  24655. 800ab88: 4613 mov r3, r2
  24656. 800ab8a: 707b strb r3, [r7, #1]
  24657. /* Check the parameters */
  24658. assert_param(IS_GPIO_PIN(GPIO_Pin));
  24659. assert_param(IS_GPIO_PIN_ACTION(PinState));
  24660. if (PinState != GPIO_PIN_RESET)
  24661. 800ab8c: 787b ldrb r3, [r7, #1]
  24662. 800ab8e: 2b00 cmp r3, #0
  24663. 800ab90: d003 beq.n 800ab9a <HAL_GPIO_WritePin+0x1e>
  24664. {
  24665. GPIOx->BSRR = GPIO_Pin;
  24666. 800ab92: 887a ldrh r2, [r7, #2]
  24667. 800ab94: 687b ldr r3, [r7, #4]
  24668. 800ab96: 619a str r2, [r3, #24]
  24669. }
  24670. else
  24671. {
  24672. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  24673. }
  24674. }
  24675. 800ab98: e003 b.n 800aba2 <HAL_GPIO_WritePin+0x26>
  24676. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  24677. 800ab9a: 887b ldrh r3, [r7, #2]
  24678. 800ab9c: 041a lsls r2, r3, #16
  24679. 800ab9e: 687b ldr r3, [r7, #4]
  24680. 800aba0: 619a str r2, [r3, #24]
  24681. }
  24682. 800aba2: bf00 nop
  24683. 800aba4: 370c adds r7, #12
  24684. 800aba6: 46bd mov sp, r7
  24685. 800aba8: f85d 7b04 ldr.w r7, [sp], #4
  24686. 800abac: 4770 bx lr
  24687. 0800abae <HAL_GPIO_TogglePin>:
  24688. * @param GPIOx: Where x can be (A..K) to select the GPIO peripheral.
  24689. * @param GPIO_Pin: Specifies the pins to be toggled.
  24690. * @retval None
  24691. */
  24692. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  24693. {
  24694. 800abae: b480 push {r7}
  24695. 800abb0: b085 sub sp, #20
  24696. 800abb2: af00 add r7, sp, #0
  24697. 800abb4: 6078 str r0, [r7, #4]
  24698. 800abb6: 460b mov r3, r1
  24699. 800abb8: 807b strh r3, [r7, #2]
  24700. /* Check the parameters */
  24701. assert_param(IS_GPIO_PIN(GPIO_Pin));
  24702. /* get current Output Data Register value */
  24703. odr = GPIOx->ODR;
  24704. 800abba: 687b ldr r3, [r7, #4]
  24705. 800abbc: 695b ldr r3, [r3, #20]
  24706. 800abbe: 60fb str r3, [r7, #12]
  24707. /* Set selected pins that were at low level, and reset ones that were high */
  24708. GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
  24709. 800abc0: 887a ldrh r2, [r7, #2]
  24710. 800abc2: 68fb ldr r3, [r7, #12]
  24711. 800abc4: 4013 ands r3, r2
  24712. 800abc6: 041a lsls r2, r3, #16
  24713. 800abc8: 68fb ldr r3, [r7, #12]
  24714. 800abca: 43d9 mvns r1, r3
  24715. 800abcc: 887b ldrh r3, [r7, #2]
  24716. 800abce: 400b ands r3, r1
  24717. 800abd0: 431a orrs r2, r3
  24718. 800abd2: 687b ldr r3, [r7, #4]
  24719. 800abd4: 619a str r2, [r3, #24]
  24720. }
  24721. 800abd6: bf00 nop
  24722. 800abd8: 3714 adds r7, #20
  24723. 800abda: 46bd mov sp, r7
  24724. 800abdc: f85d 7b04 ldr.w r7, [sp], #4
  24725. 800abe0: 4770 bx lr
  24726. 0800abe2 <HAL_GPIO_EXTI_IRQHandler>:
  24727. * @brief Handle EXTI interrupt request.
  24728. * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line.
  24729. * @retval None
  24730. */
  24731. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  24732. {
  24733. 800abe2: b580 push {r7, lr}
  24734. 800abe4: b082 sub sp, #8
  24735. 800abe6: af00 add r7, sp, #0
  24736. 800abe8: 4603 mov r3, r0
  24737. 800abea: 80fb strh r3, [r7, #6]
  24738. __HAL_GPIO_EXTID2_CLEAR_IT(GPIO_Pin);
  24739. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  24740. }
  24741. #else
  24742. /* EXTI line interrupt detected */
  24743. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00U)
  24744. 800abec: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24745. 800abf0: f8d3 2088 ldr.w r2, [r3, #136] @ 0x88
  24746. 800abf4: 88fb ldrh r3, [r7, #6]
  24747. 800abf6: 4013 ands r3, r2
  24748. 800abf8: 2b00 cmp r3, #0
  24749. 800abfa: d008 beq.n 800ac0e <HAL_GPIO_EXTI_IRQHandler+0x2c>
  24750. {
  24751. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  24752. 800abfc: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24753. 800ac00: 88fb ldrh r3, [r7, #6]
  24754. 800ac02: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  24755. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  24756. 800ac06: 88fb ldrh r3, [r7, #6]
  24757. 800ac08: 4618 mov r0, r3
  24758. 800ac0a: f7f5 fd65 bl 80006d8 <HAL_GPIO_EXTI_Callback>
  24759. }
  24760. #endif
  24761. }
  24762. 800ac0e: bf00 nop
  24763. 800ac10: 3708 adds r7, #8
  24764. 800ac12: 46bd mov sp, r7
  24765. 800ac14: bd80 pop {r7, pc}
  24766. ...
  24767. 0800ac18 <HAL_PWR_ConfigPVD>:
  24768. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  24769. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  24770. * @retval None.
  24771. */
  24772. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  24773. {
  24774. 800ac18: b480 push {r7}
  24775. 800ac1a: b083 sub sp, #12
  24776. 800ac1c: af00 add r7, sp, #0
  24777. 800ac1e: 6078 str r0, [r7, #4]
  24778. /* Check the PVD configuration parameter */
  24779. if (sConfigPVD == NULL)
  24780. 800ac20: 687b ldr r3, [r7, #4]
  24781. 800ac22: 2b00 cmp r3, #0
  24782. 800ac24: d069 beq.n 800acfa <HAL_PWR_ConfigPVD+0xe2>
  24783. /* Check the parameters */
  24784. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  24785. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  24786. /* Set PLS[7:5] bits according to PVDLevel value */
  24787. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  24788. 800ac26: 4b38 ldr r3, [pc, #224] @ (800ad08 <HAL_PWR_ConfigPVD+0xf0>)
  24789. 800ac28: 681b ldr r3, [r3, #0]
  24790. 800ac2a: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  24791. 800ac2e: 687b ldr r3, [r7, #4]
  24792. 800ac30: 681b ldr r3, [r3, #0]
  24793. 800ac32: 4935 ldr r1, [pc, #212] @ (800ad08 <HAL_PWR_ConfigPVD+0xf0>)
  24794. 800ac34: 4313 orrs r3, r2
  24795. 800ac36: 600b str r3, [r1, #0]
  24796. /* Clear previous config */
  24797. #if !defined (DUAL_CORE)
  24798. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  24799. 800ac38: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24800. 800ac3c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  24801. 800ac40: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24802. 800ac44: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  24803. 800ac48: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  24804. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  24805. 800ac4c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24806. 800ac50: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  24807. 800ac54: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24808. 800ac58: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  24809. 800ac5c: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  24810. #endif /* !defined (DUAL_CORE) */
  24811. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  24812. 800ac60: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24813. 800ac64: 681b ldr r3, [r3, #0]
  24814. 800ac66: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24815. 800ac6a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  24816. 800ac6e: 6013 str r3, [r2, #0]
  24817. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  24818. 800ac70: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24819. 800ac74: 685b ldr r3, [r3, #4]
  24820. 800ac76: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24821. 800ac7a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  24822. 800ac7e: 6053 str r3, [r2, #4]
  24823. #if !defined (DUAL_CORE)
  24824. /* Interrupt mode configuration */
  24825. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  24826. 800ac80: 687b ldr r3, [r7, #4]
  24827. 800ac82: 685b ldr r3, [r3, #4]
  24828. 800ac84: f403 3380 and.w r3, r3, #65536 @ 0x10000
  24829. 800ac88: 2b00 cmp r3, #0
  24830. 800ac8a: d009 beq.n 800aca0 <HAL_PWR_ConfigPVD+0x88>
  24831. {
  24832. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  24833. 800ac8c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24834. 800ac90: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  24835. 800ac94: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24836. 800ac98: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  24837. 800ac9c: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  24838. }
  24839. /* Event mode configuration */
  24840. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  24841. 800aca0: 687b ldr r3, [r7, #4]
  24842. 800aca2: 685b ldr r3, [r3, #4]
  24843. 800aca4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  24844. 800aca8: 2b00 cmp r3, #0
  24845. 800acaa: d009 beq.n 800acc0 <HAL_PWR_ConfigPVD+0xa8>
  24846. {
  24847. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  24848. 800acac: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24849. 800acb0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  24850. 800acb4: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24851. 800acb8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  24852. 800acbc: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  24853. }
  24854. #endif /* !defined (DUAL_CORE) */
  24855. /* Rising edge configuration */
  24856. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  24857. 800acc0: 687b ldr r3, [r7, #4]
  24858. 800acc2: 685b ldr r3, [r3, #4]
  24859. 800acc4: f003 0301 and.w r3, r3, #1
  24860. 800acc8: 2b00 cmp r3, #0
  24861. 800acca: d007 beq.n 800acdc <HAL_PWR_ConfigPVD+0xc4>
  24862. {
  24863. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  24864. 800accc: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24865. 800acd0: 681b ldr r3, [r3, #0]
  24866. 800acd2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24867. 800acd6: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  24868. 800acda: 6013 str r3, [r2, #0]
  24869. }
  24870. /* Falling edge configuration */
  24871. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  24872. 800acdc: 687b ldr r3, [r7, #4]
  24873. 800acde: 685b ldr r3, [r3, #4]
  24874. 800ace0: f003 0302 and.w r3, r3, #2
  24875. 800ace4: 2b00 cmp r3, #0
  24876. 800ace6: d009 beq.n 800acfc <HAL_PWR_ConfigPVD+0xe4>
  24877. {
  24878. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  24879. 800ace8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24880. 800acec: 685b ldr r3, [r3, #4]
  24881. 800acee: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24882. 800acf2: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  24883. 800acf6: 6053 str r3, [r2, #4]
  24884. 800acf8: e000 b.n 800acfc <HAL_PWR_ConfigPVD+0xe4>
  24885. return;
  24886. 800acfa: bf00 nop
  24887. }
  24888. }
  24889. 800acfc: 370c adds r7, #12
  24890. 800acfe: 46bd mov sp, r7
  24891. 800ad00: f85d 7b04 ldr.w r7, [sp], #4
  24892. 800ad04: 4770 bx lr
  24893. 800ad06: bf00 nop
  24894. 800ad08: 58024800 .word 0x58024800
  24895. 0800ad0c <HAL_PWR_EnablePVD>:
  24896. /**
  24897. * @brief Enable the Programmable Voltage Detector (PVD).
  24898. * @retval None.
  24899. */
  24900. void HAL_PWR_EnablePVD (void)
  24901. {
  24902. 800ad0c: b480 push {r7}
  24903. 800ad0e: af00 add r7, sp, #0
  24904. /* Enable the power voltage detector */
  24905. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  24906. 800ad10: 4b05 ldr r3, [pc, #20] @ (800ad28 <HAL_PWR_EnablePVD+0x1c>)
  24907. 800ad12: 681b ldr r3, [r3, #0]
  24908. 800ad14: 4a04 ldr r2, [pc, #16] @ (800ad28 <HAL_PWR_EnablePVD+0x1c>)
  24909. 800ad16: f043 0310 orr.w r3, r3, #16
  24910. 800ad1a: 6013 str r3, [r2, #0]
  24911. }
  24912. 800ad1c: bf00 nop
  24913. 800ad1e: 46bd mov sp, r7
  24914. 800ad20: f85d 7b04 ldr.w r7, [sp], #4
  24915. 800ad24: 4770 bx lr
  24916. 800ad26: bf00 nop
  24917. 800ad28: 58024800 .word 0x58024800
  24918. 0800ad2c <HAL_PWREx_ConfigSupply>:
  24919. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  24920. * regulator.
  24921. * @retval HAL status.
  24922. */
  24923. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  24924. {
  24925. 800ad2c: b580 push {r7, lr}
  24926. 800ad2e: b084 sub sp, #16
  24927. 800ad30: af00 add r7, sp, #0
  24928. 800ad32: 6078 str r0, [r7, #4]
  24929. /* Check the parameters */
  24930. assert_param (IS_PWR_SUPPLY (SupplySource));
  24931. /* Check if supply source was configured */
  24932. #if defined (PWR_FLAG_SCUEN)
  24933. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  24934. 800ad34: 4b19 ldr r3, [pc, #100] @ (800ad9c <HAL_PWREx_ConfigSupply+0x70>)
  24935. 800ad36: 68db ldr r3, [r3, #12]
  24936. 800ad38: f003 0304 and.w r3, r3, #4
  24937. 800ad3c: 2b04 cmp r3, #4
  24938. 800ad3e: d00a beq.n 800ad56 <HAL_PWREx_ConfigSupply+0x2a>
  24939. #else
  24940. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  24941. #endif /* defined (PWR_FLAG_SCUEN) */
  24942. {
  24943. /* Check supply configuration */
  24944. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  24945. 800ad40: 4b16 ldr r3, [pc, #88] @ (800ad9c <HAL_PWREx_ConfigSupply+0x70>)
  24946. 800ad42: 68db ldr r3, [r3, #12]
  24947. 800ad44: f003 0307 and.w r3, r3, #7
  24948. 800ad48: 687a ldr r2, [r7, #4]
  24949. 800ad4a: 429a cmp r2, r3
  24950. 800ad4c: d001 beq.n 800ad52 <HAL_PWREx_ConfigSupply+0x26>
  24951. {
  24952. /* Supply configuration update locked, can't apply a new supply config */
  24953. return HAL_ERROR;
  24954. 800ad4e: 2301 movs r3, #1
  24955. 800ad50: e01f b.n 800ad92 <HAL_PWREx_ConfigSupply+0x66>
  24956. else
  24957. {
  24958. /* Supply configuration update locked, but new supply configuration
  24959. matches with old supply configuration : nothing to do
  24960. */
  24961. return HAL_OK;
  24962. 800ad52: 2300 movs r3, #0
  24963. 800ad54: e01d b.n 800ad92 <HAL_PWREx_ConfigSupply+0x66>
  24964. }
  24965. }
  24966. /* Set the power supply configuration */
  24967. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  24968. 800ad56: 4b11 ldr r3, [pc, #68] @ (800ad9c <HAL_PWREx_ConfigSupply+0x70>)
  24969. 800ad58: 68db ldr r3, [r3, #12]
  24970. 800ad5a: f023 0207 bic.w r2, r3, #7
  24971. 800ad5e: 490f ldr r1, [pc, #60] @ (800ad9c <HAL_PWREx_ConfigSupply+0x70>)
  24972. 800ad60: 687b ldr r3, [r7, #4]
  24973. 800ad62: 4313 orrs r3, r2
  24974. 800ad64: 60cb str r3, [r1, #12]
  24975. /* Get tick */
  24976. tickstart = HAL_GetTick ();
  24977. 800ad66: f7fa fb69 bl 800543c <HAL_GetTick>
  24978. 800ad6a: 60f8 str r0, [r7, #12]
  24979. /* Wait till voltage level flag is set */
  24980. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  24981. 800ad6c: e009 b.n 800ad82 <HAL_PWREx_ConfigSupply+0x56>
  24982. {
  24983. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  24984. 800ad6e: f7fa fb65 bl 800543c <HAL_GetTick>
  24985. 800ad72: 4602 mov r2, r0
  24986. 800ad74: 68fb ldr r3, [r7, #12]
  24987. 800ad76: 1ad3 subs r3, r2, r3
  24988. 800ad78: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  24989. 800ad7c: d901 bls.n 800ad82 <HAL_PWREx_ConfigSupply+0x56>
  24990. {
  24991. return HAL_ERROR;
  24992. 800ad7e: 2301 movs r3, #1
  24993. 800ad80: e007 b.n 800ad92 <HAL_PWREx_ConfigSupply+0x66>
  24994. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  24995. 800ad82: 4b06 ldr r3, [pc, #24] @ (800ad9c <HAL_PWREx_ConfigSupply+0x70>)
  24996. 800ad84: 685b ldr r3, [r3, #4]
  24997. 800ad86: f403 5300 and.w r3, r3, #8192 @ 0x2000
  24998. 800ad8a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  24999. 800ad8e: d1ee bne.n 800ad6e <HAL_PWREx_ConfigSupply+0x42>
  25000. }
  25001. }
  25002. }
  25003. #endif /* defined (SMPS) */
  25004. return HAL_OK;
  25005. 800ad90: 2300 movs r3, #0
  25006. }
  25007. 800ad92: 4618 mov r0, r3
  25008. 800ad94: 3710 adds r7, #16
  25009. 800ad96: 46bd mov sp, r7
  25010. 800ad98: bd80 pop {r7, pc}
  25011. 800ad9a: bf00 nop
  25012. 800ad9c: 58024800 .word 0x58024800
  25013. 0800ada0 <HAL_PWREx_ConfigAVD>:
  25014. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  25015. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  25016. * @retval None.
  25017. */
  25018. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  25019. {
  25020. 800ada0: b480 push {r7}
  25021. 800ada2: b083 sub sp, #12
  25022. 800ada4: af00 add r7, sp, #0
  25023. 800ada6: 6078 str r0, [r7, #4]
  25024. /* Check the parameters */
  25025. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  25026. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  25027. /* Set the ALS[18:17] bits according to AVDLevel value */
  25028. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  25029. 800ada8: 4b37 ldr r3, [pc, #220] @ (800ae88 <HAL_PWREx_ConfigAVD+0xe8>)
  25030. 800adaa: 681b ldr r3, [r3, #0]
  25031. 800adac: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  25032. 800adb0: 687b ldr r3, [r7, #4]
  25033. 800adb2: 681b ldr r3, [r3, #0]
  25034. 800adb4: 4934 ldr r1, [pc, #208] @ (800ae88 <HAL_PWREx_ConfigAVD+0xe8>)
  25035. 800adb6: 4313 orrs r3, r2
  25036. 800adb8: 600b str r3, [r1, #0]
  25037. /* Clear any previous config */
  25038. #if !defined (DUAL_CORE)
  25039. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  25040. 800adba: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25041. 800adbe: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25042. 800adc2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25043. 800adc6: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25044. 800adca: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25045. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  25046. 800adce: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25047. 800add2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25048. 800add6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25049. 800adda: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25050. 800adde: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25051. #endif /* !defined (DUAL_CORE) */
  25052. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  25053. 800ade2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25054. 800ade6: 681b ldr r3, [r3, #0]
  25055. 800ade8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25056. 800adec: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25057. 800adf0: 6013 str r3, [r2, #0]
  25058. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  25059. 800adf2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25060. 800adf6: 685b ldr r3, [r3, #4]
  25061. 800adf8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25062. 800adfc: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25063. 800ae00: 6053 str r3, [r2, #4]
  25064. #if !defined (DUAL_CORE)
  25065. /* Configure the interrupt mode */
  25066. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  25067. 800ae02: 687b ldr r3, [r7, #4]
  25068. 800ae04: 685b ldr r3, [r3, #4]
  25069. 800ae06: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25070. 800ae0a: 2b00 cmp r3, #0
  25071. 800ae0c: d009 beq.n 800ae22 <HAL_PWREx_ConfigAVD+0x82>
  25072. {
  25073. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  25074. 800ae0e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25075. 800ae12: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25076. 800ae16: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25077. 800ae1a: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25078. 800ae1e: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25079. }
  25080. /* Configure the event mode */
  25081. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  25082. 800ae22: 687b ldr r3, [r7, #4]
  25083. 800ae24: 685b ldr r3, [r3, #4]
  25084. 800ae26: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25085. 800ae2a: 2b00 cmp r3, #0
  25086. 800ae2c: d009 beq.n 800ae42 <HAL_PWREx_ConfigAVD+0xa2>
  25087. {
  25088. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  25089. 800ae2e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25090. 800ae32: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25091. 800ae36: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25092. 800ae3a: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25093. 800ae3e: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25094. }
  25095. #endif /* !defined (DUAL_CORE) */
  25096. /* Rising edge configuration */
  25097. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  25098. 800ae42: 687b ldr r3, [r7, #4]
  25099. 800ae44: 685b ldr r3, [r3, #4]
  25100. 800ae46: f003 0301 and.w r3, r3, #1
  25101. 800ae4a: 2b00 cmp r3, #0
  25102. 800ae4c: d007 beq.n 800ae5e <HAL_PWREx_ConfigAVD+0xbe>
  25103. {
  25104. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  25105. 800ae4e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25106. 800ae52: 681b ldr r3, [r3, #0]
  25107. 800ae54: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25108. 800ae58: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25109. 800ae5c: 6013 str r3, [r2, #0]
  25110. }
  25111. /* Falling edge configuration */
  25112. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  25113. 800ae5e: 687b ldr r3, [r7, #4]
  25114. 800ae60: 685b ldr r3, [r3, #4]
  25115. 800ae62: f003 0302 and.w r3, r3, #2
  25116. 800ae66: 2b00 cmp r3, #0
  25117. 800ae68: d007 beq.n 800ae7a <HAL_PWREx_ConfigAVD+0xda>
  25118. {
  25119. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  25120. 800ae6a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25121. 800ae6e: 685b ldr r3, [r3, #4]
  25122. 800ae70: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25123. 800ae74: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25124. 800ae78: 6053 str r3, [r2, #4]
  25125. }
  25126. }
  25127. 800ae7a: bf00 nop
  25128. 800ae7c: 370c adds r7, #12
  25129. 800ae7e: 46bd mov sp, r7
  25130. 800ae80: f85d 7b04 ldr.w r7, [sp], #4
  25131. 800ae84: 4770 bx lr
  25132. 800ae86: bf00 nop
  25133. 800ae88: 58024800 .word 0x58024800
  25134. 0800ae8c <HAL_PWREx_EnableAVD>:
  25135. /**
  25136. * @brief Enable the Analog Voltage Detector (AVD).
  25137. * @retval None.
  25138. */
  25139. void HAL_PWREx_EnableAVD (void)
  25140. {
  25141. 800ae8c: b480 push {r7}
  25142. 800ae8e: af00 add r7, sp, #0
  25143. /* Enable the Analog Voltage Detector */
  25144. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  25145. 800ae90: 4b05 ldr r3, [pc, #20] @ (800aea8 <HAL_PWREx_EnableAVD+0x1c>)
  25146. 800ae92: 681b ldr r3, [r3, #0]
  25147. 800ae94: 4a04 ldr r2, [pc, #16] @ (800aea8 <HAL_PWREx_EnableAVD+0x1c>)
  25148. 800ae96: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25149. 800ae9a: 6013 str r3, [r2, #0]
  25150. }
  25151. 800ae9c: bf00 nop
  25152. 800ae9e: 46bd mov sp, r7
  25153. 800aea0: f85d 7b04 ldr.w r7, [sp], #4
  25154. 800aea4: 4770 bx lr
  25155. 800aea6: bf00 nop
  25156. 800aea8: 58024800 .word 0x58024800
  25157. 0800aeac <HAL_RCC_OscConfig>:
  25158. * supported by this function. User should request a transition to HSE Off
  25159. * first and then HSE On or HSE Bypass.
  25160. * @retval HAL status
  25161. */
  25162. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  25163. {
  25164. 800aeac: b580 push {r7, lr}
  25165. 800aeae: b08c sub sp, #48 @ 0x30
  25166. 800aeb0: af00 add r7, sp, #0
  25167. 800aeb2: 6078 str r0, [r7, #4]
  25168. uint32_t tickstart;
  25169. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  25170. /* Check Null pointer */
  25171. if (RCC_OscInitStruct == NULL)
  25172. 800aeb4: 687b ldr r3, [r7, #4]
  25173. 800aeb6: 2b00 cmp r3, #0
  25174. 800aeb8: d102 bne.n 800aec0 <HAL_RCC_OscConfig+0x14>
  25175. {
  25176. return HAL_ERROR;
  25177. 800aeba: 2301 movs r3, #1
  25178. 800aebc: f000 bc48 b.w 800b750 <HAL_RCC_OscConfig+0x8a4>
  25179. }
  25180. /* Check the parameters */
  25181. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  25182. /*------------------------------- HSE Configuration ------------------------*/
  25183. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  25184. 800aec0: 687b ldr r3, [r7, #4]
  25185. 800aec2: 681b ldr r3, [r3, #0]
  25186. 800aec4: f003 0301 and.w r3, r3, #1
  25187. 800aec8: 2b00 cmp r3, #0
  25188. 800aeca: f000 8088 beq.w 800afde <HAL_RCC_OscConfig+0x132>
  25189. {
  25190. /* Check the parameters */
  25191. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  25192. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  25193. 800aece: 4b99 ldr r3, [pc, #612] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25194. 800aed0: 691b ldr r3, [r3, #16]
  25195. 800aed2: f003 0338 and.w r3, r3, #56 @ 0x38
  25196. 800aed6: 62fb str r3, [r7, #44] @ 0x2c
  25197. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  25198. 800aed8: 4b96 ldr r3, [pc, #600] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25199. 800aeda: 6a9b ldr r3, [r3, #40] @ 0x28
  25200. 800aedc: 62bb str r3, [r7, #40] @ 0x28
  25201. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  25202. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  25203. 800aede: 6afb ldr r3, [r7, #44] @ 0x2c
  25204. 800aee0: 2b10 cmp r3, #16
  25205. 800aee2: d007 beq.n 800aef4 <HAL_RCC_OscConfig+0x48>
  25206. 800aee4: 6afb ldr r3, [r7, #44] @ 0x2c
  25207. 800aee6: 2b18 cmp r3, #24
  25208. 800aee8: d111 bne.n 800af0e <HAL_RCC_OscConfig+0x62>
  25209. 800aeea: 6abb ldr r3, [r7, #40] @ 0x28
  25210. 800aeec: f003 0303 and.w r3, r3, #3
  25211. 800aef0: 2b02 cmp r3, #2
  25212. 800aef2: d10c bne.n 800af0e <HAL_RCC_OscConfig+0x62>
  25213. {
  25214. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  25215. 800aef4: 4b8f ldr r3, [pc, #572] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25216. 800aef6: 681b ldr r3, [r3, #0]
  25217. 800aef8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25218. 800aefc: 2b00 cmp r3, #0
  25219. 800aefe: d06d beq.n 800afdc <HAL_RCC_OscConfig+0x130>
  25220. 800af00: 687b ldr r3, [r7, #4]
  25221. 800af02: 685b ldr r3, [r3, #4]
  25222. 800af04: 2b00 cmp r3, #0
  25223. 800af06: d169 bne.n 800afdc <HAL_RCC_OscConfig+0x130>
  25224. {
  25225. return HAL_ERROR;
  25226. 800af08: 2301 movs r3, #1
  25227. 800af0a: f000 bc21 b.w 800b750 <HAL_RCC_OscConfig+0x8a4>
  25228. }
  25229. }
  25230. else
  25231. {
  25232. /* Set the new HSE configuration ---------------------------------------*/
  25233. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  25234. 800af0e: 687b ldr r3, [r7, #4]
  25235. 800af10: 685b ldr r3, [r3, #4]
  25236. 800af12: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  25237. 800af16: d106 bne.n 800af26 <HAL_RCC_OscConfig+0x7a>
  25238. 800af18: 4b86 ldr r3, [pc, #536] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25239. 800af1a: 681b ldr r3, [r3, #0]
  25240. 800af1c: 4a85 ldr r2, [pc, #532] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25241. 800af1e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25242. 800af22: 6013 str r3, [r2, #0]
  25243. 800af24: e02e b.n 800af84 <HAL_RCC_OscConfig+0xd8>
  25244. 800af26: 687b ldr r3, [r7, #4]
  25245. 800af28: 685b ldr r3, [r3, #4]
  25246. 800af2a: 2b00 cmp r3, #0
  25247. 800af2c: d10c bne.n 800af48 <HAL_RCC_OscConfig+0x9c>
  25248. 800af2e: 4b81 ldr r3, [pc, #516] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25249. 800af30: 681b ldr r3, [r3, #0]
  25250. 800af32: 4a80 ldr r2, [pc, #512] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25251. 800af34: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25252. 800af38: 6013 str r3, [r2, #0]
  25253. 800af3a: 4b7e ldr r3, [pc, #504] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25254. 800af3c: 681b ldr r3, [r3, #0]
  25255. 800af3e: 4a7d ldr r2, [pc, #500] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25256. 800af40: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  25257. 800af44: 6013 str r3, [r2, #0]
  25258. 800af46: e01d b.n 800af84 <HAL_RCC_OscConfig+0xd8>
  25259. 800af48: 687b ldr r3, [r7, #4]
  25260. 800af4a: 685b ldr r3, [r3, #4]
  25261. 800af4c: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  25262. 800af50: d10c bne.n 800af6c <HAL_RCC_OscConfig+0xc0>
  25263. 800af52: 4b78 ldr r3, [pc, #480] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25264. 800af54: 681b ldr r3, [r3, #0]
  25265. 800af56: 4a77 ldr r2, [pc, #476] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25266. 800af58: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  25267. 800af5c: 6013 str r3, [r2, #0]
  25268. 800af5e: 4b75 ldr r3, [pc, #468] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25269. 800af60: 681b ldr r3, [r3, #0]
  25270. 800af62: 4a74 ldr r2, [pc, #464] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25271. 800af64: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25272. 800af68: 6013 str r3, [r2, #0]
  25273. 800af6a: e00b b.n 800af84 <HAL_RCC_OscConfig+0xd8>
  25274. 800af6c: 4b71 ldr r3, [pc, #452] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25275. 800af6e: 681b ldr r3, [r3, #0]
  25276. 800af70: 4a70 ldr r2, [pc, #448] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25277. 800af72: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25278. 800af76: 6013 str r3, [r2, #0]
  25279. 800af78: 4b6e ldr r3, [pc, #440] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25280. 800af7a: 681b ldr r3, [r3, #0]
  25281. 800af7c: 4a6d ldr r2, [pc, #436] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25282. 800af7e: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  25283. 800af82: 6013 str r3, [r2, #0]
  25284. /* Check the HSE State */
  25285. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  25286. 800af84: 687b ldr r3, [r7, #4]
  25287. 800af86: 685b ldr r3, [r3, #4]
  25288. 800af88: 2b00 cmp r3, #0
  25289. 800af8a: d013 beq.n 800afb4 <HAL_RCC_OscConfig+0x108>
  25290. {
  25291. /* Get Start Tick*/
  25292. tickstart = HAL_GetTick();
  25293. 800af8c: f7fa fa56 bl 800543c <HAL_GetTick>
  25294. 800af90: 6278 str r0, [r7, #36] @ 0x24
  25295. /* Wait till HSE is ready */
  25296. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  25297. 800af92: e008 b.n 800afa6 <HAL_RCC_OscConfig+0xfa>
  25298. {
  25299. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  25300. 800af94: f7fa fa52 bl 800543c <HAL_GetTick>
  25301. 800af98: 4602 mov r2, r0
  25302. 800af9a: 6a7b ldr r3, [r7, #36] @ 0x24
  25303. 800af9c: 1ad3 subs r3, r2, r3
  25304. 800af9e: 2b64 cmp r3, #100 @ 0x64
  25305. 800afa0: d901 bls.n 800afa6 <HAL_RCC_OscConfig+0xfa>
  25306. {
  25307. return HAL_TIMEOUT;
  25308. 800afa2: 2303 movs r3, #3
  25309. 800afa4: e3d4 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25310. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  25311. 800afa6: 4b63 ldr r3, [pc, #396] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25312. 800afa8: 681b ldr r3, [r3, #0]
  25313. 800afaa: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25314. 800afae: 2b00 cmp r3, #0
  25315. 800afb0: d0f0 beq.n 800af94 <HAL_RCC_OscConfig+0xe8>
  25316. 800afb2: e014 b.n 800afde <HAL_RCC_OscConfig+0x132>
  25317. }
  25318. }
  25319. else
  25320. {
  25321. /* Get Start Tick*/
  25322. tickstart = HAL_GetTick();
  25323. 800afb4: f7fa fa42 bl 800543c <HAL_GetTick>
  25324. 800afb8: 6278 str r0, [r7, #36] @ 0x24
  25325. /* Wait till HSE is disabled */
  25326. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  25327. 800afba: e008 b.n 800afce <HAL_RCC_OscConfig+0x122>
  25328. {
  25329. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  25330. 800afbc: f7fa fa3e bl 800543c <HAL_GetTick>
  25331. 800afc0: 4602 mov r2, r0
  25332. 800afc2: 6a7b ldr r3, [r7, #36] @ 0x24
  25333. 800afc4: 1ad3 subs r3, r2, r3
  25334. 800afc6: 2b64 cmp r3, #100 @ 0x64
  25335. 800afc8: d901 bls.n 800afce <HAL_RCC_OscConfig+0x122>
  25336. {
  25337. return HAL_TIMEOUT;
  25338. 800afca: 2303 movs r3, #3
  25339. 800afcc: e3c0 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25340. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  25341. 800afce: 4b59 ldr r3, [pc, #356] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25342. 800afd0: 681b ldr r3, [r3, #0]
  25343. 800afd2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25344. 800afd6: 2b00 cmp r3, #0
  25345. 800afd8: d1f0 bne.n 800afbc <HAL_RCC_OscConfig+0x110>
  25346. 800afda: e000 b.n 800afde <HAL_RCC_OscConfig+0x132>
  25347. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  25348. 800afdc: bf00 nop
  25349. }
  25350. }
  25351. }
  25352. }
  25353. /*----------------------------- HSI Configuration --------------------------*/
  25354. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  25355. 800afde: 687b ldr r3, [r7, #4]
  25356. 800afe0: 681b ldr r3, [r3, #0]
  25357. 800afe2: f003 0302 and.w r3, r3, #2
  25358. 800afe6: 2b00 cmp r3, #0
  25359. 800afe8: f000 80ca beq.w 800b180 <HAL_RCC_OscConfig+0x2d4>
  25360. /* Check the parameters */
  25361. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  25362. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  25363. /* When the HSI is used as system clock it will not be disabled */
  25364. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  25365. 800afec: 4b51 ldr r3, [pc, #324] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25366. 800afee: 691b ldr r3, [r3, #16]
  25367. 800aff0: f003 0338 and.w r3, r3, #56 @ 0x38
  25368. 800aff4: 623b str r3, [r7, #32]
  25369. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  25370. 800aff6: 4b4f ldr r3, [pc, #316] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25371. 800aff8: 6a9b ldr r3, [r3, #40] @ 0x28
  25372. 800affa: 61fb str r3, [r7, #28]
  25373. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  25374. 800affc: 6a3b ldr r3, [r7, #32]
  25375. 800affe: 2b00 cmp r3, #0
  25376. 800b000: d007 beq.n 800b012 <HAL_RCC_OscConfig+0x166>
  25377. 800b002: 6a3b ldr r3, [r7, #32]
  25378. 800b004: 2b18 cmp r3, #24
  25379. 800b006: d156 bne.n 800b0b6 <HAL_RCC_OscConfig+0x20a>
  25380. 800b008: 69fb ldr r3, [r7, #28]
  25381. 800b00a: f003 0303 and.w r3, r3, #3
  25382. 800b00e: 2b00 cmp r3, #0
  25383. 800b010: d151 bne.n 800b0b6 <HAL_RCC_OscConfig+0x20a>
  25384. {
  25385. /* When HSI is used as system clock it will not be disabled */
  25386. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25387. 800b012: 4b48 ldr r3, [pc, #288] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25388. 800b014: 681b ldr r3, [r3, #0]
  25389. 800b016: f003 0304 and.w r3, r3, #4
  25390. 800b01a: 2b00 cmp r3, #0
  25391. 800b01c: d005 beq.n 800b02a <HAL_RCC_OscConfig+0x17e>
  25392. 800b01e: 687b ldr r3, [r7, #4]
  25393. 800b020: 68db ldr r3, [r3, #12]
  25394. 800b022: 2b00 cmp r3, #0
  25395. 800b024: d101 bne.n 800b02a <HAL_RCC_OscConfig+0x17e>
  25396. {
  25397. return HAL_ERROR;
  25398. 800b026: 2301 movs r3, #1
  25399. 800b028: e392 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25400. }
  25401. /* Otherwise, only HSI division and calibration are allowed */
  25402. else
  25403. {
  25404. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  25405. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  25406. 800b02a: 4b42 ldr r3, [pc, #264] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25407. 800b02c: 681b ldr r3, [r3, #0]
  25408. 800b02e: f023 0219 bic.w r2, r3, #25
  25409. 800b032: 687b ldr r3, [r7, #4]
  25410. 800b034: 68db ldr r3, [r3, #12]
  25411. 800b036: 493f ldr r1, [pc, #252] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25412. 800b038: 4313 orrs r3, r2
  25413. 800b03a: 600b str r3, [r1, #0]
  25414. /* Get Start Tick*/
  25415. tickstart = HAL_GetTick();
  25416. 800b03c: f7fa f9fe bl 800543c <HAL_GetTick>
  25417. 800b040: 6278 str r0, [r7, #36] @ 0x24
  25418. /* Wait till HSI is ready */
  25419. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25420. 800b042: e008 b.n 800b056 <HAL_RCC_OscConfig+0x1aa>
  25421. {
  25422. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  25423. 800b044: f7fa f9fa bl 800543c <HAL_GetTick>
  25424. 800b048: 4602 mov r2, r0
  25425. 800b04a: 6a7b ldr r3, [r7, #36] @ 0x24
  25426. 800b04c: 1ad3 subs r3, r2, r3
  25427. 800b04e: 2b02 cmp r3, #2
  25428. 800b050: d901 bls.n 800b056 <HAL_RCC_OscConfig+0x1aa>
  25429. {
  25430. return HAL_TIMEOUT;
  25431. 800b052: 2303 movs r3, #3
  25432. 800b054: e37c b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25433. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25434. 800b056: 4b37 ldr r3, [pc, #220] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25435. 800b058: 681b ldr r3, [r3, #0]
  25436. 800b05a: f003 0304 and.w r3, r3, #4
  25437. 800b05e: 2b00 cmp r3, #0
  25438. 800b060: d0f0 beq.n 800b044 <HAL_RCC_OscConfig+0x198>
  25439. }
  25440. }
  25441. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  25442. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25443. 800b062: f7fa f9f7 bl 8005454 <HAL_GetREVID>
  25444. 800b066: 4603 mov r3, r0
  25445. 800b068: f241 0203 movw r2, #4099 @ 0x1003
  25446. 800b06c: 4293 cmp r3, r2
  25447. 800b06e: d817 bhi.n 800b0a0 <HAL_RCC_OscConfig+0x1f4>
  25448. 800b070: 687b ldr r3, [r7, #4]
  25449. 800b072: 691b ldr r3, [r3, #16]
  25450. 800b074: 2b40 cmp r3, #64 @ 0x40
  25451. 800b076: d108 bne.n 800b08a <HAL_RCC_OscConfig+0x1de>
  25452. 800b078: 4b2e ldr r3, [pc, #184] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25453. 800b07a: 685b ldr r3, [r3, #4]
  25454. 800b07c: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  25455. 800b080: 4a2c ldr r2, [pc, #176] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25456. 800b082: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25457. 800b086: 6053 str r3, [r2, #4]
  25458. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25459. 800b088: e07a b.n 800b180 <HAL_RCC_OscConfig+0x2d4>
  25460. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25461. 800b08a: 4b2a ldr r3, [pc, #168] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25462. 800b08c: 685b ldr r3, [r3, #4]
  25463. 800b08e: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  25464. 800b092: 687b ldr r3, [r7, #4]
  25465. 800b094: 691b ldr r3, [r3, #16]
  25466. 800b096: 031b lsls r3, r3, #12
  25467. 800b098: 4926 ldr r1, [pc, #152] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25468. 800b09a: 4313 orrs r3, r2
  25469. 800b09c: 604b str r3, [r1, #4]
  25470. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25471. 800b09e: e06f b.n 800b180 <HAL_RCC_OscConfig+0x2d4>
  25472. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25473. 800b0a0: 4b24 ldr r3, [pc, #144] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25474. 800b0a2: 685b ldr r3, [r3, #4]
  25475. 800b0a4: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  25476. 800b0a8: 687b ldr r3, [r7, #4]
  25477. 800b0aa: 691b ldr r3, [r3, #16]
  25478. 800b0ac: 061b lsls r3, r3, #24
  25479. 800b0ae: 4921 ldr r1, [pc, #132] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25480. 800b0b0: 4313 orrs r3, r2
  25481. 800b0b2: 604b str r3, [r1, #4]
  25482. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25483. 800b0b4: e064 b.n 800b180 <HAL_RCC_OscConfig+0x2d4>
  25484. }
  25485. else
  25486. {
  25487. /* Check the HSI State */
  25488. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  25489. 800b0b6: 687b ldr r3, [r7, #4]
  25490. 800b0b8: 68db ldr r3, [r3, #12]
  25491. 800b0ba: 2b00 cmp r3, #0
  25492. 800b0bc: d047 beq.n 800b14e <HAL_RCC_OscConfig+0x2a2>
  25493. {
  25494. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  25495. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  25496. 800b0be: 4b1d ldr r3, [pc, #116] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25497. 800b0c0: 681b ldr r3, [r3, #0]
  25498. 800b0c2: f023 0219 bic.w r2, r3, #25
  25499. 800b0c6: 687b ldr r3, [r7, #4]
  25500. 800b0c8: 68db ldr r3, [r3, #12]
  25501. 800b0ca: 491a ldr r1, [pc, #104] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25502. 800b0cc: 4313 orrs r3, r2
  25503. 800b0ce: 600b str r3, [r1, #0]
  25504. /* Get Start Tick*/
  25505. tickstart = HAL_GetTick();
  25506. 800b0d0: f7fa f9b4 bl 800543c <HAL_GetTick>
  25507. 800b0d4: 6278 str r0, [r7, #36] @ 0x24
  25508. /* Wait till HSI is ready */
  25509. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25510. 800b0d6: e008 b.n 800b0ea <HAL_RCC_OscConfig+0x23e>
  25511. {
  25512. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  25513. 800b0d8: f7fa f9b0 bl 800543c <HAL_GetTick>
  25514. 800b0dc: 4602 mov r2, r0
  25515. 800b0de: 6a7b ldr r3, [r7, #36] @ 0x24
  25516. 800b0e0: 1ad3 subs r3, r2, r3
  25517. 800b0e2: 2b02 cmp r3, #2
  25518. 800b0e4: d901 bls.n 800b0ea <HAL_RCC_OscConfig+0x23e>
  25519. {
  25520. return HAL_TIMEOUT;
  25521. 800b0e6: 2303 movs r3, #3
  25522. 800b0e8: e332 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25523. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25524. 800b0ea: 4b12 ldr r3, [pc, #72] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25525. 800b0ec: 681b ldr r3, [r3, #0]
  25526. 800b0ee: f003 0304 and.w r3, r3, #4
  25527. 800b0f2: 2b00 cmp r3, #0
  25528. 800b0f4: d0f0 beq.n 800b0d8 <HAL_RCC_OscConfig+0x22c>
  25529. }
  25530. }
  25531. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  25532. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25533. 800b0f6: f7fa f9ad bl 8005454 <HAL_GetREVID>
  25534. 800b0fa: 4603 mov r3, r0
  25535. 800b0fc: f241 0203 movw r2, #4099 @ 0x1003
  25536. 800b100: 4293 cmp r3, r2
  25537. 800b102: d819 bhi.n 800b138 <HAL_RCC_OscConfig+0x28c>
  25538. 800b104: 687b ldr r3, [r7, #4]
  25539. 800b106: 691b ldr r3, [r3, #16]
  25540. 800b108: 2b40 cmp r3, #64 @ 0x40
  25541. 800b10a: d108 bne.n 800b11e <HAL_RCC_OscConfig+0x272>
  25542. 800b10c: 4b09 ldr r3, [pc, #36] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25543. 800b10e: 685b ldr r3, [r3, #4]
  25544. 800b110: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  25545. 800b114: 4a07 ldr r2, [pc, #28] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25546. 800b116: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25547. 800b11a: 6053 str r3, [r2, #4]
  25548. 800b11c: e030 b.n 800b180 <HAL_RCC_OscConfig+0x2d4>
  25549. 800b11e: 4b05 ldr r3, [pc, #20] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25550. 800b120: 685b ldr r3, [r3, #4]
  25551. 800b122: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  25552. 800b126: 687b ldr r3, [r7, #4]
  25553. 800b128: 691b ldr r3, [r3, #16]
  25554. 800b12a: 031b lsls r3, r3, #12
  25555. 800b12c: 4901 ldr r1, [pc, #4] @ (800b134 <HAL_RCC_OscConfig+0x288>)
  25556. 800b12e: 4313 orrs r3, r2
  25557. 800b130: 604b str r3, [r1, #4]
  25558. 800b132: e025 b.n 800b180 <HAL_RCC_OscConfig+0x2d4>
  25559. 800b134: 58024400 .word 0x58024400
  25560. 800b138: 4b9a ldr r3, [pc, #616] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25561. 800b13a: 685b ldr r3, [r3, #4]
  25562. 800b13c: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  25563. 800b140: 687b ldr r3, [r7, #4]
  25564. 800b142: 691b ldr r3, [r3, #16]
  25565. 800b144: 061b lsls r3, r3, #24
  25566. 800b146: 4997 ldr r1, [pc, #604] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25567. 800b148: 4313 orrs r3, r2
  25568. 800b14a: 604b str r3, [r1, #4]
  25569. 800b14c: e018 b.n 800b180 <HAL_RCC_OscConfig+0x2d4>
  25570. }
  25571. else
  25572. {
  25573. /* Disable the Internal High Speed oscillator (HSI). */
  25574. __HAL_RCC_HSI_DISABLE();
  25575. 800b14e: 4b95 ldr r3, [pc, #596] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25576. 800b150: 681b ldr r3, [r3, #0]
  25577. 800b152: 4a94 ldr r2, [pc, #592] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25578. 800b154: f023 0301 bic.w r3, r3, #1
  25579. 800b158: 6013 str r3, [r2, #0]
  25580. /* Get Start Tick*/
  25581. tickstart = HAL_GetTick();
  25582. 800b15a: f7fa f96f bl 800543c <HAL_GetTick>
  25583. 800b15e: 6278 str r0, [r7, #36] @ 0x24
  25584. /* Wait till HSI is disabled */
  25585. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  25586. 800b160: e008 b.n 800b174 <HAL_RCC_OscConfig+0x2c8>
  25587. {
  25588. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  25589. 800b162: f7fa f96b bl 800543c <HAL_GetTick>
  25590. 800b166: 4602 mov r2, r0
  25591. 800b168: 6a7b ldr r3, [r7, #36] @ 0x24
  25592. 800b16a: 1ad3 subs r3, r2, r3
  25593. 800b16c: 2b02 cmp r3, #2
  25594. 800b16e: d901 bls.n 800b174 <HAL_RCC_OscConfig+0x2c8>
  25595. {
  25596. return HAL_TIMEOUT;
  25597. 800b170: 2303 movs r3, #3
  25598. 800b172: e2ed b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25599. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  25600. 800b174: 4b8b ldr r3, [pc, #556] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25601. 800b176: 681b ldr r3, [r3, #0]
  25602. 800b178: f003 0304 and.w r3, r3, #4
  25603. 800b17c: 2b00 cmp r3, #0
  25604. 800b17e: d1f0 bne.n 800b162 <HAL_RCC_OscConfig+0x2b6>
  25605. }
  25606. }
  25607. }
  25608. }
  25609. /*----------------------------- CSI Configuration --------------------------*/
  25610. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  25611. 800b180: 687b ldr r3, [r7, #4]
  25612. 800b182: 681b ldr r3, [r3, #0]
  25613. 800b184: f003 0310 and.w r3, r3, #16
  25614. 800b188: 2b00 cmp r3, #0
  25615. 800b18a: f000 80a9 beq.w 800b2e0 <HAL_RCC_OscConfig+0x434>
  25616. /* Check the parameters */
  25617. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  25618. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  25619. /* When the CSI is used as system clock it will not disabled */
  25620. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  25621. 800b18e: 4b85 ldr r3, [pc, #532] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25622. 800b190: 691b ldr r3, [r3, #16]
  25623. 800b192: f003 0338 and.w r3, r3, #56 @ 0x38
  25624. 800b196: 61bb str r3, [r7, #24]
  25625. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  25626. 800b198: 4b82 ldr r3, [pc, #520] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25627. 800b19a: 6a9b ldr r3, [r3, #40] @ 0x28
  25628. 800b19c: 617b str r3, [r7, #20]
  25629. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  25630. 800b19e: 69bb ldr r3, [r7, #24]
  25631. 800b1a0: 2b08 cmp r3, #8
  25632. 800b1a2: d007 beq.n 800b1b4 <HAL_RCC_OscConfig+0x308>
  25633. 800b1a4: 69bb ldr r3, [r7, #24]
  25634. 800b1a6: 2b18 cmp r3, #24
  25635. 800b1a8: d13a bne.n 800b220 <HAL_RCC_OscConfig+0x374>
  25636. 800b1aa: 697b ldr r3, [r7, #20]
  25637. 800b1ac: f003 0303 and.w r3, r3, #3
  25638. 800b1b0: 2b01 cmp r3, #1
  25639. 800b1b2: d135 bne.n 800b220 <HAL_RCC_OscConfig+0x374>
  25640. {
  25641. /* When CSI is used as system clock it will not disabled */
  25642. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  25643. 800b1b4: 4b7b ldr r3, [pc, #492] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25644. 800b1b6: 681b ldr r3, [r3, #0]
  25645. 800b1b8: f403 7380 and.w r3, r3, #256 @ 0x100
  25646. 800b1bc: 2b00 cmp r3, #0
  25647. 800b1be: d005 beq.n 800b1cc <HAL_RCC_OscConfig+0x320>
  25648. 800b1c0: 687b ldr r3, [r7, #4]
  25649. 800b1c2: 69db ldr r3, [r3, #28]
  25650. 800b1c4: 2b80 cmp r3, #128 @ 0x80
  25651. 800b1c6: d001 beq.n 800b1cc <HAL_RCC_OscConfig+0x320>
  25652. {
  25653. return HAL_ERROR;
  25654. 800b1c8: 2301 movs r3, #1
  25655. 800b1ca: e2c1 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25656. }
  25657. /* Otherwise, just the calibration is allowed */
  25658. else
  25659. {
  25660. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  25661. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  25662. 800b1cc: f7fa f942 bl 8005454 <HAL_GetREVID>
  25663. 800b1d0: 4603 mov r3, r0
  25664. 800b1d2: f241 0203 movw r2, #4099 @ 0x1003
  25665. 800b1d6: 4293 cmp r3, r2
  25666. 800b1d8: d817 bhi.n 800b20a <HAL_RCC_OscConfig+0x35e>
  25667. 800b1da: 687b ldr r3, [r7, #4]
  25668. 800b1dc: 6a1b ldr r3, [r3, #32]
  25669. 800b1de: 2b20 cmp r3, #32
  25670. 800b1e0: d108 bne.n 800b1f4 <HAL_RCC_OscConfig+0x348>
  25671. 800b1e2: 4b70 ldr r3, [pc, #448] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25672. 800b1e4: 685b ldr r3, [r3, #4]
  25673. 800b1e6: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  25674. 800b1ea: 4a6e ldr r2, [pc, #440] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25675. 800b1ec: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  25676. 800b1f0: 6053 str r3, [r2, #4]
  25677. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  25678. 800b1f2: e075 b.n 800b2e0 <HAL_RCC_OscConfig+0x434>
  25679. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  25680. 800b1f4: 4b6b ldr r3, [pc, #428] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25681. 800b1f6: 685b ldr r3, [r3, #4]
  25682. 800b1f8: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  25683. 800b1fc: 687b ldr r3, [r7, #4]
  25684. 800b1fe: 6a1b ldr r3, [r3, #32]
  25685. 800b200: 069b lsls r3, r3, #26
  25686. 800b202: 4968 ldr r1, [pc, #416] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25687. 800b204: 4313 orrs r3, r2
  25688. 800b206: 604b str r3, [r1, #4]
  25689. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  25690. 800b208: e06a b.n 800b2e0 <HAL_RCC_OscConfig+0x434>
  25691. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  25692. 800b20a: 4b66 ldr r3, [pc, #408] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25693. 800b20c: 68db ldr r3, [r3, #12]
  25694. 800b20e: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  25695. 800b212: 687b ldr r3, [r7, #4]
  25696. 800b214: 6a1b ldr r3, [r3, #32]
  25697. 800b216: 061b lsls r3, r3, #24
  25698. 800b218: 4962 ldr r1, [pc, #392] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25699. 800b21a: 4313 orrs r3, r2
  25700. 800b21c: 60cb str r3, [r1, #12]
  25701. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  25702. 800b21e: e05f b.n 800b2e0 <HAL_RCC_OscConfig+0x434>
  25703. }
  25704. }
  25705. else
  25706. {
  25707. /* Check the CSI State */
  25708. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  25709. 800b220: 687b ldr r3, [r7, #4]
  25710. 800b222: 69db ldr r3, [r3, #28]
  25711. 800b224: 2b00 cmp r3, #0
  25712. 800b226: d042 beq.n 800b2ae <HAL_RCC_OscConfig+0x402>
  25713. {
  25714. /* Enable the Internal High Speed oscillator (CSI). */
  25715. __HAL_RCC_CSI_ENABLE();
  25716. 800b228: 4b5e ldr r3, [pc, #376] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25717. 800b22a: 681b ldr r3, [r3, #0]
  25718. 800b22c: 4a5d ldr r2, [pc, #372] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25719. 800b22e: f043 0380 orr.w r3, r3, #128 @ 0x80
  25720. 800b232: 6013 str r3, [r2, #0]
  25721. /* Get Start Tick*/
  25722. tickstart = HAL_GetTick();
  25723. 800b234: f7fa f902 bl 800543c <HAL_GetTick>
  25724. 800b238: 6278 str r0, [r7, #36] @ 0x24
  25725. /* Wait till CSI is ready */
  25726. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  25727. 800b23a: e008 b.n 800b24e <HAL_RCC_OscConfig+0x3a2>
  25728. {
  25729. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  25730. 800b23c: f7fa f8fe bl 800543c <HAL_GetTick>
  25731. 800b240: 4602 mov r2, r0
  25732. 800b242: 6a7b ldr r3, [r7, #36] @ 0x24
  25733. 800b244: 1ad3 subs r3, r2, r3
  25734. 800b246: 2b02 cmp r3, #2
  25735. 800b248: d901 bls.n 800b24e <HAL_RCC_OscConfig+0x3a2>
  25736. {
  25737. return HAL_TIMEOUT;
  25738. 800b24a: 2303 movs r3, #3
  25739. 800b24c: e280 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25740. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  25741. 800b24e: 4b55 ldr r3, [pc, #340] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25742. 800b250: 681b ldr r3, [r3, #0]
  25743. 800b252: f403 7380 and.w r3, r3, #256 @ 0x100
  25744. 800b256: 2b00 cmp r3, #0
  25745. 800b258: d0f0 beq.n 800b23c <HAL_RCC_OscConfig+0x390>
  25746. }
  25747. }
  25748. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  25749. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  25750. 800b25a: f7fa f8fb bl 8005454 <HAL_GetREVID>
  25751. 800b25e: 4603 mov r3, r0
  25752. 800b260: f241 0203 movw r2, #4099 @ 0x1003
  25753. 800b264: 4293 cmp r3, r2
  25754. 800b266: d817 bhi.n 800b298 <HAL_RCC_OscConfig+0x3ec>
  25755. 800b268: 687b ldr r3, [r7, #4]
  25756. 800b26a: 6a1b ldr r3, [r3, #32]
  25757. 800b26c: 2b20 cmp r3, #32
  25758. 800b26e: d108 bne.n 800b282 <HAL_RCC_OscConfig+0x3d6>
  25759. 800b270: 4b4c ldr r3, [pc, #304] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25760. 800b272: 685b ldr r3, [r3, #4]
  25761. 800b274: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  25762. 800b278: 4a4a ldr r2, [pc, #296] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25763. 800b27a: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  25764. 800b27e: 6053 str r3, [r2, #4]
  25765. 800b280: e02e b.n 800b2e0 <HAL_RCC_OscConfig+0x434>
  25766. 800b282: 4b48 ldr r3, [pc, #288] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25767. 800b284: 685b ldr r3, [r3, #4]
  25768. 800b286: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  25769. 800b28a: 687b ldr r3, [r7, #4]
  25770. 800b28c: 6a1b ldr r3, [r3, #32]
  25771. 800b28e: 069b lsls r3, r3, #26
  25772. 800b290: 4944 ldr r1, [pc, #272] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25773. 800b292: 4313 orrs r3, r2
  25774. 800b294: 604b str r3, [r1, #4]
  25775. 800b296: e023 b.n 800b2e0 <HAL_RCC_OscConfig+0x434>
  25776. 800b298: 4b42 ldr r3, [pc, #264] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25777. 800b29a: 68db ldr r3, [r3, #12]
  25778. 800b29c: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  25779. 800b2a0: 687b ldr r3, [r7, #4]
  25780. 800b2a2: 6a1b ldr r3, [r3, #32]
  25781. 800b2a4: 061b lsls r3, r3, #24
  25782. 800b2a6: 493f ldr r1, [pc, #252] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25783. 800b2a8: 4313 orrs r3, r2
  25784. 800b2aa: 60cb str r3, [r1, #12]
  25785. 800b2ac: e018 b.n 800b2e0 <HAL_RCC_OscConfig+0x434>
  25786. }
  25787. else
  25788. {
  25789. /* Disable the Internal High Speed oscillator (CSI). */
  25790. __HAL_RCC_CSI_DISABLE();
  25791. 800b2ae: 4b3d ldr r3, [pc, #244] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25792. 800b2b0: 681b ldr r3, [r3, #0]
  25793. 800b2b2: 4a3c ldr r2, [pc, #240] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25794. 800b2b4: f023 0380 bic.w r3, r3, #128 @ 0x80
  25795. 800b2b8: 6013 str r3, [r2, #0]
  25796. /* Get Start Tick*/
  25797. tickstart = HAL_GetTick();
  25798. 800b2ba: f7fa f8bf bl 800543c <HAL_GetTick>
  25799. 800b2be: 6278 str r0, [r7, #36] @ 0x24
  25800. /* Wait till CSI is disabled */
  25801. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  25802. 800b2c0: e008 b.n 800b2d4 <HAL_RCC_OscConfig+0x428>
  25803. {
  25804. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  25805. 800b2c2: f7fa f8bb bl 800543c <HAL_GetTick>
  25806. 800b2c6: 4602 mov r2, r0
  25807. 800b2c8: 6a7b ldr r3, [r7, #36] @ 0x24
  25808. 800b2ca: 1ad3 subs r3, r2, r3
  25809. 800b2cc: 2b02 cmp r3, #2
  25810. 800b2ce: d901 bls.n 800b2d4 <HAL_RCC_OscConfig+0x428>
  25811. {
  25812. return HAL_TIMEOUT;
  25813. 800b2d0: 2303 movs r3, #3
  25814. 800b2d2: e23d b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25815. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  25816. 800b2d4: 4b33 ldr r3, [pc, #204] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25817. 800b2d6: 681b ldr r3, [r3, #0]
  25818. 800b2d8: f403 7380 and.w r3, r3, #256 @ 0x100
  25819. 800b2dc: 2b00 cmp r3, #0
  25820. 800b2de: d1f0 bne.n 800b2c2 <HAL_RCC_OscConfig+0x416>
  25821. }
  25822. }
  25823. }
  25824. }
  25825. /*------------------------------ LSI Configuration -------------------------*/
  25826. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  25827. 800b2e0: 687b ldr r3, [r7, #4]
  25828. 800b2e2: 681b ldr r3, [r3, #0]
  25829. 800b2e4: f003 0308 and.w r3, r3, #8
  25830. 800b2e8: 2b00 cmp r3, #0
  25831. 800b2ea: d036 beq.n 800b35a <HAL_RCC_OscConfig+0x4ae>
  25832. {
  25833. /* Check the parameters */
  25834. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  25835. /* Check the LSI State */
  25836. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  25837. 800b2ec: 687b ldr r3, [r7, #4]
  25838. 800b2ee: 695b ldr r3, [r3, #20]
  25839. 800b2f0: 2b00 cmp r3, #0
  25840. 800b2f2: d019 beq.n 800b328 <HAL_RCC_OscConfig+0x47c>
  25841. {
  25842. /* Enable the Internal Low Speed oscillator (LSI). */
  25843. __HAL_RCC_LSI_ENABLE();
  25844. 800b2f4: 4b2b ldr r3, [pc, #172] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25845. 800b2f6: 6f5b ldr r3, [r3, #116] @ 0x74
  25846. 800b2f8: 4a2a ldr r2, [pc, #168] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25847. 800b2fa: f043 0301 orr.w r3, r3, #1
  25848. 800b2fe: 6753 str r3, [r2, #116] @ 0x74
  25849. /* Get Start Tick*/
  25850. tickstart = HAL_GetTick();
  25851. 800b300: f7fa f89c bl 800543c <HAL_GetTick>
  25852. 800b304: 6278 str r0, [r7, #36] @ 0x24
  25853. /* Wait till LSI is ready */
  25854. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  25855. 800b306: e008 b.n 800b31a <HAL_RCC_OscConfig+0x46e>
  25856. {
  25857. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  25858. 800b308: f7fa f898 bl 800543c <HAL_GetTick>
  25859. 800b30c: 4602 mov r2, r0
  25860. 800b30e: 6a7b ldr r3, [r7, #36] @ 0x24
  25861. 800b310: 1ad3 subs r3, r2, r3
  25862. 800b312: 2b02 cmp r3, #2
  25863. 800b314: d901 bls.n 800b31a <HAL_RCC_OscConfig+0x46e>
  25864. {
  25865. return HAL_TIMEOUT;
  25866. 800b316: 2303 movs r3, #3
  25867. 800b318: e21a b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25868. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  25869. 800b31a: 4b22 ldr r3, [pc, #136] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25870. 800b31c: 6f5b ldr r3, [r3, #116] @ 0x74
  25871. 800b31e: f003 0302 and.w r3, r3, #2
  25872. 800b322: 2b00 cmp r3, #0
  25873. 800b324: d0f0 beq.n 800b308 <HAL_RCC_OscConfig+0x45c>
  25874. 800b326: e018 b.n 800b35a <HAL_RCC_OscConfig+0x4ae>
  25875. }
  25876. }
  25877. else
  25878. {
  25879. /* Disable the Internal Low Speed oscillator (LSI). */
  25880. __HAL_RCC_LSI_DISABLE();
  25881. 800b328: 4b1e ldr r3, [pc, #120] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25882. 800b32a: 6f5b ldr r3, [r3, #116] @ 0x74
  25883. 800b32c: 4a1d ldr r2, [pc, #116] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25884. 800b32e: f023 0301 bic.w r3, r3, #1
  25885. 800b332: 6753 str r3, [r2, #116] @ 0x74
  25886. /* Get Start Tick*/
  25887. tickstart = HAL_GetTick();
  25888. 800b334: f7fa f882 bl 800543c <HAL_GetTick>
  25889. 800b338: 6278 str r0, [r7, #36] @ 0x24
  25890. /* Wait till LSI is ready */
  25891. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  25892. 800b33a: e008 b.n 800b34e <HAL_RCC_OscConfig+0x4a2>
  25893. {
  25894. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  25895. 800b33c: f7fa f87e bl 800543c <HAL_GetTick>
  25896. 800b340: 4602 mov r2, r0
  25897. 800b342: 6a7b ldr r3, [r7, #36] @ 0x24
  25898. 800b344: 1ad3 subs r3, r2, r3
  25899. 800b346: 2b02 cmp r3, #2
  25900. 800b348: d901 bls.n 800b34e <HAL_RCC_OscConfig+0x4a2>
  25901. {
  25902. return HAL_TIMEOUT;
  25903. 800b34a: 2303 movs r3, #3
  25904. 800b34c: e200 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25905. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  25906. 800b34e: 4b15 ldr r3, [pc, #84] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25907. 800b350: 6f5b ldr r3, [r3, #116] @ 0x74
  25908. 800b352: f003 0302 and.w r3, r3, #2
  25909. 800b356: 2b00 cmp r3, #0
  25910. 800b358: d1f0 bne.n 800b33c <HAL_RCC_OscConfig+0x490>
  25911. }
  25912. }
  25913. }
  25914. /*------------------------------ HSI48 Configuration -------------------------*/
  25915. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  25916. 800b35a: 687b ldr r3, [r7, #4]
  25917. 800b35c: 681b ldr r3, [r3, #0]
  25918. 800b35e: f003 0320 and.w r3, r3, #32
  25919. 800b362: 2b00 cmp r3, #0
  25920. 800b364: d039 beq.n 800b3da <HAL_RCC_OscConfig+0x52e>
  25921. {
  25922. /* Check the parameters */
  25923. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  25924. /* Check the HSI48 State */
  25925. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  25926. 800b366: 687b ldr r3, [r7, #4]
  25927. 800b368: 699b ldr r3, [r3, #24]
  25928. 800b36a: 2b00 cmp r3, #0
  25929. 800b36c: d01c beq.n 800b3a8 <HAL_RCC_OscConfig+0x4fc>
  25930. {
  25931. /* Enable the Internal Low Speed oscillator (HSI48). */
  25932. __HAL_RCC_HSI48_ENABLE();
  25933. 800b36e: 4b0d ldr r3, [pc, #52] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25934. 800b370: 681b ldr r3, [r3, #0]
  25935. 800b372: 4a0c ldr r2, [pc, #48] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25936. 800b374: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  25937. 800b378: 6013 str r3, [r2, #0]
  25938. /* Get time-out */
  25939. tickstart = HAL_GetTick();
  25940. 800b37a: f7fa f85f bl 800543c <HAL_GetTick>
  25941. 800b37e: 6278 str r0, [r7, #36] @ 0x24
  25942. /* Wait till HSI48 is ready */
  25943. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  25944. 800b380: e008 b.n 800b394 <HAL_RCC_OscConfig+0x4e8>
  25945. {
  25946. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  25947. 800b382: f7fa f85b bl 800543c <HAL_GetTick>
  25948. 800b386: 4602 mov r2, r0
  25949. 800b388: 6a7b ldr r3, [r7, #36] @ 0x24
  25950. 800b38a: 1ad3 subs r3, r2, r3
  25951. 800b38c: 2b02 cmp r3, #2
  25952. 800b38e: d901 bls.n 800b394 <HAL_RCC_OscConfig+0x4e8>
  25953. {
  25954. return HAL_TIMEOUT;
  25955. 800b390: 2303 movs r3, #3
  25956. 800b392: e1dd b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25957. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  25958. 800b394: 4b03 ldr r3, [pc, #12] @ (800b3a4 <HAL_RCC_OscConfig+0x4f8>)
  25959. 800b396: 681b ldr r3, [r3, #0]
  25960. 800b398: f403 5300 and.w r3, r3, #8192 @ 0x2000
  25961. 800b39c: 2b00 cmp r3, #0
  25962. 800b39e: d0f0 beq.n 800b382 <HAL_RCC_OscConfig+0x4d6>
  25963. 800b3a0: e01b b.n 800b3da <HAL_RCC_OscConfig+0x52e>
  25964. 800b3a2: bf00 nop
  25965. 800b3a4: 58024400 .word 0x58024400
  25966. }
  25967. }
  25968. else
  25969. {
  25970. /* Disable the Internal Low Speed oscillator (HSI48). */
  25971. __HAL_RCC_HSI48_DISABLE();
  25972. 800b3a8: 4b9b ldr r3, [pc, #620] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  25973. 800b3aa: 681b ldr r3, [r3, #0]
  25974. 800b3ac: 4a9a ldr r2, [pc, #616] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  25975. 800b3ae: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  25976. 800b3b2: 6013 str r3, [r2, #0]
  25977. /* Get time-out */
  25978. tickstart = HAL_GetTick();
  25979. 800b3b4: f7fa f842 bl 800543c <HAL_GetTick>
  25980. 800b3b8: 6278 str r0, [r7, #36] @ 0x24
  25981. /* Wait till HSI48 is ready */
  25982. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  25983. 800b3ba: e008 b.n 800b3ce <HAL_RCC_OscConfig+0x522>
  25984. {
  25985. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  25986. 800b3bc: f7fa f83e bl 800543c <HAL_GetTick>
  25987. 800b3c0: 4602 mov r2, r0
  25988. 800b3c2: 6a7b ldr r3, [r7, #36] @ 0x24
  25989. 800b3c4: 1ad3 subs r3, r2, r3
  25990. 800b3c6: 2b02 cmp r3, #2
  25991. 800b3c8: d901 bls.n 800b3ce <HAL_RCC_OscConfig+0x522>
  25992. {
  25993. return HAL_TIMEOUT;
  25994. 800b3ca: 2303 movs r3, #3
  25995. 800b3cc: e1c0 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  25996. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  25997. 800b3ce: 4b92 ldr r3, [pc, #584] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  25998. 800b3d0: 681b ldr r3, [r3, #0]
  25999. 800b3d2: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26000. 800b3d6: 2b00 cmp r3, #0
  26001. 800b3d8: d1f0 bne.n 800b3bc <HAL_RCC_OscConfig+0x510>
  26002. }
  26003. }
  26004. }
  26005. }
  26006. /*------------------------------ LSE Configuration -------------------------*/
  26007. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  26008. 800b3da: 687b ldr r3, [r7, #4]
  26009. 800b3dc: 681b ldr r3, [r3, #0]
  26010. 800b3de: f003 0304 and.w r3, r3, #4
  26011. 800b3e2: 2b00 cmp r3, #0
  26012. 800b3e4: f000 8081 beq.w 800b4ea <HAL_RCC_OscConfig+0x63e>
  26013. {
  26014. /* Check the parameters */
  26015. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  26016. /* Enable write access to Backup domain */
  26017. PWR->CR1 |= PWR_CR1_DBP;
  26018. 800b3e8: 4b8c ldr r3, [pc, #560] @ (800b61c <HAL_RCC_OscConfig+0x770>)
  26019. 800b3ea: 681b ldr r3, [r3, #0]
  26020. 800b3ec: 4a8b ldr r2, [pc, #556] @ (800b61c <HAL_RCC_OscConfig+0x770>)
  26021. 800b3ee: f443 7380 orr.w r3, r3, #256 @ 0x100
  26022. 800b3f2: 6013 str r3, [r2, #0]
  26023. /* Wait for Backup domain Write protection disable */
  26024. tickstart = HAL_GetTick();
  26025. 800b3f4: f7fa f822 bl 800543c <HAL_GetTick>
  26026. 800b3f8: 6278 str r0, [r7, #36] @ 0x24
  26027. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26028. 800b3fa: e008 b.n 800b40e <HAL_RCC_OscConfig+0x562>
  26029. {
  26030. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  26031. 800b3fc: f7fa f81e bl 800543c <HAL_GetTick>
  26032. 800b400: 4602 mov r2, r0
  26033. 800b402: 6a7b ldr r3, [r7, #36] @ 0x24
  26034. 800b404: 1ad3 subs r3, r2, r3
  26035. 800b406: 2b64 cmp r3, #100 @ 0x64
  26036. 800b408: d901 bls.n 800b40e <HAL_RCC_OscConfig+0x562>
  26037. {
  26038. return HAL_TIMEOUT;
  26039. 800b40a: 2303 movs r3, #3
  26040. 800b40c: e1a0 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  26041. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26042. 800b40e: 4b83 ldr r3, [pc, #524] @ (800b61c <HAL_RCC_OscConfig+0x770>)
  26043. 800b410: 681b ldr r3, [r3, #0]
  26044. 800b412: f403 7380 and.w r3, r3, #256 @ 0x100
  26045. 800b416: 2b00 cmp r3, #0
  26046. 800b418: d0f0 beq.n 800b3fc <HAL_RCC_OscConfig+0x550>
  26047. }
  26048. }
  26049. /* Set the new LSE configuration -----------------------------------------*/
  26050. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  26051. 800b41a: 687b ldr r3, [r7, #4]
  26052. 800b41c: 689b ldr r3, [r3, #8]
  26053. 800b41e: 2b01 cmp r3, #1
  26054. 800b420: d106 bne.n 800b430 <HAL_RCC_OscConfig+0x584>
  26055. 800b422: 4b7d ldr r3, [pc, #500] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26056. 800b424: 6f1b ldr r3, [r3, #112] @ 0x70
  26057. 800b426: 4a7c ldr r2, [pc, #496] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26058. 800b428: f043 0301 orr.w r3, r3, #1
  26059. 800b42c: 6713 str r3, [r2, #112] @ 0x70
  26060. 800b42e: e02d b.n 800b48c <HAL_RCC_OscConfig+0x5e0>
  26061. 800b430: 687b ldr r3, [r7, #4]
  26062. 800b432: 689b ldr r3, [r3, #8]
  26063. 800b434: 2b00 cmp r3, #0
  26064. 800b436: d10c bne.n 800b452 <HAL_RCC_OscConfig+0x5a6>
  26065. 800b438: 4b77 ldr r3, [pc, #476] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26066. 800b43a: 6f1b ldr r3, [r3, #112] @ 0x70
  26067. 800b43c: 4a76 ldr r2, [pc, #472] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26068. 800b43e: f023 0301 bic.w r3, r3, #1
  26069. 800b442: 6713 str r3, [r2, #112] @ 0x70
  26070. 800b444: 4b74 ldr r3, [pc, #464] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26071. 800b446: 6f1b ldr r3, [r3, #112] @ 0x70
  26072. 800b448: 4a73 ldr r2, [pc, #460] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26073. 800b44a: f023 0304 bic.w r3, r3, #4
  26074. 800b44e: 6713 str r3, [r2, #112] @ 0x70
  26075. 800b450: e01c b.n 800b48c <HAL_RCC_OscConfig+0x5e0>
  26076. 800b452: 687b ldr r3, [r7, #4]
  26077. 800b454: 689b ldr r3, [r3, #8]
  26078. 800b456: 2b05 cmp r3, #5
  26079. 800b458: d10c bne.n 800b474 <HAL_RCC_OscConfig+0x5c8>
  26080. 800b45a: 4b6f ldr r3, [pc, #444] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26081. 800b45c: 6f1b ldr r3, [r3, #112] @ 0x70
  26082. 800b45e: 4a6e ldr r2, [pc, #440] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26083. 800b460: f043 0304 orr.w r3, r3, #4
  26084. 800b464: 6713 str r3, [r2, #112] @ 0x70
  26085. 800b466: 4b6c ldr r3, [pc, #432] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26086. 800b468: 6f1b ldr r3, [r3, #112] @ 0x70
  26087. 800b46a: 4a6b ldr r2, [pc, #428] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26088. 800b46c: f043 0301 orr.w r3, r3, #1
  26089. 800b470: 6713 str r3, [r2, #112] @ 0x70
  26090. 800b472: e00b b.n 800b48c <HAL_RCC_OscConfig+0x5e0>
  26091. 800b474: 4b68 ldr r3, [pc, #416] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26092. 800b476: 6f1b ldr r3, [r3, #112] @ 0x70
  26093. 800b478: 4a67 ldr r2, [pc, #412] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26094. 800b47a: f023 0301 bic.w r3, r3, #1
  26095. 800b47e: 6713 str r3, [r2, #112] @ 0x70
  26096. 800b480: 4b65 ldr r3, [pc, #404] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26097. 800b482: 6f1b ldr r3, [r3, #112] @ 0x70
  26098. 800b484: 4a64 ldr r2, [pc, #400] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26099. 800b486: f023 0304 bic.w r3, r3, #4
  26100. 800b48a: 6713 str r3, [r2, #112] @ 0x70
  26101. /* Check the LSE State */
  26102. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  26103. 800b48c: 687b ldr r3, [r7, #4]
  26104. 800b48e: 689b ldr r3, [r3, #8]
  26105. 800b490: 2b00 cmp r3, #0
  26106. 800b492: d015 beq.n 800b4c0 <HAL_RCC_OscConfig+0x614>
  26107. {
  26108. /* Get Start Tick*/
  26109. tickstart = HAL_GetTick();
  26110. 800b494: f7f9 ffd2 bl 800543c <HAL_GetTick>
  26111. 800b498: 6278 str r0, [r7, #36] @ 0x24
  26112. /* Wait till LSE is ready */
  26113. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  26114. 800b49a: e00a b.n 800b4b2 <HAL_RCC_OscConfig+0x606>
  26115. {
  26116. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  26117. 800b49c: f7f9 ffce bl 800543c <HAL_GetTick>
  26118. 800b4a0: 4602 mov r2, r0
  26119. 800b4a2: 6a7b ldr r3, [r7, #36] @ 0x24
  26120. 800b4a4: 1ad3 subs r3, r2, r3
  26121. 800b4a6: f241 3288 movw r2, #5000 @ 0x1388
  26122. 800b4aa: 4293 cmp r3, r2
  26123. 800b4ac: d901 bls.n 800b4b2 <HAL_RCC_OscConfig+0x606>
  26124. {
  26125. return HAL_TIMEOUT;
  26126. 800b4ae: 2303 movs r3, #3
  26127. 800b4b0: e14e b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  26128. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  26129. 800b4b2: 4b59 ldr r3, [pc, #356] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26130. 800b4b4: 6f1b ldr r3, [r3, #112] @ 0x70
  26131. 800b4b6: f003 0302 and.w r3, r3, #2
  26132. 800b4ba: 2b00 cmp r3, #0
  26133. 800b4bc: d0ee beq.n 800b49c <HAL_RCC_OscConfig+0x5f0>
  26134. 800b4be: e014 b.n 800b4ea <HAL_RCC_OscConfig+0x63e>
  26135. }
  26136. }
  26137. else
  26138. {
  26139. /* Get Start Tick*/
  26140. tickstart = HAL_GetTick();
  26141. 800b4c0: f7f9 ffbc bl 800543c <HAL_GetTick>
  26142. 800b4c4: 6278 str r0, [r7, #36] @ 0x24
  26143. /* Wait till LSE is disabled */
  26144. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  26145. 800b4c6: e00a b.n 800b4de <HAL_RCC_OscConfig+0x632>
  26146. {
  26147. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  26148. 800b4c8: f7f9 ffb8 bl 800543c <HAL_GetTick>
  26149. 800b4cc: 4602 mov r2, r0
  26150. 800b4ce: 6a7b ldr r3, [r7, #36] @ 0x24
  26151. 800b4d0: 1ad3 subs r3, r2, r3
  26152. 800b4d2: f241 3288 movw r2, #5000 @ 0x1388
  26153. 800b4d6: 4293 cmp r3, r2
  26154. 800b4d8: d901 bls.n 800b4de <HAL_RCC_OscConfig+0x632>
  26155. {
  26156. return HAL_TIMEOUT;
  26157. 800b4da: 2303 movs r3, #3
  26158. 800b4dc: e138 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  26159. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  26160. 800b4de: 4b4e ldr r3, [pc, #312] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26161. 800b4e0: 6f1b ldr r3, [r3, #112] @ 0x70
  26162. 800b4e2: f003 0302 and.w r3, r3, #2
  26163. 800b4e6: 2b00 cmp r3, #0
  26164. 800b4e8: d1ee bne.n 800b4c8 <HAL_RCC_OscConfig+0x61c>
  26165. }
  26166. }
  26167. /*-------------------------------- PLL Configuration -----------------------*/
  26168. /* Check the parameters */
  26169. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  26170. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  26171. 800b4ea: 687b ldr r3, [r7, #4]
  26172. 800b4ec: 6a5b ldr r3, [r3, #36] @ 0x24
  26173. 800b4ee: 2b00 cmp r3, #0
  26174. 800b4f0: f000 812d beq.w 800b74e <HAL_RCC_OscConfig+0x8a2>
  26175. {
  26176. /* Check if the PLL is used as system clock or not */
  26177. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  26178. 800b4f4: 4b48 ldr r3, [pc, #288] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26179. 800b4f6: 691b ldr r3, [r3, #16]
  26180. 800b4f8: f003 0338 and.w r3, r3, #56 @ 0x38
  26181. 800b4fc: 2b18 cmp r3, #24
  26182. 800b4fe: f000 80bd beq.w 800b67c <HAL_RCC_OscConfig+0x7d0>
  26183. {
  26184. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  26185. 800b502: 687b ldr r3, [r7, #4]
  26186. 800b504: 6a5b ldr r3, [r3, #36] @ 0x24
  26187. 800b506: 2b02 cmp r3, #2
  26188. 800b508: f040 809e bne.w 800b648 <HAL_RCC_OscConfig+0x79c>
  26189. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  26190. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  26191. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  26192. /* Disable the main PLL. */
  26193. __HAL_RCC_PLL_DISABLE();
  26194. 800b50c: 4b42 ldr r3, [pc, #264] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26195. 800b50e: 681b ldr r3, [r3, #0]
  26196. 800b510: 4a41 ldr r2, [pc, #260] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26197. 800b512: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  26198. 800b516: 6013 str r3, [r2, #0]
  26199. /* Get Start Tick*/
  26200. tickstart = HAL_GetTick();
  26201. 800b518: f7f9 ff90 bl 800543c <HAL_GetTick>
  26202. 800b51c: 6278 str r0, [r7, #36] @ 0x24
  26203. /* Wait till PLL is disabled */
  26204. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26205. 800b51e: e008 b.n 800b532 <HAL_RCC_OscConfig+0x686>
  26206. {
  26207. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  26208. 800b520: f7f9 ff8c bl 800543c <HAL_GetTick>
  26209. 800b524: 4602 mov r2, r0
  26210. 800b526: 6a7b ldr r3, [r7, #36] @ 0x24
  26211. 800b528: 1ad3 subs r3, r2, r3
  26212. 800b52a: 2b02 cmp r3, #2
  26213. 800b52c: d901 bls.n 800b532 <HAL_RCC_OscConfig+0x686>
  26214. {
  26215. return HAL_TIMEOUT;
  26216. 800b52e: 2303 movs r3, #3
  26217. 800b530: e10e b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  26218. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26219. 800b532: 4b39 ldr r3, [pc, #228] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26220. 800b534: 681b ldr r3, [r3, #0]
  26221. 800b536: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26222. 800b53a: 2b00 cmp r3, #0
  26223. 800b53c: d1f0 bne.n 800b520 <HAL_RCC_OscConfig+0x674>
  26224. }
  26225. }
  26226. /* Configure the main PLL clock source, multiplication and division factors. */
  26227. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  26228. 800b53e: 4b36 ldr r3, [pc, #216] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26229. 800b540: 6a9a ldr r2, [r3, #40] @ 0x28
  26230. 800b542: 4b37 ldr r3, [pc, #220] @ (800b620 <HAL_RCC_OscConfig+0x774>)
  26231. 800b544: 4013 ands r3, r2
  26232. 800b546: 687a ldr r2, [r7, #4]
  26233. 800b548: 6a91 ldr r1, [r2, #40] @ 0x28
  26234. 800b54a: 687a ldr r2, [r7, #4]
  26235. 800b54c: 6ad2 ldr r2, [r2, #44] @ 0x2c
  26236. 800b54e: 0112 lsls r2, r2, #4
  26237. 800b550: 430a orrs r2, r1
  26238. 800b552: 4931 ldr r1, [pc, #196] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26239. 800b554: 4313 orrs r3, r2
  26240. 800b556: 628b str r3, [r1, #40] @ 0x28
  26241. 800b558: 687b ldr r3, [r7, #4]
  26242. 800b55a: 6b1b ldr r3, [r3, #48] @ 0x30
  26243. 800b55c: 3b01 subs r3, #1
  26244. 800b55e: f3c3 0208 ubfx r2, r3, #0, #9
  26245. 800b562: 687b ldr r3, [r7, #4]
  26246. 800b564: 6b5b ldr r3, [r3, #52] @ 0x34
  26247. 800b566: 3b01 subs r3, #1
  26248. 800b568: 025b lsls r3, r3, #9
  26249. 800b56a: b29b uxth r3, r3
  26250. 800b56c: 431a orrs r2, r3
  26251. 800b56e: 687b ldr r3, [r7, #4]
  26252. 800b570: 6b9b ldr r3, [r3, #56] @ 0x38
  26253. 800b572: 3b01 subs r3, #1
  26254. 800b574: 041b lsls r3, r3, #16
  26255. 800b576: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  26256. 800b57a: 431a orrs r2, r3
  26257. 800b57c: 687b ldr r3, [r7, #4]
  26258. 800b57e: 6bdb ldr r3, [r3, #60] @ 0x3c
  26259. 800b580: 3b01 subs r3, #1
  26260. 800b582: 061b lsls r3, r3, #24
  26261. 800b584: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  26262. 800b588: 4923 ldr r1, [pc, #140] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26263. 800b58a: 4313 orrs r3, r2
  26264. 800b58c: 630b str r3, [r1, #48] @ 0x30
  26265. RCC_OscInitStruct->PLL.PLLP,
  26266. RCC_OscInitStruct->PLL.PLLQ,
  26267. RCC_OscInitStruct->PLL.PLLR);
  26268. /* Disable PLLFRACN . */
  26269. __HAL_RCC_PLLFRACN_DISABLE();
  26270. 800b58e: 4b22 ldr r3, [pc, #136] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26271. 800b590: 6adb ldr r3, [r3, #44] @ 0x2c
  26272. 800b592: 4a21 ldr r2, [pc, #132] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26273. 800b594: f023 0301 bic.w r3, r3, #1
  26274. 800b598: 62d3 str r3, [r2, #44] @ 0x2c
  26275. /* Configure PLL PLL1FRACN */
  26276. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  26277. 800b59a: 4b1f ldr r3, [pc, #124] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26278. 800b59c: 6b5a ldr r2, [r3, #52] @ 0x34
  26279. 800b59e: 4b21 ldr r3, [pc, #132] @ (800b624 <HAL_RCC_OscConfig+0x778>)
  26280. 800b5a0: 4013 ands r3, r2
  26281. 800b5a2: 687a ldr r2, [r7, #4]
  26282. 800b5a4: 6c92 ldr r2, [r2, #72] @ 0x48
  26283. 800b5a6: 00d2 lsls r2, r2, #3
  26284. 800b5a8: 491b ldr r1, [pc, #108] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26285. 800b5aa: 4313 orrs r3, r2
  26286. 800b5ac: 634b str r3, [r1, #52] @ 0x34
  26287. /* Select PLL1 input reference frequency range: VCI */
  26288. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  26289. 800b5ae: 4b1a ldr r3, [pc, #104] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26290. 800b5b0: 6adb ldr r3, [r3, #44] @ 0x2c
  26291. 800b5b2: f023 020c bic.w r2, r3, #12
  26292. 800b5b6: 687b ldr r3, [r7, #4]
  26293. 800b5b8: 6c1b ldr r3, [r3, #64] @ 0x40
  26294. 800b5ba: 4917 ldr r1, [pc, #92] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26295. 800b5bc: 4313 orrs r3, r2
  26296. 800b5be: 62cb str r3, [r1, #44] @ 0x2c
  26297. /* Select PLL1 output frequency range : VCO */
  26298. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  26299. 800b5c0: 4b15 ldr r3, [pc, #84] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26300. 800b5c2: 6adb ldr r3, [r3, #44] @ 0x2c
  26301. 800b5c4: f023 0202 bic.w r2, r3, #2
  26302. 800b5c8: 687b ldr r3, [r7, #4]
  26303. 800b5ca: 6c5b ldr r3, [r3, #68] @ 0x44
  26304. 800b5cc: 4912 ldr r1, [pc, #72] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26305. 800b5ce: 4313 orrs r3, r2
  26306. 800b5d0: 62cb str r3, [r1, #44] @ 0x2c
  26307. /* Enable PLL System Clock output. */
  26308. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  26309. 800b5d2: 4b11 ldr r3, [pc, #68] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26310. 800b5d4: 6adb ldr r3, [r3, #44] @ 0x2c
  26311. 800b5d6: 4a10 ldr r2, [pc, #64] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26312. 800b5d8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26313. 800b5dc: 62d3 str r3, [r2, #44] @ 0x2c
  26314. /* Enable PLL1Q Clock output. */
  26315. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26316. 800b5de: 4b0e ldr r3, [pc, #56] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26317. 800b5e0: 6adb ldr r3, [r3, #44] @ 0x2c
  26318. 800b5e2: 4a0d ldr r2, [pc, #52] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26319. 800b5e4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26320. 800b5e8: 62d3 str r3, [r2, #44] @ 0x2c
  26321. /* Enable PLL1R Clock output. */
  26322. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  26323. 800b5ea: 4b0b ldr r3, [pc, #44] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26324. 800b5ec: 6adb ldr r3, [r3, #44] @ 0x2c
  26325. 800b5ee: 4a0a ldr r2, [pc, #40] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26326. 800b5f0: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  26327. 800b5f4: 62d3 str r3, [r2, #44] @ 0x2c
  26328. /* Enable PLL1FRACN . */
  26329. __HAL_RCC_PLLFRACN_ENABLE();
  26330. 800b5f6: 4b08 ldr r3, [pc, #32] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26331. 800b5f8: 6adb ldr r3, [r3, #44] @ 0x2c
  26332. 800b5fa: 4a07 ldr r2, [pc, #28] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26333. 800b5fc: f043 0301 orr.w r3, r3, #1
  26334. 800b600: 62d3 str r3, [r2, #44] @ 0x2c
  26335. /* Enable the main PLL. */
  26336. __HAL_RCC_PLL_ENABLE();
  26337. 800b602: 4b05 ldr r3, [pc, #20] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26338. 800b604: 681b ldr r3, [r3, #0]
  26339. 800b606: 4a04 ldr r2, [pc, #16] @ (800b618 <HAL_RCC_OscConfig+0x76c>)
  26340. 800b608: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  26341. 800b60c: 6013 str r3, [r2, #0]
  26342. /* Get Start Tick*/
  26343. tickstart = HAL_GetTick();
  26344. 800b60e: f7f9 ff15 bl 800543c <HAL_GetTick>
  26345. 800b612: 6278 str r0, [r7, #36] @ 0x24
  26346. /* Wait till PLL is ready */
  26347. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  26348. 800b614: e011 b.n 800b63a <HAL_RCC_OscConfig+0x78e>
  26349. 800b616: bf00 nop
  26350. 800b618: 58024400 .word 0x58024400
  26351. 800b61c: 58024800 .word 0x58024800
  26352. 800b620: fffffc0c .word 0xfffffc0c
  26353. 800b624: ffff0007 .word 0xffff0007
  26354. {
  26355. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  26356. 800b628: f7f9 ff08 bl 800543c <HAL_GetTick>
  26357. 800b62c: 4602 mov r2, r0
  26358. 800b62e: 6a7b ldr r3, [r7, #36] @ 0x24
  26359. 800b630: 1ad3 subs r3, r2, r3
  26360. 800b632: 2b02 cmp r3, #2
  26361. 800b634: d901 bls.n 800b63a <HAL_RCC_OscConfig+0x78e>
  26362. {
  26363. return HAL_TIMEOUT;
  26364. 800b636: 2303 movs r3, #3
  26365. 800b638: e08a b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  26366. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  26367. 800b63a: 4b47 ldr r3, [pc, #284] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26368. 800b63c: 681b ldr r3, [r3, #0]
  26369. 800b63e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26370. 800b642: 2b00 cmp r3, #0
  26371. 800b644: d0f0 beq.n 800b628 <HAL_RCC_OscConfig+0x77c>
  26372. 800b646: e082 b.n 800b74e <HAL_RCC_OscConfig+0x8a2>
  26373. }
  26374. }
  26375. else
  26376. {
  26377. /* Disable the main PLL. */
  26378. __HAL_RCC_PLL_DISABLE();
  26379. 800b648: 4b43 ldr r3, [pc, #268] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26380. 800b64a: 681b ldr r3, [r3, #0]
  26381. 800b64c: 4a42 ldr r2, [pc, #264] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26382. 800b64e: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  26383. 800b652: 6013 str r3, [r2, #0]
  26384. /* Get Start Tick*/
  26385. tickstart = HAL_GetTick();
  26386. 800b654: f7f9 fef2 bl 800543c <HAL_GetTick>
  26387. 800b658: 6278 str r0, [r7, #36] @ 0x24
  26388. /* Wait till PLL is disabled */
  26389. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26390. 800b65a: e008 b.n 800b66e <HAL_RCC_OscConfig+0x7c2>
  26391. {
  26392. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  26393. 800b65c: f7f9 feee bl 800543c <HAL_GetTick>
  26394. 800b660: 4602 mov r2, r0
  26395. 800b662: 6a7b ldr r3, [r7, #36] @ 0x24
  26396. 800b664: 1ad3 subs r3, r2, r3
  26397. 800b666: 2b02 cmp r3, #2
  26398. 800b668: d901 bls.n 800b66e <HAL_RCC_OscConfig+0x7c2>
  26399. {
  26400. return HAL_TIMEOUT;
  26401. 800b66a: 2303 movs r3, #3
  26402. 800b66c: e070 b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  26403. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26404. 800b66e: 4b3a ldr r3, [pc, #232] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26405. 800b670: 681b ldr r3, [r3, #0]
  26406. 800b672: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26407. 800b676: 2b00 cmp r3, #0
  26408. 800b678: d1f0 bne.n 800b65c <HAL_RCC_OscConfig+0x7b0>
  26409. 800b67a: e068 b.n 800b74e <HAL_RCC_OscConfig+0x8a2>
  26410. }
  26411. }
  26412. else
  26413. {
  26414. /* Do not return HAL_ERROR if request repeats the current configuration */
  26415. temp1_pllckcfg = RCC->PLLCKSELR;
  26416. 800b67c: 4b36 ldr r3, [pc, #216] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26417. 800b67e: 6a9b ldr r3, [r3, #40] @ 0x28
  26418. 800b680: 613b str r3, [r7, #16]
  26419. temp2_pllckcfg = RCC->PLL1DIVR;
  26420. 800b682: 4b35 ldr r3, [pc, #212] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26421. 800b684: 6b1b ldr r3, [r3, #48] @ 0x30
  26422. 800b686: 60fb str r3, [r7, #12]
  26423. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  26424. 800b688: 687b ldr r3, [r7, #4]
  26425. 800b68a: 6a5b ldr r3, [r3, #36] @ 0x24
  26426. 800b68c: 2b01 cmp r3, #1
  26427. 800b68e: d031 beq.n 800b6f4 <HAL_RCC_OscConfig+0x848>
  26428. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  26429. 800b690: 693b ldr r3, [r7, #16]
  26430. 800b692: f003 0203 and.w r2, r3, #3
  26431. 800b696: 687b ldr r3, [r7, #4]
  26432. 800b698: 6a9b ldr r3, [r3, #40] @ 0x28
  26433. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  26434. 800b69a: 429a cmp r2, r3
  26435. 800b69c: d12a bne.n 800b6f4 <HAL_RCC_OscConfig+0x848>
  26436. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  26437. 800b69e: 693b ldr r3, [r7, #16]
  26438. 800b6a0: 091b lsrs r3, r3, #4
  26439. 800b6a2: f003 023f and.w r2, r3, #63 @ 0x3f
  26440. 800b6a6: 687b ldr r3, [r7, #4]
  26441. 800b6a8: 6adb ldr r3, [r3, #44] @ 0x2c
  26442. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  26443. 800b6aa: 429a cmp r2, r3
  26444. 800b6ac: d122 bne.n 800b6f4 <HAL_RCC_OscConfig+0x848>
  26445. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  26446. 800b6ae: 68fb ldr r3, [r7, #12]
  26447. 800b6b0: f3c3 0208 ubfx r2, r3, #0, #9
  26448. 800b6b4: 687b ldr r3, [r7, #4]
  26449. 800b6b6: 6b1b ldr r3, [r3, #48] @ 0x30
  26450. 800b6b8: 3b01 subs r3, #1
  26451. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  26452. 800b6ba: 429a cmp r2, r3
  26453. 800b6bc: d11a bne.n 800b6f4 <HAL_RCC_OscConfig+0x848>
  26454. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  26455. 800b6be: 68fb ldr r3, [r7, #12]
  26456. 800b6c0: 0a5b lsrs r3, r3, #9
  26457. 800b6c2: f003 027f and.w r2, r3, #127 @ 0x7f
  26458. 800b6c6: 687b ldr r3, [r7, #4]
  26459. 800b6c8: 6b5b ldr r3, [r3, #52] @ 0x34
  26460. 800b6ca: 3b01 subs r3, #1
  26461. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  26462. 800b6cc: 429a cmp r2, r3
  26463. 800b6ce: d111 bne.n 800b6f4 <HAL_RCC_OscConfig+0x848>
  26464. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  26465. 800b6d0: 68fb ldr r3, [r7, #12]
  26466. 800b6d2: 0c1b lsrs r3, r3, #16
  26467. 800b6d4: f003 027f and.w r2, r3, #127 @ 0x7f
  26468. 800b6d8: 687b ldr r3, [r7, #4]
  26469. 800b6da: 6b9b ldr r3, [r3, #56] @ 0x38
  26470. 800b6dc: 3b01 subs r3, #1
  26471. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  26472. 800b6de: 429a cmp r2, r3
  26473. 800b6e0: d108 bne.n 800b6f4 <HAL_RCC_OscConfig+0x848>
  26474. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  26475. 800b6e2: 68fb ldr r3, [r7, #12]
  26476. 800b6e4: 0e1b lsrs r3, r3, #24
  26477. 800b6e6: f003 027f and.w r2, r3, #127 @ 0x7f
  26478. 800b6ea: 687b ldr r3, [r7, #4]
  26479. 800b6ec: 6bdb ldr r3, [r3, #60] @ 0x3c
  26480. 800b6ee: 3b01 subs r3, #1
  26481. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  26482. 800b6f0: 429a cmp r2, r3
  26483. 800b6f2: d001 beq.n 800b6f8 <HAL_RCC_OscConfig+0x84c>
  26484. {
  26485. return HAL_ERROR;
  26486. 800b6f4: 2301 movs r3, #1
  26487. 800b6f6: e02b b.n 800b750 <HAL_RCC_OscConfig+0x8a4>
  26488. }
  26489. else
  26490. {
  26491. /* Check if only fractional part needs to be updated */
  26492. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  26493. 800b6f8: 4b17 ldr r3, [pc, #92] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26494. 800b6fa: 6b5b ldr r3, [r3, #52] @ 0x34
  26495. 800b6fc: 08db lsrs r3, r3, #3
  26496. 800b6fe: f3c3 030c ubfx r3, r3, #0, #13
  26497. 800b702: 613b str r3, [r7, #16]
  26498. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  26499. 800b704: 687b ldr r3, [r7, #4]
  26500. 800b706: 6c9b ldr r3, [r3, #72] @ 0x48
  26501. 800b708: 693a ldr r2, [r7, #16]
  26502. 800b70a: 429a cmp r2, r3
  26503. 800b70c: d01f beq.n 800b74e <HAL_RCC_OscConfig+0x8a2>
  26504. {
  26505. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  26506. /* Disable PLL1FRACEN */
  26507. __HAL_RCC_PLLFRACN_DISABLE();
  26508. 800b70e: 4b12 ldr r3, [pc, #72] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26509. 800b710: 6adb ldr r3, [r3, #44] @ 0x2c
  26510. 800b712: 4a11 ldr r2, [pc, #68] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26511. 800b714: f023 0301 bic.w r3, r3, #1
  26512. 800b718: 62d3 str r3, [r2, #44] @ 0x2c
  26513. /* Get Start Tick*/
  26514. tickstart = HAL_GetTick();
  26515. 800b71a: f7f9 fe8f bl 800543c <HAL_GetTick>
  26516. 800b71e: 6278 str r0, [r7, #36] @ 0x24
  26517. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  26518. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  26519. 800b720: bf00 nop
  26520. 800b722: f7f9 fe8b bl 800543c <HAL_GetTick>
  26521. 800b726: 4602 mov r2, r0
  26522. 800b728: 6a7b ldr r3, [r7, #36] @ 0x24
  26523. 800b72a: 4293 cmp r3, r2
  26524. 800b72c: d0f9 beq.n 800b722 <HAL_RCC_OscConfig+0x876>
  26525. {
  26526. }
  26527. /* Configure PLL1 PLL1FRACN */
  26528. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  26529. 800b72e: 4b0a ldr r3, [pc, #40] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26530. 800b730: 6b5a ldr r2, [r3, #52] @ 0x34
  26531. 800b732: 4b0a ldr r3, [pc, #40] @ (800b75c <HAL_RCC_OscConfig+0x8b0>)
  26532. 800b734: 4013 ands r3, r2
  26533. 800b736: 687a ldr r2, [r7, #4]
  26534. 800b738: 6c92 ldr r2, [r2, #72] @ 0x48
  26535. 800b73a: 00d2 lsls r2, r2, #3
  26536. 800b73c: 4906 ldr r1, [pc, #24] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26537. 800b73e: 4313 orrs r3, r2
  26538. 800b740: 634b str r3, [r1, #52] @ 0x34
  26539. /* Enable PLL1FRACEN to latch new value. */
  26540. __HAL_RCC_PLLFRACN_ENABLE();
  26541. 800b742: 4b05 ldr r3, [pc, #20] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26542. 800b744: 6adb ldr r3, [r3, #44] @ 0x2c
  26543. 800b746: 4a04 ldr r2, [pc, #16] @ (800b758 <HAL_RCC_OscConfig+0x8ac>)
  26544. 800b748: f043 0301 orr.w r3, r3, #1
  26545. 800b74c: 62d3 str r3, [r2, #44] @ 0x2c
  26546. }
  26547. }
  26548. }
  26549. }
  26550. return HAL_OK;
  26551. 800b74e: 2300 movs r3, #0
  26552. }
  26553. 800b750: 4618 mov r0, r3
  26554. 800b752: 3730 adds r7, #48 @ 0x30
  26555. 800b754: 46bd mov sp, r7
  26556. 800b756: bd80 pop {r7, pc}
  26557. 800b758: 58024400 .word 0x58024400
  26558. 800b75c: ffff0007 .word 0xffff0007
  26559. 0800b760 <HAL_RCC_ClockConfig>:
  26560. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  26561. * (for more details refer to section above "Initialization/de-initialization functions")
  26562. * @retval None
  26563. */
  26564. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  26565. {
  26566. 800b760: b580 push {r7, lr}
  26567. 800b762: b086 sub sp, #24
  26568. 800b764: af00 add r7, sp, #0
  26569. 800b766: 6078 str r0, [r7, #4]
  26570. 800b768: 6039 str r1, [r7, #0]
  26571. HAL_StatusTypeDef halstatus;
  26572. uint32_t tickstart;
  26573. uint32_t common_system_clock;
  26574. /* Check Null pointer */
  26575. if (RCC_ClkInitStruct == NULL)
  26576. 800b76a: 687b ldr r3, [r7, #4]
  26577. 800b76c: 2b00 cmp r3, #0
  26578. 800b76e: d101 bne.n 800b774 <HAL_RCC_ClockConfig+0x14>
  26579. {
  26580. return HAL_ERROR;
  26581. 800b770: 2301 movs r3, #1
  26582. 800b772: e19c b.n 800baae <HAL_RCC_ClockConfig+0x34e>
  26583. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  26584. must be correctly programmed according to the frequency of the CPU clock
  26585. (HCLK) and the supply voltage of the device. */
  26586. /* Increasing the CPU frequency */
  26587. if (FLatency > __HAL_FLASH_GET_LATENCY())
  26588. 800b774: 4b8a ldr r3, [pc, #552] @ (800b9a0 <HAL_RCC_ClockConfig+0x240>)
  26589. 800b776: 681b ldr r3, [r3, #0]
  26590. 800b778: f003 030f and.w r3, r3, #15
  26591. 800b77c: 683a ldr r2, [r7, #0]
  26592. 800b77e: 429a cmp r2, r3
  26593. 800b780: d910 bls.n 800b7a4 <HAL_RCC_ClockConfig+0x44>
  26594. {
  26595. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  26596. __HAL_FLASH_SET_LATENCY(FLatency);
  26597. 800b782: 4b87 ldr r3, [pc, #540] @ (800b9a0 <HAL_RCC_ClockConfig+0x240>)
  26598. 800b784: 681b ldr r3, [r3, #0]
  26599. 800b786: f023 020f bic.w r2, r3, #15
  26600. 800b78a: 4985 ldr r1, [pc, #532] @ (800b9a0 <HAL_RCC_ClockConfig+0x240>)
  26601. 800b78c: 683b ldr r3, [r7, #0]
  26602. 800b78e: 4313 orrs r3, r2
  26603. 800b790: 600b str r3, [r1, #0]
  26604. /* Check that the new number of wait states is taken into account to access the Flash
  26605. memory by reading the FLASH_ACR register */
  26606. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  26607. 800b792: 4b83 ldr r3, [pc, #524] @ (800b9a0 <HAL_RCC_ClockConfig+0x240>)
  26608. 800b794: 681b ldr r3, [r3, #0]
  26609. 800b796: f003 030f and.w r3, r3, #15
  26610. 800b79a: 683a ldr r2, [r7, #0]
  26611. 800b79c: 429a cmp r2, r3
  26612. 800b79e: d001 beq.n 800b7a4 <HAL_RCC_ClockConfig+0x44>
  26613. {
  26614. return HAL_ERROR;
  26615. 800b7a0: 2301 movs r3, #1
  26616. 800b7a2: e184 b.n 800baae <HAL_RCC_ClockConfig+0x34e>
  26617. }
  26618. /* Increasing the BUS frequency divider */
  26619. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  26620. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  26621. 800b7a4: 687b ldr r3, [r7, #4]
  26622. 800b7a6: 681b ldr r3, [r3, #0]
  26623. 800b7a8: f003 0304 and.w r3, r3, #4
  26624. 800b7ac: 2b00 cmp r3, #0
  26625. 800b7ae: d010 beq.n 800b7d2 <HAL_RCC_ClockConfig+0x72>
  26626. {
  26627. #if defined (RCC_D1CFGR_D1PPRE)
  26628. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  26629. 800b7b0: 687b ldr r3, [r7, #4]
  26630. 800b7b2: 691a ldr r2, [r3, #16]
  26631. 800b7b4: 4b7b ldr r3, [pc, #492] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26632. 800b7b6: 699b ldr r3, [r3, #24]
  26633. 800b7b8: f003 0370 and.w r3, r3, #112 @ 0x70
  26634. 800b7bc: 429a cmp r2, r3
  26635. 800b7be: d908 bls.n 800b7d2 <HAL_RCC_ClockConfig+0x72>
  26636. {
  26637. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  26638. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  26639. 800b7c0: 4b78 ldr r3, [pc, #480] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26640. 800b7c2: 699b ldr r3, [r3, #24]
  26641. 800b7c4: f023 0270 bic.w r2, r3, #112 @ 0x70
  26642. 800b7c8: 687b ldr r3, [r7, #4]
  26643. 800b7ca: 691b ldr r3, [r3, #16]
  26644. 800b7cc: 4975 ldr r1, [pc, #468] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26645. 800b7ce: 4313 orrs r3, r2
  26646. 800b7d0: 618b str r3, [r1, #24]
  26647. }
  26648. #endif
  26649. }
  26650. /*-------------------------- PCLK1 Configuration ---------------------------*/
  26651. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  26652. 800b7d2: 687b ldr r3, [r7, #4]
  26653. 800b7d4: 681b ldr r3, [r3, #0]
  26654. 800b7d6: f003 0308 and.w r3, r3, #8
  26655. 800b7da: 2b00 cmp r3, #0
  26656. 800b7dc: d010 beq.n 800b800 <HAL_RCC_ClockConfig+0xa0>
  26657. {
  26658. #if defined (RCC_D2CFGR_D2PPRE1)
  26659. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  26660. 800b7de: 687b ldr r3, [r7, #4]
  26661. 800b7e0: 695a ldr r2, [r3, #20]
  26662. 800b7e2: 4b70 ldr r3, [pc, #448] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26663. 800b7e4: 69db ldr r3, [r3, #28]
  26664. 800b7e6: f003 0370 and.w r3, r3, #112 @ 0x70
  26665. 800b7ea: 429a cmp r2, r3
  26666. 800b7ec: d908 bls.n 800b800 <HAL_RCC_ClockConfig+0xa0>
  26667. {
  26668. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  26669. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  26670. 800b7ee: 4b6d ldr r3, [pc, #436] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26671. 800b7f0: 69db ldr r3, [r3, #28]
  26672. 800b7f2: f023 0270 bic.w r2, r3, #112 @ 0x70
  26673. 800b7f6: 687b ldr r3, [r7, #4]
  26674. 800b7f8: 695b ldr r3, [r3, #20]
  26675. 800b7fa: 496a ldr r1, [pc, #424] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26676. 800b7fc: 4313 orrs r3, r2
  26677. 800b7fe: 61cb str r3, [r1, #28]
  26678. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  26679. }
  26680. #endif
  26681. }
  26682. /*-------------------------- PCLK2 Configuration ---------------------------*/
  26683. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  26684. 800b800: 687b ldr r3, [r7, #4]
  26685. 800b802: 681b ldr r3, [r3, #0]
  26686. 800b804: f003 0310 and.w r3, r3, #16
  26687. 800b808: 2b00 cmp r3, #0
  26688. 800b80a: d010 beq.n 800b82e <HAL_RCC_ClockConfig+0xce>
  26689. {
  26690. #if defined(RCC_D2CFGR_D2PPRE2)
  26691. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  26692. 800b80c: 687b ldr r3, [r7, #4]
  26693. 800b80e: 699a ldr r2, [r3, #24]
  26694. 800b810: 4b64 ldr r3, [pc, #400] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26695. 800b812: 69db ldr r3, [r3, #28]
  26696. 800b814: f403 63e0 and.w r3, r3, #1792 @ 0x700
  26697. 800b818: 429a cmp r2, r3
  26698. 800b81a: d908 bls.n 800b82e <HAL_RCC_ClockConfig+0xce>
  26699. {
  26700. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  26701. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  26702. 800b81c: 4b61 ldr r3, [pc, #388] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26703. 800b81e: 69db ldr r3, [r3, #28]
  26704. 800b820: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  26705. 800b824: 687b ldr r3, [r7, #4]
  26706. 800b826: 699b ldr r3, [r3, #24]
  26707. 800b828: 495e ldr r1, [pc, #376] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26708. 800b82a: 4313 orrs r3, r2
  26709. 800b82c: 61cb str r3, [r1, #28]
  26710. }
  26711. #endif
  26712. }
  26713. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  26714. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  26715. 800b82e: 687b ldr r3, [r7, #4]
  26716. 800b830: 681b ldr r3, [r3, #0]
  26717. 800b832: f003 0320 and.w r3, r3, #32
  26718. 800b836: 2b00 cmp r3, #0
  26719. 800b838: d010 beq.n 800b85c <HAL_RCC_ClockConfig+0xfc>
  26720. {
  26721. #if defined(RCC_D3CFGR_D3PPRE)
  26722. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  26723. 800b83a: 687b ldr r3, [r7, #4]
  26724. 800b83c: 69da ldr r2, [r3, #28]
  26725. 800b83e: 4b59 ldr r3, [pc, #356] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26726. 800b840: 6a1b ldr r3, [r3, #32]
  26727. 800b842: f003 0370 and.w r3, r3, #112 @ 0x70
  26728. 800b846: 429a cmp r2, r3
  26729. 800b848: d908 bls.n 800b85c <HAL_RCC_ClockConfig+0xfc>
  26730. {
  26731. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  26732. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  26733. 800b84a: 4b56 ldr r3, [pc, #344] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26734. 800b84c: 6a1b ldr r3, [r3, #32]
  26735. 800b84e: f023 0270 bic.w r2, r3, #112 @ 0x70
  26736. 800b852: 687b ldr r3, [r7, #4]
  26737. 800b854: 69db ldr r3, [r3, #28]
  26738. 800b856: 4953 ldr r1, [pc, #332] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26739. 800b858: 4313 orrs r3, r2
  26740. 800b85a: 620b str r3, [r1, #32]
  26741. }
  26742. #endif
  26743. }
  26744. /*-------------------------- HCLK Configuration --------------------------*/
  26745. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  26746. 800b85c: 687b ldr r3, [r7, #4]
  26747. 800b85e: 681b ldr r3, [r3, #0]
  26748. 800b860: f003 0302 and.w r3, r3, #2
  26749. 800b864: 2b00 cmp r3, #0
  26750. 800b866: d010 beq.n 800b88a <HAL_RCC_ClockConfig+0x12a>
  26751. {
  26752. #if defined (RCC_D1CFGR_HPRE)
  26753. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  26754. 800b868: 687b ldr r3, [r7, #4]
  26755. 800b86a: 68da ldr r2, [r3, #12]
  26756. 800b86c: 4b4d ldr r3, [pc, #308] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26757. 800b86e: 699b ldr r3, [r3, #24]
  26758. 800b870: f003 030f and.w r3, r3, #15
  26759. 800b874: 429a cmp r2, r3
  26760. 800b876: d908 bls.n 800b88a <HAL_RCC_ClockConfig+0x12a>
  26761. {
  26762. /* Set the new HCLK clock divider */
  26763. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  26764. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  26765. 800b878: 4b4a ldr r3, [pc, #296] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26766. 800b87a: 699b ldr r3, [r3, #24]
  26767. 800b87c: f023 020f bic.w r2, r3, #15
  26768. 800b880: 687b ldr r3, [r7, #4]
  26769. 800b882: 68db ldr r3, [r3, #12]
  26770. 800b884: 4947 ldr r1, [pc, #284] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26771. 800b886: 4313 orrs r3, r2
  26772. 800b888: 618b str r3, [r1, #24]
  26773. }
  26774. #endif
  26775. }
  26776. /*------------------------- SYSCLK Configuration -------------------------*/
  26777. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  26778. 800b88a: 687b ldr r3, [r7, #4]
  26779. 800b88c: 681b ldr r3, [r3, #0]
  26780. 800b88e: f003 0301 and.w r3, r3, #1
  26781. 800b892: 2b00 cmp r3, #0
  26782. 800b894: d055 beq.n 800b942 <HAL_RCC_ClockConfig+0x1e2>
  26783. {
  26784. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  26785. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  26786. #if defined(RCC_D1CFGR_D1CPRE)
  26787. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  26788. 800b896: 4b43 ldr r3, [pc, #268] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26789. 800b898: 699b ldr r3, [r3, #24]
  26790. 800b89a: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  26791. 800b89e: 687b ldr r3, [r7, #4]
  26792. 800b8a0: 689b ldr r3, [r3, #8]
  26793. 800b8a2: 4940 ldr r1, [pc, #256] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26794. 800b8a4: 4313 orrs r3, r2
  26795. 800b8a6: 618b str r3, [r1, #24]
  26796. #else
  26797. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  26798. #endif
  26799. /* HSE is selected as System Clock Source */
  26800. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  26801. 800b8a8: 687b ldr r3, [r7, #4]
  26802. 800b8aa: 685b ldr r3, [r3, #4]
  26803. 800b8ac: 2b02 cmp r3, #2
  26804. 800b8ae: d107 bne.n 800b8c0 <HAL_RCC_ClockConfig+0x160>
  26805. {
  26806. /* Check the HSE ready flag */
  26807. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26808. 800b8b0: 4b3c ldr r3, [pc, #240] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26809. 800b8b2: 681b ldr r3, [r3, #0]
  26810. 800b8b4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26811. 800b8b8: 2b00 cmp r3, #0
  26812. 800b8ba: d121 bne.n 800b900 <HAL_RCC_ClockConfig+0x1a0>
  26813. {
  26814. return HAL_ERROR;
  26815. 800b8bc: 2301 movs r3, #1
  26816. 800b8be: e0f6 b.n 800baae <HAL_RCC_ClockConfig+0x34e>
  26817. }
  26818. }
  26819. /* PLL is selected as System Clock Source */
  26820. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  26821. 800b8c0: 687b ldr r3, [r7, #4]
  26822. 800b8c2: 685b ldr r3, [r3, #4]
  26823. 800b8c4: 2b03 cmp r3, #3
  26824. 800b8c6: d107 bne.n 800b8d8 <HAL_RCC_ClockConfig+0x178>
  26825. {
  26826. /* Check the PLL ready flag */
  26827. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  26828. 800b8c8: 4b36 ldr r3, [pc, #216] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26829. 800b8ca: 681b ldr r3, [r3, #0]
  26830. 800b8cc: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26831. 800b8d0: 2b00 cmp r3, #0
  26832. 800b8d2: d115 bne.n 800b900 <HAL_RCC_ClockConfig+0x1a0>
  26833. {
  26834. return HAL_ERROR;
  26835. 800b8d4: 2301 movs r3, #1
  26836. 800b8d6: e0ea b.n 800baae <HAL_RCC_ClockConfig+0x34e>
  26837. }
  26838. }
  26839. /* CSI is selected as System Clock Source */
  26840. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  26841. 800b8d8: 687b ldr r3, [r7, #4]
  26842. 800b8da: 685b ldr r3, [r3, #4]
  26843. 800b8dc: 2b01 cmp r3, #1
  26844. 800b8de: d107 bne.n 800b8f0 <HAL_RCC_ClockConfig+0x190>
  26845. {
  26846. /* Check the PLL ready flag */
  26847. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  26848. 800b8e0: 4b30 ldr r3, [pc, #192] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26849. 800b8e2: 681b ldr r3, [r3, #0]
  26850. 800b8e4: f403 7380 and.w r3, r3, #256 @ 0x100
  26851. 800b8e8: 2b00 cmp r3, #0
  26852. 800b8ea: d109 bne.n 800b900 <HAL_RCC_ClockConfig+0x1a0>
  26853. {
  26854. return HAL_ERROR;
  26855. 800b8ec: 2301 movs r3, #1
  26856. 800b8ee: e0de b.n 800baae <HAL_RCC_ClockConfig+0x34e>
  26857. }
  26858. /* HSI is selected as System Clock Source */
  26859. else
  26860. {
  26861. /* Check the HSI ready flag */
  26862. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26863. 800b8f0: 4b2c ldr r3, [pc, #176] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26864. 800b8f2: 681b ldr r3, [r3, #0]
  26865. 800b8f4: f003 0304 and.w r3, r3, #4
  26866. 800b8f8: 2b00 cmp r3, #0
  26867. 800b8fa: d101 bne.n 800b900 <HAL_RCC_ClockConfig+0x1a0>
  26868. {
  26869. return HAL_ERROR;
  26870. 800b8fc: 2301 movs r3, #1
  26871. 800b8fe: e0d6 b.n 800baae <HAL_RCC_ClockConfig+0x34e>
  26872. }
  26873. }
  26874. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  26875. 800b900: 4b28 ldr r3, [pc, #160] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26876. 800b902: 691b ldr r3, [r3, #16]
  26877. 800b904: f023 0207 bic.w r2, r3, #7
  26878. 800b908: 687b ldr r3, [r7, #4]
  26879. 800b90a: 685b ldr r3, [r3, #4]
  26880. 800b90c: 4925 ldr r1, [pc, #148] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26881. 800b90e: 4313 orrs r3, r2
  26882. 800b910: 610b str r3, [r1, #16]
  26883. /* Get Start Tick*/
  26884. tickstart = HAL_GetTick();
  26885. 800b912: f7f9 fd93 bl 800543c <HAL_GetTick>
  26886. 800b916: 6178 str r0, [r7, #20]
  26887. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  26888. 800b918: e00a b.n 800b930 <HAL_RCC_ClockConfig+0x1d0>
  26889. {
  26890. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  26891. 800b91a: f7f9 fd8f bl 800543c <HAL_GetTick>
  26892. 800b91e: 4602 mov r2, r0
  26893. 800b920: 697b ldr r3, [r7, #20]
  26894. 800b922: 1ad3 subs r3, r2, r3
  26895. 800b924: f241 3288 movw r2, #5000 @ 0x1388
  26896. 800b928: 4293 cmp r3, r2
  26897. 800b92a: d901 bls.n 800b930 <HAL_RCC_ClockConfig+0x1d0>
  26898. {
  26899. return HAL_TIMEOUT;
  26900. 800b92c: 2303 movs r3, #3
  26901. 800b92e: e0be b.n 800baae <HAL_RCC_ClockConfig+0x34e>
  26902. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  26903. 800b930: 4b1c ldr r3, [pc, #112] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26904. 800b932: 691b ldr r3, [r3, #16]
  26905. 800b934: f003 0238 and.w r2, r3, #56 @ 0x38
  26906. 800b938: 687b ldr r3, [r7, #4]
  26907. 800b93a: 685b ldr r3, [r3, #4]
  26908. 800b93c: 00db lsls r3, r3, #3
  26909. 800b93e: 429a cmp r2, r3
  26910. 800b940: d1eb bne.n 800b91a <HAL_RCC_ClockConfig+0x1ba>
  26911. }
  26912. /* Decreasing the BUS frequency divider */
  26913. /*-------------------------- HCLK Configuration --------------------------*/
  26914. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  26915. 800b942: 687b ldr r3, [r7, #4]
  26916. 800b944: 681b ldr r3, [r3, #0]
  26917. 800b946: f003 0302 and.w r3, r3, #2
  26918. 800b94a: 2b00 cmp r3, #0
  26919. 800b94c: d010 beq.n 800b970 <HAL_RCC_ClockConfig+0x210>
  26920. {
  26921. #if defined(RCC_D1CFGR_HPRE)
  26922. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  26923. 800b94e: 687b ldr r3, [r7, #4]
  26924. 800b950: 68da ldr r2, [r3, #12]
  26925. 800b952: 4b14 ldr r3, [pc, #80] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26926. 800b954: 699b ldr r3, [r3, #24]
  26927. 800b956: f003 030f and.w r3, r3, #15
  26928. 800b95a: 429a cmp r2, r3
  26929. 800b95c: d208 bcs.n 800b970 <HAL_RCC_ClockConfig+0x210>
  26930. {
  26931. /* Set the new HCLK clock divider */
  26932. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  26933. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  26934. 800b95e: 4b11 ldr r3, [pc, #68] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26935. 800b960: 699b ldr r3, [r3, #24]
  26936. 800b962: f023 020f bic.w r2, r3, #15
  26937. 800b966: 687b ldr r3, [r7, #4]
  26938. 800b968: 68db ldr r3, [r3, #12]
  26939. 800b96a: 490e ldr r1, [pc, #56] @ (800b9a4 <HAL_RCC_ClockConfig+0x244>)
  26940. 800b96c: 4313 orrs r3, r2
  26941. 800b96e: 618b str r3, [r1, #24]
  26942. }
  26943. #endif
  26944. }
  26945. /* Decreasing the number of wait states because of lower CPU frequency */
  26946. if (FLatency < __HAL_FLASH_GET_LATENCY())
  26947. 800b970: 4b0b ldr r3, [pc, #44] @ (800b9a0 <HAL_RCC_ClockConfig+0x240>)
  26948. 800b972: 681b ldr r3, [r3, #0]
  26949. 800b974: f003 030f and.w r3, r3, #15
  26950. 800b978: 683a ldr r2, [r7, #0]
  26951. 800b97a: 429a cmp r2, r3
  26952. 800b97c: d214 bcs.n 800b9a8 <HAL_RCC_ClockConfig+0x248>
  26953. {
  26954. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  26955. __HAL_FLASH_SET_LATENCY(FLatency);
  26956. 800b97e: 4b08 ldr r3, [pc, #32] @ (800b9a0 <HAL_RCC_ClockConfig+0x240>)
  26957. 800b980: 681b ldr r3, [r3, #0]
  26958. 800b982: f023 020f bic.w r2, r3, #15
  26959. 800b986: 4906 ldr r1, [pc, #24] @ (800b9a0 <HAL_RCC_ClockConfig+0x240>)
  26960. 800b988: 683b ldr r3, [r7, #0]
  26961. 800b98a: 4313 orrs r3, r2
  26962. 800b98c: 600b str r3, [r1, #0]
  26963. /* Check that the new number of wait states is taken into account to access the Flash
  26964. memory by reading the FLASH_ACR register */
  26965. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  26966. 800b98e: 4b04 ldr r3, [pc, #16] @ (800b9a0 <HAL_RCC_ClockConfig+0x240>)
  26967. 800b990: 681b ldr r3, [r3, #0]
  26968. 800b992: f003 030f and.w r3, r3, #15
  26969. 800b996: 683a ldr r2, [r7, #0]
  26970. 800b998: 429a cmp r2, r3
  26971. 800b99a: d005 beq.n 800b9a8 <HAL_RCC_ClockConfig+0x248>
  26972. {
  26973. return HAL_ERROR;
  26974. 800b99c: 2301 movs r3, #1
  26975. 800b99e: e086 b.n 800baae <HAL_RCC_ClockConfig+0x34e>
  26976. 800b9a0: 52002000 .word 0x52002000
  26977. 800b9a4: 58024400 .word 0x58024400
  26978. }
  26979. }
  26980. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  26981. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  26982. 800b9a8: 687b ldr r3, [r7, #4]
  26983. 800b9aa: 681b ldr r3, [r3, #0]
  26984. 800b9ac: f003 0304 and.w r3, r3, #4
  26985. 800b9b0: 2b00 cmp r3, #0
  26986. 800b9b2: d010 beq.n 800b9d6 <HAL_RCC_ClockConfig+0x276>
  26987. {
  26988. #if defined(RCC_D1CFGR_D1PPRE)
  26989. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  26990. 800b9b4: 687b ldr r3, [r7, #4]
  26991. 800b9b6: 691a ldr r2, [r3, #16]
  26992. 800b9b8: 4b3f ldr r3, [pc, #252] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  26993. 800b9ba: 699b ldr r3, [r3, #24]
  26994. 800b9bc: f003 0370 and.w r3, r3, #112 @ 0x70
  26995. 800b9c0: 429a cmp r2, r3
  26996. 800b9c2: d208 bcs.n 800b9d6 <HAL_RCC_ClockConfig+0x276>
  26997. {
  26998. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  26999. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  27000. 800b9c4: 4b3c ldr r3, [pc, #240] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27001. 800b9c6: 699b ldr r3, [r3, #24]
  27002. 800b9c8: f023 0270 bic.w r2, r3, #112 @ 0x70
  27003. 800b9cc: 687b ldr r3, [r7, #4]
  27004. 800b9ce: 691b ldr r3, [r3, #16]
  27005. 800b9d0: 4939 ldr r1, [pc, #228] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27006. 800b9d2: 4313 orrs r3, r2
  27007. 800b9d4: 618b str r3, [r1, #24]
  27008. }
  27009. #endif
  27010. }
  27011. /*-------------------------- PCLK1 Configuration ---------------------------*/
  27012. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  27013. 800b9d6: 687b ldr r3, [r7, #4]
  27014. 800b9d8: 681b ldr r3, [r3, #0]
  27015. 800b9da: f003 0308 and.w r3, r3, #8
  27016. 800b9de: 2b00 cmp r3, #0
  27017. 800b9e0: d010 beq.n 800ba04 <HAL_RCC_ClockConfig+0x2a4>
  27018. {
  27019. #if defined(RCC_D2CFGR_D2PPRE1)
  27020. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  27021. 800b9e2: 687b ldr r3, [r7, #4]
  27022. 800b9e4: 695a ldr r2, [r3, #20]
  27023. 800b9e6: 4b34 ldr r3, [pc, #208] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27024. 800b9e8: 69db ldr r3, [r3, #28]
  27025. 800b9ea: f003 0370 and.w r3, r3, #112 @ 0x70
  27026. 800b9ee: 429a cmp r2, r3
  27027. 800b9f0: d208 bcs.n 800ba04 <HAL_RCC_ClockConfig+0x2a4>
  27028. {
  27029. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  27030. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  27031. 800b9f2: 4b31 ldr r3, [pc, #196] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27032. 800b9f4: 69db ldr r3, [r3, #28]
  27033. 800b9f6: f023 0270 bic.w r2, r3, #112 @ 0x70
  27034. 800b9fa: 687b ldr r3, [r7, #4]
  27035. 800b9fc: 695b ldr r3, [r3, #20]
  27036. 800b9fe: 492e ldr r1, [pc, #184] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27037. 800ba00: 4313 orrs r3, r2
  27038. 800ba02: 61cb str r3, [r1, #28]
  27039. }
  27040. #endif
  27041. }
  27042. /*-------------------------- PCLK2 Configuration ---------------------------*/
  27043. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  27044. 800ba04: 687b ldr r3, [r7, #4]
  27045. 800ba06: 681b ldr r3, [r3, #0]
  27046. 800ba08: f003 0310 and.w r3, r3, #16
  27047. 800ba0c: 2b00 cmp r3, #0
  27048. 800ba0e: d010 beq.n 800ba32 <HAL_RCC_ClockConfig+0x2d2>
  27049. {
  27050. #if defined (RCC_D2CFGR_D2PPRE2)
  27051. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  27052. 800ba10: 687b ldr r3, [r7, #4]
  27053. 800ba12: 699a ldr r2, [r3, #24]
  27054. 800ba14: 4b28 ldr r3, [pc, #160] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27055. 800ba16: 69db ldr r3, [r3, #28]
  27056. 800ba18: f403 63e0 and.w r3, r3, #1792 @ 0x700
  27057. 800ba1c: 429a cmp r2, r3
  27058. 800ba1e: d208 bcs.n 800ba32 <HAL_RCC_ClockConfig+0x2d2>
  27059. {
  27060. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  27061. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  27062. 800ba20: 4b25 ldr r3, [pc, #148] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27063. 800ba22: 69db ldr r3, [r3, #28]
  27064. 800ba24: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  27065. 800ba28: 687b ldr r3, [r7, #4]
  27066. 800ba2a: 699b ldr r3, [r3, #24]
  27067. 800ba2c: 4922 ldr r1, [pc, #136] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27068. 800ba2e: 4313 orrs r3, r2
  27069. 800ba30: 61cb str r3, [r1, #28]
  27070. }
  27071. #endif
  27072. }
  27073. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  27074. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  27075. 800ba32: 687b ldr r3, [r7, #4]
  27076. 800ba34: 681b ldr r3, [r3, #0]
  27077. 800ba36: f003 0320 and.w r3, r3, #32
  27078. 800ba3a: 2b00 cmp r3, #0
  27079. 800ba3c: d010 beq.n 800ba60 <HAL_RCC_ClockConfig+0x300>
  27080. {
  27081. #if defined(RCC_D3CFGR_D3PPRE)
  27082. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  27083. 800ba3e: 687b ldr r3, [r7, #4]
  27084. 800ba40: 69da ldr r2, [r3, #28]
  27085. 800ba42: 4b1d ldr r3, [pc, #116] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27086. 800ba44: 6a1b ldr r3, [r3, #32]
  27087. 800ba46: f003 0370 and.w r3, r3, #112 @ 0x70
  27088. 800ba4a: 429a cmp r2, r3
  27089. 800ba4c: d208 bcs.n 800ba60 <HAL_RCC_ClockConfig+0x300>
  27090. {
  27091. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  27092. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  27093. 800ba4e: 4b1a ldr r3, [pc, #104] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27094. 800ba50: 6a1b ldr r3, [r3, #32]
  27095. 800ba52: f023 0270 bic.w r2, r3, #112 @ 0x70
  27096. 800ba56: 687b ldr r3, [r7, #4]
  27097. 800ba58: 69db ldr r3, [r3, #28]
  27098. 800ba5a: 4917 ldr r1, [pc, #92] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27099. 800ba5c: 4313 orrs r3, r2
  27100. 800ba5e: 620b str r3, [r1, #32]
  27101. #endif
  27102. }
  27103. /* Update the SystemCoreClock global variable */
  27104. #if defined(RCC_D1CFGR_D1CPRE)
  27105. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  27106. 800ba60: f000 f834 bl 800bacc <HAL_RCC_GetSysClockFreq>
  27107. 800ba64: 4602 mov r2, r0
  27108. 800ba66: 4b14 ldr r3, [pc, #80] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27109. 800ba68: 699b ldr r3, [r3, #24]
  27110. 800ba6a: 0a1b lsrs r3, r3, #8
  27111. 800ba6c: f003 030f and.w r3, r3, #15
  27112. 800ba70: 4912 ldr r1, [pc, #72] @ (800babc <HAL_RCC_ClockConfig+0x35c>)
  27113. 800ba72: 5ccb ldrb r3, [r1, r3]
  27114. 800ba74: f003 031f and.w r3, r3, #31
  27115. 800ba78: fa22 f303 lsr.w r3, r2, r3
  27116. 800ba7c: 613b str r3, [r7, #16]
  27117. #else
  27118. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  27119. #endif
  27120. #if defined(RCC_D1CFGR_HPRE)
  27121. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  27122. 800ba7e: 4b0e ldr r3, [pc, #56] @ (800bab8 <HAL_RCC_ClockConfig+0x358>)
  27123. 800ba80: 699b ldr r3, [r3, #24]
  27124. 800ba82: f003 030f and.w r3, r3, #15
  27125. 800ba86: 4a0d ldr r2, [pc, #52] @ (800babc <HAL_RCC_ClockConfig+0x35c>)
  27126. 800ba88: 5cd3 ldrb r3, [r2, r3]
  27127. 800ba8a: f003 031f and.w r3, r3, #31
  27128. 800ba8e: 693a ldr r2, [r7, #16]
  27129. 800ba90: fa22 f303 lsr.w r3, r2, r3
  27130. 800ba94: 4a0a ldr r2, [pc, #40] @ (800bac0 <HAL_RCC_ClockConfig+0x360>)
  27131. 800ba96: 6013 str r3, [r2, #0]
  27132. #endif
  27133. #if defined(DUAL_CORE) && defined(CORE_CM4)
  27134. SystemCoreClock = SystemD2Clock;
  27135. #else
  27136. SystemCoreClock = common_system_clock;
  27137. 800ba98: 4a0a ldr r2, [pc, #40] @ (800bac4 <HAL_RCC_ClockConfig+0x364>)
  27138. 800ba9a: 693b ldr r3, [r7, #16]
  27139. 800ba9c: 6013 str r3, [r2, #0]
  27140. #endif /* DUAL_CORE && CORE_CM4 */
  27141. /* Configure the source of time base considering new system clocks settings*/
  27142. halstatus = HAL_InitTick(uwTickPrio);
  27143. 800ba9e: 4b0a ldr r3, [pc, #40] @ (800bac8 <HAL_RCC_ClockConfig+0x368>)
  27144. 800baa0: 681b ldr r3, [r3, #0]
  27145. 800baa2: 4618 mov r0, r3
  27146. 800baa4: f7f8 f986 bl 8003db4 <HAL_InitTick>
  27147. 800baa8: 4603 mov r3, r0
  27148. 800baaa: 73fb strb r3, [r7, #15]
  27149. return halstatus;
  27150. 800baac: 7bfb ldrb r3, [r7, #15]
  27151. }
  27152. 800baae: 4618 mov r0, r3
  27153. 800bab0: 3718 adds r7, #24
  27154. 800bab2: 46bd mov sp, r7
  27155. 800bab4: bd80 pop {r7, pc}
  27156. 800bab6: bf00 nop
  27157. 800bab8: 58024400 .word 0x58024400
  27158. 800babc: 08018a28 .word 0x08018a28
  27159. 800bac0: 24000038 .word 0x24000038
  27160. 800bac4: 24000034 .word 0x24000034
  27161. 800bac8: 2400003c .word 0x2400003c
  27162. 0800bacc <HAL_RCC_GetSysClockFreq>:
  27163. *
  27164. *
  27165. * @retval SYSCLK frequency
  27166. */
  27167. uint32_t HAL_RCC_GetSysClockFreq(void)
  27168. {
  27169. 800bacc: b480 push {r7}
  27170. 800bace: b089 sub sp, #36 @ 0x24
  27171. 800bad0: af00 add r7, sp, #0
  27172. float_t fracn1, pllvco;
  27173. uint32_t sysclockfreq;
  27174. /* Get SYSCLK source -------------------------------------------------------*/
  27175. switch (RCC->CFGR & RCC_CFGR_SWS)
  27176. 800bad2: 4bb3 ldr r3, [pc, #716] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27177. 800bad4: 691b ldr r3, [r3, #16]
  27178. 800bad6: f003 0338 and.w r3, r3, #56 @ 0x38
  27179. 800bada: 2b18 cmp r3, #24
  27180. 800badc: f200 8155 bhi.w 800bd8a <HAL_RCC_GetSysClockFreq+0x2be>
  27181. 800bae0: a201 add r2, pc, #4 @ (adr r2, 800bae8 <HAL_RCC_GetSysClockFreq+0x1c>)
  27182. 800bae2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  27183. 800bae6: bf00 nop
  27184. 800bae8: 0800bb4d .word 0x0800bb4d
  27185. 800baec: 0800bd8b .word 0x0800bd8b
  27186. 800baf0: 0800bd8b .word 0x0800bd8b
  27187. 800baf4: 0800bd8b .word 0x0800bd8b
  27188. 800baf8: 0800bd8b .word 0x0800bd8b
  27189. 800bafc: 0800bd8b .word 0x0800bd8b
  27190. 800bb00: 0800bd8b .word 0x0800bd8b
  27191. 800bb04: 0800bd8b .word 0x0800bd8b
  27192. 800bb08: 0800bb73 .word 0x0800bb73
  27193. 800bb0c: 0800bd8b .word 0x0800bd8b
  27194. 800bb10: 0800bd8b .word 0x0800bd8b
  27195. 800bb14: 0800bd8b .word 0x0800bd8b
  27196. 800bb18: 0800bd8b .word 0x0800bd8b
  27197. 800bb1c: 0800bd8b .word 0x0800bd8b
  27198. 800bb20: 0800bd8b .word 0x0800bd8b
  27199. 800bb24: 0800bd8b .word 0x0800bd8b
  27200. 800bb28: 0800bb79 .word 0x0800bb79
  27201. 800bb2c: 0800bd8b .word 0x0800bd8b
  27202. 800bb30: 0800bd8b .word 0x0800bd8b
  27203. 800bb34: 0800bd8b .word 0x0800bd8b
  27204. 800bb38: 0800bd8b .word 0x0800bd8b
  27205. 800bb3c: 0800bd8b .word 0x0800bd8b
  27206. 800bb40: 0800bd8b .word 0x0800bd8b
  27207. 800bb44: 0800bd8b .word 0x0800bd8b
  27208. 800bb48: 0800bb7f .word 0x0800bb7f
  27209. {
  27210. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  27211. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  27212. 800bb4c: 4b94 ldr r3, [pc, #592] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27213. 800bb4e: 681b ldr r3, [r3, #0]
  27214. 800bb50: f003 0320 and.w r3, r3, #32
  27215. 800bb54: 2b00 cmp r3, #0
  27216. 800bb56: d009 beq.n 800bb6c <HAL_RCC_GetSysClockFreq+0xa0>
  27217. {
  27218. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  27219. 800bb58: 4b91 ldr r3, [pc, #580] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27220. 800bb5a: 681b ldr r3, [r3, #0]
  27221. 800bb5c: 08db lsrs r3, r3, #3
  27222. 800bb5e: f003 0303 and.w r3, r3, #3
  27223. 800bb62: 4a90 ldr r2, [pc, #576] @ (800bda4 <HAL_RCC_GetSysClockFreq+0x2d8>)
  27224. 800bb64: fa22 f303 lsr.w r3, r2, r3
  27225. 800bb68: 61bb str r3, [r7, #24]
  27226. else
  27227. {
  27228. sysclockfreq = (uint32_t) HSI_VALUE;
  27229. }
  27230. break;
  27231. 800bb6a: e111 b.n 800bd90 <HAL_RCC_GetSysClockFreq+0x2c4>
  27232. sysclockfreq = (uint32_t) HSI_VALUE;
  27233. 800bb6c: 4b8d ldr r3, [pc, #564] @ (800bda4 <HAL_RCC_GetSysClockFreq+0x2d8>)
  27234. 800bb6e: 61bb str r3, [r7, #24]
  27235. break;
  27236. 800bb70: e10e b.n 800bd90 <HAL_RCC_GetSysClockFreq+0x2c4>
  27237. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  27238. sysclockfreq = CSI_VALUE;
  27239. 800bb72: 4b8d ldr r3, [pc, #564] @ (800bda8 <HAL_RCC_GetSysClockFreq+0x2dc>)
  27240. 800bb74: 61bb str r3, [r7, #24]
  27241. break;
  27242. 800bb76: e10b b.n 800bd90 <HAL_RCC_GetSysClockFreq+0x2c4>
  27243. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  27244. sysclockfreq = HSE_VALUE;
  27245. 800bb78: 4b8c ldr r3, [pc, #560] @ (800bdac <HAL_RCC_GetSysClockFreq+0x2e0>)
  27246. 800bb7a: 61bb str r3, [r7, #24]
  27247. break;
  27248. 800bb7c: e108 b.n 800bd90 <HAL_RCC_GetSysClockFreq+0x2c4>
  27249. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  27250. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  27251. SYSCLK = PLL_VCO / PLLR
  27252. */
  27253. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  27254. 800bb7e: 4b88 ldr r3, [pc, #544] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27255. 800bb80: 6a9b ldr r3, [r3, #40] @ 0x28
  27256. 800bb82: f003 0303 and.w r3, r3, #3
  27257. 800bb86: 617b str r3, [r7, #20]
  27258. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  27259. 800bb88: 4b85 ldr r3, [pc, #532] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27260. 800bb8a: 6a9b ldr r3, [r3, #40] @ 0x28
  27261. 800bb8c: 091b lsrs r3, r3, #4
  27262. 800bb8e: f003 033f and.w r3, r3, #63 @ 0x3f
  27263. 800bb92: 613b str r3, [r7, #16]
  27264. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  27265. 800bb94: 4b82 ldr r3, [pc, #520] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27266. 800bb96: 6adb ldr r3, [r3, #44] @ 0x2c
  27267. 800bb98: f003 0301 and.w r3, r3, #1
  27268. 800bb9c: 60fb str r3, [r7, #12]
  27269. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  27270. 800bb9e: 4b80 ldr r3, [pc, #512] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27271. 800bba0: 6b5b ldr r3, [r3, #52] @ 0x34
  27272. 800bba2: 08db lsrs r3, r3, #3
  27273. 800bba4: f3c3 030c ubfx r3, r3, #0, #13
  27274. 800bba8: 68fa ldr r2, [r7, #12]
  27275. 800bbaa: fb02 f303 mul.w r3, r2, r3
  27276. 800bbae: ee07 3a90 vmov s15, r3
  27277. 800bbb2: eef8 7a67 vcvt.f32.u32 s15, s15
  27278. 800bbb6: edc7 7a02 vstr s15, [r7, #8]
  27279. if (pllm != 0U)
  27280. 800bbba: 693b ldr r3, [r7, #16]
  27281. 800bbbc: 2b00 cmp r3, #0
  27282. 800bbbe: f000 80e1 beq.w 800bd84 <HAL_RCC_GetSysClockFreq+0x2b8>
  27283. 800bbc2: 697b ldr r3, [r7, #20]
  27284. 800bbc4: 2b02 cmp r3, #2
  27285. 800bbc6: f000 8083 beq.w 800bcd0 <HAL_RCC_GetSysClockFreq+0x204>
  27286. 800bbca: 697b ldr r3, [r7, #20]
  27287. 800bbcc: 2b02 cmp r3, #2
  27288. 800bbce: f200 80a1 bhi.w 800bd14 <HAL_RCC_GetSysClockFreq+0x248>
  27289. 800bbd2: 697b ldr r3, [r7, #20]
  27290. 800bbd4: 2b00 cmp r3, #0
  27291. 800bbd6: d003 beq.n 800bbe0 <HAL_RCC_GetSysClockFreq+0x114>
  27292. 800bbd8: 697b ldr r3, [r7, #20]
  27293. 800bbda: 2b01 cmp r3, #1
  27294. 800bbdc: d056 beq.n 800bc8c <HAL_RCC_GetSysClockFreq+0x1c0>
  27295. 800bbde: e099 b.n 800bd14 <HAL_RCC_GetSysClockFreq+0x248>
  27296. {
  27297. switch (pllsource)
  27298. {
  27299. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  27300. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  27301. 800bbe0: 4b6f ldr r3, [pc, #444] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27302. 800bbe2: 681b ldr r3, [r3, #0]
  27303. 800bbe4: f003 0320 and.w r3, r3, #32
  27304. 800bbe8: 2b00 cmp r3, #0
  27305. 800bbea: d02d beq.n 800bc48 <HAL_RCC_GetSysClockFreq+0x17c>
  27306. {
  27307. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  27308. 800bbec: 4b6c ldr r3, [pc, #432] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27309. 800bbee: 681b ldr r3, [r3, #0]
  27310. 800bbf0: 08db lsrs r3, r3, #3
  27311. 800bbf2: f003 0303 and.w r3, r3, #3
  27312. 800bbf6: 4a6b ldr r2, [pc, #428] @ (800bda4 <HAL_RCC_GetSysClockFreq+0x2d8>)
  27313. 800bbf8: fa22 f303 lsr.w r3, r2, r3
  27314. 800bbfc: 607b str r3, [r7, #4]
  27315. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27316. 800bbfe: 687b ldr r3, [r7, #4]
  27317. 800bc00: ee07 3a90 vmov s15, r3
  27318. 800bc04: eef8 6a67 vcvt.f32.u32 s13, s15
  27319. 800bc08: 693b ldr r3, [r7, #16]
  27320. 800bc0a: ee07 3a90 vmov s15, r3
  27321. 800bc0e: eef8 7a67 vcvt.f32.u32 s15, s15
  27322. 800bc12: ee86 7aa7 vdiv.f32 s14, s13, s15
  27323. 800bc16: 4b62 ldr r3, [pc, #392] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27324. 800bc18: 6b1b ldr r3, [r3, #48] @ 0x30
  27325. 800bc1a: f3c3 0308 ubfx r3, r3, #0, #9
  27326. 800bc1e: ee07 3a90 vmov s15, r3
  27327. 800bc22: eef8 6a67 vcvt.f32.u32 s13, s15
  27328. 800bc26: ed97 6a02 vldr s12, [r7, #8]
  27329. 800bc2a: eddf 5a61 vldr s11, [pc, #388] @ 800bdb0 <HAL_RCC_GetSysClockFreq+0x2e4>
  27330. 800bc2e: eec6 7a25 vdiv.f32 s15, s12, s11
  27331. 800bc32: ee76 7aa7 vadd.f32 s15, s13, s15
  27332. 800bc36: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27333. 800bc3a: ee77 7aa6 vadd.f32 s15, s15, s13
  27334. 800bc3e: ee67 7a27 vmul.f32 s15, s14, s15
  27335. 800bc42: edc7 7a07 vstr s15, [r7, #28]
  27336. }
  27337. else
  27338. {
  27339. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27340. }
  27341. break;
  27342. 800bc46: e087 b.n 800bd58 <HAL_RCC_GetSysClockFreq+0x28c>
  27343. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27344. 800bc48: 693b ldr r3, [r7, #16]
  27345. 800bc4a: ee07 3a90 vmov s15, r3
  27346. 800bc4e: eef8 7a67 vcvt.f32.u32 s15, s15
  27347. 800bc52: eddf 6a58 vldr s13, [pc, #352] @ 800bdb4 <HAL_RCC_GetSysClockFreq+0x2e8>
  27348. 800bc56: ee86 7aa7 vdiv.f32 s14, s13, s15
  27349. 800bc5a: 4b51 ldr r3, [pc, #324] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27350. 800bc5c: 6b1b ldr r3, [r3, #48] @ 0x30
  27351. 800bc5e: f3c3 0308 ubfx r3, r3, #0, #9
  27352. 800bc62: ee07 3a90 vmov s15, r3
  27353. 800bc66: eef8 6a67 vcvt.f32.u32 s13, s15
  27354. 800bc6a: ed97 6a02 vldr s12, [r7, #8]
  27355. 800bc6e: eddf 5a50 vldr s11, [pc, #320] @ 800bdb0 <HAL_RCC_GetSysClockFreq+0x2e4>
  27356. 800bc72: eec6 7a25 vdiv.f32 s15, s12, s11
  27357. 800bc76: ee76 7aa7 vadd.f32 s15, s13, s15
  27358. 800bc7a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27359. 800bc7e: ee77 7aa6 vadd.f32 s15, s15, s13
  27360. 800bc82: ee67 7a27 vmul.f32 s15, s14, s15
  27361. 800bc86: edc7 7a07 vstr s15, [r7, #28]
  27362. break;
  27363. 800bc8a: e065 b.n 800bd58 <HAL_RCC_GetSysClockFreq+0x28c>
  27364. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  27365. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27366. 800bc8c: 693b ldr r3, [r7, #16]
  27367. 800bc8e: ee07 3a90 vmov s15, r3
  27368. 800bc92: eef8 7a67 vcvt.f32.u32 s15, s15
  27369. 800bc96: eddf 6a48 vldr s13, [pc, #288] @ 800bdb8 <HAL_RCC_GetSysClockFreq+0x2ec>
  27370. 800bc9a: ee86 7aa7 vdiv.f32 s14, s13, s15
  27371. 800bc9e: 4b40 ldr r3, [pc, #256] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27372. 800bca0: 6b1b ldr r3, [r3, #48] @ 0x30
  27373. 800bca2: f3c3 0308 ubfx r3, r3, #0, #9
  27374. 800bca6: ee07 3a90 vmov s15, r3
  27375. 800bcaa: eef8 6a67 vcvt.f32.u32 s13, s15
  27376. 800bcae: ed97 6a02 vldr s12, [r7, #8]
  27377. 800bcb2: eddf 5a3f vldr s11, [pc, #252] @ 800bdb0 <HAL_RCC_GetSysClockFreq+0x2e4>
  27378. 800bcb6: eec6 7a25 vdiv.f32 s15, s12, s11
  27379. 800bcba: ee76 7aa7 vadd.f32 s15, s13, s15
  27380. 800bcbe: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27381. 800bcc2: ee77 7aa6 vadd.f32 s15, s15, s13
  27382. 800bcc6: ee67 7a27 vmul.f32 s15, s14, s15
  27383. 800bcca: edc7 7a07 vstr s15, [r7, #28]
  27384. break;
  27385. 800bcce: e043 b.n 800bd58 <HAL_RCC_GetSysClockFreq+0x28c>
  27386. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  27387. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27388. 800bcd0: 693b ldr r3, [r7, #16]
  27389. 800bcd2: ee07 3a90 vmov s15, r3
  27390. 800bcd6: eef8 7a67 vcvt.f32.u32 s15, s15
  27391. 800bcda: eddf 6a38 vldr s13, [pc, #224] @ 800bdbc <HAL_RCC_GetSysClockFreq+0x2f0>
  27392. 800bcde: ee86 7aa7 vdiv.f32 s14, s13, s15
  27393. 800bce2: 4b2f ldr r3, [pc, #188] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27394. 800bce4: 6b1b ldr r3, [r3, #48] @ 0x30
  27395. 800bce6: f3c3 0308 ubfx r3, r3, #0, #9
  27396. 800bcea: ee07 3a90 vmov s15, r3
  27397. 800bcee: eef8 6a67 vcvt.f32.u32 s13, s15
  27398. 800bcf2: ed97 6a02 vldr s12, [r7, #8]
  27399. 800bcf6: eddf 5a2e vldr s11, [pc, #184] @ 800bdb0 <HAL_RCC_GetSysClockFreq+0x2e4>
  27400. 800bcfa: eec6 7a25 vdiv.f32 s15, s12, s11
  27401. 800bcfe: ee76 7aa7 vadd.f32 s15, s13, s15
  27402. 800bd02: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27403. 800bd06: ee77 7aa6 vadd.f32 s15, s15, s13
  27404. 800bd0a: ee67 7a27 vmul.f32 s15, s14, s15
  27405. 800bd0e: edc7 7a07 vstr s15, [r7, #28]
  27406. break;
  27407. 800bd12: e021 b.n 800bd58 <HAL_RCC_GetSysClockFreq+0x28c>
  27408. default:
  27409. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27410. 800bd14: 693b ldr r3, [r7, #16]
  27411. 800bd16: ee07 3a90 vmov s15, r3
  27412. 800bd1a: eef8 7a67 vcvt.f32.u32 s15, s15
  27413. 800bd1e: eddf 6a26 vldr s13, [pc, #152] @ 800bdb8 <HAL_RCC_GetSysClockFreq+0x2ec>
  27414. 800bd22: ee86 7aa7 vdiv.f32 s14, s13, s15
  27415. 800bd26: 4b1e ldr r3, [pc, #120] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27416. 800bd28: 6b1b ldr r3, [r3, #48] @ 0x30
  27417. 800bd2a: f3c3 0308 ubfx r3, r3, #0, #9
  27418. 800bd2e: ee07 3a90 vmov s15, r3
  27419. 800bd32: eef8 6a67 vcvt.f32.u32 s13, s15
  27420. 800bd36: ed97 6a02 vldr s12, [r7, #8]
  27421. 800bd3a: eddf 5a1d vldr s11, [pc, #116] @ 800bdb0 <HAL_RCC_GetSysClockFreq+0x2e4>
  27422. 800bd3e: eec6 7a25 vdiv.f32 s15, s12, s11
  27423. 800bd42: ee76 7aa7 vadd.f32 s15, s13, s15
  27424. 800bd46: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27425. 800bd4a: ee77 7aa6 vadd.f32 s15, s15, s13
  27426. 800bd4e: ee67 7a27 vmul.f32 s15, s14, s15
  27427. 800bd52: edc7 7a07 vstr s15, [r7, #28]
  27428. break;
  27429. 800bd56: bf00 nop
  27430. }
  27431. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  27432. 800bd58: 4b11 ldr r3, [pc, #68] @ (800bda0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27433. 800bd5a: 6b1b ldr r3, [r3, #48] @ 0x30
  27434. 800bd5c: 0a5b lsrs r3, r3, #9
  27435. 800bd5e: f003 037f and.w r3, r3, #127 @ 0x7f
  27436. 800bd62: 3301 adds r3, #1
  27437. 800bd64: 603b str r3, [r7, #0]
  27438. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  27439. 800bd66: 683b ldr r3, [r7, #0]
  27440. 800bd68: ee07 3a90 vmov s15, r3
  27441. 800bd6c: eeb8 7a67 vcvt.f32.u32 s14, s15
  27442. 800bd70: edd7 6a07 vldr s13, [r7, #28]
  27443. 800bd74: eec6 7a87 vdiv.f32 s15, s13, s14
  27444. 800bd78: eefc 7ae7 vcvt.u32.f32 s15, s15
  27445. 800bd7c: ee17 3a90 vmov r3, s15
  27446. 800bd80: 61bb str r3, [r7, #24]
  27447. }
  27448. else
  27449. {
  27450. sysclockfreq = 0U;
  27451. }
  27452. break;
  27453. 800bd82: e005 b.n 800bd90 <HAL_RCC_GetSysClockFreq+0x2c4>
  27454. sysclockfreq = 0U;
  27455. 800bd84: 2300 movs r3, #0
  27456. 800bd86: 61bb str r3, [r7, #24]
  27457. break;
  27458. 800bd88: e002 b.n 800bd90 <HAL_RCC_GetSysClockFreq+0x2c4>
  27459. default:
  27460. sysclockfreq = CSI_VALUE;
  27461. 800bd8a: 4b07 ldr r3, [pc, #28] @ (800bda8 <HAL_RCC_GetSysClockFreq+0x2dc>)
  27462. 800bd8c: 61bb str r3, [r7, #24]
  27463. break;
  27464. 800bd8e: bf00 nop
  27465. }
  27466. return sysclockfreq;
  27467. 800bd90: 69bb ldr r3, [r7, #24]
  27468. }
  27469. 800bd92: 4618 mov r0, r3
  27470. 800bd94: 3724 adds r7, #36 @ 0x24
  27471. 800bd96: 46bd mov sp, r7
  27472. 800bd98: f85d 7b04 ldr.w r7, [sp], #4
  27473. 800bd9c: 4770 bx lr
  27474. 800bd9e: bf00 nop
  27475. 800bda0: 58024400 .word 0x58024400
  27476. 800bda4: 03d09000 .word 0x03d09000
  27477. 800bda8: 003d0900 .word 0x003d0900
  27478. 800bdac: 017d7840 .word 0x017d7840
  27479. 800bdb0: 46000000 .word 0x46000000
  27480. 800bdb4: 4c742400 .word 0x4c742400
  27481. 800bdb8: 4a742400 .word 0x4a742400
  27482. 800bdbc: 4bbebc20 .word 0x4bbebc20
  27483. 0800bdc0 <HAL_RCC_GetHCLKFreq>:
  27484. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  27485. * and updated within this function
  27486. * @retval HCLK frequency
  27487. */
  27488. uint32_t HAL_RCC_GetHCLKFreq(void)
  27489. {
  27490. 800bdc0: b580 push {r7, lr}
  27491. 800bdc2: b082 sub sp, #8
  27492. 800bdc4: af00 add r7, sp, #0
  27493. uint32_t common_system_clock;
  27494. #if defined(RCC_D1CFGR_D1CPRE)
  27495. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  27496. 800bdc6: f7ff fe81 bl 800bacc <HAL_RCC_GetSysClockFreq>
  27497. 800bdca: 4602 mov r2, r0
  27498. 800bdcc: 4b10 ldr r3, [pc, #64] @ (800be10 <HAL_RCC_GetHCLKFreq+0x50>)
  27499. 800bdce: 699b ldr r3, [r3, #24]
  27500. 800bdd0: 0a1b lsrs r3, r3, #8
  27501. 800bdd2: f003 030f and.w r3, r3, #15
  27502. 800bdd6: 490f ldr r1, [pc, #60] @ (800be14 <HAL_RCC_GetHCLKFreq+0x54>)
  27503. 800bdd8: 5ccb ldrb r3, [r1, r3]
  27504. 800bdda: f003 031f and.w r3, r3, #31
  27505. 800bdde: fa22 f303 lsr.w r3, r2, r3
  27506. 800bde2: 607b str r3, [r7, #4]
  27507. #else
  27508. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  27509. #endif
  27510. #if defined(RCC_D1CFGR_HPRE)
  27511. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  27512. 800bde4: 4b0a ldr r3, [pc, #40] @ (800be10 <HAL_RCC_GetHCLKFreq+0x50>)
  27513. 800bde6: 699b ldr r3, [r3, #24]
  27514. 800bde8: f003 030f and.w r3, r3, #15
  27515. 800bdec: 4a09 ldr r2, [pc, #36] @ (800be14 <HAL_RCC_GetHCLKFreq+0x54>)
  27516. 800bdee: 5cd3 ldrb r3, [r2, r3]
  27517. 800bdf0: f003 031f and.w r3, r3, #31
  27518. 800bdf4: 687a ldr r2, [r7, #4]
  27519. 800bdf6: fa22 f303 lsr.w r3, r2, r3
  27520. 800bdfa: 4a07 ldr r2, [pc, #28] @ (800be18 <HAL_RCC_GetHCLKFreq+0x58>)
  27521. 800bdfc: 6013 str r3, [r2, #0]
  27522. #endif
  27523. #if defined(DUAL_CORE) && defined(CORE_CM4)
  27524. SystemCoreClock = SystemD2Clock;
  27525. #else
  27526. SystemCoreClock = common_system_clock;
  27527. 800bdfe: 4a07 ldr r2, [pc, #28] @ (800be1c <HAL_RCC_GetHCLKFreq+0x5c>)
  27528. 800be00: 687b ldr r3, [r7, #4]
  27529. 800be02: 6013 str r3, [r2, #0]
  27530. #endif /* DUAL_CORE && CORE_CM4 */
  27531. return SystemD2Clock;
  27532. 800be04: 4b04 ldr r3, [pc, #16] @ (800be18 <HAL_RCC_GetHCLKFreq+0x58>)
  27533. 800be06: 681b ldr r3, [r3, #0]
  27534. }
  27535. 800be08: 4618 mov r0, r3
  27536. 800be0a: 3708 adds r7, #8
  27537. 800be0c: 46bd mov sp, r7
  27538. 800be0e: bd80 pop {r7, pc}
  27539. 800be10: 58024400 .word 0x58024400
  27540. 800be14: 08018a28 .word 0x08018a28
  27541. 800be18: 24000038 .word 0x24000038
  27542. 800be1c: 24000034 .word 0x24000034
  27543. 0800be20 <HAL_RCC_GetPCLK1Freq>:
  27544. * @note Each time PCLK1 changes, this function must be called to update the
  27545. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  27546. * @retval PCLK1 frequency
  27547. */
  27548. uint32_t HAL_RCC_GetPCLK1Freq(void)
  27549. {
  27550. 800be20: b580 push {r7, lr}
  27551. 800be22: af00 add r7, sp, #0
  27552. #if defined (RCC_D2CFGR_D2PPRE1)
  27553. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  27554. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  27555. 800be24: f7ff ffcc bl 800bdc0 <HAL_RCC_GetHCLKFreq>
  27556. 800be28: 4602 mov r2, r0
  27557. 800be2a: 4b06 ldr r3, [pc, #24] @ (800be44 <HAL_RCC_GetPCLK1Freq+0x24>)
  27558. 800be2c: 69db ldr r3, [r3, #28]
  27559. 800be2e: 091b lsrs r3, r3, #4
  27560. 800be30: f003 0307 and.w r3, r3, #7
  27561. 800be34: 4904 ldr r1, [pc, #16] @ (800be48 <HAL_RCC_GetPCLK1Freq+0x28>)
  27562. 800be36: 5ccb ldrb r3, [r1, r3]
  27563. 800be38: f003 031f and.w r3, r3, #31
  27564. 800be3c: fa22 f303 lsr.w r3, r2, r3
  27565. #else
  27566. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  27567. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  27568. #endif
  27569. }
  27570. 800be40: 4618 mov r0, r3
  27571. 800be42: bd80 pop {r7, pc}
  27572. 800be44: 58024400 .word 0x58024400
  27573. 800be48: 08018a28 .word 0x08018a28
  27574. 0800be4c <HAL_RCC_GetPCLK2Freq>:
  27575. * @note Each time PCLK2 changes, this function must be called to update the
  27576. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  27577. * @retval PCLK1 frequency
  27578. */
  27579. uint32_t HAL_RCC_GetPCLK2Freq(void)
  27580. {
  27581. 800be4c: b580 push {r7, lr}
  27582. 800be4e: af00 add r7, sp, #0
  27583. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  27584. #if defined(RCC_D2CFGR_D2PPRE2)
  27585. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  27586. 800be50: f7ff ffb6 bl 800bdc0 <HAL_RCC_GetHCLKFreq>
  27587. 800be54: 4602 mov r2, r0
  27588. 800be56: 4b06 ldr r3, [pc, #24] @ (800be70 <HAL_RCC_GetPCLK2Freq+0x24>)
  27589. 800be58: 69db ldr r3, [r3, #28]
  27590. 800be5a: 0a1b lsrs r3, r3, #8
  27591. 800be5c: f003 0307 and.w r3, r3, #7
  27592. 800be60: 4904 ldr r1, [pc, #16] @ (800be74 <HAL_RCC_GetPCLK2Freq+0x28>)
  27593. 800be62: 5ccb ldrb r3, [r1, r3]
  27594. 800be64: f003 031f and.w r3, r3, #31
  27595. 800be68: fa22 f303 lsr.w r3, r2, r3
  27596. #else
  27597. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  27598. #endif
  27599. }
  27600. 800be6c: 4618 mov r0, r3
  27601. 800be6e: bd80 pop {r7, pc}
  27602. 800be70: 58024400 .word 0x58024400
  27603. 800be74: 08018a28 .word 0x08018a28
  27604. 0800be78 <HAL_RCC_GetClockConfig>:
  27605. * will be configured.
  27606. * @param pFLatency: Pointer on the Flash Latency.
  27607. * @retval None
  27608. */
  27609. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  27610. {
  27611. 800be78: b480 push {r7}
  27612. 800be7a: b083 sub sp, #12
  27613. 800be7c: af00 add r7, sp, #0
  27614. 800be7e: 6078 str r0, [r7, #4]
  27615. 800be80: 6039 str r1, [r7, #0]
  27616. /* Set all possible values for the Clock type parameter --------------------*/
  27617. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  27618. 800be82: 687b ldr r3, [r7, #4]
  27619. 800be84: 223f movs r2, #63 @ 0x3f
  27620. 800be86: 601a str r2, [r3, #0]
  27621. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  27622. /* Get the SYSCLK configuration --------------------------------------------*/
  27623. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  27624. 800be88: 4b1a ldr r3, [pc, #104] @ (800bef4 <HAL_RCC_GetClockConfig+0x7c>)
  27625. 800be8a: 691b ldr r3, [r3, #16]
  27626. 800be8c: f003 0207 and.w r2, r3, #7
  27627. 800be90: 687b ldr r3, [r7, #4]
  27628. 800be92: 605a str r2, [r3, #4]
  27629. #if defined(RCC_D1CFGR_D1CPRE)
  27630. /* Get the SYSCLK configuration ----------------------------------------------*/
  27631. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  27632. 800be94: 4b17 ldr r3, [pc, #92] @ (800bef4 <HAL_RCC_GetClockConfig+0x7c>)
  27633. 800be96: 699b ldr r3, [r3, #24]
  27634. 800be98: f403 6270 and.w r2, r3, #3840 @ 0xf00
  27635. 800be9c: 687b ldr r3, [r7, #4]
  27636. 800be9e: 609a str r2, [r3, #8]
  27637. /* Get the D1HCLK configuration ----------------------------------------------*/
  27638. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  27639. 800bea0: 4b14 ldr r3, [pc, #80] @ (800bef4 <HAL_RCC_GetClockConfig+0x7c>)
  27640. 800bea2: 699b ldr r3, [r3, #24]
  27641. 800bea4: f003 020f and.w r2, r3, #15
  27642. 800bea8: 687b ldr r3, [r7, #4]
  27643. 800beaa: 60da str r2, [r3, #12]
  27644. /* Get the APB3 configuration ----------------------------------------------*/
  27645. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  27646. 800beac: 4b11 ldr r3, [pc, #68] @ (800bef4 <HAL_RCC_GetClockConfig+0x7c>)
  27647. 800beae: 699b ldr r3, [r3, #24]
  27648. 800beb0: f003 0270 and.w r2, r3, #112 @ 0x70
  27649. 800beb4: 687b ldr r3, [r7, #4]
  27650. 800beb6: 611a str r2, [r3, #16]
  27651. /* Get the APB1 configuration ----------------------------------------------*/
  27652. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  27653. 800beb8: 4b0e ldr r3, [pc, #56] @ (800bef4 <HAL_RCC_GetClockConfig+0x7c>)
  27654. 800beba: 69db ldr r3, [r3, #28]
  27655. 800bebc: f003 0270 and.w r2, r3, #112 @ 0x70
  27656. 800bec0: 687b ldr r3, [r7, #4]
  27657. 800bec2: 615a str r2, [r3, #20]
  27658. /* Get the APB2 configuration ----------------------------------------------*/
  27659. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  27660. 800bec4: 4b0b ldr r3, [pc, #44] @ (800bef4 <HAL_RCC_GetClockConfig+0x7c>)
  27661. 800bec6: 69db ldr r3, [r3, #28]
  27662. 800bec8: f403 62e0 and.w r2, r3, #1792 @ 0x700
  27663. 800becc: 687b ldr r3, [r7, #4]
  27664. 800bece: 619a str r2, [r3, #24]
  27665. /* Get the APB4 configuration ----------------------------------------------*/
  27666. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  27667. 800bed0: 4b08 ldr r3, [pc, #32] @ (800bef4 <HAL_RCC_GetClockConfig+0x7c>)
  27668. 800bed2: 6a1b ldr r3, [r3, #32]
  27669. 800bed4: f003 0270 and.w r2, r3, #112 @ 0x70
  27670. 800bed8: 687b ldr r3, [r7, #4]
  27671. 800beda: 61da str r2, [r3, #28]
  27672. /* Get the APB4 configuration ----------------------------------------------*/
  27673. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  27674. #endif
  27675. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  27676. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  27677. 800bedc: 4b06 ldr r3, [pc, #24] @ (800bef8 <HAL_RCC_GetClockConfig+0x80>)
  27678. 800bede: 681b ldr r3, [r3, #0]
  27679. 800bee0: f003 020f and.w r2, r3, #15
  27680. 800bee4: 683b ldr r3, [r7, #0]
  27681. 800bee6: 601a str r2, [r3, #0]
  27682. }
  27683. 800bee8: bf00 nop
  27684. 800beea: 370c adds r7, #12
  27685. 800beec: 46bd mov sp, r7
  27686. 800beee: f85d 7b04 ldr.w r7, [sp], #4
  27687. 800bef2: 4770 bx lr
  27688. 800bef4: 58024400 .word 0x58024400
  27689. 800bef8: 52002000 .word 0x52002000
  27690. 0800befc <HAL_RCCEx_PeriphCLKConfig>:
  27691. * (*) : Available on some STM32H7 lines only.
  27692. *
  27693. * @retval HAL status
  27694. */
  27695. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  27696. {
  27697. 800befc: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  27698. 800bf00: b0c8 sub sp, #288 @ 0x120
  27699. 800bf02: af00 add r7, sp, #0
  27700. 800bf04: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  27701. uint32_t tmpreg;
  27702. uint32_t tickstart;
  27703. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  27704. 800bf08: 2300 movs r3, #0
  27705. 800bf0a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27706. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  27707. 800bf0e: 2300 movs r3, #0
  27708. 800bf10: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27709. /*---------------------------- SPDIFRX configuration -------------------------------*/
  27710. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  27711. 800bf14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27712. 800bf18: e9d3 2300 ldrd r2, r3, [r3]
  27713. 800bf1c: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  27714. 800bf20: 2500 movs r5, #0
  27715. 800bf22: ea54 0305 orrs.w r3, r4, r5
  27716. 800bf26: d049 beq.n 800bfbc <HAL_RCCEx_PeriphCLKConfig+0xc0>
  27717. {
  27718. switch (PeriphClkInit->SpdifrxClockSelection)
  27719. 800bf28: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27720. 800bf2c: 6e9b ldr r3, [r3, #104] @ 0x68
  27721. 800bf2e: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  27722. 800bf32: d02f beq.n 800bf94 <HAL_RCCEx_PeriphCLKConfig+0x98>
  27723. 800bf34: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  27724. 800bf38: d828 bhi.n 800bf8c <HAL_RCCEx_PeriphCLKConfig+0x90>
  27725. 800bf3a: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  27726. 800bf3e: d01a beq.n 800bf76 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  27727. 800bf40: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  27728. 800bf44: d822 bhi.n 800bf8c <HAL_RCCEx_PeriphCLKConfig+0x90>
  27729. 800bf46: 2b00 cmp r3, #0
  27730. 800bf48: d003 beq.n 800bf52 <HAL_RCCEx_PeriphCLKConfig+0x56>
  27731. 800bf4a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  27732. 800bf4e: d007 beq.n 800bf60 <HAL_RCCEx_PeriphCLKConfig+0x64>
  27733. 800bf50: e01c b.n 800bf8c <HAL_RCCEx_PeriphCLKConfig+0x90>
  27734. {
  27735. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  27736. /* Enable PLL1Q Clock output generated form System PLL . */
  27737. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27738. 800bf52: 4bb8 ldr r3, [pc, #736] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27739. 800bf54: 6adb ldr r3, [r3, #44] @ 0x2c
  27740. 800bf56: 4ab7 ldr r2, [pc, #732] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27741. 800bf58: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27742. 800bf5c: 62d3 str r3, [r2, #44] @ 0x2c
  27743. /* SPDIFRX clock source configuration done later after clock selection check */
  27744. break;
  27745. 800bf5e: e01a b.n 800bf96 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  27746. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  27747. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  27748. 800bf60: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27749. 800bf64: 3308 adds r3, #8
  27750. 800bf66: 2102 movs r1, #2
  27751. 800bf68: 4618 mov r0, r3
  27752. 800bf6a: f002 fb45 bl 800e5f8 <RCCEx_PLL2_Config>
  27753. 800bf6e: 4603 mov r3, r0
  27754. 800bf70: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27755. /* SPDIFRX clock source configuration done later after clock selection check */
  27756. break;
  27757. 800bf74: e00f b.n 800bf96 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  27758. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  27759. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  27760. 800bf76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27761. 800bf7a: 3328 adds r3, #40 @ 0x28
  27762. 800bf7c: 2102 movs r1, #2
  27763. 800bf7e: 4618 mov r0, r3
  27764. 800bf80: f002 fbec bl 800e75c <RCCEx_PLL3_Config>
  27765. 800bf84: 4603 mov r3, r0
  27766. 800bf86: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27767. /* SPDIFRX clock source configuration done later after clock selection check */
  27768. break;
  27769. 800bf8a: e004 b.n 800bf96 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  27770. /* Internal OSC clock is used as source of SPDIFRX clock*/
  27771. /* SPDIFRX clock source configuration done later after clock selection check */
  27772. break;
  27773. default:
  27774. ret = HAL_ERROR;
  27775. 800bf8c: 2301 movs r3, #1
  27776. 800bf8e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27777. break;
  27778. 800bf92: e000 b.n 800bf96 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  27779. break;
  27780. 800bf94: bf00 nop
  27781. }
  27782. if (ret == HAL_OK)
  27783. 800bf96: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27784. 800bf9a: 2b00 cmp r3, #0
  27785. 800bf9c: d10a bne.n 800bfb4 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  27786. {
  27787. /* Set the source of SPDIFRX clock*/
  27788. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  27789. 800bf9e: 4ba5 ldr r3, [pc, #660] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27790. 800bfa0: 6d1b ldr r3, [r3, #80] @ 0x50
  27791. 800bfa2: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  27792. 800bfa6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27793. 800bfaa: 6e9b ldr r3, [r3, #104] @ 0x68
  27794. 800bfac: 4aa1 ldr r2, [pc, #644] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27795. 800bfae: 430b orrs r3, r1
  27796. 800bfb0: 6513 str r3, [r2, #80] @ 0x50
  27797. 800bfb2: e003 b.n 800bfbc <HAL_RCCEx_PeriphCLKConfig+0xc0>
  27798. }
  27799. else
  27800. {
  27801. /* set overall return value */
  27802. status = ret;
  27803. 800bfb4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27804. 800bfb8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27805. }
  27806. }
  27807. /*---------------------------- SAI1 configuration -------------------------------*/
  27808. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  27809. 800bfbc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27810. 800bfc0: e9d3 2300 ldrd r2, r3, [r3]
  27811. 800bfc4: f402 7880 and.w r8, r2, #256 @ 0x100
  27812. 800bfc8: f04f 0900 mov.w r9, #0
  27813. 800bfcc: ea58 0309 orrs.w r3, r8, r9
  27814. 800bfd0: d047 beq.n 800c062 <HAL_RCCEx_PeriphCLKConfig+0x166>
  27815. {
  27816. switch (PeriphClkInit->Sai1ClockSelection)
  27817. 800bfd2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27818. 800bfd6: 6d9b ldr r3, [r3, #88] @ 0x58
  27819. 800bfd8: 2b04 cmp r3, #4
  27820. 800bfda: d82a bhi.n 800c032 <HAL_RCCEx_PeriphCLKConfig+0x136>
  27821. 800bfdc: a201 add r2, pc, #4 @ (adr r2, 800bfe4 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  27822. 800bfde: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  27823. 800bfe2: bf00 nop
  27824. 800bfe4: 0800bff9 .word 0x0800bff9
  27825. 800bfe8: 0800c007 .word 0x0800c007
  27826. 800bfec: 0800c01d .word 0x0800c01d
  27827. 800bff0: 0800c03b .word 0x0800c03b
  27828. 800bff4: 0800c03b .word 0x0800c03b
  27829. {
  27830. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  27831. /* Enable SAI Clock output generated form System PLL . */
  27832. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27833. 800bff8: 4b8e ldr r3, [pc, #568] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27834. 800bffa: 6adb ldr r3, [r3, #44] @ 0x2c
  27835. 800bffc: 4a8d ldr r2, [pc, #564] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27836. 800bffe: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27837. 800c002: 62d3 str r3, [r2, #44] @ 0x2c
  27838. /* SAI1 clock source configuration done later after clock selection check */
  27839. break;
  27840. 800c004: e01a b.n 800c03c <HAL_RCCEx_PeriphCLKConfig+0x140>
  27841. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  27842. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27843. 800c006: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27844. 800c00a: 3308 adds r3, #8
  27845. 800c00c: 2100 movs r1, #0
  27846. 800c00e: 4618 mov r0, r3
  27847. 800c010: f002 faf2 bl 800e5f8 <RCCEx_PLL2_Config>
  27848. 800c014: 4603 mov r3, r0
  27849. 800c016: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27850. /* SAI1 clock source configuration done later after clock selection check */
  27851. break;
  27852. 800c01a: e00f b.n 800c03c <HAL_RCCEx_PeriphCLKConfig+0x140>
  27853. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  27854. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  27855. 800c01c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27856. 800c020: 3328 adds r3, #40 @ 0x28
  27857. 800c022: 2100 movs r1, #0
  27858. 800c024: 4618 mov r0, r3
  27859. 800c026: f002 fb99 bl 800e75c <RCCEx_PLL3_Config>
  27860. 800c02a: 4603 mov r3, r0
  27861. 800c02c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27862. /* SAI1 clock source configuration done later after clock selection check */
  27863. break;
  27864. 800c030: e004 b.n 800c03c <HAL_RCCEx_PeriphCLKConfig+0x140>
  27865. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  27866. /* SAI1 clock source configuration done later after clock selection check */
  27867. break;
  27868. default:
  27869. ret = HAL_ERROR;
  27870. 800c032: 2301 movs r3, #1
  27871. 800c034: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27872. break;
  27873. 800c038: e000 b.n 800c03c <HAL_RCCEx_PeriphCLKConfig+0x140>
  27874. break;
  27875. 800c03a: bf00 nop
  27876. }
  27877. if (ret == HAL_OK)
  27878. 800c03c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27879. 800c040: 2b00 cmp r3, #0
  27880. 800c042: d10a bne.n 800c05a <HAL_RCCEx_PeriphCLKConfig+0x15e>
  27881. {
  27882. /* Set the source of SAI1 clock*/
  27883. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  27884. 800c044: 4b7b ldr r3, [pc, #492] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27885. 800c046: 6d1b ldr r3, [r3, #80] @ 0x50
  27886. 800c048: f023 0107 bic.w r1, r3, #7
  27887. 800c04c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27888. 800c050: 6d9b ldr r3, [r3, #88] @ 0x58
  27889. 800c052: 4a78 ldr r2, [pc, #480] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27890. 800c054: 430b orrs r3, r1
  27891. 800c056: 6513 str r3, [r2, #80] @ 0x50
  27892. 800c058: e003 b.n 800c062 <HAL_RCCEx_PeriphCLKConfig+0x166>
  27893. }
  27894. else
  27895. {
  27896. /* set overall return value */
  27897. status = ret;
  27898. 800c05a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27899. 800c05e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27900. }
  27901. }
  27902. #if defined(SAI3)
  27903. /*---------------------------- SAI2/3 configuration -------------------------------*/
  27904. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  27905. 800c062: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27906. 800c066: e9d3 2300 ldrd r2, r3, [r3]
  27907. 800c06a: f402 7a00 and.w sl, r2, #512 @ 0x200
  27908. 800c06e: f04f 0b00 mov.w fp, #0
  27909. 800c072: ea5a 030b orrs.w r3, sl, fp
  27910. 800c076: d04c beq.n 800c112 <HAL_RCCEx_PeriphCLKConfig+0x216>
  27911. {
  27912. switch (PeriphClkInit->Sai23ClockSelection)
  27913. 800c078: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27914. 800c07c: 6ddb ldr r3, [r3, #92] @ 0x5c
  27915. 800c07e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  27916. 800c082: d030 beq.n 800c0e6 <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  27917. 800c084: f5b3 7f80 cmp.w r3, #256 @ 0x100
  27918. 800c088: d829 bhi.n 800c0de <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  27919. 800c08a: 2bc0 cmp r3, #192 @ 0xc0
  27920. 800c08c: d02d beq.n 800c0ea <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  27921. 800c08e: 2bc0 cmp r3, #192 @ 0xc0
  27922. 800c090: d825 bhi.n 800c0de <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  27923. 800c092: 2b80 cmp r3, #128 @ 0x80
  27924. 800c094: d018 beq.n 800c0c8 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  27925. 800c096: 2b80 cmp r3, #128 @ 0x80
  27926. 800c098: d821 bhi.n 800c0de <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  27927. 800c09a: 2b00 cmp r3, #0
  27928. 800c09c: d002 beq.n 800c0a4 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  27929. 800c09e: 2b40 cmp r3, #64 @ 0x40
  27930. 800c0a0: d007 beq.n 800c0b2 <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  27931. 800c0a2: e01c b.n 800c0de <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  27932. {
  27933. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  27934. /* Enable SAI Clock output generated form System PLL . */
  27935. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27936. 800c0a4: 4b63 ldr r3, [pc, #396] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27937. 800c0a6: 6adb ldr r3, [r3, #44] @ 0x2c
  27938. 800c0a8: 4a62 ldr r2, [pc, #392] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27939. 800c0aa: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27940. 800c0ae: 62d3 str r3, [r2, #44] @ 0x2c
  27941. /* SAI2/3 clock source configuration done later after clock selection check */
  27942. break;
  27943. 800c0b0: e01c b.n 800c0ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  27944. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  27945. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27946. 800c0b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27947. 800c0b6: 3308 adds r3, #8
  27948. 800c0b8: 2100 movs r1, #0
  27949. 800c0ba: 4618 mov r0, r3
  27950. 800c0bc: f002 fa9c bl 800e5f8 <RCCEx_PLL2_Config>
  27951. 800c0c0: 4603 mov r3, r0
  27952. 800c0c2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27953. /* SAI2/3 clock source configuration done later after clock selection check */
  27954. break;
  27955. 800c0c6: e011 b.n 800c0ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  27956. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  27957. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  27958. 800c0c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27959. 800c0cc: 3328 adds r3, #40 @ 0x28
  27960. 800c0ce: 2100 movs r1, #0
  27961. 800c0d0: 4618 mov r0, r3
  27962. 800c0d2: f002 fb43 bl 800e75c <RCCEx_PLL3_Config>
  27963. 800c0d6: 4603 mov r3, r0
  27964. 800c0d8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27965. /* SAI2/3 clock source configuration done later after clock selection check */
  27966. break;
  27967. 800c0dc: e006 b.n 800c0ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  27968. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  27969. /* SAI2/3 clock source configuration done later after clock selection check */
  27970. break;
  27971. default:
  27972. ret = HAL_ERROR;
  27973. 800c0de: 2301 movs r3, #1
  27974. 800c0e0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27975. break;
  27976. 800c0e4: e002 b.n 800c0ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  27977. break;
  27978. 800c0e6: bf00 nop
  27979. 800c0e8: e000 b.n 800c0ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  27980. break;
  27981. 800c0ea: bf00 nop
  27982. }
  27983. if (ret == HAL_OK)
  27984. 800c0ec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27985. 800c0f0: 2b00 cmp r3, #0
  27986. 800c0f2: d10a bne.n 800c10a <HAL_RCCEx_PeriphCLKConfig+0x20e>
  27987. {
  27988. /* Set the source of SAI2/3 clock*/
  27989. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  27990. 800c0f4: 4b4f ldr r3, [pc, #316] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27991. 800c0f6: 6d1b ldr r3, [r3, #80] @ 0x50
  27992. 800c0f8: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  27993. 800c0fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27994. 800c100: 6ddb ldr r3, [r3, #92] @ 0x5c
  27995. 800c102: 4a4c ldr r2, [pc, #304] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  27996. 800c104: 430b orrs r3, r1
  27997. 800c106: 6513 str r3, [r2, #80] @ 0x50
  27998. 800c108: e003 b.n 800c112 <HAL_RCCEx_PeriphCLKConfig+0x216>
  27999. }
  28000. else
  28001. {
  28002. /* set overall return value */
  28003. status = ret;
  28004. 800c10a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28005. 800c10e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28006. }
  28007. #endif /*SAI2B*/
  28008. #if defined(SAI4)
  28009. /*---------------------------- SAI4A configuration -------------------------------*/
  28010. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  28011. 800c112: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28012. 800c116: e9d3 2300 ldrd r2, r3, [r3]
  28013. 800c11a: f402 6380 and.w r3, r2, #1024 @ 0x400
  28014. 800c11e: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  28015. 800c122: 2300 movs r3, #0
  28016. 800c124: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  28017. 800c128: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  28018. 800c12c: 460b mov r3, r1
  28019. 800c12e: 4313 orrs r3, r2
  28020. 800c130: d053 beq.n 800c1da <HAL_RCCEx_PeriphCLKConfig+0x2de>
  28021. {
  28022. switch (PeriphClkInit->Sai4AClockSelection)
  28023. 800c132: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28024. 800c136: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  28025. 800c13a: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  28026. 800c13e: d035 beq.n 800c1ac <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  28027. 800c140: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  28028. 800c144: d82e bhi.n 800c1a4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28029. 800c146: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  28030. 800c14a: d031 beq.n 800c1b0 <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  28031. 800c14c: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  28032. 800c150: d828 bhi.n 800c1a4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28033. 800c152: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  28034. 800c156: d01a beq.n 800c18e <HAL_RCCEx_PeriphCLKConfig+0x292>
  28035. 800c158: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  28036. 800c15c: d822 bhi.n 800c1a4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28037. 800c15e: 2b00 cmp r3, #0
  28038. 800c160: d003 beq.n 800c16a <HAL_RCCEx_PeriphCLKConfig+0x26e>
  28039. 800c162: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  28040. 800c166: d007 beq.n 800c178 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  28041. 800c168: e01c b.n 800c1a4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28042. {
  28043. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  28044. /* Enable SAI Clock output generated form System PLL . */
  28045. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28046. 800c16a: 4b32 ldr r3, [pc, #200] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28047. 800c16c: 6adb ldr r3, [r3, #44] @ 0x2c
  28048. 800c16e: 4a31 ldr r2, [pc, #196] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28049. 800c170: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28050. 800c174: 62d3 str r3, [r2, #44] @ 0x2c
  28051. /* SAI1 clock source configuration done later after clock selection check */
  28052. break;
  28053. 800c176: e01c b.n 800c1b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28054. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  28055. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28056. 800c178: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28057. 800c17c: 3308 adds r3, #8
  28058. 800c17e: 2100 movs r1, #0
  28059. 800c180: 4618 mov r0, r3
  28060. 800c182: f002 fa39 bl 800e5f8 <RCCEx_PLL2_Config>
  28061. 800c186: 4603 mov r3, r0
  28062. 800c188: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28063. /* SAI2 clock source configuration done later after clock selection check */
  28064. break;
  28065. 800c18c: e011 b.n 800c1b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28066. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  28067. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28068. 800c18e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28069. 800c192: 3328 adds r3, #40 @ 0x28
  28070. 800c194: 2100 movs r1, #0
  28071. 800c196: 4618 mov r0, r3
  28072. 800c198: f002 fae0 bl 800e75c <RCCEx_PLL3_Config>
  28073. 800c19c: 4603 mov r3, r0
  28074. 800c19e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28075. /* SAI1 clock source configuration done later after clock selection check */
  28076. break;
  28077. 800c1a2: e006 b.n 800c1b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28078. /* SAI4A clock source configuration done later after clock selection check */
  28079. break;
  28080. #endif /* RCC_VER_3_0 */
  28081. default:
  28082. ret = HAL_ERROR;
  28083. 800c1a4: 2301 movs r3, #1
  28084. 800c1a6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28085. break;
  28086. 800c1aa: e002 b.n 800c1b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28087. break;
  28088. 800c1ac: bf00 nop
  28089. 800c1ae: e000 b.n 800c1b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28090. break;
  28091. 800c1b0: bf00 nop
  28092. }
  28093. if (ret == HAL_OK)
  28094. 800c1b2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28095. 800c1b6: 2b00 cmp r3, #0
  28096. 800c1b8: d10b bne.n 800c1d2 <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  28097. {
  28098. /* Set the source of SAI4A clock*/
  28099. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  28100. 800c1ba: 4b1e ldr r3, [pc, #120] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28101. 800c1bc: 6d9b ldr r3, [r3, #88] @ 0x58
  28102. 800c1be: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  28103. 800c1c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28104. 800c1c6: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  28105. 800c1ca: 4a1a ldr r2, [pc, #104] @ (800c234 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28106. 800c1cc: 430b orrs r3, r1
  28107. 800c1ce: 6593 str r3, [r2, #88] @ 0x58
  28108. 800c1d0: e003 b.n 800c1da <HAL_RCCEx_PeriphCLKConfig+0x2de>
  28109. }
  28110. else
  28111. {
  28112. /* set overall return value */
  28113. status = ret;
  28114. 800c1d2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28115. 800c1d6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28116. }
  28117. }
  28118. /*---------------------------- SAI4B configuration -------------------------------*/
  28119. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  28120. 800c1da: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28121. 800c1de: e9d3 2300 ldrd r2, r3, [r3]
  28122. 800c1e2: f402 6300 and.w r3, r2, #2048 @ 0x800
  28123. 800c1e6: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  28124. 800c1ea: 2300 movs r3, #0
  28125. 800c1ec: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  28126. 800c1f0: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  28127. 800c1f4: 460b mov r3, r1
  28128. 800c1f6: 4313 orrs r3, r2
  28129. 800c1f8: d056 beq.n 800c2a8 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  28130. {
  28131. switch (PeriphClkInit->Sai4BClockSelection)
  28132. 800c1fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28133. 800c1fe: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  28134. 800c202: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  28135. 800c206: d038 beq.n 800c27a <HAL_RCCEx_PeriphCLKConfig+0x37e>
  28136. 800c208: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  28137. 800c20c: d831 bhi.n 800c272 <HAL_RCCEx_PeriphCLKConfig+0x376>
  28138. 800c20e: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  28139. 800c212: d034 beq.n 800c27e <HAL_RCCEx_PeriphCLKConfig+0x382>
  28140. 800c214: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  28141. 800c218: d82b bhi.n 800c272 <HAL_RCCEx_PeriphCLKConfig+0x376>
  28142. 800c21a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  28143. 800c21e: d01d beq.n 800c25c <HAL_RCCEx_PeriphCLKConfig+0x360>
  28144. 800c220: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  28145. 800c224: d825 bhi.n 800c272 <HAL_RCCEx_PeriphCLKConfig+0x376>
  28146. 800c226: 2b00 cmp r3, #0
  28147. 800c228: d006 beq.n 800c238 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  28148. 800c22a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  28149. 800c22e: d00a beq.n 800c246 <HAL_RCCEx_PeriphCLKConfig+0x34a>
  28150. 800c230: e01f b.n 800c272 <HAL_RCCEx_PeriphCLKConfig+0x376>
  28151. 800c232: bf00 nop
  28152. 800c234: 58024400 .word 0x58024400
  28153. {
  28154. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  28155. /* Enable SAI Clock output generated form System PLL . */
  28156. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28157. 800c238: 4ba2 ldr r3, [pc, #648] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28158. 800c23a: 6adb ldr r3, [r3, #44] @ 0x2c
  28159. 800c23c: 4aa1 ldr r2, [pc, #644] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28160. 800c23e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28161. 800c242: 62d3 str r3, [r2, #44] @ 0x2c
  28162. /* SAI1 clock source configuration done later after clock selection check */
  28163. break;
  28164. 800c244: e01c b.n 800c280 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28165. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  28166. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28167. 800c246: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28168. 800c24a: 3308 adds r3, #8
  28169. 800c24c: 2100 movs r1, #0
  28170. 800c24e: 4618 mov r0, r3
  28171. 800c250: f002 f9d2 bl 800e5f8 <RCCEx_PLL2_Config>
  28172. 800c254: 4603 mov r3, r0
  28173. 800c256: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28174. /* SAI2 clock source configuration done later after clock selection check */
  28175. break;
  28176. 800c25a: e011 b.n 800c280 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28177. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  28178. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28179. 800c25c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28180. 800c260: 3328 adds r3, #40 @ 0x28
  28181. 800c262: 2100 movs r1, #0
  28182. 800c264: 4618 mov r0, r3
  28183. 800c266: f002 fa79 bl 800e75c <RCCEx_PLL3_Config>
  28184. 800c26a: 4603 mov r3, r0
  28185. 800c26c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28186. /* SAI1 clock source configuration done later after clock selection check */
  28187. break;
  28188. 800c270: e006 b.n 800c280 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28189. /* SAI4B clock source configuration done later after clock selection check */
  28190. break;
  28191. #endif /* RCC_VER_3_0 */
  28192. default:
  28193. ret = HAL_ERROR;
  28194. 800c272: 2301 movs r3, #1
  28195. 800c274: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28196. break;
  28197. 800c278: e002 b.n 800c280 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28198. break;
  28199. 800c27a: bf00 nop
  28200. 800c27c: e000 b.n 800c280 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28201. break;
  28202. 800c27e: bf00 nop
  28203. }
  28204. if (ret == HAL_OK)
  28205. 800c280: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28206. 800c284: 2b00 cmp r3, #0
  28207. 800c286: d10b bne.n 800c2a0 <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  28208. {
  28209. /* Set the source of SAI4B clock*/
  28210. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  28211. 800c288: 4b8e ldr r3, [pc, #568] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28212. 800c28a: 6d9b ldr r3, [r3, #88] @ 0x58
  28213. 800c28c: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  28214. 800c290: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28215. 800c294: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  28216. 800c298: 4a8a ldr r2, [pc, #552] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28217. 800c29a: 430b orrs r3, r1
  28218. 800c29c: 6593 str r3, [r2, #88] @ 0x58
  28219. 800c29e: e003 b.n 800c2a8 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  28220. }
  28221. else
  28222. {
  28223. /* set overall return value */
  28224. status = ret;
  28225. 800c2a0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28226. 800c2a4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28227. }
  28228. #endif /*SAI4*/
  28229. #if defined(QUADSPI)
  28230. /*---------------------------- QSPI configuration -------------------------------*/
  28231. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  28232. 800c2a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28233. 800c2ac: e9d3 2300 ldrd r2, r3, [r3]
  28234. 800c2b0: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  28235. 800c2b4: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  28236. 800c2b8: 2300 movs r3, #0
  28237. 800c2ba: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  28238. 800c2be: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  28239. 800c2c2: 460b mov r3, r1
  28240. 800c2c4: 4313 orrs r3, r2
  28241. 800c2c6: d03a beq.n 800c33e <HAL_RCCEx_PeriphCLKConfig+0x442>
  28242. {
  28243. switch (PeriphClkInit->QspiClockSelection)
  28244. 800c2c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28245. 800c2cc: 6cdb ldr r3, [r3, #76] @ 0x4c
  28246. 800c2ce: 2b30 cmp r3, #48 @ 0x30
  28247. 800c2d0: d01f beq.n 800c312 <HAL_RCCEx_PeriphCLKConfig+0x416>
  28248. 800c2d2: 2b30 cmp r3, #48 @ 0x30
  28249. 800c2d4: d819 bhi.n 800c30a <HAL_RCCEx_PeriphCLKConfig+0x40e>
  28250. 800c2d6: 2b20 cmp r3, #32
  28251. 800c2d8: d00c beq.n 800c2f4 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  28252. 800c2da: 2b20 cmp r3, #32
  28253. 800c2dc: d815 bhi.n 800c30a <HAL_RCCEx_PeriphCLKConfig+0x40e>
  28254. 800c2de: 2b00 cmp r3, #0
  28255. 800c2e0: d019 beq.n 800c316 <HAL_RCCEx_PeriphCLKConfig+0x41a>
  28256. 800c2e2: 2b10 cmp r3, #16
  28257. 800c2e4: d111 bne.n 800c30a <HAL_RCCEx_PeriphCLKConfig+0x40e>
  28258. {
  28259. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  28260. /* Enable QSPI Clock output generated form System PLL . */
  28261. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28262. 800c2e6: 4b77 ldr r3, [pc, #476] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28263. 800c2e8: 6adb ldr r3, [r3, #44] @ 0x2c
  28264. 800c2ea: 4a76 ldr r2, [pc, #472] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28265. 800c2ec: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28266. 800c2f0: 62d3 str r3, [r2, #44] @ 0x2c
  28267. /* QSPI clock source configuration done later after clock selection check */
  28268. break;
  28269. 800c2f2: e011 b.n 800c318 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28270. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  28271. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  28272. 800c2f4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28273. 800c2f8: 3308 adds r3, #8
  28274. 800c2fa: 2102 movs r1, #2
  28275. 800c2fc: 4618 mov r0, r3
  28276. 800c2fe: f002 f97b bl 800e5f8 <RCCEx_PLL2_Config>
  28277. 800c302: 4603 mov r3, r0
  28278. 800c304: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28279. /* QSPI clock source configuration done later after clock selection check */
  28280. break;
  28281. 800c308: e006 b.n 800c318 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28282. case RCC_QSPICLKSOURCE_D1HCLK:
  28283. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  28284. break;
  28285. default:
  28286. ret = HAL_ERROR;
  28287. 800c30a: 2301 movs r3, #1
  28288. 800c30c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28289. break;
  28290. 800c310: e002 b.n 800c318 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28291. break;
  28292. 800c312: bf00 nop
  28293. 800c314: e000 b.n 800c318 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28294. break;
  28295. 800c316: bf00 nop
  28296. }
  28297. if (ret == HAL_OK)
  28298. 800c318: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28299. 800c31c: 2b00 cmp r3, #0
  28300. 800c31e: d10a bne.n 800c336 <HAL_RCCEx_PeriphCLKConfig+0x43a>
  28301. {
  28302. /* Set the source of QSPI clock*/
  28303. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  28304. 800c320: 4b68 ldr r3, [pc, #416] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28305. 800c322: 6cdb ldr r3, [r3, #76] @ 0x4c
  28306. 800c324: f023 0130 bic.w r1, r3, #48 @ 0x30
  28307. 800c328: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28308. 800c32c: 6cdb ldr r3, [r3, #76] @ 0x4c
  28309. 800c32e: 4a65 ldr r2, [pc, #404] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28310. 800c330: 430b orrs r3, r1
  28311. 800c332: 64d3 str r3, [r2, #76] @ 0x4c
  28312. 800c334: e003 b.n 800c33e <HAL_RCCEx_PeriphCLKConfig+0x442>
  28313. }
  28314. else
  28315. {
  28316. /* set overall return value */
  28317. status = ret;
  28318. 800c336: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28319. 800c33a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28320. }
  28321. }
  28322. #endif /*OCTOSPI*/
  28323. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  28324. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  28325. 800c33e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28326. 800c342: e9d3 2300 ldrd r2, r3, [r3]
  28327. 800c346: f402 5380 and.w r3, r2, #4096 @ 0x1000
  28328. 800c34a: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  28329. 800c34e: 2300 movs r3, #0
  28330. 800c350: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  28331. 800c354: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  28332. 800c358: 460b mov r3, r1
  28333. 800c35a: 4313 orrs r3, r2
  28334. 800c35c: d051 beq.n 800c402 <HAL_RCCEx_PeriphCLKConfig+0x506>
  28335. {
  28336. switch (PeriphClkInit->Spi123ClockSelection)
  28337. 800c35e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28338. 800c362: 6e1b ldr r3, [r3, #96] @ 0x60
  28339. 800c364: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  28340. 800c368: d035 beq.n 800c3d6 <HAL_RCCEx_PeriphCLKConfig+0x4da>
  28341. 800c36a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  28342. 800c36e: d82e bhi.n 800c3ce <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28343. 800c370: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  28344. 800c374: d031 beq.n 800c3da <HAL_RCCEx_PeriphCLKConfig+0x4de>
  28345. 800c376: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  28346. 800c37a: d828 bhi.n 800c3ce <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28347. 800c37c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  28348. 800c380: d01a beq.n 800c3b8 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  28349. 800c382: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  28350. 800c386: d822 bhi.n 800c3ce <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28351. 800c388: 2b00 cmp r3, #0
  28352. 800c38a: d003 beq.n 800c394 <HAL_RCCEx_PeriphCLKConfig+0x498>
  28353. 800c38c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  28354. 800c390: d007 beq.n 800c3a2 <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  28355. 800c392: e01c b.n 800c3ce <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28356. {
  28357. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  28358. /* Enable SPI Clock output generated form System PLL . */
  28359. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28360. 800c394: 4b4b ldr r3, [pc, #300] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28361. 800c396: 6adb ldr r3, [r3, #44] @ 0x2c
  28362. 800c398: 4a4a ldr r2, [pc, #296] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28363. 800c39a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28364. 800c39e: 62d3 str r3, [r2, #44] @ 0x2c
  28365. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28366. break;
  28367. 800c3a0: e01c b.n 800c3dc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28368. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  28369. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28370. 800c3a2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28371. 800c3a6: 3308 adds r3, #8
  28372. 800c3a8: 2100 movs r1, #0
  28373. 800c3aa: 4618 mov r0, r3
  28374. 800c3ac: f002 f924 bl 800e5f8 <RCCEx_PLL2_Config>
  28375. 800c3b0: 4603 mov r3, r0
  28376. 800c3b2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28377. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28378. break;
  28379. 800c3b6: e011 b.n 800c3dc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28380. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  28381. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28382. 800c3b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28383. 800c3bc: 3328 adds r3, #40 @ 0x28
  28384. 800c3be: 2100 movs r1, #0
  28385. 800c3c0: 4618 mov r0, r3
  28386. 800c3c2: f002 f9cb bl 800e75c <RCCEx_PLL3_Config>
  28387. 800c3c6: 4603 mov r3, r0
  28388. 800c3c8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28389. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28390. break;
  28391. 800c3cc: e006 b.n 800c3dc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28392. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  28393. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28394. break;
  28395. default:
  28396. ret = HAL_ERROR;
  28397. 800c3ce: 2301 movs r3, #1
  28398. 800c3d0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28399. break;
  28400. 800c3d4: e002 b.n 800c3dc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28401. break;
  28402. 800c3d6: bf00 nop
  28403. 800c3d8: e000 b.n 800c3dc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28404. break;
  28405. 800c3da: bf00 nop
  28406. }
  28407. if (ret == HAL_OK)
  28408. 800c3dc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28409. 800c3e0: 2b00 cmp r3, #0
  28410. 800c3e2: d10a bne.n 800c3fa <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  28411. {
  28412. /* Set the source of SPI1/2/3 clock*/
  28413. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  28414. 800c3e4: 4b37 ldr r3, [pc, #220] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28415. 800c3e6: 6d1b ldr r3, [r3, #80] @ 0x50
  28416. 800c3e8: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  28417. 800c3ec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28418. 800c3f0: 6e1b ldr r3, [r3, #96] @ 0x60
  28419. 800c3f2: 4a34 ldr r2, [pc, #208] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28420. 800c3f4: 430b orrs r3, r1
  28421. 800c3f6: 6513 str r3, [r2, #80] @ 0x50
  28422. 800c3f8: e003 b.n 800c402 <HAL_RCCEx_PeriphCLKConfig+0x506>
  28423. }
  28424. else
  28425. {
  28426. /* set overall return value */
  28427. status = ret;
  28428. 800c3fa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28429. 800c3fe: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28430. }
  28431. }
  28432. /*---------------------------- SPI4/5 configuration -------------------------------*/
  28433. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  28434. 800c402: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28435. 800c406: e9d3 2300 ldrd r2, r3, [r3]
  28436. 800c40a: f402 5300 and.w r3, r2, #8192 @ 0x2000
  28437. 800c40e: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  28438. 800c412: 2300 movs r3, #0
  28439. 800c414: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  28440. 800c418: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  28441. 800c41c: 460b mov r3, r1
  28442. 800c41e: 4313 orrs r3, r2
  28443. 800c420: d056 beq.n 800c4d0 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  28444. {
  28445. switch (PeriphClkInit->Spi45ClockSelection)
  28446. 800c422: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28447. 800c426: 6e5b ldr r3, [r3, #100] @ 0x64
  28448. 800c428: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  28449. 800c42c: d033 beq.n 800c496 <HAL_RCCEx_PeriphCLKConfig+0x59a>
  28450. 800c42e: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  28451. 800c432: d82c bhi.n 800c48e <HAL_RCCEx_PeriphCLKConfig+0x592>
  28452. 800c434: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  28453. 800c438: d02f beq.n 800c49a <HAL_RCCEx_PeriphCLKConfig+0x59e>
  28454. 800c43a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  28455. 800c43e: d826 bhi.n 800c48e <HAL_RCCEx_PeriphCLKConfig+0x592>
  28456. 800c440: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  28457. 800c444: d02b beq.n 800c49e <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  28458. 800c446: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  28459. 800c44a: d820 bhi.n 800c48e <HAL_RCCEx_PeriphCLKConfig+0x592>
  28460. 800c44c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  28461. 800c450: d012 beq.n 800c478 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  28462. 800c452: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  28463. 800c456: d81a bhi.n 800c48e <HAL_RCCEx_PeriphCLKConfig+0x592>
  28464. 800c458: 2b00 cmp r3, #0
  28465. 800c45a: d022 beq.n 800c4a2 <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  28466. 800c45c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  28467. 800c460: d115 bne.n 800c48e <HAL_RCCEx_PeriphCLKConfig+0x592>
  28468. /* SPI4/5 clock source configuration done later after clock selection check */
  28469. break;
  28470. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  28471. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  28472. 800c462: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28473. 800c466: 3308 adds r3, #8
  28474. 800c468: 2101 movs r1, #1
  28475. 800c46a: 4618 mov r0, r3
  28476. 800c46c: f002 f8c4 bl 800e5f8 <RCCEx_PLL2_Config>
  28477. 800c470: 4603 mov r3, r0
  28478. 800c472: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28479. /* SPI4/5 clock source configuration done later after clock selection check */
  28480. break;
  28481. 800c476: e015 b.n 800c4a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28482. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  28483. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  28484. 800c478: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28485. 800c47c: 3328 adds r3, #40 @ 0x28
  28486. 800c47e: 2101 movs r1, #1
  28487. 800c480: 4618 mov r0, r3
  28488. 800c482: f002 f96b bl 800e75c <RCCEx_PLL3_Config>
  28489. 800c486: 4603 mov r3, r0
  28490. 800c488: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28491. /* SPI4/5 clock source configuration done later after clock selection check */
  28492. break;
  28493. 800c48c: e00a b.n 800c4a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28494. /* HSE, oscillator is used as source of SPI4/5 clock */
  28495. /* SPI4/5 clock source configuration done later after clock selection check */
  28496. break;
  28497. default:
  28498. ret = HAL_ERROR;
  28499. 800c48e: 2301 movs r3, #1
  28500. 800c490: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28501. break;
  28502. 800c494: e006 b.n 800c4a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28503. break;
  28504. 800c496: bf00 nop
  28505. 800c498: e004 b.n 800c4a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28506. break;
  28507. 800c49a: bf00 nop
  28508. 800c49c: e002 b.n 800c4a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28509. break;
  28510. 800c49e: bf00 nop
  28511. 800c4a0: e000 b.n 800c4a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28512. break;
  28513. 800c4a2: bf00 nop
  28514. }
  28515. if (ret == HAL_OK)
  28516. 800c4a4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28517. 800c4a8: 2b00 cmp r3, #0
  28518. 800c4aa: d10d bne.n 800c4c8 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  28519. {
  28520. /* Set the source of SPI4/5 clock*/
  28521. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  28522. 800c4ac: 4b05 ldr r3, [pc, #20] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28523. 800c4ae: 6d1b ldr r3, [r3, #80] @ 0x50
  28524. 800c4b0: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  28525. 800c4b4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28526. 800c4b8: 6e5b ldr r3, [r3, #100] @ 0x64
  28527. 800c4ba: 4a02 ldr r2, [pc, #8] @ (800c4c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28528. 800c4bc: 430b orrs r3, r1
  28529. 800c4be: 6513 str r3, [r2, #80] @ 0x50
  28530. 800c4c0: e006 b.n 800c4d0 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  28531. 800c4c2: bf00 nop
  28532. 800c4c4: 58024400 .word 0x58024400
  28533. }
  28534. else
  28535. {
  28536. /* set overall return value */
  28537. status = ret;
  28538. 800c4c8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28539. 800c4cc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28540. }
  28541. }
  28542. /*---------------------------- SPI6 configuration -------------------------------*/
  28543. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  28544. 800c4d0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28545. 800c4d4: e9d3 2300 ldrd r2, r3, [r3]
  28546. 800c4d8: f402 4380 and.w r3, r2, #16384 @ 0x4000
  28547. 800c4dc: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  28548. 800c4e0: 2300 movs r3, #0
  28549. 800c4e2: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  28550. 800c4e6: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  28551. 800c4ea: 460b mov r3, r1
  28552. 800c4ec: 4313 orrs r3, r2
  28553. 800c4ee: d055 beq.n 800c59c <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  28554. {
  28555. switch (PeriphClkInit->Spi6ClockSelection)
  28556. 800c4f0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28557. 800c4f4: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  28558. 800c4f8: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  28559. 800c4fc: d033 beq.n 800c566 <HAL_RCCEx_PeriphCLKConfig+0x66a>
  28560. 800c4fe: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  28561. 800c502: d82c bhi.n 800c55e <HAL_RCCEx_PeriphCLKConfig+0x662>
  28562. 800c504: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28563. 800c508: d02f beq.n 800c56a <HAL_RCCEx_PeriphCLKConfig+0x66e>
  28564. 800c50a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28565. 800c50e: d826 bhi.n 800c55e <HAL_RCCEx_PeriphCLKConfig+0x662>
  28566. 800c510: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  28567. 800c514: d02b beq.n 800c56e <HAL_RCCEx_PeriphCLKConfig+0x672>
  28568. 800c516: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  28569. 800c51a: d820 bhi.n 800c55e <HAL_RCCEx_PeriphCLKConfig+0x662>
  28570. 800c51c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  28571. 800c520: d012 beq.n 800c548 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  28572. 800c522: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  28573. 800c526: d81a bhi.n 800c55e <HAL_RCCEx_PeriphCLKConfig+0x662>
  28574. 800c528: 2b00 cmp r3, #0
  28575. 800c52a: d022 beq.n 800c572 <HAL_RCCEx_PeriphCLKConfig+0x676>
  28576. 800c52c: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  28577. 800c530: d115 bne.n 800c55e <HAL_RCCEx_PeriphCLKConfig+0x662>
  28578. /* SPI6 clock source configuration done later after clock selection check */
  28579. break;
  28580. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  28581. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  28582. 800c532: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28583. 800c536: 3308 adds r3, #8
  28584. 800c538: 2101 movs r1, #1
  28585. 800c53a: 4618 mov r0, r3
  28586. 800c53c: f002 f85c bl 800e5f8 <RCCEx_PLL2_Config>
  28587. 800c540: 4603 mov r3, r0
  28588. 800c542: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28589. /* SPI6 clock source configuration done later after clock selection check */
  28590. break;
  28591. 800c546: e015 b.n 800c574 <HAL_RCCEx_PeriphCLKConfig+0x678>
  28592. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  28593. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  28594. 800c548: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28595. 800c54c: 3328 adds r3, #40 @ 0x28
  28596. 800c54e: 2101 movs r1, #1
  28597. 800c550: 4618 mov r0, r3
  28598. 800c552: f002 f903 bl 800e75c <RCCEx_PLL3_Config>
  28599. 800c556: 4603 mov r3, r0
  28600. 800c558: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28601. /* SPI6 clock source configuration done later after clock selection check */
  28602. break;
  28603. 800c55c: e00a b.n 800c574 <HAL_RCCEx_PeriphCLKConfig+0x678>
  28604. /* SPI6 clock source configuration done later after clock selection check */
  28605. break;
  28606. #endif
  28607. default:
  28608. ret = HAL_ERROR;
  28609. 800c55e: 2301 movs r3, #1
  28610. 800c560: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28611. break;
  28612. 800c564: e006 b.n 800c574 <HAL_RCCEx_PeriphCLKConfig+0x678>
  28613. break;
  28614. 800c566: bf00 nop
  28615. 800c568: e004 b.n 800c574 <HAL_RCCEx_PeriphCLKConfig+0x678>
  28616. break;
  28617. 800c56a: bf00 nop
  28618. 800c56c: e002 b.n 800c574 <HAL_RCCEx_PeriphCLKConfig+0x678>
  28619. break;
  28620. 800c56e: bf00 nop
  28621. 800c570: e000 b.n 800c574 <HAL_RCCEx_PeriphCLKConfig+0x678>
  28622. break;
  28623. 800c572: bf00 nop
  28624. }
  28625. if (ret == HAL_OK)
  28626. 800c574: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28627. 800c578: 2b00 cmp r3, #0
  28628. 800c57a: d10b bne.n 800c594 <HAL_RCCEx_PeriphCLKConfig+0x698>
  28629. {
  28630. /* Set the source of SPI6 clock*/
  28631. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  28632. 800c57c: 4ba3 ldr r3, [pc, #652] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28633. 800c57e: 6d9b ldr r3, [r3, #88] @ 0x58
  28634. 800c580: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  28635. 800c584: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28636. 800c588: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  28637. 800c58c: 4a9f ldr r2, [pc, #636] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28638. 800c58e: 430b orrs r3, r1
  28639. 800c590: 6593 str r3, [r2, #88] @ 0x58
  28640. 800c592: e003 b.n 800c59c <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  28641. }
  28642. else
  28643. {
  28644. /* set overall return value */
  28645. status = ret;
  28646. 800c594: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28647. 800c598: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28648. }
  28649. #endif /*DSI*/
  28650. #if defined(FDCAN1) || defined(FDCAN2)
  28651. /*---------------------------- FDCAN configuration -------------------------------*/
  28652. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  28653. 800c59c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28654. 800c5a0: e9d3 2300 ldrd r2, r3, [r3]
  28655. 800c5a4: f402 4300 and.w r3, r2, #32768 @ 0x8000
  28656. 800c5a8: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  28657. 800c5ac: 2300 movs r3, #0
  28658. 800c5ae: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  28659. 800c5b2: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  28660. 800c5b6: 460b mov r3, r1
  28661. 800c5b8: 4313 orrs r3, r2
  28662. 800c5ba: d037 beq.n 800c62c <HAL_RCCEx_PeriphCLKConfig+0x730>
  28663. {
  28664. switch (PeriphClkInit->FdcanClockSelection)
  28665. 800c5bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28666. 800c5c0: 6f1b ldr r3, [r3, #112] @ 0x70
  28667. 800c5c2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  28668. 800c5c6: d00e beq.n 800c5e6 <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  28669. 800c5c8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  28670. 800c5cc: d816 bhi.n 800c5fc <HAL_RCCEx_PeriphCLKConfig+0x700>
  28671. 800c5ce: 2b00 cmp r3, #0
  28672. 800c5d0: d018 beq.n 800c604 <HAL_RCCEx_PeriphCLKConfig+0x708>
  28673. 800c5d2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  28674. 800c5d6: d111 bne.n 800c5fc <HAL_RCCEx_PeriphCLKConfig+0x700>
  28675. {
  28676. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  28677. /* Enable FDCAN Clock output generated form System PLL . */
  28678. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28679. 800c5d8: 4b8c ldr r3, [pc, #560] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28680. 800c5da: 6adb ldr r3, [r3, #44] @ 0x2c
  28681. 800c5dc: 4a8b ldr r2, [pc, #556] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28682. 800c5de: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28683. 800c5e2: 62d3 str r3, [r2, #44] @ 0x2c
  28684. /* FDCAN clock source configuration done later after clock selection check */
  28685. break;
  28686. 800c5e4: e00f b.n 800c606 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  28687. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  28688. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  28689. 800c5e6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28690. 800c5ea: 3308 adds r3, #8
  28691. 800c5ec: 2101 movs r1, #1
  28692. 800c5ee: 4618 mov r0, r3
  28693. 800c5f0: f002 f802 bl 800e5f8 <RCCEx_PLL2_Config>
  28694. 800c5f4: 4603 mov r3, r0
  28695. 800c5f6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28696. /* FDCAN clock source configuration done later after clock selection check */
  28697. break;
  28698. 800c5fa: e004 b.n 800c606 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  28699. /* HSE is used as clock source for FDCAN*/
  28700. /* FDCAN clock source configuration done later after clock selection check */
  28701. break;
  28702. default:
  28703. ret = HAL_ERROR;
  28704. 800c5fc: 2301 movs r3, #1
  28705. 800c5fe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28706. break;
  28707. 800c602: e000 b.n 800c606 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  28708. break;
  28709. 800c604: bf00 nop
  28710. }
  28711. if (ret == HAL_OK)
  28712. 800c606: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28713. 800c60a: 2b00 cmp r3, #0
  28714. 800c60c: d10a bne.n 800c624 <HAL_RCCEx_PeriphCLKConfig+0x728>
  28715. {
  28716. /* Set the source of FDCAN clock*/
  28717. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  28718. 800c60e: 4b7f ldr r3, [pc, #508] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28719. 800c610: 6d1b ldr r3, [r3, #80] @ 0x50
  28720. 800c612: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  28721. 800c616: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28722. 800c61a: 6f1b ldr r3, [r3, #112] @ 0x70
  28723. 800c61c: 4a7b ldr r2, [pc, #492] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28724. 800c61e: 430b orrs r3, r1
  28725. 800c620: 6513 str r3, [r2, #80] @ 0x50
  28726. 800c622: e003 b.n 800c62c <HAL_RCCEx_PeriphCLKConfig+0x730>
  28727. }
  28728. else
  28729. {
  28730. /* set overall return value */
  28731. status = ret;
  28732. 800c624: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28733. 800c628: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28734. }
  28735. }
  28736. #endif /*FDCAN1 || FDCAN2*/
  28737. /*---------------------------- FMC configuration -------------------------------*/
  28738. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  28739. 800c62c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28740. 800c630: e9d3 2300 ldrd r2, r3, [r3]
  28741. 800c634: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  28742. 800c638: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  28743. 800c63c: 2300 movs r3, #0
  28744. 800c63e: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  28745. 800c642: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  28746. 800c646: 460b mov r3, r1
  28747. 800c648: 4313 orrs r3, r2
  28748. 800c64a: d039 beq.n 800c6c0 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  28749. {
  28750. switch (PeriphClkInit->FmcClockSelection)
  28751. 800c64c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28752. 800c650: 6c9b ldr r3, [r3, #72] @ 0x48
  28753. 800c652: 2b03 cmp r3, #3
  28754. 800c654: d81c bhi.n 800c690 <HAL_RCCEx_PeriphCLKConfig+0x794>
  28755. 800c656: a201 add r2, pc, #4 @ (adr r2, 800c65c <HAL_RCCEx_PeriphCLKConfig+0x760>)
  28756. 800c658: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  28757. 800c65c: 0800c699 .word 0x0800c699
  28758. 800c660: 0800c66d .word 0x0800c66d
  28759. 800c664: 0800c67b .word 0x0800c67b
  28760. 800c668: 0800c699 .word 0x0800c699
  28761. {
  28762. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  28763. /* Enable FMC Clock output generated form System PLL . */
  28764. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28765. 800c66c: 4b67 ldr r3, [pc, #412] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28766. 800c66e: 6adb ldr r3, [r3, #44] @ 0x2c
  28767. 800c670: 4a66 ldr r2, [pc, #408] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28768. 800c672: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28769. 800c676: 62d3 str r3, [r2, #44] @ 0x2c
  28770. /* FMC clock source configuration done later after clock selection check */
  28771. break;
  28772. 800c678: e00f b.n 800c69a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  28773. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  28774. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  28775. 800c67a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28776. 800c67e: 3308 adds r3, #8
  28777. 800c680: 2102 movs r1, #2
  28778. 800c682: 4618 mov r0, r3
  28779. 800c684: f001 ffb8 bl 800e5f8 <RCCEx_PLL2_Config>
  28780. 800c688: 4603 mov r3, r0
  28781. 800c68a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28782. /* FMC clock source configuration done later after clock selection check */
  28783. break;
  28784. 800c68e: e004 b.n 800c69a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  28785. case RCC_FMCCLKSOURCE_HCLK:
  28786. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  28787. break;
  28788. default:
  28789. ret = HAL_ERROR;
  28790. 800c690: 2301 movs r3, #1
  28791. 800c692: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28792. break;
  28793. 800c696: e000 b.n 800c69a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  28794. break;
  28795. 800c698: bf00 nop
  28796. }
  28797. if (ret == HAL_OK)
  28798. 800c69a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28799. 800c69e: 2b00 cmp r3, #0
  28800. 800c6a0: d10a bne.n 800c6b8 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  28801. {
  28802. /* Set the source of FMC clock*/
  28803. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  28804. 800c6a2: 4b5a ldr r3, [pc, #360] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28805. 800c6a4: 6cdb ldr r3, [r3, #76] @ 0x4c
  28806. 800c6a6: f023 0103 bic.w r1, r3, #3
  28807. 800c6aa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28808. 800c6ae: 6c9b ldr r3, [r3, #72] @ 0x48
  28809. 800c6b0: 4a56 ldr r2, [pc, #344] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28810. 800c6b2: 430b orrs r3, r1
  28811. 800c6b4: 64d3 str r3, [r2, #76] @ 0x4c
  28812. 800c6b6: e003 b.n 800c6c0 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  28813. }
  28814. else
  28815. {
  28816. /* set overall return value */
  28817. status = ret;
  28818. 800c6b8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28819. 800c6bc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28820. }
  28821. }
  28822. /*---------------------------- RTC configuration -------------------------------*/
  28823. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  28824. 800c6c0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28825. 800c6c4: e9d3 2300 ldrd r2, r3, [r3]
  28826. 800c6c8: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  28827. 800c6cc: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  28828. 800c6d0: 2300 movs r3, #0
  28829. 800c6d2: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  28830. 800c6d6: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  28831. 800c6da: 460b mov r3, r1
  28832. 800c6dc: 4313 orrs r3, r2
  28833. 800c6de: f000 809f beq.w 800c820 <HAL_RCCEx_PeriphCLKConfig+0x924>
  28834. {
  28835. /* check for RTC Parameters used to output RTCCLK */
  28836. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  28837. /* Enable write access to Backup domain */
  28838. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  28839. 800c6e2: 4b4b ldr r3, [pc, #300] @ (800c810 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  28840. 800c6e4: 681b ldr r3, [r3, #0]
  28841. 800c6e6: 4a4a ldr r2, [pc, #296] @ (800c810 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  28842. 800c6e8: f443 7380 orr.w r3, r3, #256 @ 0x100
  28843. 800c6ec: 6013 str r3, [r2, #0]
  28844. /* Wait for Backup domain Write protection disable */
  28845. tickstart = HAL_GetTick();
  28846. 800c6ee: f7f8 fea5 bl 800543c <HAL_GetTick>
  28847. 800c6f2: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  28848. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  28849. 800c6f6: e00b b.n 800c710 <HAL_RCCEx_PeriphCLKConfig+0x814>
  28850. {
  28851. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  28852. 800c6f8: f7f8 fea0 bl 800543c <HAL_GetTick>
  28853. 800c6fc: 4602 mov r2, r0
  28854. 800c6fe: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  28855. 800c702: 1ad3 subs r3, r2, r3
  28856. 800c704: 2b64 cmp r3, #100 @ 0x64
  28857. 800c706: d903 bls.n 800c710 <HAL_RCCEx_PeriphCLKConfig+0x814>
  28858. {
  28859. ret = HAL_TIMEOUT;
  28860. 800c708: 2303 movs r3, #3
  28861. 800c70a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28862. break;
  28863. 800c70e: e005 b.n 800c71c <HAL_RCCEx_PeriphCLKConfig+0x820>
  28864. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  28865. 800c710: 4b3f ldr r3, [pc, #252] @ (800c810 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  28866. 800c712: 681b ldr r3, [r3, #0]
  28867. 800c714: f403 7380 and.w r3, r3, #256 @ 0x100
  28868. 800c718: 2b00 cmp r3, #0
  28869. 800c71a: d0ed beq.n 800c6f8 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  28870. }
  28871. }
  28872. if (ret == HAL_OK)
  28873. 800c71c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28874. 800c720: 2b00 cmp r3, #0
  28875. 800c722: d179 bne.n 800c818 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  28876. {
  28877. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  28878. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  28879. 800c724: 4b39 ldr r3, [pc, #228] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28880. 800c726: 6f1a ldr r2, [r3, #112] @ 0x70
  28881. 800c728: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28882. 800c72c: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  28883. 800c730: 4053 eors r3, r2
  28884. 800c732: f403 7340 and.w r3, r3, #768 @ 0x300
  28885. 800c736: 2b00 cmp r3, #0
  28886. 800c738: d015 beq.n 800c766 <HAL_RCCEx_PeriphCLKConfig+0x86a>
  28887. {
  28888. /* Store the content of BDCR register before the reset of Backup Domain */
  28889. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  28890. 800c73a: 4b34 ldr r3, [pc, #208] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28891. 800c73c: 6f1b ldr r3, [r3, #112] @ 0x70
  28892. 800c73e: f423 7340 bic.w r3, r3, #768 @ 0x300
  28893. 800c742: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  28894. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  28895. __HAL_RCC_BACKUPRESET_FORCE();
  28896. 800c746: 4b31 ldr r3, [pc, #196] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28897. 800c748: 6f1b ldr r3, [r3, #112] @ 0x70
  28898. 800c74a: 4a30 ldr r2, [pc, #192] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28899. 800c74c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  28900. 800c750: 6713 str r3, [r2, #112] @ 0x70
  28901. __HAL_RCC_BACKUPRESET_RELEASE();
  28902. 800c752: 4b2e ldr r3, [pc, #184] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28903. 800c754: 6f1b ldr r3, [r3, #112] @ 0x70
  28904. 800c756: 4a2d ldr r2, [pc, #180] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28905. 800c758: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  28906. 800c75c: 6713 str r3, [r2, #112] @ 0x70
  28907. /* Restore the Content of BDCR register */
  28908. RCC->BDCR = tmpreg;
  28909. 800c75e: 4a2b ldr r2, [pc, #172] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28910. 800c760: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  28911. 800c764: 6713 str r3, [r2, #112] @ 0x70
  28912. }
  28913. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  28914. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  28915. 800c766: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28916. 800c76a: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  28917. 800c76e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  28918. 800c772: d118 bne.n 800c7a6 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  28919. {
  28920. /* Get Start Tick*/
  28921. tickstart = HAL_GetTick();
  28922. 800c774: f7f8 fe62 bl 800543c <HAL_GetTick>
  28923. 800c778: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  28924. /* Wait till LSE is ready */
  28925. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  28926. 800c77c: e00d b.n 800c79a <HAL_RCCEx_PeriphCLKConfig+0x89e>
  28927. {
  28928. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  28929. 800c77e: f7f8 fe5d bl 800543c <HAL_GetTick>
  28930. 800c782: 4602 mov r2, r0
  28931. 800c784: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  28932. 800c788: 1ad2 subs r2, r2, r3
  28933. 800c78a: f241 3388 movw r3, #5000 @ 0x1388
  28934. 800c78e: 429a cmp r2, r3
  28935. 800c790: d903 bls.n 800c79a <HAL_RCCEx_PeriphCLKConfig+0x89e>
  28936. {
  28937. ret = HAL_TIMEOUT;
  28938. 800c792: 2303 movs r3, #3
  28939. 800c794: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28940. break;
  28941. 800c798: e005 b.n 800c7a6 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  28942. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  28943. 800c79a: 4b1c ldr r3, [pc, #112] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28944. 800c79c: 6f1b ldr r3, [r3, #112] @ 0x70
  28945. 800c79e: f003 0302 and.w r3, r3, #2
  28946. 800c7a2: 2b00 cmp r3, #0
  28947. 800c7a4: d0eb beq.n 800c77e <HAL_RCCEx_PeriphCLKConfig+0x882>
  28948. }
  28949. }
  28950. }
  28951. if (ret == HAL_OK)
  28952. 800c7a6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28953. 800c7aa: 2b00 cmp r3, #0
  28954. 800c7ac: d129 bne.n 800c802 <HAL_RCCEx_PeriphCLKConfig+0x906>
  28955. {
  28956. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  28957. 800c7ae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28958. 800c7b2: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  28959. 800c7b6: f403 7340 and.w r3, r3, #768 @ 0x300
  28960. 800c7ba: f5b3 7f40 cmp.w r3, #768 @ 0x300
  28961. 800c7be: d10e bne.n 800c7de <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  28962. 800c7c0: 4b12 ldr r3, [pc, #72] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28963. 800c7c2: 691b ldr r3, [r3, #16]
  28964. 800c7c4: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  28965. 800c7c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28966. 800c7cc: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  28967. 800c7d0: 091a lsrs r2, r3, #4
  28968. 800c7d2: 4b10 ldr r3, [pc, #64] @ (800c814 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  28969. 800c7d4: 4013 ands r3, r2
  28970. 800c7d6: 4a0d ldr r2, [pc, #52] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28971. 800c7d8: 430b orrs r3, r1
  28972. 800c7da: 6113 str r3, [r2, #16]
  28973. 800c7dc: e005 b.n 800c7ea <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  28974. 800c7de: 4b0b ldr r3, [pc, #44] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28975. 800c7e0: 691b ldr r3, [r3, #16]
  28976. 800c7e2: 4a0a ldr r2, [pc, #40] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28977. 800c7e4: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  28978. 800c7e8: 6113 str r3, [r2, #16]
  28979. 800c7ea: 4b08 ldr r3, [pc, #32] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28980. 800c7ec: 6f19 ldr r1, [r3, #112] @ 0x70
  28981. 800c7ee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28982. 800c7f2: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  28983. 800c7f6: f3c3 030b ubfx r3, r3, #0, #12
  28984. 800c7fa: 4a04 ldr r2, [pc, #16] @ (800c80c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  28985. 800c7fc: 430b orrs r3, r1
  28986. 800c7fe: 6713 str r3, [r2, #112] @ 0x70
  28987. 800c800: e00e b.n 800c820 <HAL_RCCEx_PeriphCLKConfig+0x924>
  28988. }
  28989. else
  28990. {
  28991. /* set overall return value */
  28992. status = ret;
  28993. 800c802: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28994. 800c806: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28995. 800c80a: e009 b.n 800c820 <HAL_RCCEx_PeriphCLKConfig+0x924>
  28996. 800c80c: 58024400 .word 0x58024400
  28997. 800c810: 58024800 .word 0x58024800
  28998. 800c814: 00ffffcf .word 0x00ffffcf
  28999. }
  29000. }
  29001. else
  29002. {
  29003. /* set overall return value */
  29004. status = ret;
  29005. 800c818: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29006. 800c81c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29007. }
  29008. }
  29009. /*-------------------------- USART1/6 configuration --------------------------*/
  29010. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  29011. 800c820: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29012. 800c824: e9d3 2300 ldrd r2, r3, [r3]
  29013. 800c828: f002 0301 and.w r3, r2, #1
  29014. 800c82c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  29015. 800c830: 2300 movs r3, #0
  29016. 800c832: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  29017. 800c836: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  29018. 800c83a: 460b mov r3, r1
  29019. 800c83c: 4313 orrs r3, r2
  29020. 800c83e: f000 8089 beq.w 800c954 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  29021. {
  29022. switch (PeriphClkInit->Usart16ClockSelection)
  29023. 800c842: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29024. 800c846: 6fdb ldr r3, [r3, #124] @ 0x7c
  29025. 800c848: 2b28 cmp r3, #40 @ 0x28
  29026. 800c84a: d86b bhi.n 800c924 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  29027. 800c84c: a201 add r2, pc, #4 @ (adr r2, 800c854 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  29028. 800c84e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29029. 800c852: bf00 nop
  29030. 800c854: 0800c92d .word 0x0800c92d
  29031. 800c858: 0800c925 .word 0x0800c925
  29032. 800c85c: 0800c925 .word 0x0800c925
  29033. 800c860: 0800c925 .word 0x0800c925
  29034. 800c864: 0800c925 .word 0x0800c925
  29035. 800c868: 0800c925 .word 0x0800c925
  29036. 800c86c: 0800c925 .word 0x0800c925
  29037. 800c870: 0800c925 .word 0x0800c925
  29038. 800c874: 0800c8f9 .word 0x0800c8f9
  29039. 800c878: 0800c925 .word 0x0800c925
  29040. 800c87c: 0800c925 .word 0x0800c925
  29041. 800c880: 0800c925 .word 0x0800c925
  29042. 800c884: 0800c925 .word 0x0800c925
  29043. 800c888: 0800c925 .word 0x0800c925
  29044. 800c88c: 0800c925 .word 0x0800c925
  29045. 800c890: 0800c925 .word 0x0800c925
  29046. 800c894: 0800c90f .word 0x0800c90f
  29047. 800c898: 0800c925 .word 0x0800c925
  29048. 800c89c: 0800c925 .word 0x0800c925
  29049. 800c8a0: 0800c925 .word 0x0800c925
  29050. 800c8a4: 0800c925 .word 0x0800c925
  29051. 800c8a8: 0800c925 .word 0x0800c925
  29052. 800c8ac: 0800c925 .word 0x0800c925
  29053. 800c8b0: 0800c925 .word 0x0800c925
  29054. 800c8b4: 0800c92d .word 0x0800c92d
  29055. 800c8b8: 0800c925 .word 0x0800c925
  29056. 800c8bc: 0800c925 .word 0x0800c925
  29057. 800c8c0: 0800c925 .word 0x0800c925
  29058. 800c8c4: 0800c925 .word 0x0800c925
  29059. 800c8c8: 0800c925 .word 0x0800c925
  29060. 800c8cc: 0800c925 .word 0x0800c925
  29061. 800c8d0: 0800c925 .word 0x0800c925
  29062. 800c8d4: 0800c92d .word 0x0800c92d
  29063. 800c8d8: 0800c925 .word 0x0800c925
  29064. 800c8dc: 0800c925 .word 0x0800c925
  29065. 800c8e0: 0800c925 .word 0x0800c925
  29066. 800c8e4: 0800c925 .word 0x0800c925
  29067. 800c8e8: 0800c925 .word 0x0800c925
  29068. 800c8ec: 0800c925 .word 0x0800c925
  29069. 800c8f0: 0800c925 .word 0x0800c925
  29070. 800c8f4: 0800c92d .word 0x0800c92d
  29071. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  29072. /* USART1/6 clock source configuration done later after clock selection check */
  29073. break;
  29074. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  29075. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29076. 800c8f8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29077. 800c8fc: 3308 adds r3, #8
  29078. 800c8fe: 2101 movs r1, #1
  29079. 800c900: 4618 mov r0, r3
  29080. 800c902: f001 fe79 bl 800e5f8 <RCCEx_PLL2_Config>
  29081. 800c906: 4603 mov r3, r0
  29082. 800c908: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29083. /* USART1/6 clock source configuration done later after clock selection check */
  29084. break;
  29085. 800c90c: e00f b.n 800c92e <HAL_RCCEx_PeriphCLKConfig+0xa32>
  29086. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  29087. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29088. 800c90e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29089. 800c912: 3328 adds r3, #40 @ 0x28
  29090. 800c914: 2101 movs r1, #1
  29091. 800c916: 4618 mov r0, r3
  29092. 800c918: f001 ff20 bl 800e75c <RCCEx_PLL3_Config>
  29093. 800c91c: 4603 mov r3, r0
  29094. 800c91e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29095. /* USART1/6 clock source configuration done later after clock selection check */
  29096. break;
  29097. 800c922: e004 b.n 800c92e <HAL_RCCEx_PeriphCLKConfig+0xa32>
  29098. /* LSE, oscillator is used as source of USART1/6 clock */
  29099. /* USART1/6 clock source configuration done later after clock selection check */
  29100. break;
  29101. default:
  29102. ret = HAL_ERROR;
  29103. 800c924: 2301 movs r3, #1
  29104. 800c926: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29105. break;
  29106. 800c92a: e000 b.n 800c92e <HAL_RCCEx_PeriphCLKConfig+0xa32>
  29107. break;
  29108. 800c92c: bf00 nop
  29109. }
  29110. if (ret == HAL_OK)
  29111. 800c92e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29112. 800c932: 2b00 cmp r3, #0
  29113. 800c934: d10a bne.n 800c94c <HAL_RCCEx_PeriphCLKConfig+0xa50>
  29114. {
  29115. /* Set the source of USART1/6 clock */
  29116. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  29117. 800c936: 4bbf ldr r3, [pc, #764] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29118. 800c938: 6d5b ldr r3, [r3, #84] @ 0x54
  29119. 800c93a: f023 0138 bic.w r1, r3, #56 @ 0x38
  29120. 800c93e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29121. 800c942: 6fdb ldr r3, [r3, #124] @ 0x7c
  29122. 800c944: 4abb ldr r2, [pc, #748] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29123. 800c946: 430b orrs r3, r1
  29124. 800c948: 6553 str r3, [r2, #84] @ 0x54
  29125. 800c94a: e003 b.n 800c954 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  29126. }
  29127. else
  29128. {
  29129. /* set overall return value */
  29130. status = ret;
  29131. 800c94c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29132. 800c950: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29133. }
  29134. }
  29135. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  29136. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  29137. 800c954: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29138. 800c958: e9d3 2300 ldrd r2, r3, [r3]
  29139. 800c95c: f002 0302 and.w r3, r2, #2
  29140. 800c960: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  29141. 800c964: 2300 movs r3, #0
  29142. 800c966: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  29143. 800c96a: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  29144. 800c96e: 460b mov r3, r1
  29145. 800c970: 4313 orrs r3, r2
  29146. 800c972: d041 beq.n 800c9f8 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  29147. {
  29148. switch (PeriphClkInit->Usart234578ClockSelection)
  29149. 800c974: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29150. 800c978: 6f9b ldr r3, [r3, #120] @ 0x78
  29151. 800c97a: 2b05 cmp r3, #5
  29152. 800c97c: d824 bhi.n 800c9c8 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  29153. 800c97e: a201 add r2, pc, #4 @ (adr r2, 800c984 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  29154. 800c980: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29155. 800c984: 0800c9d1 .word 0x0800c9d1
  29156. 800c988: 0800c99d .word 0x0800c99d
  29157. 800c98c: 0800c9b3 .word 0x0800c9b3
  29158. 800c990: 0800c9d1 .word 0x0800c9d1
  29159. 800c994: 0800c9d1 .word 0x0800c9d1
  29160. 800c998: 0800c9d1 .word 0x0800c9d1
  29161. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  29162. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29163. break;
  29164. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  29165. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29166. 800c99c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29167. 800c9a0: 3308 adds r3, #8
  29168. 800c9a2: 2101 movs r1, #1
  29169. 800c9a4: 4618 mov r0, r3
  29170. 800c9a6: f001 fe27 bl 800e5f8 <RCCEx_PLL2_Config>
  29171. 800c9aa: 4603 mov r3, r0
  29172. 800c9ac: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29173. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29174. break;
  29175. 800c9b0: e00f b.n 800c9d2 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  29176. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  29177. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29178. 800c9b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29179. 800c9b6: 3328 adds r3, #40 @ 0x28
  29180. 800c9b8: 2101 movs r1, #1
  29181. 800c9ba: 4618 mov r0, r3
  29182. 800c9bc: f001 fece bl 800e75c <RCCEx_PLL3_Config>
  29183. 800c9c0: 4603 mov r3, r0
  29184. 800c9c2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29185. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29186. break;
  29187. 800c9c6: e004 b.n 800c9d2 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  29188. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  29189. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29190. break;
  29191. default:
  29192. ret = HAL_ERROR;
  29193. 800c9c8: 2301 movs r3, #1
  29194. 800c9ca: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29195. break;
  29196. 800c9ce: e000 b.n 800c9d2 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  29197. break;
  29198. 800c9d0: bf00 nop
  29199. }
  29200. if (ret == HAL_OK)
  29201. 800c9d2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29202. 800c9d6: 2b00 cmp r3, #0
  29203. 800c9d8: d10a bne.n 800c9f0 <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  29204. {
  29205. /* Set the source of USART2/3/4/5/7/8 clock */
  29206. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  29207. 800c9da: 4b96 ldr r3, [pc, #600] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29208. 800c9dc: 6d5b ldr r3, [r3, #84] @ 0x54
  29209. 800c9de: f023 0107 bic.w r1, r3, #7
  29210. 800c9e2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29211. 800c9e6: 6f9b ldr r3, [r3, #120] @ 0x78
  29212. 800c9e8: 4a92 ldr r2, [pc, #584] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29213. 800c9ea: 430b orrs r3, r1
  29214. 800c9ec: 6553 str r3, [r2, #84] @ 0x54
  29215. 800c9ee: e003 b.n 800c9f8 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  29216. }
  29217. else
  29218. {
  29219. /* set overall return value */
  29220. status = ret;
  29221. 800c9f0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29222. 800c9f4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29223. }
  29224. }
  29225. /*-------------------------- LPUART1 Configuration -------------------------*/
  29226. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  29227. 800c9f8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29228. 800c9fc: e9d3 2300 ldrd r2, r3, [r3]
  29229. 800ca00: f002 0304 and.w r3, r2, #4
  29230. 800ca04: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  29231. 800ca08: 2300 movs r3, #0
  29232. 800ca0a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  29233. 800ca0e: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  29234. 800ca12: 460b mov r3, r1
  29235. 800ca14: 4313 orrs r3, r2
  29236. 800ca16: d044 beq.n 800caa2 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  29237. {
  29238. switch (PeriphClkInit->Lpuart1ClockSelection)
  29239. 800ca18: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29240. 800ca1c: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  29241. 800ca20: 2b05 cmp r3, #5
  29242. 800ca22: d825 bhi.n 800ca70 <HAL_RCCEx_PeriphCLKConfig+0xb74>
  29243. 800ca24: a201 add r2, pc, #4 @ (adr r2, 800ca2c <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  29244. 800ca26: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29245. 800ca2a: bf00 nop
  29246. 800ca2c: 0800ca79 .word 0x0800ca79
  29247. 800ca30: 0800ca45 .word 0x0800ca45
  29248. 800ca34: 0800ca5b .word 0x0800ca5b
  29249. 800ca38: 0800ca79 .word 0x0800ca79
  29250. 800ca3c: 0800ca79 .word 0x0800ca79
  29251. 800ca40: 0800ca79 .word 0x0800ca79
  29252. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  29253. /* LPUART1 clock source configuration done later after clock selection check */
  29254. break;
  29255. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  29256. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29257. 800ca44: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29258. 800ca48: 3308 adds r3, #8
  29259. 800ca4a: 2101 movs r1, #1
  29260. 800ca4c: 4618 mov r0, r3
  29261. 800ca4e: f001 fdd3 bl 800e5f8 <RCCEx_PLL2_Config>
  29262. 800ca52: 4603 mov r3, r0
  29263. 800ca54: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29264. /* LPUART1 clock source configuration done later after clock selection check */
  29265. break;
  29266. 800ca58: e00f b.n 800ca7a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  29267. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  29268. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29269. 800ca5a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29270. 800ca5e: 3328 adds r3, #40 @ 0x28
  29271. 800ca60: 2101 movs r1, #1
  29272. 800ca62: 4618 mov r0, r3
  29273. 800ca64: f001 fe7a bl 800e75c <RCCEx_PLL3_Config>
  29274. 800ca68: 4603 mov r3, r0
  29275. 800ca6a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29276. /* LPUART1 clock source configuration done later after clock selection check */
  29277. break;
  29278. 800ca6e: e004 b.n 800ca7a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  29279. /* LSE, oscillator is used as source of LPUART1 clock */
  29280. /* LPUART1 clock source configuration done later after clock selection check */
  29281. break;
  29282. default:
  29283. ret = HAL_ERROR;
  29284. 800ca70: 2301 movs r3, #1
  29285. 800ca72: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29286. break;
  29287. 800ca76: e000 b.n 800ca7a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  29288. break;
  29289. 800ca78: bf00 nop
  29290. }
  29291. if (ret == HAL_OK)
  29292. 800ca7a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29293. 800ca7e: 2b00 cmp r3, #0
  29294. 800ca80: d10b bne.n 800ca9a <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  29295. {
  29296. /* Set the source of LPUART1 clock */
  29297. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  29298. 800ca82: 4b6c ldr r3, [pc, #432] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29299. 800ca84: 6d9b ldr r3, [r3, #88] @ 0x58
  29300. 800ca86: f023 0107 bic.w r1, r3, #7
  29301. 800ca8a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29302. 800ca8e: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  29303. 800ca92: 4a68 ldr r2, [pc, #416] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29304. 800ca94: 430b orrs r3, r1
  29305. 800ca96: 6593 str r3, [r2, #88] @ 0x58
  29306. 800ca98: e003 b.n 800caa2 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  29307. }
  29308. else
  29309. {
  29310. /* set overall return value */
  29311. status = ret;
  29312. 800ca9a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29313. 800ca9e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29314. }
  29315. }
  29316. /*---------------------------- LPTIM1 configuration -------------------------------*/
  29317. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  29318. 800caa2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29319. 800caa6: e9d3 2300 ldrd r2, r3, [r3]
  29320. 800caaa: f002 0320 and.w r3, r2, #32
  29321. 800caae: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  29322. 800cab2: 2300 movs r3, #0
  29323. 800cab4: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  29324. 800cab8: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  29325. 800cabc: 460b mov r3, r1
  29326. 800cabe: 4313 orrs r3, r2
  29327. 800cac0: d055 beq.n 800cb6e <HAL_RCCEx_PeriphCLKConfig+0xc72>
  29328. {
  29329. switch (PeriphClkInit->Lptim1ClockSelection)
  29330. 800cac2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29331. 800cac6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29332. 800caca: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29333. 800cace: d033 beq.n 800cb38 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  29334. 800cad0: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29335. 800cad4: d82c bhi.n 800cb30 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29336. 800cad6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29337. 800cada: d02f beq.n 800cb3c <HAL_RCCEx_PeriphCLKConfig+0xc40>
  29338. 800cadc: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29339. 800cae0: d826 bhi.n 800cb30 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29340. 800cae2: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29341. 800cae6: d02b beq.n 800cb40 <HAL_RCCEx_PeriphCLKConfig+0xc44>
  29342. 800cae8: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29343. 800caec: d820 bhi.n 800cb30 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29344. 800caee: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29345. 800caf2: d012 beq.n 800cb1a <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  29346. 800caf4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29347. 800caf8: d81a bhi.n 800cb30 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29348. 800cafa: 2b00 cmp r3, #0
  29349. 800cafc: d022 beq.n 800cb44 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  29350. 800cafe: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  29351. 800cb02: d115 bne.n 800cb30 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29352. /* LPTIM1 clock source configuration done later after clock selection check */
  29353. break;
  29354. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  29355. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29356. 800cb04: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29357. 800cb08: 3308 adds r3, #8
  29358. 800cb0a: 2100 movs r1, #0
  29359. 800cb0c: 4618 mov r0, r3
  29360. 800cb0e: f001 fd73 bl 800e5f8 <RCCEx_PLL2_Config>
  29361. 800cb12: 4603 mov r3, r0
  29362. 800cb14: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29363. /* LPTIM1 clock source configuration done later after clock selection check */
  29364. break;
  29365. 800cb18: e015 b.n 800cb46 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29366. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  29367. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29368. 800cb1a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29369. 800cb1e: 3328 adds r3, #40 @ 0x28
  29370. 800cb20: 2102 movs r1, #2
  29371. 800cb22: 4618 mov r0, r3
  29372. 800cb24: f001 fe1a bl 800e75c <RCCEx_PLL3_Config>
  29373. 800cb28: 4603 mov r3, r0
  29374. 800cb2a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29375. /* LPTIM1 clock source configuration done later after clock selection check */
  29376. break;
  29377. 800cb2e: e00a b.n 800cb46 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29378. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  29379. /* LPTIM1 clock source configuration done later after clock selection check */
  29380. break;
  29381. default:
  29382. ret = HAL_ERROR;
  29383. 800cb30: 2301 movs r3, #1
  29384. 800cb32: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29385. break;
  29386. 800cb36: e006 b.n 800cb46 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29387. break;
  29388. 800cb38: bf00 nop
  29389. 800cb3a: e004 b.n 800cb46 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29390. break;
  29391. 800cb3c: bf00 nop
  29392. 800cb3e: e002 b.n 800cb46 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29393. break;
  29394. 800cb40: bf00 nop
  29395. 800cb42: e000 b.n 800cb46 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29396. break;
  29397. 800cb44: bf00 nop
  29398. }
  29399. if (ret == HAL_OK)
  29400. 800cb46: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29401. 800cb4a: 2b00 cmp r3, #0
  29402. 800cb4c: d10b bne.n 800cb66 <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  29403. {
  29404. /* Set the source of LPTIM1 clock*/
  29405. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  29406. 800cb4e: 4b39 ldr r3, [pc, #228] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29407. 800cb50: 6d5b ldr r3, [r3, #84] @ 0x54
  29408. 800cb52: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  29409. 800cb56: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29410. 800cb5a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29411. 800cb5e: 4a35 ldr r2, [pc, #212] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29412. 800cb60: 430b orrs r3, r1
  29413. 800cb62: 6553 str r3, [r2, #84] @ 0x54
  29414. 800cb64: e003 b.n 800cb6e <HAL_RCCEx_PeriphCLKConfig+0xc72>
  29415. }
  29416. else
  29417. {
  29418. /* set overall return value */
  29419. status = ret;
  29420. 800cb66: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29421. 800cb6a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29422. }
  29423. }
  29424. /*---------------------------- LPTIM2 configuration -------------------------------*/
  29425. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  29426. 800cb6e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29427. 800cb72: e9d3 2300 ldrd r2, r3, [r3]
  29428. 800cb76: f002 0340 and.w r3, r2, #64 @ 0x40
  29429. 800cb7a: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  29430. 800cb7e: 2300 movs r3, #0
  29431. 800cb80: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  29432. 800cb84: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  29433. 800cb88: 460b mov r3, r1
  29434. 800cb8a: 4313 orrs r3, r2
  29435. 800cb8c: d058 beq.n 800cc40 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  29436. {
  29437. switch (PeriphClkInit->Lptim2ClockSelection)
  29438. 800cb8e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29439. 800cb92: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  29440. 800cb96: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  29441. 800cb9a: d033 beq.n 800cc04 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  29442. 800cb9c: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  29443. 800cba0: d82c bhi.n 800cbfc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29444. 800cba2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29445. 800cba6: d02f beq.n 800cc08 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  29446. 800cba8: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29447. 800cbac: d826 bhi.n 800cbfc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29448. 800cbae: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  29449. 800cbb2: d02b beq.n 800cc0c <HAL_RCCEx_PeriphCLKConfig+0xd10>
  29450. 800cbb4: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  29451. 800cbb8: d820 bhi.n 800cbfc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29452. 800cbba: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  29453. 800cbbe: d012 beq.n 800cbe6 <HAL_RCCEx_PeriphCLKConfig+0xcea>
  29454. 800cbc0: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  29455. 800cbc4: d81a bhi.n 800cbfc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29456. 800cbc6: 2b00 cmp r3, #0
  29457. 800cbc8: d022 beq.n 800cc10 <HAL_RCCEx_PeriphCLKConfig+0xd14>
  29458. 800cbca: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  29459. 800cbce: d115 bne.n 800cbfc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29460. /* LPTIM2 clock source configuration done later after clock selection check */
  29461. break;
  29462. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  29463. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29464. 800cbd0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29465. 800cbd4: 3308 adds r3, #8
  29466. 800cbd6: 2100 movs r1, #0
  29467. 800cbd8: 4618 mov r0, r3
  29468. 800cbda: f001 fd0d bl 800e5f8 <RCCEx_PLL2_Config>
  29469. 800cbde: 4603 mov r3, r0
  29470. 800cbe0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29471. /* LPTIM2 clock source configuration done later after clock selection check */
  29472. break;
  29473. 800cbe4: e015 b.n 800cc12 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29474. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  29475. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29476. 800cbe6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29477. 800cbea: 3328 adds r3, #40 @ 0x28
  29478. 800cbec: 2102 movs r1, #2
  29479. 800cbee: 4618 mov r0, r3
  29480. 800cbf0: f001 fdb4 bl 800e75c <RCCEx_PLL3_Config>
  29481. 800cbf4: 4603 mov r3, r0
  29482. 800cbf6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29483. /* LPTIM2 clock source configuration done later after clock selection check */
  29484. break;
  29485. 800cbfa: e00a b.n 800cc12 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29486. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  29487. /* LPTIM2 clock source configuration done later after clock selection check */
  29488. break;
  29489. default:
  29490. ret = HAL_ERROR;
  29491. 800cbfc: 2301 movs r3, #1
  29492. 800cbfe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29493. break;
  29494. 800cc02: e006 b.n 800cc12 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29495. break;
  29496. 800cc04: bf00 nop
  29497. 800cc06: e004 b.n 800cc12 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29498. break;
  29499. 800cc08: bf00 nop
  29500. 800cc0a: e002 b.n 800cc12 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29501. break;
  29502. 800cc0c: bf00 nop
  29503. 800cc0e: e000 b.n 800cc12 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29504. break;
  29505. 800cc10: bf00 nop
  29506. }
  29507. if (ret == HAL_OK)
  29508. 800cc12: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29509. 800cc16: 2b00 cmp r3, #0
  29510. 800cc18: d10e bne.n 800cc38 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  29511. {
  29512. /* Set the source of LPTIM2 clock*/
  29513. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  29514. 800cc1a: 4b06 ldr r3, [pc, #24] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29515. 800cc1c: 6d9b ldr r3, [r3, #88] @ 0x58
  29516. 800cc1e: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  29517. 800cc22: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29518. 800cc26: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  29519. 800cc2a: 4a02 ldr r2, [pc, #8] @ (800cc34 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29520. 800cc2c: 430b orrs r3, r1
  29521. 800cc2e: 6593 str r3, [r2, #88] @ 0x58
  29522. 800cc30: e006 b.n 800cc40 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  29523. 800cc32: bf00 nop
  29524. 800cc34: 58024400 .word 0x58024400
  29525. }
  29526. else
  29527. {
  29528. /* set overall return value */
  29529. status = ret;
  29530. 800cc38: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29531. 800cc3c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29532. }
  29533. }
  29534. /*---------------------------- LPTIM345 configuration -------------------------------*/
  29535. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  29536. 800cc40: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29537. 800cc44: e9d3 2300 ldrd r2, r3, [r3]
  29538. 800cc48: f002 0380 and.w r3, r2, #128 @ 0x80
  29539. 800cc4c: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  29540. 800cc50: 2300 movs r3, #0
  29541. 800cc52: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  29542. 800cc56: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  29543. 800cc5a: 460b mov r3, r1
  29544. 800cc5c: 4313 orrs r3, r2
  29545. 800cc5e: d055 beq.n 800cd0c <HAL_RCCEx_PeriphCLKConfig+0xe10>
  29546. {
  29547. switch (PeriphClkInit->Lptim345ClockSelection)
  29548. 800cc60: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29549. 800cc64: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  29550. 800cc68: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  29551. 800cc6c: d033 beq.n 800ccd6 <HAL_RCCEx_PeriphCLKConfig+0xdda>
  29552. 800cc6e: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  29553. 800cc72: d82c bhi.n 800ccce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29554. 800cc74: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  29555. 800cc78: d02f beq.n 800ccda <HAL_RCCEx_PeriphCLKConfig+0xdde>
  29556. 800cc7a: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  29557. 800cc7e: d826 bhi.n 800ccce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29558. 800cc80: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  29559. 800cc84: d02b beq.n 800ccde <HAL_RCCEx_PeriphCLKConfig+0xde2>
  29560. 800cc86: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  29561. 800cc8a: d820 bhi.n 800ccce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29562. 800cc8c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29563. 800cc90: d012 beq.n 800ccb8 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  29564. 800cc92: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29565. 800cc96: d81a bhi.n 800ccce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29566. 800cc98: 2b00 cmp r3, #0
  29567. 800cc9a: d022 beq.n 800cce2 <HAL_RCCEx_PeriphCLKConfig+0xde6>
  29568. 800cc9c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29569. 800cca0: d115 bne.n 800ccce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29570. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  29571. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29572. break;
  29573. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  29574. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29575. 800cca2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29576. 800cca6: 3308 adds r3, #8
  29577. 800cca8: 2100 movs r1, #0
  29578. 800ccaa: 4618 mov r0, r3
  29579. 800ccac: f001 fca4 bl 800e5f8 <RCCEx_PLL2_Config>
  29580. 800ccb0: 4603 mov r3, r0
  29581. 800ccb2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29582. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29583. break;
  29584. 800ccb6: e015 b.n 800cce4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29585. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  29586. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29587. 800ccb8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29588. 800ccbc: 3328 adds r3, #40 @ 0x28
  29589. 800ccbe: 2102 movs r1, #2
  29590. 800ccc0: 4618 mov r0, r3
  29591. 800ccc2: f001 fd4b bl 800e75c <RCCEx_PLL3_Config>
  29592. 800ccc6: 4603 mov r3, r0
  29593. 800ccc8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29594. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29595. break;
  29596. 800cccc: e00a b.n 800cce4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29597. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  29598. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29599. break;
  29600. default:
  29601. ret = HAL_ERROR;
  29602. 800ccce: 2301 movs r3, #1
  29603. 800ccd0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29604. break;
  29605. 800ccd4: e006 b.n 800cce4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29606. break;
  29607. 800ccd6: bf00 nop
  29608. 800ccd8: e004 b.n 800cce4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29609. break;
  29610. 800ccda: bf00 nop
  29611. 800ccdc: e002 b.n 800cce4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29612. break;
  29613. 800ccde: bf00 nop
  29614. 800cce0: e000 b.n 800cce4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29615. break;
  29616. 800cce2: bf00 nop
  29617. }
  29618. if (ret == HAL_OK)
  29619. 800cce4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29620. 800cce8: 2b00 cmp r3, #0
  29621. 800ccea: d10b bne.n 800cd04 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  29622. {
  29623. /* Set the source of LPTIM3/4/5 clock */
  29624. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  29625. 800ccec: 4bbb ldr r3, [pc, #748] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29626. 800ccee: 6d9b ldr r3, [r3, #88] @ 0x58
  29627. 800ccf0: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  29628. 800ccf4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29629. 800ccf8: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  29630. 800ccfc: 4ab7 ldr r2, [pc, #732] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29631. 800ccfe: 430b orrs r3, r1
  29632. 800cd00: 6593 str r3, [r2, #88] @ 0x58
  29633. 800cd02: e003 b.n 800cd0c <HAL_RCCEx_PeriphCLKConfig+0xe10>
  29634. }
  29635. else
  29636. {
  29637. /* set overall return value */
  29638. status = ret;
  29639. 800cd04: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29640. 800cd08: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29641. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  29642. }
  29643. #else
  29644. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  29645. 800cd0c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29646. 800cd10: e9d3 2300 ldrd r2, r3, [r3]
  29647. 800cd14: f002 0308 and.w r3, r2, #8
  29648. 800cd18: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  29649. 800cd1c: 2300 movs r3, #0
  29650. 800cd1e: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  29651. 800cd22: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  29652. 800cd26: 460b mov r3, r1
  29653. 800cd28: 4313 orrs r3, r2
  29654. 800cd2a: d01e beq.n 800cd6a <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  29655. {
  29656. /* Check the parameters */
  29657. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  29658. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  29659. 800cd2c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29660. 800cd30: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  29661. 800cd34: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29662. 800cd38: d10c bne.n 800cd54 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  29663. {
  29664. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  29665. 800cd3a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29666. 800cd3e: 3328 adds r3, #40 @ 0x28
  29667. 800cd40: 2102 movs r1, #2
  29668. 800cd42: 4618 mov r0, r3
  29669. 800cd44: f001 fd0a bl 800e75c <RCCEx_PLL3_Config>
  29670. 800cd48: 4603 mov r3, r0
  29671. 800cd4a: 2b00 cmp r3, #0
  29672. 800cd4c: d002 beq.n 800cd54 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  29673. {
  29674. status = HAL_ERROR;
  29675. 800cd4e: 2301 movs r3, #1
  29676. 800cd50: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29677. }
  29678. }
  29679. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  29680. 800cd54: 4ba1 ldr r3, [pc, #644] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29681. 800cd56: 6d5b ldr r3, [r3, #84] @ 0x54
  29682. 800cd58: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  29683. 800cd5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29684. 800cd60: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  29685. 800cd64: 4a9d ldr r2, [pc, #628] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29686. 800cd66: 430b orrs r3, r1
  29687. 800cd68: 6553 str r3, [r2, #84] @ 0x54
  29688. }
  29689. #endif /* I2C5 */
  29690. /*------------------------------ I2C4 Configuration ------------------------*/
  29691. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  29692. 800cd6a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29693. 800cd6e: e9d3 2300 ldrd r2, r3, [r3]
  29694. 800cd72: f002 0310 and.w r3, r2, #16
  29695. 800cd76: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  29696. 800cd7a: 2300 movs r3, #0
  29697. 800cd7c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  29698. 800cd80: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  29699. 800cd84: 460b mov r3, r1
  29700. 800cd86: 4313 orrs r3, r2
  29701. 800cd88: d01e beq.n 800cdc8 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  29702. {
  29703. /* Check the parameters */
  29704. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  29705. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  29706. 800cd8a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29707. 800cd8e: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  29708. 800cd92: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29709. 800cd96: d10c bne.n 800cdb2 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  29710. {
  29711. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  29712. 800cd98: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29713. 800cd9c: 3328 adds r3, #40 @ 0x28
  29714. 800cd9e: 2102 movs r1, #2
  29715. 800cda0: 4618 mov r0, r3
  29716. 800cda2: f001 fcdb bl 800e75c <RCCEx_PLL3_Config>
  29717. 800cda6: 4603 mov r3, r0
  29718. 800cda8: 2b00 cmp r3, #0
  29719. 800cdaa: d002 beq.n 800cdb2 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  29720. {
  29721. status = HAL_ERROR;
  29722. 800cdac: 2301 movs r3, #1
  29723. 800cdae: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29724. }
  29725. }
  29726. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  29727. 800cdb2: 4b8a ldr r3, [pc, #552] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29728. 800cdb4: 6d9b ldr r3, [r3, #88] @ 0x58
  29729. 800cdb6: f423 7140 bic.w r1, r3, #768 @ 0x300
  29730. 800cdba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29731. 800cdbe: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  29732. 800cdc2: 4a86 ldr r2, [pc, #536] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29733. 800cdc4: 430b orrs r3, r1
  29734. 800cdc6: 6593 str r3, [r2, #88] @ 0x58
  29735. }
  29736. /*---------------------------- ADC configuration -------------------------------*/
  29737. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  29738. 800cdc8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29739. 800cdcc: e9d3 2300 ldrd r2, r3, [r3]
  29740. 800cdd0: f402 2300 and.w r3, r2, #524288 @ 0x80000
  29741. 800cdd4: 67bb str r3, [r7, #120] @ 0x78
  29742. 800cdd6: 2300 movs r3, #0
  29743. 800cdd8: 67fb str r3, [r7, #124] @ 0x7c
  29744. 800cdda: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  29745. 800cdde: 460b mov r3, r1
  29746. 800cde0: 4313 orrs r3, r2
  29747. 800cde2: d03e beq.n 800ce62 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  29748. {
  29749. switch (PeriphClkInit->AdcClockSelection)
  29750. 800cde4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29751. 800cde8: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  29752. 800cdec: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29753. 800cdf0: d022 beq.n 800ce38 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  29754. 800cdf2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29755. 800cdf6: d81b bhi.n 800ce30 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  29756. 800cdf8: 2b00 cmp r3, #0
  29757. 800cdfa: d003 beq.n 800ce04 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  29758. 800cdfc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  29759. 800ce00: d00b beq.n 800ce1a <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  29760. 800ce02: e015 b.n 800ce30 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  29761. {
  29762. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  29763. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29764. 800ce04: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29765. 800ce08: 3308 adds r3, #8
  29766. 800ce0a: 2100 movs r1, #0
  29767. 800ce0c: 4618 mov r0, r3
  29768. 800ce0e: f001 fbf3 bl 800e5f8 <RCCEx_PLL2_Config>
  29769. 800ce12: 4603 mov r3, r0
  29770. 800ce14: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29771. /* ADC clock source configuration done later after clock selection check */
  29772. break;
  29773. 800ce18: e00f b.n 800ce3a <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  29774. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  29775. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29776. 800ce1a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29777. 800ce1e: 3328 adds r3, #40 @ 0x28
  29778. 800ce20: 2102 movs r1, #2
  29779. 800ce22: 4618 mov r0, r3
  29780. 800ce24: f001 fc9a bl 800e75c <RCCEx_PLL3_Config>
  29781. 800ce28: 4603 mov r3, r0
  29782. 800ce2a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29783. /* ADC clock source configuration done later after clock selection check */
  29784. break;
  29785. 800ce2e: e004 b.n 800ce3a <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  29786. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  29787. /* ADC clock source configuration done later after clock selection check */
  29788. break;
  29789. default:
  29790. ret = HAL_ERROR;
  29791. 800ce30: 2301 movs r3, #1
  29792. 800ce32: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29793. break;
  29794. 800ce36: e000 b.n 800ce3a <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  29795. break;
  29796. 800ce38: bf00 nop
  29797. }
  29798. if (ret == HAL_OK)
  29799. 800ce3a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29800. 800ce3e: 2b00 cmp r3, #0
  29801. 800ce40: d10b bne.n 800ce5a <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  29802. {
  29803. /* Set the source of ADC clock*/
  29804. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  29805. 800ce42: 4b66 ldr r3, [pc, #408] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29806. 800ce44: 6d9b ldr r3, [r3, #88] @ 0x58
  29807. 800ce46: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  29808. 800ce4a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29809. 800ce4e: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  29810. 800ce52: 4a62 ldr r2, [pc, #392] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29811. 800ce54: 430b orrs r3, r1
  29812. 800ce56: 6593 str r3, [r2, #88] @ 0x58
  29813. 800ce58: e003 b.n 800ce62 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  29814. }
  29815. else
  29816. {
  29817. /* set overall return value */
  29818. status = ret;
  29819. 800ce5a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29820. 800ce5e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29821. }
  29822. }
  29823. /*------------------------------ USB Configuration -------------------------*/
  29824. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  29825. 800ce62: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29826. 800ce66: e9d3 2300 ldrd r2, r3, [r3]
  29827. 800ce6a: f402 2380 and.w r3, r2, #262144 @ 0x40000
  29828. 800ce6e: 673b str r3, [r7, #112] @ 0x70
  29829. 800ce70: 2300 movs r3, #0
  29830. 800ce72: 677b str r3, [r7, #116] @ 0x74
  29831. 800ce74: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  29832. 800ce78: 460b mov r3, r1
  29833. 800ce7a: 4313 orrs r3, r2
  29834. 800ce7c: d03b beq.n 800cef6 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  29835. {
  29836. switch (PeriphClkInit->UsbClockSelection)
  29837. 800ce7e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29838. 800ce82: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  29839. 800ce86: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29840. 800ce8a: d01f beq.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  29841. 800ce8c: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29842. 800ce90: d818 bhi.n 800cec4 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  29843. 800ce92: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  29844. 800ce96: d003 beq.n 800cea0 <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  29845. 800ce98: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29846. 800ce9c: d007 beq.n 800ceae <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  29847. 800ce9e: e011 b.n 800cec4 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  29848. {
  29849. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  29850. /* Enable USB Clock output generated form System USB . */
  29851. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29852. 800cea0: 4b4e ldr r3, [pc, #312] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29853. 800cea2: 6adb ldr r3, [r3, #44] @ 0x2c
  29854. 800cea4: 4a4d ldr r2, [pc, #308] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29855. 800cea6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29856. 800ceaa: 62d3 str r3, [r2, #44] @ 0x2c
  29857. /* USB clock source configuration done later after clock selection check */
  29858. break;
  29859. 800ceac: e00f b.n 800cece <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  29860. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  29861. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29862. 800ceae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29863. 800ceb2: 3328 adds r3, #40 @ 0x28
  29864. 800ceb4: 2101 movs r1, #1
  29865. 800ceb6: 4618 mov r0, r3
  29866. 800ceb8: f001 fc50 bl 800e75c <RCCEx_PLL3_Config>
  29867. 800cebc: 4603 mov r3, r0
  29868. 800cebe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29869. /* USB clock source configuration done later after clock selection check */
  29870. break;
  29871. 800cec2: e004 b.n 800cece <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  29872. /* HSI48 oscillator is used as source of USB clock */
  29873. /* USB clock source configuration done later after clock selection check */
  29874. break;
  29875. default:
  29876. ret = HAL_ERROR;
  29877. 800cec4: 2301 movs r3, #1
  29878. 800cec6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29879. break;
  29880. 800ceca: e000 b.n 800cece <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  29881. break;
  29882. 800cecc: bf00 nop
  29883. }
  29884. if (ret == HAL_OK)
  29885. 800cece: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29886. 800ced2: 2b00 cmp r3, #0
  29887. 800ced4: d10b bne.n 800ceee <HAL_RCCEx_PeriphCLKConfig+0xff2>
  29888. {
  29889. /* Set the source of USB clock*/
  29890. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  29891. 800ced6: 4b41 ldr r3, [pc, #260] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29892. 800ced8: 6d5b ldr r3, [r3, #84] @ 0x54
  29893. 800ceda: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  29894. 800cede: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29895. 800cee2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  29896. 800cee6: 4a3d ldr r2, [pc, #244] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29897. 800cee8: 430b orrs r3, r1
  29898. 800ceea: 6553 str r3, [r2, #84] @ 0x54
  29899. 800ceec: e003 b.n 800cef6 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  29900. }
  29901. else
  29902. {
  29903. /* set overall return value */
  29904. status = ret;
  29905. 800ceee: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29906. 800cef2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29907. }
  29908. }
  29909. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  29910. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  29911. 800cef6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29912. 800cefa: e9d3 2300 ldrd r2, r3, [r3]
  29913. 800cefe: f402 3380 and.w r3, r2, #65536 @ 0x10000
  29914. 800cf02: 66bb str r3, [r7, #104] @ 0x68
  29915. 800cf04: 2300 movs r3, #0
  29916. 800cf06: 66fb str r3, [r7, #108] @ 0x6c
  29917. 800cf08: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  29918. 800cf0c: 460b mov r3, r1
  29919. 800cf0e: 4313 orrs r3, r2
  29920. 800cf10: d031 beq.n 800cf76 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  29921. {
  29922. /* Check the parameters */
  29923. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  29924. switch (PeriphClkInit->SdmmcClockSelection)
  29925. 800cf12: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29926. 800cf16: 6d1b ldr r3, [r3, #80] @ 0x50
  29927. 800cf18: 2b00 cmp r3, #0
  29928. 800cf1a: d003 beq.n 800cf24 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  29929. 800cf1c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  29930. 800cf20: d007 beq.n 800cf32 <HAL_RCCEx_PeriphCLKConfig+0x1036>
  29931. 800cf22: e011 b.n 800cf48 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  29932. {
  29933. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  29934. /* Enable SDMMC Clock output generated form System PLL . */
  29935. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29936. 800cf24: 4b2d ldr r3, [pc, #180] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29937. 800cf26: 6adb ldr r3, [r3, #44] @ 0x2c
  29938. 800cf28: 4a2c ldr r2, [pc, #176] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29939. 800cf2a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29940. 800cf2e: 62d3 str r3, [r2, #44] @ 0x2c
  29941. /* SDMMC clock source configuration done later after clock selection check */
  29942. break;
  29943. 800cf30: e00e b.n 800cf50 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  29944. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  29945. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29946. 800cf32: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29947. 800cf36: 3308 adds r3, #8
  29948. 800cf38: 2102 movs r1, #2
  29949. 800cf3a: 4618 mov r0, r3
  29950. 800cf3c: f001 fb5c bl 800e5f8 <RCCEx_PLL2_Config>
  29951. 800cf40: 4603 mov r3, r0
  29952. 800cf42: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29953. /* SDMMC clock source configuration done later after clock selection check */
  29954. break;
  29955. 800cf46: e003 b.n 800cf50 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  29956. default:
  29957. ret = HAL_ERROR;
  29958. 800cf48: 2301 movs r3, #1
  29959. 800cf4a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29960. break;
  29961. 800cf4e: bf00 nop
  29962. }
  29963. if (ret == HAL_OK)
  29964. 800cf50: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29965. 800cf54: 2b00 cmp r3, #0
  29966. 800cf56: d10a bne.n 800cf6e <HAL_RCCEx_PeriphCLKConfig+0x1072>
  29967. {
  29968. /* Set the source of SDMMC clock*/
  29969. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  29970. 800cf58: 4b20 ldr r3, [pc, #128] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29971. 800cf5a: 6cdb ldr r3, [r3, #76] @ 0x4c
  29972. 800cf5c: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  29973. 800cf60: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29974. 800cf64: 6d1b ldr r3, [r3, #80] @ 0x50
  29975. 800cf66: 4a1d ldr r2, [pc, #116] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29976. 800cf68: 430b orrs r3, r1
  29977. 800cf6a: 64d3 str r3, [r2, #76] @ 0x4c
  29978. 800cf6c: e003 b.n 800cf76 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  29979. }
  29980. else
  29981. {
  29982. /* set overall return value */
  29983. status = ret;
  29984. 800cf6e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29985. 800cf72: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29986. }
  29987. }
  29988. #endif /* LTDC */
  29989. /*------------------------------ RNG Configuration -------------------------*/
  29990. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  29991. 800cf76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29992. 800cf7a: e9d3 2300 ldrd r2, r3, [r3]
  29993. 800cf7e: f402 3300 and.w r3, r2, #131072 @ 0x20000
  29994. 800cf82: 663b str r3, [r7, #96] @ 0x60
  29995. 800cf84: 2300 movs r3, #0
  29996. 800cf86: 667b str r3, [r7, #100] @ 0x64
  29997. 800cf88: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  29998. 800cf8c: 460b mov r3, r1
  29999. 800cf8e: 4313 orrs r3, r2
  30000. 800cf90: d03b beq.n 800d00a <HAL_RCCEx_PeriphCLKConfig+0x110e>
  30001. {
  30002. switch (PeriphClkInit->RngClockSelection)
  30003. 800cf92: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30004. 800cf96: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30005. 800cf9a: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30006. 800cf9e: d018 beq.n 800cfd2 <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  30007. 800cfa0: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30008. 800cfa4: d811 bhi.n 800cfca <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  30009. 800cfa6: f5b3 7f00 cmp.w r3, #512 @ 0x200
  30010. 800cfaa: d014 beq.n 800cfd6 <HAL_RCCEx_PeriphCLKConfig+0x10da>
  30011. 800cfac: f5b3 7f00 cmp.w r3, #512 @ 0x200
  30012. 800cfb0: d80b bhi.n 800cfca <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  30013. 800cfb2: 2b00 cmp r3, #0
  30014. 800cfb4: d014 beq.n 800cfe0 <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  30015. 800cfb6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30016. 800cfba: d106 bne.n 800cfca <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  30017. {
  30018. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  30019. /* Enable RNG Clock output generated form System RNG . */
  30020. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30021. 800cfbc: 4b07 ldr r3, [pc, #28] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30022. 800cfbe: 6adb ldr r3, [r3, #44] @ 0x2c
  30023. 800cfc0: 4a06 ldr r2, [pc, #24] @ (800cfdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30024. 800cfc2: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30025. 800cfc6: 62d3 str r3, [r2, #44] @ 0x2c
  30026. /* RNG clock source configuration done later after clock selection check */
  30027. break;
  30028. 800cfc8: e00b b.n 800cfe2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30029. /* HSI48 oscillator is used as source of RNG clock */
  30030. /* RNG clock source configuration done later after clock selection check */
  30031. break;
  30032. default:
  30033. ret = HAL_ERROR;
  30034. 800cfca: 2301 movs r3, #1
  30035. 800cfcc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30036. break;
  30037. 800cfd0: e007 b.n 800cfe2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30038. break;
  30039. 800cfd2: bf00 nop
  30040. 800cfd4: e005 b.n 800cfe2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30041. break;
  30042. 800cfd6: bf00 nop
  30043. 800cfd8: e003 b.n 800cfe2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30044. 800cfda: bf00 nop
  30045. 800cfdc: 58024400 .word 0x58024400
  30046. break;
  30047. 800cfe0: bf00 nop
  30048. }
  30049. if (ret == HAL_OK)
  30050. 800cfe2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30051. 800cfe6: 2b00 cmp r3, #0
  30052. 800cfe8: d10b bne.n 800d002 <HAL_RCCEx_PeriphCLKConfig+0x1106>
  30053. {
  30054. /* Set the source of RNG clock*/
  30055. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  30056. 800cfea: 4bba ldr r3, [pc, #744] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30057. 800cfec: 6d5b ldr r3, [r3, #84] @ 0x54
  30058. 800cfee: f423 7140 bic.w r1, r3, #768 @ 0x300
  30059. 800cff2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30060. 800cff6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30061. 800cffa: 4ab6 ldr r2, [pc, #728] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30062. 800cffc: 430b orrs r3, r1
  30063. 800cffe: 6553 str r3, [r2, #84] @ 0x54
  30064. 800d000: e003 b.n 800d00a <HAL_RCCEx_PeriphCLKConfig+0x110e>
  30065. }
  30066. else
  30067. {
  30068. /* set overall return value */
  30069. status = ret;
  30070. 800d002: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30071. 800d006: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30072. }
  30073. }
  30074. /*------------------------------ SWPMI1 Configuration ------------------------*/
  30075. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  30076. 800d00a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30077. 800d00e: e9d3 2300 ldrd r2, r3, [r3]
  30078. 800d012: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  30079. 800d016: 65bb str r3, [r7, #88] @ 0x58
  30080. 800d018: 2300 movs r3, #0
  30081. 800d01a: 65fb str r3, [r7, #92] @ 0x5c
  30082. 800d01c: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  30083. 800d020: 460b mov r3, r1
  30084. 800d022: 4313 orrs r3, r2
  30085. 800d024: d009 beq.n 800d03a <HAL_RCCEx_PeriphCLKConfig+0x113e>
  30086. {
  30087. /* Check the parameters */
  30088. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  30089. /* Configure the SWPMI1 interface clock source */
  30090. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  30091. 800d026: 4bab ldr r3, [pc, #684] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30092. 800d028: 6d1b ldr r3, [r3, #80] @ 0x50
  30093. 800d02a: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  30094. 800d02e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30095. 800d032: 6f5b ldr r3, [r3, #116] @ 0x74
  30096. 800d034: 4aa7 ldr r2, [pc, #668] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30097. 800d036: 430b orrs r3, r1
  30098. 800d038: 6513 str r3, [r2, #80] @ 0x50
  30099. }
  30100. #if defined(HRTIM1)
  30101. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  30102. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  30103. 800d03a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30104. 800d03e: e9d3 2300 ldrd r2, r3, [r3]
  30105. 800d042: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  30106. 800d046: 653b str r3, [r7, #80] @ 0x50
  30107. 800d048: 2300 movs r3, #0
  30108. 800d04a: 657b str r3, [r7, #84] @ 0x54
  30109. 800d04c: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  30110. 800d050: 460b mov r3, r1
  30111. 800d052: 4313 orrs r3, r2
  30112. 800d054: d00a beq.n 800d06c <HAL_RCCEx_PeriphCLKConfig+0x1170>
  30113. {
  30114. /* Check the parameters */
  30115. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  30116. /* Configure the HRTIM1 clock source */
  30117. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  30118. 800d056: 4b9f ldr r3, [pc, #636] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30119. 800d058: 691b ldr r3, [r3, #16]
  30120. 800d05a: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  30121. 800d05e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30122. 800d062: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  30123. 800d066: 4a9b ldr r2, [pc, #620] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30124. 800d068: 430b orrs r3, r1
  30125. 800d06a: 6113 str r3, [r2, #16]
  30126. }
  30127. #endif /*HRTIM1*/
  30128. /*------------------------------ DFSDM1 Configuration ------------------------*/
  30129. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  30130. 800d06c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30131. 800d070: e9d3 2300 ldrd r2, r3, [r3]
  30132. 800d074: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  30133. 800d078: 64bb str r3, [r7, #72] @ 0x48
  30134. 800d07a: 2300 movs r3, #0
  30135. 800d07c: 64fb str r3, [r7, #76] @ 0x4c
  30136. 800d07e: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  30137. 800d082: 460b mov r3, r1
  30138. 800d084: 4313 orrs r3, r2
  30139. 800d086: d009 beq.n 800d09c <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  30140. {
  30141. /* Check the parameters */
  30142. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  30143. /* Configure the DFSDM1 interface clock source */
  30144. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  30145. 800d088: 4b92 ldr r3, [pc, #584] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30146. 800d08a: 6d1b ldr r3, [r3, #80] @ 0x50
  30147. 800d08c: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  30148. 800d090: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30149. 800d094: 6edb ldr r3, [r3, #108] @ 0x6c
  30150. 800d096: 4a8f ldr r2, [pc, #572] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30151. 800d098: 430b orrs r3, r1
  30152. 800d09a: 6513 str r3, [r2, #80] @ 0x50
  30153. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  30154. }
  30155. #endif /* DFSDM2 */
  30156. /*------------------------------------ TIM configuration --------------------------------------*/
  30157. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  30158. 800d09c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30159. 800d0a0: e9d3 2300 ldrd r2, r3, [r3]
  30160. 800d0a4: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  30161. 800d0a8: 643b str r3, [r7, #64] @ 0x40
  30162. 800d0aa: 2300 movs r3, #0
  30163. 800d0ac: 647b str r3, [r7, #68] @ 0x44
  30164. 800d0ae: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  30165. 800d0b2: 460b mov r3, r1
  30166. 800d0b4: 4313 orrs r3, r2
  30167. 800d0b6: d00e beq.n 800d0d6 <HAL_RCCEx_PeriphCLKConfig+0x11da>
  30168. {
  30169. /* Check the parameters */
  30170. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  30171. /* Configure Timer Prescaler */
  30172. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  30173. 800d0b8: 4b86 ldr r3, [pc, #536] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30174. 800d0ba: 691b ldr r3, [r3, #16]
  30175. 800d0bc: 4a85 ldr r2, [pc, #532] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30176. 800d0be: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  30177. 800d0c2: 6113 str r3, [r2, #16]
  30178. 800d0c4: 4b83 ldr r3, [pc, #524] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30179. 800d0c6: 6919 ldr r1, [r3, #16]
  30180. 800d0c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30181. 800d0cc: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  30182. 800d0d0: 4a80 ldr r2, [pc, #512] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30183. 800d0d2: 430b orrs r3, r1
  30184. 800d0d4: 6113 str r3, [r2, #16]
  30185. }
  30186. /*------------------------------------ CKPER configuration --------------------------------------*/
  30187. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  30188. 800d0d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30189. 800d0da: e9d3 2300 ldrd r2, r3, [r3]
  30190. 800d0de: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  30191. 800d0e2: 63bb str r3, [r7, #56] @ 0x38
  30192. 800d0e4: 2300 movs r3, #0
  30193. 800d0e6: 63fb str r3, [r7, #60] @ 0x3c
  30194. 800d0e8: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  30195. 800d0ec: 460b mov r3, r1
  30196. 800d0ee: 4313 orrs r3, r2
  30197. 800d0f0: d009 beq.n 800d106 <HAL_RCCEx_PeriphCLKConfig+0x120a>
  30198. {
  30199. /* Check the parameters */
  30200. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  30201. /* Configure the CKPER clock source */
  30202. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  30203. 800d0f2: 4b78 ldr r3, [pc, #480] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30204. 800d0f4: 6cdb ldr r3, [r3, #76] @ 0x4c
  30205. 800d0f6: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  30206. 800d0fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30207. 800d0fe: 6d5b ldr r3, [r3, #84] @ 0x54
  30208. 800d100: 4a74 ldr r2, [pc, #464] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30209. 800d102: 430b orrs r3, r1
  30210. 800d104: 64d3 str r3, [r2, #76] @ 0x4c
  30211. }
  30212. /*------------------------------ CEC Configuration ------------------------*/
  30213. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  30214. 800d106: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30215. 800d10a: e9d3 2300 ldrd r2, r3, [r3]
  30216. 800d10e: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  30217. 800d112: 633b str r3, [r7, #48] @ 0x30
  30218. 800d114: 2300 movs r3, #0
  30219. 800d116: 637b str r3, [r7, #52] @ 0x34
  30220. 800d118: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  30221. 800d11c: 460b mov r3, r1
  30222. 800d11e: 4313 orrs r3, r2
  30223. 800d120: d00a beq.n 800d138 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  30224. {
  30225. /* Check the parameters */
  30226. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  30227. /* Configure the CEC interface clock source */
  30228. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  30229. 800d122: 4b6c ldr r3, [pc, #432] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30230. 800d124: 6d5b ldr r3, [r3, #84] @ 0x54
  30231. 800d126: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  30232. 800d12a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30233. 800d12e: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  30234. 800d132: 4a68 ldr r2, [pc, #416] @ (800d2d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30235. 800d134: 430b orrs r3, r1
  30236. 800d136: 6553 str r3, [r2, #84] @ 0x54
  30237. }
  30238. /*---------------------------- PLL2 configuration -------------------------------*/
  30239. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  30240. 800d138: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30241. 800d13c: e9d3 2300 ldrd r2, r3, [r3]
  30242. 800d140: 2100 movs r1, #0
  30243. 800d142: 62b9 str r1, [r7, #40] @ 0x28
  30244. 800d144: f003 0301 and.w r3, r3, #1
  30245. 800d148: 62fb str r3, [r7, #44] @ 0x2c
  30246. 800d14a: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  30247. 800d14e: 460b mov r3, r1
  30248. 800d150: 4313 orrs r3, r2
  30249. 800d152: d011 beq.n 800d178 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  30250. {
  30251. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30252. 800d154: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30253. 800d158: 3308 adds r3, #8
  30254. 800d15a: 2100 movs r1, #0
  30255. 800d15c: 4618 mov r0, r3
  30256. 800d15e: f001 fa4b bl 800e5f8 <RCCEx_PLL2_Config>
  30257. 800d162: 4603 mov r3, r0
  30258. 800d164: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30259. if (ret == HAL_OK)
  30260. 800d168: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30261. 800d16c: 2b00 cmp r3, #0
  30262. 800d16e: d003 beq.n 800d178 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  30263. /*Nothing to do*/
  30264. }
  30265. else
  30266. {
  30267. /* set overall return value */
  30268. status = ret;
  30269. 800d170: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30270. 800d174: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30271. }
  30272. }
  30273. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  30274. 800d178: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30275. 800d17c: e9d3 2300 ldrd r2, r3, [r3]
  30276. 800d180: 2100 movs r1, #0
  30277. 800d182: 6239 str r1, [r7, #32]
  30278. 800d184: f003 0302 and.w r3, r3, #2
  30279. 800d188: 627b str r3, [r7, #36] @ 0x24
  30280. 800d18a: e9d7 1208 ldrd r1, r2, [r7, #32]
  30281. 800d18e: 460b mov r3, r1
  30282. 800d190: 4313 orrs r3, r2
  30283. 800d192: d011 beq.n 800d1b8 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  30284. {
  30285. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30286. 800d194: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30287. 800d198: 3308 adds r3, #8
  30288. 800d19a: 2101 movs r1, #1
  30289. 800d19c: 4618 mov r0, r3
  30290. 800d19e: f001 fa2b bl 800e5f8 <RCCEx_PLL2_Config>
  30291. 800d1a2: 4603 mov r3, r0
  30292. 800d1a4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30293. if (ret == HAL_OK)
  30294. 800d1a8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30295. 800d1ac: 2b00 cmp r3, #0
  30296. 800d1ae: d003 beq.n 800d1b8 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  30297. /*Nothing to do*/
  30298. }
  30299. else
  30300. {
  30301. /* set overall return value */
  30302. status = ret;
  30303. 800d1b0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30304. 800d1b4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30305. }
  30306. }
  30307. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  30308. 800d1b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30309. 800d1bc: e9d3 2300 ldrd r2, r3, [r3]
  30310. 800d1c0: 2100 movs r1, #0
  30311. 800d1c2: 61b9 str r1, [r7, #24]
  30312. 800d1c4: f003 0304 and.w r3, r3, #4
  30313. 800d1c8: 61fb str r3, [r7, #28]
  30314. 800d1ca: e9d7 1206 ldrd r1, r2, [r7, #24]
  30315. 800d1ce: 460b mov r3, r1
  30316. 800d1d0: 4313 orrs r3, r2
  30317. 800d1d2: d011 beq.n 800d1f8 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  30318. {
  30319. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30320. 800d1d4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30321. 800d1d8: 3308 adds r3, #8
  30322. 800d1da: 2102 movs r1, #2
  30323. 800d1dc: 4618 mov r0, r3
  30324. 800d1de: f001 fa0b bl 800e5f8 <RCCEx_PLL2_Config>
  30325. 800d1e2: 4603 mov r3, r0
  30326. 800d1e4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30327. if (ret == HAL_OK)
  30328. 800d1e8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30329. 800d1ec: 2b00 cmp r3, #0
  30330. 800d1ee: d003 beq.n 800d1f8 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  30331. /*Nothing to do*/
  30332. }
  30333. else
  30334. {
  30335. /* set overall return value */
  30336. status = ret;
  30337. 800d1f0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30338. 800d1f4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30339. }
  30340. }
  30341. /*---------------------------- PLL3 configuration -------------------------------*/
  30342. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  30343. 800d1f8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30344. 800d1fc: e9d3 2300 ldrd r2, r3, [r3]
  30345. 800d200: 2100 movs r1, #0
  30346. 800d202: 6139 str r1, [r7, #16]
  30347. 800d204: f003 0308 and.w r3, r3, #8
  30348. 800d208: 617b str r3, [r7, #20]
  30349. 800d20a: e9d7 1204 ldrd r1, r2, [r7, #16]
  30350. 800d20e: 460b mov r3, r1
  30351. 800d210: 4313 orrs r3, r2
  30352. 800d212: d011 beq.n 800d238 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  30353. {
  30354. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  30355. 800d214: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30356. 800d218: 3328 adds r3, #40 @ 0x28
  30357. 800d21a: 2100 movs r1, #0
  30358. 800d21c: 4618 mov r0, r3
  30359. 800d21e: f001 fa9d bl 800e75c <RCCEx_PLL3_Config>
  30360. 800d222: 4603 mov r3, r0
  30361. 800d224: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30362. if (ret == HAL_OK)
  30363. 800d228: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30364. 800d22c: 2b00 cmp r3, #0
  30365. 800d22e: d003 beq.n 800d238 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  30366. /*Nothing to do*/
  30367. }
  30368. else
  30369. {
  30370. /* set overall return value */
  30371. status = ret;
  30372. 800d230: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30373. 800d234: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30374. }
  30375. }
  30376. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  30377. 800d238: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30378. 800d23c: e9d3 2300 ldrd r2, r3, [r3]
  30379. 800d240: 2100 movs r1, #0
  30380. 800d242: 60b9 str r1, [r7, #8]
  30381. 800d244: f003 0310 and.w r3, r3, #16
  30382. 800d248: 60fb str r3, [r7, #12]
  30383. 800d24a: e9d7 1202 ldrd r1, r2, [r7, #8]
  30384. 800d24e: 460b mov r3, r1
  30385. 800d250: 4313 orrs r3, r2
  30386. 800d252: d011 beq.n 800d278 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  30387. {
  30388. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30389. 800d254: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30390. 800d258: 3328 adds r3, #40 @ 0x28
  30391. 800d25a: 2101 movs r1, #1
  30392. 800d25c: 4618 mov r0, r3
  30393. 800d25e: f001 fa7d bl 800e75c <RCCEx_PLL3_Config>
  30394. 800d262: 4603 mov r3, r0
  30395. 800d264: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30396. if (ret == HAL_OK)
  30397. 800d268: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30398. 800d26c: 2b00 cmp r3, #0
  30399. 800d26e: d003 beq.n 800d278 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  30400. /*Nothing to do*/
  30401. }
  30402. else
  30403. {
  30404. /* set overall return value */
  30405. status = ret;
  30406. 800d270: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30407. 800d274: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30408. }
  30409. }
  30410. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  30411. 800d278: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30412. 800d27c: e9d3 2300 ldrd r2, r3, [r3]
  30413. 800d280: 2100 movs r1, #0
  30414. 800d282: 6039 str r1, [r7, #0]
  30415. 800d284: f003 0320 and.w r3, r3, #32
  30416. 800d288: 607b str r3, [r7, #4]
  30417. 800d28a: e9d7 1200 ldrd r1, r2, [r7]
  30418. 800d28e: 460b mov r3, r1
  30419. 800d290: 4313 orrs r3, r2
  30420. 800d292: d011 beq.n 800d2b8 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  30421. {
  30422. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30423. 800d294: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30424. 800d298: 3328 adds r3, #40 @ 0x28
  30425. 800d29a: 2102 movs r1, #2
  30426. 800d29c: 4618 mov r0, r3
  30427. 800d29e: f001 fa5d bl 800e75c <RCCEx_PLL3_Config>
  30428. 800d2a2: 4603 mov r3, r0
  30429. 800d2a4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30430. if (ret == HAL_OK)
  30431. 800d2a8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30432. 800d2ac: 2b00 cmp r3, #0
  30433. 800d2ae: d003 beq.n 800d2b8 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  30434. /*Nothing to do*/
  30435. }
  30436. else
  30437. {
  30438. /* set overall return value */
  30439. status = ret;
  30440. 800d2b0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30441. 800d2b4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30442. }
  30443. }
  30444. if (status == HAL_OK)
  30445. 800d2b8: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  30446. 800d2bc: 2b00 cmp r3, #0
  30447. 800d2be: d101 bne.n 800d2c4 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  30448. {
  30449. return HAL_OK;
  30450. 800d2c0: 2300 movs r3, #0
  30451. 800d2c2: e000 b.n 800d2c6 <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  30452. }
  30453. return HAL_ERROR;
  30454. 800d2c4: 2301 movs r3, #1
  30455. }
  30456. 800d2c6: 4618 mov r0, r3
  30457. 800d2c8: f507 7790 add.w r7, r7, #288 @ 0x120
  30458. 800d2cc: 46bd mov sp, r7
  30459. 800d2ce: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  30460. 800d2d2: bf00 nop
  30461. 800d2d4: 58024400 .word 0x58024400
  30462. 0800d2d8 <HAL_RCCEx_GetPeriphCLKFreq>:
  30463. * @retval Frequency in KHz
  30464. *
  30465. * (*) : Available on some STM32H7 lines only.
  30466. */
  30467. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk)
  30468. {
  30469. 800d2d8: b580 push {r7, lr}
  30470. 800d2da: b090 sub sp, #64 @ 0x40
  30471. 800d2dc: af00 add r7, sp, #0
  30472. 800d2de: e9c7 0100 strd r0, r1, [r7]
  30473. /* This variable is used to store the SAI and CKP clock source */
  30474. uint32_t saiclocksource;
  30475. uint32_t ckpclocksource;
  30476. uint32_t srcclk;
  30477. if (PeriphClk == RCC_PERIPHCLK_SAI1)
  30478. 800d2e2: e9d7 2300 ldrd r2, r3, [r7]
  30479. 800d2e6: f5a2 7180 sub.w r1, r2, #256 @ 0x100
  30480. 800d2ea: 430b orrs r3, r1
  30481. 800d2ec: f040 8094 bne.w 800d418 <HAL_RCCEx_GetPeriphCLKFreq+0x140>
  30482. {
  30483. saiclocksource = __HAL_RCC_GET_SAI1_SOURCE();
  30484. 800d2f0: 4b9e ldr r3, [pc, #632] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30485. 800d2f2: 6d1b ldr r3, [r3, #80] @ 0x50
  30486. 800d2f4: f003 0307 and.w r3, r3, #7
  30487. 800d2f8: 633b str r3, [r7, #48] @ 0x30
  30488. switch (saiclocksource)
  30489. 800d2fa: 6b3b ldr r3, [r7, #48] @ 0x30
  30490. 800d2fc: 2b04 cmp r3, #4
  30491. 800d2fe: f200 8087 bhi.w 800d410 <HAL_RCCEx_GetPeriphCLKFreq+0x138>
  30492. 800d302: a201 add r2, pc, #4 @ (adr r2, 800d308 <HAL_RCCEx_GetPeriphCLKFreq+0x30>)
  30493. 800d304: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30494. 800d308: 0800d31d .word 0x0800d31d
  30495. 800d30c: 0800d345 .word 0x0800d345
  30496. 800d310: 0800d36d .word 0x0800d36d
  30497. 800d314: 0800d409 .word 0x0800d409
  30498. 800d318: 0800d395 .word 0x0800d395
  30499. {
  30500. case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */
  30501. {
  30502. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  30503. 800d31c: 4b93 ldr r3, [pc, #588] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30504. 800d31e: 681b ldr r3, [r3, #0]
  30505. 800d320: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  30506. 800d324: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  30507. 800d328: d108 bne.n 800d33c <HAL_RCCEx_GetPeriphCLKFreq+0x64>
  30508. {
  30509. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  30510. 800d32a: f107 0324 add.w r3, r7, #36 @ 0x24
  30511. 800d32e: 4618 mov r0, r3
  30512. 800d330: f001 f810 bl 800e354 <HAL_RCCEx_GetPLL1ClockFreq>
  30513. frequency = pll1_clocks.PLL1_Q_Frequency;
  30514. 800d334: 6abb ldr r3, [r7, #40] @ 0x28
  30515. 800d336: 63fb str r3, [r7, #60] @ 0x3c
  30516. }
  30517. else
  30518. {
  30519. frequency = 0;
  30520. }
  30521. break;
  30522. 800d338: f000 bd45 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30523. frequency = 0;
  30524. 800d33c: 2300 movs r3, #0
  30525. 800d33e: 63fb str r3, [r7, #60] @ 0x3c
  30526. break;
  30527. 800d340: f000 bd41 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30528. }
  30529. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */
  30530. {
  30531. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  30532. 800d344: 4b89 ldr r3, [pc, #548] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30533. 800d346: 681b ldr r3, [r3, #0]
  30534. 800d348: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  30535. 800d34c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  30536. 800d350: d108 bne.n 800d364 <HAL_RCCEx_GetPeriphCLKFreq+0x8c>
  30537. {
  30538. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  30539. 800d352: f107 0318 add.w r3, r7, #24
  30540. 800d356: 4618 mov r0, r3
  30541. 800d358: f000 fd54 bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  30542. frequency = pll2_clocks.PLL2_P_Frequency;
  30543. 800d35c: 69bb ldr r3, [r7, #24]
  30544. 800d35e: 63fb str r3, [r7, #60] @ 0x3c
  30545. }
  30546. else
  30547. {
  30548. frequency = 0;
  30549. }
  30550. break;
  30551. 800d360: f000 bd31 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30552. frequency = 0;
  30553. 800d364: 2300 movs r3, #0
  30554. 800d366: 63fb str r3, [r7, #60] @ 0x3c
  30555. break;
  30556. 800d368: f000 bd2d b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30557. }
  30558. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */
  30559. {
  30560. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  30561. 800d36c: 4b7f ldr r3, [pc, #508] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30562. 800d36e: 681b ldr r3, [r3, #0]
  30563. 800d370: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  30564. 800d374: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30565. 800d378: d108 bne.n 800d38c <HAL_RCCEx_GetPeriphCLKFreq+0xb4>
  30566. {
  30567. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  30568. 800d37a: f107 030c add.w r3, r7, #12
  30569. 800d37e: 4618 mov r0, r3
  30570. 800d380: f000 fe94 bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  30571. frequency = pll3_clocks.PLL3_P_Frequency;
  30572. 800d384: 68fb ldr r3, [r7, #12]
  30573. 800d386: 63fb str r3, [r7, #60] @ 0x3c
  30574. }
  30575. else
  30576. {
  30577. frequency = 0;
  30578. }
  30579. break;
  30580. 800d388: f000 bd1d b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30581. frequency = 0;
  30582. 800d38c: 2300 movs r3, #0
  30583. 800d38e: 63fb str r3, [r7, #60] @ 0x3c
  30584. break;
  30585. 800d390: f000 bd19 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30586. }
  30587. case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/
  30588. {
  30589. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  30590. 800d394: 4b75 ldr r3, [pc, #468] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30591. 800d396: 6cdb ldr r3, [r3, #76] @ 0x4c
  30592. 800d398: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  30593. 800d39c: 637b str r3, [r7, #52] @ 0x34
  30594. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  30595. 800d39e: 4b73 ldr r3, [pc, #460] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30596. 800d3a0: 681b ldr r3, [r3, #0]
  30597. 800d3a2: f003 0304 and.w r3, r3, #4
  30598. 800d3a6: 2b04 cmp r3, #4
  30599. 800d3a8: d10c bne.n 800d3c4 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  30600. 800d3aa: 6b7b ldr r3, [r7, #52] @ 0x34
  30601. 800d3ac: 2b00 cmp r3, #0
  30602. 800d3ae: d109 bne.n 800d3c4 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  30603. {
  30604. /* In Case the CKPER Source is HSI */
  30605. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  30606. 800d3b0: 4b6e ldr r3, [pc, #440] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30607. 800d3b2: 681b ldr r3, [r3, #0]
  30608. 800d3b4: 08db lsrs r3, r3, #3
  30609. 800d3b6: f003 0303 and.w r3, r3, #3
  30610. 800d3ba: 4a6d ldr r2, [pc, #436] @ (800d570 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  30611. 800d3bc: fa22 f303 lsr.w r3, r2, r3
  30612. 800d3c0: 63fb str r3, [r7, #60] @ 0x3c
  30613. 800d3c2: e01f b.n 800d404 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  30614. }
  30615. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  30616. 800d3c4: 4b69 ldr r3, [pc, #420] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30617. 800d3c6: 681b ldr r3, [r3, #0]
  30618. 800d3c8: f403 7380 and.w r3, r3, #256 @ 0x100
  30619. 800d3cc: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30620. 800d3d0: d106 bne.n 800d3e0 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  30621. 800d3d2: 6b7b ldr r3, [r7, #52] @ 0x34
  30622. 800d3d4: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30623. 800d3d8: d102 bne.n 800d3e0 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  30624. {
  30625. /* In Case the CKPER Source is CSI */
  30626. frequency = CSI_VALUE;
  30627. 800d3da: 4b66 ldr r3, [pc, #408] @ (800d574 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  30628. 800d3dc: 63fb str r3, [r7, #60] @ 0x3c
  30629. 800d3de: e011 b.n 800d404 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  30630. }
  30631. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  30632. 800d3e0: 4b62 ldr r3, [pc, #392] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30633. 800d3e2: 681b ldr r3, [r3, #0]
  30634. 800d3e4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  30635. 800d3e8: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  30636. 800d3ec: d106 bne.n 800d3fc <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  30637. 800d3ee: 6b7b ldr r3, [r7, #52] @ 0x34
  30638. 800d3f0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30639. 800d3f4: d102 bne.n 800d3fc <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  30640. {
  30641. /* In Case the CKPER Source is HSE */
  30642. frequency = HSE_VALUE;
  30643. 800d3f6: 4b60 ldr r3, [pc, #384] @ (800d578 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  30644. 800d3f8: 63fb str r3, [r7, #60] @ 0x3c
  30645. 800d3fa: e003 b.n 800d404 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  30646. }
  30647. else
  30648. {
  30649. /* In Case the CKPER is disabled*/
  30650. frequency = 0;
  30651. 800d3fc: 2300 movs r3, #0
  30652. 800d3fe: 63fb str r3, [r7, #60] @ 0x3c
  30653. }
  30654. break;
  30655. 800d400: f000 bce1 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30656. 800d404: f000 bcdf b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30657. }
  30658. case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */
  30659. {
  30660. frequency = EXTERNAL_CLOCK_VALUE;
  30661. 800d408: 4b5c ldr r3, [pc, #368] @ (800d57c <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  30662. 800d40a: 63fb str r3, [r7, #60] @ 0x3c
  30663. break;
  30664. 800d40c: f000 bcdb b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30665. }
  30666. default :
  30667. {
  30668. frequency = 0;
  30669. 800d410: 2300 movs r3, #0
  30670. 800d412: 63fb str r3, [r7, #60] @ 0x3c
  30671. break;
  30672. 800d414: f000 bcd7 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30673. }
  30674. }
  30675. }
  30676. #if defined(SAI3)
  30677. else if (PeriphClk == RCC_PERIPHCLK_SAI23)
  30678. 800d418: e9d7 2300 ldrd r2, r3, [r7]
  30679. 800d41c: f5a2 7100 sub.w r1, r2, #512 @ 0x200
  30680. 800d420: 430b orrs r3, r1
  30681. 800d422: f040 80ad bne.w 800d580 <HAL_RCCEx_GetPeriphCLKFreq+0x2a8>
  30682. {
  30683. saiclocksource = __HAL_RCC_GET_SAI23_SOURCE();
  30684. 800d426: 4b51 ldr r3, [pc, #324] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30685. 800d428: 6d1b ldr r3, [r3, #80] @ 0x50
  30686. 800d42a: f403 73e0 and.w r3, r3, #448 @ 0x1c0
  30687. 800d42e: 633b str r3, [r7, #48] @ 0x30
  30688. switch (saiclocksource)
  30689. 800d430: 6b3b ldr r3, [r7, #48] @ 0x30
  30690. 800d432: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30691. 800d436: d056 beq.n 800d4e6 <HAL_RCCEx_GetPeriphCLKFreq+0x20e>
  30692. 800d438: 6b3b ldr r3, [r7, #48] @ 0x30
  30693. 800d43a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30694. 800d43e: f200 8090 bhi.w 800d562 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  30695. 800d442: 6b3b ldr r3, [r7, #48] @ 0x30
  30696. 800d444: 2bc0 cmp r3, #192 @ 0xc0
  30697. 800d446: f000 8088 beq.w 800d55a <HAL_RCCEx_GetPeriphCLKFreq+0x282>
  30698. 800d44a: 6b3b ldr r3, [r7, #48] @ 0x30
  30699. 800d44c: 2bc0 cmp r3, #192 @ 0xc0
  30700. 800d44e: f200 8088 bhi.w 800d562 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  30701. 800d452: 6b3b ldr r3, [r7, #48] @ 0x30
  30702. 800d454: 2b80 cmp r3, #128 @ 0x80
  30703. 800d456: d032 beq.n 800d4be <HAL_RCCEx_GetPeriphCLKFreq+0x1e6>
  30704. 800d458: 6b3b ldr r3, [r7, #48] @ 0x30
  30705. 800d45a: 2b80 cmp r3, #128 @ 0x80
  30706. 800d45c: f200 8081 bhi.w 800d562 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  30707. 800d460: 6b3b ldr r3, [r7, #48] @ 0x30
  30708. 800d462: 2b00 cmp r3, #0
  30709. 800d464: d003 beq.n 800d46e <HAL_RCCEx_GetPeriphCLKFreq+0x196>
  30710. 800d466: 6b3b ldr r3, [r7, #48] @ 0x30
  30711. 800d468: 2b40 cmp r3, #64 @ 0x40
  30712. 800d46a: d014 beq.n 800d496 <HAL_RCCEx_GetPeriphCLKFreq+0x1be>
  30713. 800d46c: e079 b.n 800d562 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  30714. {
  30715. case RCC_SAI23CLKSOURCE_PLL: /* PLL1 is the clock source for SAI2/3 */
  30716. {
  30717. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  30718. 800d46e: 4b3f ldr r3, [pc, #252] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30719. 800d470: 681b ldr r3, [r3, #0]
  30720. 800d472: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  30721. 800d476: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  30722. 800d47a: d108 bne.n 800d48e <HAL_RCCEx_GetPeriphCLKFreq+0x1b6>
  30723. {
  30724. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  30725. 800d47c: f107 0324 add.w r3, r7, #36 @ 0x24
  30726. 800d480: 4618 mov r0, r3
  30727. 800d482: f000 ff67 bl 800e354 <HAL_RCCEx_GetPLL1ClockFreq>
  30728. frequency = pll1_clocks.PLL1_Q_Frequency;
  30729. 800d486: 6abb ldr r3, [r7, #40] @ 0x28
  30730. 800d488: 63fb str r3, [r7, #60] @ 0x3c
  30731. }
  30732. else
  30733. {
  30734. frequency = 0;
  30735. }
  30736. break;
  30737. 800d48a: f000 bc9c b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30738. frequency = 0;
  30739. 800d48e: 2300 movs r3, #0
  30740. 800d490: 63fb str r3, [r7, #60] @ 0x3c
  30741. break;
  30742. 800d492: f000 bc98 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30743. }
  30744. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI2/3 */
  30745. {
  30746. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  30747. 800d496: 4b35 ldr r3, [pc, #212] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30748. 800d498: 681b ldr r3, [r3, #0]
  30749. 800d49a: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  30750. 800d49e: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  30751. 800d4a2: d108 bne.n 800d4b6 <HAL_RCCEx_GetPeriphCLKFreq+0x1de>
  30752. {
  30753. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  30754. 800d4a4: f107 0318 add.w r3, r7, #24
  30755. 800d4a8: 4618 mov r0, r3
  30756. 800d4aa: f000 fcab bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  30757. frequency = pll2_clocks.PLL2_P_Frequency;
  30758. 800d4ae: 69bb ldr r3, [r7, #24]
  30759. 800d4b0: 63fb str r3, [r7, #60] @ 0x3c
  30760. }
  30761. else
  30762. {
  30763. frequency = 0;
  30764. }
  30765. break;
  30766. 800d4b2: f000 bc88 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30767. frequency = 0;
  30768. 800d4b6: 2300 movs r3, #0
  30769. 800d4b8: 63fb str r3, [r7, #60] @ 0x3c
  30770. break;
  30771. 800d4ba: f000 bc84 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30772. }
  30773. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI2/3 */
  30774. {
  30775. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  30776. 800d4be: 4b2b ldr r3, [pc, #172] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30777. 800d4c0: 681b ldr r3, [r3, #0]
  30778. 800d4c2: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  30779. 800d4c6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30780. 800d4ca: d108 bne.n 800d4de <HAL_RCCEx_GetPeriphCLKFreq+0x206>
  30781. {
  30782. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  30783. 800d4cc: f107 030c add.w r3, r7, #12
  30784. 800d4d0: 4618 mov r0, r3
  30785. 800d4d2: f000 fdeb bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  30786. frequency = pll3_clocks.PLL3_P_Frequency;
  30787. 800d4d6: 68fb ldr r3, [r7, #12]
  30788. 800d4d8: 63fb str r3, [r7, #60] @ 0x3c
  30789. }
  30790. else
  30791. {
  30792. frequency = 0;
  30793. }
  30794. break;
  30795. 800d4da: f000 bc74 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30796. frequency = 0;
  30797. 800d4de: 2300 movs r3, #0
  30798. 800d4e0: 63fb str r3, [r7, #60] @ 0x3c
  30799. break;
  30800. 800d4e2: f000 bc70 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30801. }
  30802. case RCC_SAI23CLKSOURCE_CLKP: /* CKPER is the clock source for SAI2/3 */
  30803. {
  30804. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  30805. 800d4e6: 4b21 ldr r3, [pc, #132] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30806. 800d4e8: 6cdb ldr r3, [r3, #76] @ 0x4c
  30807. 800d4ea: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  30808. 800d4ee: 637b str r3, [r7, #52] @ 0x34
  30809. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  30810. 800d4f0: 4b1e ldr r3, [pc, #120] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30811. 800d4f2: 681b ldr r3, [r3, #0]
  30812. 800d4f4: f003 0304 and.w r3, r3, #4
  30813. 800d4f8: 2b04 cmp r3, #4
  30814. 800d4fa: d10c bne.n 800d516 <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  30815. 800d4fc: 6b7b ldr r3, [r7, #52] @ 0x34
  30816. 800d4fe: 2b00 cmp r3, #0
  30817. 800d500: d109 bne.n 800d516 <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  30818. {
  30819. /* In Case the CKPER Source is HSI */
  30820. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  30821. 800d502: 4b1a ldr r3, [pc, #104] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30822. 800d504: 681b ldr r3, [r3, #0]
  30823. 800d506: 08db lsrs r3, r3, #3
  30824. 800d508: f003 0303 and.w r3, r3, #3
  30825. 800d50c: 4a18 ldr r2, [pc, #96] @ (800d570 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  30826. 800d50e: fa22 f303 lsr.w r3, r2, r3
  30827. 800d512: 63fb str r3, [r7, #60] @ 0x3c
  30828. 800d514: e01f b.n 800d556 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  30829. }
  30830. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  30831. 800d516: 4b15 ldr r3, [pc, #84] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30832. 800d518: 681b ldr r3, [r3, #0]
  30833. 800d51a: f403 7380 and.w r3, r3, #256 @ 0x100
  30834. 800d51e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30835. 800d522: d106 bne.n 800d532 <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  30836. 800d524: 6b7b ldr r3, [r7, #52] @ 0x34
  30837. 800d526: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30838. 800d52a: d102 bne.n 800d532 <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  30839. {
  30840. /* In Case the CKPER Source is CSI */
  30841. frequency = CSI_VALUE;
  30842. 800d52c: 4b11 ldr r3, [pc, #68] @ (800d574 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  30843. 800d52e: 63fb str r3, [r7, #60] @ 0x3c
  30844. 800d530: e011 b.n 800d556 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  30845. }
  30846. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  30847. 800d532: 4b0e ldr r3, [pc, #56] @ (800d56c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30848. 800d534: 681b ldr r3, [r3, #0]
  30849. 800d536: f403 3300 and.w r3, r3, #131072 @ 0x20000
  30850. 800d53a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  30851. 800d53e: d106 bne.n 800d54e <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  30852. 800d540: 6b7b ldr r3, [r7, #52] @ 0x34
  30853. 800d542: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30854. 800d546: d102 bne.n 800d54e <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  30855. {
  30856. /* In Case the CKPER Source is HSE */
  30857. frequency = HSE_VALUE;
  30858. 800d548: 4b0b ldr r3, [pc, #44] @ (800d578 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  30859. 800d54a: 63fb str r3, [r7, #60] @ 0x3c
  30860. 800d54c: e003 b.n 800d556 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  30861. }
  30862. else
  30863. {
  30864. /* In Case the CKPER is disabled*/
  30865. frequency = 0;
  30866. 800d54e: 2300 movs r3, #0
  30867. 800d550: 63fb str r3, [r7, #60] @ 0x3c
  30868. }
  30869. break;
  30870. 800d552: f000 bc38 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30871. 800d556: f000 bc36 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30872. }
  30873. case (RCC_SAI23CLKSOURCE_PIN): /* External clock is the clock source for SAI2/3 */
  30874. {
  30875. frequency = EXTERNAL_CLOCK_VALUE;
  30876. 800d55a: 4b08 ldr r3, [pc, #32] @ (800d57c <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  30877. 800d55c: 63fb str r3, [r7, #60] @ 0x3c
  30878. break;
  30879. 800d55e: f000 bc32 b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30880. }
  30881. default :
  30882. {
  30883. frequency = 0;
  30884. 800d562: 2300 movs r3, #0
  30885. 800d564: 63fb str r3, [r7, #60] @ 0x3c
  30886. break;
  30887. 800d566: f000 bc2e b.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30888. 800d56a: bf00 nop
  30889. 800d56c: 58024400 .word 0x58024400
  30890. 800d570: 03d09000 .word 0x03d09000
  30891. 800d574: 003d0900 .word 0x003d0900
  30892. 800d578: 017d7840 .word 0x017d7840
  30893. 800d57c: 00bb8000 .word 0x00bb8000
  30894. }
  30895. }
  30896. #endif
  30897. #if defined(SAI4)
  30898. else if (PeriphClk == RCC_PERIPHCLK_SAI4A)
  30899. 800d580: e9d7 2300 ldrd r2, r3, [r7]
  30900. 800d584: f5a2 6180 sub.w r1, r2, #1024 @ 0x400
  30901. 800d588: 430b orrs r3, r1
  30902. 800d58a: f040 809c bne.w 800d6c6 <HAL_RCCEx_GetPeriphCLKFreq+0x3ee>
  30903. {
  30904. saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE();
  30905. 800d58e: 4b9e ldr r3, [pc, #632] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  30906. 800d590: 6d9b ldr r3, [r3, #88] @ 0x58
  30907. 800d592: f403 0360 and.w r3, r3, #14680064 @ 0xe00000
  30908. 800d596: 633b str r3, [r7, #48] @ 0x30
  30909. switch (saiclocksource)
  30910. 800d598: 6b3b ldr r3, [r7, #48] @ 0x30
  30911. 800d59a: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  30912. 800d59e: d054 beq.n 800d64a <HAL_RCCEx_GetPeriphCLKFreq+0x372>
  30913. 800d5a0: 6b3b ldr r3, [r7, #48] @ 0x30
  30914. 800d5a2: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  30915. 800d5a6: f200 808b bhi.w 800d6c0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  30916. 800d5aa: 6b3b ldr r3, [r7, #48] @ 0x30
  30917. 800d5ac: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  30918. 800d5b0: f000 8083 beq.w 800d6ba <HAL_RCCEx_GetPeriphCLKFreq+0x3e2>
  30919. 800d5b4: 6b3b ldr r3, [r7, #48] @ 0x30
  30920. 800d5b6: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  30921. 800d5ba: f200 8081 bhi.w 800d6c0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  30922. 800d5be: 6b3b ldr r3, [r7, #48] @ 0x30
  30923. 800d5c0: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  30924. 800d5c4: d02f beq.n 800d626 <HAL_RCCEx_GetPeriphCLKFreq+0x34e>
  30925. 800d5c6: 6b3b ldr r3, [r7, #48] @ 0x30
  30926. 800d5c8: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  30927. 800d5cc: d878 bhi.n 800d6c0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  30928. 800d5ce: 6b3b ldr r3, [r7, #48] @ 0x30
  30929. 800d5d0: 2b00 cmp r3, #0
  30930. 800d5d2: d004 beq.n 800d5de <HAL_RCCEx_GetPeriphCLKFreq+0x306>
  30931. 800d5d4: 6b3b ldr r3, [r7, #48] @ 0x30
  30932. 800d5d6: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  30933. 800d5da: d012 beq.n 800d602 <HAL_RCCEx_GetPeriphCLKFreq+0x32a>
  30934. 800d5dc: e070 b.n 800d6c0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  30935. {
  30936. case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */
  30937. {
  30938. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  30939. 800d5de: 4b8a ldr r3, [pc, #552] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  30940. 800d5e0: 681b ldr r3, [r3, #0]
  30941. 800d5e2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  30942. 800d5e6: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  30943. 800d5ea: d107 bne.n 800d5fc <HAL_RCCEx_GetPeriphCLKFreq+0x324>
  30944. {
  30945. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  30946. 800d5ec: f107 0324 add.w r3, r7, #36 @ 0x24
  30947. 800d5f0: 4618 mov r0, r3
  30948. 800d5f2: f000 feaf bl 800e354 <HAL_RCCEx_GetPLL1ClockFreq>
  30949. frequency = pll1_clocks.PLL1_Q_Frequency;
  30950. 800d5f6: 6abb ldr r3, [r7, #40] @ 0x28
  30951. 800d5f8: 63fb str r3, [r7, #60] @ 0x3c
  30952. }
  30953. else
  30954. {
  30955. frequency = 0;
  30956. }
  30957. break;
  30958. 800d5fa: e3e4 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30959. frequency = 0;
  30960. 800d5fc: 2300 movs r3, #0
  30961. 800d5fe: 63fb str r3, [r7, #60] @ 0x3c
  30962. break;
  30963. 800d600: e3e1 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30964. }
  30965. case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */
  30966. {
  30967. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  30968. 800d602: 4b81 ldr r3, [pc, #516] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  30969. 800d604: 681b ldr r3, [r3, #0]
  30970. 800d606: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  30971. 800d60a: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  30972. 800d60e: d107 bne.n 800d620 <HAL_RCCEx_GetPeriphCLKFreq+0x348>
  30973. {
  30974. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  30975. 800d610: f107 0318 add.w r3, r7, #24
  30976. 800d614: 4618 mov r0, r3
  30977. 800d616: f000 fbf5 bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  30978. frequency = pll2_clocks.PLL2_P_Frequency;
  30979. 800d61a: 69bb ldr r3, [r7, #24]
  30980. 800d61c: 63fb str r3, [r7, #60] @ 0x3c
  30981. }
  30982. else
  30983. {
  30984. frequency = 0;
  30985. }
  30986. break;
  30987. 800d61e: e3d2 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30988. frequency = 0;
  30989. 800d620: 2300 movs r3, #0
  30990. 800d622: 63fb str r3, [r7, #60] @ 0x3c
  30991. break;
  30992. 800d624: e3cf b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30993. }
  30994. case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */
  30995. {
  30996. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  30997. 800d626: 4b78 ldr r3, [pc, #480] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  30998. 800d628: 681b ldr r3, [r3, #0]
  30999. 800d62a: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31000. 800d62e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31001. 800d632: d107 bne.n 800d644 <HAL_RCCEx_GetPeriphCLKFreq+0x36c>
  31002. {
  31003. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31004. 800d634: f107 030c add.w r3, r7, #12
  31005. 800d638: 4618 mov r0, r3
  31006. 800d63a: f000 fd37 bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  31007. frequency = pll3_clocks.PLL3_P_Frequency;
  31008. 800d63e: 68fb ldr r3, [r7, #12]
  31009. 800d640: 63fb str r3, [r7, #60] @ 0x3c
  31010. }
  31011. else
  31012. {
  31013. frequency = 0;
  31014. }
  31015. break;
  31016. 800d642: e3c0 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31017. frequency = 0;
  31018. 800d644: 2300 movs r3, #0
  31019. 800d646: 63fb str r3, [r7, #60] @ 0x3c
  31020. break;
  31021. 800d648: e3bd b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31022. }
  31023. case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/
  31024. {
  31025. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31026. 800d64a: 4b6f ldr r3, [pc, #444] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31027. 800d64c: 6cdb ldr r3, [r3, #76] @ 0x4c
  31028. 800d64e: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31029. 800d652: 637b str r3, [r7, #52] @ 0x34
  31030. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31031. 800d654: 4b6c ldr r3, [pc, #432] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31032. 800d656: 681b ldr r3, [r3, #0]
  31033. 800d658: f003 0304 and.w r3, r3, #4
  31034. 800d65c: 2b04 cmp r3, #4
  31035. 800d65e: d10c bne.n 800d67a <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  31036. 800d660: 6b7b ldr r3, [r7, #52] @ 0x34
  31037. 800d662: 2b00 cmp r3, #0
  31038. 800d664: d109 bne.n 800d67a <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  31039. {
  31040. /* In Case the CKPER Source is HSI */
  31041. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31042. 800d666: 4b68 ldr r3, [pc, #416] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31043. 800d668: 681b ldr r3, [r3, #0]
  31044. 800d66a: 08db lsrs r3, r3, #3
  31045. 800d66c: f003 0303 and.w r3, r3, #3
  31046. 800d670: 4a66 ldr r2, [pc, #408] @ (800d80c <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  31047. 800d672: fa22 f303 lsr.w r3, r2, r3
  31048. 800d676: 63fb str r3, [r7, #60] @ 0x3c
  31049. 800d678: e01e b.n 800d6b8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  31050. }
  31051. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31052. 800d67a: 4b63 ldr r3, [pc, #396] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31053. 800d67c: 681b ldr r3, [r3, #0]
  31054. 800d67e: f403 7380 and.w r3, r3, #256 @ 0x100
  31055. 800d682: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31056. 800d686: d106 bne.n 800d696 <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  31057. 800d688: 6b7b ldr r3, [r7, #52] @ 0x34
  31058. 800d68a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31059. 800d68e: d102 bne.n 800d696 <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  31060. {
  31061. /* In Case the CKPER Source is CSI */
  31062. frequency = CSI_VALUE;
  31063. 800d690: 4b5f ldr r3, [pc, #380] @ (800d810 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  31064. 800d692: 63fb str r3, [r7, #60] @ 0x3c
  31065. 800d694: e010 b.n 800d6b8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  31066. }
  31067. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31068. 800d696: 4b5c ldr r3, [pc, #368] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31069. 800d698: 681b ldr r3, [r3, #0]
  31070. 800d69a: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31071. 800d69e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31072. 800d6a2: d106 bne.n 800d6b2 <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  31073. 800d6a4: 6b7b ldr r3, [r7, #52] @ 0x34
  31074. 800d6a6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31075. 800d6aa: d102 bne.n 800d6b2 <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  31076. {
  31077. /* In Case the CKPER Source is HSE */
  31078. frequency = HSE_VALUE;
  31079. 800d6ac: 4b59 ldr r3, [pc, #356] @ (800d814 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  31080. 800d6ae: 63fb str r3, [r7, #60] @ 0x3c
  31081. 800d6b0: e002 b.n 800d6b8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  31082. }
  31083. else
  31084. {
  31085. /* In Case the CKPER is disabled*/
  31086. frequency = 0;
  31087. 800d6b2: 2300 movs r3, #0
  31088. 800d6b4: 63fb str r3, [r7, #60] @ 0x3c
  31089. }
  31090. break;
  31091. 800d6b6: e386 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31092. 800d6b8: e385 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31093. }
  31094. case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */
  31095. {
  31096. frequency = EXTERNAL_CLOCK_VALUE;
  31097. 800d6ba: 4b57 ldr r3, [pc, #348] @ (800d818 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  31098. 800d6bc: 63fb str r3, [r7, #60] @ 0x3c
  31099. break;
  31100. 800d6be: e382 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31101. }
  31102. default :
  31103. {
  31104. frequency = 0;
  31105. 800d6c0: 2300 movs r3, #0
  31106. 800d6c2: 63fb str r3, [r7, #60] @ 0x3c
  31107. break;
  31108. 800d6c4: e37f b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31109. }
  31110. }
  31111. }
  31112. else if (PeriphClk == RCC_PERIPHCLK_SAI4B)
  31113. 800d6c6: e9d7 2300 ldrd r2, r3, [r7]
  31114. 800d6ca: f5a2 6100 sub.w r1, r2, #2048 @ 0x800
  31115. 800d6ce: 430b orrs r3, r1
  31116. 800d6d0: f040 80a7 bne.w 800d822 <HAL_RCCEx_GetPeriphCLKFreq+0x54a>
  31117. {
  31118. saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE();
  31119. 800d6d4: 4b4c ldr r3, [pc, #304] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31120. 800d6d6: 6d9b ldr r3, [r3, #88] @ 0x58
  31121. 800d6d8: f003 63e0 and.w r3, r3, #117440512 @ 0x7000000
  31122. 800d6dc: 633b str r3, [r7, #48] @ 0x30
  31123. switch (saiclocksource)
  31124. 800d6de: 6b3b ldr r3, [r7, #48] @ 0x30
  31125. 800d6e0: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  31126. 800d6e4: d055 beq.n 800d792 <HAL_RCCEx_GetPeriphCLKFreq+0x4ba>
  31127. 800d6e6: 6b3b ldr r3, [r7, #48] @ 0x30
  31128. 800d6e8: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  31129. 800d6ec: f200 8096 bhi.w 800d81c <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31130. 800d6f0: 6b3b ldr r3, [r7, #48] @ 0x30
  31131. 800d6f2: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  31132. 800d6f6: f000 8084 beq.w 800d802 <HAL_RCCEx_GetPeriphCLKFreq+0x52a>
  31133. 800d6fa: 6b3b ldr r3, [r7, #48] @ 0x30
  31134. 800d6fc: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  31135. 800d700: f200 808c bhi.w 800d81c <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31136. 800d704: 6b3b ldr r3, [r7, #48] @ 0x30
  31137. 800d706: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31138. 800d70a: d030 beq.n 800d76e <HAL_RCCEx_GetPeriphCLKFreq+0x496>
  31139. 800d70c: 6b3b ldr r3, [r7, #48] @ 0x30
  31140. 800d70e: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31141. 800d712: f200 8083 bhi.w 800d81c <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31142. 800d716: 6b3b ldr r3, [r7, #48] @ 0x30
  31143. 800d718: 2b00 cmp r3, #0
  31144. 800d71a: d004 beq.n 800d726 <HAL_RCCEx_GetPeriphCLKFreq+0x44e>
  31145. 800d71c: 6b3b ldr r3, [r7, #48] @ 0x30
  31146. 800d71e: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  31147. 800d722: d012 beq.n 800d74a <HAL_RCCEx_GetPeriphCLKFreq+0x472>
  31148. 800d724: e07a b.n 800d81c <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31149. {
  31150. case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */
  31151. {
  31152. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31153. 800d726: 4b38 ldr r3, [pc, #224] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31154. 800d728: 681b ldr r3, [r3, #0]
  31155. 800d72a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31156. 800d72e: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31157. 800d732: d107 bne.n 800d744 <HAL_RCCEx_GetPeriphCLKFreq+0x46c>
  31158. {
  31159. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31160. 800d734: f107 0324 add.w r3, r7, #36 @ 0x24
  31161. 800d738: 4618 mov r0, r3
  31162. 800d73a: f000 fe0b bl 800e354 <HAL_RCCEx_GetPLL1ClockFreq>
  31163. frequency = pll1_clocks.PLL1_Q_Frequency;
  31164. 800d73e: 6abb ldr r3, [r7, #40] @ 0x28
  31165. 800d740: 63fb str r3, [r7, #60] @ 0x3c
  31166. }
  31167. else
  31168. {
  31169. frequency = 0;
  31170. }
  31171. break;
  31172. 800d742: e340 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31173. frequency = 0;
  31174. 800d744: 2300 movs r3, #0
  31175. 800d746: 63fb str r3, [r7, #60] @ 0x3c
  31176. break;
  31177. 800d748: e33d b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31178. }
  31179. case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */
  31180. {
  31181. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31182. 800d74a: 4b2f ldr r3, [pc, #188] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31183. 800d74c: 681b ldr r3, [r3, #0]
  31184. 800d74e: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31185. 800d752: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31186. 800d756: d107 bne.n 800d768 <HAL_RCCEx_GetPeriphCLKFreq+0x490>
  31187. {
  31188. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31189. 800d758: f107 0318 add.w r3, r7, #24
  31190. 800d75c: 4618 mov r0, r3
  31191. 800d75e: f000 fb51 bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  31192. frequency = pll2_clocks.PLL2_P_Frequency;
  31193. 800d762: 69bb ldr r3, [r7, #24]
  31194. 800d764: 63fb str r3, [r7, #60] @ 0x3c
  31195. }
  31196. else
  31197. {
  31198. frequency = 0;
  31199. }
  31200. break;
  31201. 800d766: e32e b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31202. frequency = 0;
  31203. 800d768: 2300 movs r3, #0
  31204. 800d76a: 63fb str r3, [r7, #60] @ 0x3c
  31205. break;
  31206. 800d76c: e32b b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31207. }
  31208. case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */
  31209. {
  31210. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31211. 800d76e: 4b26 ldr r3, [pc, #152] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31212. 800d770: 681b ldr r3, [r3, #0]
  31213. 800d772: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31214. 800d776: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31215. 800d77a: d107 bne.n 800d78c <HAL_RCCEx_GetPeriphCLKFreq+0x4b4>
  31216. {
  31217. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31218. 800d77c: f107 030c add.w r3, r7, #12
  31219. 800d780: 4618 mov r0, r3
  31220. 800d782: f000 fc93 bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  31221. frequency = pll3_clocks.PLL3_P_Frequency;
  31222. 800d786: 68fb ldr r3, [r7, #12]
  31223. 800d788: 63fb str r3, [r7, #60] @ 0x3c
  31224. }
  31225. else
  31226. {
  31227. frequency = 0;
  31228. }
  31229. break;
  31230. 800d78a: e31c b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31231. frequency = 0;
  31232. 800d78c: 2300 movs r3, #0
  31233. 800d78e: 63fb str r3, [r7, #60] @ 0x3c
  31234. break;
  31235. 800d790: e319 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31236. }
  31237. case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/
  31238. {
  31239. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31240. 800d792: 4b1d ldr r3, [pc, #116] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31241. 800d794: 6cdb ldr r3, [r3, #76] @ 0x4c
  31242. 800d796: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31243. 800d79a: 637b str r3, [r7, #52] @ 0x34
  31244. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31245. 800d79c: 4b1a ldr r3, [pc, #104] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31246. 800d79e: 681b ldr r3, [r3, #0]
  31247. 800d7a0: f003 0304 and.w r3, r3, #4
  31248. 800d7a4: 2b04 cmp r3, #4
  31249. 800d7a6: d10c bne.n 800d7c2 <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  31250. 800d7a8: 6b7b ldr r3, [r7, #52] @ 0x34
  31251. 800d7aa: 2b00 cmp r3, #0
  31252. 800d7ac: d109 bne.n 800d7c2 <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  31253. {
  31254. /* In Case the CKPER Source is HSI */
  31255. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31256. 800d7ae: 4b16 ldr r3, [pc, #88] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31257. 800d7b0: 681b ldr r3, [r3, #0]
  31258. 800d7b2: 08db lsrs r3, r3, #3
  31259. 800d7b4: f003 0303 and.w r3, r3, #3
  31260. 800d7b8: 4a14 ldr r2, [pc, #80] @ (800d80c <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  31261. 800d7ba: fa22 f303 lsr.w r3, r2, r3
  31262. 800d7be: 63fb str r3, [r7, #60] @ 0x3c
  31263. 800d7c0: e01e b.n 800d800 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  31264. }
  31265. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31266. 800d7c2: 4b11 ldr r3, [pc, #68] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31267. 800d7c4: 681b ldr r3, [r3, #0]
  31268. 800d7c6: f403 7380 and.w r3, r3, #256 @ 0x100
  31269. 800d7ca: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31270. 800d7ce: d106 bne.n 800d7de <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  31271. 800d7d0: 6b7b ldr r3, [r7, #52] @ 0x34
  31272. 800d7d2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31273. 800d7d6: d102 bne.n 800d7de <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  31274. {
  31275. /* In Case the CKPER Source is CSI */
  31276. frequency = CSI_VALUE;
  31277. 800d7d8: 4b0d ldr r3, [pc, #52] @ (800d810 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  31278. 800d7da: 63fb str r3, [r7, #60] @ 0x3c
  31279. 800d7dc: e010 b.n 800d800 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  31280. }
  31281. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31282. 800d7de: 4b0a ldr r3, [pc, #40] @ (800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31283. 800d7e0: 681b ldr r3, [r3, #0]
  31284. 800d7e2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31285. 800d7e6: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31286. 800d7ea: d106 bne.n 800d7fa <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  31287. 800d7ec: 6b7b ldr r3, [r7, #52] @ 0x34
  31288. 800d7ee: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31289. 800d7f2: d102 bne.n 800d7fa <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  31290. {
  31291. /* In Case the CKPER Source is HSE */
  31292. frequency = HSE_VALUE;
  31293. 800d7f4: 4b07 ldr r3, [pc, #28] @ (800d814 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  31294. 800d7f6: 63fb str r3, [r7, #60] @ 0x3c
  31295. 800d7f8: e002 b.n 800d800 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  31296. }
  31297. else
  31298. {
  31299. /* In Case the CKPER is disabled*/
  31300. frequency = 0;
  31301. 800d7fa: 2300 movs r3, #0
  31302. 800d7fc: 63fb str r3, [r7, #60] @ 0x3c
  31303. }
  31304. break;
  31305. 800d7fe: e2e2 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31306. 800d800: e2e1 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31307. }
  31308. case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */
  31309. {
  31310. frequency = EXTERNAL_CLOCK_VALUE;
  31311. 800d802: 4b05 ldr r3, [pc, #20] @ (800d818 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  31312. 800d804: 63fb str r3, [r7, #60] @ 0x3c
  31313. break;
  31314. 800d806: e2de b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31315. 800d808: 58024400 .word 0x58024400
  31316. 800d80c: 03d09000 .word 0x03d09000
  31317. 800d810: 003d0900 .word 0x003d0900
  31318. 800d814: 017d7840 .word 0x017d7840
  31319. 800d818: 00bb8000 .word 0x00bb8000
  31320. }
  31321. default :
  31322. {
  31323. frequency = 0;
  31324. 800d81c: 2300 movs r3, #0
  31325. 800d81e: 63fb str r3, [r7, #60] @ 0x3c
  31326. break;
  31327. 800d820: e2d1 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31328. }
  31329. }
  31330. }
  31331. #endif /*SAI4*/
  31332. else if (PeriphClk == RCC_PERIPHCLK_SPI123)
  31333. 800d822: e9d7 2300 ldrd r2, r3, [r7]
  31334. 800d826: f5a2 5180 sub.w r1, r2, #4096 @ 0x1000
  31335. 800d82a: 430b orrs r3, r1
  31336. 800d82c: f040 809c bne.w 800d968 <HAL_RCCEx_GetPeriphCLKFreq+0x690>
  31337. {
  31338. /* Get SPI1/2/3 clock source */
  31339. srcclk = __HAL_RCC_GET_SPI123_SOURCE();
  31340. 800d830: 4b93 ldr r3, [pc, #588] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31341. 800d832: 6d1b ldr r3, [r3, #80] @ 0x50
  31342. 800d834: f403 43e0 and.w r3, r3, #28672 @ 0x7000
  31343. 800d838: 63bb str r3, [r7, #56] @ 0x38
  31344. switch (srcclk)
  31345. 800d83a: 6bbb ldr r3, [r7, #56] @ 0x38
  31346. 800d83c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31347. 800d840: d054 beq.n 800d8ec <HAL_RCCEx_GetPeriphCLKFreq+0x614>
  31348. 800d842: 6bbb ldr r3, [r7, #56] @ 0x38
  31349. 800d844: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31350. 800d848: f200 808b bhi.w 800d962 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31351. 800d84c: 6bbb ldr r3, [r7, #56] @ 0x38
  31352. 800d84e: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  31353. 800d852: f000 8083 beq.w 800d95c <HAL_RCCEx_GetPeriphCLKFreq+0x684>
  31354. 800d856: 6bbb ldr r3, [r7, #56] @ 0x38
  31355. 800d858: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  31356. 800d85c: f200 8081 bhi.w 800d962 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31357. 800d860: 6bbb ldr r3, [r7, #56] @ 0x38
  31358. 800d862: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  31359. 800d866: d02f beq.n 800d8c8 <HAL_RCCEx_GetPeriphCLKFreq+0x5f0>
  31360. 800d868: 6bbb ldr r3, [r7, #56] @ 0x38
  31361. 800d86a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  31362. 800d86e: d878 bhi.n 800d962 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31363. 800d870: 6bbb ldr r3, [r7, #56] @ 0x38
  31364. 800d872: 2b00 cmp r3, #0
  31365. 800d874: d004 beq.n 800d880 <HAL_RCCEx_GetPeriphCLKFreq+0x5a8>
  31366. 800d876: 6bbb ldr r3, [r7, #56] @ 0x38
  31367. 800d878: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31368. 800d87c: d012 beq.n 800d8a4 <HAL_RCCEx_GetPeriphCLKFreq+0x5cc>
  31369. 800d87e: e070 b.n 800d962 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31370. {
  31371. case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */
  31372. {
  31373. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31374. 800d880: 4b7f ldr r3, [pc, #508] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31375. 800d882: 681b ldr r3, [r3, #0]
  31376. 800d884: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31377. 800d888: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31378. 800d88c: d107 bne.n 800d89e <HAL_RCCEx_GetPeriphCLKFreq+0x5c6>
  31379. {
  31380. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31381. 800d88e: f107 0324 add.w r3, r7, #36 @ 0x24
  31382. 800d892: 4618 mov r0, r3
  31383. 800d894: f000 fd5e bl 800e354 <HAL_RCCEx_GetPLL1ClockFreq>
  31384. frequency = pll1_clocks.PLL1_Q_Frequency;
  31385. 800d898: 6abb ldr r3, [r7, #40] @ 0x28
  31386. 800d89a: 63fb str r3, [r7, #60] @ 0x3c
  31387. }
  31388. else
  31389. {
  31390. frequency = 0;
  31391. }
  31392. break;
  31393. 800d89c: e293 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31394. frequency = 0;
  31395. 800d89e: 2300 movs r3, #0
  31396. 800d8a0: 63fb str r3, [r7, #60] @ 0x3c
  31397. break;
  31398. 800d8a2: e290 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31399. }
  31400. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */
  31401. {
  31402. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31403. 800d8a4: 4b76 ldr r3, [pc, #472] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31404. 800d8a6: 681b ldr r3, [r3, #0]
  31405. 800d8a8: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31406. 800d8ac: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31407. 800d8b0: d107 bne.n 800d8c2 <HAL_RCCEx_GetPeriphCLKFreq+0x5ea>
  31408. {
  31409. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31410. 800d8b2: f107 0318 add.w r3, r7, #24
  31411. 800d8b6: 4618 mov r0, r3
  31412. 800d8b8: f000 faa4 bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  31413. frequency = pll2_clocks.PLL2_P_Frequency;
  31414. 800d8bc: 69bb ldr r3, [r7, #24]
  31415. 800d8be: 63fb str r3, [r7, #60] @ 0x3c
  31416. }
  31417. else
  31418. {
  31419. frequency = 0;
  31420. }
  31421. break;
  31422. 800d8c0: e281 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31423. frequency = 0;
  31424. 800d8c2: 2300 movs r3, #0
  31425. 800d8c4: 63fb str r3, [r7, #60] @ 0x3c
  31426. break;
  31427. 800d8c6: e27e b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31428. }
  31429. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */
  31430. {
  31431. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31432. 800d8c8: 4b6d ldr r3, [pc, #436] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31433. 800d8ca: 681b ldr r3, [r3, #0]
  31434. 800d8cc: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31435. 800d8d0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31436. 800d8d4: d107 bne.n 800d8e6 <HAL_RCCEx_GetPeriphCLKFreq+0x60e>
  31437. {
  31438. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31439. 800d8d6: f107 030c add.w r3, r7, #12
  31440. 800d8da: 4618 mov r0, r3
  31441. 800d8dc: f000 fbe6 bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  31442. frequency = pll3_clocks.PLL3_P_Frequency;
  31443. 800d8e0: 68fb ldr r3, [r7, #12]
  31444. 800d8e2: 63fb str r3, [r7, #60] @ 0x3c
  31445. }
  31446. else
  31447. {
  31448. frequency = 0;
  31449. }
  31450. break;
  31451. 800d8e4: e26f b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31452. frequency = 0;
  31453. 800d8e6: 2300 movs r3, #0
  31454. 800d8e8: 63fb str r3, [r7, #60] @ 0x3c
  31455. break;
  31456. 800d8ea: e26c b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31457. }
  31458. case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */
  31459. {
  31460. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31461. 800d8ec: 4b64 ldr r3, [pc, #400] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31462. 800d8ee: 6cdb ldr r3, [r3, #76] @ 0x4c
  31463. 800d8f0: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31464. 800d8f4: 637b str r3, [r7, #52] @ 0x34
  31465. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31466. 800d8f6: 4b62 ldr r3, [pc, #392] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31467. 800d8f8: 681b ldr r3, [r3, #0]
  31468. 800d8fa: f003 0304 and.w r3, r3, #4
  31469. 800d8fe: 2b04 cmp r3, #4
  31470. 800d900: d10c bne.n 800d91c <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  31471. 800d902: 6b7b ldr r3, [r7, #52] @ 0x34
  31472. 800d904: 2b00 cmp r3, #0
  31473. 800d906: d109 bne.n 800d91c <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  31474. {
  31475. /* In Case the CKPER Source is HSI */
  31476. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31477. 800d908: 4b5d ldr r3, [pc, #372] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31478. 800d90a: 681b ldr r3, [r3, #0]
  31479. 800d90c: 08db lsrs r3, r3, #3
  31480. 800d90e: f003 0303 and.w r3, r3, #3
  31481. 800d912: 4a5c ldr r2, [pc, #368] @ (800da84 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  31482. 800d914: fa22 f303 lsr.w r3, r2, r3
  31483. 800d918: 63fb str r3, [r7, #60] @ 0x3c
  31484. 800d91a: e01e b.n 800d95a <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  31485. }
  31486. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31487. 800d91c: 4b58 ldr r3, [pc, #352] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31488. 800d91e: 681b ldr r3, [r3, #0]
  31489. 800d920: f403 7380 and.w r3, r3, #256 @ 0x100
  31490. 800d924: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31491. 800d928: d106 bne.n 800d938 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  31492. 800d92a: 6b7b ldr r3, [r7, #52] @ 0x34
  31493. 800d92c: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31494. 800d930: d102 bne.n 800d938 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  31495. {
  31496. /* In Case the CKPER Source is CSI */
  31497. frequency = CSI_VALUE;
  31498. 800d932: 4b55 ldr r3, [pc, #340] @ (800da88 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  31499. 800d934: 63fb str r3, [r7, #60] @ 0x3c
  31500. 800d936: e010 b.n 800d95a <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  31501. }
  31502. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31503. 800d938: 4b51 ldr r3, [pc, #324] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31504. 800d93a: 681b ldr r3, [r3, #0]
  31505. 800d93c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31506. 800d940: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31507. 800d944: d106 bne.n 800d954 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  31508. 800d946: 6b7b ldr r3, [r7, #52] @ 0x34
  31509. 800d948: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31510. 800d94c: d102 bne.n 800d954 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  31511. {
  31512. /* In Case the CKPER Source is HSE */
  31513. frequency = HSE_VALUE;
  31514. 800d94e: 4b4f ldr r3, [pc, #316] @ (800da8c <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  31515. 800d950: 63fb str r3, [r7, #60] @ 0x3c
  31516. 800d952: e002 b.n 800d95a <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  31517. }
  31518. else
  31519. {
  31520. /* In Case the CKPER is disabled*/
  31521. frequency = 0;
  31522. 800d954: 2300 movs r3, #0
  31523. 800d956: 63fb str r3, [r7, #60] @ 0x3c
  31524. }
  31525. break;
  31526. 800d958: e235 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31527. 800d95a: e234 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31528. }
  31529. case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */
  31530. {
  31531. frequency = EXTERNAL_CLOCK_VALUE;
  31532. 800d95c: 4b4c ldr r3, [pc, #304] @ (800da90 <HAL_RCCEx_GetPeriphCLKFreq+0x7b8>)
  31533. 800d95e: 63fb str r3, [r7, #60] @ 0x3c
  31534. break;
  31535. 800d960: e231 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31536. }
  31537. default :
  31538. {
  31539. frequency = 0;
  31540. 800d962: 2300 movs r3, #0
  31541. 800d964: 63fb str r3, [r7, #60] @ 0x3c
  31542. break;
  31543. 800d966: e22e b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31544. }
  31545. }
  31546. }
  31547. else if (PeriphClk == RCC_PERIPHCLK_SPI45)
  31548. 800d968: e9d7 2300 ldrd r2, r3, [r7]
  31549. 800d96c: f5a2 5100 sub.w r1, r2, #8192 @ 0x2000
  31550. 800d970: 430b orrs r3, r1
  31551. 800d972: f040 808f bne.w 800da94 <HAL_RCCEx_GetPeriphCLKFreq+0x7bc>
  31552. {
  31553. /* Get SPI45 clock source */
  31554. srcclk = __HAL_RCC_GET_SPI45_SOURCE();
  31555. 800d976: 4b42 ldr r3, [pc, #264] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31556. 800d978: 6d1b ldr r3, [r3, #80] @ 0x50
  31557. 800d97a: f403 23e0 and.w r3, r3, #458752 @ 0x70000
  31558. 800d97e: 63bb str r3, [r7, #56] @ 0x38
  31559. switch (srcclk)
  31560. 800d980: 6bbb ldr r3, [r7, #56] @ 0x38
  31561. 800d982: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  31562. 800d986: d06b beq.n 800da60 <HAL_RCCEx_GetPeriphCLKFreq+0x788>
  31563. 800d988: 6bbb ldr r3, [r7, #56] @ 0x38
  31564. 800d98a: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  31565. 800d98e: d874 bhi.n 800da7a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31566. 800d990: 6bbb ldr r3, [r7, #56] @ 0x38
  31567. 800d992: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  31568. 800d996: d056 beq.n 800da46 <HAL_RCCEx_GetPeriphCLKFreq+0x76e>
  31569. 800d998: 6bbb ldr r3, [r7, #56] @ 0x38
  31570. 800d99a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  31571. 800d99e: d86c bhi.n 800da7a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31572. 800d9a0: 6bbb ldr r3, [r7, #56] @ 0x38
  31573. 800d9a2: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  31574. 800d9a6: d03b beq.n 800da20 <HAL_RCCEx_GetPeriphCLKFreq+0x748>
  31575. 800d9a8: 6bbb ldr r3, [r7, #56] @ 0x38
  31576. 800d9aa: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  31577. 800d9ae: d864 bhi.n 800da7a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31578. 800d9b0: 6bbb ldr r3, [r7, #56] @ 0x38
  31579. 800d9b2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31580. 800d9b6: d021 beq.n 800d9fc <HAL_RCCEx_GetPeriphCLKFreq+0x724>
  31581. 800d9b8: 6bbb ldr r3, [r7, #56] @ 0x38
  31582. 800d9ba: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31583. 800d9be: d85c bhi.n 800da7a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31584. 800d9c0: 6bbb ldr r3, [r7, #56] @ 0x38
  31585. 800d9c2: 2b00 cmp r3, #0
  31586. 800d9c4: d004 beq.n 800d9d0 <HAL_RCCEx_GetPeriphCLKFreq+0x6f8>
  31587. 800d9c6: 6bbb ldr r3, [r7, #56] @ 0x38
  31588. 800d9c8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31589. 800d9cc: d004 beq.n 800d9d8 <HAL_RCCEx_GetPeriphCLKFreq+0x700>
  31590. 800d9ce: e054 b.n 800da7a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31591. {
  31592. case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */
  31593. {
  31594. frequency = HAL_RCC_GetPCLK1Freq();
  31595. 800d9d0: f7fe fa26 bl 800be20 <HAL_RCC_GetPCLK1Freq>
  31596. 800d9d4: 63f8 str r0, [r7, #60] @ 0x3c
  31597. break;
  31598. 800d9d6: e1f6 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31599. }
  31600. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */
  31601. {
  31602. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31603. 800d9d8: 4b29 ldr r3, [pc, #164] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31604. 800d9da: 681b ldr r3, [r3, #0]
  31605. 800d9dc: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31606. 800d9e0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31607. 800d9e4: d107 bne.n 800d9f6 <HAL_RCCEx_GetPeriphCLKFreq+0x71e>
  31608. {
  31609. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31610. 800d9e6: f107 0318 add.w r3, r7, #24
  31611. 800d9ea: 4618 mov r0, r3
  31612. 800d9ec: f000 fa0a bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  31613. frequency = pll2_clocks.PLL2_Q_Frequency;
  31614. 800d9f0: 69fb ldr r3, [r7, #28]
  31615. 800d9f2: 63fb str r3, [r7, #60] @ 0x3c
  31616. }
  31617. else
  31618. {
  31619. frequency = 0;
  31620. }
  31621. break;
  31622. 800d9f4: e1e7 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31623. frequency = 0;
  31624. 800d9f6: 2300 movs r3, #0
  31625. 800d9f8: 63fb str r3, [r7, #60] @ 0x3c
  31626. break;
  31627. 800d9fa: e1e4 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31628. }
  31629. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */
  31630. {
  31631. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31632. 800d9fc: 4b20 ldr r3, [pc, #128] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31633. 800d9fe: 681b ldr r3, [r3, #0]
  31634. 800da00: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31635. 800da04: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31636. 800da08: d107 bne.n 800da1a <HAL_RCCEx_GetPeriphCLKFreq+0x742>
  31637. {
  31638. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31639. 800da0a: f107 030c add.w r3, r7, #12
  31640. 800da0e: 4618 mov r0, r3
  31641. 800da10: f000 fb4c bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  31642. frequency = pll3_clocks.PLL3_Q_Frequency;
  31643. 800da14: 693b ldr r3, [r7, #16]
  31644. 800da16: 63fb str r3, [r7, #60] @ 0x3c
  31645. }
  31646. else
  31647. {
  31648. frequency = 0;
  31649. }
  31650. break;
  31651. 800da18: e1d5 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31652. frequency = 0;
  31653. 800da1a: 2300 movs r3, #0
  31654. 800da1c: 63fb str r3, [r7, #60] @ 0x3c
  31655. break;
  31656. 800da1e: e1d2 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31657. }
  31658. case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */
  31659. {
  31660. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  31661. 800da20: 4b17 ldr r3, [pc, #92] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31662. 800da22: 681b ldr r3, [r3, #0]
  31663. 800da24: f003 0304 and.w r3, r3, #4
  31664. 800da28: 2b04 cmp r3, #4
  31665. 800da2a: d109 bne.n 800da40 <HAL_RCCEx_GetPeriphCLKFreq+0x768>
  31666. {
  31667. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31668. 800da2c: 4b14 ldr r3, [pc, #80] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31669. 800da2e: 681b ldr r3, [r3, #0]
  31670. 800da30: 08db lsrs r3, r3, #3
  31671. 800da32: f003 0303 and.w r3, r3, #3
  31672. 800da36: 4a13 ldr r2, [pc, #76] @ (800da84 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  31673. 800da38: fa22 f303 lsr.w r3, r2, r3
  31674. 800da3c: 63fb str r3, [r7, #60] @ 0x3c
  31675. }
  31676. else
  31677. {
  31678. frequency = 0;
  31679. }
  31680. break;
  31681. 800da3e: e1c2 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31682. frequency = 0;
  31683. 800da40: 2300 movs r3, #0
  31684. 800da42: 63fb str r3, [r7, #60] @ 0x3c
  31685. break;
  31686. 800da44: e1bf b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31687. }
  31688. case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */
  31689. {
  31690. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  31691. 800da46: 4b0e ldr r3, [pc, #56] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31692. 800da48: 681b ldr r3, [r3, #0]
  31693. 800da4a: f403 7380 and.w r3, r3, #256 @ 0x100
  31694. 800da4e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31695. 800da52: d102 bne.n 800da5a <HAL_RCCEx_GetPeriphCLKFreq+0x782>
  31696. {
  31697. frequency = CSI_VALUE;
  31698. 800da54: 4b0c ldr r3, [pc, #48] @ (800da88 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  31699. 800da56: 63fb str r3, [r7, #60] @ 0x3c
  31700. }
  31701. else
  31702. {
  31703. frequency = 0;
  31704. }
  31705. break;
  31706. 800da58: e1b5 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31707. frequency = 0;
  31708. 800da5a: 2300 movs r3, #0
  31709. 800da5c: 63fb str r3, [r7, #60] @ 0x3c
  31710. break;
  31711. 800da5e: e1b2 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31712. }
  31713. case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */
  31714. {
  31715. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  31716. 800da60: 4b07 ldr r3, [pc, #28] @ (800da80 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31717. 800da62: 681b ldr r3, [r3, #0]
  31718. 800da64: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31719. 800da68: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31720. 800da6c: d102 bne.n 800da74 <HAL_RCCEx_GetPeriphCLKFreq+0x79c>
  31721. {
  31722. frequency = HSE_VALUE;
  31723. 800da6e: 4b07 ldr r3, [pc, #28] @ (800da8c <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  31724. 800da70: 63fb str r3, [r7, #60] @ 0x3c
  31725. }
  31726. else
  31727. {
  31728. frequency = 0;
  31729. }
  31730. break;
  31731. 800da72: e1a8 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31732. frequency = 0;
  31733. 800da74: 2300 movs r3, #0
  31734. 800da76: 63fb str r3, [r7, #60] @ 0x3c
  31735. break;
  31736. 800da78: e1a5 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31737. }
  31738. default :
  31739. {
  31740. frequency = 0;
  31741. 800da7a: 2300 movs r3, #0
  31742. 800da7c: 63fb str r3, [r7, #60] @ 0x3c
  31743. break;
  31744. 800da7e: e1a2 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31745. 800da80: 58024400 .word 0x58024400
  31746. 800da84: 03d09000 .word 0x03d09000
  31747. 800da88: 003d0900 .word 0x003d0900
  31748. 800da8c: 017d7840 .word 0x017d7840
  31749. 800da90: 00bb8000 .word 0x00bb8000
  31750. }
  31751. }
  31752. }
  31753. else if (PeriphClk == RCC_PERIPHCLK_ADC)
  31754. 800da94: e9d7 2300 ldrd r2, r3, [r7]
  31755. 800da98: f5a2 2100 sub.w r1, r2, #524288 @ 0x80000
  31756. 800da9c: 430b orrs r3, r1
  31757. 800da9e: d173 bne.n 800db88 <HAL_RCCEx_GetPeriphCLKFreq+0x8b0>
  31758. {
  31759. /* Get ADC clock source */
  31760. srcclk = __HAL_RCC_GET_ADC_SOURCE();
  31761. 800daa0: 4b9c ldr r3, [pc, #624] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31762. 800daa2: 6d9b ldr r3, [r3, #88] @ 0x58
  31763. 800daa4: f403 3340 and.w r3, r3, #196608 @ 0x30000
  31764. 800daa8: 63bb str r3, [r7, #56] @ 0x38
  31765. switch (srcclk)
  31766. 800daaa: 6bbb ldr r3, [r7, #56] @ 0x38
  31767. 800daac: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31768. 800dab0: d02f beq.n 800db12 <HAL_RCCEx_GetPeriphCLKFreq+0x83a>
  31769. 800dab2: 6bbb ldr r3, [r7, #56] @ 0x38
  31770. 800dab4: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31771. 800dab8: d863 bhi.n 800db82 <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  31772. 800daba: 6bbb ldr r3, [r7, #56] @ 0x38
  31773. 800dabc: 2b00 cmp r3, #0
  31774. 800dabe: d004 beq.n 800daca <HAL_RCCEx_GetPeriphCLKFreq+0x7f2>
  31775. 800dac0: 6bbb ldr r3, [r7, #56] @ 0x38
  31776. 800dac2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31777. 800dac6: d012 beq.n 800daee <HAL_RCCEx_GetPeriphCLKFreq+0x816>
  31778. 800dac8: e05b b.n 800db82 <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  31779. {
  31780. case RCC_ADCCLKSOURCE_PLL2:
  31781. {
  31782. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31783. 800daca: 4b92 ldr r3, [pc, #584] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31784. 800dacc: 681b ldr r3, [r3, #0]
  31785. 800dace: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31786. 800dad2: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31787. 800dad6: d107 bne.n 800dae8 <HAL_RCCEx_GetPeriphCLKFreq+0x810>
  31788. {
  31789. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31790. 800dad8: f107 0318 add.w r3, r7, #24
  31791. 800dadc: 4618 mov r0, r3
  31792. 800dade: f000 f991 bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  31793. frequency = pll2_clocks.PLL2_P_Frequency;
  31794. 800dae2: 69bb ldr r3, [r7, #24]
  31795. 800dae4: 63fb str r3, [r7, #60] @ 0x3c
  31796. }
  31797. else
  31798. {
  31799. frequency = 0;
  31800. }
  31801. break;
  31802. 800dae6: e16e b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31803. frequency = 0;
  31804. 800dae8: 2300 movs r3, #0
  31805. 800daea: 63fb str r3, [r7, #60] @ 0x3c
  31806. break;
  31807. 800daec: e16b b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31808. }
  31809. case RCC_ADCCLKSOURCE_PLL3:
  31810. {
  31811. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31812. 800daee: 4b89 ldr r3, [pc, #548] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31813. 800daf0: 681b ldr r3, [r3, #0]
  31814. 800daf2: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31815. 800daf6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31816. 800dafa: d107 bne.n 800db0c <HAL_RCCEx_GetPeriphCLKFreq+0x834>
  31817. {
  31818. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31819. 800dafc: f107 030c add.w r3, r7, #12
  31820. 800db00: 4618 mov r0, r3
  31821. 800db02: f000 fad3 bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  31822. frequency = pll3_clocks.PLL3_R_Frequency;
  31823. 800db06: 697b ldr r3, [r7, #20]
  31824. 800db08: 63fb str r3, [r7, #60] @ 0x3c
  31825. }
  31826. else
  31827. {
  31828. frequency = 0;
  31829. }
  31830. break;
  31831. 800db0a: e15c b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31832. frequency = 0;
  31833. 800db0c: 2300 movs r3, #0
  31834. 800db0e: 63fb str r3, [r7, #60] @ 0x3c
  31835. break;
  31836. 800db10: e159 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31837. }
  31838. case RCC_ADCCLKSOURCE_CLKP:
  31839. {
  31840. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31841. 800db12: 4b80 ldr r3, [pc, #512] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31842. 800db14: 6cdb ldr r3, [r3, #76] @ 0x4c
  31843. 800db16: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31844. 800db1a: 637b str r3, [r7, #52] @ 0x34
  31845. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31846. 800db1c: 4b7d ldr r3, [pc, #500] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31847. 800db1e: 681b ldr r3, [r3, #0]
  31848. 800db20: f003 0304 and.w r3, r3, #4
  31849. 800db24: 2b04 cmp r3, #4
  31850. 800db26: d10c bne.n 800db42 <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  31851. 800db28: 6b7b ldr r3, [r7, #52] @ 0x34
  31852. 800db2a: 2b00 cmp r3, #0
  31853. 800db2c: d109 bne.n 800db42 <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  31854. {
  31855. /* In Case the CKPER Source is HSI */
  31856. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31857. 800db2e: 4b79 ldr r3, [pc, #484] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31858. 800db30: 681b ldr r3, [r3, #0]
  31859. 800db32: 08db lsrs r3, r3, #3
  31860. 800db34: f003 0303 and.w r3, r3, #3
  31861. 800db38: 4a77 ldr r2, [pc, #476] @ (800dd18 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  31862. 800db3a: fa22 f303 lsr.w r3, r2, r3
  31863. 800db3e: 63fb str r3, [r7, #60] @ 0x3c
  31864. 800db40: e01e b.n 800db80 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  31865. }
  31866. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31867. 800db42: 4b74 ldr r3, [pc, #464] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31868. 800db44: 681b ldr r3, [r3, #0]
  31869. 800db46: f403 7380 and.w r3, r3, #256 @ 0x100
  31870. 800db4a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31871. 800db4e: d106 bne.n 800db5e <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  31872. 800db50: 6b7b ldr r3, [r7, #52] @ 0x34
  31873. 800db52: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31874. 800db56: d102 bne.n 800db5e <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  31875. {
  31876. /* In Case the CKPER Source is CSI */
  31877. frequency = CSI_VALUE;
  31878. 800db58: 4b70 ldr r3, [pc, #448] @ (800dd1c <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  31879. 800db5a: 63fb str r3, [r7, #60] @ 0x3c
  31880. 800db5c: e010 b.n 800db80 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  31881. }
  31882. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31883. 800db5e: 4b6d ldr r3, [pc, #436] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31884. 800db60: 681b ldr r3, [r3, #0]
  31885. 800db62: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31886. 800db66: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31887. 800db6a: d106 bne.n 800db7a <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  31888. 800db6c: 6b7b ldr r3, [r7, #52] @ 0x34
  31889. 800db6e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31890. 800db72: d102 bne.n 800db7a <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  31891. {
  31892. /* In Case the CKPER Source is HSE */
  31893. frequency = HSE_VALUE;
  31894. 800db74: 4b6a ldr r3, [pc, #424] @ (800dd20 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  31895. 800db76: 63fb str r3, [r7, #60] @ 0x3c
  31896. 800db78: e002 b.n 800db80 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  31897. }
  31898. else
  31899. {
  31900. /* In Case the CKPER is disabled*/
  31901. frequency = 0;
  31902. 800db7a: 2300 movs r3, #0
  31903. 800db7c: 63fb str r3, [r7, #60] @ 0x3c
  31904. }
  31905. break;
  31906. 800db7e: e122 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31907. 800db80: e121 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31908. }
  31909. default :
  31910. {
  31911. frequency = 0;
  31912. 800db82: 2300 movs r3, #0
  31913. 800db84: 63fb str r3, [r7, #60] @ 0x3c
  31914. break;
  31915. 800db86: e11e b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31916. }
  31917. }
  31918. }
  31919. else if (PeriphClk == RCC_PERIPHCLK_SDMMC)
  31920. 800db88: e9d7 2300 ldrd r2, r3, [r7]
  31921. 800db8c: f5a2 3180 sub.w r1, r2, #65536 @ 0x10000
  31922. 800db90: 430b orrs r3, r1
  31923. 800db92: d133 bne.n 800dbfc <HAL_RCCEx_GetPeriphCLKFreq+0x924>
  31924. {
  31925. /* Get SDMMC clock source */
  31926. srcclk = __HAL_RCC_GET_SDMMC_SOURCE();
  31927. 800db94: 4b5f ldr r3, [pc, #380] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31928. 800db96: 6cdb ldr r3, [r3, #76] @ 0x4c
  31929. 800db98: f403 3380 and.w r3, r3, #65536 @ 0x10000
  31930. 800db9c: 63bb str r3, [r7, #56] @ 0x38
  31931. switch (srcclk)
  31932. 800db9e: 6bbb ldr r3, [r7, #56] @ 0x38
  31933. 800dba0: 2b00 cmp r3, #0
  31934. 800dba2: d004 beq.n 800dbae <HAL_RCCEx_GetPeriphCLKFreq+0x8d6>
  31935. 800dba4: 6bbb ldr r3, [r7, #56] @ 0x38
  31936. 800dba6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31937. 800dbaa: d012 beq.n 800dbd2 <HAL_RCCEx_GetPeriphCLKFreq+0x8fa>
  31938. 800dbac: e023 b.n 800dbf6 <HAL_RCCEx_GetPeriphCLKFreq+0x91e>
  31939. {
  31940. case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */
  31941. {
  31942. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31943. 800dbae: 4b59 ldr r3, [pc, #356] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31944. 800dbb0: 681b ldr r3, [r3, #0]
  31945. 800dbb2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31946. 800dbb6: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31947. 800dbba: d107 bne.n 800dbcc <HAL_RCCEx_GetPeriphCLKFreq+0x8f4>
  31948. {
  31949. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31950. 800dbbc: f107 0324 add.w r3, r7, #36 @ 0x24
  31951. 800dbc0: 4618 mov r0, r3
  31952. 800dbc2: f000 fbc7 bl 800e354 <HAL_RCCEx_GetPLL1ClockFreq>
  31953. frequency = pll1_clocks.PLL1_Q_Frequency;
  31954. 800dbc6: 6abb ldr r3, [r7, #40] @ 0x28
  31955. 800dbc8: 63fb str r3, [r7, #60] @ 0x3c
  31956. }
  31957. else
  31958. {
  31959. frequency = 0;
  31960. }
  31961. break;
  31962. 800dbca: e0fc b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31963. frequency = 0;
  31964. 800dbcc: 2300 movs r3, #0
  31965. 800dbce: 63fb str r3, [r7, #60] @ 0x3c
  31966. break;
  31967. 800dbd0: e0f9 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31968. }
  31969. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */
  31970. {
  31971. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31972. 800dbd2: 4b50 ldr r3, [pc, #320] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  31973. 800dbd4: 681b ldr r3, [r3, #0]
  31974. 800dbd6: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31975. 800dbda: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31976. 800dbde: d107 bne.n 800dbf0 <HAL_RCCEx_GetPeriphCLKFreq+0x918>
  31977. {
  31978. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31979. 800dbe0: f107 0318 add.w r3, r7, #24
  31980. 800dbe4: 4618 mov r0, r3
  31981. 800dbe6: f000 f90d bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  31982. frequency = pll2_clocks.PLL2_R_Frequency;
  31983. 800dbea: 6a3b ldr r3, [r7, #32]
  31984. 800dbec: 63fb str r3, [r7, #60] @ 0x3c
  31985. }
  31986. else
  31987. {
  31988. frequency = 0;
  31989. }
  31990. break;
  31991. 800dbee: e0ea b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31992. frequency = 0;
  31993. 800dbf0: 2300 movs r3, #0
  31994. 800dbf2: 63fb str r3, [r7, #60] @ 0x3c
  31995. break;
  31996. 800dbf4: e0e7 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31997. }
  31998. default :
  31999. {
  32000. frequency = 0;
  32001. 800dbf6: 2300 movs r3, #0
  32002. 800dbf8: 63fb str r3, [r7, #60] @ 0x3c
  32003. break;
  32004. 800dbfa: e0e4 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32005. }
  32006. }
  32007. }
  32008. else if (PeriphClk == RCC_PERIPHCLK_SPI6)
  32009. 800dbfc: e9d7 2300 ldrd r2, r3, [r7]
  32010. 800dc00: f5a2 4180 sub.w r1, r2, #16384 @ 0x4000
  32011. 800dc04: 430b orrs r3, r1
  32012. 800dc06: f040 808d bne.w 800dd24 <HAL_RCCEx_GetPeriphCLKFreq+0xa4c>
  32013. {
  32014. /* Get SPI6 clock source */
  32015. srcclk = __HAL_RCC_GET_SPI6_SOURCE();
  32016. 800dc0a: 4b42 ldr r3, [pc, #264] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32017. 800dc0c: 6d9b ldr r3, [r3, #88] @ 0x58
  32018. 800dc0e: f003 43e0 and.w r3, r3, #1879048192 @ 0x70000000
  32019. 800dc12: 63bb str r3, [r7, #56] @ 0x38
  32020. switch (srcclk)
  32021. 800dc14: 6bbb ldr r3, [r7, #56] @ 0x38
  32022. 800dc16: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  32023. 800dc1a: d06b beq.n 800dcf4 <HAL_RCCEx_GetPeriphCLKFreq+0xa1c>
  32024. 800dc1c: 6bbb ldr r3, [r7, #56] @ 0x38
  32025. 800dc1e: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  32026. 800dc22: d874 bhi.n 800dd0e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32027. 800dc24: 6bbb ldr r3, [r7, #56] @ 0x38
  32028. 800dc26: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  32029. 800dc2a: d056 beq.n 800dcda <HAL_RCCEx_GetPeriphCLKFreq+0xa02>
  32030. 800dc2c: 6bbb ldr r3, [r7, #56] @ 0x38
  32031. 800dc2e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  32032. 800dc32: d86c bhi.n 800dd0e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32033. 800dc34: 6bbb ldr r3, [r7, #56] @ 0x38
  32034. 800dc36: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  32035. 800dc3a: d03b beq.n 800dcb4 <HAL_RCCEx_GetPeriphCLKFreq+0x9dc>
  32036. 800dc3c: 6bbb ldr r3, [r7, #56] @ 0x38
  32037. 800dc3e: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  32038. 800dc42: d864 bhi.n 800dd0e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32039. 800dc44: 6bbb ldr r3, [r7, #56] @ 0x38
  32040. 800dc46: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32041. 800dc4a: d021 beq.n 800dc90 <HAL_RCCEx_GetPeriphCLKFreq+0x9b8>
  32042. 800dc4c: 6bbb ldr r3, [r7, #56] @ 0x38
  32043. 800dc4e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32044. 800dc52: d85c bhi.n 800dd0e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32045. 800dc54: 6bbb ldr r3, [r7, #56] @ 0x38
  32046. 800dc56: 2b00 cmp r3, #0
  32047. 800dc58: d004 beq.n 800dc64 <HAL_RCCEx_GetPeriphCLKFreq+0x98c>
  32048. 800dc5a: 6bbb ldr r3, [r7, #56] @ 0x38
  32049. 800dc5c: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32050. 800dc60: d004 beq.n 800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x994>
  32051. 800dc62: e054 b.n 800dd0e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32052. {
  32053. case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */
  32054. {
  32055. frequency = HAL_RCCEx_GetD3PCLK1Freq();
  32056. 800dc64: f000 f8b8 bl 800ddd8 <HAL_RCCEx_GetD3PCLK1Freq>
  32057. 800dc68: 63f8 str r0, [r7, #60] @ 0x3c
  32058. break;
  32059. 800dc6a: e0ac b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32060. }
  32061. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */
  32062. {
  32063. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32064. 800dc6c: 4b29 ldr r3, [pc, #164] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32065. 800dc6e: 681b ldr r3, [r3, #0]
  32066. 800dc70: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32067. 800dc74: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32068. 800dc78: d107 bne.n 800dc8a <HAL_RCCEx_GetPeriphCLKFreq+0x9b2>
  32069. {
  32070. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32071. 800dc7a: f107 0318 add.w r3, r7, #24
  32072. 800dc7e: 4618 mov r0, r3
  32073. 800dc80: f000 f8c0 bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  32074. frequency = pll2_clocks.PLL2_Q_Frequency;
  32075. 800dc84: 69fb ldr r3, [r7, #28]
  32076. 800dc86: 63fb str r3, [r7, #60] @ 0x3c
  32077. }
  32078. else
  32079. {
  32080. frequency = 0;
  32081. }
  32082. break;
  32083. 800dc88: e09d b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32084. frequency = 0;
  32085. 800dc8a: 2300 movs r3, #0
  32086. 800dc8c: 63fb str r3, [r7, #60] @ 0x3c
  32087. break;
  32088. 800dc8e: e09a b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32089. }
  32090. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */
  32091. {
  32092. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32093. 800dc90: 4b20 ldr r3, [pc, #128] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32094. 800dc92: 681b ldr r3, [r3, #0]
  32095. 800dc94: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32096. 800dc98: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32097. 800dc9c: d107 bne.n 800dcae <HAL_RCCEx_GetPeriphCLKFreq+0x9d6>
  32098. {
  32099. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32100. 800dc9e: f107 030c add.w r3, r7, #12
  32101. 800dca2: 4618 mov r0, r3
  32102. 800dca4: f000 fa02 bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  32103. frequency = pll3_clocks.PLL3_Q_Frequency;
  32104. 800dca8: 693b ldr r3, [r7, #16]
  32105. 800dcaa: 63fb str r3, [r7, #60] @ 0x3c
  32106. }
  32107. else
  32108. {
  32109. frequency = 0;
  32110. }
  32111. break;
  32112. 800dcac: e08b b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32113. frequency = 0;
  32114. 800dcae: 2300 movs r3, #0
  32115. 800dcb0: 63fb str r3, [r7, #60] @ 0x3c
  32116. break;
  32117. 800dcb2: e088 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32118. }
  32119. case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */
  32120. {
  32121. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  32122. 800dcb4: 4b17 ldr r3, [pc, #92] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32123. 800dcb6: 681b ldr r3, [r3, #0]
  32124. 800dcb8: f003 0304 and.w r3, r3, #4
  32125. 800dcbc: 2b04 cmp r3, #4
  32126. 800dcbe: d109 bne.n 800dcd4 <HAL_RCCEx_GetPeriphCLKFreq+0x9fc>
  32127. {
  32128. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32129. 800dcc0: 4b14 ldr r3, [pc, #80] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32130. 800dcc2: 681b ldr r3, [r3, #0]
  32131. 800dcc4: 08db lsrs r3, r3, #3
  32132. 800dcc6: f003 0303 and.w r3, r3, #3
  32133. 800dcca: 4a13 ldr r2, [pc, #76] @ (800dd18 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  32134. 800dccc: fa22 f303 lsr.w r3, r2, r3
  32135. 800dcd0: 63fb str r3, [r7, #60] @ 0x3c
  32136. }
  32137. else
  32138. {
  32139. frequency = 0;
  32140. }
  32141. break;
  32142. 800dcd2: e078 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32143. frequency = 0;
  32144. 800dcd4: 2300 movs r3, #0
  32145. 800dcd6: 63fb str r3, [r7, #60] @ 0x3c
  32146. break;
  32147. 800dcd8: e075 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32148. }
  32149. case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */
  32150. {
  32151. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  32152. 800dcda: 4b0e ldr r3, [pc, #56] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32153. 800dcdc: 681b ldr r3, [r3, #0]
  32154. 800dcde: f403 7380 and.w r3, r3, #256 @ 0x100
  32155. 800dce2: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32156. 800dce6: d102 bne.n 800dcee <HAL_RCCEx_GetPeriphCLKFreq+0xa16>
  32157. {
  32158. frequency = CSI_VALUE;
  32159. 800dce8: 4b0c ldr r3, [pc, #48] @ (800dd1c <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  32160. 800dcea: 63fb str r3, [r7, #60] @ 0x3c
  32161. }
  32162. else
  32163. {
  32164. frequency = 0;
  32165. }
  32166. break;
  32167. 800dcec: e06b b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32168. frequency = 0;
  32169. 800dcee: 2300 movs r3, #0
  32170. 800dcf0: 63fb str r3, [r7, #60] @ 0x3c
  32171. break;
  32172. 800dcf2: e068 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32173. }
  32174. case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */
  32175. {
  32176. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  32177. 800dcf4: 4b07 ldr r3, [pc, #28] @ (800dd14 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32178. 800dcf6: 681b ldr r3, [r3, #0]
  32179. 800dcf8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32180. 800dcfc: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32181. 800dd00: d102 bne.n 800dd08 <HAL_RCCEx_GetPeriphCLKFreq+0xa30>
  32182. {
  32183. frequency = HSE_VALUE;
  32184. 800dd02: 4b07 ldr r3, [pc, #28] @ (800dd20 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  32185. 800dd04: 63fb str r3, [r7, #60] @ 0x3c
  32186. }
  32187. else
  32188. {
  32189. frequency = 0;
  32190. }
  32191. break;
  32192. 800dd06: e05e b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32193. frequency = 0;
  32194. 800dd08: 2300 movs r3, #0
  32195. 800dd0a: 63fb str r3, [r7, #60] @ 0x3c
  32196. break;
  32197. 800dd0c: e05b b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32198. break;
  32199. }
  32200. #endif /* RCC_SPI6CLKSOURCE_PIN */
  32201. default :
  32202. {
  32203. frequency = 0;
  32204. 800dd0e: 2300 movs r3, #0
  32205. 800dd10: 63fb str r3, [r7, #60] @ 0x3c
  32206. break;
  32207. 800dd12: e058 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32208. 800dd14: 58024400 .word 0x58024400
  32209. 800dd18: 03d09000 .word 0x03d09000
  32210. 800dd1c: 003d0900 .word 0x003d0900
  32211. 800dd20: 017d7840 .word 0x017d7840
  32212. }
  32213. }
  32214. }
  32215. else if (PeriphClk == RCC_PERIPHCLK_FDCAN)
  32216. 800dd24: e9d7 2300 ldrd r2, r3, [r7]
  32217. 800dd28: f5a2 4100 sub.w r1, r2, #32768 @ 0x8000
  32218. 800dd2c: 430b orrs r3, r1
  32219. 800dd2e: d148 bne.n 800ddc2 <HAL_RCCEx_GetPeriphCLKFreq+0xaea>
  32220. {
  32221. /* Get FDCAN clock source */
  32222. srcclk = __HAL_RCC_GET_FDCAN_SOURCE();
  32223. 800dd30: 4b27 ldr r3, [pc, #156] @ (800ddd0 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32224. 800dd32: 6d1b ldr r3, [r3, #80] @ 0x50
  32225. 800dd34: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32226. 800dd38: 63bb str r3, [r7, #56] @ 0x38
  32227. switch (srcclk)
  32228. 800dd3a: 6bbb ldr r3, [r7, #56] @ 0x38
  32229. 800dd3c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32230. 800dd40: d02a beq.n 800dd98 <HAL_RCCEx_GetPeriphCLKFreq+0xac0>
  32231. 800dd42: 6bbb ldr r3, [r7, #56] @ 0x38
  32232. 800dd44: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32233. 800dd48: d838 bhi.n 800ddbc <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  32234. 800dd4a: 6bbb ldr r3, [r7, #56] @ 0x38
  32235. 800dd4c: 2b00 cmp r3, #0
  32236. 800dd4e: d004 beq.n 800dd5a <HAL_RCCEx_GetPeriphCLKFreq+0xa82>
  32237. 800dd50: 6bbb ldr r3, [r7, #56] @ 0x38
  32238. 800dd52: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32239. 800dd56: d00d beq.n 800dd74 <HAL_RCCEx_GetPeriphCLKFreq+0xa9c>
  32240. 800dd58: e030 b.n 800ddbc <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  32241. {
  32242. case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */
  32243. {
  32244. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  32245. 800dd5a: 4b1d ldr r3, [pc, #116] @ (800ddd0 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32246. 800dd5c: 681b ldr r3, [r3, #0]
  32247. 800dd5e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32248. 800dd62: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32249. 800dd66: d102 bne.n 800dd6e <HAL_RCCEx_GetPeriphCLKFreq+0xa96>
  32250. {
  32251. frequency = HSE_VALUE;
  32252. 800dd68: 4b1a ldr r3, [pc, #104] @ (800ddd4 <HAL_RCCEx_GetPeriphCLKFreq+0xafc>)
  32253. 800dd6a: 63fb str r3, [r7, #60] @ 0x3c
  32254. }
  32255. else
  32256. {
  32257. frequency = 0;
  32258. }
  32259. break;
  32260. 800dd6c: e02b b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32261. frequency = 0;
  32262. 800dd6e: 2300 movs r3, #0
  32263. 800dd70: 63fb str r3, [r7, #60] @ 0x3c
  32264. break;
  32265. 800dd72: e028 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32266. }
  32267. case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */
  32268. {
  32269. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32270. 800dd74: 4b16 ldr r3, [pc, #88] @ (800ddd0 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32271. 800dd76: 681b ldr r3, [r3, #0]
  32272. 800dd78: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32273. 800dd7c: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32274. 800dd80: d107 bne.n 800dd92 <HAL_RCCEx_GetPeriphCLKFreq+0xaba>
  32275. {
  32276. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32277. 800dd82: f107 0324 add.w r3, r7, #36 @ 0x24
  32278. 800dd86: 4618 mov r0, r3
  32279. 800dd88: f000 fae4 bl 800e354 <HAL_RCCEx_GetPLL1ClockFreq>
  32280. frequency = pll1_clocks.PLL1_Q_Frequency;
  32281. 800dd8c: 6abb ldr r3, [r7, #40] @ 0x28
  32282. 800dd8e: 63fb str r3, [r7, #60] @ 0x3c
  32283. }
  32284. else
  32285. {
  32286. frequency = 0;
  32287. }
  32288. break;
  32289. 800dd90: e019 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32290. frequency = 0;
  32291. 800dd92: 2300 movs r3, #0
  32292. 800dd94: 63fb str r3, [r7, #60] @ 0x3c
  32293. break;
  32294. 800dd96: e016 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32295. }
  32296. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */
  32297. {
  32298. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32299. 800dd98: 4b0d ldr r3, [pc, #52] @ (800ddd0 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32300. 800dd9a: 681b ldr r3, [r3, #0]
  32301. 800dd9c: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32302. 800dda0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32303. 800dda4: d107 bne.n 800ddb6 <HAL_RCCEx_GetPeriphCLKFreq+0xade>
  32304. {
  32305. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32306. 800dda6: f107 0318 add.w r3, r7, #24
  32307. 800ddaa: 4618 mov r0, r3
  32308. 800ddac: f000 f82a bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  32309. frequency = pll2_clocks.PLL2_Q_Frequency;
  32310. 800ddb0: 69fb ldr r3, [r7, #28]
  32311. 800ddb2: 63fb str r3, [r7, #60] @ 0x3c
  32312. }
  32313. else
  32314. {
  32315. frequency = 0;
  32316. }
  32317. break;
  32318. 800ddb4: e007 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32319. frequency = 0;
  32320. 800ddb6: 2300 movs r3, #0
  32321. 800ddb8: 63fb str r3, [r7, #60] @ 0x3c
  32322. break;
  32323. 800ddba: e004 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32324. }
  32325. default :
  32326. {
  32327. frequency = 0;
  32328. 800ddbc: 2300 movs r3, #0
  32329. 800ddbe: 63fb str r3, [r7, #60] @ 0x3c
  32330. break;
  32331. 800ddc0: e001 b.n 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32332. }
  32333. }
  32334. }
  32335. else
  32336. {
  32337. frequency = 0;
  32338. 800ddc2: 2300 movs r3, #0
  32339. 800ddc4: 63fb str r3, [r7, #60] @ 0x3c
  32340. }
  32341. return frequency;
  32342. 800ddc6: 6bfb ldr r3, [r7, #60] @ 0x3c
  32343. }
  32344. 800ddc8: 4618 mov r0, r3
  32345. 800ddca: 3740 adds r7, #64 @ 0x40
  32346. 800ddcc: 46bd mov sp, r7
  32347. 800ddce: bd80 pop {r7, pc}
  32348. 800ddd0: 58024400 .word 0x58024400
  32349. 800ddd4: 017d7840 .word 0x017d7840
  32350. 0800ddd8 <HAL_RCCEx_GetD3PCLK1Freq>:
  32351. * @note Each time D3PCLK1 changes, this function must be called to update the
  32352. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  32353. * @retval D3PCLK1 frequency
  32354. */
  32355. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  32356. {
  32357. 800ddd8: b580 push {r7, lr}
  32358. 800ddda: af00 add r7, sp, #0
  32359. #if defined(RCC_D3CFGR_D3PPRE)
  32360. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  32361. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  32362. 800dddc: f7fd fff0 bl 800bdc0 <HAL_RCC_GetHCLKFreq>
  32363. 800dde0: 4602 mov r2, r0
  32364. 800dde2: 4b06 ldr r3, [pc, #24] @ (800ddfc <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  32365. 800dde4: 6a1b ldr r3, [r3, #32]
  32366. 800dde6: 091b lsrs r3, r3, #4
  32367. 800dde8: f003 0307 and.w r3, r3, #7
  32368. 800ddec: 4904 ldr r1, [pc, #16] @ (800de00 <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  32369. 800ddee: 5ccb ldrb r3, [r1, r3]
  32370. 800ddf0: f003 031f and.w r3, r3, #31
  32371. 800ddf4: fa22 f303 lsr.w r3, r2, r3
  32372. #else
  32373. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  32374. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  32375. #endif
  32376. }
  32377. 800ddf8: 4618 mov r0, r3
  32378. 800ddfa: bd80 pop {r7, pc}
  32379. 800ddfc: 58024400 .word 0x58024400
  32380. 800de00: 08018a28 .word 0x08018a28
  32381. 0800de04 <HAL_RCCEx_GetPLL2ClockFreq>:
  32382. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  32383. * @param PLL2_Clocks structure.
  32384. * @retval None
  32385. */
  32386. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  32387. {
  32388. 800de04: b480 push {r7}
  32389. 800de06: b089 sub sp, #36 @ 0x24
  32390. 800de08: af00 add r7, sp, #0
  32391. 800de0a: 6078 str r0, [r7, #4]
  32392. float_t fracn2, pll2vco;
  32393. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  32394. PLL2xCLK = PLL2_VCO / PLL2x
  32395. */
  32396. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  32397. 800de0c: 4ba1 ldr r3, [pc, #644] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32398. 800de0e: 6a9b ldr r3, [r3, #40] @ 0x28
  32399. 800de10: f003 0303 and.w r3, r3, #3
  32400. 800de14: 61bb str r3, [r7, #24]
  32401. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  32402. 800de16: 4b9f ldr r3, [pc, #636] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32403. 800de18: 6a9b ldr r3, [r3, #40] @ 0x28
  32404. 800de1a: 0b1b lsrs r3, r3, #12
  32405. 800de1c: f003 033f and.w r3, r3, #63 @ 0x3f
  32406. 800de20: 617b str r3, [r7, #20]
  32407. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  32408. 800de22: 4b9c ldr r3, [pc, #624] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32409. 800de24: 6adb ldr r3, [r3, #44] @ 0x2c
  32410. 800de26: 091b lsrs r3, r3, #4
  32411. 800de28: f003 0301 and.w r3, r3, #1
  32412. 800de2c: 613b str r3, [r7, #16]
  32413. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  32414. 800de2e: 4b99 ldr r3, [pc, #612] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32415. 800de30: 6bdb ldr r3, [r3, #60] @ 0x3c
  32416. 800de32: 08db lsrs r3, r3, #3
  32417. 800de34: f3c3 030c ubfx r3, r3, #0, #13
  32418. 800de38: 693a ldr r2, [r7, #16]
  32419. 800de3a: fb02 f303 mul.w r3, r2, r3
  32420. 800de3e: ee07 3a90 vmov s15, r3
  32421. 800de42: eef8 7a67 vcvt.f32.u32 s15, s15
  32422. 800de46: edc7 7a03 vstr s15, [r7, #12]
  32423. if (pll2m != 0U)
  32424. 800de4a: 697b ldr r3, [r7, #20]
  32425. 800de4c: 2b00 cmp r3, #0
  32426. 800de4e: f000 8111 beq.w 800e074 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  32427. {
  32428. switch (pllsource)
  32429. 800de52: 69bb ldr r3, [r7, #24]
  32430. 800de54: 2b02 cmp r3, #2
  32431. 800de56: f000 8083 beq.w 800df60 <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  32432. 800de5a: 69bb ldr r3, [r7, #24]
  32433. 800de5c: 2b02 cmp r3, #2
  32434. 800de5e: f200 80a1 bhi.w 800dfa4 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  32435. 800de62: 69bb ldr r3, [r7, #24]
  32436. 800de64: 2b00 cmp r3, #0
  32437. 800de66: d003 beq.n 800de70 <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  32438. 800de68: 69bb ldr r3, [r7, #24]
  32439. 800de6a: 2b01 cmp r3, #1
  32440. 800de6c: d056 beq.n 800df1c <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  32441. 800de6e: e099 b.n 800dfa4 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  32442. {
  32443. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  32444. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32445. 800de70: 4b88 ldr r3, [pc, #544] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32446. 800de72: 681b ldr r3, [r3, #0]
  32447. 800de74: f003 0320 and.w r3, r3, #32
  32448. 800de78: 2b00 cmp r3, #0
  32449. 800de7a: d02d beq.n 800ded8 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  32450. {
  32451. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32452. 800de7c: 4b85 ldr r3, [pc, #532] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32453. 800de7e: 681b ldr r3, [r3, #0]
  32454. 800de80: 08db lsrs r3, r3, #3
  32455. 800de82: f003 0303 and.w r3, r3, #3
  32456. 800de86: 4a84 ldr r2, [pc, #528] @ (800e098 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  32457. 800de88: fa22 f303 lsr.w r3, r2, r3
  32458. 800de8c: 60bb str r3, [r7, #8]
  32459. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32460. 800de8e: 68bb ldr r3, [r7, #8]
  32461. 800de90: ee07 3a90 vmov s15, r3
  32462. 800de94: eef8 6a67 vcvt.f32.u32 s13, s15
  32463. 800de98: 697b ldr r3, [r7, #20]
  32464. 800de9a: ee07 3a90 vmov s15, r3
  32465. 800de9e: eef8 7a67 vcvt.f32.u32 s15, s15
  32466. 800dea2: ee86 7aa7 vdiv.f32 s14, s13, s15
  32467. 800dea6: 4b7b ldr r3, [pc, #492] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32468. 800dea8: 6b9b ldr r3, [r3, #56] @ 0x38
  32469. 800deaa: f3c3 0308 ubfx r3, r3, #0, #9
  32470. 800deae: ee07 3a90 vmov s15, r3
  32471. 800deb2: eef8 6a67 vcvt.f32.u32 s13, s15
  32472. 800deb6: ed97 6a03 vldr s12, [r7, #12]
  32473. 800deba: eddf 5a78 vldr s11, [pc, #480] @ 800e09c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32474. 800debe: eec6 7a25 vdiv.f32 s15, s12, s11
  32475. 800dec2: ee76 7aa7 vadd.f32 s15, s13, s15
  32476. 800dec6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32477. 800deca: ee77 7aa6 vadd.f32 s15, s15, s13
  32478. 800dece: ee67 7a27 vmul.f32 s15, s14, s15
  32479. 800ded2: edc7 7a07 vstr s15, [r7, #28]
  32480. }
  32481. else
  32482. {
  32483. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32484. }
  32485. break;
  32486. 800ded6: e087 b.n 800dfe8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32487. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32488. 800ded8: 697b ldr r3, [r7, #20]
  32489. 800deda: ee07 3a90 vmov s15, r3
  32490. 800dede: eef8 7a67 vcvt.f32.u32 s15, s15
  32491. 800dee2: eddf 6a6f vldr s13, [pc, #444] @ 800e0a0 <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  32492. 800dee6: ee86 7aa7 vdiv.f32 s14, s13, s15
  32493. 800deea: 4b6a ldr r3, [pc, #424] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32494. 800deec: 6b9b ldr r3, [r3, #56] @ 0x38
  32495. 800deee: f3c3 0308 ubfx r3, r3, #0, #9
  32496. 800def2: ee07 3a90 vmov s15, r3
  32497. 800def6: eef8 6a67 vcvt.f32.u32 s13, s15
  32498. 800defa: ed97 6a03 vldr s12, [r7, #12]
  32499. 800defe: eddf 5a67 vldr s11, [pc, #412] @ 800e09c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32500. 800df02: eec6 7a25 vdiv.f32 s15, s12, s11
  32501. 800df06: ee76 7aa7 vadd.f32 s15, s13, s15
  32502. 800df0a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32503. 800df0e: ee77 7aa6 vadd.f32 s15, s15, s13
  32504. 800df12: ee67 7a27 vmul.f32 s15, s14, s15
  32505. 800df16: edc7 7a07 vstr s15, [r7, #28]
  32506. break;
  32507. 800df1a: e065 b.n 800dfe8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32508. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  32509. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32510. 800df1c: 697b ldr r3, [r7, #20]
  32511. 800df1e: ee07 3a90 vmov s15, r3
  32512. 800df22: eef8 7a67 vcvt.f32.u32 s15, s15
  32513. 800df26: eddf 6a5f vldr s13, [pc, #380] @ 800e0a4 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  32514. 800df2a: ee86 7aa7 vdiv.f32 s14, s13, s15
  32515. 800df2e: 4b59 ldr r3, [pc, #356] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32516. 800df30: 6b9b ldr r3, [r3, #56] @ 0x38
  32517. 800df32: f3c3 0308 ubfx r3, r3, #0, #9
  32518. 800df36: ee07 3a90 vmov s15, r3
  32519. 800df3a: eef8 6a67 vcvt.f32.u32 s13, s15
  32520. 800df3e: ed97 6a03 vldr s12, [r7, #12]
  32521. 800df42: eddf 5a56 vldr s11, [pc, #344] @ 800e09c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32522. 800df46: eec6 7a25 vdiv.f32 s15, s12, s11
  32523. 800df4a: ee76 7aa7 vadd.f32 s15, s13, s15
  32524. 800df4e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32525. 800df52: ee77 7aa6 vadd.f32 s15, s15, s13
  32526. 800df56: ee67 7a27 vmul.f32 s15, s14, s15
  32527. 800df5a: edc7 7a07 vstr s15, [r7, #28]
  32528. break;
  32529. 800df5e: e043 b.n 800dfe8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32530. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  32531. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32532. 800df60: 697b ldr r3, [r7, #20]
  32533. 800df62: ee07 3a90 vmov s15, r3
  32534. 800df66: eef8 7a67 vcvt.f32.u32 s15, s15
  32535. 800df6a: eddf 6a4f vldr s13, [pc, #316] @ 800e0a8 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  32536. 800df6e: ee86 7aa7 vdiv.f32 s14, s13, s15
  32537. 800df72: 4b48 ldr r3, [pc, #288] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32538. 800df74: 6b9b ldr r3, [r3, #56] @ 0x38
  32539. 800df76: f3c3 0308 ubfx r3, r3, #0, #9
  32540. 800df7a: ee07 3a90 vmov s15, r3
  32541. 800df7e: eef8 6a67 vcvt.f32.u32 s13, s15
  32542. 800df82: ed97 6a03 vldr s12, [r7, #12]
  32543. 800df86: eddf 5a45 vldr s11, [pc, #276] @ 800e09c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32544. 800df8a: eec6 7a25 vdiv.f32 s15, s12, s11
  32545. 800df8e: ee76 7aa7 vadd.f32 s15, s13, s15
  32546. 800df92: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32547. 800df96: ee77 7aa6 vadd.f32 s15, s15, s13
  32548. 800df9a: ee67 7a27 vmul.f32 s15, s14, s15
  32549. 800df9e: edc7 7a07 vstr s15, [r7, #28]
  32550. break;
  32551. 800dfa2: e021 b.n 800dfe8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32552. default:
  32553. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32554. 800dfa4: 697b ldr r3, [r7, #20]
  32555. 800dfa6: ee07 3a90 vmov s15, r3
  32556. 800dfaa: eef8 7a67 vcvt.f32.u32 s15, s15
  32557. 800dfae: eddf 6a3d vldr s13, [pc, #244] @ 800e0a4 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  32558. 800dfb2: ee86 7aa7 vdiv.f32 s14, s13, s15
  32559. 800dfb6: 4b37 ldr r3, [pc, #220] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32560. 800dfb8: 6b9b ldr r3, [r3, #56] @ 0x38
  32561. 800dfba: f3c3 0308 ubfx r3, r3, #0, #9
  32562. 800dfbe: ee07 3a90 vmov s15, r3
  32563. 800dfc2: eef8 6a67 vcvt.f32.u32 s13, s15
  32564. 800dfc6: ed97 6a03 vldr s12, [r7, #12]
  32565. 800dfca: eddf 5a34 vldr s11, [pc, #208] @ 800e09c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32566. 800dfce: eec6 7a25 vdiv.f32 s15, s12, s11
  32567. 800dfd2: ee76 7aa7 vadd.f32 s15, s13, s15
  32568. 800dfd6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32569. 800dfda: ee77 7aa6 vadd.f32 s15, s15, s13
  32570. 800dfde: ee67 7a27 vmul.f32 s15, s14, s15
  32571. 800dfe2: edc7 7a07 vstr s15, [r7, #28]
  32572. break;
  32573. 800dfe6: bf00 nop
  32574. }
  32575. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  32576. 800dfe8: 4b2a ldr r3, [pc, #168] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32577. 800dfea: 6b9b ldr r3, [r3, #56] @ 0x38
  32578. 800dfec: 0a5b lsrs r3, r3, #9
  32579. 800dfee: f003 037f and.w r3, r3, #127 @ 0x7f
  32580. 800dff2: ee07 3a90 vmov s15, r3
  32581. 800dff6: eef8 7a67 vcvt.f32.u32 s15, s15
  32582. 800dffa: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32583. 800dffe: ee37 7a87 vadd.f32 s14, s15, s14
  32584. 800e002: edd7 6a07 vldr s13, [r7, #28]
  32585. 800e006: eec6 7a87 vdiv.f32 s15, s13, s14
  32586. 800e00a: eefc 7ae7 vcvt.u32.f32 s15, s15
  32587. 800e00e: ee17 2a90 vmov r2, s15
  32588. 800e012: 687b ldr r3, [r7, #4]
  32589. 800e014: 601a str r2, [r3, #0]
  32590. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  32591. 800e016: 4b1f ldr r3, [pc, #124] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32592. 800e018: 6b9b ldr r3, [r3, #56] @ 0x38
  32593. 800e01a: 0c1b lsrs r3, r3, #16
  32594. 800e01c: f003 037f and.w r3, r3, #127 @ 0x7f
  32595. 800e020: ee07 3a90 vmov s15, r3
  32596. 800e024: eef8 7a67 vcvt.f32.u32 s15, s15
  32597. 800e028: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32598. 800e02c: ee37 7a87 vadd.f32 s14, s15, s14
  32599. 800e030: edd7 6a07 vldr s13, [r7, #28]
  32600. 800e034: eec6 7a87 vdiv.f32 s15, s13, s14
  32601. 800e038: eefc 7ae7 vcvt.u32.f32 s15, s15
  32602. 800e03c: ee17 2a90 vmov r2, s15
  32603. 800e040: 687b ldr r3, [r7, #4]
  32604. 800e042: 605a str r2, [r3, #4]
  32605. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  32606. 800e044: 4b13 ldr r3, [pc, #76] @ (800e094 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32607. 800e046: 6b9b ldr r3, [r3, #56] @ 0x38
  32608. 800e048: 0e1b lsrs r3, r3, #24
  32609. 800e04a: f003 037f and.w r3, r3, #127 @ 0x7f
  32610. 800e04e: ee07 3a90 vmov s15, r3
  32611. 800e052: eef8 7a67 vcvt.f32.u32 s15, s15
  32612. 800e056: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32613. 800e05a: ee37 7a87 vadd.f32 s14, s15, s14
  32614. 800e05e: edd7 6a07 vldr s13, [r7, #28]
  32615. 800e062: eec6 7a87 vdiv.f32 s15, s13, s14
  32616. 800e066: eefc 7ae7 vcvt.u32.f32 s15, s15
  32617. 800e06a: ee17 2a90 vmov r2, s15
  32618. 800e06e: 687b ldr r3, [r7, #4]
  32619. 800e070: 609a str r2, [r3, #8]
  32620. {
  32621. PLL2_Clocks->PLL2_P_Frequency = 0U;
  32622. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  32623. PLL2_Clocks->PLL2_R_Frequency = 0U;
  32624. }
  32625. }
  32626. 800e072: e008 b.n 800e086 <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  32627. PLL2_Clocks->PLL2_P_Frequency = 0U;
  32628. 800e074: 687b ldr r3, [r7, #4]
  32629. 800e076: 2200 movs r2, #0
  32630. 800e078: 601a str r2, [r3, #0]
  32631. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  32632. 800e07a: 687b ldr r3, [r7, #4]
  32633. 800e07c: 2200 movs r2, #0
  32634. 800e07e: 605a str r2, [r3, #4]
  32635. PLL2_Clocks->PLL2_R_Frequency = 0U;
  32636. 800e080: 687b ldr r3, [r7, #4]
  32637. 800e082: 2200 movs r2, #0
  32638. 800e084: 609a str r2, [r3, #8]
  32639. }
  32640. 800e086: bf00 nop
  32641. 800e088: 3724 adds r7, #36 @ 0x24
  32642. 800e08a: 46bd mov sp, r7
  32643. 800e08c: f85d 7b04 ldr.w r7, [sp], #4
  32644. 800e090: 4770 bx lr
  32645. 800e092: bf00 nop
  32646. 800e094: 58024400 .word 0x58024400
  32647. 800e098: 03d09000 .word 0x03d09000
  32648. 800e09c: 46000000 .word 0x46000000
  32649. 800e0a0: 4c742400 .word 0x4c742400
  32650. 800e0a4: 4a742400 .word 0x4a742400
  32651. 800e0a8: 4bbebc20 .word 0x4bbebc20
  32652. 0800e0ac <HAL_RCCEx_GetPLL3ClockFreq>:
  32653. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  32654. * @param PLL3_Clocks structure.
  32655. * @retval None
  32656. */
  32657. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  32658. {
  32659. 800e0ac: b480 push {r7}
  32660. 800e0ae: b089 sub sp, #36 @ 0x24
  32661. 800e0b0: af00 add r7, sp, #0
  32662. 800e0b2: 6078 str r0, [r7, #4]
  32663. float_t fracn3, pll3vco;
  32664. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  32665. PLL3xCLK = PLL3_VCO / PLLxR
  32666. */
  32667. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  32668. 800e0b4: 4ba1 ldr r3, [pc, #644] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32669. 800e0b6: 6a9b ldr r3, [r3, #40] @ 0x28
  32670. 800e0b8: f003 0303 and.w r3, r3, #3
  32671. 800e0bc: 61bb str r3, [r7, #24]
  32672. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  32673. 800e0be: 4b9f ldr r3, [pc, #636] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32674. 800e0c0: 6a9b ldr r3, [r3, #40] @ 0x28
  32675. 800e0c2: 0d1b lsrs r3, r3, #20
  32676. 800e0c4: f003 033f and.w r3, r3, #63 @ 0x3f
  32677. 800e0c8: 617b str r3, [r7, #20]
  32678. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  32679. 800e0ca: 4b9c ldr r3, [pc, #624] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32680. 800e0cc: 6adb ldr r3, [r3, #44] @ 0x2c
  32681. 800e0ce: 0a1b lsrs r3, r3, #8
  32682. 800e0d0: f003 0301 and.w r3, r3, #1
  32683. 800e0d4: 613b str r3, [r7, #16]
  32684. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  32685. 800e0d6: 4b99 ldr r3, [pc, #612] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32686. 800e0d8: 6c5b ldr r3, [r3, #68] @ 0x44
  32687. 800e0da: 08db lsrs r3, r3, #3
  32688. 800e0dc: f3c3 030c ubfx r3, r3, #0, #13
  32689. 800e0e0: 693a ldr r2, [r7, #16]
  32690. 800e0e2: fb02 f303 mul.w r3, r2, r3
  32691. 800e0e6: ee07 3a90 vmov s15, r3
  32692. 800e0ea: eef8 7a67 vcvt.f32.u32 s15, s15
  32693. 800e0ee: edc7 7a03 vstr s15, [r7, #12]
  32694. if (pll3m != 0U)
  32695. 800e0f2: 697b ldr r3, [r7, #20]
  32696. 800e0f4: 2b00 cmp r3, #0
  32697. 800e0f6: f000 8111 beq.w 800e31c <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  32698. {
  32699. switch (pllsource)
  32700. 800e0fa: 69bb ldr r3, [r7, #24]
  32701. 800e0fc: 2b02 cmp r3, #2
  32702. 800e0fe: f000 8083 beq.w 800e208 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  32703. 800e102: 69bb ldr r3, [r7, #24]
  32704. 800e104: 2b02 cmp r3, #2
  32705. 800e106: f200 80a1 bhi.w 800e24c <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  32706. 800e10a: 69bb ldr r3, [r7, #24]
  32707. 800e10c: 2b00 cmp r3, #0
  32708. 800e10e: d003 beq.n 800e118 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  32709. 800e110: 69bb ldr r3, [r7, #24]
  32710. 800e112: 2b01 cmp r3, #1
  32711. 800e114: d056 beq.n 800e1c4 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  32712. 800e116: e099 b.n 800e24c <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  32713. {
  32714. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  32715. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32716. 800e118: 4b88 ldr r3, [pc, #544] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32717. 800e11a: 681b ldr r3, [r3, #0]
  32718. 800e11c: f003 0320 and.w r3, r3, #32
  32719. 800e120: 2b00 cmp r3, #0
  32720. 800e122: d02d beq.n 800e180 <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  32721. {
  32722. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32723. 800e124: 4b85 ldr r3, [pc, #532] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32724. 800e126: 681b ldr r3, [r3, #0]
  32725. 800e128: 08db lsrs r3, r3, #3
  32726. 800e12a: f003 0303 and.w r3, r3, #3
  32727. 800e12e: 4a84 ldr r2, [pc, #528] @ (800e340 <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  32728. 800e130: fa22 f303 lsr.w r3, r2, r3
  32729. 800e134: 60bb str r3, [r7, #8]
  32730. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  32731. 800e136: 68bb ldr r3, [r7, #8]
  32732. 800e138: ee07 3a90 vmov s15, r3
  32733. 800e13c: eef8 6a67 vcvt.f32.u32 s13, s15
  32734. 800e140: 697b ldr r3, [r7, #20]
  32735. 800e142: ee07 3a90 vmov s15, r3
  32736. 800e146: eef8 7a67 vcvt.f32.u32 s15, s15
  32737. 800e14a: ee86 7aa7 vdiv.f32 s14, s13, s15
  32738. 800e14e: 4b7b ldr r3, [pc, #492] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32739. 800e150: 6c1b ldr r3, [r3, #64] @ 0x40
  32740. 800e152: f3c3 0308 ubfx r3, r3, #0, #9
  32741. 800e156: ee07 3a90 vmov s15, r3
  32742. 800e15a: eef8 6a67 vcvt.f32.u32 s13, s15
  32743. 800e15e: ed97 6a03 vldr s12, [r7, #12]
  32744. 800e162: eddf 5a78 vldr s11, [pc, #480] @ 800e344 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  32745. 800e166: eec6 7a25 vdiv.f32 s15, s12, s11
  32746. 800e16a: ee76 7aa7 vadd.f32 s15, s13, s15
  32747. 800e16e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32748. 800e172: ee77 7aa6 vadd.f32 s15, s15, s13
  32749. 800e176: ee67 7a27 vmul.f32 s15, s14, s15
  32750. 800e17a: edc7 7a07 vstr s15, [r7, #28]
  32751. }
  32752. else
  32753. {
  32754. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  32755. }
  32756. break;
  32757. 800e17e: e087 b.n 800e290 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  32758. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  32759. 800e180: 697b ldr r3, [r7, #20]
  32760. 800e182: ee07 3a90 vmov s15, r3
  32761. 800e186: eef8 7a67 vcvt.f32.u32 s15, s15
  32762. 800e18a: eddf 6a6f vldr s13, [pc, #444] @ 800e348 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  32763. 800e18e: ee86 7aa7 vdiv.f32 s14, s13, s15
  32764. 800e192: 4b6a ldr r3, [pc, #424] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32765. 800e194: 6c1b ldr r3, [r3, #64] @ 0x40
  32766. 800e196: f3c3 0308 ubfx r3, r3, #0, #9
  32767. 800e19a: ee07 3a90 vmov s15, r3
  32768. 800e19e: eef8 6a67 vcvt.f32.u32 s13, s15
  32769. 800e1a2: ed97 6a03 vldr s12, [r7, #12]
  32770. 800e1a6: eddf 5a67 vldr s11, [pc, #412] @ 800e344 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  32771. 800e1aa: eec6 7a25 vdiv.f32 s15, s12, s11
  32772. 800e1ae: ee76 7aa7 vadd.f32 s15, s13, s15
  32773. 800e1b2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32774. 800e1b6: ee77 7aa6 vadd.f32 s15, s15, s13
  32775. 800e1ba: ee67 7a27 vmul.f32 s15, s14, s15
  32776. 800e1be: edc7 7a07 vstr s15, [r7, #28]
  32777. break;
  32778. 800e1c2: e065 b.n 800e290 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  32779. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  32780. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  32781. 800e1c4: 697b ldr r3, [r7, #20]
  32782. 800e1c6: ee07 3a90 vmov s15, r3
  32783. 800e1ca: eef8 7a67 vcvt.f32.u32 s15, s15
  32784. 800e1ce: eddf 6a5f vldr s13, [pc, #380] @ 800e34c <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  32785. 800e1d2: ee86 7aa7 vdiv.f32 s14, s13, s15
  32786. 800e1d6: 4b59 ldr r3, [pc, #356] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32787. 800e1d8: 6c1b ldr r3, [r3, #64] @ 0x40
  32788. 800e1da: f3c3 0308 ubfx r3, r3, #0, #9
  32789. 800e1de: ee07 3a90 vmov s15, r3
  32790. 800e1e2: eef8 6a67 vcvt.f32.u32 s13, s15
  32791. 800e1e6: ed97 6a03 vldr s12, [r7, #12]
  32792. 800e1ea: eddf 5a56 vldr s11, [pc, #344] @ 800e344 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  32793. 800e1ee: eec6 7a25 vdiv.f32 s15, s12, s11
  32794. 800e1f2: ee76 7aa7 vadd.f32 s15, s13, s15
  32795. 800e1f6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32796. 800e1fa: ee77 7aa6 vadd.f32 s15, s15, s13
  32797. 800e1fe: ee67 7a27 vmul.f32 s15, s14, s15
  32798. 800e202: edc7 7a07 vstr s15, [r7, #28]
  32799. break;
  32800. 800e206: e043 b.n 800e290 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  32801. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  32802. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  32803. 800e208: 697b ldr r3, [r7, #20]
  32804. 800e20a: ee07 3a90 vmov s15, r3
  32805. 800e20e: eef8 7a67 vcvt.f32.u32 s15, s15
  32806. 800e212: eddf 6a4f vldr s13, [pc, #316] @ 800e350 <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  32807. 800e216: ee86 7aa7 vdiv.f32 s14, s13, s15
  32808. 800e21a: 4b48 ldr r3, [pc, #288] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32809. 800e21c: 6c1b ldr r3, [r3, #64] @ 0x40
  32810. 800e21e: f3c3 0308 ubfx r3, r3, #0, #9
  32811. 800e222: ee07 3a90 vmov s15, r3
  32812. 800e226: eef8 6a67 vcvt.f32.u32 s13, s15
  32813. 800e22a: ed97 6a03 vldr s12, [r7, #12]
  32814. 800e22e: eddf 5a45 vldr s11, [pc, #276] @ 800e344 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  32815. 800e232: eec6 7a25 vdiv.f32 s15, s12, s11
  32816. 800e236: ee76 7aa7 vadd.f32 s15, s13, s15
  32817. 800e23a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32818. 800e23e: ee77 7aa6 vadd.f32 s15, s15, s13
  32819. 800e242: ee67 7a27 vmul.f32 s15, s14, s15
  32820. 800e246: edc7 7a07 vstr s15, [r7, #28]
  32821. break;
  32822. 800e24a: e021 b.n 800e290 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  32823. default:
  32824. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  32825. 800e24c: 697b ldr r3, [r7, #20]
  32826. 800e24e: ee07 3a90 vmov s15, r3
  32827. 800e252: eef8 7a67 vcvt.f32.u32 s15, s15
  32828. 800e256: eddf 6a3d vldr s13, [pc, #244] @ 800e34c <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  32829. 800e25a: ee86 7aa7 vdiv.f32 s14, s13, s15
  32830. 800e25e: 4b37 ldr r3, [pc, #220] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32831. 800e260: 6c1b ldr r3, [r3, #64] @ 0x40
  32832. 800e262: f3c3 0308 ubfx r3, r3, #0, #9
  32833. 800e266: ee07 3a90 vmov s15, r3
  32834. 800e26a: eef8 6a67 vcvt.f32.u32 s13, s15
  32835. 800e26e: ed97 6a03 vldr s12, [r7, #12]
  32836. 800e272: eddf 5a34 vldr s11, [pc, #208] @ 800e344 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  32837. 800e276: eec6 7a25 vdiv.f32 s15, s12, s11
  32838. 800e27a: ee76 7aa7 vadd.f32 s15, s13, s15
  32839. 800e27e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32840. 800e282: ee77 7aa6 vadd.f32 s15, s15, s13
  32841. 800e286: ee67 7a27 vmul.f32 s15, s14, s15
  32842. 800e28a: edc7 7a07 vstr s15, [r7, #28]
  32843. break;
  32844. 800e28e: bf00 nop
  32845. }
  32846. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  32847. 800e290: 4b2a ldr r3, [pc, #168] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32848. 800e292: 6c1b ldr r3, [r3, #64] @ 0x40
  32849. 800e294: 0a5b lsrs r3, r3, #9
  32850. 800e296: f003 037f and.w r3, r3, #127 @ 0x7f
  32851. 800e29a: ee07 3a90 vmov s15, r3
  32852. 800e29e: eef8 7a67 vcvt.f32.u32 s15, s15
  32853. 800e2a2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32854. 800e2a6: ee37 7a87 vadd.f32 s14, s15, s14
  32855. 800e2aa: edd7 6a07 vldr s13, [r7, #28]
  32856. 800e2ae: eec6 7a87 vdiv.f32 s15, s13, s14
  32857. 800e2b2: eefc 7ae7 vcvt.u32.f32 s15, s15
  32858. 800e2b6: ee17 2a90 vmov r2, s15
  32859. 800e2ba: 687b ldr r3, [r7, #4]
  32860. 800e2bc: 601a str r2, [r3, #0]
  32861. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  32862. 800e2be: 4b1f ldr r3, [pc, #124] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32863. 800e2c0: 6c1b ldr r3, [r3, #64] @ 0x40
  32864. 800e2c2: 0c1b lsrs r3, r3, #16
  32865. 800e2c4: f003 037f and.w r3, r3, #127 @ 0x7f
  32866. 800e2c8: ee07 3a90 vmov s15, r3
  32867. 800e2cc: eef8 7a67 vcvt.f32.u32 s15, s15
  32868. 800e2d0: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32869. 800e2d4: ee37 7a87 vadd.f32 s14, s15, s14
  32870. 800e2d8: edd7 6a07 vldr s13, [r7, #28]
  32871. 800e2dc: eec6 7a87 vdiv.f32 s15, s13, s14
  32872. 800e2e0: eefc 7ae7 vcvt.u32.f32 s15, s15
  32873. 800e2e4: ee17 2a90 vmov r2, s15
  32874. 800e2e8: 687b ldr r3, [r7, #4]
  32875. 800e2ea: 605a str r2, [r3, #4]
  32876. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  32877. 800e2ec: 4b13 ldr r3, [pc, #76] @ (800e33c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  32878. 800e2ee: 6c1b ldr r3, [r3, #64] @ 0x40
  32879. 800e2f0: 0e1b lsrs r3, r3, #24
  32880. 800e2f2: f003 037f and.w r3, r3, #127 @ 0x7f
  32881. 800e2f6: ee07 3a90 vmov s15, r3
  32882. 800e2fa: eef8 7a67 vcvt.f32.u32 s15, s15
  32883. 800e2fe: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32884. 800e302: ee37 7a87 vadd.f32 s14, s15, s14
  32885. 800e306: edd7 6a07 vldr s13, [r7, #28]
  32886. 800e30a: eec6 7a87 vdiv.f32 s15, s13, s14
  32887. 800e30e: eefc 7ae7 vcvt.u32.f32 s15, s15
  32888. 800e312: ee17 2a90 vmov r2, s15
  32889. 800e316: 687b ldr r3, [r7, #4]
  32890. 800e318: 609a str r2, [r3, #8]
  32891. PLL3_Clocks->PLL3_P_Frequency = 0U;
  32892. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  32893. PLL3_Clocks->PLL3_R_Frequency = 0U;
  32894. }
  32895. }
  32896. 800e31a: e008 b.n 800e32e <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  32897. PLL3_Clocks->PLL3_P_Frequency = 0U;
  32898. 800e31c: 687b ldr r3, [r7, #4]
  32899. 800e31e: 2200 movs r2, #0
  32900. 800e320: 601a str r2, [r3, #0]
  32901. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  32902. 800e322: 687b ldr r3, [r7, #4]
  32903. 800e324: 2200 movs r2, #0
  32904. 800e326: 605a str r2, [r3, #4]
  32905. PLL3_Clocks->PLL3_R_Frequency = 0U;
  32906. 800e328: 687b ldr r3, [r7, #4]
  32907. 800e32a: 2200 movs r2, #0
  32908. 800e32c: 609a str r2, [r3, #8]
  32909. }
  32910. 800e32e: bf00 nop
  32911. 800e330: 3724 adds r7, #36 @ 0x24
  32912. 800e332: 46bd mov sp, r7
  32913. 800e334: f85d 7b04 ldr.w r7, [sp], #4
  32914. 800e338: 4770 bx lr
  32915. 800e33a: bf00 nop
  32916. 800e33c: 58024400 .word 0x58024400
  32917. 800e340: 03d09000 .word 0x03d09000
  32918. 800e344: 46000000 .word 0x46000000
  32919. 800e348: 4c742400 .word 0x4c742400
  32920. 800e34c: 4a742400 .word 0x4a742400
  32921. 800e350: 4bbebc20 .word 0x4bbebc20
  32922. 0800e354 <HAL_RCCEx_GetPLL1ClockFreq>:
  32923. * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect.
  32924. * @param PLL1_Clocks structure.
  32925. * @retval None
  32926. */
  32927. void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks)
  32928. {
  32929. 800e354: b480 push {r7}
  32930. 800e356: b089 sub sp, #36 @ 0x24
  32931. 800e358: af00 add r7, sp, #0
  32932. 800e35a: 6078 str r0, [r7, #4]
  32933. uint32_t pllsource, pll1m, pll1fracen, hsivalue;
  32934. float_t fracn1, pll1vco;
  32935. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  32936. 800e35c: 4ba0 ldr r3, [pc, #640] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  32937. 800e35e: 6a9b ldr r3, [r3, #40] @ 0x28
  32938. 800e360: f003 0303 and.w r3, r3, #3
  32939. 800e364: 61bb str r3, [r7, #24]
  32940. pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4);
  32941. 800e366: 4b9e ldr r3, [pc, #632] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  32942. 800e368: 6a9b ldr r3, [r3, #40] @ 0x28
  32943. 800e36a: 091b lsrs r3, r3, #4
  32944. 800e36c: f003 033f and.w r3, r3, #63 @ 0x3f
  32945. 800e370: 617b str r3, [r7, #20]
  32946. pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN;
  32947. 800e372: 4b9b ldr r3, [pc, #620] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  32948. 800e374: 6adb ldr r3, [r3, #44] @ 0x2c
  32949. 800e376: f003 0301 and.w r3, r3, #1
  32950. 800e37a: 613b str r3, [r7, #16]
  32951. fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  32952. 800e37c: 4b98 ldr r3, [pc, #608] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  32953. 800e37e: 6b5b ldr r3, [r3, #52] @ 0x34
  32954. 800e380: 08db lsrs r3, r3, #3
  32955. 800e382: f3c3 030c ubfx r3, r3, #0, #13
  32956. 800e386: 693a ldr r2, [r7, #16]
  32957. 800e388: fb02 f303 mul.w r3, r2, r3
  32958. 800e38c: ee07 3a90 vmov s15, r3
  32959. 800e390: eef8 7a67 vcvt.f32.u32 s15, s15
  32960. 800e394: edc7 7a03 vstr s15, [r7, #12]
  32961. if (pll1m != 0U)
  32962. 800e398: 697b ldr r3, [r7, #20]
  32963. 800e39a: 2b00 cmp r3, #0
  32964. 800e39c: f000 8111 beq.w 800e5c2 <HAL_RCCEx_GetPLL1ClockFreq+0x26e>
  32965. {
  32966. switch (pllsource)
  32967. 800e3a0: 69bb ldr r3, [r7, #24]
  32968. 800e3a2: 2b02 cmp r3, #2
  32969. 800e3a4: f000 8083 beq.w 800e4ae <HAL_RCCEx_GetPLL1ClockFreq+0x15a>
  32970. 800e3a8: 69bb ldr r3, [r7, #24]
  32971. 800e3aa: 2b02 cmp r3, #2
  32972. 800e3ac: f200 80a1 bhi.w 800e4f2 <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  32973. 800e3b0: 69bb ldr r3, [r7, #24]
  32974. 800e3b2: 2b00 cmp r3, #0
  32975. 800e3b4: d003 beq.n 800e3be <HAL_RCCEx_GetPLL1ClockFreq+0x6a>
  32976. 800e3b6: 69bb ldr r3, [r7, #24]
  32977. 800e3b8: 2b01 cmp r3, #1
  32978. 800e3ba: d056 beq.n 800e46a <HAL_RCCEx_GetPLL1ClockFreq+0x116>
  32979. 800e3bc: e099 b.n 800e4f2 <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  32980. {
  32981. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  32982. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32983. 800e3be: 4b88 ldr r3, [pc, #544] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  32984. 800e3c0: 681b ldr r3, [r3, #0]
  32985. 800e3c2: f003 0320 and.w r3, r3, #32
  32986. 800e3c6: 2b00 cmp r3, #0
  32987. 800e3c8: d02d beq.n 800e426 <HAL_RCCEx_GetPLL1ClockFreq+0xd2>
  32988. {
  32989. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32990. 800e3ca: 4b85 ldr r3, [pc, #532] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  32991. 800e3cc: 681b ldr r3, [r3, #0]
  32992. 800e3ce: 08db lsrs r3, r3, #3
  32993. 800e3d0: f003 0303 and.w r3, r3, #3
  32994. 800e3d4: 4a83 ldr r2, [pc, #524] @ (800e5e4 <HAL_RCCEx_GetPLL1ClockFreq+0x290>)
  32995. 800e3d6: fa22 f303 lsr.w r3, r2, r3
  32996. 800e3da: 60bb str r3, [r7, #8]
  32997. pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  32998. 800e3dc: 68bb ldr r3, [r7, #8]
  32999. 800e3de: ee07 3a90 vmov s15, r3
  33000. 800e3e2: eef8 6a67 vcvt.f32.u32 s13, s15
  33001. 800e3e6: 697b ldr r3, [r7, #20]
  33002. 800e3e8: ee07 3a90 vmov s15, r3
  33003. 800e3ec: eef8 7a67 vcvt.f32.u32 s15, s15
  33004. 800e3f0: ee86 7aa7 vdiv.f32 s14, s13, s15
  33005. 800e3f4: 4b7a ldr r3, [pc, #488] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33006. 800e3f6: 6b1b ldr r3, [r3, #48] @ 0x30
  33007. 800e3f8: f3c3 0308 ubfx r3, r3, #0, #9
  33008. 800e3fc: ee07 3a90 vmov s15, r3
  33009. 800e400: eef8 6a67 vcvt.f32.u32 s13, s15
  33010. 800e404: ed97 6a03 vldr s12, [r7, #12]
  33011. 800e408: eddf 5a77 vldr s11, [pc, #476] @ 800e5e8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33012. 800e40c: eec6 7a25 vdiv.f32 s15, s12, s11
  33013. 800e410: ee76 7aa7 vadd.f32 s15, s13, s15
  33014. 800e414: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33015. 800e418: ee77 7aa6 vadd.f32 s15, s15, s13
  33016. 800e41c: ee67 7a27 vmul.f32 s15, s14, s15
  33017. 800e420: edc7 7a07 vstr s15, [r7, #28]
  33018. }
  33019. else
  33020. {
  33021. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33022. }
  33023. break;
  33024. 800e424: e087 b.n 800e536 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33025. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33026. 800e426: 697b ldr r3, [r7, #20]
  33027. 800e428: ee07 3a90 vmov s15, r3
  33028. 800e42c: eef8 7a67 vcvt.f32.u32 s15, s15
  33029. 800e430: eddf 6a6e vldr s13, [pc, #440] @ 800e5ec <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  33030. 800e434: ee86 7aa7 vdiv.f32 s14, s13, s15
  33031. 800e438: 4b69 ldr r3, [pc, #420] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33032. 800e43a: 6b1b ldr r3, [r3, #48] @ 0x30
  33033. 800e43c: f3c3 0308 ubfx r3, r3, #0, #9
  33034. 800e440: ee07 3a90 vmov s15, r3
  33035. 800e444: eef8 6a67 vcvt.f32.u32 s13, s15
  33036. 800e448: ed97 6a03 vldr s12, [r7, #12]
  33037. 800e44c: eddf 5a66 vldr s11, [pc, #408] @ 800e5e8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33038. 800e450: eec6 7a25 vdiv.f32 s15, s12, s11
  33039. 800e454: ee76 7aa7 vadd.f32 s15, s13, s15
  33040. 800e458: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33041. 800e45c: ee77 7aa6 vadd.f32 s15, s15, s13
  33042. 800e460: ee67 7a27 vmul.f32 s15, s14, s15
  33043. 800e464: edc7 7a07 vstr s15, [r7, #28]
  33044. break;
  33045. 800e468: e065 b.n 800e536 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33046. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33047. pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33048. 800e46a: 697b ldr r3, [r7, #20]
  33049. 800e46c: ee07 3a90 vmov s15, r3
  33050. 800e470: eef8 7a67 vcvt.f32.u32 s15, s15
  33051. 800e474: eddf 6a5e vldr s13, [pc, #376] @ 800e5f0 <HAL_RCCEx_GetPLL1ClockFreq+0x29c>
  33052. 800e478: ee86 7aa7 vdiv.f32 s14, s13, s15
  33053. 800e47c: 4b58 ldr r3, [pc, #352] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33054. 800e47e: 6b1b ldr r3, [r3, #48] @ 0x30
  33055. 800e480: f3c3 0308 ubfx r3, r3, #0, #9
  33056. 800e484: ee07 3a90 vmov s15, r3
  33057. 800e488: eef8 6a67 vcvt.f32.u32 s13, s15
  33058. 800e48c: ed97 6a03 vldr s12, [r7, #12]
  33059. 800e490: eddf 5a55 vldr s11, [pc, #340] @ 800e5e8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33060. 800e494: eec6 7a25 vdiv.f32 s15, s12, s11
  33061. 800e498: ee76 7aa7 vadd.f32 s15, s13, s15
  33062. 800e49c: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33063. 800e4a0: ee77 7aa6 vadd.f32 s15, s15, s13
  33064. 800e4a4: ee67 7a27 vmul.f32 s15, s14, s15
  33065. 800e4a8: edc7 7a07 vstr s15, [r7, #28]
  33066. break;
  33067. 800e4ac: e043 b.n 800e536 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33068. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33069. pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33070. 800e4ae: 697b ldr r3, [r7, #20]
  33071. 800e4b0: ee07 3a90 vmov s15, r3
  33072. 800e4b4: eef8 7a67 vcvt.f32.u32 s15, s15
  33073. 800e4b8: eddf 6a4e vldr s13, [pc, #312] @ 800e5f4 <HAL_RCCEx_GetPLL1ClockFreq+0x2a0>
  33074. 800e4bc: ee86 7aa7 vdiv.f32 s14, s13, s15
  33075. 800e4c0: 4b47 ldr r3, [pc, #284] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33076. 800e4c2: 6b1b ldr r3, [r3, #48] @ 0x30
  33077. 800e4c4: f3c3 0308 ubfx r3, r3, #0, #9
  33078. 800e4c8: ee07 3a90 vmov s15, r3
  33079. 800e4cc: eef8 6a67 vcvt.f32.u32 s13, s15
  33080. 800e4d0: ed97 6a03 vldr s12, [r7, #12]
  33081. 800e4d4: eddf 5a44 vldr s11, [pc, #272] @ 800e5e8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33082. 800e4d8: eec6 7a25 vdiv.f32 s15, s12, s11
  33083. 800e4dc: ee76 7aa7 vadd.f32 s15, s13, s15
  33084. 800e4e0: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33085. 800e4e4: ee77 7aa6 vadd.f32 s15, s15, s13
  33086. 800e4e8: ee67 7a27 vmul.f32 s15, s14, s15
  33087. 800e4ec: edc7 7a07 vstr s15, [r7, #28]
  33088. break;
  33089. 800e4f0: e021 b.n 800e536 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33090. default:
  33091. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33092. 800e4f2: 697b ldr r3, [r7, #20]
  33093. 800e4f4: ee07 3a90 vmov s15, r3
  33094. 800e4f8: eef8 7a67 vcvt.f32.u32 s15, s15
  33095. 800e4fc: eddf 6a3b vldr s13, [pc, #236] @ 800e5ec <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  33096. 800e500: ee86 7aa7 vdiv.f32 s14, s13, s15
  33097. 800e504: 4b36 ldr r3, [pc, #216] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33098. 800e506: 6b1b ldr r3, [r3, #48] @ 0x30
  33099. 800e508: f3c3 0308 ubfx r3, r3, #0, #9
  33100. 800e50c: ee07 3a90 vmov s15, r3
  33101. 800e510: eef8 6a67 vcvt.f32.u32 s13, s15
  33102. 800e514: ed97 6a03 vldr s12, [r7, #12]
  33103. 800e518: eddf 5a33 vldr s11, [pc, #204] @ 800e5e8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33104. 800e51c: eec6 7a25 vdiv.f32 s15, s12, s11
  33105. 800e520: ee76 7aa7 vadd.f32 s15, s13, s15
  33106. 800e524: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33107. 800e528: ee77 7aa6 vadd.f32 s15, s15, s13
  33108. 800e52c: ee67 7a27 vmul.f32 s15, s14, s15
  33109. 800e530: edc7 7a07 vstr s15, [r7, #28]
  33110. break;
  33111. 800e534: bf00 nop
  33112. }
  33113. PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ;
  33114. 800e536: 4b2a ldr r3, [pc, #168] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33115. 800e538: 6b1b ldr r3, [r3, #48] @ 0x30
  33116. 800e53a: 0a5b lsrs r3, r3, #9
  33117. 800e53c: f003 037f and.w r3, r3, #127 @ 0x7f
  33118. 800e540: ee07 3a90 vmov s15, r3
  33119. 800e544: eef8 7a67 vcvt.f32.u32 s15, s15
  33120. 800e548: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33121. 800e54c: ee37 7a87 vadd.f32 s14, s15, s14
  33122. 800e550: edd7 6a07 vldr s13, [r7, #28]
  33123. 800e554: eec6 7a87 vdiv.f32 s15, s13, s14
  33124. 800e558: eefc 7ae7 vcvt.u32.f32 s15, s15
  33125. 800e55c: ee17 2a90 vmov r2, s15
  33126. 800e560: 687b ldr r3, [r7, #4]
  33127. 800e562: 601a str r2, [r3, #0]
  33128. PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ;
  33129. 800e564: 4b1e ldr r3, [pc, #120] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33130. 800e566: 6b1b ldr r3, [r3, #48] @ 0x30
  33131. 800e568: 0c1b lsrs r3, r3, #16
  33132. 800e56a: f003 037f and.w r3, r3, #127 @ 0x7f
  33133. 800e56e: ee07 3a90 vmov s15, r3
  33134. 800e572: eef8 7a67 vcvt.f32.u32 s15, s15
  33135. 800e576: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33136. 800e57a: ee37 7a87 vadd.f32 s14, s15, s14
  33137. 800e57e: edd7 6a07 vldr s13, [r7, #28]
  33138. 800e582: eec6 7a87 vdiv.f32 s15, s13, s14
  33139. 800e586: eefc 7ae7 vcvt.u32.f32 s15, s15
  33140. 800e58a: ee17 2a90 vmov r2, s15
  33141. 800e58e: 687b ldr r3, [r7, #4]
  33142. 800e590: 605a str r2, [r3, #4]
  33143. PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ;
  33144. 800e592: 4b13 ldr r3, [pc, #76] @ (800e5e0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33145. 800e594: 6b1b ldr r3, [r3, #48] @ 0x30
  33146. 800e596: 0e1b lsrs r3, r3, #24
  33147. 800e598: f003 037f and.w r3, r3, #127 @ 0x7f
  33148. 800e59c: ee07 3a90 vmov s15, r3
  33149. 800e5a0: eef8 7a67 vcvt.f32.u32 s15, s15
  33150. 800e5a4: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33151. 800e5a8: ee37 7a87 vadd.f32 s14, s15, s14
  33152. 800e5ac: edd7 6a07 vldr s13, [r7, #28]
  33153. 800e5b0: eec6 7a87 vdiv.f32 s15, s13, s14
  33154. 800e5b4: eefc 7ae7 vcvt.u32.f32 s15, s15
  33155. 800e5b8: ee17 2a90 vmov r2, s15
  33156. 800e5bc: 687b ldr r3, [r7, #4]
  33157. 800e5be: 609a str r2, [r3, #8]
  33158. PLL1_Clocks->PLL1_P_Frequency = 0U;
  33159. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  33160. PLL1_Clocks->PLL1_R_Frequency = 0U;
  33161. }
  33162. }
  33163. 800e5c0: e008 b.n 800e5d4 <HAL_RCCEx_GetPLL1ClockFreq+0x280>
  33164. PLL1_Clocks->PLL1_P_Frequency = 0U;
  33165. 800e5c2: 687b ldr r3, [r7, #4]
  33166. 800e5c4: 2200 movs r2, #0
  33167. 800e5c6: 601a str r2, [r3, #0]
  33168. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  33169. 800e5c8: 687b ldr r3, [r7, #4]
  33170. 800e5ca: 2200 movs r2, #0
  33171. 800e5cc: 605a str r2, [r3, #4]
  33172. PLL1_Clocks->PLL1_R_Frequency = 0U;
  33173. 800e5ce: 687b ldr r3, [r7, #4]
  33174. 800e5d0: 2200 movs r2, #0
  33175. 800e5d2: 609a str r2, [r3, #8]
  33176. }
  33177. 800e5d4: bf00 nop
  33178. 800e5d6: 3724 adds r7, #36 @ 0x24
  33179. 800e5d8: 46bd mov sp, r7
  33180. 800e5da: f85d 7b04 ldr.w r7, [sp], #4
  33181. 800e5de: 4770 bx lr
  33182. 800e5e0: 58024400 .word 0x58024400
  33183. 800e5e4: 03d09000 .word 0x03d09000
  33184. 800e5e8: 46000000 .word 0x46000000
  33185. 800e5ec: 4c742400 .word 0x4c742400
  33186. 800e5f0: 4a742400 .word 0x4a742400
  33187. 800e5f4: 4bbebc20 .word 0x4bbebc20
  33188. 0800e5f8 <RCCEx_PLL2_Config>:
  33189. * @note PLL2 is temporary disabled to apply new parameters
  33190. *
  33191. * @retval HAL status
  33192. */
  33193. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  33194. {
  33195. 800e5f8: b580 push {r7, lr}
  33196. 800e5fa: b084 sub sp, #16
  33197. 800e5fc: af00 add r7, sp, #0
  33198. 800e5fe: 6078 str r0, [r7, #4]
  33199. 800e600: 6039 str r1, [r7, #0]
  33200. uint32_t tickstart;
  33201. HAL_StatusTypeDef status = HAL_OK;
  33202. 800e602: 2300 movs r3, #0
  33203. 800e604: 73fb strb r3, [r7, #15]
  33204. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  33205. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  33206. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  33207. /* Check that PLL2 OSC clock source is already set */
  33208. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  33209. 800e606: 4b53 ldr r3, [pc, #332] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33210. 800e608: 6a9b ldr r3, [r3, #40] @ 0x28
  33211. 800e60a: f003 0303 and.w r3, r3, #3
  33212. 800e60e: 2b03 cmp r3, #3
  33213. 800e610: d101 bne.n 800e616 <RCCEx_PLL2_Config+0x1e>
  33214. {
  33215. return HAL_ERROR;
  33216. 800e612: 2301 movs r3, #1
  33217. 800e614: e099 b.n 800e74a <RCCEx_PLL2_Config+0x152>
  33218. else
  33219. {
  33220. /* Disable PLL2. */
  33221. __HAL_RCC_PLL2_DISABLE();
  33222. 800e616: 4b4f ldr r3, [pc, #316] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33223. 800e618: 681b ldr r3, [r3, #0]
  33224. 800e61a: 4a4e ldr r2, [pc, #312] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33225. 800e61c: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  33226. 800e620: 6013 str r3, [r2, #0]
  33227. /* Get Start Tick*/
  33228. tickstart = HAL_GetTick();
  33229. 800e622: f7f6 ff0b bl 800543c <HAL_GetTick>
  33230. 800e626: 60b8 str r0, [r7, #8]
  33231. /* Wait till PLL is disabled */
  33232. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  33233. 800e628: e008 b.n 800e63c <RCCEx_PLL2_Config+0x44>
  33234. {
  33235. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  33236. 800e62a: f7f6 ff07 bl 800543c <HAL_GetTick>
  33237. 800e62e: 4602 mov r2, r0
  33238. 800e630: 68bb ldr r3, [r7, #8]
  33239. 800e632: 1ad3 subs r3, r2, r3
  33240. 800e634: 2b02 cmp r3, #2
  33241. 800e636: d901 bls.n 800e63c <RCCEx_PLL2_Config+0x44>
  33242. {
  33243. return HAL_TIMEOUT;
  33244. 800e638: 2303 movs r3, #3
  33245. 800e63a: e086 b.n 800e74a <RCCEx_PLL2_Config+0x152>
  33246. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  33247. 800e63c: 4b45 ldr r3, [pc, #276] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33248. 800e63e: 681b ldr r3, [r3, #0]
  33249. 800e640: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33250. 800e644: 2b00 cmp r3, #0
  33251. 800e646: d1f0 bne.n 800e62a <RCCEx_PLL2_Config+0x32>
  33252. }
  33253. }
  33254. /* Configure PLL2 multiplication and division factors. */
  33255. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  33256. 800e648: 4b42 ldr r3, [pc, #264] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33257. 800e64a: 6a9b ldr r3, [r3, #40] @ 0x28
  33258. 800e64c: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  33259. 800e650: 687b ldr r3, [r7, #4]
  33260. 800e652: 681b ldr r3, [r3, #0]
  33261. 800e654: 031b lsls r3, r3, #12
  33262. 800e656: 493f ldr r1, [pc, #252] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33263. 800e658: 4313 orrs r3, r2
  33264. 800e65a: 628b str r3, [r1, #40] @ 0x28
  33265. 800e65c: 687b ldr r3, [r7, #4]
  33266. 800e65e: 685b ldr r3, [r3, #4]
  33267. 800e660: 3b01 subs r3, #1
  33268. 800e662: f3c3 0208 ubfx r2, r3, #0, #9
  33269. 800e666: 687b ldr r3, [r7, #4]
  33270. 800e668: 689b ldr r3, [r3, #8]
  33271. 800e66a: 3b01 subs r3, #1
  33272. 800e66c: 025b lsls r3, r3, #9
  33273. 800e66e: b29b uxth r3, r3
  33274. 800e670: 431a orrs r2, r3
  33275. 800e672: 687b ldr r3, [r7, #4]
  33276. 800e674: 68db ldr r3, [r3, #12]
  33277. 800e676: 3b01 subs r3, #1
  33278. 800e678: 041b lsls r3, r3, #16
  33279. 800e67a: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  33280. 800e67e: 431a orrs r2, r3
  33281. 800e680: 687b ldr r3, [r7, #4]
  33282. 800e682: 691b ldr r3, [r3, #16]
  33283. 800e684: 3b01 subs r3, #1
  33284. 800e686: 061b lsls r3, r3, #24
  33285. 800e688: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  33286. 800e68c: 4931 ldr r1, [pc, #196] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33287. 800e68e: 4313 orrs r3, r2
  33288. 800e690: 638b str r3, [r1, #56] @ 0x38
  33289. pll2->PLL2P,
  33290. pll2->PLL2Q,
  33291. pll2->PLL2R);
  33292. /* Select PLL2 input reference frequency range: VCI */
  33293. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  33294. 800e692: 4b30 ldr r3, [pc, #192] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33295. 800e694: 6adb ldr r3, [r3, #44] @ 0x2c
  33296. 800e696: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  33297. 800e69a: 687b ldr r3, [r7, #4]
  33298. 800e69c: 695b ldr r3, [r3, #20]
  33299. 800e69e: 492d ldr r1, [pc, #180] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33300. 800e6a0: 4313 orrs r3, r2
  33301. 800e6a2: 62cb str r3, [r1, #44] @ 0x2c
  33302. /* Select PLL2 output frequency range : VCO */
  33303. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  33304. 800e6a4: 4b2b ldr r3, [pc, #172] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33305. 800e6a6: 6adb ldr r3, [r3, #44] @ 0x2c
  33306. 800e6a8: f023 0220 bic.w r2, r3, #32
  33307. 800e6ac: 687b ldr r3, [r7, #4]
  33308. 800e6ae: 699b ldr r3, [r3, #24]
  33309. 800e6b0: 4928 ldr r1, [pc, #160] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33310. 800e6b2: 4313 orrs r3, r2
  33311. 800e6b4: 62cb str r3, [r1, #44] @ 0x2c
  33312. /* Disable PLL2FRACN . */
  33313. __HAL_RCC_PLL2FRACN_DISABLE();
  33314. 800e6b6: 4b27 ldr r3, [pc, #156] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33315. 800e6b8: 6adb ldr r3, [r3, #44] @ 0x2c
  33316. 800e6ba: 4a26 ldr r2, [pc, #152] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33317. 800e6bc: f023 0310 bic.w r3, r3, #16
  33318. 800e6c0: 62d3 str r3, [r2, #44] @ 0x2c
  33319. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  33320. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  33321. 800e6c2: 4b24 ldr r3, [pc, #144] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33322. 800e6c4: 6bda ldr r2, [r3, #60] @ 0x3c
  33323. 800e6c6: 4b24 ldr r3, [pc, #144] @ (800e758 <RCCEx_PLL2_Config+0x160>)
  33324. 800e6c8: 4013 ands r3, r2
  33325. 800e6ca: 687a ldr r2, [r7, #4]
  33326. 800e6cc: 69d2 ldr r2, [r2, #28]
  33327. 800e6ce: 00d2 lsls r2, r2, #3
  33328. 800e6d0: 4920 ldr r1, [pc, #128] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33329. 800e6d2: 4313 orrs r3, r2
  33330. 800e6d4: 63cb str r3, [r1, #60] @ 0x3c
  33331. /* Enable PLL2FRACN . */
  33332. __HAL_RCC_PLL2FRACN_ENABLE();
  33333. 800e6d6: 4b1f ldr r3, [pc, #124] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33334. 800e6d8: 6adb ldr r3, [r3, #44] @ 0x2c
  33335. 800e6da: 4a1e ldr r2, [pc, #120] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33336. 800e6dc: f043 0310 orr.w r3, r3, #16
  33337. 800e6e0: 62d3 str r3, [r2, #44] @ 0x2c
  33338. /* Enable the PLL2 clock output */
  33339. if (Divider == DIVIDER_P_UPDATE)
  33340. 800e6e2: 683b ldr r3, [r7, #0]
  33341. 800e6e4: 2b00 cmp r3, #0
  33342. 800e6e6: d106 bne.n 800e6f6 <RCCEx_PLL2_Config+0xfe>
  33343. {
  33344. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  33345. 800e6e8: 4b1a ldr r3, [pc, #104] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33346. 800e6ea: 6adb ldr r3, [r3, #44] @ 0x2c
  33347. 800e6ec: 4a19 ldr r2, [pc, #100] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33348. 800e6ee: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  33349. 800e6f2: 62d3 str r3, [r2, #44] @ 0x2c
  33350. 800e6f4: e00f b.n 800e716 <RCCEx_PLL2_Config+0x11e>
  33351. }
  33352. else if (Divider == DIVIDER_Q_UPDATE)
  33353. 800e6f6: 683b ldr r3, [r7, #0]
  33354. 800e6f8: 2b01 cmp r3, #1
  33355. 800e6fa: d106 bne.n 800e70a <RCCEx_PLL2_Config+0x112>
  33356. {
  33357. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  33358. 800e6fc: 4b15 ldr r3, [pc, #84] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33359. 800e6fe: 6adb ldr r3, [r3, #44] @ 0x2c
  33360. 800e700: 4a14 ldr r2, [pc, #80] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33361. 800e702: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  33362. 800e706: 62d3 str r3, [r2, #44] @ 0x2c
  33363. 800e708: e005 b.n 800e716 <RCCEx_PLL2_Config+0x11e>
  33364. }
  33365. else
  33366. {
  33367. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  33368. 800e70a: 4b12 ldr r3, [pc, #72] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33369. 800e70c: 6adb ldr r3, [r3, #44] @ 0x2c
  33370. 800e70e: 4a11 ldr r2, [pc, #68] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33371. 800e710: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  33372. 800e714: 62d3 str r3, [r2, #44] @ 0x2c
  33373. }
  33374. /* Enable PLL2. */
  33375. __HAL_RCC_PLL2_ENABLE();
  33376. 800e716: 4b0f ldr r3, [pc, #60] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33377. 800e718: 681b ldr r3, [r3, #0]
  33378. 800e71a: 4a0e ldr r2, [pc, #56] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33379. 800e71c: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  33380. 800e720: 6013 str r3, [r2, #0]
  33381. /* Get Start Tick*/
  33382. tickstart = HAL_GetTick();
  33383. 800e722: f7f6 fe8b bl 800543c <HAL_GetTick>
  33384. 800e726: 60b8 str r0, [r7, #8]
  33385. /* Wait till PLL2 is ready */
  33386. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  33387. 800e728: e008 b.n 800e73c <RCCEx_PLL2_Config+0x144>
  33388. {
  33389. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  33390. 800e72a: f7f6 fe87 bl 800543c <HAL_GetTick>
  33391. 800e72e: 4602 mov r2, r0
  33392. 800e730: 68bb ldr r3, [r7, #8]
  33393. 800e732: 1ad3 subs r3, r2, r3
  33394. 800e734: 2b02 cmp r3, #2
  33395. 800e736: d901 bls.n 800e73c <RCCEx_PLL2_Config+0x144>
  33396. {
  33397. return HAL_TIMEOUT;
  33398. 800e738: 2303 movs r3, #3
  33399. 800e73a: e006 b.n 800e74a <RCCEx_PLL2_Config+0x152>
  33400. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  33401. 800e73c: 4b05 ldr r3, [pc, #20] @ (800e754 <RCCEx_PLL2_Config+0x15c>)
  33402. 800e73e: 681b ldr r3, [r3, #0]
  33403. 800e740: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33404. 800e744: 2b00 cmp r3, #0
  33405. 800e746: d0f0 beq.n 800e72a <RCCEx_PLL2_Config+0x132>
  33406. }
  33407. }
  33408. return status;
  33409. 800e748: 7bfb ldrb r3, [r7, #15]
  33410. }
  33411. 800e74a: 4618 mov r0, r3
  33412. 800e74c: 3710 adds r7, #16
  33413. 800e74e: 46bd mov sp, r7
  33414. 800e750: bd80 pop {r7, pc}
  33415. 800e752: bf00 nop
  33416. 800e754: 58024400 .word 0x58024400
  33417. 800e758: ffff0007 .word 0xffff0007
  33418. 0800e75c <RCCEx_PLL3_Config>:
  33419. * @note PLL3 is temporary disabled to apply new parameters
  33420. *
  33421. * @retval HAL status
  33422. */
  33423. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  33424. {
  33425. 800e75c: b580 push {r7, lr}
  33426. 800e75e: b084 sub sp, #16
  33427. 800e760: af00 add r7, sp, #0
  33428. 800e762: 6078 str r0, [r7, #4]
  33429. 800e764: 6039 str r1, [r7, #0]
  33430. uint32_t tickstart;
  33431. HAL_StatusTypeDef status = HAL_OK;
  33432. 800e766: 2300 movs r3, #0
  33433. 800e768: 73fb strb r3, [r7, #15]
  33434. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  33435. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  33436. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  33437. /* Check that PLL3 OSC clock source is already set */
  33438. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  33439. 800e76a: 4b53 ldr r3, [pc, #332] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33440. 800e76c: 6a9b ldr r3, [r3, #40] @ 0x28
  33441. 800e76e: f003 0303 and.w r3, r3, #3
  33442. 800e772: 2b03 cmp r3, #3
  33443. 800e774: d101 bne.n 800e77a <RCCEx_PLL3_Config+0x1e>
  33444. {
  33445. return HAL_ERROR;
  33446. 800e776: 2301 movs r3, #1
  33447. 800e778: e099 b.n 800e8ae <RCCEx_PLL3_Config+0x152>
  33448. else
  33449. {
  33450. /* Disable PLL3. */
  33451. __HAL_RCC_PLL3_DISABLE();
  33452. 800e77a: 4b4f ldr r3, [pc, #316] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33453. 800e77c: 681b ldr r3, [r3, #0]
  33454. 800e77e: 4a4e ldr r2, [pc, #312] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33455. 800e780: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  33456. 800e784: 6013 str r3, [r2, #0]
  33457. /* Get Start Tick*/
  33458. tickstart = HAL_GetTick();
  33459. 800e786: f7f6 fe59 bl 800543c <HAL_GetTick>
  33460. 800e78a: 60b8 str r0, [r7, #8]
  33461. /* Wait till PLL3 is ready */
  33462. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  33463. 800e78c: e008 b.n 800e7a0 <RCCEx_PLL3_Config+0x44>
  33464. {
  33465. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  33466. 800e78e: f7f6 fe55 bl 800543c <HAL_GetTick>
  33467. 800e792: 4602 mov r2, r0
  33468. 800e794: 68bb ldr r3, [r7, #8]
  33469. 800e796: 1ad3 subs r3, r2, r3
  33470. 800e798: 2b02 cmp r3, #2
  33471. 800e79a: d901 bls.n 800e7a0 <RCCEx_PLL3_Config+0x44>
  33472. {
  33473. return HAL_TIMEOUT;
  33474. 800e79c: 2303 movs r3, #3
  33475. 800e79e: e086 b.n 800e8ae <RCCEx_PLL3_Config+0x152>
  33476. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  33477. 800e7a0: 4b45 ldr r3, [pc, #276] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33478. 800e7a2: 681b ldr r3, [r3, #0]
  33479. 800e7a4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33480. 800e7a8: 2b00 cmp r3, #0
  33481. 800e7aa: d1f0 bne.n 800e78e <RCCEx_PLL3_Config+0x32>
  33482. }
  33483. }
  33484. /* Configure the PLL3 multiplication and division factors. */
  33485. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  33486. 800e7ac: 4b42 ldr r3, [pc, #264] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33487. 800e7ae: 6a9b ldr r3, [r3, #40] @ 0x28
  33488. 800e7b0: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  33489. 800e7b4: 687b ldr r3, [r7, #4]
  33490. 800e7b6: 681b ldr r3, [r3, #0]
  33491. 800e7b8: 051b lsls r3, r3, #20
  33492. 800e7ba: 493f ldr r1, [pc, #252] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33493. 800e7bc: 4313 orrs r3, r2
  33494. 800e7be: 628b str r3, [r1, #40] @ 0x28
  33495. 800e7c0: 687b ldr r3, [r7, #4]
  33496. 800e7c2: 685b ldr r3, [r3, #4]
  33497. 800e7c4: 3b01 subs r3, #1
  33498. 800e7c6: f3c3 0208 ubfx r2, r3, #0, #9
  33499. 800e7ca: 687b ldr r3, [r7, #4]
  33500. 800e7cc: 689b ldr r3, [r3, #8]
  33501. 800e7ce: 3b01 subs r3, #1
  33502. 800e7d0: 025b lsls r3, r3, #9
  33503. 800e7d2: b29b uxth r3, r3
  33504. 800e7d4: 431a orrs r2, r3
  33505. 800e7d6: 687b ldr r3, [r7, #4]
  33506. 800e7d8: 68db ldr r3, [r3, #12]
  33507. 800e7da: 3b01 subs r3, #1
  33508. 800e7dc: 041b lsls r3, r3, #16
  33509. 800e7de: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  33510. 800e7e2: 431a orrs r2, r3
  33511. 800e7e4: 687b ldr r3, [r7, #4]
  33512. 800e7e6: 691b ldr r3, [r3, #16]
  33513. 800e7e8: 3b01 subs r3, #1
  33514. 800e7ea: 061b lsls r3, r3, #24
  33515. 800e7ec: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  33516. 800e7f0: 4931 ldr r1, [pc, #196] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33517. 800e7f2: 4313 orrs r3, r2
  33518. 800e7f4: 640b str r3, [r1, #64] @ 0x40
  33519. pll3->PLL3P,
  33520. pll3->PLL3Q,
  33521. pll3->PLL3R);
  33522. /* Select PLL3 input reference frequency range: VCI */
  33523. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  33524. 800e7f6: 4b30 ldr r3, [pc, #192] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33525. 800e7f8: 6adb ldr r3, [r3, #44] @ 0x2c
  33526. 800e7fa: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  33527. 800e7fe: 687b ldr r3, [r7, #4]
  33528. 800e800: 695b ldr r3, [r3, #20]
  33529. 800e802: 492d ldr r1, [pc, #180] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33530. 800e804: 4313 orrs r3, r2
  33531. 800e806: 62cb str r3, [r1, #44] @ 0x2c
  33532. /* Select PLL3 output frequency range : VCO */
  33533. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  33534. 800e808: 4b2b ldr r3, [pc, #172] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33535. 800e80a: 6adb ldr r3, [r3, #44] @ 0x2c
  33536. 800e80c: f423 7200 bic.w r2, r3, #512 @ 0x200
  33537. 800e810: 687b ldr r3, [r7, #4]
  33538. 800e812: 699b ldr r3, [r3, #24]
  33539. 800e814: 4928 ldr r1, [pc, #160] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33540. 800e816: 4313 orrs r3, r2
  33541. 800e818: 62cb str r3, [r1, #44] @ 0x2c
  33542. /* Disable PLL3FRACN . */
  33543. __HAL_RCC_PLL3FRACN_DISABLE();
  33544. 800e81a: 4b27 ldr r3, [pc, #156] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33545. 800e81c: 6adb ldr r3, [r3, #44] @ 0x2c
  33546. 800e81e: 4a26 ldr r2, [pc, #152] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33547. 800e820: f423 7380 bic.w r3, r3, #256 @ 0x100
  33548. 800e824: 62d3 str r3, [r2, #44] @ 0x2c
  33549. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  33550. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  33551. 800e826: 4b24 ldr r3, [pc, #144] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33552. 800e828: 6c5a ldr r2, [r3, #68] @ 0x44
  33553. 800e82a: 4b24 ldr r3, [pc, #144] @ (800e8bc <RCCEx_PLL3_Config+0x160>)
  33554. 800e82c: 4013 ands r3, r2
  33555. 800e82e: 687a ldr r2, [r7, #4]
  33556. 800e830: 69d2 ldr r2, [r2, #28]
  33557. 800e832: 00d2 lsls r2, r2, #3
  33558. 800e834: 4920 ldr r1, [pc, #128] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33559. 800e836: 4313 orrs r3, r2
  33560. 800e838: 644b str r3, [r1, #68] @ 0x44
  33561. /* Enable PLL3FRACN . */
  33562. __HAL_RCC_PLL3FRACN_ENABLE();
  33563. 800e83a: 4b1f ldr r3, [pc, #124] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33564. 800e83c: 6adb ldr r3, [r3, #44] @ 0x2c
  33565. 800e83e: 4a1e ldr r2, [pc, #120] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33566. 800e840: f443 7380 orr.w r3, r3, #256 @ 0x100
  33567. 800e844: 62d3 str r3, [r2, #44] @ 0x2c
  33568. /* Enable the PLL3 clock output */
  33569. if (Divider == DIVIDER_P_UPDATE)
  33570. 800e846: 683b ldr r3, [r7, #0]
  33571. 800e848: 2b00 cmp r3, #0
  33572. 800e84a: d106 bne.n 800e85a <RCCEx_PLL3_Config+0xfe>
  33573. {
  33574. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  33575. 800e84c: 4b1a ldr r3, [pc, #104] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33576. 800e84e: 6adb ldr r3, [r3, #44] @ 0x2c
  33577. 800e850: 4a19 ldr r2, [pc, #100] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33578. 800e852: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  33579. 800e856: 62d3 str r3, [r2, #44] @ 0x2c
  33580. 800e858: e00f b.n 800e87a <RCCEx_PLL3_Config+0x11e>
  33581. }
  33582. else if (Divider == DIVIDER_Q_UPDATE)
  33583. 800e85a: 683b ldr r3, [r7, #0]
  33584. 800e85c: 2b01 cmp r3, #1
  33585. 800e85e: d106 bne.n 800e86e <RCCEx_PLL3_Config+0x112>
  33586. {
  33587. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  33588. 800e860: 4b15 ldr r3, [pc, #84] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33589. 800e862: 6adb ldr r3, [r3, #44] @ 0x2c
  33590. 800e864: 4a14 ldr r2, [pc, #80] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33591. 800e866: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  33592. 800e86a: 62d3 str r3, [r2, #44] @ 0x2c
  33593. 800e86c: e005 b.n 800e87a <RCCEx_PLL3_Config+0x11e>
  33594. }
  33595. else
  33596. {
  33597. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  33598. 800e86e: 4b12 ldr r3, [pc, #72] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33599. 800e870: 6adb ldr r3, [r3, #44] @ 0x2c
  33600. 800e872: 4a11 ldr r2, [pc, #68] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33601. 800e874: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  33602. 800e878: 62d3 str r3, [r2, #44] @ 0x2c
  33603. }
  33604. /* Enable PLL3. */
  33605. __HAL_RCC_PLL3_ENABLE();
  33606. 800e87a: 4b0f ldr r3, [pc, #60] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33607. 800e87c: 681b ldr r3, [r3, #0]
  33608. 800e87e: 4a0e ldr r2, [pc, #56] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33609. 800e880: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  33610. 800e884: 6013 str r3, [r2, #0]
  33611. /* Get Start Tick*/
  33612. tickstart = HAL_GetTick();
  33613. 800e886: f7f6 fdd9 bl 800543c <HAL_GetTick>
  33614. 800e88a: 60b8 str r0, [r7, #8]
  33615. /* Wait till PLL3 is ready */
  33616. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  33617. 800e88c: e008 b.n 800e8a0 <RCCEx_PLL3_Config+0x144>
  33618. {
  33619. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  33620. 800e88e: f7f6 fdd5 bl 800543c <HAL_GetTick>
  33621. 800e892: 4602 mov r2, r0
  33622. 800e894: 68bb ldr r3, [r7, #8]
  33623. 800e896: 1ad3 subs r3, r2, r3
  33624. 800e898: 2b02 cmp r3, #2
  33625. 800e89a: d901 bls.n 800e8a0 <RCCEx_PLL3_Config+0x144>
  33626. {
  33627. return HAL_TIMEOUT;
  33628. 800e89c: 2303 movs r3, #3
  33629. 800e89e: e006 b.n 800e8ae <RCCEx_PLL3_Config+0x152>
  33630. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  33631. 800e8a0: 4b05 ldr r3, [pc, #20] @ (800e8b8 <RCCEx_PLL3_Config+0x15c>)
  33632. 800e8a2: 681b ldr r3, [r3, #0]
  33633. 800e8a4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33634. 800e8a8: 2b00 cmp r3, #0
  33635. 800e8aa: d0f0 beq.n 800e88e <RCCEx_PLL3_Config+0x132>
  33636. }
  33637. }
  33638. return status;
  33639. 800e8ac: 7bfb ldrb r3, [r7, #15]
  33640. }
  33641. 800e8ae: 4618 mov r0, r3
  33642. 800e8b0: 3710 adds r7, #16
  33643. 800e8b2: 46bd mov sp, r7
  33644. 800e8b4: bd80 pop {r7, pc}
  33645. 800e8b6: bf00 nop
  33646. 800e8b8: 58024400 .word 0x58024400
  33647. 800e8bc: ffff0007 .word 0xffff0007
  33648. 0800e8c0 <HAL_RNG_Init>:
  33649. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  33650. * the configuration information for RNG.
  33651. * @retval HAL status
  33652. */
  33653. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  33654. {
  33655. 800e8c0: b580 push {r7, lr}
  33656. 800e8c2: b084 sub sp, #16
  33657. 800e8c4: af00 add r7, sp, #0
  33658. 800e8c6: 6078 str r0, [r7, #4]
  33659. uint32_t tickstart;
  33660. /* Check the RNG handle allocation */
  33661. if (hrng == NULL)
  33662. 800e8c8: 687b ldr r3, [r7, #4]
  33663. 800e8ca: 2b00 cmp r3, #0
  33664. 800e8cc: d101 bne.n 800e8d2 <HAL_RNG_Init+0x12>
  33665. {
  33666. return HAL_ERROR;
  33667. 800e8ce: 2301 movs r3, #1
  33668. 800e8d0: e054 b.n 800e97c <HAL_RNG_Init+0xbc>
  33669. /* Init the low level hardware */
  33670. hrng->MspInitCallback(hrng);
  33671. }
  33672. #else
  33673. if (hrng->State == HAL_RNG_STATE_RESET)
  33674. 800e8d2: 687b ldr r3, [r7, #4]
  33675. 800e8d4: 7a5b ldrb r3, [r3, #9]
  33676. 800e8d6: b2db uxtb r3, r3
  33677. 800e8d8: 2b00 cmp r3, #0
  33678. 800e8da: d105 bne.n 800e8e8 <HAL_RNG_Init+0x28>
  33679. {
  33680. /* Allocate lock resource and initialize it */
  33681. hrng->Lock = HAL_UNLOCKED;
  33682. 800e8dc: 687b ldr r3, [r7, #4]
  33683. 800e8de: 2200 movs r2, #0
  33684. 800e8e0: 721a strb r2, [r3, #8]
  33685. /* Init the low level hardware */
  33686. HAL_RNG_MspInit(hrng);
  33687. 800e8e2: 6878 ldr r0, [r7, #4]
  33688. 800e8e4: f7f5 f830 bl 8003948 <HAL_RNG_MspInit>
  33689. }
  33690. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  33691. /* Change RNG peripheral state */
  33692. hrng->State = HAL_RNG_STATE_BUSY;
  33693. 800e8e8: 687b ldr r3, [r7, #4]
  33694. 800e8ea: 2202 movs r2, #2
  33695. 800e8ec: 725a strb r2, [r3, #9]
  33696. }
  33697. }
  33698. }
  33699. #else
  33700. /* Clock Error Detection Configuration */
  33701. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  33702. 800e8ee: 687b ldr r3, [r7, #4]
  33703. 800e8f0: 681b ldr r3, [r3, #0]
  33704. 800e8f2: 681b ldr r3, [r3, #0]
  33705. 800e8f4: f023 0120 bic.w r1, r3, #32
  33706. 800e8f8: 687b ldr r3, [r7, #4]
  33707. 800e8fa: 685a ldr r2, [r3, #4]
  33708. 800e8fc: 687b ldr r3, [r7, #4]
  33709. 800e8fe: 681b ldr r3, [r3, #0]
  33710. 800e900: 430a orrs r2, r1
  33711. 800e902: 601a str r2, [r3, #0]
  33712. #endif /* RNG_CR_CONDRST */
  33713. /* Enable the RNG Peripheral */
  33714. __HAL_RNG_ENABLE(hrng);
  33715. 800e904: 687b ldr r3, [r7, #4]
  33716. 800e906: 681b ldr r3, [r3, #0]
  33717. 800e908: 681a ldr r2, [r3, #0]
  33718. 800e90a: 687b ldr r3, [r7, #4]
  33719. 800e90c: 681b ldr r3, [r3, #0]
  33720. 800e90e: f042 0204 orr.w r2, r2, #4
  33721. 800e912: 601a str r2, [r3, #0]
  33722. /* verify that no seed error */
  33723. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  33724. 800e914: 687b ldr r3, [r7, #4]
  33725. 800e916: 681b ldr r3, [r3, #0]
  33726. 800e918: 685b ldr r3, [r3, #4]
  33727. 800e91a: f003 0340 and.w r3, r3, #64 @ 0x40
  33728. 800e91e: 2b40 cmp r3, #64 @ 0x40
  33729. 800e920: d104 bne.n 800e92c <HAL_RNG_Init+0x6c>
  33730. {
  33731. hrng->State = HAL_RNG_STATE_ERROR;
  33732. 800e922: 687b ldr r3, [r7, #4]
  33733. 800e924: 2204 movs r2, #4
  33734. 800e926: 725a strb r2, [r3, #9]
  33735. return HAL_ERROR;
  33736. 800e928: 2301 movs r3, #1
  33737. 800e92a: e027 b.n 800e97c <HAL_RNG_Init+0xbc>
  33738. }
  33739. /* Get tick */
  33740. tickstart = HAL_GetTick();
  33741. 800e92c: f7f6 fd86 bl 800543c <HAL_GetTick>
  33742. 800e930: 60f8 str r0, [r7, #12]
  33743. /* Check if data register contains valid random data */
  33744. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  33745. 800e932: e015 b.n 800e960 <HAL_RNG_Init+0xa0>
  33746. {
  33747. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  33748. 800e934: f7f6 fd82 bl 800543c <HAL_GetTick>
  33749. 800e938: 4602 mov r2, r0
  33750. 800e93a: 68fb ldr r3, [r7, #12]
  33751. 800e93c: 1ad3 subs r3, r2, r3
  33752. 800e93e: 2b02 cmp r3, #2
  33753. 800e940: d90e bls.n 800e960 <HAL_RNG_Init+0xa0>
  33754. {
  33755. /* New check to avoid false timeout detection in case of preemption */
  33756. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  33757. 800e942: 687b ldr r3, [r7, #4]
  33758. 800e944: 681b ldr r3, [r3, #0]
  33759. 800e946: 685b ldr r3, [r3, #4]
  33760. 800e948: f003 0304 and.w r3, r3, #4
  33761. 800e94c: 2b04 cmp r3, #4
  33762. 800e94e: d107 bne.n 800e960 <HAL_RNG_Init+0xa0>
  33763. {
  33764. hrng->State = HAL_RNG_STATE_ERROR;
  33765. 800e950: 687b ldr r3, [r7, #4]
  33766. 800e952: 2204 movs r2, #4
  33767. 800e954: 725a strb r2, [r3, #9]
  33768. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  33769. 800e956: 687b ldr r3, [r7, #4]
  33770. 800e958: 2202 movs r2, #2
  33771. 800e95a: 60da str r2, [r3, #12]
  33772. return HAL_ERROR;
  33773. 800e95c: 2301 movs r3, #1
  33774. 800e95e: e00d b.n 800e97c <HAL_RNG_Init+0xbc>
  33775. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  33776. 800e960: 687b ldr r3, [r7, #4]
  33777. 800e962: 681b ldr r3, [r3, #0]
  33778. 800e964: 685b ldr r3, [r3, #4]
  33779. 800e966: f003 0304 and.w r3, r3, #4
  33780. 800e96a: 2b04 cmp r3, #4
  33781. 800e96c: d0e2 beq.n 800e934 <HAL_RNG_Init+0x74>
  33782. }
  33783. }
  33784. }
  33785. /* Initialize the RNG state */
  33786. hrng->State = HAL_RNG_STATE_READY;
  33787. 800e96e: 687b ldr r3, [r7, #4]
  33788. 800e970: 2201 movs r2, #1
  33789. 800e972: 725a strb r2, [r3, #9]
  33790. /* Initialise the error code */
  33791. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  33792. 800e974: 687b ldr r3, [r7, #4]
  33793. 800e976: 2200 movs r2, #0
  33794. 800e978: 60da str r2, [r3, #12]
  33795. /* Return function status */
  33796. return HAL_OK;
  33797. 800e97a: 2300 movs r3, #0
  33798. }
  33799. 800e97c: 4618 mov r0, r3
  33800. 800e97e: 3710 adds r7, #16
  33801. 800e980: 46bd mov sp, r7
  33802. 800e982: bd80 pop {r7, pc}
  33803. 0800e984 <HAL_TIM_Base_Init>:
  33804. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  33805. * @param htim TIM Base handle
  33806. * @retval HAL status
  33807. */
  33808. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  33809. {
  33810. 800e984: b580 push {r7, lr}
  33811. 800e986: b082 sub sp, #8
  33812. 800e988: af00 add r7, sp, #0
  33813. 800e98a: 6078 str r0, [r7, #4]
  33814. /* Check the TIM handle allocation */
  33815. if (htim == NULL)
  33816. 800e98c: 687b ldr r3, [r7, #4]
  33817. 800e98e: 2b00 cmp r3, #0
  33818. 800e990: d101 bne.n 800e996 <HAL_TIM_Base_Init+0x12>
  33819. {
  33820. return HAL_ERROR;
  33821. 800e992: 2301 movs r3, #1
  33822. 800e994: e049 b.n 800ea2a <HAL_TIM_Base_Init+0xa6>
  33823. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  33824. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  33825. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  33826. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  33827. if (htim->State == HAL_TIM_STATE_RESET)
  33828. 800e996: 687b ldr r3, [r7, #4]
  33829. 800e998: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  33830. 800e99c: b2db uxtb r3, r3
  33831. 800e99e: 2b00 cmp r3, #0
  33832. 800e9a0: d106 bne.n 800e9b0 <HAL_TIM_Base_Init+0x2c>
  33833. {
  33834. /* Allocate lock resource and initialize it */
  33835. htim->Lock = HAL_UNLOCKED;
  33836. 800e9a2: 687b ldr r3, [r7, #4]
  33837. 800e9a4: 2200 movs r2, #0
  33838. 800e9a6: f883 203c strb.w r2, [r3, #60] @ 0x3c
  33839. }
  33840. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  33841. htim->Base_MspInitCallback(htim);
  33842. #else
  33843. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  33844. HAL_TIM_Base_MspInit(htim);
  33845. 800e9aa: 6878 ldr r0, [r7, #4]
  33846. 800e9ac: f7f5 f840 bl 8003a30 <HAL_TIM_Base_MspInit>
  33847. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  33848. }
  33849. /* Set the TIM state */
  33850. htim->State = HAL_TIM_STATE_BUSY;
  33851. 800e9b0: 687b ldr r3, [r7, #4]
  33852. 800e9b2: 2202 movs r2, #2
  33853. 800e9b4: f883 203d strb.w r2, [r3, #61] @ 0x3d
  33854. /* Set the Time Base configuration */
  33855. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  33856. 800e9b8: 687b ldr r3, [r7, #4]
  33857. 800e9ba: 681a ldr r2, [r3, #0]
  33858. 800e9bc: 687b ldr r3, [r7, #4]
  33859. 800e9be: 3304 adds r3, #4
  33860. 800e9c0: 4619 mov r1, r3
  33861. 800e9c2: 4610 mov r0, r2
  33862. 800e9c4: f001 f918 bl 800fbf8 <TIM_Base_SetConfig>
  33863. /* Initialize the DMA burst operation state */
  33864. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  33865. 800e9c8: 687b ldr r3, [r7, #4]
  33866. 800e9ca: 2201 movs r2, #1
  33867. 800e9cc: f883 2048 strb.w r2, [r3, #72] @ 0x48
  33868. /* Initialize the TIM channels state */
  33869. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  33870. 800e9d0: 687b ldr r3, [r7, #4]
  33871. 800e9d2: 2201 movs r2, #1
  33872. 800e9d4: f883 203e strb.w r2, [r3, #62] @ 0x3e
  33873. 800e9d8: 687b ldr r3, [r7, #4]
  33874. 800e9da: 2201 movs r2, #1
  33875. 800e9dc: f883 203f strb.w r2, [r3, #63] @ 0x3f
  33876. 800e9e0: 687b ldr r3, [r7, #4]
  33877. 800e9e2: 2201 movs r2, #1
  33878. 800e9e4: f883 2040 strb.w r2, [r3, #64] @ 0x40
  33879. 800e9e8: 687b ldr r3, [r7, #4]
  33880. 800e9ea: 2201 movs r2, #1
  33881. 800e9ec: f883 2041 strb.w r2, [r3, #65] @ 0x41
  33882. 800e9f0: 687b ldr r3, [r7, #4]
  33883. 800e9f2: 2201 movs r2, #1
  33884. 800e9f4: f883 2042 strb.w r2, [r3, #66] @ 0x42
  33885. 800e9f8: 687b ldr r3, [r7, #4]
  33886. 800e9fa: 2201 movs r2, #1
  33887. 800e9fc: f883 2043 strb.w r2, [r3, #67] @ 0x43
  33888. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  33889. 800ea00: 687b ldr r3, [r7, #4]
  33890. 800ea02: 2201 movs r2, #1
  33891. 800ea04: f883 2044 strb.w r2, [r3, #68] @ 0x44
  33892. 800ea08: 687b ldr r3, [r7, #4]
  33893. 800ea0a: 2201 movs r2, #1
  33894. 800ea0c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  33895. 800ea10: 687b ldr r3, [r7, #4]
  33896. 800ea12: 2201 movs r2, #1
  33897. 800ea14: f883 2046 strb.w r2, [r3, #70] @ 0x46
  33898. 800ea18: 687b ldr r3, [r7, #4]
  33899. 800ea1a: 2201 movs r2, #1
  33900. 800ea1c: f883 2047 strb.w r2, [r3, #71] @ 0x47
  33901. /* Initialize the TIM state*/
  33902. htim->State = HAL_TIM_STATE_READY;
  33903. 800ea20: 687b ldr r3, [r7, #4]
  33904. 800ea22: 2201 movs r2, #1
  33905. 800ea24: f883 203d strb.w r2, [r3, #61] @ 0x3d
  33906. return HAL_OK;
  33907. 800ea28: 2300 movs r3, #0
  33908. }
  33909. 800ea2a: 4618 mov r0, r3
  33910. 800ea2c: 3708 adds r7, #8
  33911. 800ea2e: 46bd mov sp, r7
  33912. 800ea30: bd80 pop {r7, pc}
  33913. ...
  33914. 0800ea34 <HAL_TIM_Base_Start>:
  33915. * @brief Starts the TIM Base generation.
  33916. * @param htim TIM Base handle
  33917. * @retval HAL status
  33918. */
  33919. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  33920. {
  33921. 800ea34: b480 push {r7}
  33922. 800ea36: b085 sub sp, #20
  33923. 800ea38: af00 add r7, sp, #0
  33924. 800ea3a: 6078 str r0, [r7, #4]
  33925. /* Check the parameters */
  33926. assert_param(IS_TIM_INSTANCE(htim->Instance));
  33927. /* Check the TIM state */
  33928. if (htim->State != HAL_TIM_STATE_READY)
  33929. 800ea3c: 687b ldr r3, [r7, #4]
  33930. 800ea3e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  33931. 800ea42: b2db uxtb r3, r3
  33932. 800ea44: 2b01 cmp r3, #1
  33933. 800ea46: d001 beq.n 800ea4c <HAL_TIM_Base_Start+0x18>
  33934. {
  33935. return HAL_ERROR;
  33936. 800ea48: 2301 movs r3, #1
  33937. 800ea4a: e04c b.n 800eae6 <HAL_TIM_Base_Start+0xb2>
  33938. }
  33939. /* Set the TIM state */
  33940. htim->State = HAL_TIM_STATE_BUSY;
  33941. 800ea4c: 687b ldr r3, [r7, #4]
  33942. 800ea4e: 2202 movs r2, #2
  33943. 800ea50: f883 203d strb.w r2, [r3, #61] @ 0x3d
  33944. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  33945. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  33946. 800ea54: 687b ldr r3, [r7, #4]
  33947. 800ea56: 681b ldr r3, [r3, #0]
  33948. 800ea58: 4a26 ldr r2, [pc, #152] @ (800eaf4 <HAL_TIM_Base_Start+0xc0>)
  33949. 800ea5a: 4293 cmp r3, r2
  33950. 800ea5c: d022 beq.n 800eaa4 <HAL_TIM_Base_Start+0x70>
  33951. 800ea5e: 687b ldr r3, [r7, #4]
  33952. 800ea60: 681b ldr r3, [r3, #0]
  33953. 800ea62: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33954. 800ea66: d01d beq.n 800eaa4 <HAL_TIM_Base_Start+0x70>
  33955. 800ea68: 687b ldr r3, [r7, #4]
  33956. 800ea6a: 681b ldr r3, [r3, #0]
  33957. 800ea6c: 4a22 ldr r2, [pc, #136] @ (800eaf8 <HAL_TIM_Base_Start+0xc4>)
  33958. 800ea6e: 4293 cmp r3, r2
  33959. 800ea70: d018 beq.n 800eaa4 <HAL_TIM_Base_Start+0x70>
  33960. 800ea72: 687b ldr r3, [r7, #4]
  33961. 800ea74: 681b ldr r3, [r3, #0]
  33962. 800ea76: 4a21 ldr r2, [pc, #132] @ (800eafc <HAL_TIM_Base_Start+0xc8>)
  33963. 800ea78: 4293 cmp r3, r2
  33964. 800ea7a: d013 beq.n 800eaa4 <HAL_TIM_Base_Start+0x70>
  33965. 800ea7c: 687b ldr r3, [r7, #4]
  33966. 800ea7e: 681b ldr r3, [r3, #0]
  33967. 800ea80: 4a1f ldr r2, [pc, #124] @ (800eb00 <HAL_TIM_Base_Start+0xcc>)
  33968. 800ea82: 4293 cmp r3, r2
  33969. 800ea84: d00e beq.n 800eaa4 <HAL_TIM_Base_Start+0x70>
  33970. 800ea86: 687b ldr r3, [r7, #4]
  33971. 800ea88: 681b ldr r3, [r3, #0]
  33972. 800ea8a: 4a1e ldr r2, [pc, #120] @ (800eb04 <HAL_TIM_Base_Start+0xd0>)
  33973. 800ea8c: 4293 cmp r3, r2
  33974. 800ea8e: d009 beq.n 800eaa4 <HAL_TIM_Base_Start+0x70>
  33975. 800ea90: 687b ldr r3, [r7, #4]
  33976. 800ea92: 681b ldr r3, [r3, #0]
  33977. 800ea94: 4a1c ldr r2, [pc, #112] @ (800eb08 <HAL_TIM_Base_Start+0xd4>)
  33978. 800ea96: 4293 cmp r3, r2
  33979. 800ea98: d004 beq.n 800eaa4 <HAL_TIM_Base_Start+0x70>
  33980. 800ea9a: 687b ldr r3, [r7, #4]
  33981. 800ea9c: 681b ldr r3, [r3, #0]
  33982. 800ea9e: 4a1b ldr r2, [pc, #108] @ (800eb0c <HAL_TIM_Base_Start+0xd8>)
  33983. 800eaa0: 4293 cmp r3, r2
  33984. 800eaa2: d115 bne.n 800ead0 <HAL_TIM_Base_Start+0x9c>
  33985. {
  33986. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  33987. 800eaa4: 687b ldr r3, [r7, #4]
  33988. 800eaa6: 681b ldr r3, [r3, #0]
  33989. 800eaa8: 689a ldr r2, [r3, #8]
  33990. 800eaaa: 4b19 ldr r3, [pc, #100] @ (800eb10 <HAL_TIM_Base_Start+0xdc>)
  33991. 800eaac: 4013 ands r3, r2
  33992. 800eaae: 60fb str r3, [r7, #12]
  33993. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  33994. 800eab0: 68fb ldr r3, [r7, #12]
  33995. 800eab2: 2b06 cmp r3, #6
  33996. 800eab4: d015 beq.n 800eae2 <HAL_TIM_Base_Start+0xae>
  33997. 800eab6: 68fb ldr r3, [r7, #12]
  33998. 800eab8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33999. 800eabc: d011 beq.n 800eae2 <HAL_TIM_Base_Start+0xae>
  34000. {
  34001. __HAL_TIM_ENABLE(htim);
  34002. 800eabe: 687b ldr r3, [r7, #4]
  34003. 800eac0: 681b ldr r3, [r3, #0]
  34004. 800eac2: 681a ldr r2, [r3, #0]
  34005. 800eac4: 687b ldr r3, [r7, #4]
  34006. 800eac6: 681b ldr r3, [r3, #0]
  34007. 800eac8: f042 0201 orr.w r2, r2, #1
  34008. 800eacc: 601a str r2, [r3, #0]
  34009. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34010. 800eace: e008 b.n 800eae2 <HAL_TIM_Base_Start+0xae>
  34011. }
  34012. }
  34013. else
  34014. {
  34015. __HAL_TIM_ENABLE(htim);
  34016. 800ead0: 687b ldr r3, [r7, #4]
  34017. 800ead2: 681b ldr r3, [r3, #0]
  34018. 800ead4: 681a ldr r2, [r3, #0]
  34019. 800ead6: 687b ldr r3, [r7, #4]
  34020. 800ead8: 681b ldr r3, [r3, #0]
  34021. 800eada: f042 0201 orr.w r2, r2, #1
  34022. 800eade: 601a str r2, [r3, #0]
  34023. 800eae0: e000 b.n 800eae4 <HAL_TIM_Base_Start+0xb0>
  34024. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34025. 800eae2: bf00 nop
  34026. }
  34027. /* Return function status */
  34028. return HAL_OK;
  34029. 800eae4: 2300 movs r3, #0
  34030. }
  34031. 800eae6: 4618 mov r0, r3
  34032. 800eae8: 3714 adds r7, #20
  34033. 800eaea: 46bd mov sp, r7
  34034. 800eaec: f85d 7b04 ldr.w r7, [sp], #4
  34035. 800eaf0: 4770 bx lr
  34036. 800eaf2: bf00 nop
  34037. 800eaf4: 40010000 .word 0x40010000
  34038. 800eaf8: 40000400 .word 0x40000400
  34039. 800eafc: 40000800 .word 0x40000800
  34040. 800eb00: 40000c00 .word 0x40000c00
  34041. 800eb04: 40010400 .word 0x40010400
  34042. 800eb08: 40001800 .word 0x40001800
  34043. 800eb0c: 40014000 .word 0x40014000
  34044. 800eb10: 00010007 .word 0x00010007
  34045. 0800eb14 <HAL_TIM_Base_Start_IT>:
  34046. * @brief Starts the TIM Base generation in interrupt mode.
  34047. * @param htim TIM Base handle
  34048. * @retval HAL status
  34049. */
  34050. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  34051. {
  34052. 800eb14: b480 push {r7}
  34053. 800eb16: b085 sub sp, #20
  34054. 800eb18: af00 add r7, sp, #0
  34055. 800eb1a: 6078 str r0, [r7, #4]
  34056. /* Check the parameters */
  34057. assert_param(IS_TIM_INSTANCE(htim->Instance));
  34058. /* Check the TIM state */
  34059. if (htim->State != HAL_TIM_STATE_READY)
  34060. 800eb1c: 687b ldr r3, [r7, #4]
  34061. 800eb1e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34062. 800eb22: b2db uxtb r3, r3
  34063. 800eb24: 2b01 cmp r3, #1
  34064. 800eb26: d001 beq.n 800eb2c <HAL_TIM_Base_Start_IT+0x18>
  34065. {
  34066. return HAL_ERROR;
  34067. 800eb28: 2301 movs r3, #1
  34068. 800eb2a: e054 b.n 800ebd6 <HAL_TIM_Base_Start_IT+0xc2>
  34069. }
  34070. /* Set the TIM state */
  34071. htim->State = HAL_TIM_STATE_BUSY;
  34072. 800eb2c: 687b ldr r3, [r7, #4]
  34073. 800eb2e: 2202 movs r2, #2
  34074. 800eb30: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34075. /* Enable the TIM Update interrupt */
  34076. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  34077. 800eb34: 687b ldr r3, [r7, #4]
  34078. 800eb36: 681b ldr r3, [r3, #0]
  34079. 800eb38: 68da ldr r2, [r3, #12]
  34080. 800eb3a: 687b ldr r3, [r7, #4]
  34081. 800eb3c: 681b ldr r3, [r3, #0]
  34082. 800eb3e: f042 0201 orr.w r2, r2, #1
  34083. 800eb42: 60da str r2, [r3, #12]
  34084. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  34085. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  34086. 800eb44: 687b ldr r3, [r7, #4]
  34087. 800eb46: 681b ldr r3, [r3, #0]
  34088. 800eb48: 4a26 ldr r2, [pc, #152] @ (800ebe4 <HAL_TIM_Base_Start_IT+0xd0>)
  34089. 800eb4a: 4293 cmp r3, r2
  34090. 800eb4c: d022 beq.n 800eb94 <HAL_TIM_Base_Start_IT+0x80>
  34091. 800eb4e: 687b ldr r3, [r7, #4]
  34092. 800eb50: 681b ldr r3, [r3, #0]
  34093. 800eb52: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  34094. 800eb56: d01d beq.n 800eb94 <HAL_TIM_Base_Start_IT+0x80>
  34095. 800eb58: 687b ldr r3, [r7, #4]
  34096. 800eb5a: 681b ldr r3, [r3, #0]
  34097. 800eb5c: 4a22 ldr r2, [pc, #136] @ (800ebe8 <HAL_TIM_Base_Start_IT+0xd4>)
  34098. 800eb5e: 4293 cmp r3, r2
  34099. 800eb60: d018 beq.n 800eb94 <HAL_TIM_Base_Start_IT+0x80>
  34100. 800eb62: 687b ldr r3, [r7, #4]
  34101. 800eb64: 681b ldr r3, [r3, #0]
  34102. 800eb66: 4a21 ldr r2, [pc, #132] @ (800ebec <HAL_TIM_Base_Start_IT+0xd8>)
  34103. 800eb68: 4293 cmp r3, r2
  34104. 800eb6a: d013 beq.n 800eb94 <HAL_TIM_Base_Start_IT+0x80>
  34105. 800eb6c: 687b ldr r3, [r7, #4]
  34106. 800eb6e: 681b ldr r3, [r3, #0]
  34107. 800eb70: 4a1f ldr r2, [pc, #124] @ (800ebf0 <HAL_TIM_Base_Start_IT+0xdc>)
  34108. 800eb72: 4293 cmp r3, r2
  34109. 800eb74: d00e beq.n 800eb94 <HAL_TIM_Base_Start_IT+0x80>
  34110. 800eb76: 687b ldr r3, [r7, #4]
  34111. 800eb78: 681b ldr r3, [r3, #0]
  34112. 800eb7a: 4a1e ldr r2, [pc, #120] @ (800ebf4 <HAL_TIM_Base_Start_IT+0xe0>)
  34113. 800eb7c: 4293 cmp r3, r2
  34114. 800eb7e: d009 beq.n 800eb94 <HAL_TIM_Base_Start_IT+0x80>
  34115. 800eb80: 687b ldr r3, [r7, #4]
  34116. 800eb82: 681b ldr r3, [r3, #0]
  34117. 800eb84: 4a1c ldr r2, [pc, #112] @ (800ebf8 <HAL_TIM_Base_Start_IT+0xe4>)
  34118. 800eb86: 4293 cmp r3, r2
  34119. 800eb88: d004 beq.n 800eb94 <HAL_TIM_Base_Start_IT+0x80>
  34120. 800eb8a: 687b ldr r3, [r7, #4]
  34121. 800eb8c: 681b ldr r3, [r3, #0]
  34122. 800eb8e: 4a1b ldr r2, [pc, #108] @ (800ebfc <HAL_TIM_Base_Start_IT+0xe8>)
  34123. 800eb90: 4293 cmp r3, r2
  34124. 800eb92: d115 bne.n 800ebc0 <HAL_TIM_Base_Start_IT+0xac>
  34125. {
  34126. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  34127. 800eb94: 687b ldr r3, [r7, #4]
  34128. 800eb96: 681b ldr r3, [r3, #0]
  34129. 800eb98: 689a ldr r2, [r3, #8]
  34130. 800eb9a: 4b19 ldr r3, [pc, #100] @ (800ec00 <HAL_TIM_Base_Start_IT+0xec>)
  34131. 800eb9c: 4013 ands r3, r2
  34132. 800eb9e: 60fb str r3, [r7, #12]
  34133. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34134. 800eba0: 68fb ldr r3, [r7, #12]
  34135. 800eba2: 2b06 cmp r3, #6
  34136. 800eba4: d015 beq.n 800ebd2 <HAL_TIM_Base_Start_IT+0xbe>
  34137. 800eba6: 68fb ldr r3, [r7, #12]
  34138. 800eba8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  34139. 800ebac: d011 beq.n 800ebd2 <HAL_TIM_Base_Start_IT+0xbe>
  34140. {
  34141. __HAL_TIM_ENABLE(htim);
  34142. 800ebae: 687b ldr r3, [r7, #4]
  34143. 800ebb0: 681b ldr r3, [r3, #0]
  34144. 800ebb2: 681a ldr r2, [r3, #0]
  34145. 800ebb4: 687b ldr r3, [r7, #4]
  34146. 800ebb6: 681b ldr r3, [r3, #0]
  34147. 800ebb8: f042 0201 orr.w r2, r2, #1
  34148. 800ebbc: 601a str r2, [r3, #0]
  34149. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34150. 800ebbe: e008 b.n 800ebd2 <HAL_TIM_Base_Start_IT+0xbe>
  34151. }
  34152. }
  34153. else
  34154. {
  34155. __HAL_TIM_ENABLE(htim);
  34156. 800ebc0: 687b ldr r3, [r7, #4]
  34157. 800ebc2: 681b ldr r3, [r3, #0]
  34158. 800ebc4: 681a ldr r2, [r3, #0]
  34159. 800ebc6: 687b ldr r3, [r7, #4]
  34160. 800ebc8: 681b ldr r3, [r3, #0]
  34161. 800ebca: f042 0201 orr.w r2, r2, #1
  34162. 800ebce: 601a str r2, [r3, #0]
  34163. 800ebd0: e000 b.n 800ebd4 <HAL_TIM_Base_Start_IT+0xc0>
  34164. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34165. 800ebd2: bf00 nop
  34166. }
  34167. /* Return function status */
  34168. return HAL_OK;
  34169. 800ebd4: 2300 movs r3, #0
  34170. }
  34171. 800ebd6: 4618 mov r0, r3
  34172. 800ebd8: 3714 adds r7, #20
  34173. 800ebda: 46bd mov sp, r7
  34174. 800ebdc: f85d 7b04 ldr.w r7, [sp], #4
  34175. 800ebe0: 4770 bx lr
  34176. 800ebe2: bf00 nop
  34177. 800ebe4: 40010000 .word 0x40010000
  34178. 800ebe8: 40000400 .word 0x40000400
  34179. 800ebec: 40000800 .word 0x40000800
  34180. 800ebf0: 40000c00 .word 0x40000c00
  34181. 800ebf4: 40010400 .word 0x40010400
  34182. 800ebf8: 40001800 .word 0x40001800
  34183. 800ebfc: 40014000 .word 0x40014000
  34184. 800ec00: 00010007 .word 0x00010007
  34185. 0800ec04 <HAL_TIM_PWM_Init>:
  34186. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  34187. * @param htim TIM PWM handle
  34188. * @retval HAL status
  34189. */
  34190. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  34191. {
  34192. 800ec04: b580 push {r7, lr}
  34193. 800ec06: b082 sub sp, #8
  34194. 800ec08: af00 add r7, sp, #0
  34195. 800ec0a: 6078 str r0, [r7, #4]
  34196. /* Check the TIM handle allocation */
  34197. if (htim == NULL)
  34198. 800ec0c: 687b ldr r3, [r7, #4]
  34199. 800ec0e: 2b00 cmp r3, #0
  34200. 800ec10: d101 bne.n 800ec16 <HAL_TIM_PWM_Init+0x12>
  34201. {
  34202. return HAL_ERROR;
  34203. 800ec12: 2301 movs r3, #1
  34204. 800ec14: e049 b.n 800ecaa <HAL_TIM_PWM_Init+0xa6>
  34205. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  34206. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  34207. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  34208. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  34209. if (htim->State == HAL_TIM_STATE_RESET)
  34210. 800ec16: 687b ldr r3, [r7, #4]
  34211. 800ec18: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34212. 800ec1c: b2db uxtb r3, r3
  34213. 800ec1e: 2b00 cmp r3, #0
  34214. 800ec20: d106 bne.n 800ec30 <HAL_TIM_PWM_Init+0x2c>
  34215. {
  34216. /* Allocate lock resource and initialize it */
  34217. htim->Lock = HAL_UNLOCKED;
  34218. 800ec22: 687b ldr r3, [r7, #4]
  34219. 800ec24: 2200 movs r2, #0
  34220. 800ec26: f883 203c strb.w r2, [r3, #60] @ 0x3c
  34221. }
  34222. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34223. htim->PWM_MspInitCallback(htim);
  34224. #else
  34225. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  34226. HAL_TIM_PWM_MspInit(htim);
  34227. 800ec2a: 6878 ldr r0, [r7, #4]
  34228. 800ec2c: f7f4 fec6 bl 80039bc <HAL_TIM_PWM_MspInit>
  34229. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  34230. }
  34231. /* Set the TIM state */
  34232. htim->State = HAL_TIM_STATE_BUSY;
  34233. 800ec30: 687b ldr r3, [r7, #4]
  34234. 800ec32: 2202 movs r2, #2
  34235. 800ec34: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34236. /* Init the base time for the PWM */
  34237. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  34238. 800ec38: 687b ldr r3, [r7, #4]
  34239. 800ec3a: 681a ldr r2, [r3, #0]
  34240. 800ec3c: 687b ldr r3, [r7, #4]
  34241. 800ec3e: 3304 adds r3, #4
  34242. 800ec40: 4619 mov r1, r3
  34243. 800ec42: 4610 mov r0, r2
  34244. 800ec44: f000 ffd8 bl 800fbf8 <TIM_Base_SetConfig>
  34245. /* Initialize the DMA burst operation state */
  34246. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  34247. 800ec48: 687b ldr r3, [r7, #4]
  34248. 800ec4a: 2201 movs r2, #1
  34249. 800ec4c: f883 2048 strb.w r2, [r3, #72] @ 0x48
  34250. /* Initialize the TIM channels state */
  34251. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34252. 800ec50: 687b ldr r3, [r7, #4]
  34253. 800ec52: 2201 movs r2, #1
  34254. 800ec54: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34255. 800ec58: 687b ldr r3, [r7, #4]
  34256. 800ec5a: 2201 movs r2, #1
  34257. 800ec5c: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34258. 800ec60: 687b ldr r3, [r7, #4]
  34259. 800ec62: 2201 movs r2, #1
  34260. 800ec64: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34261. 800ec68: 687b ldr r3, [r7, #4]
  34262. 800ec6a: 2201 movs r2, #1
  34263. 800ec6c: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34264. 800ec70: 687b ldr r3, [r7, #4]
  34265. 800ec72: 2201 movs r2, #1
  34266. 800ec74: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34267. 800ec78: 687b ldr r3, [r7, #4]
  34268. 800ec7a: 2201 movs r2, #1
  34269. 800ec7c: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34270. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34271. 800ec80: 687b ldr r3, [r7, #4]
  34272. 800ec82: 2201 movs r2, #1
  34273. 800ec84: f883 2044 strb.w r2, [r3, #68] @ 0x44
  34274. 800ec88: 687b ldr r3, [r7, #4]
  34275. 800ec8a: 2201 movs r2, #1
  34276. 800ec8c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  34277. 800ec90: 687b ldr r3, [r7, #4]
  34278. 800ec92: 2201 movs r2, #1
  34279. 800ec94: f883 2046 strb.w r2, [r3, #70] @ 0x46
  34280. 800ec98: 687b ldr r3, [r7, #4]
  34281. 800ec9a: 2201 movs r2, #1
  34282. 800ec9c: f883 2047 strb.w r2, [r3, #71] @ 0x47
  34283. /* Initialize the TIM state*/
  34284. htim->State = HAL_TIM_STATE_READY;
  34285. 800eca0: 687b ldr r3, [r7, #4]
  34286. 800eca2: 2201 movs r2, #1
  34287. 800eca4: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34288. return HAL_OK;
  34289. 800eca8: 2300 movs r3, #0
  34290. }
  34291. 800ecaa: 4618 mov r0, r3
  34292. 800ecac: 3708 adds r7, #8
  34293. 800ecae: 46bd mov sp, r7
  34294. 800ecb0: bd80 pop {r7, pc}
  34295. ...
  34296. 0800ecb4 <HAL_TIM_PWM_Start>:
  34297. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  34298. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  34299. * @retval HAL status
  34300. */
  34301. HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  34302. {
  34303. 800ecb4: b580 push {r7, lr}
  34304. 800ecb6: b084 sub sp, #16
  34305. 800ecb8: af00 add r7, sp, #0
  34306. 800ecba: 6078 str r0, [r7, #4]
  34307. 800ecbc: 6039 str r1, [r7, #0]
  34308. /* Check the parameters */
  34309. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  34310. /* Check the TIM channel state */
  34311. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  34312. 800ecbe: 683b ldr r3, [r7, #0]
  34313. 800ecc0: 2b00 cmp r3, #0
  34314. 800ecc2: d109 bne.n 800ecd8 <HAL_TIM_PWM_Start+0x24>
  34315. 800ecc4: 687b ldr r3, [r7, #4]
  34316. 800ecc6: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  34317. 800ecca: b2db uxtb r3, r3
  34318. 800eccc: 2b01 cmp r3, #1
  34319. 800ecce: bf14 ite ne
  34320. 800ecd0: 2301 movne r3, #1
  34321. 800ecd2: 2300 moveq r3, #0
  34322. 800ecd4: b2db uxtb r3, r3
  34323. 800ecd6: e03c b.n 800ed52 <HAL_TIM_PWM_Start+0x9e>
  34324. 800ecd8: 683b ldr r3, [r7, #0]
  34325. 800ecda: 2b04 cmp r3, #4
  34326. 800ecdc: d109 bne.n 800ecf2 <HAL_TIM_PWM_Start+0x3e>
  34327. 800ecde: 687b ldr r3, [r7, #4]
  34328. 800ece0: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  34329. 800ece4: b2db uxtb r3, r3
  34330. 800ece6: 2b01 cmp r3, #1
  34331. 800ece8: bf14 ite ne
  34332. 800ecea: 2301 movne r3, #1
  34333. 800ecec: 2300 moveq r3, #0
  34334. 800ecee: b2db uxtb r3, r3
  34335. 800ecf0: e02f b.n 800ed52 <HAL_TIM_PWM_Start+0x9e>
  34336. 800ecf2: 683b ldr r3, [r7, #0]
  34337. 800ecf4: 2b08 cmp r3, #8
  34338. 800ecf6: d109 bne.n 800ed0c <HAL_TIM_PWM_Start+0x58>
  34339. 800ecf8: 687b ldr r3, [r7, #4]
  34340. 800ecfa: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  34341. 800ecfe: b2db uxtb r3, r3
  34342. 800ed00: 2b01 cmp r3, #1
  34343. 800ed02: bf14 ite ne
  34344. 800ed04: 2301 movne r3, #1
  34345. 800ed06: 2300 moveq r3, #0
  34346. 800ed08: b2db uxtb r3, r3
  34347. 800ed0a: e022 b.n 800ed52 <HAL_TIM_PWM_Start+0x9e>
  34348. 800ed0c: 683b ldr r3, [r7, #0]
  34349. 800ed0e: 2b0c cmp r3, #12
  34350. 800ed10: d109 bne.n 800ed26 <HAL_TIM_PWM_Start+0x72>
  34351. 800ed12: 687b ldr r3, [r7, #4]
  34352. 800ed14: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  34353. 800ed18: b2db uxtb r3, r3
  34354. 800ed1a: 2b01 cmp r3, #1
  34355. 800ed1c: bf14 ite ne
  34356. 800ed1e: 2301 movne r3, #1
  34357. 800ed20: 2300 moveq r3, #0
  34358. 800ed22: b2db uxtb r3, r3
  34359. 800ed24: e015 b.n 800ed52 <HAL_TIM_PWM_Start+0x9e>
  34360. 800ed26: 683b ldr r3, [r7, #0]
  34361. 800ed28: 2b10 cmp r3, #16
  34362. 800ed2a: d109 bne.n 800ed40 <HAL_TIM_PWM_Start+0x8c>
  34363. 800ed2c: 687b ldr r3, [r7, #4]
  34364. 800ed2e: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  34365. 800ed32: b2db uxtb r3, r3
  34366. 800ed34: 2b01 cmp r3, #1
  34367. 800ed36: bf14 ite ne
  34368. 800ed38: 2301 movne r3, #1
  34369. 800ed3a: 2300 moveq r3, #0
  34370. 800ed3c: b2db uxtb r3, r3
  34371. 800ed3e: e008 b.n 800ed52 <HAL_TIM_PWM_Start+0x9e>
  34372. 800ed40: 687b ldr r3, [r7, #4]
  34373. 800ed42: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  34374. 800ed46: b2db uxtb r3, r3
  34375. 800ed48: 2b01 cmp r3, #1
  34376. 800ed4a: bf14 ite ne
  34377. 800ed4c: 2301 movne r3, #1
  34378. 800ed4e: 2300 moveq r3, #0
  34379. 800ed50: b2db uxtb r3, r3
  34380. 800ed52: 2b00 cmp r3, #0
  34381. 800ed54: d001 beq.n 800ed5a <HAL_TIM_PWM_Start+0xa6>
  34382. {
  34383. return HAL_ERROR;
  34384. 800ed56: 2301 movs r3, #1
  34385. 800ed58: e0a1 b.n 800ee9e <HAL_TIM_PWM_Start+0x1ea>
  34386. }
  34387. /* Set the TIM channel state */
  34388. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  34389. 800ed5a: 683b ldr r3, [r7, #0]
  34390. 800ed5c: 2b00 cmp r3, #0
  34391. 800ed5e: d104 bne.n 800ed6a <HAL_TIM_PWM_Start+0xb6>
  34392. 800ed60: 687b ldr r3, [r7, #4]
  34393. 800ed62: 2202 movs r2, #2
  34394. 800ed64: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34395. 800ed68: e023 b.n 800edb2 <HAL_TIM_PWM_Start+0xfe>
  34396. 800ed6a: 683b ldr r3, [r7, #0]
  34397. 800ed6c: 2b04 cmp r3, #4
  34398. 800ed6e: d104 bne.n 800ed7a <HAL_TIM_PWM_Start+0xc6>
  34399. 800ed70: 687b ldr r3, [r7, #4]
  34400. 800ed72: 2202 movs r2, #2
  34401. 800ed74: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34402. 800ed78: e01b b.n 800edb2 <HAL_TIM_PWM_Start+0xfe>
  34403. 800ed7a: 683b ldr r3, [r7, #0]
  34404. 800ed7c: 2b08 cmp r3, #8
  34405. 800ed7e: d104 bne.n 800ed8a <HAL_TIM_PWM_Start+0xd6>
  34406. 800ed80: 687b ldr r3, [r7, #4]
  34407. 800ed82: 2202 movs r2, #2
  34408. 800ed84: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34409. 800ed88: e013 b.n 800edb2 <HAL_TIM_PWM_Start+0xfe>
  34410. 800ed8a: 683b ldr r3, [r7, #0]
  34411. 800ed8c: 2b0c cmp r3, #12
  34412. 800ed8e: d104 bne.n 800ed9a <HAL_TIM_PWM_Start+0xe6>
  34413. 800ed90: 687b ldr r3, [r7, #4]
  34414. 800ed92: 2202 movs r2, #2
  34415. 800ed94: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34416. 800ed98: e00b b.n 800edb2 <HAL_TIM_PWM_Start+0xfe>
  34417. 800ed9a: 683b ldr r3, [r7, #0]
  34418. 800ed9c: 2b10 cmp r3, #16
  34419. 800ed9e: d104 bne.n 800edaa <HAL_TIM_PWM_Start+0xf6>
  34420. 800eda0: 687b ldr r3, [r7, #4]
  34421. 800eda2: 2202 movs r2, #2
  34422. 800eda4: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34423. 800eda8: e003 b.n 800edb2 <HAL_TIM_PWM_Start+0xfe>
  34424. 800edaa: 687b ldr r3, [r7, #4]
  34425. 800edac: 2202 movs r2, #2
  34426. 800edae: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34427. /* Enable the Capture compare channel */
  34428. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  34429. 800edb2: 687b ldr r3, [r7, #4]
  34430. 800edb4: 681b ldr r3, [r3, #0]
  34431. 800edb6: 2201 movs r2, #1
  34432. 800edb8: 6839 ldr r1, [r7, #0]
  34433. 800edba: 4618 mov r0, r3
  34434. 800edbc: f001 fc60 bl 8010680 <TIM_CCxChannelCmd>
  34435. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  34436. 800edc0: 687b ldr r3, [r7, #4]
  34437. 800edc2: 681b ldr r3, [r3, #0]
  34438. 800edc4: 4a38 ldr r2, [pc, #224] @ (800eea8 <HAL_TIM_PWM_Start+0x1f4>)
  34439. 800edc6: 4293 cmp r3, r2
  34440. 800edc8: d013 beq.n 800edf2 <HAL_TIM_PWM_Start+0x13e>
  34441. 800edca: 687b ldr r3, [r7, #4]
  34442. 800edcc: 681b ldr r3, [r3, #0]
  34443. 800edce: 4a37 ldr r2, [pc, #220] @ (800eeac <HAL_TIM_PWM_Start+0x1f8>)
  34444. 800edd0: 4293 cmp r3, r2
  34445. 800edd2: d00e beq.n 800edf2 <HAL_TIM_PWM_Start+0x13e>
  34446. 800edd4: 687b ldr r3, [r7, #4]
  34447. 800edd6: 681b ldr r3, [r3, #0]
  34448. 800edd8: 4a35 ldr r2, [pc, #212] @ (800eeb0 <HAL_TIM_PWM_Start+0x1fc>)
  34449. 800edda: 4293 cmp r3, r2
  34450. 800eddc: d009 beq.n 800edf2 <HAL_TIM_PWM_Start+0x13e>
  34451. 800edde: 687b ldr r3, [r7, #4]
  34452. 800ede0: 681b ldr r3, [r3, #0]
  34453. 800ede2: 4a34 ldr r2, [pc, #208] @ (800eeb4 <HAL_TIM_PWM_Start+0x200>)
  34454. 800ede4: 4293 cmp r3, r2
  34455. 800ede6: d004 beq.n 800edf2 <HAL_TIM_PWM_Start+0x13e>
  34456. 800ede8: 687b ldr r3, [r7, #4]
  34457. 800edea: 681b ldr r3, [r3, #0]
  34458. 800edec: 4a32 ldr r2, [pc, #200] @ (800eeb8 <HAL_TIM_PWM_Start+0x204>)
  34459. 800edee: 4293 cmp r3, r2
  34460. 800edf0: d101 bne.n 800edf6 <HAL_TIM_PWM_Start+0x142>
  34461. 800edf2: 2301 movs r3, #1
  34462. 800edf4: e000 b.n 800edf8 <HAL_TIM_PWM_Start+0x144>
  34463. 800edf6: 2300 movs r3, #0
  34464. 800edf8: 2b00 cmp r3, #0
  34465. 800edfa: d007 beq.n 800ee0c <HAL_TIM_PWM_Start+0x158>
  34466. {
  34467. /* Enable the main output */
  34468. __HAL_TIM_MOE_ENABLE(htim);
  34469. 800edfc: 687b ldr r3, [r7, #4]
  34470. 800edfe: 681b ldr r3, [r3, #0]
  34471. 800ee00: 6c5a ldr r2, [r3, #68] @ 0x44
  34472. 800ee02: 687b ldr r3, [r7, #4]
  34473. 800ee04: 681b ldr r3, [r3, #0]
  34474. 800ee06: f442 4200 orr.w r2, r2, #32768 @ 0x8000
  34475. 800ee0a: 645a str r2, [r3, #68] @ 0x44
  34476. }
  34477. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  34478. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  34479. 800ee0c: 687b ldr r3, [r7, #4]
  34480. 800ee0e: 681b ldr r3, [r3, #0]
  34481. 800ee10: 4a25 ldr r2, [pc, #148] @ (800eea8 <HAL_TIM_PWM_Start+0x1f4>)
  34482. 800ee12: 4293 cmp r3, r2
  34483. 800ee14: d022 beq.n 800ee5c <HAL_TIM_PWM_Start+0x1a8>
  34484. 800ee16: 687b ldr r3, [r7, #4]
  34485. 800ee18: 681b ldr r3, [r3, #0]
  34486. 800ee1a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  34487. 800ee1e: d01d beq.n 800ee5c <HAL_TIM_PWM_Start+0x1a8>
  34488. 800ee20: 687b ldr r3, [r7, #4]
  34489. 800ee22: 681b ldr r3, [r3, #0]
  34490. 800ee24: 4a25 ldr r2, [pc, #148] @ (800eebc <HAL_TIM_PWM_Start+0x208>)
  34491. 800ee26: 4293 cmp r3, r2
  34492. 800ee28: d018 beq.n 800ee5c <HAL_TIM_PWM_Start+0x1a8>
  34493. 800ee2a: 687b ldr r3, [r7, #4]
  34494. 800ee2c: 681b ldr r3, [r3, #0]
  34495. 800ee2e: 4a24 ldr r2, [pc, #144] @ (800eec0 <HAL_TIM_PWM_Start+0x20c>)
  34496. 800ee30: 4293 cmp r3, r2
  34497. 800ee32: d013 beq.n 800ee5c <HAL_TIM_PWM_Start+0x1a8>
  34498. 800ee34: 687b ldr r3, [r7, #4]
  34499. 800ee36: 681b ldr r3, [r3, #0]
  34500. 800ee38: 4a22 ldr r2, [pc, #136] @ (800eec4 <HAL_TIM_PWM_Start+0x210>)
  34501. 800ee3a: 4293 cmp r3, r2
  34502. 800ee3c: d00e beq.n 800ee5c <HAL_TIM_PWM_Start+0x1a8>
  34503. 800ee3e: 687b ldr r3, [r7, #4]
  34504. 800ee40: 681b ldr r3, [r3, #0]
  34505. 800ee42: 4a1a ldr r2, [pc, #104] @ (800eeac <HAL_TIM_PWM_Start+0x1f8>)
  34506. 800ee44: 4293 cmp r3, r2
  34507. 800ee46: d009 beq.n 800ee5c <HAL_TIM_PWM_Start+0x1a8>
  34508. 800ee48: 687b ldr r3, [r7, #4]
  34509. 800ee4a: 681b ldr r3, [r3, #0]
  34510. 800ee4c: 4a1e ldr r2, [pc, #120] @ (800eec8 <HAL_TIM_PWM_Start+0x214>)
  34511. 800ee4e: 4293 cmp r3, r2
  34512. 800ee50: d004 beq.n 800ee5c <HAL_TIM_PWM_Start+0x1a8>
  34513. 800ee52: 687b ldr r3, [r7, #4]
  34514. 800ee54: 681b ldr r3, [r3, #0]
  34515. 800ee56: 4a16 ldr r2, [pc, #88] @ (800eeb0 <HAL_TIM_PWM_Start+0x1fc>)
  34516. 800ee58: 4293 cmp r3, r2
  34517. 800ee5a: d115 bne.n 800ee88 <HAL_TIM_PWM_Start+0x1d4>
  34518. {
  34519. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  34520. 800ee5c: 687b ldr r3, [r7, #4]
  34521. 800ee5e: 681b ldr r3, [r3, #0]
  34522. 800ee60: 689a ldr r2, [r3, #8]
  34523. 800ee62: 4b1a ldr r3, [pc, #104] @ (800eecc <HAL_TIM_PWM_Start+0x218>)
  34524. 800ee64: 4013 ands r3, r2
  34525. 800ee66: 60fb str r3, [r7, #12]
  34526. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34527. 800ee68: 68fb ldr r3, [r7, #12]
  34528. 800ee6a: 2b06 cmp r3, #6
  34529. 800ee6c: d015 beq.n 800ee9a <HAL_TIM_PWM_Start+0x1e6>
  34530. 800ee6e: 68fb ldr r3, [r7, #12]
  34531. 800ee70: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  34532. 800ee74: d011 beq.n 800ee9a <HAL_TIM_PWM_Start+0x1e6>
  34533. {
  34534. __HAL_TIM_ENABLE(htim);
  34535. 800ee76: 687b ldr r3, [r7, #4]
  34536. 800ee78: 681b ldr r3, [r3, #0]
  34537. 800ee7a: 681a ldr r2, [r3, #0]
  34538. 800ee7c: 687b ldr r3, [r7, #4]
  34539. 800ee7e: 681b ldr r3, [r3, #0]
  34540. 800ee80: f042 0201 orr.w r2, r2, #1
  34541. 800ee84: 601a str r2, [r3, #0]
  34542. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34543. 800ee86: e008 b.n 800ee9a <HAL_TIM_PWM_Start+0x1e6>
  34544. }
  34545. }
  34546. else
  34547. {
  34548. __HAL_TIM_ENABLE(htim);
  34549. 800ee88: 687b ldr r3, [r7, #4]
  34550. 800ee8a: 681b ldr r3, [r3, #0]
  34551. 800ee8c: 681a ldr r2, [r3, #0]
  34552. 800ee8e: 687b ldr r3, [r7, #4]
  34553. 800ee90: 681b ldr r3, [r3, #0]
  34554. 800ee92: f042 0201 orr.w r2, r2, #1
  34555. 800ee96: 601a str r2, [r3, #0]
  34556. 800ee98: e000 b.n 800ee9c <HAL_TIM_PWM_Start+0x1e8>
  34557. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34558. 800ee9a: bf00 nop
  34559. }
  34560. /* Return function status */
  34561. return HAL_OK;
  34562. 800ee9c: 2300 movs r3, #0
  34563. }
  34564. 800ee9e: 4618 mov r0, r3
  34565. 800eea0: 3710 adds r7, #16
  34566. 800eea2: 46bd mov sp, r7
  34567. 800eea4: bd80 pop {r7, pc}
  34568. 800eea6: bf00 nop
  34569. 800eea8: 40010000 .word 0x40010000
  34570. 800eeac: 40010400 .word 0x40010400
  34571. 800eeb0: 40014000 .word 0x40014000
  34572. 800eeb4: 40014400 .word 0x40014400
  34573. 800eeb8: 40014800 .word 0x40014800
  34574. 800eebc: 40000400 .word 0x40000400
  34575. 800eec0: 40000800 .word 0x40000800
  34576. 800eec4: 40000c00 .word 0x40000c00
  34577. 800eec8: 40001800 .word 0x40001800
  34578. 800eecc: 00010007 .word 0x00010007
  34579. 0800eed0 <HAL_TIM_PWM_Stop>:
  34580. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  34581. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  34582. * @retval HAL status
  34583. */
  34584. HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
  34585. {
  34586. 800eed0: b580 push {r7, lr}
  34587. 800eed2: b082 sub sp, #8
  34588. 800eed4: af00 add r7, sp, #0
  34589. 800eed6: 6078 str r0, [r7, #4]
  34590. 800eed8: 6039 str r1, [r7, #0]
  34591. /* Check the parameters */
  34592. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  34593. /* Disable the Capture compare channel */
  34594. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE);
  34595. 800eeda: 687b ldr r3, [r7, #4]
  34596. 800eedc: 681b ldr r3, [r3, #0]
  34597. 800eede: 2200 movs r2, #0
  34598. 800eee0: 6839 ldr r1, [r7, #0]
  34599. 800eee2: 4618 mov r0, r3
  34600. 800eee4: f001 fbcc bl 8010680 <TIM_CCxChannelCmd>
  34601. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  34602. 800eee8: 687b ldr r3, [r7, #4]
  34603. 800eeea: 681b ldr r3, [r3, #0]
  34604. 800eeec: 4a3e ldr r2, [pc, #248] @ (800efe8 <HAL_TIM_PWM_Stop+0x118>)
  34605. 800eeee: 4293 cmp r3, r2
  34606. 800eef0: d013 beq.n 800ef1a <HAL_TIM_PWM_Stop+0x4a>
  34607. 800eef2: 687b ldr r3, [r7, #4]
  34608. 800eef4: 681b ldr r3, [r3, #0]
  34609. 800eef6: 4a3d ldr r2, [pc, #244] @ (800efec <HAL_TIM_PWM_Stop+0x11c>)
  34610. 800eef8: 4293 cmp r3, r2
  34611. 800eefa: d00e beq.n 800ef1a <HAL_TIM_PWM_Stop+0x4a>
  34612. 800eefc: 687b ldr r3, [r7, #4]
  34613. 800eefe: 681b ldr r3, [r3, #0]
  34614. 800ef00: 4a3b ldr r2, [pc, #236] @ (800eff0 <HAL_TIM_PWM_Stop+0x120>)
  34615. 800ef02: 4293 cmp r3, r2
  34616. 800ef04: d009 beq.n 800ef1a <HAL_TIM_PWM_Stop+0x4a>
  34617. 800ef06: 687b ldr r3, [r7, #4]
  34618. 800ef08: 681b ldr r3, [r3, #0]
  34619. 800ef0a: 4a3a ldr r2, [pc, #232] @ (800eff4 <HAL_TIM_PWM_Stop+0x124>)
  34620. 800ef0c: 4293 cmp r3, r2
  34621. 800ef0e: d004 beq.n 800ef1a <HAL_TIM_PWM_Stop+0x4a>
  34622. 800ef10: 687b ldr r3, [r7, #4]
  34623. 800ef12: 681b ldr r3, [r3, #0]
  34624. 800ef14: 4a38 ldr r2, [pc, #224] @ (800eff8 <HAL_TIM_PWM_Stop+0x128>)
  34625. 800ef16: 4293 cmp r3, r2
  34626. 800ef18: d101 bne.n 800ef1e <HAL_TIM_PWM_Stop+0x4e>
  34627. 800ef1a: 2301 movs r3, #1
  34628. 800ef1c: e000 b.n 800ef20 <HAL_TIM_PWM_Stop+0x50>
  34629. 800ef1e: 2300 movs r3, #0
  34630. 800ef20: 2b00 cmp r3, #0
  34631. 800ef22: d017 beq.n 800ef54 <HAL_TIM_PWM_Stop+0x84>
  34632. {
  34633. /* Disable the Main Output */
  34634. __HAL_TIM_MOE_DISABLE(htim);
  34635. 800ef24: 687b ldr r3, [r7, #4]
  34636. 800ef26: 681b ldr r3, [r3, #0]
  34637. 800ef28: 6a1a ldr r2, [r3, #32]
  34638. 800ef2a: f241 1311 movw r3, #4369 @ 0x1111
  34639. 800ef2e: 4013 ands r3, r2
  34640. 800ef30: 2b00 cmp r3, #0
  34641. 800ef32: d10f bne.n 800ef54 <HAL_TIM_PWM_Stop+0x84>
  34642. 800ef34: 687b ldr r3, [r7, #4]
  34643. 800ef36: 681b ldr r3, [r3, #0]
  34644. 800ef38: 6a1a ldr r2, [r3, #32]
  34645. 800ef3a: f240 4344 movw r3, #1092 @ 0x444
  34646. 800ef3e: 4013 ands r3, r2
  34647. 800ef40: 2b00 cmp r3, #0
  34648. 800ef42: d107 bne.n 800ef54 <HAL_TIM_PWM_Stop+0x84>
  34649. 800ef44: 687b ldr r3, [r7, #4]
  34650. 800ef46: 681b ldr r3, [r3, #0]
  34651. 800ef48: 6c5a ldr r2, [r3, #68] @ 0x44
  34652. 800ef4a: 687b ldr r3, [r7, #4]
  34653. 800ef4c: 681b ldr r3, [r3, #0]
  34654. 800ef4e: f422 4200 bic.w r2, r2, #32768 @ 0x8000
  34655. 800ef52: 645a str r2, [r3, #68] @ 0x44
  34656. }
  34657. /* Disable the Peripheral */
  34658. __HAL_TIM_DISABLE(htim);
  34659. 800ef54: 687b ldr r3, [r7, #4]
  34660. 800ef56: 681b ldr r3, [r3, #0]
  34661. 800ef58: 6a1a ldr r2, [r3, #32]
  34662. 800ef5a: f241 1311 movw r3, #4369 @ 0x1111
  34663. 800ef5e: 4013 ands r3, r2
  34664. 800ef60: 2b00 cmp r3, #0
  34665. 800ef62: d10f bne.n 800ef84 <HAL_TIM_PWM_Stop+0xb4>
  34666. 800ef64: 687b ldr r3, [r7, #4]
  34667. 800ef66: 681b ldr r3, [r3, #0]
  34668. 800ef68: 6a1a ldr r2, [r3, #32]
  34669. 800ef6a: f240 4344 movw r3, #1092 @ 0x444
  34670. 800ef6e: 4013 ands r3, r2
  34671. 800ef70: 2b00 cmp r3, #0
  34672. 800ef72: d107 bne.n 800ef84 <HAL_TIM_PWM_Stop+0xb4>
  34673. 800ef74: 687b ldr r3, [r7, #4]
  34674. 800ef76: 681b ldr r3, [r3, #0]
  34675. 800ef78: 681a ldr r2, [r3, #0]
  34676. 800ef7a: 687b ldr r3, [r7, #4]
  34677. 800ef7c: 681b ldr r3, [r3, #0]
  34678. 800ef7e: f022 0201 bic.w r2, r2, #1
  34679. 800ef82: 601a str r2, [r3, #0]
  34680. /* Set the TIM channel state */
  34681. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  34682. 800ef84: 683b ldr r3, [r7, #0]
  34683. 800ef86: 2b00 cmp r3, #0
  34684. 800ef88: d104 bne.n 800ef94 <HAL_TIM_PWM_Stop+0xc4>
  34685. 800ef8a: 687b ldr r3, [r7, #4]
  34686. 800ef8c: 2201 movs r2, #1
  34687. 800ef8e: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34688. 800ef92: e023 b.n 800efdc <HAL_TIM_PWM_Stop+0x10c>
  34689. 800ef94: 683b ldr r3, [r7, #0]
  34690. 800ef96: 2b04 cmp r3, #4
  34691. 800ef98: d104 bne.n 800efa4 <HAL_TIM_PWM_Stop+0xd4>
  34692. 800ef9a: 687b ldr r3, [r7, #4]
  34693. 800ef9c: 2201 movs r2, #1
  34694. 800ef9e: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34695. 800efa2: e01b b.n 800efdc <HAL_TIM_PWM_Stop+0x10c>
  34696. 800efa4: 683b ldr r3, [r7, #0]
  34697. 800efa6: 2b08 cmp r3, #8
  34698. 800efa8: d104 bne.n 800efb4 <HAL_TIM_PWM_Stop+0xe4>
  34699. 800efaa: 687b ldr r3, [r7, #4]
  34700. 800efac: 2201 movs r2, #1
  34701. 800efae: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34702. 800efb2: e013 b.n 800efdc <HAL_TIM_PWM_Stop+0x10c>
  34703. 800efb4: 683b ldr r3, [r7, #0]
  34704. 800efb6: 2b0c cmp r3, #12
  34705. 800efb8: d104 bne.n 800efc4 <HAL_TIM_PWM_Stop+0xf4>
  34706. 800efba: 687b ldr r3, [r7, #4]
  34707. 800efbc: 2201 movs r2, #1
  34708. 800efbe: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34709. 800efc2: e00b b.n 800efdc <HAL_TIM_PWM_Stop+0x10c>
  34710. 800efc4: 683b ldr r3, [r7, #0]
  34711. 800efc6: 2b10 cmp r3, #16
  34712. 800efc8: d104 bne.n 800efd4 <HAL_TIM_PWM_Stop+0x104>
  34713. 800efca: 687b ldr r3, [r7, #4]
  34714. 800efcc: 2201 movs r2, #1
  34715. 800efce: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34716. 800efd2: e003 b.n 800efdc <HAL_TIM_PWM_Stop+0x10c>
  34717. 800efd4: 687b ldr r3, [r7, #4]
  34718. 800efd6: 2201 movs r2, #1
  34719. 800efd8: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34720. /* Return function status */
  34721. return HAL_OK;
  34722. 800efdc: 2300 movs r3, #0
  34723. }
  34724. 800efde: 4618 mov r0, r3
  34725. 800efe0: 3708 adds r7, #8
  34726. 800efe2: 46bd mov sp, r7
  34727. 800efe4: bd80 pop {r7, pc}
  34728. 800efe6: bf00 nop
  34729. 800efe8: 40010000 .word 0x40010000
  34730. 800efec: 40010400 .word 0x40010400
  34731. 800eff0: 40014000 .word 0x40014000
  34732. 800eff4: 40014400 .word 0x40014400
  34733. 800eff8: 40014800 .word 0x40014800
  34734. 0800effc <HAL_TIM_IC_Init>:
  34735. * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init()
  34736. * @param htim TIM Input Capture handle
  34737. * @retval HAL status
  34738. */
  34739. HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim)
  34740. {
  34741. 800effc: b580 push {r7, lr}
  34742. 800effe: b082 sub sp, #8
  34743. 800f000: af00 add r7, sp, #0
  34744. 800f002: 6078 str r0, [r7, #4]
  34745. /* Check the TIM handle allocation */
  34746. if (htim == NULL)
  34747. 800f004: 687b ldr r3, [r7, #4]
  34748. 800f006: 2b00 cmp r3, #0
  34749. 800f008: d101 bne.n 800f00e <HAL_TIM_IC_Init+0x12>
  34750. {
  34751. return HAL_ERROR;
  34752. 800f00a: 2301 movs r3, #1
  34753. 800f00c: e049 b.n 800f0a2 <HAL_TIM_IC_Init+0xa6>
  34754. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  34755. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  34756. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  34757. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  34758. if (htim->State == HAL_TIM_STATE_RESET)
  34759. 800f00e: 687b ldr r3, [r7, #4]
  34760. 800f010: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34761. 800f014: b2db uxtb r3, r3
  34762. 800f016: 2b00 cmp r3, #0
  34763. 800f018: d106 bne.n 800f028 <HAL_TIM_IC_Init+0x2c>
  34764. {
  34765. /* Allocate lock resource and initialize it */
  34766. htim->Lock = HAL_UNLOCKED;
  34767. 800f01a: 687b ldr r3, [r7, #4]
  34768. 800f01c: 2200 movs r2, #0
  34769. 800f01e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  34770. }
  34771. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34772. htim->IC_MspInitCallback(htim);
  34773. #else
  34774. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  34775. HAL_TIM_IC_MspInit(htim);
  34776. 800f022: 6878 ldr r0, [r7, #4]
  34777. 800f024: f000 f841 bl 800f0aa <HAL_TIM_IC_MspInit>
  34778. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  34779. }
  34780. /* Set the TIM state */
  34781. htim->State = HAL_TIM_STATE_BUSY;
  34782. 800f028: 687b ldr r3, [r7, #4]
  34783. 800f02a: 2202 movs r2, #2
  34784. 800f02c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34785. /* Init the base time for the input capture */
  34786. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  34787. 800f030: 687b ldr r3, [r7, #4]
  34788. 800f032: 681a ldr r2, [r3, #0]
  34789. 800f034: 687b ldr r3, [r7, #4]
  34790. 800f036: 3304 adds r3, #4
  34791. 800f038: 4619 mov r1, r3
  34792. 800f03a: 4610 mov r0, r2
  34793. 800f03c: f000 fddc bl 800fbf8 <TIM_Base_SetConfig>
  34794. /* Initialize the DMA burst operation state */
  34795. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  34796. 800f040: 687b ldr r3, [r7, #4]
  34797. 800f042: 2201 movs r2, #1
  34798. 800f044: f883 2048 strb.w r2, [r3, #72] @ 0x48
  34799. /* Initialize the TIM channels state */
  34800. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34801. 800f048: 687b ldr r3, [r7, #4]
  34802. 800f04a: 2201 movs r2, #1
  34803. 800f04c: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34804. 800f050: 687b ldr r3, [r7, #4]
  34805. 800f052: 2201 movs r2, #1
  34806. 800f054: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34807. 800f058: 687b ldr r3, [r7, #4]
  34808. 800f05a: 2201 movs r2, #1
  34809. 800f05c: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34810. 800f060: 687b ldr r3, [r7, #4]
  34811. 800f062: 2201 movs r2, #1
  34812. 800f064: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34813. 800f068: 687b ldr r3, [r7, #4]
  34814. 800f06a: 2201 movs r2, #1
  34815. 800f06c: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34816. 800f070: 687b ldr r3, [r7, #4]
  34817. 800f072: 2201 movs r2, #1
  34818. 800f074: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34819. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34820. 800f078: 687b ldr r3, [r7, #4]
  34821. 800f07a: 2201 movs r2, #1
  34822. 800f07c: f883 2044 strb.w r2, [r3, #68] @ 0x44
  34823. 800f080: 687b ldr r3, [r7, #4]
  34824. 800f082: 2201 movs r2, #1
  34825. 800f084: f883 2045 strb.w r2, [r3, #69] @ 0x45
  34826. 800f088: 687b ldr r3, [r7, #4]
  34827. 800f08a: 2201 movs r2, #1
  34828. 800f08c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  34829. 800f090: 687b ldr r3, [r7, #4]
  34830. 800f092: 2201 movs r2, #1
  34831. 800f094: f883 2047 strb.w r2, [r3, #71] @ 0x47
  34832. /* Initialize the TIM state*/
  34833. htim->State = HAL_TIM_STATE_READY;
  34834. 800f098: 687b ldr r3, [r7, #4]
  34835. 800f09a: 2201 movs r2, #1
  34836. 800f09c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34837. return HAL_OK;
  34838. 800f0a0: 2300 movs r3, #0
  34839. }
  34840. 800f0a2: 4618 mov r0, r3
  34841. 800f0a4: 3708 adds r7, #8
  34842. 800f0a6: 46bd mov sp, r7
  34843. 800f0a8: bd80 pop {r7, pc}
  34844. 0800f0aa <HAL_TIM_IC_MspInit>:
  34845. * @brief Initializes the TIM Input Capture MSP.
  34846. * @param htim TIM Input Capture handle
  34847. * @retval None
  34848. */
  34849. __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim)
  34850. {
  34851. 800f0aa: b480 push {r7}
  34852. 800f0ac: b083 sub sp, #12
  34853. 800f0ae: af00 add r7, sp, #0
  34854. 800f0b0: 6078 str r0, [r7, #4]
  34855. UNUSED(htim);
  34856. /* NOTE : This function should not be modified, when the callback is needed,
  34857. the HAL_TIM_IC_MspInit could be implemented in the user file
  34858. */
  34859. }
  34860. 800f0b2: bf00 nop
  34861. 800f0b4: 370c adds r7, #12
  34862. 800f0b6: 46bd mov sp, r7
  34863. 800f0b8: f85d 7b04 ldr.w r7, [sp], #4
  34864. 800f0bc: 4770 bx lr
  34865. ...
  34866. 0800f0c0 <HAL_TIM_IC_Start_IT>:
  34867. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  34868. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  34869. * @retval HAL status
  34870. */
  34871. HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
  34872. {
  34873. 800f0c0: b580 push {r7, lr}
  34874. 800f0c2: b084 sub sp, #16
  34875. 800f0c4: af00 add r7, sp, #0
  34876. 800f0c6: 6078 str r0, [r7, #4]
  34877. 800f0c8: 6039 str r1, [r7, #0]
  34878. HAL_StatusTypeDef status = HAL_OK;
  34879. 800f0ca: 2300 movs r3, #0
  34880. 800f0cc: 73fb strb r3, [r7, #15]
  34881. uint32_t tmpsmcr;
  34882. HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  34883. 800f0ce: 683b ldr r3, [r7, #0]
  34884. 800f0d0: 2b00 cmp r3, #0
  34885. 800f0d2: d104 bne.n 800f0de <HAL_TIM_IC_Start_IT+0x1e>
  34886. 800f0d4: 687b ldr r3, [r7, #4]
  34887. 800f0d6: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  34888. 800f0da: b2db uxtb r3, r3
  34889. 800f0dc: e023 b.n 800f126 <HAL_TIM_IC_Start_IT+0x66>
  34890. 800f0de: 683b ldr r3, [r7, #0]
  34891. 800f0e0: 2b04 cmp r3, #4
  34892. 800f0e2: d104 bne.n 800f0ee <HAL_TIM_IC_Start_IT+0x2e>
  34893. 800f0e4: 687b ldr r3, [r7, #4]
  34894. 800f0e6: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  34895. 800f0ea: b2db uxtb r3, r3
  34896. 800f0ec: e01b b.n 800f126 <HAL_TIM_IC_Start_IT+0x66>
  34897. 800f0ee: 683b ldr r3, [r7, #0]
  34898. 800f0f0: 2b08 cmp r3, #8
  34899. 800f0f2: d104 bne.n 800f0fe <HAL_TIM_IC_Start_IT+0x3e>
  34900. 800f0f4: 687b ldr r3, [r7, #4]
  34901. 800f0f6: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  34902. 800f0fa: b2db uxtb r3, r3
  34903. 800f0fc: e013 b.n 800f126 <HAL_TIM_IC_Start_IT+0x66>
  34904. 800f0fe: 683b ldr r3, [r7, #0]
  34905. 800f100: 2b0c cmp r3, #12
  34906. 800f102: d104 bne.n 800f10e <HAL_TIM_IC_Start_IT+0x4e>
  34907. 800f104: 687b ldr r3, [r7, #4]
  34908. 800f106: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  34909. 800f10a: b2db uxtb r3, r3
  34910. 800f10c: e00b b.n 800f126 <HAL_TIM_IC_Start_IT+0x66>
  34911. 800f10e: 683b ldr r3, [r7, #0]
  34912. 800f110: 2b10 cmp r3, #16
  34913. 800f112: d104 bne.n 800f11e <HAL_TIM_IC_Start_IT+0x5e>
  34914. 800f114: 687b ldr r3, [r7, #4]
  34915. 800f116: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  34916. 800f11a: b2db uxtb r3, r3
  34917. 800f11c: e003 b.n 800f126 <HAL_TIM_IC_Start_IT+0x66>
  34918. 800f11e: 687b ldr r3, [r7, #4]
  34919. 800f120: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  34920. 800f124: b2db uxtb r3, r3
  34921. 800f126: 73bb strb r3, [r7, #14]
  34922. HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel);
  34923. 800f128: 683b ldr r3, [r7, #0]
  34924. 800f12a: 2b00 cmp r3, #0
  34925. 800f12c: d104 bne.n 800f138 <HAL_TIM_IC_Start_IT+0x78>
  34926. 800f12e: 687b ldr r3, [r7, #4]
  34927. 800f130: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  34928. 800f134: b2db uxtb r3, r3
  34929. 800f136: e013 b.n 800f160 <HAL_TIM_IC_Start_IT+0xa0>
  34930. 800f138: 683b ldr r3, [r7, #0]
  34931. 800f13a: 2b04 cmp r3, #4
  34932. 800f13c: d104 bne.n 800f148 <HAL_TIM_IC_Start_IT+0x88>
  34933. 800f13e: 687b ldr r3, [r7, #4]
  34934. 800f140: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  34935. 800f144: b2db uxtb r3, r3
  34936. 800f146: e00b b.n 800f160 <HAL_TIM_IC_Start_IT+0xa0>
  34937. 800f148: 683b ldr r3, [r7, #0]
  34938. 800f14a: 2b08 cmp r3, #8
  34939. 800f14c: d104 bne.n 800f158 <HAL_TIM_IC_Start_IT+0x98>
  34940. 800f14e: 687b ldr r3, [r7, #4]
  34941. 800f150: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  34942. 800f154: b2db uxtb r3, r3
  34943. 800f156: e003 b.n 800f160 <HAL_TIM_IC_Start_IT+0xa0>
  34944. 800f158: 687b ldr r3, [r7, #4]
  34945. 800f15a: f893 3047 ldrb.w r3, [r3, #71] @ 0x47
  34946. 800f15e: b2db uxtb r3, r3
  34947. 800f160: 737b strb r3, [r7, #13]
  34948. /* Check the parameters */
  34949. assert_param(IS_TIM_CCX_CHANNEL(htim->Instance, Channel));
  34950. /* Check the TIM channel state */
  34951. if ((channel_state != HAL_TIM_CHANNEL_STATE_READY)
  34952. 800f162: 7bbb ldrb r3, [r7, #14]
  34953. 800f164: 2b01 cmp r3, #1
  34954. 800f166: d102 bne.n 800f16e <HAL_TIM_IC_Start_IT+0xae>
  34955. || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY))
  34956. 800f168: 7b7b ldrb r3, [r7, #13]
  34957. 800f16a: 2b01 cmp r3, #1
  34958. 800f16c: d001 beq.n 800f172 <HAL_TIM_IC_Start_IT+0xb2>
  34959. {
  34960. return HAL_ERROR;
  34961. 800f16e: 2301 movs r3, #1
  34962. 800f170: e0e2 b.n 800f338 <HAL_TIM_IC_Start_IT+0x278>
  34963. }
  34964. /* Set the TIM channel state */
  34965. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  34966. 800f172: 683b ldr r3, [r7, #0]
  34967. 800f174: 2b00 cmp r3, #0
  34968. 800f176: d104 bne.n 800f182 <HAL_TIM_IC_Start_IT+0xc2>
  34969. 800f178: 687b ldr r3, [r7, #4]
  34970. 800f17a: 2202 movs r2, #2
  34971. 800f17c: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34972. 800f180: e023 b.n 800f1ca <HAL_TIM_IC_Start_IT+0x10a>
  34973. 800f182: 683b ldr r3, [r7, #0]
  34974. 800f184: 2b04 cmp r3, #4
  34975. 800f186: d104 bne.n 800f192 <HAL_TIM_IC_Start_IT+0xd2>
  34976. 800f188: 687b ldr r3, [r7, #4]
  34977. 800f18a: 2202 movs r2, #2
  34978. 800f18c: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34979. 800f190: e01b b.n 800f1ca <HAL_TIM_IC_Start_IT+0x10a>
  34980. 800f192: 683b ldr r3, [r7, #0]
  34981. 800f194: 2b08 cmp r3, #8
  34982. 800f196: d104 bne.n 800f1a2 <HAL_TIM_IC_Start_IT+0xe2>
  34983. 800f198: 687b ldr r3, [r7, #4]
  34984. 800f19a: 2202 movs r2, #2
  34985. 800f19c: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34986. 800f1a0: e013 b.n 800f1ca <HAL_TIM_IC_Start_IT+0x10a>
  34987. 800f1a2: 683b ldr r3, [r7, #0]
  34988. 800f1a4: 2b0c cmp r3, #12
  34989. 800f1a6: d104 bne.n 800f1b2 <HAL_TIM_IC_Start_IT+0xf2>
  34990. 800f1a8: 687b ldr r3, [r7, #4]
  34991. 800f1aa: 2202 movs r2, #2
  34992. 800f1ac: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34993. 800f1b0: e00b b.n 800f1ca <HAL_TIM_IC_Start_IT+0x10a>
  34994. 800f1b2: 683b ldr r3, [r7, #0]
  34995. 800f1b4: 2b10 cmp r3, #16
  34996. 800f1b6: d104 bne.n 800f1c2 <HAL_TIM_IC_Start_IT+0x102>
  34997. 800f1b8: 687b ldr r3, [r7, #4]
  34998. 800f1ba: 2202 movs r2, #2
  34999. 800f1bc: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35000. 800f1c0: e003 b.n 800f1ca <HAL_TIM_IC_Start_IT+0x10a>
  35001. 800f1c2: 687b ldr r3, [r7, #4]
  35002. 800f1c4: 2202 movs r2, #2
  35003. 800f1c6: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35004. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35005. 800f1ca: 683b ldr r3, [r7, #0]
  35006. 800f1cc: 2b00 cmp r3, #0
  35007. 800f1ce: d104 bne.n 800f1da <HAL_TIM_IC_Start_IT+0x11a>
  35008. 800f1d0: 687b ldr r3, [r7, #4]
  35009. 800f1d2: 2202 movs r2, #2
  35010. 800f1d4: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35011. 800f1d8: e013 b.n 800f202 <HAL_TIM_IC_Start_IT+0x142>
  35012. 800f1da: 683b ldr r3, [r7, #0]
  35013. 800f1dc: 2b04 cmp r3, #4
  35014. 800f1de: d104 bne.n 800f1ea <HAL_TIM_IC_Start_IT+0x12a>
  35015. 800f1e0: 687b ldr r3, [r7, #4]
  35016. 800f1e2: 2202 movs r2, #2
  35017. 800f1e4: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35018. 800f1e8: e00b b.n 800f202 <HAL_TIM_IC_Start_IT+0x142>
  35019. 800f1ea: 683b ldr r3, [r7, #0]
  35020. 800f1ec: 2b08 cmp r3, #8
  35021. 800f1ee: d104 bne.n 800f1fa <HAL_TIM_IC_Start_IT+0x13a>
  35022. 800f1f0: 687b ldr r3, [r7, #4]
  35023. 800f1f2: 2202 movs r2, #2
  35024. 800f1f4: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35025. 800f1f8: e003 b.n 800f202 <HAL_TIM_IC_Start_IT+0x142>
  35026. 800f1fa: 687b ldr r3, [r7, #4]
  35027. 800f1fc: 2202 movs r2, #2
  35028. 800f1fe: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35029. switch (Channel)
  35030. 800f202: 683b ldr r3, [r7, #0]
  35031. 800f204: 2b0c cmp r3, #12
  35032. 800f206: d841 bhi.n 800f28c <HAL_TIM_IC_Start_IT+0x1cc>
  35033. 800f208: a201 add r2, pc, #4 @ (adr r2, 800f210 <HAL_TIM_IC_Start_IT+0x150>)
  35034. 800f20a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  35035. 800f20e: bf00 nop
  35036. 800f210: 0800f245 .word 0x0800f245
  35037. 800f214: 0800f28d .word 0x0800f28d
  35038. 800f218: 0800f28d .word 0x0800f28d
  35039. 800f21c: 0800f28d .word 0x0800f28d
  35040. 800f220: 0800f257 .word 0x0800f257
  35041. 800f224: 0800f28d .word 0x0800f28d
  35042. 800f228: 0800f28d .word 0x0800f28d
  35043. 800f22c: 0800f28d .word 0x0800f28d
  35044. 800f230: 0800f269 .word 0x0800f269
  35045. 800f234: 0800f28d .word 0x0800f28d
  35046. 800f238: 0800f28d .word 0x0800f28d
  35047. 800f23c: 0800f28d .word 0x0800f28d
  35048. 800f240: 0800f27b .word 0x0800f27b
  35049. {
  35050. case TIM_CHANNEL_1:
  35051. {
  35052. /* Enable the TIM Capture/Compare 1 interrupt */
  35053. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1);
  35054. 800f244: 687b ldr r3, [r7, #4]
  35055. 800f246: 681b ldr r3, [r3, #0]
  35056. 800f248: 68da ldr r2, [r3, #12]
  35057. 800f24a: 687b ldr r3, [r7, #4]
  35058. 800f24c: 681b ldr r3, [r3, #0]
  35059. 800f24e: f042 0202 orr.w r2, r2, #2
  35060. 800f252: 60da str r2, [r3, #12]
  35061. break;
  35062. 800f254: e01d b.n 800f292 <HAL_TIM_IC_Start_IT+0x1d2>
  35063. }
  35064. case TIM_CHANNEL_2:
  35065. {
  35066. /* Enable the TIM Capture/Compare 2 interrupt */
  35067. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2);
  35068. 800f256: 687b ldr r3, [r7, #4]
  35069. 800f258: 681b ldr r3, [r3, #0]
  35070. 800f25a: 68da ldr r2, [r3, #12]
  35071. 800f25c: 687b ldr r3, [r7, #4]
  35072. 800f25e: 681b ldr r3, [r3, #0]
  35073. 800f260: f042 0204 orr.w r2, r2, #4
  35074. 800f264: 60da str r2, [r3, #12]
  35075. break;
  35076. 800f266: e014 b.n 800f292 <HAL_TIM_IC_Start_IT+0x1d2>
  35077. }
  35078. case TIM_CHANNEL_3:
  35079. {
  35080. /* Enable the TIM Capture/Compare 3 interrupt */
  35081. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3);
  35082. 800f268: 687b ldr r3, [r7, #4]
  35083. 800f26a: 681b ldr r3, [r3, #0]
  35084. 800f26c: 68da ldr r2, [r3, #12]
  35085. 800f26e: 687b ldr r3, [r7, #4]
  35086. 800f270: 681b ldr r3, [r3, #0]
  35087. 800f272: f042 0208 orr.w r2, r2, #8
  35088. 800f276: 60da str r2, [r3, #12]
  35089. break;
  35090. 800f278: e00b b.n 800f292 <HAL_TIM_IC_Start_IT+0x1d2>
  35091. }
  35092. case TIM_CHANNEL_4:
  35093. {
  35094. /* Enable the TIM Capture/Compare 4 interrupt */
  35095. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4);
  35096. 800f27a: 687b ldr r3, [r7, #4]
  35097. 800f27c: 681b ldr r3, [r3, #0]
  35098. 800f27e: 68da ldr r2, [r3, #12]
  35099. 800f280: 687b ldr r3, [r7, #4]
  35100. 800f282: 681b ldr r3, [r3, #0]
  35101. 800f284: f042 0210 orr.w r2, r2, #16
  35102. 800f288: 60da str r2, [r3, #12]
  35103. break;
  35104. 800f28a: e002 b.n 800f292 <HAL_TIM_IC_Start_IT+0x1d2>
  35105. }
  35106. default:
  35107. status = HAL_ERROR;
  35108. 800f28c: 2301 movs r3, #1
  35109. 800f28e: 73fb strb r3, [r7, #15]
  35110. break;
  35111. 800f290: bf00 nop
  35112. }
  35113. if (status == HAL_OK)
  35114. 800f292: 7bfb ldrb r3, [r7, #15]
  35115. 800f294: 2b00 cmp r3, #0
  35116. 800f296: d14e bne.n 800f336 <HAL_TIM_IC_Start_IT+0x276>
  35117. {
  35118. /* Enable the Input Capture channel */
  35119. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  35120. 800f298: 687b ldr r3, [r7, #4]
  35121. 800f29a: 681b ldr r3, [r3, #0]
  35122. 800f29c: 2201 movs r2, #1
  35123. 800f29e: 6839 ldr r1, [r7, #0]
  35124. 800f2a0: 4618 mov r0, r3
  35125. 800f2a2: f001 f9ed bl 8010680 <TIM_CCxChannelCmd>
  35126. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35127. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35128. 800f2a6: 687b ldr r3, [r7, #4]
  35129. 800f2a8: 681b ldr r3, [r3, #0]
  35130. 800f2aa: 4a25 ldr r2, [pc, #148] @ (800f340 <HAL_TIM_IC_Start_IT+0x280>)
  35131. 800f2ac: 4293 cmp r3, r2
  35132. 800f2ae: d022 beq.n 800f2f6 <HAL_TIM_IC_Start_IT+0x236>
  35133. 800f2b0: 687b ldr r3, [r7, #4]
  35134. 800f2b2: 681b ldr r3, [r3, #0]
  35135. 800f2b4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35136. 800f2b8: d01d beq.n 800f2f6 <HAL_TIM_IC_Start_IT+0x236>
  35137. 800f2ba: 687b ldr r3, [r7, #4]
  35138. 800f2bc: 681b ldr r3, [r3, #0]
  35139. 800f2be: 4a21 ldr r2, [pc, #132] @ (800f344 <HAL_TIM_IC_Start_IT+0x284>)
  35140. 800f2c0: 4293 cmp r3, r2
  35141. 800f2c2: d018 beq.n 800f2f6 <HAL_TIM_IC_Start_IT+0x236>
  35142. 800f2c4: 687b ldr r3, [r7, #4]
  35143. 800f2c6: 681b ldr r3, [r3, #0]
  35144. 800f2c8: 4a1f ldr r2, [pc, #124] @ (800f348 <HAL_TIM_IC_Start_IT+0x288>)
  35145. 800f2ca: 4293 cmp r3, r2
  35146. 800f2cc: d013 beq.n 800f2f6 <HAL_TIM_IC_Start_IT+0x236>
  35147. 800f2ce: 687b ldr r3, [r7, #4]
  35148. 800f2d0: 681b ldr r3, [r3, #0]
  35149. 800f2d2: 4a1e ldr r2, [pc, #120] @ (800f34c <HAL_TIM_IC_Start_IT+0x28c>)
  35150. 800f2d4: 4293 cmp r3, r2
  35151. 800f2d6: d00e beq.n 800f2f6 <HAL_TIM_IC_Start_IT+0x236>
  35152. 800f2d8: 687b ldr r3, [r7, #4]
  35153. 800f2da: 681b ldr r3, [r3, #0]
  35154. 800f2dc: 4a1c ldr r2, [pc, #112] @ (800f350 <HAL_TIM_IC_Start_IT+0x290>)
  35155. 800f2de: 4293 cmp r3, r2
  35156. 800f2e0: d009 beq.n 800f2f6 <HAL_TIM_IC_Start_IT+0x236>
  35157. 800f2e2: 687b ldr r3, [r7, #4]
  35158. 800f2e4: 681b ldr r3, [r3, #0]
  35159. 800f2e6: 4a1b ldr r2, [pc, #108] @ (800f354 <HAL_TIM_IC_Start_IT+0x294>)
  35160. 800f2e8: 4293 cmp r3, r2
  35161. 800f2ea: d004 beq.n 800f2f6 <HAL_TIM_IC_Start_IT+0x236>
  35162. 800f2ec: 687b ldr r3, [r7, #4]
  35163. 800f2ee: 681b ldr r3, [r3, #0]
  35164. 800f2f0: 4a19 ldr r2, [pc, #100] @ (800f358 <HAL_TIM_IC_Start_IT+0x298>)
  35165. 800f2f2: 4293 cmp r3, r2
  35166. 800f2f4: d115 bne.n 800f322 <HAL_TIM_IC_Start_IT+0x262>
  35167. {
  35168. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35169. 800f2f6: 687b ldr r3, [r7, #4]
  35170. 800f2f8: 681b ldr r3, [r3, #0]
  35171. 800f2fa: 689a ldr r2, [r3, #8]
  35172. 800f2fc: 4b17 ldr r3, [pc, #92] @ (800f35c <HAL_TIM_IC_Start_IT+0x29c>)
  35173. 800f2fe: 4013 ands r3, r2
  35174. 800f300: 60bb str r3, [r7, #8]
  35175. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35176. 800f302: 68bb ldr r3, [r7, #8]
  35177. 800f304: 2b06 cmp r3, #6
  35178. 800f306: d015 beq.n 800f334 <HAL_TIM_IC_Start_IT+0x274>
  35179. 800f308: 68bb ldr r3, [r7, #8]
  35180. 800f30a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35181. 800f30e: d011 beq.n 800f334 <HAL_TIM_IC_Start_IT+0x274>
  35182. {
  35183. __HAL_TIM_ENABLE(htim);
  35184. 800f310: 687b ldr r3, [r7, #4]
  35185. 800f312: 681b ldr r3, [r3, #0]
  35186. 800f314: 681a ldr r2, [r3, #0]
  35187. 800f316: 687b ldr r3, [r7, #4]
  35188. 800f318: 681b ldr r3, [r3, #0]
  35189. 800f31a: f042 0201 orr.w r2, r2, #1
  35190. 800f31e: 601a str r2, [r3, #0]
  35191. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35192. 800f320: e008 b.n 800f334 <HAL_TIM_IC_Start_IT+0x274>
  35193. }
  35194. }
  35195. else
  35196. {
  35197. __HAL_TIM_ENABLE(htim);
  35198. 800f322: 687b ldr r3, [r7, #4]
  35199. 800f324: 681b ldr r3, [r3, #0]
  35200. 800f326: 681a ldr r2, [r3, #0]
  35201. 800f328: 687b ldr r3, [r7, #4]
  35202. 800f32a: 681b ldr r3, [r3, #0]
  35203. 800f32c: f042 0201 orr.w r2, r2, #1
  35204. 800f330: 601a str r2, [r3, #0]
  35205. 800f332: e000 b.n 800f336 <HAL_TIM_IC_Start_IT+0x276>
  35206. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35207. 800f334: bf00 nop
  35208. }
  35209. }
  35210. /* Return function status */
  35211. return status;
  35212. 800f336: 7bfb ldrb r3, [r7, #15]
  35213. }
  35214. 800f338: 4618 mov r0, r3
  35215. 800f33a: 3710 adds r7, #16
  35216. 800f33c: 46bd mov sp, r7
  35217. 800f33e: bd80 pop {r7, pc}
  35218. 800f340: 40010000 .word 0x40010000
  35219. 800f344: 40000400 .word 0x40000400
  35220. 800f348: 40000800 .word 0x40000800
  35221. 800f34c: 40000c00 .word 0x40000c00
  35222. 800f350: 40010400 .word 0x40010400
  35223. 800f354: 40001800 .word 0x40001800
  35224. 800f358: 40014000 .word 0x40014000
  35225. 800f35c: 00010007 .word 0x00010007
  35226. 0800f360 <HAL_TIM_IRQHandler>:
  35227. * @brief This function handles TIM interrupts requests.
  35228. * @param htim TIM handle
  35229. * @retval None
  35230. */
  35231. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  35232. {
  35233. 800f360: b580 push {r7, lr}
  35234. 800f362: b084 sub sp, #16
  35235. 800f364: af00 add r7, sp, #0
  35236. 800f366: 6078 str r0, [r7, #4]
  35237. uint32_t itsource = htim->Instance->DIER;
  35238. 800f368: 687b ldr r3, [r7, #4]
  35239. 800f36a: 681b ldr r3, [r3, #0]
  35240. 800f36c: 68db ldr r3, [r3, #12]
  35241. 800f36e: 60fb str r3, [r7, #12]
  35242. uint32_t itflag = htim->Instance->SR;
  35243. 800f370: 687b ldr r3, [r7, #4]
  35244. 800f372: 681b ldr r3, [r3, #0]
  35245. 800f374: 691b ldr r3, [r3, #16]
  35246. 800f376: 60bb str r3, [r7, #8]
  35247. /* Capture compare 1 event */
  35248. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  35249. 800f378: 68bb ldr r3, [r7, #8]
  35250. 800f37a: f003 0302 and.w r3, r3, #2
  35251. 800f37e: 2b00 cmp r3, #0
  35252. 800f380: d020 beq.n 800f3c4 <HAL_TIM_IRQHandler+0x64>
  35253. {
  35254. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  35255. 800f382: 68fb ldr r3, [r7, #12]
  35256. 800f384: f003 0302 and.w r3, r3, #2
  35257. 800f388: 2b00 cmp r3, #0
  35258. 800f38a: d01b beq.n 800f3c4 <HAL_TIM_IRQHandler+0x64>
  35259. {
  35260. {
  35261. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  35262. 800f38c: 687b ldr r3, [r7, #4]
  35263. 800f38e: 681b ldr r3, [r3, #0]
  35264. 800f390: f06f 0202 mvn.w r2, #2
  35265. 800f394: 611a str r2, [r3, #16]
  35266. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  35267. 800f396: 687b ldr r3, [r7, #4]
  35268. 800f398: 2201 movs r2, #1
  35269. 800f39a: 771a strb r2, [r3, #28]
  35270. /* Input capture event */
  35271. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  35272. 800f39c: 687b ldr r3, [r7, #4]
  35273. 800f39e: 681b ldr r3, [r3, #0]
  35274. 800f3a0: 699b ldr r3, [r3, #24]
  35275. 800f3a2: f003 0303 and.w r3, r3, #3
  35276. 800f3a6: 2b00 cmp r3, #0
  35277. 800f3a8: d003 beq.n 800f3b2 <HAL_TIM_IRQHandler+0x52>
  35278. {
  35279. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35280. htim->IC_CaptureCallback(htim);
  35281. #else
  35282. HAL_TIM_IC_CaptureCallback(htim);
  35283. 800f3aa: 6878 ldr r0, [r7, #4]
  35284. 800f3ac: f7f2 fade bl 800196c <HAL_TIM_IC_CaptureCallback>
  35285. 800f3b0: e005 b.n 800f3be <HAL_TIM_IRQHandler+0x5e>
  35286. {
  35287. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35288. htim->OC_DelayElapsedCallback(htim);
  35289. htim->PWM_PulseFinishedCallback(htim);
  35290. #else
  35291. HAL_TIM_OC_DelayElapsedCallback(htim);
  35292. 800f3b2: 6878 ldr r0, [r7, #4]
  35293. 800f3b4: f000 fbc8 bl 800fb48 <HAL_TIM_OC_DelayElapsedCallback>
  35294. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35295. 800f3b8: 6878 ldr r0, [r7, #4]
  35296. 800f3ba: f000 fbcf bl 800fb5c <HAL_TIM_PWM_PulseFinishedCallback>
  35297. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35298. }
  35299. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35300. 800f3be: 687b ldr r3, [r7, #4]
  35301. 800f3c0: 2200 movs r2, #0
  35302. 800f3c2: 771a strb r2, [r3, #28]
  35303. }
  35304. }
  35305. }
  35306. /* Capture compare 2 event */
  35307. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  35308. 800f3c4: 68bb ldr r3, [r7, #8]
  35309. 800f3c6: f003 0304 and.w r3, r3, #4
  35310. 800f3ca: 2b00 cmp r3, #0
  35311. 800f3cc: d020 beq.n 800f410 <HAL_TIM_IRQHandler+0xb0>
  35312. {
  35313. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  35314. 800f3ce: 68fb ldr r3, [r7, #12]
  35315. 800f3d0: f003 0304 and.w r3, r3, #4
  35316. 800f3d4: 2b00 cmp r3, #0
  35317. 800f3d6: d01b beq.n 800f410 <HAL_TIM_IRQHandler+0xb0>
  35318. {
  35319. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  35320. 800f3d8: 687b ldr r3, [r7, #4]
  35321. 800f3da: 681b ldr r3, [r3, #0]
  35322. 800f3dc: f06f 0204 mvn.w r2, #4
  35323. 800f3e0: 611a str r2, [r3, #16]
  35324. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  35325. 800f3e2: 687b ldr r3, [r7, #4]
  35326. 800f3e4: 2202 movs r2, #2
  35327. 800f3e6: 771a strb r2, [r3, #28]
  35328. /* Input capture event */
  35329. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  35330. 800f3e8: 687b ldr r3, [r7, #4]
  35331. 800f3ea: 681b ldr r3, [r3, #0]
  35332. 800f3ec: 699b ldr r3, [r3, #24]
  35333. 800f3ee: f403 7340 and.w r3, r3, #768 @ 0x300
  35334. 800f3f2: 2b00 cmp r3, #0
  35335. 800f3f4: d003 beq.n 800f3fe <HAL_TIM_IRQHandler+0x9e>
  35336. {
  35337. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35338. htim->IC_CaptureCallback(htim);
  35339. #else
  35340. HAL_TIM_IC_CaptureCallback(htim);
  35341. 800f3f6: 6878 ldr r0, [r7, #4]
  35342. 800f3f8: f7f2 fab8 bl 800196c <HAL_TIM_IC_CaptureCallback>
  35343. 800f3fc: e005 b.n 800f40a <HAL_TIM_IRQHandler+0xaa>
  35344. {
  35345. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35346. htim->OC_DelayElapsedCallback(htim);
  35347. htim->PWM_PulseFinishedCallback(htim);
  35348. #else
  35349. HAL_TIM_OC_DelayElapsedCallback(htim);
  35350. 800f3fe: 6878 ldr r0, [r7, #4]
  35351. 800f400: f000 fba2 bl 800fb48 <HAL_TIM_OC_DelayElapsedCallback>
  35352. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35353. 800f404: 6878 ldr r0, [r7, #4]
  35354. 800f406: f000 fba9 bl 800fb5c <HAL_TIM_PWM_PulseFinishedCallback>
  35355. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35356. }
  35357. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35358. 800f40a: 687b ldr r3, [r7, #4]
  35359. 800f40c: 2200 movs r2, #0
  35360. 800f40e: 771a strb r2, [r3, #28]
  35361. }
  35362. }
  35363. /* Capture compare 3 event */
  35364. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  35365. 800f410: 68bb ldr r3, [r7, #8]
  35366. 800f412: f003 0308 and.w r3, r3, #8
  35367. 800f416: 2b00 cmp r3, #0
  35368. 800f418: d020 beq.n 800f45c <HAL_TIM_IRQHandler+0xfc>
  35369. {
  35370. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  35371. 800f41a: 68fb ldr r3, [r7, #12]
  35372. 800f41c: f003 0308 and.w r3, r3, #8
  35373. 800f420: 2b00 cmp r3, #0
  35374. 800f422: d01b beq.n 800f45c <HAL_TIM_IRQHandler+0xfc>
  35375. {
  35376. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  35377. 800f424: 687b ldr r3, [r7, #4]
  35378. 800f426: 681b ldr r3, [r3, #0]
  35379. 800f428: f06f 0208 mvn.w r2, #8
  35380. 800f42c: 611a str r2, [r3, #16]
  35381. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  35382. 800f42e: 687b ldr r3, [r7, #4]
  35383. 800f430: 2204 movs r2, #4
  35384. 800f432: 771a strb r2, [r3, #28]
  35385. /* Input capture event */
  35386. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  35387. 800f434: 687b ldr r3, [r7, #4]
  35388. 800f436: 681b ldr r3, [r3, #0]
  35389. 800f438: 69db ldr r3, [r3, #28]
  35390. 800f43a: f003 0303 and.w r3, r3, #3
  35391. 800f43e: 2b00 cmp r3, #0
  35392. 800f440: d003 beq.n 800f44a <HAL_TIM_IRQHandler+0xea>
  35393. {
  35394. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35395. htim->IC_CaptureCallback(htim);
  35396. #else
  35397. HAL_TIM_IC_CaptureCallback(htim);
  35398. 800f442: 6878 ldr r0, [r7, #4]
  35399. 800f444: f7f2 fa92 bl 800196c <HAL_TIM_IC_CaptureCallback>
  35400. 800f448: e005 b.n 800f456 <HAL_TIM_IRQHandler+0xf6>
  35401. {
  35402. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35403. htim->OC_DelayElapsedCallback(htim);
  35404. htim->PWM_PulseFinishedCallback(htim);
  35405. #else
  35406. HAL_TIM_OC_DelayElapsedCallback(htim);
  35407. 800f44a: 6878 ldr r0, [r7, #4]
  35408. 800f44c: f000 fb7c bl 800fb48 <HAL_TIM_OC_DelayElapsedCallback>
  35409. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35410. 800f450: 6878 ldr r0, [r7, #4]
  35411. 800f452: f000 fb83 bl 800fb5c <HAL_TIM_PWM_PulseFinishedCallback>
  35412. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35413. }
  35414. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35415. 800f456: 687b ldr r3, [r7, #4]
  35416. 800f458: 2200 movs r2, #0
  35417. 800f45a: 771a strb r2, [r3, #28]
  35418. }
  35419. }
  35420. /* Capture compare 4 event */
  35421. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  35422. 800f45c: 68bb ldr r3, [r7, #8]
  35423. 800f45e: f003 0310 and.w r3, r3, #16
  35424. 800f462: 2b00 cmp r3, #0
  35425. 800f464: d020 beq.n 800f4a8 <HAL_TIM_IRQHandler+0x148>
  35426. {
  35427. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  35428. 800f466: 68fb ldr r3, [r7, #12]
  35429. 800f468: f003 0310 and.w r3, r3, #16
  35430. 800f46c: 2b00 cmp r3, #0
  35431. 800f46e: d01b beq.n 800f4a8 <HAL_TIM_IRQHandler+0x148>
  35432. {
  35433. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  35434. 800f470: 687b ldr r3, [r7, #4]
  35435. 800f472: 681b ldr r3, [r3, #0]
  35436. 800f474: f06f 0210 mvn.w r2, #16
  35437. 800f478: 611a str r2, [r3, #16]
  35438. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  35439. 800f47a: 687b ldr r3, [r7, #4]
  35440. 800f47c: 2208 movs r2, #8
  35441. 800f47e: 771a strb r2, [r3, #28]
  35442. /* Input capture event */
  35443. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  35444. 800f480: 687b ldr r3, [r7, #4]
  35445. 800f482: 681b ldr r3, [r3, #0]
  35446. 800f484: 69db ldr r3, [r3, #28]
  35447. 800f486: f403 7340 and.w r3, r3, #768 @ 0x300
  35448. 800f48a: 2b00 cmp r3, #0
  35449. 800f48c: d003 beq.n 800f496 <HAL_TIM_IRQHandler+0x136>
  35450. {
  35451. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35452. htim->IC_CaptureCallback(htim);
  35453. #else
  35454. HAL_TIM_IC_CaptureCallback(htim);
  35455. 800f48e: 6878 ldr r0, [r7, #4]
  35456. 800f490: f7f2 fa6c bl 800196c <HAL_TIM_IC_CaptureCallback>
  35457. 800f494: e005 b.n 800f4a2 <HAL_TIM_IRQHandler+0x142>
  35458. {
  35459. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35460. htim->OC_DelayElapsedCallback(htim);
  35461. htim->PWM_PulseFinishedCallback(htim);
  35462. #else
  35463. HAL_TIM_OC_DelayElapsedCallback(htim);
  35464. 800f496: 6878 ldr r0, [r7, #4]
  35465. 800f498: f000 fb56 bl 800fb48 <HAL_TIM_OC_DelayElapsedCallback>
  35466. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35467. 800f49c: 6878 ldr r0, [r7, #4]
  35468. 800f49e: f000 fb5d bl 800fb5c <HAL_TIM_PWM_PulseFinishedCallback>
  35469. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35470. }
  35471. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35472. 800f4a2: 687b ldr r3, [r7, #4]
  35473. 800f4a4: 2200 movs r2, #0
  35474. 800f4a6: 771a strb r2, [r3, #28]
  35475. }
  35476. }
  35477. /* TIM Update event */
  35478. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  35479. 800f4a8: 68bb ldr r3, [r7, #8]
  35480. 800f4aa: f003 0301 and.w r3, r3, #1
  35481. 800f4ae: 2b00 cmp r3, #0
  35482. 800f4b0: d00c beq.n 800f4cc <HAL_TIM_IRQHandler+0x16c>
  35483. {
  35484. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  35485. 800f4b2: 68fb ldr r3, [r7, #12]
  35486. 800f4b4: f003 0301 and.w r3, r3, #1
  35487. 800f4b8: 2b00 cmp r3, #0
  35488. 800f4ba: d007 beq.n 800f4cc <HAL_TIM_IRQHandler+0x16c>
  35489. {
  35490. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  35491. 800f4bc: 687b ldr r3, [r7, #4]
  35492. 800f4be: 681b ldr r3, [r3, #0]
  35493. 800f4c0: f06f 0201 mvn.w r2, #1
  35494. 800f4c4: 611a str r2, [r3, #16]
  35495. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35496. htim->PeriodElapsedCallback(htim);
  35497. #else
  35498. HAL_TIM_PeriodElapsedCallback(htim);
  35499. 800f4c6: 6878 ldr r0, [r7, #4]
  35500. 800f4c8: f7f2 fc5a bl 8001d80 <HAL_TIM_PeriodElapsedCallback>
  35501. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35502. }
  35503. }
  35504. /* TIM Break input event */
  35505. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  35506. 800f4cc: 68bb ldr r3, [r7, #8]
  35507. 800f4ce: f003 0380 and.w r3, r3, #128 @ 0x80
  35508. 800f4d2: 2b00 cmp r3, #0
  35509. 800f4d4: d104 bne.n 800f4e0 <HAL_TIM_IRQHandler+0x180>
  35510. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  35511. 800f4d6: 68bb ldr r3, [r7, #8]
  35512. 800f4d8: f403 5300 and.w r3, r3, #8192 @ 0x2000
  35513. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  35514. 800f4dc: 2b00 cmp r3, #0
  35515. 800f4de: d00c beq.n 800f4fa <HAL_TIM_IRQHandler+0x19a>
  35516. {
  35517. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  35518. 800f4e0: 68fb ldr r3, [r7, #12]
  35519. 800f4e2: f003 0380 and.w r3, r3, #128 @ 0x80
  35520. 800f4e6: 2b00 cmp r3, #0
  35521. 800f4e8: d007 beq.n 800f4fa <HAL_TIM_IRQHandler+0x19a>
  35522. {
  35523. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  35524. 800f4ea: 687b ldr r3, [r7, #4]
  35525. 800f4ec: 681b ldr r3, [r3, #0]
  35526. 800f4ee: f46f 5202 mvn.w r2, #8320 @ 0x2080
  35527. 800f4f2: 611a str r2, [r3, #16]
  35528. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35529. htim->BreakCallback(htim);
  35530. #else
  35531. HAL_TIMEx_BreakCallback(htim);
  35532. 800f4f4: 6878 ldr r0, [r7, #4]
  35533. 800f4f6: f001 f9ff bl 80108f8 <HAL_TIMEx_BreakCallback>
  35534. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35535. }
  35536. }
  35537. /* TIM Break2 input event */
  35538. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  35539. 800f4fa: 68bb ldr r3, [r7, #8]
  35540. 800f4fc: f403 7380 and.w r3, r3, #256 @ 0x100
  35541. 800f500: 2b00 cmp r3, #0
  35542. 800f502: d00c beq.n 800f51e <HAL_TIM_IRQHandler+0x1be>
  35543. {
  35544. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  35545. 800f504: 68fb ldr r3, [r7, #12]
  35546. 800f506: f003 0380 and.w r3, r3, #128 @ 0x80
  35547. 800f50a: 2b00 cmp r3, #0
  35548. 800f50c: d007 beq.n 800f51e <HAL_TIM_IRQHandler+0x1be>
  35549. {
  35550. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  35551. 800f50e: 687b ldr r3, [r7, #4]
  35552. 800f510: 681b ldr r3, [r3, #0]
  35553. 800f512: f46f 7280 mvn.w r2, #256 @ 0x100
  35554. 800f516: 611a str r2, [r3, #16]
  35555. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35556. htim->Break2Callback(htim);
  35557. #else
  35558. HAL_TIMEx_Break2Callback(htim);
  35559. 800f518: 6878 ldr r0, [r7, #4]
  35560. 800f51a: f001 f9f7 bl 801090c <HAL_TIMEx_Break2Callback>
  35561. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35562. }
  35563. }
  35564. /* TIM Trigger detection event */
  35565. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  35566. 800f51e: 68bb ldr r3, [r7, #8]
  35567. 800f520: f003 0340 and.w r3, r3, #64 @ 0x40
  35568. 800f524: 2b00 cmp r3, #0
  35569. 800f526: d00c beq.n 800f542 <HAL_TIM_IRQHandler+0x1e2>
  35570. {
  35571. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  35572. 800f528: 68fb ldr r3, [r7, #12]
  35573. 800f52a: f003 0340 and.w r3, r3, #64 @ 0x40
  35574. 800f52e: 2b00 cmp r3, #0
  35575. 800f530: d007 beq.n 800f542 <HAL_TIM_IRQHandler+0x1e2>
  35576. {
  35577. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  35578. 800f532: 687b ldr r3, [r7, #4]
  35579. 800f534: 681b ldr r3, [r3, #0]
  35580. 800f536: f06f 0240 mvn.w r2, #64 @ 0x40
  35581. 800f53a: 611a str r2, [r3, #16]
  35582. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35583. htim->TriggerCallback(htim);
  35584. #else
  35585. HAL_TIM_TriggerCallback(htim);
  35586. 800f53c: 6878 ldr r0, [r7, #4]
  35587. 800f53e: f000 fb17 bl 800fb70 <HAL_TIM_TriggerCallback>
  35588. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35589. }
  35590. }
  35591. /* TIM commutation event */
  35592. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  35593. 800f542: 68bb ldr r3, [r7, #8]
  35594. 800f544: f003 0320 and.w r3, r3, #32
  35595. 800f548: 2b00 cmp r3, #0
  35596. 800f54a: d00c beq.n 800f566 <HAL_TIM_IRQHandler+0x206>
  35597. {
  35598. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  35599. 800f54c: 68fb ldr r3, [r7, #12]
  35600. 800f54e: f003 0320 and.w r3, r3, #32
  35601. 800f552: 2b00 cmp r3, #0
  35602. 800f554: d007 beq.n 800f566 <HAL_TIM_IRQHandler+0x206>
  35603. {
  35604. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  35605. 800f556: 687b ldr r3, [r7, #4]
  35606. 800f558: 681b ldr r3, [r3, #0]
  35607. 800f55a: f06f 0220 mvn.w r2, #32
  35608. 800f55e: 611a str r2, [r3, #16]
  35609. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35610. htim->CommutationCallback(htim);
  35611. #else
  35612. HAL_TIMEx_CommutCallback(htim);
  35613. 800f560: 6878 ldr r0, [r7, #4]
  35614. 800f562: f001 f9bf bl 80108e4 <HAL_TIMEx_CommutCallback>
  35615. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35616. }
  35617. }
  35618. }
  35619. 800f566: bf00 nop
  35620. 800f568: 3710 adds r7, #16
  35621. 800f56a: 46bd mov sp, r7
  35622. 800f56c: bd80 pop {r7, pc}
  35623. 0800f56e <HAL_TIM_IC_ConfigChannel>:
  35624. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  35625. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  35626. * @retval HAL status
  35627. */
  35628. HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel)
  35629. {
  35630. 800f56e: b580 push {r7, lr}
  35631. 800f570: b086 sub sp, #24
  35632. 800f572: af00 add r7, sp, #0
  35633. 800f574: 60f8 str r0, [r7, #12]
  35634. 800f576: 60b9 str r1, [r7, #8]
  35635. 800f578: 607a str r2, [r7, #4]
  35636. HAL_StatusTypeDef status = HAL_OK;
  35637. 800f57a: 2300 movs r3, #0
  35638. 800f57c: 75fb strb r3, [r7, #23]
  35639. assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection));
  35640. assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler));
  35641. assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter));
  35642. /* Process Locked */
  35643. __HAL_LOCK(htim);
  35644. 800f57e: 68fb ldr r3, [r7, #12]
  35645. 800f580: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  35646. 800f584: 2b01 cmp r3, #1
  35647. 800f586: d101 bne.n 800f58c <HAL_TIM_IC_ConfigChannel+0x1e>
  35648. 800f588: 2302 movs r3, #2
  35649. 800f58a: e088 b.n 800f69e <HAL_TIM_IC_ConfigChannel+0x130>
  35650. 800f58c: 68fb ldr r3, [r7, #12]
  35651. 800f58e: 2201 movs r2, #1
  35652. 800f590: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35653. if (Channel == TIM_CHANNEL_1)
  35654. 800f594: 687b ldr r3, [r7, #4]
  35655. 800f596: 2b00 cmp r3, #0
  35656. 800f598: d11b bne.n 800f5d2 <HAL_TIM_IC_ConfigChannel+0x64>
  35657. {
  35658. /* TI1 Configuration */
  35659. TIM_TI1_SetConfig(htim->Instance,
  35660. 800f59a: 68fb ldr r3, [r7, #12]
  35661. 800f59c: 6818 ldr r0, [r3, #0]
  35662. sConfig->ICPolarity,
  35663. 800f59e: 68bb ldr r3, [r7, #8]
  35664. 800f5a0: 6819 ldr r1, [r3, #0]
  35665. sConfig->ICSelection,
  35666. 800f5a2: 68bb ldr r3, [r7, #8]
  35667. 800f5a4: 685a ldr r2, [r3, #4]
  35668. sConfig->ICFilter);
  35669. 800f5a6: 68bb ldr r3, [r7, #8]
  35670. 800f5a8: 68db ldr r3, [r3, #12]
  35671. TIM_TI1_SetConfig(htim->Instance,
  35672. 800f5aa: f000 fea1 bl 80102f0 <TIM_TI1_SetConfig>
  35673. /* Reset the IC1PSC Bits */
  35674. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC;
  35675. 800f5ae: 68fb ldr r3, [r7, #12]
  35676. 800f5b0: 681b ldr r3, [r3, #0]
  35677. 800f5b2: 699a ldr r2, [r3, #24]
  35678. 800f5b4: 68fb ldr r3, [r7, #12]
  35679. 800f5b6: 681b ldr r3, [r3, #0]
  35680. 800f5b8: f022 020c bic.w r2, r2, #12
  35681. 800f5bc: 619a str r2, [r3, #24]
  35682. /* Set the IC1PSC value */
  35683. htim->Instance->CCMR1 |= sConfig->ICPrescaler;
  35684. 800f5be: 68fb ldr r3, [r7, #12]
  35685. 800f5c0: 681b ldr r3, [r3, #0]
  35686. 800f5c2: 6999 ldr r1, [r3, #24]
  35687. 800f5c4: 68bb ldr r3, [r7, #8]
  35688. 800f5c6: 689a ldr r2, [r3, #8]
  35689. 800f5c8: 68fb ldr r3, [r7, #12]
  35690. 800f5ca: 681b ldr r3, [r3, #0]
  35691. 800f5cc: 430a orrs r2, r1
  35692. 800f5ce: 619a str r2, [r3, #24]
  35693. 800f5d0: e060 b.n 800f694 <HAL_TIM_IC_ConfigChannel+0x126>
  35694. }
  35695. else if (Channel == TIM_CHANNEL_2)
  35696. 800f5d2: 687b ldr r3, [r7, #4]
  35697. 800f5d4: 2b04 cmp r3, #4
  35698. 800f5d6: d11c bne.n 800f612 <HAL_TIM_IC_ConfigChannel+0xa4>
  35699. {
  35700. /* TI2 Configuration */
  35701. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  35702. TIM_TI2_SetConfig(htim->Instance,
  35703. 800f5d8: 68fb ldr r3, [r7, #12]
  35704. 800f5da: 6818 ldr r0, [r3, #0]
  35705. sConfig->ICPolarity,
  35706. 800f5dc: 68bb ldr r3, [r7, #8]
  35707. 800f5de: 6819 ldr r1, [r3, #0]
  35708. sConfig->ICSelection,
  35709. 800f5e0: 68bb ldr r3, [r7, #8]
  35710. 800f5e2: 685a ldr r2, [r3, #4]
  35711. sConfig->ICFilter);
  35712. 800f5e4: 68bb ldr r3, [r7, #8]
  35713. 800f5e6: 68db ldr r3, [r3, #12]
  35714. TIM_TI2_SetConfig(htim->Instance,
  35715. 800f5e8: f000 ff25 bl 8010436 <TIM_TI2_SetConfig>
  35716. /* Reset the IC2PSC Bits */
  35717. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC;
  35718. 800f5ec: 68fb ldr r3, [r7, #12]
  35719. 800f5ee: 681b ldr r3, [r3, #0]
  35720. 800f5f0: 699a ldr r2, [r3, #24]
  35721. 800f5f2: 68fb ldr r3, [r7, #12]
  35722. 800f5f4: 681b ldr r3, [r3, #0]
  35723. 800f5f6: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  35724. 800f5fa: 619a str r2, [r3, #24]
  35725. /* Set the IC2PSC value */
  35726. htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U);
  35727. 800f5fc: 68fb ldr r3, [r7, #12]
  35728. 800f5fe: 681b ldr r3, [r3, #0]
  35729. 800f600: 6999 ldr r1, [r3, #24]
  35730. 800f602: 68bb ldr r3, [r7, #8]
  35731. 800f604: 689b ldr r3, [r3, #8]
  35732. 800f606: 021a lsls r2, r3, #8
  35733. 800f608: 68fb ldr r3, [r7, #12]
  35734. 800f60a: 681b ldr r3, [r3, #0]
  35735. 800f60c: 430a orrs r2, r1
  35736. 800f60e: 619a str r2, [r3, #24]
  35737. 800f610: e040 b.n 800f694 <HAL_TIM_IC_ConfigChannel+0x126>
  35738. }
  35739. else if (Channel == TIM_CHANNEL_3)
  35740. 800f612: 687b ldr r3, [r7, #4]
  35741. 800f614: 2b08 cmp r3, #8
  35742. 800f616: d11b bne.n 800f650 <HAL_TIM_IC_ConfigChannel+0xe2>
  35743. {
  35744. /* TI3 Configuration */
  35745. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  35746. TIM_TI3_SetConfig(htim->Instance,
  35747. 800f618: 68fb ldr r3, [r7, #12]
  35748. 800f61a: 6818 ldr r0, [r3, #0]
  35749. sConfig->ICPolarity,
  35750. 800f61c: 68bb ldr r3, [r7, #8]
  35751. 800f61e: 6819 ldr r1, [r3, #0]
  35752. sConfig->ICSelection,
  35753. 800f620: 68bb ldr r3, [r7, #8]
  35754. 800f622: 685a ldr r2, [r3, #4]
  35755. sConfig->ICFilter);
  35756. 800f624: 68bb ldr r3, [r7, #8]
  35757. 800f626: 68db ldr r3, [r3, #12]
  35758. TIM_TI3_SetConfig(htim->Instance,
  35759. 800f628: f000 ff72 bl 8010510 <TIM_TI3_SetConfig>
  35760. /* Reset the IC3PSC Bits */
  35761. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC;
  35762. 800f62c: 68fb ldr r3, [r7, #12]
  35763. 800f62e: 681b ldr r3, [r3, #0]
  35764. 800f630: 69da ldr r2, [r3, #28]
  35765. 800f632: 68fb ldr r3, [r7, #12]
  35766. 800f634: 681b ldr r3, [r3, #0]
  35767. 800f636: f022 020c bic.w r2, r2, #12
  35768. 800f63a: 61da str r2, [r3, #28]
  35769. /* Set the IC3PSC value */
  35770. htim->Instance->CCMR2 |= sConfig->ICPrescaler;
  35771. 800f63c: 68fb ldr r3, [r7, #12]
  35772. 800f63e: 681b ldr r3, [r3, #0]
  35773. 800f640: 69d9 ldr r1, [r3, #28]
  35774. 800f642: 68bb ldr r3, [r7, #8]
  35775. 800f644: 689a ldr r2, [r3, #8]
  35776. 800f646: 68fb ldr r3, [r7, #12]
  35777. 800f648: 681b ldr r3, [r3, #0]
  35778. 800f64a: 430a orrs r2, r1
  35779. 800f64c: 61da str r2, [r3, #28]
  35780. 800f64e: e021 b.n 800f694 <HAL_TIM_IC_ConfigChannel+0x126>
  35781. }
  35782. else if (Channel == TIM_CHANNEL_4)
  35783. 800f650: 687b ldr r3, [r7, #4]
  35784. 800f652: 2b0c cmp r3, #12
  35785. 800f654: d11c bne.n 800f690 <HAL_TIM_IC_ConfigChannel+0x122>
  35786. {
  35787. /* TI4 Configuration */
  35788. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  35789. TIM_TI4_SetConfig(htim->Instance,
  35790. 800f656: 68fb ldr r3, [r7, #12]
  35791. 800f658: 6818 ldr r0, [r3, #0]
  35792. sConfig->ICPolarity,
  35793. 800f65a: 68bb ldr r3, [r7, #8]
  35794. 800f65c: 6819 ldr r1, [r3, #0]
  35795. sConfig->ICSelection,
  35796. 800f65e: 68bb ldr r3, [r7, #8]
  35797. 800f660: 685a ldr r2, [r3, #4]
  35798. sConfig->ICFilter);
  35799. 800f662: 68bb ldr r3, [r7, #8]
  35800. 800f664: 68db ldr r3, [r3, #12]
  35801. TIM_TI4_SetConfig(htim->Instance,
  35802. 800f666: f000 ff8f bl 8010588 <TIM_TI4_SetConfig>
  35803. /* Reset the IC4PSC Bits */
  35804. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC;
  35805. 800f66a: 68fb ldr r3, [r7, #12]
  35806. 800f66c: 681b ldr r3, [r3, #0]
  35807. 800f66e: 69da ldr r2, [r3, #28]
  35808. 800f670: 68fb ldr r3, [r7, #12]
  35809. 800f672: 681b ldr r3, [r3, #0]
  35810. 800f674: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  35811. 800f678: 61da str r2, [r3, #28]
  35812. /* Set the IC4PSC value */
  35813. htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U);
  35814. 800f67a: 68fb ldr r3, [r7, #12]
  35815. 800f67c: 681b ldr r3, [r3, #0]
  35816. 800f67e: 69d9 ldr r1, [r3, #28]
  35817. 800f680: 68bb ldr r3, [r7, #8]
  35818. 800f682: 689b ldr r3, [r3, #8]
  35819. 800f684: 021a lsls r2, r3, #8
  35820. 800f686: 68fb ldr r3, [r7, #12]
  35821. 800f688: 681b ldr r3, [r3, #0]
  35822. 800f68a: 430a orrs r2, r1
  35823. 800f68c: 61da str r2, [r3, #28]
  35824. 800f68e: e001 b.n 800f694 <HAL_TIM_IC_ConfigChannel+0x126>
  35825. }
  35826. else
  35827. {
  35828. status = HAL_ERROR;
  35829. 800f690: 2301 movs r3, #1
  35830. 800f692: 75fb strb r3, [r7, #23]
  35831. }
  35832. __HAL_UNLOCK(htim);
  35833. 800f694: 68fb ldr r3, [r7, #12]
  35834. 800f696: 2200 movs r2, #0
  35835. 800f698: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35836. return status;
  35837. 800f69c: 7dfb ldrb r3, [r7, #23]
  35838. }
  35839. 800f69e: 4618 mov r0, r3
  35840. 800f6a0: 3718 adds r7, #24
  35841. 800f6a2: 46bd mov sp, r7
  35842. 800f6a4: bd80 pop {r7, pc}
  35843. ...
  35844. 0800f6a8 <HAL_TIM_PWM_ConfigChannel>:
  35845. * @retval HAL status
  35846. */
  35847. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  35848. const TIM_OC_InitTypeDef *sConfig,
  35849. uint32_t Channel)
  35850. {
  35851. 800f6a8: b580 push {r7, lr}
  35852. 800f6aa: b086 sub sp, #24
  35853. 800f6ac: af00 add r7, sp, #0
  35854. 800f6ae: 60f8 str r0, [r7, #12]
  35855. 800f6b0: 60b9 str r1, [r7, #8]
  35856. 800f6b2: 607a str r2, [r7, #4]
  35857. HAL_StatusTypeDef status = HAL_OK;
  35858. 800f6b4: 2300 movs r3, #0
  35859. 800f6b6: 75fb strb r3, [r7, #23]
  35860. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  35861. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  35862. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  35863. /* Process Locked */
  35864. __HAL_LOCK(htim);
  35865. 800f6b8: 68fb ldr r3, [r7, #12]
  35866. 800f6ba: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  35867. 800f6be: 2b01 cmp r3, #1
  35868. 800f6c0: d101 bne.n 800f6c6 <HAL_TIM_PWM_ConfigChannel+0x1e>
  35869. 800f6c2: 2302 movs r3, #2
  35870. 800f6c4: e0ff b.n 800f8c6 <HAL_TIM_PWM_ConfigChannel+0x21e>
  35871. 800f6c6: 68fb ldr r3, [r7, #12]
  35872. 800f6c8: 2201 movs r2, #1
  35873. 800f6ca: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35874. switch (Channel)
  35875. 800f6ce: 687b ldr r3, [r7, #4]
  35876. 800f6d0: 2b14 cmp r3, #20
  35877. 800f6d2: f200 80f0 bhi.w 800f8b6 <HAL_TIM_PWM_ConfigChannel+0x20e>
  35878. 800f6d6: a201 add r2, pc, #4 @ (adr r2, 800f6dc <HAL_TIM_PWM_ConfigChannel+0x34>)
  35879. 800f6d8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  35880. 800f6dc: 0800f731 .word 0x0800f731
  35881. 800f6e0: 0800f8b7 .word 0x0800f8b7
  35882. 800f6e4: 0800f8b7 .word 0x0800f8b7
  35883. 800f6e8: 0800f8b7 .word 0x0800f8b7
  35884. 800f6ec: 0800f771 .word 0x0800f771
  35885. 800f6f0: 0800f8b7 .word 0x0800f8b7
  35886. 800f6f4: 0800f8b7 .word 0x0800f8b7
  35887. 800f6f8: 0800f8b7 .word 0x0800f8b7
  35888. 800f6fc: 0800f7b3 .word 0x0800f7b3
  35889. 800f700: 0800f8b7 .word 0x0800f8b7
  35890. 800f704: 0800f8b7 .word 0x0800f8b7
  35891. 800f708: 0800f8b7 .word 0x0800f8b7
  35892. 800f70c: 0800f7f3 .word 0x0800f7f3
  35893. 800f710: 0800f8b7 .word 0x0800f8b7
  35894. 800f714: 0800f8b7 .word 0x0800f8b7
  35895. 800f718: 0800f8b7 .word 0x0800f8b7
  35896. 800f71c: 0800f835 .word 0x0800f835
  35897. 800f720: 0800f8b7 .word 0x0800f8b7
  35898. 800f724: 0800f8b7 .word 0x0800f8b7
  35899. 800f728: 0800f8b7 .word 0x0800f8b7
  35900. 800f72c: 0800f875 .word 0x0800f875
  35901. {
  35902. /* Check the parameters */
  35903. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  35904. /* Configure the Channel 1 in PWM mode */
  35905. TIM_OC1_SetConfig(htim->Instance, sConfig);
  35906. 800f730: 68fb ldr r3, [r7, #12]
  35907. 800f732: 681b ldr r3, [r3, #0]
  35908. 800f734: 68b9 ldr r1, [r7, #8]
  35909. 800f736: 4618 mov r0, r3
  35910. 800f738: f000 fb04 bl 800fd44 <TIM_OC1_SetConfig>
  35911. /* Set the Preload enable bit for channel1 */
  35912. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  35913. 800f73c: 68fb ldr r3, [r7, #12]
  35914. 800f73e: 681b ldr r3, [r3, #0]
  35915. 800f740: 699a ldr r2, [r3, #24]
  35916. 800f742: 68fb ldr r3, [r7, #12]
  35917. 800f744: 681b ldr r3, [r3, #0]
  35918. 800f746: f042 0208 orr.w r2, r2, #8
  35919. 800f74a: 619a str r2, [r3, #24]
  35920. /* Configure the Output Fast mode */
  35921. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  35922. 800f74c: 68fb ldr r3, [r7, #12]
  35923. 800f74e: 681b ldr r3, [r3, #0]
  35924. 800f750: 699a ldr r2, [r3, #24]
  35925. 800f752: 68fb ldr r3, [r7, #12]
  35926. 800f754: 681b ldr r3, [r3, #0]
  35927. 800f756: f022 0204 bic.w r2, r2, #4
  35928. 800f75a: 619a str r2, [r3, #24]
  35929. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  35930. 800f75c: 68fb ldr r3, [r7, #12]
  35931. 800f75e: 681b ldr r3, [r3, #0]
  35932. 800f760: 6999 ldr r1, [r3, #24]
  35933. 800f762: 68bb ldr r3, [r7, #8]
  35934. 800f764: 691a ldr r2, [r3, #16]
  35935. 800f766: 68fb ldr r3, [r7, #12]
  35936. 800f768: 681b ldr r3, [r3, #0]
  35937. 800f76a: 430a orrs r2, r1
  35938. 800f76c: 619a str r2, [r3, #24]
  35939. break;
  35940. 800f76e: e0a5 b.n 800f8bc <HAL_TIM_PWM_ConfigChannel+0x214>
  35941. {
  35942. /* Check the parameters */
  35943. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  35944. /* Configure the Channel 2 in PWM mode */
  35945. TIM_OC2_SetConfig(htim->Instance, sConfig);
  35946. 800f770: 68fb ldr r3, [r7, #12]
  35947. 800f772: 681b ldr r3, [r3, #0]
  35948. 800f774: 68b9 ldr r1, [r7, #8]
  35949. 800f776: 4618 mov r0, r3
  35950. 800f778: f000 fb74 bl 800fe64 <TIM_OC2_SetConfig>
  35951. /* Set the Preload enable bit for channel2 */
  35952. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  35953. 800f77c: 68fb ldr r3, [r7, #12]
  35954. 800f77e: 681b ldr r3, [r3, #0]
  35955. 800f780: 699a ldr r2, [r3, #24]
  35956. 800f782: 68fb ldr r3, [r7, #12]
  35957. 800f784: 681b ldr r3, [r3, #0]
  35958. 800f786: f442 6200 orr.w r2, r2, #2048 @ 0x800
  35959. 800f78a: 619a str r2, [r3, #24]
  35960. /* Configure the Output Fast mode */
  35961. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  35962. 800f78c: 68fb ldr r3, [r7, #12]
  35963. 800f78e: 681b ldr r3, [r3, #0]
  35964. 800f790: 699a ldr r2, [r3, #24]
  35965. 800f792: 68fb ldr r3, [r7, #12]
  35966. 800f794: 681b ldr r3, [r3, #0]
  35967. 800f796: f422 6280 bic.w r2, r2, #1024 @ 0x400
  35968. 800f79a: 619a str r2, [r3, #24]
  35969. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  35970. 800f79c: 68fb ldr r3, [r7, #12]
  35971. 800f79e: 681b ldr r3, [r3, #0]
  35972. 800f7a0: 6999 ldr r1, [r3, #24]
  35973. 800f7a2: 68bb ldr r3, [r7, #8]
  35974. 800f7a4: 691b ldr r3, [r3, #16]
  35975. 800f7a6: 021a lsls r2, r3, #8
  35976. 800f7a8: 68fb ldr r3, [r7, #12]
  35977. 800f7aa: 681b ldr r3, [r3, #0]
  35978. 800f7ac: 430a orrs r2, r1
  35979. 800f7ae: 619a str r2, [r3, #24]
  35980. break;
  35981. 800f7b0: e084 b.n 800f8bc <HAL_TIM_PWM_ConfigChannel+0x214>
  35982. {
  35983. /* Check the parameters */
  35984. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  35985. /* Configure the Channel 3 in PWM mode */
  35986. TIM_OC3_SetConfig(htim->Instance, sConfig);
  35987. 800f7b2: 68fb ldr r3, [r7, #12]
  35988. 800f7b4: 681b ldr r3, [r3, #0]
  35989. 800f7b6: 68b9 ldr r1, [r7, #8]
  35990. 800f7b8: 4618 mov r0, r3
  35991. 800f7ba: f000 fbdd bl 800ff78 <TIM_OC3_SetConfig>
  35992. /* Set the Preload enable bit for channel3 */
  35993. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  35994. 800f7be: 68fb ldr r3, [r7, #12]
  35995. 800f7c0: 681b ldr r3, [r3, #0]
  35996. 800f7c2: 69da ldr r2, [r3, #28]
  35997. 800f7c4: 68fb ldr r3, [r7, #12]
  35998. 800f7c6: 681b ldr r3, [r3, #0]
  35999. 800f7c8: f042 0208 orr.w r2, r2, #8
  36000. 800f7cc: 61da str r2, [r3, #28]
  36001. /* Configure the Output Fast mode */
  36002. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  36003. 800f7ce: 68fb ldr r3, [r7, #12]
  36004. 800f7d0: 681b ldr r3, [r3, #0]
  36005. 800f7d2: 69da ldr r2, [r3, #28]
  36006. 800f7d4: 68fb ldr r3, [r7, #12]
  36007. 800f7d6: 681b ldr r3, [r3, #0]
  36008. 800f7d8: f022 0204 bic.w r2, r2, #4
  36009. 800f7dc: 61da str r2, [r3, #28]
  36010. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  36011. 800f7de: 68fb ldr r3, [r7, #12]
  36012. 800f7e0: 681b ldr r3, [r3, #0]
  36013. 800f7e2: 69d9 ldr r1, [r3, #28]
  36014. 800f7e4: 68bb ldr r3, [r7, #8]
  36015. 800f7e6: 691a ldr r2, [r3, #16]
  36016. 800f7e8: 68fb ldr r3, [r7, #12]
  36017. 800f7ea: 681b ldr r3, [r3, #0]
  36018. 800f7ec: 430a orrs r2, r1
  36019. 800f7ee: 61da str r2, [r3, #28]
  36020. break;
  36021. 800f7f0: e064 b.n 800f8bc <HAL_TIM_PWM_ConfigChannel+0x214>
  36022. {
  36023. /* Check the parameters */
  36024. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  36025. /* Configure the Channel 4 in PWM mode */
  36026. TIM_OC4_SetConfig(htim->Instance, sConfig);
  36027. 800f7f2: 68fb ldr r3, [r7, #12]
  36028. 800f7f4: 681b ldr r3, [r3, #0]
  36029. 800f7f6: 68b9 ldr r1, [r7, #8]
  36030. 800f7f8: 4618 mov r0, r3
  36031. 800f7fa: f000 fc45 bl 8010088 <TIM_OC4_SetConfig>
  36032. /* Set the Preload enable bit for channel4 */
  36033. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  36034. 800f7fe: 68fb ldr r3, [r7, #12]
  36035. 800f800: 681b ldr r3, [r3, #0]
  36036. 800f802: 69da ldr r2, [r3, #28]
  36037. 800f804: 68fb ldr r3, [r7, #12]
  36038. 800f806: 681b ldr r3, [r3, #0]
  36039. 800f808: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36040. 800f80c: 61da str r2, [r3, #28]
  36041. /* Configure the Output Fast mode */
  36042. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  36043. 800f80e: 68fb ldr r3, [r7, #12]
  36044. 800f810: 681b ldr r3, [r3, #0]
  36045. 800f812: 69da ldr r2, [r3, #28]
  36046. 800f814: 68fb ldr r3, [r7, #12]
  36047. 800f816: 681b ldr r3, [r3, #0]
  36048. 800f818: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36049. 800f81c: 61da str r2, [r3, #28]
  36050. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  36051. 800f81e: 68fb ldr r3, [r7, #12]
  36052. 800f820: 681b ldr r3, [r3, #0]
  36053. 800f822: 69d9 ldr r1, [r3, #28]
  36054. 800f824: 68bb ldr r3, [r7, #8]
  36055. 800f826: 691b ldr r3, [r3, #16]
  36056. 800f828: 021a lsls r2, r3, #8
  36057. 800f82a: 68fb ldr r3, [r7, #12]
  36058. 800f82c: 681b ldr r3, [r3, #0]
  36059. 800f82e: 430a orrs r2, r1
  36060. 800f830: 61da str r2, [r3, #28]
  36061. break;
  36062. 800f832: e043 b.n 800f8bc <HAL_TIM_PWM_ConfigChannel+0x214>
  36063. {
  36064. /* Check the parameters */
  36065. assert_param(IS_TIM_CC5_INSTANCE(htim->Instance));
  36066. /* Configure the Channel 5 in PWM mode */
  36067. TIM_OC5_SetConfig(htim->Instance, sConfig);
  36068. 800f834: 68fb ldr r3, [r7, #12]
  36069. 800f836: 681b ldr r3, [r3, #0]
  36070. 800f838: 68b9 ldr r1, [r7, #8]
  36071. 800f83a: 4618 mov r0, r3
  36072. 800f83c: f000 fc8e bl 801015c <TIM_OC5_SetConfig>
  36073. /* Set the Preload enable bit for channel5*/
  36074. htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE;
  36075. 800f840: 68fb ldr r3, [r7, #12]
  36076. 800f842: 681b ldr r3, [r3, #0]
  36077. 800f844: 6d5a ldr r2, [r3, #84] @ 0x54
  36078. 800f846: 68fb ldr r3, [r7, #12]
  36079. 800f848: 681b ldr r3, [r3, #0]
  36080. 800f84a: f042 0208 orr.w r2, r2, #8
  36081. 800f84e: 655a str r2, [r3, #84] @ 0x54
  36082. /* Configure the Output Fast mode */
  36083. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE;
  36084. 800f850: 68fb ldr r3, [r7, #12]
  36085. 800f852: 681b ldr r3, [r3, #0]
  36086. 800f854: 6d5a ldr r2, [r3, #84] @ 0x54
  36087. 800f856: 68fb ldr r3, [r7, #12]
  36088. 800f858: 681b ldr r3, [r3, #0]
  36089. 800f85a: f022 0204 bic.w r2, r2, #4
  36090. 800f85e: 655a str r2, [r3, #84] @ 0x54
  36091. htim->Instance->CCMR3 |= sConfig->OCFastMode;
  36092. 800f860: 68fb ldr r3, [r7, #12]
  36093. 800f862: 681b ldr r3, [r3, #0]
  36094. 800f864: 6d59 ldr r1, [r3, #84] @ 0x54
  36095. 800f866: 68bb ldr r3, [r7, #8]
  36096. 800f868: 691a ldr r2, [r3, #16]
  36097. 800f86a: 68fb ldr r3, [r7, #12]
  36098. 800f86c: 681b ldr r3, [r3, #0]
  36099. 800f86e: 430a orrs r2, r1
  36100. 800f870: 655a str r2, [r3, #84] @ 0x54
  36101. break;
  36102. 800f872: e023 b.n 800f8bc <HAL_TIM_PWM_ConfigChannel+0x214>
  36103. {
  36104. /* Check the parameters */
  36105. assert_param(IS_TIM_CC6_INSTANCE(htim->Instance));
  36106. /* Configure the Channel 6 in PWM mode */
  36107. TIM_OC6_SetConfig(htim->Instance, sConfig);
  36108. 800f874: 68fb ldr r3, [r7, #12]
  36109. 800f876: 681b ldr r3, [r3, #0]
  36110. 800f878: 68b9 ldr r1, [r7, #8]
  36111. 800f87a: 4618 mov r0, r3
  36112. 800f87c: f000 fcd2 bl 8010224 <TIM_OC6_SetConfig>
  36113. /* Set the Preload enable bit for channel6 */
  36114. htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE;
  36115. 800f880: 68fb ldr r3, [r7, #12]
  36116. 800f882: 681b ldr r3, [r3, #0]
  36117. 800f884: 6d5a ldr r2, [r3, #84] @ 0x54
  36118. 800f886: 68fb ldr r3, [r7, #12]
  36119. 800f888: 681b ldr r3, [r3, #0]
  36120. 800f88a: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36121. 800f88e: 655a str r2, [r3, #84] @ 0x54
  36122. /* Configure the Output Fast mode */
  36123. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE;
  36124. 800f890: 68fb ldr r3, [r7, #12]
  36125. 800f892: 681b ldr r3, [r3, #0]
  36126. 800f894: 6d5a ldr r2, [r3, #84] @ 0x54
  36127. 800f896: 68fb ldr r3, [r7, #12]
  36128. 800f898: 681b ldr r3, [r3, #0]
  36129. 800f89a: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36130. 800f89e: 655a str r2, [r3, #84] @ 0x54
  36131. htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U;
  36132. 800f8a0: 68fb ldr r3, [r7, #12]
  36133. 800f8a2: 681b ldr r3, [r3, #0]
  36134. 800f8a4: 6d59 ldr r1, [r3, #84] @ 0x54
  36135. 800f8a6: 68bb ldr r3, [r7, #8]
  36136. 800f8a8: 691b ldr r3, [r3, #16]
  36137. 800f8aa: 021a lsls r2, r3, #8
  36138. 800f8ac: 68fb ldr r3, [r7, #12]
  36139. 800f8ae: 681b ldr r3, [r3, #0]
  36140. 800f8b0: 430a orrs r2, r1
  36141. 800f8b2: 655a str r2, [r3, #84] @ 0x54
  36142. break;
  36143. 800f8b4: e002 b.n 800f8bc <HAL_TIM_PWM_ConfigChannel+0x214>
  36144. }
  36145. default:
  36146. status = HAL_ERROR;
  36147. 800f8b6: 2301 movs r3, #1
  36148. 800f8b8: 75fb strb r3, [r7, #23]
  36149. break;
  36150. 800f8ba: bf00 nop
  36151. }
  36152. __HAL_UNLOCK(htim);
  36153. 800f8bc: 68fb ldr r3, [r7, #12]
  36154. 800f8be: 2200 movs r2, #0
  36155. 800f8c0: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36156. return status;
  36157. 800f8c4: 7dfb ldrb r3, [r7, #23]
  36158. }
  36159. 800f8c6: 4618 mov r0, r3
  36160. 800f8c8: 3718 adds r7, #24
  36161. 800f8ca: 46bd mov sp, r7
  36162. 800f8cc: bd80 pop {r7, pc}
  36163. 800f8ce: bf00 nop
  36164. 0800f8d0 <HAL_TIM_ConfigClockSource>:
  36165. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  36166. * contains the clock source information for the TIM peripheral.
  36167. * @retval HAL status
  36168. */
  36169. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
  36170. {
  36171. 800f8d0: b580 push {r7, lr}
  36172. 800f8d2: b084 sub sp, #16
  36173. 800f8d4: af00 add r7, sp, #0
  36174. 800f8d6: 6078 str r0, [r7, #4]
  36175. 800f8d8: 6039 str r1, [r7, #0]
  36176. HAL_StatusTypeDef status = HAL_OK;
  36177. 800f8da: 2300 movs r3, #0
  36178. 800f8dc: 73fb strb r3, [r7, #15]
  36179. uint32_t tmpsmcr;
  36180. /* Process Locked */
  36181. __HAL_LOCK(htim);
  36182. 800f8de: 687b ldr r3, [r7, #4]
  36183. 800f8e0: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  36184. 800f8e4: 2b01 cmp r3, #1
  36185. 800f8e6: d101 bne.n 800f8ec <HAL_TIM_ConfigClockSource+0x1c>
  36186. 800f8e8: 2302 movs r3, #2
  36187. 800f8ea: e0dc b.n 800faa6 <HAL_TIM_ConfigClockSource+0x1d6>
  36188. 800f8ec: 687b ldr r3, [r7, #4]
  36189. 800f8ee: 2201 movs r2, #1
  36190. 800f8f0: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36191. htim->State = HAL_TIM_STATE_BUSY;
  36192. 800f8f4: 687b ldr r3, [r7, #4]
  36193. 800f8f6: 2202 movs r2, #2
  36194. 800f8f8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36195. /* Check the parameters */
  36196. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  36197. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  36198. tmpsmcr = htim->Instance->SMCR;
  36199. 800f8fc: 687b ldr r3, [r7, #4]
  36200. 800f8fe: 681b ldr r3, [r3, #0]
  36201. 800f900: 689b ldr r3, [r3, #8]
  36202. 800f902: 60bb str r3, [r7, #8]
  36203. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  36204. 800f904: 68ba ldr r2, [r7, #8]
  36205. 800f906: 4b6a ldr r3, [pc, #424] @ (800fab0 <HAL_TIM_ConfigClockSource+0x1e0>)
  36206. 800f908: 4013 ands r3, r2
  36207. 800f90a: 60bb str r3, [r7, #8]
  36208. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  36209. 800f90c: 68bb ldr r3, [r7, #8]
  36210. 800f90e: f423 437f bic.w r3, r3, #65280 @ 0xff00
  36211. 800f912: 60bb str r3, [r7, #8]
  36212. htim->Instance->SMCR = tmpsmcr;
  36213. 800f914: 687b ldr r3, [r7, #4]
  36214. 800f916: 681b ldr r3, [r3, #0]
  36215. 800f918: 68ba ldr r2, [r7, #8]
  36216. 800f91a: 609a str r2, [r3, #8]
  36217. switch (sClockSourceConfig->ClockSource)
  36218. 800f91c: 683b ldr r3, [r7, #0]
  36219. 800f91e: 681b ldr r3, [r3, #0]
  36220. 800f920: 4a64 ldr r2, [pc, #400] @ (800fab4 <HAL_TIM_ConfigClockSource+0x1e4>)
  36221. 800f922: 4293 cmp r3, r2
  36222. 800f924: f000 80a9 beq.w 800fa7a <HAL_TIM_ConfigClockSource+0x1aa>
  36223. 800f928: 4a62 ldr r2, [pc, #392] @ (800fab4 <HAL_TIM_ConfigClockSource+0x1e4>)
  36224. 800f92a: 4293 cmp r3, r2
  36225. 800f92c: f200 80ae bhi.w 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36226. 800f930: 4a61 ldr r2, [pc, #388] @ (800fab8 <HAL_TIM_ConfigClockSource+0x1e8>)
  36227. 800f932: 4293 cmp r3, r2
  36228. 800f934: f000 80a1 beq.w 800fa7a <HAL_TIM_ConfigClockSource+0x1aa>
  36229. 800f938: 4a5f ldr r2, [pc, #380] @ (800fab8 <HAL_TIM_ConfigClockSource+0x1e8>)
  36230. 800f93a: 4293 cmp r3, r2
  36231. 800f93c: f200 80a6 bhi.w 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36232. 800f940: 4a5e ldr r2, [pc, #376] @ (800fabc <HAL_TIM_ConfigClockSource+0x1ec>)
  36233. 800f942: 4293 cmp r3, r2
  36234. 800f944: f000 8099 beq.w 800fa7a <HAL_TIM_ConfigClockSource+0x1aa>
  36235. 800f948: 4a5c ldr r2, [pc, #368] @ (800fabc <HAL_TIM_ConfigClockSource+0x1ec>)
  36236. 800f94a: 4293 cmp r3, r2
  36237. 800f94c: f200 809e bhi.w 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36238. 800f950: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  36239. 800f954: f000 8091 beq.w 800fa7a <HAL_TIM_ConfigClockSource+0x1aa>
  36240. 800f958: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  36241. 800f95c: f200 8096 bhi.w 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36242. 800f960: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  36243. 800f964: f000 8089 beq.w 800fa7a <HAL_TIM_ConfigClockSource+0x1aa>
  36244. 800f968: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  36245. 800f96c: f200 808e bhi.w 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36246. 800f970: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  36247. 800f974: d03e beq.n 800f9f4 <HAL_TIM_ConfigClockSource+0x124>
  36248. 800f976: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  36249. 800f97a: f200 8087 bhi.w 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36250. 800f97e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  36251. 800f982: f000 8086 beq.w 800fa92 <HAL_TIM_ConfigClockSource+0x1c2>
  36252. 800f986: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  36253. 800f98a: d87f bhi.n 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36254. 800f98c: 2b70 cmp r3, #112 @ 0x70
  36255. 800f98e: d01a beq.n 800f9c6 <HAL_TIM_ConfigClockSource+0xf6>
  36256. 800f990: 2b70 cmp r3, #112 @ 0x70
  36257. 800f992: d87b bhi.n 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36258. 800f994: 2b60 cmp r3, #96 @ 0x60
  36259. 800f996: d050 beq.n 800fa3a <HAL_TIM_ConfigClockSource+0x16a>
  36260. 800f998: 2b60 cmp r3, #96 @ 0x60
  36261. 800f99a: d877 bhi.n 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36262. 800f99c: 2b50 cmp r3, #80 @ 0x50
  36263. 800f99e: d03c beq.n 800fa1a <HAL_TIM_ConfigClockSource+0x14a>
  36264. 800f9a0: 2b50 cmp r3, #80 @ 0x50
  36265. 800f9a2: d873 bhi.n 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36266. 800f9a4: 2b40 cmp r3, #64 @ 0x40
  36267. 800f9a6: d058 beq.n 800fa5a <HAL_TIM_ConfigClockSource+0x18a>
  36268. 800f9a8: 2b40 cmp r3, #64 @ 0x40
  36269. 800f9aa: d86f bhi.n 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36270. 800f9ac: 2b30 cmp r3, #48 @ 0x30
  36271. 800f9ae: d064 beq.n 800fa7a <HAL_TIM_ConfigClockSource+0x1aa>
  36272. 800f9b0: 2b30 cmp r3, #48 @ 0x30
  36273. 800f9b2: d86b bhi.n 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36274. 800f9b4: 2b20 cmp r3, #32
  36275. 800f9b6: d060 beq.n 800fa7a <HAL_TIM_ConfigClockSource+0x1aa>
  36276. 800f9b8: 2b20 cmp r3, #32
  36277. 800f9ba: d867 bhi.n 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36278. 800f9bc: 2b00 cmp r3, #0
  36279. 800f9be: d05c beq.n 800fa7a <HAL_TIM_ConfigClockSource+0x1aa>
  36280. 800f9c0: 2b10 cmp r3, #16
  36281. 800f9c2: d05a beq.n 800fa7a <HAL_TIM_ConfigClockSource+0x1aa>
  36282. 800f9c4: e062 b.n 800fa8c <HAL_TIM_ConfigClockSource+0x1bc>
  36283. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  36284. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36285. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36286. /* Configure the ETR Clock source */
  36287. TIM_ETR_SetConfig(htim->Instance,
  36288. 800f9c6: 687b ldr r3, [r7, #4]
  36289. 800f9c8: 6818 ldr r0, [r3, #0]
  36290. sClockSourceConfig->ClockPrescaler,
  36291. 800f9ca: 683b ldr r3, [r7, #0]
  36292. 800f9cc: 6899 ldr r1, [r3, #8]
  36293. sClockSourceConfig->ClockPolarity,
  36294. 800f9ce: 683b ldr r3, [r7, #0]
  36295. 800f9d0: 685a ldr r2, [r3, #4]
  36296. sClockSourceConfig->ClockFilter);
  36297. 800f9d2: 683b ldr r3, [r7, #0]
  36298. 800f9d4: 68db ldr r3, [r3, #12]
  36299. TIM_ETR_SetConfig(htim->Instance,
  36300. 800f9d6: f000 fe33 bl 8010640 <TIM_ETR_SetConfig>
  36301. /* Select the External clock mode1 and the ETRF trigger */
  36302. tmpsmcr = htim->Instance->SMCR;
  36303. 800f9da: 687b ldr r3, [r7, #4]
  36304. 800f9dc: 681b ldr r3, [r3, #0]
  36305. 800f9de: 689b ldr r3, [r3, #8]
  36306. 800f9e0: 60bb str r3, [r7, #8]
  36307. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  36308. 800f9e2: 68bb ldr r3, [r7, #8]
  36309. 800f9e4: f043 0377 orr.w r3, r3, #119 @ 0x77
  36310. 800f9e8: 60bb str r3, [r7, #8]
  36311. /* Write to TIMx SMCR */
  36312. htim->Instance->SMCR = tmpsmcr;
  36313. 800f9ea: 687b ldr r3, [r7, #4]
  36314. 800f9ec: 681b ldr r3, [r3, #0]
  36315. 800f9ee: 68ba ldr r2, [r7, #8]
  36316. 800f9f0: 609a str r2, [r3, #8]
  36317. break;
  36318. 800f9f2: e04f b.n 800fa94 <HAL_TIM_ConfigClockSource+0x1c4>
  36319. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  36320. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36321. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36322. /* Configure the ETR Clock source */
  36323. TIM_ETR_SetConfig(htim->Instance,
  36324. 800f9f4: 687b ldr r3, [r7, #4]
  36325. 800f9f6: 6818 ldr r0, [r3, #0]
  36326. sClockSourceConfig->ClockPrescaler,
  36327. 800f9f8: 683b ldr r3, [r7, #0]
  36328. 800f9fa: 6899 ldr r1, [r3, #8]
  36329. sClockSourceConfig->ClockPolarity,
  36330. 800f9fc: 683b ldr r3, [r7, #0]
  36331. 800f9fe: 685a ldr r2, [r3, #4]
  36332. sClockSourceConfig->ClockFilter);
  36333. 800fa00: 683b ldr r3, [r7, #0]
  36334. 800fa02: 68db ldr r3, [r3, #12]
  36335. TIM_ETR_SetConfig(htim->Instance,
  36336. 800fa04: f000 fe1c bl 8010640 <TIM_ETR_SetConfig>
  36337. /* Enable the External clock mode2 */
  36338. htim->Instance->SMCR |= TIM_SMCR_ECE;
  36339. 800fa08: 687b ldr r3, [r7, #4]
  36340. 800fa0a: 681b ldr r3, [r3, #0]
  36341. 800fa0c: 689a ldr r2, [r3, #8]
  36342. 800fa0e: 687b ldr r3, [r7, #4]
  36343. 800fa10: 681b ldr r3, [r3, #0]
  36344. 800fa12: f442 4280 orr.w r2, r2, #16384 @ 0x4000
  36345. 800fa16: 609a str r2, [r3, #8]
  36346. break;
  36347. 800fa18: e03c b.n 800fa94 <HAL_TIM_ConfigClockSource+0x1c4>
  36348. /* Check TI1 input conditioning related parameters */
  36349. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36350. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36351. TIM_TI1_ConfigInputStage(htim->Instance,
  36352. 800fa1a: 687b ldr r3, [r7, #4]
  36353. 800fa1c: 6818 ldr r0, [r3, #0]
  36354. sClockSourceConfig->ClockPolarity,
  36355. 800fa1e: 683b ldr r3, [r7, #0]
  36356. 800fa20: 6859 ldr r1, [r3, #4]
  36357. sClockSourceConfig->ClockFilter);
  36358. 800fa22: 683b ldr r3, [r7, #0]
  36359. 800fa24: 68db ldr r3, [r3, #12]
  36360. TIM_TI1_ConfigInputStage(htim->Instance,
  36361. 800fa26: 461a mov r2, r3
  36362. 800fa28: f000 fcd6 bl 80103d8 <TIM_TI1_ConfigInputStage>
  36363. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  36364. 800fa2c: 687b ldr r3, [r7, #4]
  36365. 800fa2e: 681b ldr r3, [r3, #0]
  36366. 800fa30: 2150 movs r1, #80 @ 0x50
  36367. 800fa32: 4618 mov r0, r3
  36368. 800fa34: f000 fde6 bl 8010604 <TIM_ITRx_SetConfig>
  36369. break;
  36370. 800fa38: e02c b.n 800fa94 <HAL_TIM_ConfigClockSource+0x1c4>
  36371. /* Check TI2 input conditioning related parameters */
  36372. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36373. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36374. TIM_TI2_ConfigInputStage(htim->Instance,
  36375. 800fa3a: 687b ldr r3, [r7, #4]
  36376. 800fa3c: 6818 ldr r0, [r3, #0]
  36377. sClockSourceConfig->ClockPolarity,
  36378. 800fa3e: 683b ldr r3, [r7, #0]
  36379. 800fa40: 6859 ldr r1, [r3, #4]
  36380. sClockSourceConfig->ClockFilter);
  36381. 800fa42: 683b ldr r3, [r7, #0]
  36382. 800fa44: 68db ldr r3, [r3, #12]
  36383. TIM_TI2_ConfigInputStage(htim->Instance,
  36384. 800fa46: 461a mov r2, r3
  36385. 800fa48: f000 fd32 bl 80104b0 <TIM_TI2_ConfigInputStage>
  36386. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  36387. 800fa4c: 687b ldr r3, [r7, #4]
  36388. 800fa4e: 681b ldr r3, [r3, #0]
  36389. 800fa50: 2160 movs r1, #96 @ 0x60
  36390. 800fa52: 4618 mov r0, r3
  36391. 800fa54: f000 fdd6 bl 8010604 <TIM_ITRx_SetConfig>
  36392. break;
  36393. 800fa58: e01c b.n 800fa94 <HAL_TIM_ConfigClockSource+0x1c4>
  36394. /* Check TI1 input conditioning related parameters */
  36395. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36396. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36397. TIM_TI1_ConfigInputStage(htim->Instance,
  36398. 800fa5a: 687b ldr r3, [r7, #4]
  36399. 800fa5c: 6818 ldr r0, [r3, #0]
  36400. sClockSourceConfig->ClockPolarity,
  36401. 800fa5e: 683b ldr r3, [r7, #0]
  36402. 800fa60: 6859 ldr r1, [r3, #4]
  36403. sClockSourceConfig->ClockFilter);
  36404. 800fa62: 683b ldr r3, [r7, #0]
  36405. 800fa64: 68db ldr r3, [r3, #12]
  36406. TIM_TI1_ConfigInputStage(htim->Instance,
  36407. 800fa66: 461a mov r2, r3
  36408. 800fa68: f000 fcb6 bl 80103d8 <TIM_TI1_ConfigInputStage>
  36409. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  36410. 800fa6c: 687b ldr r3, [r7, #4]
  36411. 800fa6e: 681b ldr r3, [r3, #0]
  36412. 800fa70: 2140 movs r1, #64 @ 0x40
  36413. 800fa72: 4618 mov r0, r3
  36414. 800fa74: f000 fdc6 bl 8010604 <TIM_ITRx_SetConfig>
  36415. break;
  36416. 800fa78: e00c b.n 800fa94 <HAL_TIM_ConfigClockSource+0x1c4>
  36417. case TIM_CLOCKSOURCE_ITR8:
  36418. {
  36419. /* Check whether or not the timer instance supports internal trigger input */
  36420. assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
  36421. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  36422. 800fa7a: 687b ldr r3, [r7, #4]
  36423. 800fa7c: 681a ldr r2, [r3, #0]
  36424. 800fa7e: 683b ldr r3, [r7, #0]
  36425. 800fa80: 681b ldr r3, [r3, #0]
  36426. 800fa82: 4619 mov r1, r3
  36427. 800fa84: 4610 mov r0, r2
  36428. 800fa86: f000 fdbd bl 8010604 <TIM_ITRx_SetConfig>
  36429. break;
  36430. 800fa8a: e003 b.n 800fa94 <HAL_TIM_ConfigClockSource+0x1c4>
  36431. }
  36432. default:
  36433. status = HAL_ERROR;
  36434. 800fa8c: 2301 movs r3, #1
  36435. 800fa8e: 73fb strb r3, [r7, #15]
  36436. break;
  36437. 800fa90: e000 b.n 800fa94 <HAL_TIM_ConfigClockSource+0x1c4>
  36438. break;
  36439. 800fa92: bf00 nop
  36440. }
  36441. htim->State = HAL_TIM_STATE_READY;
  36442. 800fa94: 687b ldr r3, [r7, #4]
  36443. 800fa96: 2201 movs r2, #1
  36444. 800fa98: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36445. __HAL_UNLOCK(htim);
  36446. 800fa9c: 687b ldr r3, [r7, #4]
  36447. 800fa9e: 2200 movs r2, #0
  36448. 800faa0: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36449. return status;
  36450. 800faa4: 7bfb ldrb r3, [r7, #15]
  36451. }
  36452. 800faa6: 4618 mov r0, r3
  36453. 800faa8: 3710 adds r7, #16
  36454. 800faaa: 46bd mov sp, r7
  36455. 800faac: bd80 pop {r7, pc}
  36456. 800faae: bf00 nop
  36457. 800fab0: ffceff88 .word 0xffceff88
  36458. 800fab4: 00100040 .word 0x00100040
  36459. 800fab8: 00100030 .word 0x00100030
  36460. 800fabc: 00100020 .word 0x00100020
  36461. 0800fac0 <HAL_TIM_ReadCapturedValue>:
  36462. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  36463. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  36464. * @retval Captured value
  36465. */
  36466. uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel)
  36467. {
  36468. 800fac0: b480 push {r7}
  36469. 800fac2: b085 sub sp, #20
  36470. 800fac4: af00 add r7, sp, #0
  36471. 800fac6: 6078 str r0, [r7, #4]
  36472. 800fac8: 6039 str r1, [r7, #0]
  36473. uint32_t tmpreg = 0U;
  36474. 800faca: 2300 movs r3, #0
  36475. 800facc: 60fb str r3, [r7, #12]
  36476. switch (Channel)
  36477. 800face: 683b ldr r3, [r7, #0]
  36478. 800fad0: 2b0c cmp r3, #12
  36479. 800fad2: d831 bhi.n 800fb38 <HAL_TIM_ReadCapturedValue+0x78>
  36480. 800fad4: a201 add r2, pc, #4 @ (adr r2, 800fadc <HAL_TIM_ReadCapturedValue+0x1c>)
  36481. 800fad6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36482. 800fada: bf00 nop
  36483. 800fadc: 0800fb11 .word 0x0800fb11
  36484. 800fae0: 0800fb39 .word 0x0800fb39
  36485. 800fae4: 0800fb39 .word 0x0800fb39
  36486. 800fae8: 0800fb39 .word 0x0800fb39
  36487. 800faec: 0800fb1b .word 0x0800fb1b
  36488. 800faf0: 0800fb39 .word 0x0800fb39
  36489. 800faf4: 0800fb39 .word 0x0800fb39
  36490. 800faf8: 0800fb39 .word 0x0800fb39
  36491. 800fafc: 0800fb25 .word 0x0800fb25
  36492. 800fb00: 0800fb39 .word 0x0800fb39
  36493. 800fb04: 0800fb39 .word 0x0800fb39
  36494. 800fb08: 0800fb39 .word 0x0800fb39
  36495. 800fb0c: 0800fb2f .word 0x0800fb2f
  36496. {
  36497. /* Check the parameters */
  36498. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  36499. /* Return the capture 1 value */
  36500. tmpreg = htim->Instance->CCR1;
  36501. 800fb10: 687b ldr r3, [r7, #4]
  36502. 800fb12: 681b ldr r3, [r3, #0]
  36503. 800fb14: 6b5b ldr r3, [r3, #52] @ 0x34
  36504. 800fb16: 60fb str r3, [r7, #12]
  36505. break;
  36506. 800fb18: e00f b.n 800fb3a <HAL_TIM_ReadCapturedValue+0x7a>
  36507. {
  36508. /* Check the parameters */
  36509. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  36510. /* Return the capture 2 value */
  36511. tmpreg = htim->Instance->CCR2;
  36512. 800fb1a: 687b ldr r3, [r7, #4]
  36513. 800fb1c: 681b ldr r3, [r3, #0]
  36514. 800fb1e: 6b9b ldr r3, [r3, #56] @ 0x38
  36515. 800fb20: 60fb str r3, [r7, #12]
  36516. break;
  36517. 800fb22: e00a b.n 800fb3a <HAL_TIM_ReadCapturedValue+0x7a>
  36518. {
  36519. /* Check the parameters */
  36520. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  36521. /* Return the capture 3 value */
  36522. tmpreg = htim->Instance->CCR3;
  36523. 800fb24: 687b ldr r3, [r7, #4]
  36524. 800fb26: 681b ldr r3, [r3, #0]
  36525. 800fb28: 6bdb ldr r3, [r3, #60] @ 0x3c
  36526. 800fb2a: 60fb str r3, [r7, #12]
  36527. break;
  36528. 800fb2c: e005 b.n 800fb3a <HAL_TIM_ReadCapturedValue+0x7a>
  36529. {
  36530. /* Check the parameters */
  36531. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  36532. /* Return the capture 4 value */
  36533. tmpreg = htim->Instance->CCR4;
  36534. 800fb2e: 687b ldr r3, [r7, #4]
  36535. 800fb30: 681b ldr r3, [r3, #0]
  36536. 800fb32: 6c1b ldr r3, [r3, #64] @ 0x40
  36537. 800fb34: 60fb str r3, [r7, #12]
  36538. break;
  36539. 800fb36: e000 b.n 800fb3a <HAL_TIM_ReadCapturedValue+0x7a>
  36540. }
  36541. default:
  36542. break;
  36543. 800fb38: bf00 nop
  36544. }
  36545. return tmpreg;
  36546. 800fb3a: 68fb ldr r3, [r7, #12]
  36547. }
  36548. 800fb3c: 4618 mov r0, r3
  36549. 800fb3e: 3714 adds r7, #20
  36550. 800fb40: 46bd mov sp, r7
  36551. 800fb42: f85d 7b04 ldr.w r7, [sp], #4
  36552. 800fb46: 4770 bx lr
  36553. 0800fb48 <HAL_TIM_OC_DelayElapsedCallback>:
  36554. * @brief Output Compare callback in non-blocking mode
  36555. * @param htim TIM OC handle
  36556. * @retval None
  36557. */
  36558. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  36559. {
  36560. 800fb48: b480 push {r7}
  36561. 800fb4a: b083 sub sp, #12
  36562. 800fb4c: af00 add r7, sp, #0
  36563. 800fb4e: 6078 str r0, [r7, #4]
  36564. UNUSED(htim);
  36565. /* NOTE : This function should not be modified, when the callback is needed,
  36566. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  36567. */
  36568. }
  36569. 800fb50: bf00 nop
  36570. 800fb52: 370c adds r7, #12
  36571. 800fb54: 46bd mov sp, r7
  36572. 800fb56: f85d 7b04 ldr.w r7, [sp], #4
  36573. 800fb5a: 4770 bx lr
  36574. 0800fb5c <HAL_TIM_PWM_PulseFinishedCallback>:
  36575. * @brief PWM Pulse finished callback in non-blocking mode
  36576. * @param htim TIM handle
  36577. * @retval None
  36578. */
  36579. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  36580. {
  36581. 800fb5c: b480 push {r7}
  36582. 800fb5e: b083 sub sp, #12
  36583. 800fb60: af00 add r7, sp, #0
  36584. 800fb62: 6078 str r0, [r7, #4]
  36585. UNUSED(htim);
  36586. /* NOTE : This function should not be modified, when the callback is needed,
  36587. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  36588. */
  36589. }
  36590. 800fb64: bf00 nop
  36591. 800fb66: 370c adds r7, #12
  36592. 800fb68: 46bd mov sp, r7
  36593. 800fb6a: f85d 7b04 ldr.w r7, [sp], #4
  36594. 800fb6e: 4770 bx lr
  36595. 0800fb70 <HAL_TIM_TriggerCallback>:
  36596. * @brief Hall Trigger detection callback in non-blocking mode
  36597. * @param htim TIM handle
  36598. * @retval None
  36599. */
  36600. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  36601. {
  36602. 800fb70: b480 push {r7}
  36603. 800fb72: b083 sub sp, #12
  36604. 800fb74: af00 add r7, sp, #0
  36605. 800fb76: 6078 str r0, [r7, #4]
  36606. UNUSED(htim);
  36607. /* NOTE : This function should not be modified, when the callback is needed,
  36608. the HAL_TIM_TriggerCallback could be implemented in the user file
  36609. */
  36610. }
  36611. 800fb78: bf00 nop
  36612. 800fb7a: 370c adds r7, #12
  36613. 800fb7c: 46bd mov sp, r7
  36614. 800fb7e: f85d 7b04 ldr.w r7, [sp], #4
  36615. 800fb82: 4770 bx lr
  36616. 0800fb84 <HAL_TIM_GetChannelState>:
  36617. * @arg TIM_CHANNEL_5: TIM Channel 5
  36618. * @arg TIM_CHANNEL_6: TIM Channel 6
  36619. * @retval TIM Channel state
  36620. */
  36621. HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel)
  36622. {
  36623. 800fb84: b480 push {r7}
  36624. 800fb86: b085 sub sp, #20
  36625. 800fb88: af00 add r7, sp, #0
  36626. 800fb8a: 6078 str r0, [r7, #4]
  36627. 800fb8c: 6039 str r1, [r7, #0]
  36628. HAL_TIM_ChannelStateTypeDef channel_state;
  36629. /* Check the parameters */
  36630. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  36631. channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  36632. 800fb8e: 683b ldr r3, [r7, #0]
  36633. 800fb90: 2b00 cmp r3, #0
  36634. 800fb92: d104 bne.n 800fb9e <HAL_TIM_GetChannelState+0x1a>
  36635. 800fb94: 687b ldr r3, [r7, #4]
  36636. 800fb96: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  36637. 800fb9a: b2db uxtb r3, r3
  36638. 800fb9c: e023 b.n 800fbe6 <HAL_TIM_GetChannelState+0x62>
  36639. 800fb9e: 683b ldr r3, [r7, #0]
  36640. 800fba0: 2b04 cmp r3, #4
  36641. 800fba2: d104 bne.n 800fbae <HAL_TIM_GetChannelState+0x2a>
  36642. 800fba4: 687b ldr r3, [r7, #4]
  36643. 800fba6: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  36644. 800fbaa: b2db uxtb r3, r3
  36645. 800fbac: e01b b.n 800fbe6 <HAL_TIM_GetChannelState+0x62>
  36646. 800fbae: 683b ldr r3, [r7, #0]
  36647. 800fbb0: 2b08 cmp r3, #8
  36648. 800fbb2: d104 bne.n 800fbbe <HAL_TIM_GetChannelState+0x3a>
  36649. 800fbb4: 687b ldr r3, [r7, #4]
  36650. 800fbb6: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  36651. 800fbba: b2db uxtb r3, r3
  36652. 800fbbc: e013 b.n 800fbe6 <HAL_TIM_GetChannelState+0x62>
  36653. 800fbbe: 683b ldr r3, [r7, #0]
  36654. 800fbc0: 2b0c cmp r3, #12
  36655. 800fbc2: d104 bne.n 800fbce <HAL_TIM_GetChannelState+0x4a>
  36656. 800fbc4: 687b ldr r3, [r7, #4]
  36657. 800fbc6: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  36658. 800fbca: b2db uxtb r3, r3
  36659. 800fbcc: e00b b.n 800fbe6 <HAL_TIM_GetChannelState+0x62>
  36660. 800fbce: 683b ldr r3, [r7, #0]
  36661. 800fbd0: 2b10 cmp r3, #16
  36662. 800fbd2: d104 bne.n 800fbde <HAL_TIM_GetChannelState+0x5a>
  36663. 800fbd4: 687b ldr r3, [r7, #4]
  36664. 800fbd6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  36665. 800fbda: b2db uxtb r3, r3
  36666. 800fbdc: e003 b.n 800fbe6 <HAL_TIM_GetChannelState+0x62>
  36667. 800fbde: 687b ldr r3, [r7, #4]
  36668. 800fbe0: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  36669. 800fbe4: b2db uxtb r3, r3
  36670. 800fbe6: 73fb strb r3, [r7, #15]
  36671. return channel_state;
  36672. 800fbe8: 7bfb ldrb r3, [r7, #15]
  36673. }
  36674. 800fbea: 4618 mov r0, r3
  36675. 800fbec: 3714 adds r7, #20
  36676. 800fbee: 46bd mov sp, r7
  36677. 800fbf0: f85d 7b04 ldr.w r7, [sp], #4
  36678. 800fbf4: 4770 bx lr
  36679. ...
  36680. 0800fbf8 <TIM_Base_SetConfig>:
  36681. * @param TIMx TIM peripheral
  36682. * @param Structure TIM Base configuration structure
  36683. * @retval None
  36684. */
  36685. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  36686. {
  36687. 800fbf8: b480 push {r7}
  36688. 800fbfa: b085 sub sp, #20
  36689. 800fbfc: af00 add r7, sp, #0
  36690. 800fbfe: 6078 str r0, [r7, #4]
  36691. 800fc00: 6039 str r1, [r7, #0]
  36692. uint32_t tmpcr1;
  36693. tmpcr1 = TIMx->CR1;
  36694. 800fc02: 687b ldr r3, [r7, #4]
  36695. 800fc04: 681b ldr r3, [r3, #0]
  36696. 800fc06: 60fb str r3, [r7, #12]
  36697. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  36698. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  36699. 800fc08: 687b ldr r3, [r7, #4]
  36700. 800fc0a: 4a46 ldr r2, [pc, #280] @ (800fd24 <TIM_Base_SetConfig+0x12c>)
  36701. 800fc0c: 4293 cmp r3, r2
  36702. 800fc0e: d013 beq.n 800fc38 <TIM_Base_SetConfig+0x40>
  36703. 800fc10: 687b ldr r3, [r7, #4]
  36704. 800fc12: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  36705. 800fc16: d00f beq.n 800fc38 <TIM_Base_SetConfig+0x40>
  36706. 800fc18: 687b ldr r3, [r7, #4]
  36707. 800fc1a: 4a43 ldr r2, [pc, #268] @ (800fd28 <TIM_Base_SetConfig+0x130>)
  36708. 800fc1c: 4293 cmp r3, r2
  36709. 800fc1e: d00b beq.n 800fc38 <TIM_Base_SetConfig+0x40>
  36710. 800fc20: 687b ldr r3, [r7, #4]
  36711. 800fc22: 4a42 ldr r2, [pc, #264] @ (800fd2c <TIM_Base_SetConfig+0x134>)
  36712. 800fc24: 4293 cmp r3, r2
  36713. 800fc26: d007 beq.n 800fc38 <TIM_Base_SetConfig+0x40>
  36714. 800fc28: 687b ldr r3, [r7, #4]
  36715. 800fc2a: 4a41 ldr r2, [pc, #260] @ (800fd30 <TIM_Base_SetConfig+0x138>)
  36716. 800fc2c: 4293 cmp r3, r2
  36717. 800fc2e: d003 beq.n 800fc38 <TIM_Base_SetConfig+0x40>
  36718. 800fc30: 687b ldr r3, [r7, #4]
  36719. 800fc32: 4a40 ldr r2, [pc, #256] @ (800fd34 <TIM_Base_SetConfig+0x13c>)
  36720. 800fc34: 4293 cmp r3, r2
  36721. 800fc36: d108 bne.n 800fc4a <TIM_Base_SetConfig+0x52>
  36722. {
  36723. /* Select the Counter Mode */
  36724. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  36725. 800fc38: 68fb ldr r3, [r7, #12]
  36726. 800fc3a: f023 0370 bic.w r3, r3, #112 @ 0x70
  36727. 800fc3e: 60fb str r3, [r7, #12]
  36728. tmpcr1 |= Structure->CounterMode;
  36729. 800fc40: 683b ldr r3, [r7, #0]
  36730. 800fc42: 685b ldr r3, [r3, #4]
  36731. 800fc44: 68fa ldr r2, [r7, #12]
  36732. 800fc46: 4313 orrs r3, r2
  36733. 800fc48: 60fb str r3, [r7, #12]
  36734. }
  36735. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  36736. 800fc4a: 687b ldr r3, [r7, #4]
  36737. 800fc4c: 4a35 ldr r2, [pc, #212] @ (800fd24 <TIM_Base_SetConfig+0x12c>)
  36738. 800fc4e: 4293 cmp r3, r2
  36739. 800fc50: d01f beq.n 800fc92 <TIM_Base_SetConfig+0x9a>
  36740. 800fc52: 687b ldr r3, [r7, #4]
  36741. 800fc54: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  36742. 800fc58: d01b beq.n 800fc92 <TIM_Base_SetConfig+0x9a>
  36743. 800fc5a: 687b ldr r3, [r7, #4]
  36744. 800fc5c: 4a32 ldr r2, [pc, #200] @ (800fd28 <TIM_Base_SetConfig+0x130>)
  36745. 800fc5e: 4293 cmp r3, r2
  36746. 800fc60: d017 beq.n 800fc92 <TIM_Base_SetConfig+0x9a>
  36747. 800fc62: 687b ldr r3, [r7, #4]
  36748. 800fc64: 4a31 ldr r2, [pc, #196] @ (800fd2c <TIM_Base_SetConfig+0x134>)
  36749. 800fc66: 4293 cmp r3, r2
  36750. 800fc68: d013 beq.n 800fc92 <TIM_Base_SetConfig+0x9a>
  36751. 800fc6a: 687b ldr r3, [r7, #4]
  36752. 800fc6c: 4a30 ldr r2, [pc, #192] @ (800fd30 <TIM_Base_SetConfig+0x138>)
  36753. 800fc6e: 4293 cmp r3, r2
  36754. 800fc70: d00f beq.n 800fc92 <TIM_Base_SetConfig+0x9a>
  36755. 800fc72: 687b ldr r3, [r7, #4]
  36756. 800fc74: 4a2f ldr r2, [pc, #188] @ (800fd34 <TIM_Base_SetConfig+0x13c>)
  36757. 800fc76: 4293 cmp r3, r2
  36758. 800fc78: d00b beq.n 800fc92 <TIM_Base_SetConfig+0x9a>
  36759. 800fc7a: 687b ldr r3, [r7, #4]
  36760. 800fc7c: 4a2e ldr r2, [pc, #184] @ (800fd38 <TIM_Base_SetConfig+0x140>)
  36761. 800fc7e: 4293 cmp r3, r2
  36762. 800fc80: d007 beq.n 800fc92 <TIM_Base_SetConfig+0x9a>
  36763. 800fc82: 687b ldr r3, [r7, #4]
  36764. 800fc84: 4a2d ldr r2, [pc, #180] @ (800fd3c <TIM_Base_SetConfig+0x144>)
  36765. 800fc86: 4293 cmp r3, r2
  36766. 800fc88: d003 beq.n 800fc92 <TIM_Base_SetConfig+0x9a>
  36767. 800fc8a: 687b ldr r3, [r7, #4]
  36768. 800fc8c: 4a2c ldr r2, [pc, #176] @ (800fd40 <TIM_Base_SetConfig+0x148>)
  36769. 800fc8e: 4293 cmp r3, r2
  36770. 800fc90: d108 bne.n 800fca4 <TIM_Base_SetConfig+0xac>
  36771. {
  36772. /* Set the clock division */
  36773. tmpcr1 &= ~TIM_CR1_CKD;
  36774. 800fc92: 68fb ldr r3, [r7, #12]
  36775. 800fc94: f423 7340 bic.w r3, r3, #768 @ 0x300
  36776. 800fc98: 60fb str r3, [r7, #12]
  36777. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  36778. 800fc9a: 683b ldr r3, [r7, #0]
  36779. 800fc9c: 68db ldr r3, [r3, #12]
  36780. 800fc9e: 68fa ldr r2, [r7, #12]
  36781. 800fca0: 4313 orrs r3, r2
  36782. 800fca2: 60fb str r3, [r7, #12]
  36783. }
  36784. /* Set the auto-reload preload */
  36785. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  36786. 800fca4: 68fb ldr r3, [r7, #12]
  36787. 800fca6: f023 0280 bic.w r2, r3, #128 @ 0x80
  36788. 800fcaa: 683b ldr r3, [r7, #0]
  36789. 800fcac: 695b ldr r3, [r3, #20]
  36790. 800fcae: 4313 orrs r3, r2
  36791. 800fcb0: 60fb str r3, [r7, #12]
  36792. TIMx->CR1 = tmpcr1;
  36793. 800fcb2: 687b ldr r3, [r7, #4]
  36794. 800fcb4: 68fa ldr r2, [r7, #12]
  36795. 800fcb6: 601a str r2, [r3, #0]
  36796. /* Set the Autoreload value */
  36797. TIMx->ARR = (uint32_t)Structure->Period ;
  36798. 800fcb8: 683b ldr r3, [r7, #0]
  36799. 800fcba: 689a ldr r2, [r3, #8]
  36800. 800fcbc: 687b ldr r3, [r7, #4]
  36801. 800fcbe: 62da str r2, [r3, #44] @ 0x2c
  36802. /* Set the Prescaler value */
  36803. TIMx->PSC = Structure->Prescaler;
  36804. 800fcc0: 683b ldr r3, [r7, #0]
  36805. 800fcc2: 681a ldr r2, [r3, #0]
  36806. 800fcc4: 687b ldr r3, [r7, #4]
  36807. 800fcc6: 629a str r2, [r3, #40] @ 0x28
  36808. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  36809. 800fcc8: 687b ldr r3, [r7, #4]
  36810. 800fcca: 4a16 ldr r2, [pc, #88] @ (800fd24 <TIM_Base_SetConfig+0x12c>)
  36811. 800fccc: 4293 cmp r3, r2
  36812. 800fcce: d00f beq.n 800fcf0 <TIM_Base_SetConfig+0xf8>
  36813. 800fcd0: 687b ldr r3, [r7, #4]
  36814. 800fcd2: 4a18 ldr r2, [pc, #96] @ (800fd34 <TIM_Base_SetConfig+0x13c>)
  36815. 800fcd4: 4293 cmp r3, r2
  36816. 800fcd6: d00b beq.n 800fcf0 <TIM_Base_SetConfig+0xf8>
  36817. 800fcd8: 687b ldr r3, [r7, #4]
  36818. 800fcda: 4a17 ldr r2, [pc, #92] @ (800fd38 <TIM_Base_SetConfig+0x140>)
  36819. 800fcdc: 4293 cmp r3, r2
  36820. 800fcde: d007 beq.n 800fcf0 <TIM_Base_SetConfig+0xf8>
  36821. 800fce0: 687b ldr r3, [r7, #4]
  36822. 800fce2: 4a16 ldr r2, [pc, #88] @ (800fd3c <TIM_Base_SetConfig+0x144>)
  36823. 800fce4: 4293 cmp r3, r2
  36824. 800fce6: d003 beq.n 800fcf0 <TIM_Base_SetConfig+0xf8>
  36825. 800fce8: 687b ldr r3, [r7, #4]
  36826. 800fcea: 4a15 ldr r2, [pc, #84] @ (800fd40 <TIM_Base_SetConfig+0x148>)
  36827. 800fcec: 4293 cmp r3, r2
  36828. 800fcee: d103 bne.n 800fcf8 <TIM_Base_SetConfig+0x100>
  36829. {
  36830. /* Set the Repetition Counter value */
  36831. TIMx->RCR = Structure->RepetitionCounter;
  36832. 800fcf0: 683b ldr r3, [r7, #0]
  36833. 800fcf2: 691a ldr r2, [r3, #16]
  36834. 800fcf4: 687b ldr r3, [r7, #4]
  36835. 800fcf6: 631a str r2, [r3, #48] @ 0x30
  36836. }
  36837. /* Generate an update event to reload the Prescaler
  36838. and the repetition counter (only for advanced timer) value immediately */
  36839. TIMx->EGR = TIM_EGR_UG;
  36840. 800fcf8: 687b ldr r3, [r7, #4]
  36841. 800fcfa: 2201 movs r2, #1
  36842. 800fcfc: 615a str r2, [r3, #20]
  36843. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  36844. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  36845. 800fcfe: 687b ldr r3, [r7, #4]
  36846. 800fd00: 691b ldr r3, [r3, #16]
  36847. 800fd02: f003 0301 and.w r3, r3, #1
  36848. 800fd06: 2b01 cmp r3, #1
  36849. 800fd08: d105 bne.n 800fd16 <TIM_Base_SetConfig+0x11e>
  36850. {
  36851. /* Clear the update flag */
  36852. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  36853. 800fd0a: 687b ldr r3, [r7, #4]
  36854. 800fd0c: 691b ldr r3, [r3, #16]
  36855. 800fd0e: f023 0201 bic.w r2, r3, #1
  36856. 800fd12: 687b ldr r3, [r7, #4]
  36857. 800fd14: 611a str r2, [r3, #16]
  36858. }
  36859. }
  36860. 800fd16: bf00 nop
  36861. 800fd18: 3714 adds r7, #20
  36862. 800fd1a: 46bd mov sp, r7
  36863. 800fd1c: f85d 7b04 ldr.w r7, [sp], #4
  36864. 800fd20: 4770 bx lr
  36865. 800fd22: bf00 nop
  36866. 800fd24: 40010000 .word 0x40010000
  36867. 800fd28: 40000400 .word 0x40000400
  36868. 800fd2c: 40000800 .word 0x40000800
  36869. 800fd30: 40000c00 .word 0x40000c00
  36870. 800fd34: 40010400 .word 0x40010400
  36871. 800fd38: 40014000 .word 0x40014000
  36872. 800fd3c: 40014400 .word 0x40014400
  36873. 800fd40: 40014800 .word 0x40014800
  36874. 0800fd44 <TIM_OC1_SetConfig>:
  36875. * @param TIMx to select the TIM peripheral
  36876. * @param OC_Config The output configuration structure
  36877. * @retval None
  36878. */
  36879. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  36880. {
  36881. 800fd44: b480 push {r7}
  36882. 800fd46: b087 sub sp, #28
  36883. 800fd48: af00 add r7, sp, #0
  36884. 800fd4a: 6078 str r0, [r7, #4]
  36885. 800fd4c: 6039 str r1, [r7, #0]
  36886. uint32_t tmpccmrx;
  36887. uint32_t tmpccer;
  36888. uint32_t tmpcr2;
  36889. /* Get the TIMx CCER register value */
  36890. tmpccer = TIMx->CCER;
  36891. 800fd4e: 687b ldr r3, [r7, #4]
  36892. 800fd50: 6a1b ldr r3, [r3, #32]
  36893. 800fd52: 617b str r3, [r7, #20]
  36894. /* Disable the Channel 1: Reset the CC1E Bit */
  36895. TIMx->CCER &= ~TIM_CCER_CC1E;
  36896. 800fd54: 687b ldr r3, [r7, #4]
  36897. 800fd56: 6a1b ldr r3, [r3, #32]
  36898. 800fd58: f023 0201 bic.w r2, r3, #1
  36899. 800fd5c: 687b ldr r3, [r7, #4]
  36900. 800fd5e: 621a str r2, [r3, #32]
  36901. /* Get the TIMx CR2 register value */
  36902. tmpcr2 = TIMx->CR2;
  36903. 800fd60: 687b ldr r3, [r7, #4]
  36904. 800fd62: 685b ldr r3, [r3, #4]
  36905. 800fd64: 613b str r3, [r7, #16]
  36906. /* Get the TIMx CCMR1 register value */
  36907. tmpccmrx = TIMx->CCMR1;
  36908. 800fd66: 687b ldr r3, [r7, #4]
  36909. 800fd68: 699b ldr r3, [r3, #24]
  36910. 800fd6a: 60fb str r3, [r7, #12]
  36911. /* Reset the Output Compare Mode Bits */
  36912. tmpccmrx &= ~TIM_CCMR1_OC1M;
  36913. 800fd6c: 68fa ldr r2, [r7, #12]
  36914. 800fd6e: 4b37 ldr r3, [pc, #220] @ (800fe4c <TIM_OC1_SetConfig+0x108>)
  36915. 800fd70: 4013 ands r3, r2
  36916. 800fd72: 60fb str r3, [r7, #12]
  36917. tmpccmrx &= ~TIM_CCMR1_CC1S;
  36918. 800fd74: 68fb ldr r3, [r7, #12]
  36919. 800fd76: f023 0303 bic.w r3, r3, #3
  36920. 800fd7a: 60fb str r3, [r7, #12]
  36921. /* Select the Output Compare Mode */
  36922. tmpccmrx |= OC_Config->OCMode;
  36923. 800fd7c: 683b ldr r3, [r7, #0]
  36924. 800fd7e: 681b ldr r3, [r3, #0]
  36925. 800fd80: 68fa ldr r2, [r7, #12]
  36926. 800fd82: 4313 orrs r3, r2
  36927. 800fd84: 60fb str r3, [r7, #12]
  36928. /* Reset the Output Polarity level */
  36929. tmpccer &= ~TIM_CCER_CC1P;
  36930. 800fd86: 697b ldr r3, [r7, #20]
  36931. 800fd88: f023 0302 bic.w r3, r3, #2
  36932. 800fd8c: 617b str r3, [r7, #20]
  36933. /* Set the Output Compare Polarity */
  36934. tmpccer |= OC_Config->OCPolarity;
  36935. 800fd8e: 683b ldr r3, [r7, #0]
  36936. 800fd90: 689b ldr r3, [r3, #8]
  36937. 800fd92: 697a ldr r2, [r7, #20]
  36938. 800fd94: 4313 orrs r3, r2
  36939. 800fd96: 617b str r3, [r7, #20]
  36940. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
  36941. 800fd98: 687b ldr r3, [r7, #4]
  36942. 800fd9a: 4a2d ldr r2, [pc, #180] @ (800fe50 <TIM_OC1_SetConfig+0x10c>)
  36943. 800fd9c: 4293 cmp r3, r2
  36944. 800fd9e: d00f beq.n 800fdc0 <TIM_OC1_SetConfig+0x7c>
  36945. 800fda0: 687b ldr r3, [r7, #4]
  36946. 800fda2: 4a2c ldr r2, [pc, #176] @ (800fe54 <TIM_OC1_SetConfig+0x110>)
  36947. 800fda4: 4293 cmp r3, r2
  36948. 800fda6: d00b beq.n 800fdc0 <TIM_OC1_SetConfig+0x7c>
  36949. 800fda8: 687b ldr r3, [r7, #4]
  36950. 800fdaa: 4a2b ldr r2, [pc, #172] @ (800fe58 <TIM_OC1_SetConfig+0x114>)
  36951. 800fdac: 4293 cmp r3, r2
  36952. 800fdae: d007 beq.n 800fdc0 <TIM_OC1_SetConfig+0x7c>
  36953. 800fdb0: 687b ldr r3, [r7, #4]
  36954. 800fdb2: 4a2a ldr r2, [pc, #168] @ (800fe5c <TIM_OC1_SetConfig+0x118>)
  36955. 800fdb4: 4293 cmp r3, r2
  36956. 800fdb6: d003 beq.n 800fdc0 <TIM_OC1_SetConfig+0x7c>
  36957. 800fdb8: 687b ldr r3, [r7, #4]
  36958. 800fdba: 4a29 ldr r2, [pc, #164] @ (800fe60 <TIM_OC1_SetConfig+0x11c>)
  36959. 800fdbc: 4293 cmp r3, r2
  36960. 800fdbe: d10c bne.n 800fdda <TIM_OC1_SetConfig+0x96>
  36961. {
  36962. /* Check parameters */
  36963. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  36964. /* Reset the Output N Polarity level */
  36965. tmpccer &= ~TIM_CCER_CC1NP;
  36966. 800fdc0: 697b ldr r3, [r7, #20]
  36967. 800fdc2: f023 0308 bic.w r3, r3, #8
  36968. 800fdc6: 617b str r3, [r7, #20]
  36969. /* Set the Output N Polarity */
  36970. tmpccer |= OC_Config->OCNPolarity;
  36971. 800fdc8: 683b ldr r3, [r7, #0]
  36972. 800fdca: 68db ldr r3, [r3, #12]
  36973. 800fdcc: 697a ldr r2, [r7, #20]
  36974. 800fdce: 4313 orrs r3, r2
  36975. 800fdd0: 617b str r3, [r7, #20]
  36976. /* Reset the Output N State */
  36977. tmpccer &= ~TIM_CCER_CC1NE;
  36978. 800fdd2: 697b ldr r3, [r7, #20]
  36979. 800fdd4: f023 0304 bic.w r3, r3, #4
  36980. 800fdd8: 617b str r3, [r7, #20]
  36981. }
  36982. if (IS_TIM_BREAK_INSTANCE(TIMx))
  36983. 800fdda: 687b ldr r3, [r7, #4]
  36984. 800fddc: 4a1c ldr r2, [pc, #112] @ (800fe50 <TIM_OC1_SetConfig+0x10c>)
  36985. 800fdde: 4293 cmp r3, r2
  36986. 800fde0: d00f beq.n 800fe02 <TIM_OC1_SetConfig+0xbe>
  36987. 800fde2: 687b ldr r3, [r7, #4]
  36988. 800fde4: 4a1b ldr r2, [pc, #108] @ (800fe54 <TIM_OC1_SetConfig+0x110>)
  36989. 800fde6: 4293 cmp r3, r2
  36990. 800fde8: d00b beq.n 800fe02 <TIM_OC1_SetConfig+0xbe>
  36991. 800fdea: 687b ldr r3, [r7, #4]
  36992. 800fdec: 4a1a ldr r2, [pc, #104] @ (800fe58 <TIM_OC1_SetConfig+0x114>)
  36993. 800fdee: 4293 cmp r3, r2
  36994. 800fdf0: d007 beq.n 800fe02 <TIM_OC1_SetConfig+0xbe>
  36995. 800fdf2: 687b ldr r3, [r7, #4]
  36996. 800fdf4: 4a19 ldr r2, [pc, #100] @ (800fe5c <TIM_OC1_SetConfig+0x118>)
  36997. 800fdf6: 4293 cmp r3, r2
  36998. 800fdf8: d003 beq.n 800fe02 <TIM_OC1_SetConfig+0xbe>
  36999. 800fdfa: 687b ldr r3, [r7, #4]
  37000. 800fdfc: 4a18 ldr r2, [pc, #96] @ (800fe60 <TIM_OC1_SetConfig+0x11c>)
  37001. 800fdfe: 4293 cmp r3, r2
  37002. 800fe00: d111 bne.n 800fe26 <TIM_OC1_SetConfig+0xe2>
  37003. /* Check parameters */
  37004. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37005. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37006. /* Reset the Output Compare and Output Compare N IDLE State */
  37007. tmpcr2 &= ~TIM_CR2_OIS1;
  37008. 800fe02: 693b ldr r3, [r7, #16]
  37009. 800fe04: f423 7380 bic.w r3, r3, #256 @ 0x100
  37010. 800fe08: 613b str r3, [r7, #16]
  37011. tmpcr2 &= ~TIM_CR2_OIS1N;
  37012. 800fe0a: 693b ldr r3, [r7, #16]
  37013. 800fe0c: f423 7300 bic.w r3, r3, #512 @ 0x200
  37014. 800fe10: 613b str r3, [r7, #16]
  37015. /* Set the Output Idle state */
  37016. tmpcr2 |= OC_Config->OCIdleState;
  37017. 800fe12: 683b ldr r3, [r7, #0]
  37018. 800fe14: 695b ldr r3, [r3, #20]
  37019. 800fe16: 693a ldr r2, [r7, #16]
  37020. 800fe18: 4313 orrs r3, r2
  37021. 800fe1a: 613b str r3, [r7, #16]
  37022. /* Set the Output N Idle state */
  37023. tmpcr2 |= OC_Config->OCNIdleState;
  37024. 800fe1c: 683b ldr r3, [r7, #0]
  37025. 800fe1e: 699b ldr r3, [r3, #24]
  37026. 800fe20: 693a ldr r2, [r7, #16]
  37027. 800fe22: 4313 orrs r3, r2
  37028. 800fe24: 613b str r3, [r7, #16]
  37029. }
  37030. /* Write to TIMx CR2 */
  37031. TIMx->CR2 = tmpcr2;
  37032. 800fe26: 687b ldr r3, [r7, #4]
  37033. 800fe28: 693a ldr r2, [r7, #16]
  37034. 800fe2a: 605a str r2, [r3, #4]
  37035. /* Write to TIMx CCMR1 */
  37036. TIMx->CCMR1 = tmpccmrx;
  37037. 800fe2c: 687b ldr r3, [r7, #4]
  37038. 800fe2e: 68fa ldr r2, [r7, #12]
  37039. 800fe30: 619a str r2, [r3, #24]
  37040. /* Set the Capture Compare Register value */
  37041. TIMx->CCR1 = OC_Config->Pulse;
  37042. 800fe32: 683b ldr r3, [r7, #0]
  37043. 800fe34: 685a ldr r2, [r3, #4]
  37044. 800fe36: 687b ldr r3, [r7, #4]
  37045. 800fe38: 635a str r2, [r3, #52] @ 0x34
  37046. /* Write to TIMx CCER */
  37047. TIMx->CCER = tmpccer;
  37048. 800fe3a: 687b ldr r3, [r7, #4]
  37049. 800fe3c: 697a ldr r2, [r7, #20]
  37050. 800fe3e: 621a str r2, [r3, #32]
  37051. }
  37052. 800fe40: bf00 nop
  37053. 800fe42: 371c adds r7, #28
  37054. 800fe44: 46bd mov sp, r7
  37055. 800fe46: f85d 7b04 ldr.w r7, [sp], #4
  37056. 800fe4a: 4770 bx lr
  37057. 800fe4c: fffeff8f .word 0xfffeff8f
  37058. 800fe50: 40010000 .word 0x40010000
  37059. 800fe54: 40010400 .word 0x40010400
  37060. 800fe58: 40014000 .word 0x40014000
  37061. 800fe5c: 40014400 .word 0x40014400
  37062. 800fe60: 40014800 .word 0x40014800
  37063. 0800fe64 <TIM_OC2_SetConfig>:
  37064. * @param TIMx to select the TIM peripheral
  37065. * @param OC_Config The output configuration structure
  37066. * @retval None
  37067. */
  37068. void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37069. {
  37070. 800fe64: b480 push {r7}
  37071. 800fe66: b087 sub sp, #28
  37072. 800fe68: af00 add r7, sp, #0
  37073. 800fe6a: 6078 str r0, [r7, #4]
  37074. 800fe6c: 6039 str r1, [r7, #0]
  37075. uint32_t tmpccmrx;
  37076. uint32_t tmpccer;
  37077. uint32_t tmpcr2;
  37078. /* Get the TIMx CCER register value */
  37079. tmpccer = TIMx->CCER;
  37080. 800fe6e: 687b ldr r3, [r7, #4]
  37081. 800fe70: 6a1b ldr r3, [r3, #32]
  37082. 800fe72: 617b str r3, [r7, #20]
  37083. /* Disable the Channel 2: Reset the CC2E Bit */
  37084. TIMx->CCER &= ~TIM_CCER_CC2E;
  37085. 800fe74: 687b ldr r3, [r7, #4]
  37086. 800fe76: 6a1b ldr r3, [r3, #32]
  37087. 800fe78: f023 0210 bic.w r2, r3, #16
  37088. 800fe7c: 687b ldr r3, [r7, #4]
  37089. 800fe7e: 621a str r2, [r3, #32]
  37090. /* Get the TIMx CR2 register value */
  37091. tmpcr2 = TIMx->CR2;
  37092. 800fe80: 687b ldr r3, [r7, #4]
  37093. 800fe82: 685b ldr r3, [r3, #4]
  37094. 800fe84: 613b str r3, [r7, #16]
  37095. /* Get the TIMx CCMR1 register value */
  37096. tmpccmrx = TIMx->CCMR1;
  37097. 800fe86: 687b ldr r3, [r7, #4]
  37098. 800fe88: 699b ldr r3, [r3, #24]
  37099. 800fe8a: 60fb str r3, [r7, #12]
  37100. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37101. tmpccmrx &= ~TIM_CCMR1_OC2M;
  37102. 800fe8c: 68fa ldr r2, [r7, #12]
  37103. 800fe8e: 4b34 ldr r3, [pc, #208] @ (800ff60 <TIM_OC2_SetConfig+0xfc>)
  37104. 800fe90: 4013 ands r3, r2
  37105. 800fe92: 60fb str r3, [r7, #12]
  37106. tmpccmrx &= ~TIM_CCMR1_CC2S;
  37107. 800fe94: 68fb ldr r3, [r7, #12]
  37108. 800fe96: f423 7340 bic.w r3, r3, #768 @ 0x300
  37109. 800fe9a: 60fb str r3, [r7, #12]
  37110. /* Select the Output Compare Mode */
  37111. tmpccmrx |= (OC_Config->OCMode << 8U);
  37112. 800fe9c: 683b ldr r3, [r7, #0]
  37113. 800fe9e: 681b ldr r3, [r3, #0]
  37114. 800fea0: 021b lsls r3, r3, #8
  37115. 800fea2: 68fa ldr r2, [r7, #12]
  37116. 800fea4: 4313 orrs r3, r2
  37117. 800fea6: 60fb str r3, [r7, #12]
  37118. /* Reset the Output Polarity level */
  37119. tmpccer &= ~TIM_CCER_CC2P;
  37120. 800fea8: 697b ldr r3, [r7, #20]
  37121. 800feaa: f023 0320 bic.w r3, r3, #32
  37122. 800feae: 617b str r3, [r7, #20]
  37123. /* Set the Output Compare Polarity */
  37124. tmpccer |= (OC_Config->OCPolarity << 4U);
  37125. 800feb0: 683b ldr r3, [r7, #0]
  37126. 800feb2: 689b ldr r3, [r3, #8]
  37127. 800feb4: 011b lsls r3, r3, #4
  37128. 800feb6: 697a ldr r2, [r7, #20]
  37129. 800feb8: 4313 orrs r3, r2
  37130. 800feba: 617b str r3, [r7, #20]
  37131. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
  37132. 800febc: 687b ldr r3, [r7, #4]
  37133. 800febe: 4a29 ldr r2, [pc, #164] @ (800ff64 <TIM_OC2_SetConfig+0x100>)
  37134. 800fec0: 4293 cmp r3, r2
  37135. 800fec2: d003 beq.n 800fecc <TIM_OC2_SetConfig+0x68>
  37136. 800fec4: 687b ldr r3, [r7, #4]
  37137. 800fec6: 4a28 ldr r2, [pc, #160] @ (800ff68 <TIM_OC2_SetConfig+0x104>)
  37138. 800fec8: 4293 cmp r3, r2
  37139. 800feca: d10d bne.n 800fee8 <TIM_OC2_SetConfig+0x84>
  37140. {
  37141. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37142. /* Reset the Output N Polarity level */
  37143. tmpccer &= ~TIM_CCER_CC2NP;
  37144. 800fecc: 697b ldr r3, [r7, #20]
  37145. 800fece: f023 0380 bic.w r3, r3, #128 @ 0x80
  37146. 800fed2: 617b str r3, [r7, #20]
  37147. /* Set the Output N Polarity */
  37148. tmpccer |= (OC_Config->OCNPolarity << 4U);
  37149. 800fed4: 683b ldr r3, [r7, #0]
  37150. 800fed6: 68db ldr r3, [r3, #12]
  37151. 800fed8: 011b lsls r3, r3, #4
  37152. 800feda: 697a ldr r2, [r7, #20]
  37153. 800fedc: 4313 orrs r3, r2
  37154. 800fede: 617b str r3, [r7, #20]
  37155. /* Reset the Output N State */
  37156. tmpccer &= ~TIM_CCER_CC2NE;
  37157. 800fee0: 697b ldr r3, [r7, #20]
  37158. 800fee2: f023 0340 bic.w r3, r3, #64 @ 0x40
  37159. 800fee6: 617b str r3, [r7, #20]
  37160. }
  37161. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37162. 800fee8: 687b ldr r3, [r7, #4]
  37163. 800feea: 4a1e ldr r2, [pc, #120] @ (800ff64 <TIM_OC2_SetConfig+0x100>)
  37164. 800feec: 4293 cmp r3, r2
  37165. 800feee: d00f beq.n 800ff10 <TIM_OC2_SetConfig+0xac>
  37166. 800fef0: 687b ldr r3, [r7, #4]
  37167. 800fef2: 4a1d ldr r2, [pc, #116] @ (800ff68 <TIM_OC2_SetConfig+0x104>)
  37168. 800fef4: 4293 cmp r3, r2
  37169. 800fef6: d00b beq.n 800ff10 <TIM_OC2_SetConfig+0xac>
  37170. 800fef8: 687b ldr r3, [r7, #4]
  37171. 800fefa: 4a1c ldr r2, [pc, #112] @ (800ff6c <TIM_OC2_SetConfig+0x108>)
  37172. 800fefc: 4293 cmp r3, r2
  37173. 800fefe: d007 beq.n 800ff10 <TIM_OC2_SetConfig+0xac>
  37174. 800ff00: 687b ldr r3, [r7, #4]
  37175. 800ff02: 4a1b ldr r2, [pc, #108] @ (800ff70 <TIM_OC2_SetConfig+0x10c>)
  37176. 800ff04: 4293 cmp r3, r2
  37177. 800ff06: d003 beq.n 800ff10 <TIM_OC2_SetConfig+0xac>
  37178. 800ff08: 687b ldr r3, [r7, #4]
  37179. 800ff0a: 4a1a ldr r2, [pc, #104] @ (800ff74 <TIM_OC2_SetConfig+0x110>)
  37180. 800ff0c: 4293 cmp r3, r2
  37181. 800ff0e: d113 bne.n 800ff38 <TIM_OC2_SetConfig+0xd4>
  37182. /* Check parameters */
  37183. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37184. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37185. /* Reset the Output Compare and Output Compare N IDLE State */
  37186. tmpcr2 &= ~TIM_CR2_OIS2;
  37187. 800ff10: 693b ldr r3, [r7, #16]
  37188. 800ff12: f423 6380 bic.w r3, r3, #1024 @ 0x400
  37189. 800ff16: 613b str r3, [r7, #16]
  37190. tmpcr2 &= ~TIM_CR2_OIS2N;
  37191. 800ff18: 693b ldr r3, [r7, #16]
  37192. 800ff1a: f423 6300 bic.w r3, r3, #2048 @ 0x800
  37193. 800ff1e: 613b str r3, [r7, #16]
  37194. /* Set the Output Idle state */
  37195. tmpcr2 |= (OC_Config->OCIdleState << 2U);
  37196. 800ff20: 683b ldr r3, [r7, #0]
  37197. 800ff22: 695b ldr r3, [r3, #20]
  37198. 800ff24: 009b lsls r3, r3, #2
  37199. 800ff26: 693a ldr r2, [r7, #16]
  37200. 800ff28: 4313 orrs r3, r2
  37201. 800ff2a: 613b str r3, [r7, #16]
  37202. /* Set the Output N Idle state */
  37203. tmpcr2 |= (OC_Config->OCNIdleState << 2U);
  37204. 800ff2c: 683b ldr r3, [r7, #0]
  37205. 800ff2e: 699b ldr r3, [r3, #24]
  37206. 800ff30: 009b lsls r3, r3, #2
  37207. 800ff32: 693a ldr r2, [r7, #16]
  37208. 800ff34: 4313 orrs r3, r2
  37209. 800ff36: 613b str r3, [r7, #16]
  37210. }
  37211. /* Write to TIMx CR2 */
  37212. TIMx->CR2 = tmpcr2;
  37213. 800ff38: 687b ldr r3, [r7, #4]
  37214. 800ff3a: 693a ldr r2, [r7, #16]
  37215. 800ff3c: 605a str r2, [r3, #4]
  37216. /* Write to TIMx CCMR1 */
  37217. TIMx->CCMR1 = tmpccmrx;
  37218. 800ff3e: 687b ldr r3, [r7, #4]
  37219. 800ff40: 68fa ldr r2, [r7, #12]
  37220. 800ff42: 619a str r2, [r3, #24]
  37221. /* Set the Capture Compare Register value */
  37222. TIMx->CCR2 = OC_Config->Pulse;
  37223. 800ff44: 683b ldr r3, [r7, #0]
  37224. 800ff46: 685a ldr r2, [r3, #4]
  37225. 800ff48: 687b ldr r3, [r7, #4]
  37226. 800ff4a: 639a str r2, [r3, #56] @ 0x38
  37227. /* Write to TIMx CCER */
  37228. TIMx->CCER = tmpccer;
  37229. 800ff4c: 687b ldr r3, [r7, #4]
  37230. 800ff4e: 697a ldr r2, [r7, #20]
  37231. 800ff50: 621a str r2, [r3, #32]
  37232. }
  37233. 800ff52: bf00 nop
  37234. 800ff54: 371c adds r7, #28
  37235. 800ff56: 46bd mov sp, r7
  37236. 800ff58: f85d 7b04 ldr.w r7, [sp], #4
  37237. 800ff5c: 4770 bx lr
  37238. 800ff5e: bf00 nop
  37239. 800ff60: feff8fff .word 0xfeff8fff
  37240. 800ff64: 40010000 .word 0x40010000
  37241. 800ff68: 40010400 .word 0x40010400
  37242. 800ff6c: 40014000 .word 0x40014000
  37243. 800ff70: 40014400 .word 0x40014400
  37244. 800ff74: 40014800 .word 0x40014800
  37245. 0800ff78 <TIM_OC3_SetConfig>:
  37246. * @param TIMx to select the TIM peripheral
  37247. * @param OC_Config The output configuration structure
  37248. * @retval None
  37249. */
  37250. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37251. {
  37252. 800ff78: b480 push {r7}
  37253. 800ff7a: b087 sub sp, #28
  37254. 800ff7c: af00 add r7, sp, #0
  37255. 800ff7e: 6078 str r0, [r7, #4]
  37256. 800ff80: 6039 str r1, [r7, #0]
  37257. uint32_t tmpccmrx;
  37258. uint32_t tmpccer;
  37259. uint32_t tmpcr2;
  37260. /* Get the TIMx CCER register value */
  37261. tmpccer = TIMx->CCER;
  37262. 800ff82: 687b ldr r3, [r7, #4]
  37263. 800ff84: 6a1b ldr r3, [r3, #32]
  37264. 800ff86: 617b str r3, [r7, #20]
  37265. /* Disable the Channel 3: Reset the CC2E Bit */
  37266. TIMx->CCER &= ~TIM_CCER_CC3E;
  37267. 800ff88: 687b ldr r3, [r7, #4]
  37268. 800ff8a: 6a1b ldr r3, [r3, #32]
  37269. 800ff8c: f423 7280 bic.w r2, r3, #256 @ 0x100
  37270. 800ff90: 687b ldr r3, [r7, #4]
  37271. 800ff92: 621a str r2, [r3, #32]
  37272. /* Get the TIMx CR2 register value */
  37273. tmpcr2 = TIMx->CR2;
  37274. 800ff94: 687b ldr r3, [r7, #4]
  37275. 800ff96: 685b ldr r3, [r3, #4]
  37276. 800ff98: 613b str r3, [r7, #16]
  37277. /* Get the TIMx CCMR2 register value */
  37278. tmpccmrx = TIMx->CCMR2;
  37279. 800ff9a: 687b ldr r3, [r7, #4]
  37280. 800ff9c: 69db ldr r3, [r3, #28]
  37281. 800ff9e: 60fb str r3, [r7, #12]
  37282. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37283. tmpccmrx &= ~TIM_CCMR2_OC3M;
  37284. 800ffa0: 68fa ldr r2, [r7, #12]
  37285. 800ffa2: 4b33 ldr r3, [pc, #204] @ (8010070 <TIM_OC3_SetConfig+0xf8>)
  37286. 800ffa4: 4013 ands r3, r2
  37287. 800ffa6: 60fb str r3, [r7, #12]
  37288. tmpccmrx &= ~TIM_CCMR2_CC3S;
  37289. 800ffa8: 68fb ldr r3, [r7, #12]
  37290. 800ffaa: f023 0303 bic.w r3, r3, #3
  37291. 800ffae: 60fb str r3, [r7, #12]
  37292. /* Select the Output Compare Mode */
  37293. tmpccmrx |= OC_Config->OCMode;
  37294. 800ffb0: 683b ldr r3, [r7, #0]
  37295. 800ffb2: 681b ldr r3, [r3, #0]
  37296. 800ffb4: 68fa ldr r2, [r7, #12]
  37297. 800ffb6: 4313 orrs r3, r2
  37298. 800ffb8: 60fb str r3, [r7, #12]
  37299. /* Reset the Output Polarity level */
  37300. tmpccer &= ~TIM_CCER_CC3P;
  37301. 800ffba: 697b ldr r3, [r7, #20]
  37302. 800ffbc: f423 7300 bic.w r3, r3, #512 @ 0x200
  37303. 800ffc0: 617b str r3, [r7, #20]
  37304. /* Set the Output Compare Polarity */
  37305. tmpccer |= (OC_Config->OCPolarity << 8U);
  37306. 800ffc2: 683b ldr r3, [r7, #0]
  37307. 800ffc4: 689b ldr r3, [r3, #8]
  37308. 800ffc6: 021b lsls r3, r3, #8
  37309. 800ffc8: 697a ldr r2, [r7, #20]
  37310. 800ffca: 4313 orrs r3, r2
  37311. 800ffcc: 617b str r3, [r7, #20]
  37312. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
  37313. 800ffce: 687b ldr r3, [r7, #4]
  37314. 800ffd0: 4a28 ldr r2, [pc, #160] @ (8010074 <TIM_OC3_SetConfig+0xfc>)
  37315. 800ffd2: 4293 cmp r3, r2
  37316. 800ffd4: d003 beq.n 800ffde <TIM_OC3_SetConfig+0x66>
  37317. 800ffd6: 687b ldr r3, [r7, #4]
  37318. 800ffd8: 4a27 ldr r2, [pc, #156] @ (8010078 <TIM_OC3_SetConfig+0x100>)
  37319. 800ffda: 4293 cmp r3, r2
  37320. 800ffdc: d10d bne.n 800fffa <TIM_OC3_SetConfig+0x82>
  37321. {
  37322. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37323. /* Reset the Output N Polarity level */
  37324. tmpccer &= ~TIM_CCER_CC3NP;
  37325. 800ffde: 697b ldr r3, [r7, #20]
  37326. 800ffe0: f423 6300 bic.w r3, r3, #2048 @ 0x800
  37327. 800ffe4: 617b str r3, [r7, #20]
  37328. /* Set the Output N Polarity */
  37329. tmpccer |= (OC_Config->OCNPolarity << 8U);
  37330. 800ffe6: 683b ldr r3, [r7, #0]
  37331. 800ffe8: 68db ldr r3, [r3, #12]
  37332. 800ffea: 021b lsls r3, r3, #8
  37333. 800ffec: 697a ldr r2, [r7, #20]
  37334. 800ffee: 4313 orrs r3, r2
  37335. 800fff0: 617b str r3, [r7, #20]
  37336. /* Reset the Output N State */
  37337. tmpccer &= ~TIM_CCER_CC3NE;
  37338. 800fff2: 697b ldr r3, [r7, #20]
  37339. 800fff4: f423 6380 bic.w r3, r3, #1024 @ 0x400
  37340. 800fff8: 617b str r3, [r7, #20]
  37341. }
  37342. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37343. 800fffa: 687b ldr r3, [r7, #4]
  37344. 800fffc: 4a1d ldr r2, [pc, #116] @ (8010074 <TIM_OC3_SetConfig+0xfc>)
  37345. 800fffe: 4293 cmp r3, r2
  37346. 8010000: d00f beq.n 8010022 <TIM_OC3_SetConfig+0xaa>
  37347. 8010002: 687b ldr r3, [r7, #4]
  37348. 8010004: 4a1c ldr r2, [pc, #112] @ (8010078 <TIM_OC3_SetConfig+0x100>)
  37349. 8010006: 4293 cmp r3, r2
  37350. 8010008: d00b beq.n 8010022 <TIM_OC3_SetConfig+0xaa>
  37351. 801000a: 687b ldr r3, [r7, #4]
  37352. 801000c: 4a1b ldr r2, [pc, #108] @ (801007c <TIM_OC3_SetConfig+0x104>)
  37353. 801000e: 4293 cmp r3, r2
  37354. 8010010: d007 beq.n 8010022 <TIM_OC3_SetConfig+0xaa>
  37355. 8010012: 687b ldr r3, [r7, #4]
  37356. 8010014: 4a1a ldr r2, [pc, #104] @ (8010080 <TIM_OC3_SetConfig+0x108>)
  37357. 8010016: 4293 cmp r3, r2
  37358. 8010018: d003 beq.n 8010022 <TIM_OC3_SetConfig+0xaa>
  37359. 801001a: 687b ldr r3, [r7, #4]
  37360. 801001c: 4a19 ldr r2, [pc, #100] @ (8010084 <TIM_OC3_SetConfig+0x10c>)
  37361. 801001e: 4293 cmp r3, r2
  37362. 8010020: d113 bne.n 801004a <TIM_OC3_SetConfig+0xd2>
  37363. /* Check parameters */
  37364. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37365. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37366. /* Reset the Output Compare and Output Compare N IDLE State */
  37367. tmpcr2 &= ~TIM_CR2_OIS3;
  37368. 8010022: 693b ldr r3, [r7, #16]
  37369. 8010024: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  37370. 8010028: 613b str r3, [r7, #16]
  37371. tmpcr2 &= ~TIM_CR2_OIS3N;
  37372. 801002a: 693b ldr r3, [r7, #16]
  37373. 801002c: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  37374. 8010030: 613b str r3, [r7, #16]
  37375. /* Set the Output Idle state */
  37376. tmpcr2 |= (OC_Config->OCIdleState << 4U);
  37377. 8010032: 683b ldr r3, [r7, #0]
  37378. 8010034: 695b ldr r3, [r3, #20]
  37379. 8010036: 011b lsls r3, r3, #4
  37380. 8010038: 693a ldr r2, [r7, #16]
  37381. 801003a: 4313 orrs r3, r2
  37382. 801003c: 613b str r3, [r7, #16]
  37383. /* Set the Output N Idle state */
  37384. tmpcr2 |= (OC_Config->OCNIdleState << 4U);
  37385. 801003e: 683b ldr r3, [r7, #0]
  37386. 8010040: 699b ldr r3, [r3, #24]
  37387. 8010042: 011b lsls r3, r3, #4
  37388. 8010044: 693a ldr r2, [r7, #16]
  37389. 8010046: 4313 orrs r3, r2
  37390. 8010048: 613b str r3, [r7, #16]
  37391. }
  37392. /* Write to TIMx CR2 */
  37393. TIMx->CR2 = tmpcr2;
  37394. 801004a: 687b ldr r3, [r7, #4]
  37395. 801004c: 693a ldr r2, [r7, #16]
  37396. 801004e: 605a str r2, [r3, #4]
  37397. /* Write to TIMx CCMR2 */
  37398. TIMx->CCMR2 = tmpccmrx;
  37399. 8010050: 687b ldr r3, [r7, #4]
  37400. 8010052: 68fa ldr r2, [r7, #12]
  37401. 8010054: 61da str r2, [r3, #28]
  37402. /* Set the Capture Compare Register value */
  37403. TIMx->CCR3 = OC_Config->Pulse;
  37404. 8010056: 683b ldr r3, [r7, #0]
  37405. 8010058: 685a ldr r2, [r3, #4]
  37406. 801005a: 687b ldr r3, [r7, #4]
  37407. 801005c: 63da str r2, [r3, #60] @ 0x3c
  37408. /* Write to TIMx CCER */
  37409. TIMx->CCER = tmpccer;
  37410. 801005e: 687b ldr r3, [r7, #4]
  37411. 8010060: 697a ldr r2, [r7, #20]
  37412. 8010062: 621a str r2, [r3, #32]
  37413. }
  37414. 8010064: bf00 nop
  37415. 8010066: 371c adds r7, #28
  37416. 8010068: 46bd mov sp, r7
  37417. 801006a: f85d 7b04 ldr.w r7, [sp], #4
  37418. 801006e: 4770 bx lr
  37419. 8010070: fffeff8f .word 0xfffeff8f
  37420. 8010074: 40010000 .word 0x40010000
  37421. 8010078: 40010400 .word 0x40010400
  37422. 801007c: 40014000 .word 0x40014000
  37423. 8010080: 40014400 .word 0x40014400
  37424. 8010084: 40014800 .word 0x40014800
  37425. 08010088 <TIM_OC4_SetConfig>:
  37426. * @param TIMx to select the TIM peripheral
  37427. * @param OC_Config The output configuration structure
  37428. * @retval None
  37429. */
  37430. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37431. {
  37432. 8010088: b480 push {r7}
  37433. 801008a: b087 sub sp, #28
  37434. 801008c: af00 add r7, sp, #0
  37435. 801008e: 6078 str r0, [r7, #4]
  37436. 8010090: 6039 str r1, [r7, #0]
  37437. uint32_t tmpccmrx;
  37438. uint32_t tmpccer;
  37439. uint32_t tmpcr2;
  37440. /* Get the TIMx CCER register value */
  37441. tmpccer = TIMx->CCER;
  37442. 8010092: 687b ldr r3, [r7, #4]
  37443. 8010094: 6a1b ldr r3, [r3, #32]
  37444. 8010096: 613b str r3, [r7, #16]
  37445. /* Disable the Channel 4: Reset the CC4E Bit */
  37446. TIMx->CCER &= ~TIM_CCER_CC4E;
  37447. 8010098: 687b ldr r3, [r7, #4]
  37448. 801009a: 6a1b ldr r3, [r3, #32]
  37449. 801009c: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  37450. 80100a0: 687b ldr r3, [r7, #4]
  37451. 80100a2: 621a str r2, [r3, #32]
  37452. /* Get the TIMx CR2 register value */
  37453. tmpcr2 = TIMx->CR2;
  37454. 80100a4: 687b ldr r3, [r7, #4]
  37455. 80100a6: 685b ldr r3, [r3, #4]
  37456. 80100a8: 617b str r3, [r7, #20]
  37457. /* Get the TIMx CCMR2 register value */
  37458. tmpccmrx = TIMx->CCMR2;
  37459. 80100aa: 687b ldr r3, [r7, #4]
  37460. 80100ac: 69db ldr r3, [r3, #28]
  37461. 80100ae: 60fb str r3, [r7, #12]
  37462. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37463. tmpccmrx &= ~TIM_CCMR2_OC4M;
  37464. 80100b0: 68fa ldr r2, [r7, #12]
  37465. 80100b2: 4b24 ldr r3, [pc, #144] @ (8010144 <TIM_OC4_SetConfig+0xbc>)
  37466. 80100b4: 4013 ands r3, r2
  37467. 80100b6: 60fb str r3, [r7, #12]
  37468. tmpccmrx &= ~TIM_CCMR2_CC4S;
  37469. 80100b8: 68fb ldr r3, [r7, #12]
  37470. 80100ba: f423 7340 bic.w r3, r3, #768 @ 0x300
  37471. 80100be: 60fb str r3, [r7, #12]
  37472. /* Select the Output Compare Mode */
  37473. tmpccmrx |= (OC_Config->OCMode << 8U);
  37474. 80100c0: 683b ldr r3, [r7, #0]
  37475. 80100c2: 681b ldr r3, [r3, #0]
  37476. 80100c4: 021b lsls r3, r3, #8
  37477. 80100c6: 68fa ldr r2, [r7, #12]
  37478. 80100c8: 4313 orrs r3, r2
  37479. 80100ca: 60fb str r3, [r7, #12]
  37480. /* Reset the Output Polarity level */
  37481. tmpccer &= ~TIM_CCER_CC4P;
  37482. 80100cc: 693b ldr r3, [r7, #16]
  37483. 80100ce: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  37484. 80100d2: 613b str r3, [r7, #16]
  37485. /* Set the Output Compare Polarity */
  37486. tmpccer |= (OC_Config->OCPolarity << 12U);
  37487. 80100d4: 683b ldr r3, [r7, #0]
  37488. 80100d6: 689b ldr r3, [r3, #8]
  37489. 80100d8: 031b lsls r3, r3, #12
  37490. 80100da: 693a ldr r2, [r7, #16]
  37491. 80100dc: 4313 orrs r3, r2
  37492. 80100de: 613b str r3, [r7, #16]
  37493. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37494. 80100e0: 687b ldr r3, [r7, #4]
  37495. 80100e2: 4a19 ldr r2, [pc, #100] @ (8010148 <TIM_OC4_SetConfig+0xc0>)
  37496. 80100e4: 4293 cmp r3, r2
  37497. 80100e6: d00f beq.n 8010108 <TIM_OC4_SetConfig+0x80>
  37498. 80100e8: 687b ldr r3, [r7, #4]
  37499. 80100ea: 4a18 ldr r2, [pc, #96] @ (801014c <TIM_OC4_SetConfig+0xc4>)
  37500. 80100ec: 4293 cmp r3, r2
  37501. 80100ee: d00b beq.n 8010108 <TIM_OC4_SetConfig+0x80>
  37502. 80100f0: 687b ldr r3, [r7, #4]
  37503. 80100f2: 4a17 ldr r2, [pc, #92] @ (8010150 <TIM_OC4_SetConfig+0xc8>)
  37504. 80100f4: 4293 cmp r3, r2
  37505. 80100f6: d007 beq.n 8010108 <TIM_OC4_SetConfig+0x80>
  37506. 80100f8: 687b ldr r3, [r7, #4]
  37507. 80100fa: 4a16 ldr r2, [pc, #88] @ (8010154 <TIM_OC4_SetConfig+0xcc>)
  37508. 80100fc: 4293 cmp r3, r2
  37509. 80100fe: d003 beq.n 8010108 <TIM_OC4_SetConfig+0x80>
  37510. 8010100: 687b ldr r3, [r7, #4]
  37511. 8010102: 4a15 ldr r2, [pc, #84] @ (8010158 <TIM_OC4_SetConfig+0xd0>)
  37512. 8010104: 4293 cmp r3, r2
  37513. 8010106: d109 bne.n 801011c <TIM_OC4_SetConfig+0x94>
  37514. {
  37515. /* Check parameters */
  37516. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37517. /* Reset the Output Compare IDLE State */
  37518. tmpcr2 &= ~TIM_CR2_OIS4;
  37519. 8010108: 697b ldr r3, [r7, #20]
  37520. 801010a: f423 4380 bic.w r3, r3, #16384 @ 0x4000
  37521. 801010e: 617b str r3, [r7, #20]
  37522. /* Set the Output Idle state */
  37523. tmpcr2 |= (OC_Config->OCIdleState << 6U);
  37524. 8010110: 683b ldr r3, [r7, #0]
  37525. 8010112: 695b ldr r3, [r3, #20]
  37526. 8010114: 019b lsls r3, r3, #6
  37527. 8010116: 697a ldr r2, [r7, #20]
  37528. 8010118: 4313 orrs r3, r2
  37529. 801011a: 617b str r3, [r7, #20]
  37530. }
  37531. /* Write to TIMx CR2 */
  37532. TIMx->CR2 = tmpcr2;
  37533. 801011c: 687b ldr r3, [r7, #4]
  37534. 801011e: 697a ldr r2, [r7, #20]
  37535. 8010120: 605a str r2, [r3, #4]
  37536. /* Write to TIMx CCMR2 */
  37537. TIMx->CCMR2 = tmpccmrx;
  37538. 8010122: 687b ldr r3, [r7, #4]
  37539. 8010124: 68fa ldr r2, [r7, #12]
  37540. 8010126: 61da str r2, [r3, #28]
  37541. /* Set the Capture Compare Register value */
  37542. TIMx->CCR4 = OC_Config->Pulse;
  37543. 8010128: 683b ldr r3, [r7, #0]
  37544. 801012a: 685a ldr r2, [r3, #4]
  37545. 801012c: 687b ldr r3, [r7, #4]
  37546. 801012e: 641a str r2, [r3, #64] @ 0x40
  37547. /* Write to TIMx CCER */
  37548. TIMx->CCER = tmpccer;
  37549. 8010130: 687b ldr r3, [r7, #4]
  37550. 8010132: 693a ldr r2, [r7, #16]
  37551. 8010134: 621a str r2, [r3, #32]
  37552. }
  37553. 8010136: bf00 nop
  37554. 8010138: 371c adds r7, #28
  37555. 801013a: 46bd mov sp, r7
  37556. 801013c: f85d 7b04 ldr.w r7, [sp], #4
  37557. 8010140: 4770 bx lr
  37558. 8010142: bf00 nop
  37559. 8010144: feff8fff .word 0xfeff8fff
  37560. 8010148: 40010000 .word 0x40010000
  37561. 801014c: 40010400 .word 0x40010400
  37562. 8010150: 40014000 .word 0x40014000
  37563. 8010154: 40014400 .word 0x40014400
  37564. 8010158: 40014800 .word 0x40014800
  37565. 0801015c <TIM_OC5_SetConfig>:
  37566. * @param OC_Config The output configuration structure
  37567. * @retval None
  37568. */
  37569. static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx,
  37570. const TIM_OC_InitTypeDef *OC_Config)
  37571. {
  37572. 801015c: b480 push {r7}
  37573. 801015e: b087 sub sp, #28
  37574. 8010160: af00 add r7, sp, #0
  37575. 8010162: 6078 str r0, [r7, #4]
  37576. 8010164: 6039 str r1, [r7, #0]
  37577. uint32_t tmpccmrx;
  37578. uint32_t tmpccer;
  37579. uint32_t tmpcr2;
  37580. /* Get the TIMx CCER register value */
  37581. tmpccer = TIMx->CCER;
  37582. 8010166: 687b ldr r3, [r7, #4]
  37583. 8010168: 6a1b ldr r3, [r3, #32]
  37584. 801016a: 613b str r3, [r7, #16]
  37585. /* Disable the output: Reset the CCxE Bit */
  37586. TIMx->CCER &= ~TIM_CCER_CC5E;
  37587. 801016c: 687b ldr r3, [r7, #4]
  37588. 801016e: 6a1b ldr r3, [r3, #32]
  37589. 8010170: f423 3280 bic.w r2, r3, #65536 @ 0x10000
  37590. 8010174: 687b ldr r3, [r7, #4]
  37591. 8010176: 621a str r2, [r3, #32]
  37592. /* Get the TIMx CR2 register value */
  37593. tmpcr2 = TIMx->CR2;
  37594. 8010178: 687b ldr r3, [r7, #4]
  37595. 801017a: 685b ldr r3, [r3, #4]
  37596. 801017c: 617b str r3, [r7, #20]
  37597. /* Get the TIMx CCMR1 register value */
  37598. tmpccmrx = TIMx->CCMR3;
  37599. 801017e: 687b ldr r3, [r7, #4]
  37600. 8010180: 6d5b ldr r3, [r3, #84] @ 0x54
  37601. 8010182: 60fb str r3, [r7, #12]
  37602. /* Reset the Output Compare Mode Bits */
  37603. tmpccmrx &= ~(TIM_CCMR3_OC5M);
  37604. 8010184: 68fa ldr r2, [r7, #12]
  37605. 8010186: 4b21 ldr r3, [pc, #132] @ (801020c <TIM_OC5_SetConfig+0xb0>)
  37606. 8010188: 4013 ands r3, r2
  37607. 801018a: 60fb str r3, [r7, #12]
  37608. /* Select the Output Compare Mode */
  37609. tmpccmrx |= OC_Config->OCMode;
  37610. 801018c: 683b ldr r3, [r7, #0]
  37611. 801018e: 681b ldr r3, [r3, #0]
  37612. 8010190: 68fa ldr r2, [r7, #12]
  37613. 8010192: 4313 orrs r3, r2
  37614. 8010194: 60fb str r3, [r7, #12]
  37615. /* Reset the Output Polarity level */
  37616. tmpccer &= ~TIM_CCER_CC5P;
  37617. 8010196: 693b ldr r3, [r7, #16]
  37618. 8010198: f423 3300 bic.w r3, r3, #131072 @ 0x20000
  37619. 801019c: 613b str r3, [r7, #16]
  37620. /* Set the Output Compare Polarity */
  37621. tmpccer |= (OC_Config->OCPolarity << 16U);
  37622. 801019e: 683b ldr r3, [r7, #0]
  37623. 80101a0: 689b ldr r3, [r3, #8]
  37624. 80101a2: 041b lsls r3, r3, #16
  37625. 80101a4: 693a ldr r2, [r7, #16]
  37626. 80101a6: 4313 orrs r3, r2
  37627. 80101a8: 613b str r3, [r7, #16]
  37628. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37629. 80101aa: 687b ldr r3, [r7, #4]
  37630. 80101ac: 4a18 ldr r2, [pc, #96] @ (8010210 <TIM_OC5_SetConfig+0xb4>)
  37631. 80101ae: 4293 cmp r3, r2
  37632. 80101b0: d00f beq.n 80101d2 <TIM_OC5_SetConfig+0x76>
  37633. 80101b2: 687b ldr r3, [r7, #4]
  37634. 80101b4: 4a17 ldr r2, [pc, #92] @ (8010214 <TIM_OC5_SetConfig+0xb8>)
  37635. 80101b6: 4293 cmp r3, r2
  37636. 80101b8: d00b beq.n 80101d2 <TIM_OC5_SetConfig+0x76>
  37637. 80101ba: 687b ldr r3, [r7, #4]
  37638. 80101bc: 4a16 ldr r2, [pc, #88] @ (8010218 <TIM_OC5_SetConfig+0xbc>)
  37639. 80101be: 4293 cmp r3, r2
  37640. 80101c0: d007 beq.n 80101d2 <TIM_OC5_SetConfig+0x76>
  37641. 80101c2: 687b ldr r3, [r7, #4]
  37642. 80101c4: 4a15 ldr r2, [pc, #84] @ (801021c <TIM_OC5_SetConfig+0xc0>)
  37643. 80101c6: 4293 cmp r3, r2
  37644. 80101c8: d003 beq.n 80101d2 <TIM_OC5_SetConfig+0x76>
  37645. 80101ca: 687b ldr r3, [r7, #4]
  37646. 80101cc: 4a14 ldr r2, [pc, #80] @ (8010220 <TIM_OC5_SetConfig+0xc4>)
  37647. 80101ce: 4293 cmp r3, r2
  37648. 80101d0: d109 bne.n 80101e6 <TIM_OC5_SetConfig+0x8a>
  37649. {
  37650. /* Reset the Output Compare IDLE State */
  37651. tmpcr2 &= ~TIM_CR2_OIS5;
  37652. 80101d2: 697b ldr r3, [r7, #20]
  37653. 80101d4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  37654. 80101d8: 617b str r3, [r7, #20]
  37655. /* Set the Output Idle state */
  37656. tmpcr2 |= (OC_Config->OCIdleState << 8U);
  37657. 80101da: 683b ldr r3, [r7, #0]
  37658. 80101dc: 695b ldr r3, [r3, #20]
  37659. 80101de: 021b lsls r3, r3, #8
  37660. 80101e0: 697a ldr r2, [r7, #20]
  37661. 80101e2: 4313 orrs r3, r2
  37662. 80101e4: 617b str r3, [r7, #20]
  37663. }
  37664. /* Write to TIMx CR2 */
  37665. TIMx->CR2 = tmpcr2;
  37666. 80101e6: 687b ldr r3, [r7, #4]
  37667. 80101e8: 697a ldr r2, [r7, #20]
  37668. 80101ea: 605a str r2, [r3, #4]
  37669. /* Write to TIMx CCMR3 */
  37670. TIMx->CCMR3 = tmpccmrx;
  37671. 80101ec: 687b ldr r3, [r7, #4]
  37672. 80101ee: 68fa ldr r2, [r7, #12]
  37673. 80101f0: 655a str r2, [r3, #84] @ 0x54
  37674. /* Set the Capture Compare Register value */
  37675. TIMx->CCR5 = OC_Config->Pulse;
  37676. 80101f2: 683b ldr r3, [r7, #0]
  37677. 80101f4: 685a ldr r2, [r3, #4]
  37678. 80101f6: 687b ldr r3, [r7, #4]
  37679. 80101f8: 659a str r2, [r3, #88] @ 0x58
  37680. /* Write to TIMx CCER */
  37681. TIMx->CCER = tmpccer;
  37682. 80101fa: 687b ldr r3, [r7, #4]
  37683. 80101fc: 693a ldr r2, [r7, #16]
  37684. 80101fe: 621a str r2, [r3, #32]
  37685. }
  37686. 8010200: bf00 nop
  37687. 8010202: 371c adds r7, #28
  37688. 8010204: 46bd mov sp, r7
  37689. 8010206: f85d 7b04 ldr.w r7, [sp], #4
  37690. 801020a: 4770 bx lr
  37691. 801020c: fffeff8f .word 0xfffeff8f
  37692. 8010210: 40010000 .word 0x40010000
  37693. 8010214: 40010400 .word 0x40010400
  37694. 8010218: 40014000 .word 0x40014000
  37695. 801021c: 40014400 .word 0x40014400
  37696. 8010220: 40014800 .word 0x40014800
  37697. 08010224 <TIM_OC6_SetConfig>:
  37698. * @param OC_Config The output configuration structure
  37699. * @retval None
  37700. */
  37701. static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx,
  37702. const TIM_OC_InitTypeDef *OC_Config)
  37703. {
  37704. 8010224: b480 push {r7}
  37705. 8010226: b087 sub sp, #28
  37706. 8010228: af00 add r7, sp, #0
  37707. 801022a: 6078 str r0, [r7, #4]
  37708. 801022c: 6039 str r1, [r7, #0]
  37709. uint32_t tmpccmrx;
  37710. uint32_t tmpccer;
  37711. uint32_t tmpcr2;
  37712. /* Get the TIMx CCER register value */
  37713. tmpccer = TIMx->CCER;
  37714. 801022e: 687b ldr r3, [r7, #4]
  37715. 8010230: 6a1b ldr r3, [r3, #32]
  37716. 8010232: 613b str r3, [r7, #16]
  37717. /* Disable the output: Reset the CCxE Bit */
  37718. TIMx->CCER &= ~TIM_CCER_CC6E;
  37719. 8010234: 687b ldr r3, [r7, #4]
  37720. 8010236: 6a1b ldr r3, [r3, #32]
  37721. 8010238: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  37722. 801023c: 687b ldr r3, [r7, #4]
  37723. 801023e: 621a str r2, [r3, #32]
  37724. /* Get the TIMx CR2 register value */
  37725. tmpcr2 = TIMx->CR2;
  37726. 8010240: 687b ldr r3, [r7, #4]
  37727. 8010242: 685b ldr r3, [r3, #4]
  37728. 8010244: 617b str r3, [r7, #20]
  37729. /* Get the TIMx CCMR1 register value */
  37730. tmpccmrx = TIMx->CCMR3;
  37731. 8010246: 687b ldr r3, [r7, #4]
  37732. 8010248: 6d5b ldr r3, [r3, #84] @ 0x54
  37733. 801024a: 60fb str r3, [r7, #12]
  37734. /* Reset the Output Compare Mode Bits */
  37735. tmpccmrx &= ~(TIM_CCMR3_OC6M);
  37736. 801024c: 68fa ldr r2, [r7, #12]
  37737. 801024e: 4b22 ldr r3, [pc, #136] @ (80102d8 <TIM_OC6_SetConfig+0xb4>)
  37738. 8010250: 4013 ands r3, r2
  37739. 8010252: 60fb str r3, [r7, #12]
  37740. /* Select the Output Compare Mode */
  37741. tmpccmrx |= (OC_Config->OCMode << 8U);
  37742. 8010254: 683b ldr r3, [r7, #0]
  37743. 8010256: 681b ldr r3, [r3, #0]
  37744. 8010258: 021b lsls r3, r3, #8
  37745. 801025a: 68fa ldr r2, [r7, #12]
  37746. 801025c: 4313 orrs r3, r2
  37747. 801025e: 60fb str r3, [r7, #12]
  37748. /* Reset the Output Polarity level */
  37749. tmpccer &= (uint32_t)~TIM_CCER_CC6P;
  37750. 8010260: 693b ldr r3, [r7, #16]
  37751. 8010262: f423 1300 bic.w r3, r3, #2097152 @ 0x200000
  37752. 8010266: 613b str r3, [r7, #16]
  37753. /* Set the Output Compare Polarity */
  37754. tmpccer |= (OC_Config->OCPolarity << 20U);
  37755. 8010268: 683b ldr r3, [r7, #0]
  37756. 801026a: 689b ldr r3, [r3, #8]
  37757. 801026c: 051b lsls r3, r3, #20
  37758. 801026e: 693a ldr r2, [r7, #16]
  37759. 8010270: 4313 orrs r3, r2
  37760. 8010272: 613b str r3, [r7, #16]
  37761. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37762. 8010274: 687b ldr r3, [r7, #4]
  37763. 8010276: 4a19 ldr r2, [pc, #100] @ (80102dc <TIM_OC6_SetConfig+0xb8>)
  37764. 8010278: 4293 cmp r3, r2
  37765. 801027a: d00f beq.n 801029c <TIM_OC6_SetConfig+0x78>
  37766. 801027c: 687b ldr r3, [r7, #4]
  37767. 801027e: 4a18 ldr r2, [pc, #96] @ (80102e0 <TIM_OC6_SetConfig+0xbc>)
  37768. 8010280: 4293 cmp r3, r2
  37769. 8010282: d00b beq.n 801029c <TIM_OC6_SetConfig+0x78>
  37770. 8010284: 687b ldr r3, [r7, #4]
  37771. 8010286: 4a17 ldr r2, [pc, #92] @ (80102e4 <TIM_OC6_SetConfig+0xc0>)
  37772. 8010288: 4293 cmp r3, r2
  37773. 801028a: d007 beq.n 801029c <TIM_OC6_SetConfig+0x78>
  37774. 801028c: 687b ldr r3, [r7, #4]
  37775. 801028e: 4a16 ldr r2, [pc, #88] @ (80102e8 <TIM_OC6_SetConfig+0xc4>)
  37776. 8010290: 4293 cmp r3, r2
  37777. 8010292: d003 beq.n 801029c <TIM_OC6_SetConfig+0x78>
  37778. 8010294: 687b ldr r3, [r7, #4]
  37779. 8010296: 4a15 ldr r2, [pc, #84] @ (80102ec <TIM_OC6_SetConfig+0xc8>)
  37780. 8010298: 4293 cmp r3, r2
  37781. 801029a: d109 bne.n 80102b0 <TIM_OC6_SetConfig+0x8c>
  37782. {
  37783. /* Reset the Output Compare IDLE State */
  37784. tmpcr2 &= ~TIM_CR2_OIS6;
  37785. 801029c: 697b ldr r3, [r7, #20]
  37786. 801029e: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  37787. 80102a2: 617b str r3, [r7, #20]
  37788. /* Set the Output Idle state */
  37789. tmpcr2 |= (OC_Config->OCIdleState << 10U);
  37790. 80102a4: 683b ldr r3, [r7, #0]
  37791. 80102a6: 695b ldr r3, [r3, #20]
  37792. 80102a8: 029b lsls r3, r3, #10
  37793. 80102aa: 697a ldr r2, [r7, #20]
  37794. 80102ac: 4313 orrs r3, r2
  37795. 80102ae: 617b str r3, [r7, #20]
  37796. }
  37797. /* Write to TIMx CR2 */
  37798. TIMx->CR2 = tmpcr2;
  37799. 80102b0: 687b ldr r3, [r7, #4]
  37800. 80102b2: 697a ldr r2, [r7, #20]
  37801. 80102b4: 605a str r2, [r3, #4]
  37802. /* Write to TIMx CCMR3 */
  37803. TIMx->CCMR3 = tmpccmrx;
  37804. 80102b6: 687b ldr r3, [r7, #4]
  37805. 80102b8: 68fa ldr r2, [r7, #12]
  37806. 80102ba: 655a str r2, [r3, #84] @ 0x54
  37807. /* Set the Capture Compare Register value */
  37808. TIMx->CCR6 = OC_Config->Pulse;
  37809. 80102bc: 683b ldr r3, [r7, #0]
  37810. 80102be: 685a ldr r2, [r3, #4]
  37811. 80102c0: 687b ldr r3, [r7, #4]
  37812. 80102c2: 65da str r2, [r3, #92] @ 0x5c
  37813. /* Write to TIMx CCER */
  37814. TIMx->CCER = tmpccer;
  37815. 80102c4: 687b ldr r3, [r7, #4]
  37816. 80102c6: 693a ldr r2, [r7, #16]
  37817. 80102c8: 621a str r2, [r3, #32]
  37818. }
  37819. 80102ca: bf00 nop
  37820. 80102cc: 371c adds r7, #28
  37821. 80102ce: 46bd mov sp, r7
  37822. 80102d0: f85d 7b04 ldr.w r7, [sp], #4
  37823. 80102d4: 4770 bx lr
  37824. 80102d6: bf00 nop
  37825. 80102d8: feff8fff .word 0xfeff8fff
  37826. 80102dc: 40010000 .word 0x40010000
  37827. 80102e0: 40010400 .word 0x40010400
  37828. 80102e4: 40014000 .word 0x40014000
  37829. 80102e8: 40014400 .word 0x40014400
  37830. 80102ec: 40014800 .word 0x40014800
  37831. 080102f0 <TIM_TI1_SetConfig>:
  37832. * (on channel2 path) is used as the input signal. Therefore CCMR1 must be
  37833. * protected against un-initialized filter and polarity values.
  37834. */
  37835. void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  37836. uint32_t TIM_ICFilter)
  37837. {
  37838. 80102f0: b480 push {r7}
  37839. 80102f2: b087 sub sp, #28
  37840. 80102f4: af00 add r7, sp, #0
  37841. 80102f6: 60f8 str r0, [r7, #12]
  37842. 80102f8: 60b9 str r1, [r7, #8]
  37843. 80102fa: 607a str r2, [r7, #4]
  37844. 80102fc: 603b str r3, [r7, #0]
  37845. uint32_t tmpccmr1;
  37846. uint32_t tmpccer;
  37847. /* Disable the Channel 1: Reset the CC1E Bit */
  37848. tmpccer = TIMx->CCER;
  37849. 80102fe: 68fb ldr r3, [r7, #12]
  37850. 8010300: 6a1b ldr r3, [r3, #32]
  37851. 8010302: 613b str r3, [r7, #16]
  37852. TIMx->CCER &= ~TIM_CCER_CC1E;
  37853. 8010304: 68fb ldr r3, [r7, #12]
  37854. 8010306: 6a1b ldr r3, [r3, #32]
  37855. 8010308: f023 0201 bic.w r2, r3, #1
  37856. 801030c: 68fb ldr r3, [r7, #12]
  37857. 801030e: 621a str r2, [r3, #32]
  37858. tmpccmr1 = TIMx->CCMR1;
  37859. 8010310: 68fb ldr r3, [r7, #12]
  37860. 8010312: 699b ldr r3, [r3, #24]
  37861. 8010314: 617b str r3, [r7, #20]
  37862. /* Select the Input */
  37863. if (IS_TIM_CC2_INSTANCE(TIMx) != RESET)
  37864. 8010316: 68fb ldr r3, [r7, #12]
  37865. 8010318: 4a28 ldr r2, [pc, #160] @ (80103bc <TIM_TI1_SetConfig+0xcc>)
  37866. 801031a: 4293 cmp r3, r2
  37867. 801031c: d01b beq.n 8010356 <TIM_TI1_SetConfig+0x66>
  37868. 801031e: 68fb ldr r3, [r7, #12]
  37869. 8010320: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  37870. 8010324: d017 beq.n 8010356 <TIM_TI1_SetConfig+0x66>
  37871. 8010326: 68fb ldr r3, [r7, #12]
  37872. 8010328: 4a25 ldr r2, [pc, #148] @ (80103c0 <TIM_TI1_SetConfig+0xd0>)
  37873. 801032a: 4293 cmp r3, r2
  37874. 801032c: d013 beq.n 8010356 <TIM_TI1_SetConfig+0x66>
  37875. 801032e: 68fb ldr r3, [r7, #12]
  37876. 8010330: 4a24 ldr r2, [pc, #144] @ (80103c4 <TIM_TI1_SetConfig+0xd4>)
  37877. 8010332: 4293 cmp r3, r2
  37878. 8010334: d00f beq.n 8010356 <TIM_TI1_SetConfig+0x66>
  37879. 8010336: 68fb ldr r3, [r7, #12]
  37880. 8010338: 4a23 ldr r2, [pc, #140] @ (80103c8 <TIM_TI1_SetConfig+0xd8>)
  37881. 801033a: 4293 cmp r3, r2
  37882. 801033c: d00b beq.n 8010356 <TIM_TI1_SetConfig+0x66>
  37883. 801033e: 68fb ldr r3, [r7, #12]
  37884. 8010340: 4a22 ldr r2, [pc, #136] @ (80103cc <TIM_TI1_SetConfig+0xdc>)
  37885. 8010342: 4293 cmp r3, r2
  37886. 8010344: d007 beq.n 8010356 <TIM_TI1_SetConfig+0x66>
  37887. 8010346: 68fb ldr r3, [r7, #12]
  37888. 8010348: 4a21 ldr r2, [pc, #132] @ (80103d0 <TIM_TI1_SetConfig+0xe0>)
  37889. 801034a: 4293 cmp r3, r2
  37890. 801034c: d003 beq.n 8010356 <TIM_TI1_SetConfig+0x66>
  37891. 801034e: 68fb ldr r3, [r7, #12]
  37892. 8010350: 4a20 ldr r2, [pc, #128] @ (80103d4 <TIM_TI1_SetConfig+0xe4>)
  37893. 8010352: 4293 cmp r3, r2
  37894. 8010354: d101 bne.n 801035a <TIM_TI1_SetConfig+0x6a>
  37895. 8010356: 2301 movs r3, #1
  37896. 8010358: e000 b.n 801035c <TIM_TI1_SetConfig+0x6c>
  37897. 801035a: 2300 movs r3, #0
  37898. 801035c: 2b00 cmp r3, #0
  37899. 801035e: d008 beq.n 8010372 <TIM_TI1_SetConfig+0x82>
  37900. {
  37901. tmpccmr1 &= ~TIM_CCMR1_CC1S;
  37902. 8010360: 697b ldr r3, [r7, #20]
  37903. 8010362: f023 0303 bic.w r3, r3, #3
  37904. 8010366: 617b str r3, [r7, #20]
  37905. tmpccmr1 |= TIM_ICSelection;
  37906. 8010368: 697a ldr r2, [r7, #20]
  37907. 801036a: 687b ldr r3, [r7, #4]
  37908. 801036c: 4313 orrs r3, r2
  37909. 801036e: 617b str r3, [r7, #20]
  37910. 8010370: e003 b.n 801037a <TIM_TI1_SetConfig+0x8a>
  37911. }
  37912. else
  37913. {
  37914. tmpccmr1 |= TIM_CCMR1_CC1S_0;
  37915. 8010372: 697b ldr r3, [r7, #20]
  37916. 8010374: f043 0301 orr.w r3, r3, #1
  37917. 8010378: 617b str r3, [r7, #20]
  37918. }
  37919. /* Set the filter */
  37920. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  37921. 801037a: 697b ldr r3, [r7, #20]
  37922. 801037c: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  37923. 8010380: 617b str r3, [r7, #20]
  37924. tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F);
  37925. 8010382: 683b ldr r3, [r7, #0]
  37926. 8010384: 011b lsls r3, r3, #4
  37927. 8010386: b2db uxtb r3, r3
  37928. 8010388: 697a ldr r2, [r7, #20]
  37929. 801038a: 4313 orrs r3, r2
  37930. 801038c: 617b str r3, [r7, #20]
  37931. /* Select the Polarity and set the CC1E Bit */
  37932. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  37933. 801038e: 693b ldr r3, [r7, #16]
  37934. 8010390: f023 030a bic.w r3, r3, #10
  37935. 8010394: 613b str r3, [r7, #16]
  37936. tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP));
  37937. 8010396: 68bb ldr r3, [r7, #8]
  37938. 8010398: f003 030a and.w r3, r3, #10
  37939. 801039c: 693a ldr r2, [r7, #16]
  37940. 801039e: 4313 orrs r3, r2
  37941. 80103a0: 613b str r3, [r7, #16]
  37942. /* Write to TIMx CCMR1 and CCER registers */
  37943. TIMx->CCMR1 = tmpccmr1;
  37944. 80103a2: 68fb ldr r3, [r7, #12]
  37945. 80103a4: 697a ldr r2, [r7, #20]
  37946. 80103a6: 619a str r2, [r3, #24]
  37947. TIMx->CCER = tmpccer;
  37948. 80103a8: 68fb ldr r3, [r7, #12]
  37949. 80103aa: 693a ldr r2, [r7, #16]
  37950. 80103ac: 621a str r2, [r3, #32]
  37951. }
  37952. 80103ae: bf00 nop
  37953. 80103b0: 371c adds r7, #28
  37954. 80103b2: 46bd mov sp, r7
  37955. 80103b4: f85d 7b04 ldr.w r7, [sp], #4
  37956. 80103b8: 4770 bx lr
  37957. 80103ba: bf00 nop
  37958. 80103bc: 40010000 .word 0x40010000
  37959. 80103c0: 40000400 .word 0x40000400
  37960. 80103c4: 40000800 .word 0x40000800
  37961. 80103c8: 40000c00 .word 0x40000c00
  37962. 80103cc: 40010400 .word 0x40010400
  37963. 80103d0: 40001800 .word 0x40001800
  37964. 80103d4: 40014000 .word 0x40014000
  37965. 080103d8 <TIM_TI1_ConfigInputStage>:
  37966. * @param TIM_ICFilter Specifies the Input Capture Filter.
  37967. * This parameter must be a value between 0x00 and 0x0F.
  37968. * @retval None
  37969. */
  37970. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  37971. {
  37972. 80103d8: b480 push {r7}
  37973. 80103da: b087 sub sp, #28
  37974. 80103dc: af00 add r7, sp, #0
  37975. 80103de: 60f8 str r0, [r7, #12]
  37976. 80103e0: 60b9 str r1, [r7, #8]
  37977. 80103e2: 607a str r2, [r7, #4]
  37978. uint32_t tmpccmr1;
  37979. uint32_t tmpccer;
  37980. /* Disable the Channel 1: Reset the CC1E Bit */
  37981. tmpccer = TIMx->CCER;
  37982. 80103e4: 68fb ldr r3, [r7, #12]
  37983. 80103e6: 6a1b ldr r3, [r3, #32]
  37984. 80103e8: 617b str r3, [r7, #20]
  37985. TIMx->CCER &= ~TIM_CCER_CC1E;
  37986. 80103ea: 68fb ldr r3, [r7, #12]
  37987. 80103ec: 6a1b ldr r3, [r3, #32]
  37988. 80103ee: f023 0201 bic.w r2, r3, #1
  37989. 80103f2: 68fb ldr r3, [r7, #12]
  37990. 80103f4: 621a str r2, [r3, #32]
  37991. tmpccmr1 = TIMx->CCMR1;
  37992. 80103f6: 68fb ldr r3, [r7, #12]
  37993. 80103f8: 699b ldr r3, [r3, #24]
  37994. 80103fa: 613b str r3, [r7, #16]
  37995. /* Set the filter */
  37996. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  37997. 80103fc: 693b ldr r3, [r7, #16]
  37998. 80103fe: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  37999. 8010402: 613b str r3, [r7, #16]
  38000. tmpccmr1 |= (TIM_ICFilter << 4U);
  38001. 8010404: 687b ldr r3, [r7, #4]
  38002. 8010406: 011b lsls r3, r3, #4
  38003. 8010408: 693a ldr r2, [r7, #16]
  38004. 801040a: 4313 orrs r3, r2
  38005. 801040c: 613b str r3, [r7, #16]
  38006. /* Select the Polarity and set the CC1E Bit */
  38007. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  38008. 801040e: 697b ldr r3, [r7, #20]
  38009. 8010410: f023 030a bic.w r3, r3, #10
  38010. 8010414: 617b str r3, [r7, #20]
  38011. tmpccer |= TIM_ICPolarity;
  38012. 8010416: 697a ldr r2, [r7, #20]
  38013. 8010418: 68bb ldr r3, [r7, #8]
  38014. 801041a: 4313 orrs r3, r2
  38015. 801041c: 617b str r3, [r7, #20]
  38016. /* Write to TIMx CCMR1 and CCER registers */
  38017. TIMx->CCMR1 = tmpccmr1;
  38018. 801041e: 68fb ldr r3, [r7, #12]
  38019. 8010420: 693a ldr r2, [r7, #16]
  38020. 8010422: 619a str r2, [r3, #24]
  38021. TIMx->CCER = tmpccer;
  38022. 8010424: 68fb ldr r3, [r7, #12]
  38023. 8010426: 697a ldr r2, [r7, #20]
  38024. 8010428: 621a str r2, [r3, #32]
  38025. }
  38026. 801042a: bf00 nop
  38027. 801042c: 371c adds r7, #28
  38028. 801042e: 46bd mov sp, r7
  38029. 8010430: f85d 7b04 ldr.w r7, [sp], #4
  38030. 8010434: 4770 bx lr
  38031. 08010436 <TIM_TI2_SetConfig>:
  38032. * (on channel1 path) is used as the input signal. Therefore CCMR1 must be
  38033. * protected against un-initialized filter and polarity values.
  38034. */
  38035. static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38036. uint32_t TIM_ICFilter)
  38037. {
  38038. 8010436: b480 push {r7}
  38039. 8010438: b087 sub sp, #28
  38040. 801043a: af00 add r7, sp, #0
  38041. 801043c: 60f8 str r0, [r7, #12]
  38042. 801043e: 60b9 str r1, [r7, #8]
  38043. 8010440: 607a str r2, [r7, #4]
  38044. 8010442: 603b str r3, [r7, #0]
  38045. uint32_t tmpccmr1;
  38046. uint32_t tmpccer;
  38047. /* Disable the Channel 2: Reset the CC2E Bit */
  38048. tmpccer = TIMx->CCER;
  38049. 8010444: 68fb ldr r3, [r7, #12]
  38050. 8010446: 6a1b ldr r3, [r3, #32]
  38051. 8010448: 617b str r3, [r7, #20]
  38052. TIMx->CCER &= ~TIM_CCER_CC2E;
  38053. 801044a: 68fb ldr r3, [r7, #12]
  38054. 801044c: 6a1b ldr r3, [r3, #32]
  38055. 801044e: f023 0210 bic.w r2, r3, #16
  38056. 8010452: 68fb ldr r3, [r7, #12]
  38057. 8010454: 621a str r2, [r3, #32]
  38058. tmpccmr1 = TIMx->CCMR1;
  38059. 8010456: 68fb ldr r3, [r7, #12]
  38060. 8010458: 699b ldr r3, [r3, #24]
  38061. 801045a: 613b str r3, [r7, #16]
  38062. /* Select the Input */
  38063. tmpccmr1 &= ~TIM_CCMR1_CC2S;
  38064. 801045c: 693b ldr r3, [r7, #16]
  38065. 801045e: f423 7340 bic.w r3, r3, #768 @ 0x300
  38066. 8010462: 613b str r3, [r7, #16]
  38067. tmpccmr1 |= (TIM_ICSelection << 8U);
  38068. 8010464: 687b ldr r3, [r7, #4]
  38069. 8010466: 021b lsls r3, r3, #8
  38070. 8010468: 693a ldr r2, [r7, #16]
  38071. 801046a: 4313 orrs r3, r2
  38072. 801046c: 613b str r3, [r7, #16]
  38073. /* Set the filter */
  38074. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  38075. 801046e: 693b ldr r3, [r7, #16]
  38076. 8010470: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38077. 8010474: 613b str r3, [r7, #16]
  38078. tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F);
  38079. 8010476: 683b ldr r3, [r7, #0]
  38080. 8010478: 031b lsls r3, r3, #12
  38081. 801047a: b29b uxth r3, r3
  38082. 801047c: 693a ldr r2, [r7, #16]
  38083. 801047e: 4313 orrs r3, r2
  38084. 8010480: 613b str r3, [r7, #16]
  38085. /* Select the Polarity and set the CC2E Bit */
  38086. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  38087. 8010482: 697b ldr r3, [r7, #20]
  38088. 8010484: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  38089. 8010488: 617b str r3, [r7, #20]
  38090. tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP));
  38091. 801048a: 68bb ldr r3, [r7, #8]
  38092. 801048c: 011b lsls r3, r3, #4
  38093. 801048e: f003 03a0 and.w r3, r3, #160 @ 0xa0
  38094. 8010492: 697a ldr r2, [r7, #20]
  38095. 8010494: 4313 orrs r3, r2
  38096. 8010496: 617b str r3, [r7, #20]
  38097. /* Write to TIMx CCMR1 and CCER registers */
  38098. TIMx->CCMR1 = tmpccmr1 ;
  38099. 8010498: 68fb ldr r3, [r7, #12]
  38100. 801049a: 693a ldr r2, [r7, #16]
  38101. 801049c: 619a str r2, [r3, #24]
  38102. TIMx->CCER = tmpccer;
  38103. 801049e: 68fb ldr r3, [r7, #12]
  38104. 80104a0: 697a ldr r2, [r7, #20]
  38105. 80104a2: 621a str r2, [r3, #32]
  38106. }
  38107. 80104a4: bf00 nop
  38108. 80104a6: 371c adds r7, #28
  38109. 80104a8: 46bd mov sp, r7
  38110. 80104aa: f85d 7b04 ldr.w r7, [sp], #4
  38111. 80104ae: 4770 bx lr
  38112. 080104b0 <TIM_TI2_ConfigInputStage>:
  38113. * @param TIM_ICFilter Specifies the Input Capture Filter.
  38114. * This parameter must be a value between 0x00 and 0x0F.
  38115. * @retval None
  38116. */
  38117. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  38118. {
  38119. 80104b0: b480 push {r7}
  38120. 80104b2: b087 sub sp, #28
  38121. 80104b4: af00 add r7, sp, #0
  38122. 80104b6: 60f8 str r0, [r7, #12]
  38123. 80104b8: 60b9 str r1, [r7, #8]
  38124. 80104ba: 607a str r2, [r7, #4]
  38125. uint32_t tmpccmr1;
  38126. uint32_t tmpccer;
  38127. /* Disable the Channel 2: Reset the CC2E Bit */
  38128. tmpccer = TIMx->CCER;
  38129. 80104bc: 68fb ldr r3, [r7, #12]
  38130. 80104be: 6a1b ldr r3, [r3, #32]
  38131. 80104c0: 617b str r3, [r7, #20]
  38132. TIMx->CCER &= ~TIM_CCER_CC2E;
  38133. 80104c2: 68fb ldr r3, [r7, #12]
  38134. 80104c4: 6a1b ldr r3, [r3, #32]
  38135. 80104c6: f023 0210 bic.w r2, r3, #16
  38136. 80104ca: 68fb ldr r3, [r7, #12]
  38137. 80104cc: 621a str r2, [r3, #32]
  38138. tmpccmr1 = TIMx->CCMR1;
  38139. 80104ce: 68fb ldr r3, [r7, #12]
  38140. 80104d0: 699b ldr r3, [r3, #24]
  38141. 80104d2: 613b str r3, [r7, #16]
  38142. /* Set the filter */
  38143. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  38144. 80104d4: 693b ldr r3, [r7, #16]
  38145. 80104d6: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38146. 80104da: 613b str r3, [r7, #16]
  38147. tmpccmr1 |= (TIM_ICFilter << 12U);
  38148. 80104dc: 687b ldr r3, [r7, #4]
  38149. 80104de: 031b lsls r3, r3, #12
  38150. 80104e0: 693a ldr r2, [r7, #16]
  38151. 80104e2: 4313 orrs r3, r2
  38152. 80104e4: 613b str r3, [r7, #16]
  38153. /* Select the Polarity and set the CC2E Bit */
  38154. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  38155. 80104e6: 697b ldr r3, [r7, #20]
  38156. 80104e8: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  38157. 80104ec: 617b str r3, [r7, #20]
  38158. tmpccer |= (TIM_ICPolarity << 4U);
  38159. 80104ee: 68bb ldr r3, [r7, #8]
  38160. 80104f0: 011b lsls r3, r3, #4
  38161. 80104f2: 697a ldr r2, [r7, #20]
  38162. 80104f4: 4313 orrs r3, r2
  38163. 80104f6: 617b str r3, [r7, #20]
  38164. /* Write to TIMx CCMR1 and CCER registers */
  38165. TIMx->CCMR1 = tmpccmr1 ;
  38166. 80104f8: 68fb ldr r3, [r7, #12]
  38167. 80104fa: 693a ldr r2, [r7, #16]
  38168. 80104fc: 619a str r2, [r3, #24]
  38169. TIMx->CCER = tmpccer;
  38170. 80104fe: 68fb ldr r3, [r7, #12]
  38171. 8010500: 697a ldr r2, [r7, #20]
  38172. 8010502: 621a str r2, [r3, #32]
  38173. }
  38174. 8010504: bf00 nop
  38175. 8010506: 371c adds r7, #28
  38176. 8010508: 46bd mov sp, r7
  38177. 801050a: f85d 7b04 ldr.w r7, [sp], #4
  38178. 801050e: 4770 bx lr
  38179. 08010510 <TIM_TI3_SetConfig>:
  38180. * (on channel1 path) is used as the input signal. Therefore CCMR2 must be
  38181. * protected against un-initialized filter and polarity values.
  38182. */
  38183. static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38184. uint32_t TIM_ICFilter)
  38185. {
  38186. 8010510: b480 push {r7}
  38187. 8010512: b087 sub sp, #28
  38188. 8010514: af00 add r7, sp, #0
  38189. 8010516: 60f8 str r0, [r7, #12]
  38190. 8010518: 60b9 str r1, [r7, #8]
  38191. 801051a: 607a str r2, [r7, #4]
  38192. 801051c: 603b str r3, [r7, #0]
  38193. uint32_t tmpccmr2;
  38194. uint32_t tmpccer;
  38195. /* Disable the Channel 3: Reset the CC3E Bit */
  38196. tmpccer = TIMx->CCER;
  38197. 801051e: 68fb ldr r3, [r7, #12]
  38198. 8010520: 6a1b ldr r3, [r3, #32]
  38199. 8010522: 617b str r3, [r7, #20]
  38200. TIMx->CCER &= ~TIM_CCER_CC3E;
  38201. 8010524: 68fb ldr r3, [r7, #12]
  38202. 8010526: 6a1b ldr r3, [r3, #32]
  38203. 8010528: f423 7280 bic.w r2, r3, #256 @ 0x100
  38204. 801052c: 68fb ldr r3, [r7, #12]
  38205. 801052e: 621a str r2, [r3, #32]
  38206. tmpccmr2 = TIMx->CCMR2;
  38207. 8010530: 68fb ldr r3, [r7, #12]
  38208. 8010532: 69db ldr r3, [r3, #28]
  38209. 8010534: 613b str r3, [r7, #16]
  38210. /* Select the Input */
  38211. tmpccmr2 &= ~TIM_CCMR2_CC3S;
  38212. 8010536: 693b ldr r3, [r7, #16]
  38213. 8010538: f023 0303 bic.w r3, r3, #3
  38214. 801053c: 613b str r3, [r7, #16]
  38215. tmpccmr2 |= TIM_ICSelection;
  38216. 801053e: 693a ldr r2, [r7, #16]
  38217. 8010540: 687b ldr r3, [r7, #4]
  38218. 8010542: 4313 orrs r3, r2
  38219. 8010544: 613b str r3, [r7, #16]
  38220. /* Set the filter */
  38221. tmpccmr2 &= ~TIM_CCMR2_IC3F;
  38222. 8010546: 693b ldr r3, [r7, #16]
  38223. 8010548: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  38224. 801054c: 613b str r3, [r7, #16]
  38225. tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F);
  38226. 801054e: 683b ldr r3, [r7, #0]
  38227. 8010550: 011b lsls r3, r3, #4
  38228. 8010552: b2db uxtb r3, r3
  38229. 8010554: 693a ldr r2, [r7, #16]
  38230. 8010556: 4313 orrs r3, r2
  38231. 8010558: 613b str r3, [r7, #16]
  38232. /* Select the Polarity and set the CC3E Bit */
  38233. tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP);
  38234. 801055a: 697b ldr r3, [r7, #20]
  38235. 801055c: f423 6320 bic.w r3, r3, #2560 @ 0xa00
  38236. 8010560: 617b str r3, [r7, #20]
  38237. tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP));
  38238. 8010562: 68bb ldr r3, [r7, #8]
  38239. 8010564: 021b lsls r3, r3, #8
  38240. 8010566: f403 6320 and.w r3, r3, #2560 @ 0xa00
  38241. 801056a: 697a ldr r2, [r7, #20]
  38242. 801056c: 4313 orrs r3, r2
  38243. 801056e: 617b str r3, [r7, #20]
  38244. /* Write to TIMx CCMR2 and CCER registers */
  38245. TIMx->CCMR2 = tmpccmr2;
  38246. 8010570: 68fb ldr r3, [r7, #12]
  38247. 8010572: 693a ldr r2, [r7, #16]
  38248. 8010574: 61da str r2, [r3, #28]
  38249. TIMx->CCER = tmpccer;
  38250. 8010576: 68fb ldr r3, [r7, #12]
  38251. 8010578: 697a ldr r2, [r7, #20]
  38252. 801057a: 621a str r2, [r3, #32]
  38253. }
  38254. 801057c: bf00 nop
  38255. 801057e: 371c adds r7, #28
  38256. 8010580: 46bd mov sp, r7
  38257. 8010582: f85d 7b04 ldr.w r7, [sp], #4
  38258. 8010586: 4770 bx lr
  38259. 08010588 <TIM_TI4_SetConfig>:
  38260. * protected against un-initialized filter and polarity values.
  38261. * @retval None
  38262. */
  38263. static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38264. uint32_t TIM_ICFilter)
  38265. {
  38266. 8010588: b480 push {r7}
  38267. 801058a: b087 sub sp, #28
  38268. 801058c: af00 add r7, sp, #0
  38269. 801058e: 60f8 str r0, [r7, #12]
  38270. 8010590: 60b9 str r1, [r7, #8]
  38271. 8010592: 607a str r2, [r7, #4]
  38272. 8010594: 603b str r3, [r7, #0]
  38273. uint32_t tmpccmr2;
  38274. uint32_t tmpccer;
  38275. /* Disable the Channel 4: Reset the CC4E Bit */
  38276. tmpccer = TIMx->CCER;
  38277. 8010596: 68fb ldr r3, [r7, #12]
  38278. 8010598: 6a1b ldr r3, [r3, #32]
  38279. 801059a: 617b str r3, [r7, #20]
  38280. TIMx->CCER &= ~TIM_CCER_CC4E;
  38281. 801059c: 68fb ldr r3, [r7, #12]
  38282. 801059e: 6a1b ldr r3, [r3, #32]
  38283. 80105a0: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  38284. 80105a4: 68fb ldr r3, [r7, #12]
  38285. 80105a6: 621a str r2, [r3, #32]
  38286. tmpccmr2 = TIMx->CCMR2;
  38287. 80105a8: 68fb ldr r3, [r7, #12]
  38288. 80105aa: 69db ldr r3, [r3, #28]
  38289. 80105ac: 613b str r3, [r7, #16]
  38290. /* Select the Input */
  38291. tmpccmr2 &= ~TIM_CCMR2_CC4S;
  38292. 80105ae: 693b ldr r3, [r7, #16]
  38293. 80105b0: f423 7340 bic.w r3, r3, #768 @ 0x300
  38294. 80105b4: 613b str r3, [r7, #16]
  38295. tmpccmr2 |= (TIM_ICSelection << 8U);
  38296. 80105b6: 687b ldr r3, [r7, #4]
  38297. 80105b8: 021b lsls r3, r3, #8
  38298. 80105ba: 693a ldr r2, [r7, #16]
  38299. 80105bc: 4313 orrs r3, r2
  38300. 80105be: 613b str r3, [r7, #16]
  38301. /* Set the filter */
  38302. tmpccmr2 &= ~TIM_CCMR2_IC4F;
  38303. 80105c0: 693b ldr r3, [r7, #16]
  38304. 80105c2: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38305. 80105c6: 613b str r3, [r7, #16]
  38306. tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F);
  38307. 80105c8: 683b ldr r3, [r7, #0]
  38308. 80105ca: 031b lsls r3, r3, #12
  38309. 80105cc: b29b uxth r3, r3
  38310. 80105ce: 693a ldr r2, [r7, #16]
  38311. 80105d0: 4313 orrs r3, r2
  38312. 80105d2: 613b str r3, [r7, #16]
  38313. /* Select the Polarity and set the CC4E Bit */
  38314. tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP);
  38315. 80105d4: 697b ldr r3, [r7, #20]
  38316. 80105d6: f423 4320 bic.w r3, r3, #40960 @ 0xa000
  38317. 80105da: 617b str r3, [r7, #20]
  38318. tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP));
  38319. 80105dc: 68bb ldr r3, [r7, #8]
  38320. 80105de: 031b lsls r3, r3, #12
  38321. 80105e0: f403 4320 and.w r3, r3, #40960 @ 0xa000
  38322. 80105e4: 697a ldr r2, [r7, #20]
  38323. 80105e6: 4313 orrs r3, r2
  38324. 80105e8: 617b str r3, [r7, #20]
  38325. /* Write to TIMx CCMR2 and CCER registers */
  38326. TIMx->CCMR2 = tmpccmr2;
  38327. 80105ea: 68fb ldr r3, [r7, #12]
  38328. 80105ec: 693a ldr r2, [r7, #16]
  38329. 80105ee: 61da str r2, [r3, #28]
  38330. TIMx->CCER = tmpccer ;
  38331. 80105f0: 68fb ldr r3, [r7, #12]
  38332. 80105f2: 697a ldr r2, [r7, #20]
  38333. 80105f4: 621a str r2, [r3, #32]
  38334. }
  38335. 80105f6: bf00 nop
  38336. 80105f8: 371c adds r7, #28
  38337. 80105fa: 46bd mov sp, r7
  38338. 80105fc: f85d 7b04 ldr.w r7, [sp], #4
  38339. 8010600: 4770 bx lr
  38340. ...
  38341. 08010604 <TIM_ITRx_SetConfig>:
  38342. * (*) Value not defined in all devices.
  38343. *
  38344. * @retval None
  38345. */
  38346. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  38347. {
  38348. 8010604: b480 push {r7}
  38349. 8010606: b085 sub sp, #20
  38350. 8010608: af00 add r7, sp, #0
  38351. 801060a: 6078 str r0, [r7, #4]
  38352. 801060c: 6039 str r1, [r7, #0]
  38353. uint32_t tmpsmcr;
  38354. /* Get the TIMx SMCR register value */
  38355. tmpsmcr = TIMx->SMCR;
  38356. 801060e: 687b ldr r3, [r7, #4]
  38357. 8010610: 689b ldr r3, [r3, #8]
  38358. 8010612: 60fb str r3, [r7, #12]
  38359. /* Reset the TS Bits */
  38360. tmpsmcr &= ~TIM_SMCR_TS;
  38361. 8010614: 68fa ldr r2, [r7, #12]
  38362. 8010616: 4b09 ldr r3, [pc, #36] @ (801063c <TIM_ITRx_SetConfig+0x38>)
  38363. 8010618: 4013 ands r3, r2
  38364. 801061a: 60fb str r3, [r7, #12]
  38365. /* Set the Input Trigger source and the slave mode*/
  38366. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  38367. 801061c: 683a ldr r2, [r7, #0]
  38368. 801061e: 68fb ldr r3, [r7, #12]
  38369. 8010620: 4313 orrs r3, r2
  38370. 8010622: f043 0307 orr.w r3, r3, #7
  38371. 8010626: 60fb str r3, [r7, #12]
  38372. /* Write to TIMx SMCR */
  38373. TIMx->SMCR = tmpsmcr;
  38374. 8010628: 687b ldr r3, [r7, #4]
  38375. 801062a: 68fa ldr r2, [r7, #12]
  38376. 801062c: 609a str r2, [r3, #8]
  38377. }
  38378. 801062e: bf00 nop
  38379. 8010630: 3714 adds r7, #20
  38380. 8010632: 46bd mov sp, r7
  38381. 8010634: f85d 7b04 ldr.w r7, [sp], #4
  38382. 8010638: 4770 bx lr
  38383. 801063a: bf00 nop
  38384. 801063c: ffcfff8f .word 0xffcfff8f
  38385. 08010640 <TIM_ETR_SetConfig>:
  38386. * This parameter must be a value between 0x00 and 0x0F
  38387. * @retval None
  38388. */
  38389. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  38390. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  38391. {
  38392. 8010640: b480 push {r7}
  38393. 8010642: b087 sub sp, #28
  38394. 8010644: af00 add r7, sp, #0
  38395. 8010646: 60f8 str r0, [r7, #12]
  38396. 8010648: 60b9 str r1, [r7, #8]
  38397. 801064a: 607a str r2, [r7, #4]
  38398. 801064c: 603b str r3, [r7, #0]
  38399. uint32_t tmpsmcr;
  38400. tmpsmcr = TIMx->SMCR;
  38401. 801064e: 68fb ldr r3, [r7, #12]
  38402. 8010650: 689b ldr r3, [r3, #8]
  38403. 8010652: 617b str r3, [r7, #20]
  38404. /* Reset the ETR Bits */
  38405. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  38406. 8010654: 697b ldr r3, [r7, #20]
  38407. 8010656: f423 437f bic.w r3, r3, #65280 @ 0xff00
  38408. 801065a: 617b str r3, [r7, #20]
  38409. /* Set the Prescaler, the Filter value and the Polarity */
  38410. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  38411. 801065c: 683b ldr r3, [r7, #0]
  38412. 801065e: 021a lsls r2, r3, #8
  38413. 8010660: 687b ldr r3, [r7, #4]
  38414. 8010662: 431a orrs r2, r3
  38415. 8010664: 68bb ldr r3, [r7, #8]
  38416. 8010666: 4313 orrs r3, r2
  38417. 8010668: 697a ldr r2, [r7, #20]
  38418. 801066a: 4313 orrs r3, r2
  38419. 801066c: 617b str r3, [r7, #20]
  38420. /* Write to TIMx SMCR */
  38421. TIMx->SMCR = tmpsmcr;
  38422. 801066e: 68fb ldr r3, [r7, #12]
  38423. 8010670: 697a ldr r2, [r7, #20]
  38424. 8010672: 609a str r2, [r3, #8]
  38425. }
  38426. 8010674: bf00 nop
  38427. 8010676: 371c adds r7, #28
  38428. 8010678: 46bd mov sp, r7
  38429. 801067a: f85d 7b04 ldr.w r7, [sp], #4
  38430. 801067e: 4770 bx lr
  38431. 08010680 <TIM_CCxChannelCmd>:
  38432. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  38433. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  38434. * @retval None
  38435. */
  38436. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  38437. {
  38438. 8010680: b480 push {r7}
  38439. 8010682: b087 sub sp, #28
  38440. 8010684: af00 add r7, sp, #0
  38441. 8010686: 60f8 str r0, [r7, #12]
  38442. 8010688: 60b9 str r1, [r7, #8]
  38443. 801068a: 607a str r2, [r7, #4]
  38444. /* Check the parameters */
  38445. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  38446. assert_param(IS_TIM_CHANNELS(Channel));
  38447. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  38448. 801068c: 68bb ldr r3, [r7, #8]
  38449. 801068e: f003 031f and.w r3, r3, #31
  38450. 8010692: 2201 movs r2, #1
  38451. 8010694: fa02 f303 lsl.w r3, r2, r3
  38452. 8010698: 617b str r3, [r7, #20]
  38453. /* Reset the CCxE Bit */
  38454. TIMx->CCER &= ~tmp;
  38455. 801069a: 68fb ldr r3, [r7, #12]
  38456. 801069c: 6a1a ldr r2, [r3, #32]
  38457. 801069e: 697b ldr r3, [r7, #20]
  38458. 80106a0: 43db mvns r3, r3
  38459. 80106a2: 401a ands r2, r3
  38460. 80106a4: 68fb ldr r3, [r7, #12]
  38461. 80106a6: 621a str r2, [r3, #32]
  38462. /* Set or reset the CCxE Bit */
  38463. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  38464. 80106a8: 68fb ldr r3, [r7, #12]
  38465. 80106aa: 6a1a ldr r2, [r3, #32]
  38466. 80106ac: 68bb ldr r3, [r7, #8]
  38467. 80106ae: f003 031f and.w r3, r3, #31
  38468. 80106b2: 6879 ldr r1, [r7, #4]
  38469. 80106b4: fa01 f303 lsl.w r3, r1, r3
  38470. 80106b8: 431a orrs r2, r3
  38471. 80106ba: 68fb ldr r3, [r7, #12]
  38472. 80106bc: 621a str r2, [r3, #32]
  38473. }
  38474. 80106be: bf00 nop
  38475. 80106c0: 371c adds r7, #28
  38476. 80106c2: 46bd mov sp, r7
  38477. 80106c4: f85d 7b04 ldr.w r7, [sp], #4
  38478. 80106c8: 4770 bx lr
  38479. ...
  38480. 080106cc <HAL_TIMEx_MasterConfigSynchronization>:
  38481. * mode.
  38482. * @retval HAL status
  38483. */
  38484. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  38485. const TIM_MasterConfigTypeDef *sMasterConfig)
  38486. {
  38487. 80106cc: b480 push {r7}
  38488. 80106ce: b085 sub sp, #20
  38489. 80106d0: af00 add r7, sp, #0
  38490. 80106d2: 6078 str r0, [r7, #4]
  38491. 80106d4: 6039 str r1, [r7, #0]
  38492. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  38493. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  38494. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  38495. /* Check input state */
  38496. __HAL_LOCK(htim);
  38497. 80106d6: 687b ldr r3, [r7, #4]
  38498. 80106d8: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  38499. 80106dc: 2b01 cmp r3, #1
  38500. 80106de: d101 bne.n 80106e4 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  38501. 80106e0: 2302 movs r3, #2
  38502. 80106e2: e06d b.n 80107c0 <HAL_TIMEx_MasterConfigSynchronization+0xf4>
  38503. 80106e4: 687b ldr r3, [r7, #4]
  38504. 80106e6: 2201 movs r2, #1
  38505. 80106e8: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38506. /* Change the handler state */
  38507. htim->State = HAL_TIM_STATE_BUSY;
  38508. 80106ec: 687b ldr r3, [r7, #4]
  38509. 80106ee: 2202 movs r2, #2
  38510. 80106f0: f883 203d strb.w r2, [r3, #61] @ 0x3d
  38511. /* Get the TIMx CR2 register value */
  38512. tmpcr2 = htim->Instance->CR2;
  38513. 80106f4: 687b ldr r3, [r7, #4]
  38514. 80106f6: 681b ldr r3, [r3, #0]
  38515. 80106f8: 685b ldr r3, [r3, #4]
  38516. 80106fa: 60fb str r3, [r7, #12]
  38517. /* Get the TIMx SMCR register value */
  38518. tmpsmcr = htim->Instance->SMCR;
  38519. 80106fc: 687b ldr r3, [r7, #4]
  38520. 80106fe: 681b ldr r3, [r3, #0]
  38521. 8010700: 689b ldr r3, [r3, #8]
  38522. 8010702: 60bb str r3, [r7, #8]
  38523. /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
  38524. if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
  38525. 8010704: 687b ldr r3, [r7, #4]
  38526. 8010706: 681b ldr r3, [r3, #0]
  38527. 8010708: 4a30 ldr r2, [pc, #192] @ (80107cc <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  38528. 801070a: 4293 cmp r3, r2
  38529. 801070c: d004 beq.n 8010718 <HAL_TIMEx_MasterConfigSynchronization+0x4c>
  38530. 801070e: 687b ldr r3, [r7, #4]
  38531. 8010710: 681b ldr r3, [r3, #0]
  38532. 8010712: 4a2f ldr r2, [pc, #188] @ (80107d0 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  38533. 8010714: 4293 cmp r3, r2
  38534. 8010716: d108 bne.n 801072a <HAL_TIMEx_MasterConfigSynchronization+0x5e>
  38535. {
  38536. /* Check the parameters */
  38537. assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
  38538. /* Clear the MMS2 bits */
  38539. tmpcr2 &= ~TIM_CR2_MMS2;
  38540. 8010718: 68fb ldr r3, [r7, #12]
  38541. 801071a: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000
  38542. 801071e: 60fb str r3, [r7, #12]
  38543. /* Select the TRGO2 source*/
  38544. tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
  38545. 8010720: 683b ldr r3, [r7, #0]
  38546. 8010722: 685b ldr r3, [r3, #4]
  38547. 8010724: 68fa ldr r2, [r7, #12]
  38548. 8010726: 4313 orrs r3, r2
  38549. 8010728: 60fb str r3, [r7, #12]
  38550. }
  38551. /* Reset the MMS Bits */
  38552. tmpcr2 &= ~TIM_CR2_MMS;
  38553. 801072a: 68fb ldr r3, [r7, #12]
  38554. 801072c: f023 0370 bic.w r3, r3, #112 @ 0x70
  38555. 8010730: 60fb str r3, [r7, #12]
  38556. /* Select the TRGO source */
  38557. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  38558. 8010732: 683b ldr r3, [r7, #0]
  38559. 8010734: 681b ldr r3, [r3, #0]
  38560. 8010736: 68fa ldr r2, [r7, #12]
  38561. 8010738: 4313 orrs r3, r2
  38562. 801073a: 60fb str r3, [r7, #12]
  38563. /* Update TIMx CR2 */
  38564. htim->Instance->CR2 = tmpcr2;
  38565. 801073c: 687b ldr r3, [r7, #4]
  38566. 801073e: 681b ldr r3, [r3, #0]
  38567. 8010740: 68fa ldr r2, [r7, #12]
  38568. 8010742: 605a str r2, [r3, #4]
  38569. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  38570. 8010744: 687b ldr r3, [r7, #4]
  38571. 8010746: 681b ldr r3, [r3, #0]
  38572. 8010748: 4a20 ldr r2, [pc, #128] @ (80107cc <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  38573. 801074a: 4293 cmp r3, r2
  38574. 801074c: d022 beq.n 8010794 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38575. 801074e: 687b ldr r3, [r7, #4]
  38576. 8010750: 681b ldr r3, [r3, #0]
  38577. 8010752: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38578. 8010756: d01d beq.n 8010794 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38579. 8010758: 687b ldr r3, [r7, #4]
  38580. 801075a: 681b ldr r3, [r3, #0]
  38581. 801075c: 4a1d ldr r2, [pc, #116] @ (80107d4 <HAL_TIMEx_MasterConfigSynchronization+0x108>)
  38582. 801075e: 4293 cmp r3, r2
  38583. 8010760: d018 beq.n 8010794 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38584. 8010762: 687b ldr r3, [r7, #4]
  38585. 8010764: 681b ldr r3, [r3, #0]
  38586. 8010766: 4a1c ldr r2, [pc, #112] @ (80107d8 <HAL_TIMEx_MasterConfigSynchronization+0x10c>)
  38587. 8010768: 4293 cmp r3, r2
  38588. 801076a: d013 beq.n 8010794 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38589. 801076c: 687b ldr r3, [r7, #4]
  38590. 801076e: 681b ldr r3, [r3, #0]
  38591. 8010770: 4a1a ldr r2, [pc, #104] @ (80107dc <HAL_TIMEx_MasterConfigSynchronization+0x110>)
  38592. 8010772: 4293 cmp r3, r2
  38593. 8010774: d00e beq.n 8010794 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38594. 8010776: 687b ldr r3, [r7, #4]
  38595. 8010778: 681b ldr r3, [r3, #0]
  38596. 801077a: 4a15 ldr r2, [pc, #84] @ (80107d0 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  38597. 801077c: 4293 cmp r3, r2
  38598. 801077e: d009 beq.n 8010794 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38599. 8010780: 687b ldr r3, [r7, #4]
  38600. 8010782: 681b ldr r3, [r3, #0]
  38601. 8010784: 4a16 ldr r2, [pc, #88] @ (80107e0 <HAL_TIMEx_MasterConfigSynchronization+0x114>)
  38602. 8010786: 4293 cmp r3, r2
  38603. 8010788: d004 beq.n 8010794 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38604. 801078a: 687b ldr r3, [r7, #4]
  38605. 801078c: 681b ldr r3, [r3, #0]
  38606. 801078e: 4a15 ldr r2, [pc, #84] @ (80107e4 <HAL_TIMEx_MasterConfigSynchronization+0x118>)
  38607. 8010790: 4293 cmp r3, r2
  38608. 8010792: d10c bne.n 80107ae <HAL_TIMEx_MasterConfigSynchronization+0xe2>
  38609. {
  38610. /* Reset the MSM Bit */
  38611. tmpsmcr &= ~TIM_SMCR_MSM;
  38612. 8010794: 68bb ldr r3, [r7, #8]
  38613. 8010796: f023 0380 bic.w r3, r3, #128 @ 0x80
  38614. 801079a: 60bb str r3, [r7, #8]
  38615. /* Set master mode */
  38616. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  38617. 801079c: 683b ldr r3, [r7, #0]
  38618. 801079e: 689b ldr r3, [r3, #8]
  38619. 80107a0: 68ba ldr r2, [r7, #8]
  38620. 80107a2: 4313 orrs r3, r2
  38621. 80107a4: 60bb str r3, [r7, #8]
  38622. /* Update TIMx SMCR */
  38623. htim->Instance->SMCR = tmpsmcr;
  38624. 80107a6: 687b ldr r3, [r7, #4]
  38625. 80107a8: 681b ldr r3, [r3, #0]
  38626. 80107aa: 68ba ldr r2, [r7, #8]
  38627. 80107ac: 609a str r2, [r3, #8]
  38628. }
  38629. /* Change the htim state */
  38630. htim->State = HAL_TIM_STATE_READY;
  38631. 80107ae: 687b ldr r3, [r7, #4]
  38632. 80107b0: 2201 movs r2, #1
  38633. 80107b2: f883 203d strb.w r2, [r3, #61] @ 0x3d
  38634. __HAL_UNLOCK(htim);
  38635. 80107b6: 687b ldr r3, [r7, #4]
  38636. 80107b8: 2200 movs r2, #0
  38637. 80107ba: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38638. return HAL_OK;
  38639. 80107be: 2300 movs r3, #0
  38640. }
  38641. 80107c0: 4618 mov r0, r3
  38642. 80107c2: 3714 adds r7, #20
  38643. 80107c4: 46bd mov sp, r7
  38644. 80107c6: f85d 7b04 ldr.w r7, [sp], #4
  38645. 80107ca: 4770 bx lr
  38646. 80107cc: 40010000 .word 0x40010000
  38647. 80107d0: 40010400 .word 0x40010400
  38648. 80107d4: 40000400 .word 0x40000400
  38649. 80107d8: 40000800 .word 0x40000800
  38650. 80107dc: 40000c00 .word 0x40000c00
  38651. 80107e0: 40001800 .word 0x40001800
  38652. 80107e4: 40014000 .word 0x40014000
  38653. 080107e8 <HAL_TIMEx_ConfigBreakDeadTime>:
  38654. * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro.
  38655. * @retval HAL status
  38656. */
  38657. HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim,
  38658. const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
  38659. {
  38660. 80107e8: b480 push {r7}
  38661. 80107ea: b085 sub sp, #20
  38662. 80107ec: af00 add r7, sp, #0
  38663. 80107ee: 6078 str r0, [r7, #4]
  38664. 80107f0: 6039 str r1, [r7, #0]
  38665. /* Keep this variable initialized to 0 as it is used to configure BDTR register */
  38666. uint32_t tmpbdtr = 0U;
  38667. 80107f2: 2300 movs r3, #0
  38668. 80107f4: 60fb str r3, [r7, #12]
  38669. #if defined(TIM_BDTR_BKBID)
  38670. assert_param(IS_TIM_BREAK_AFMODE(sBreakDeadTimeConfig->BreakAFMode));
  38671. #endif /* TIM_BDTR_BKBID */
  38672. /* Check input state */
  38673. __HAL_LOCK(htim);
  38674. 80107f6: 687b ldr r3, [r7, #4]
  38675. 80107f8: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  38676. 80107fc: 2b01 cmp r3, #1
  38677. 80107fe: d101 bne.n 8010804 <HAL_TIMEx_ConfigBreakDeadTime+0x1c>
  38678. 8010800: 2302 movs r3, #2
  38679. 8010802: e065 b.n 80108d0 <HAL_TIMEx_ConfigBreakDeadTime+0xe8>
  38680. 8010804: 687b ldr r3, [r7, #4]
  38681. 8010806: 2201 movs r2, #1
  38682. 8010808: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38683. /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State,
  38684. the OSSI State, the dead time value and the Automatic Output Enable Bit */
  38685. /* Set the BDTR bits */
  38686. MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime);
  38687. 801080c: 68fb ldr r3, [r7, #12]
  38688. 801080e: f023 02ff bic.w r2, r3, #255 @ 0xff
  38689. 8010812: 683b ldr r3, [r7, #0]
  38690. 8010814: 68db ldr r3, [r3, #12]
  38691. 8010816: 4313 orrs r3, r2
  38692. 8010818: 60fb str r3, [r7, #12]
  38693. MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel);
  38694. 801081a: 68fb ldr r3, [r7, #12]
  38695. 801081c: f423 7240 bic.w r2, r3, #768 @ 0x300
  38696. 8010820: 683b ldr r3, [r7, #0]
  38697. 8010822: 689b ldr r3, [r3, #8]
  38698. 8010824: 4313 orrs r3, r2
  38699. 8010826: 60fb str r3, [r7, #12]
  38700. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode);
  38701. 8010828: 68fb ldr r3, [r7, #12]
  38702. 801082a: f423 6280 bic.w r2, r3, #1024 @ 0x400
  38703. 801082e: 683b ldr r3, [r7, #0]
  38704. 8010830: 685b ldr r3, [r3, #4]
  38705. 8010832: 4313 orrs r3, r2
  38706. 8010834: 60fb str r3, [r7, #12]
  38707. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode);
  38708. 8010836: 68fb ldr r3, [r7, #12]
  38709. 8010838: f423 6200 bic.w r2, r3, #2048 @ 0x800
  38710. 801083c: 683b ldr r3, [r7, #0]
  38711. 801083e: 681b ldr r3, [r3, #0]
  38712. 8010840: 4313 orrs r3, r2
  38713. 8010842: 60fb str r3, [r7, #12]
  38714. MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState);
  38715. 8010844: 68fb ldr r3, [r7, #12]
  38716. 8010846: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  38717. 801084a: 683b ldr r3, [r7, #0]
  38718. 801084c: 691b ldr r3, [r3, #16]
  38719. 801084e: 4313 orrs r3, r2
  38720. 8010850: 60fb str r3, [r7, #12]
  38721. MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity);
  38722. 8010852: 68fb ldr r3, [r7, #12]
  38723. 8010854: f423 5200 bic.w r2, r3, #8192 @ 0x2000
  38724. 8010858: 683b ldr r3, [r7, #0]
  38725. 801085a: 695b ldr r3, [r3, #20]
  38726. 801085c: 4313 orrs r3, r2
  38727. 801085e: 60fb str r3, [r7, #12]
  38728. MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput);
  38729. 8010860: 68fb ldr r3, [r7, #12]
  38730. 8010862: f423 4280 bic.w r2, r3, #16384 @ 0x4000
  38731. 8010866: 683b ldr r3, [r7, #0]
  38732. 8010868: 6a9b ldr r3, [r3, #40] @ 0x28
  38733. 801086a: 4313 orrs r3, r2
  38734. 801086c: 60fb str r3, [r7, #12]
  38735. MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos));
  38736. 801086e: 68fb ldr r3, [r7, #12]
  38737. 8010870: f423 2270 bic.w r2, r3, #983040 @ 0xf0000
  38738. 8010874: 683b ldr r3, [r7, #0]
  38739. 8010876: 699b ldr r3, [r3, #24]
  38740. 8010878: 041b lsls r3, r3, #16
  38741. 801087a: 4313 orrs r3, r2
  38742. 801087c: 60fb str r3, [r7, #12]
  38743. #if defined(TIM_BDTR_BKBID)
  38744. MODIFY_REG(tmpbdtr, TIM_BDTR_BKBID, sBreakDeadTimeConfig->BreakAFMode);
  38745. #endif /* TIM_BDTR_BKBID */
  38746. if (IS_TIM_BKIN2_INSTANCE(htim->Instance))
  38747. 801087e: 687b ldr r3, [r7, #4]
  38748. 8010880: 681b ldr r3, [r3, #0]
  38749. 8010882: 4a16 ldr r2, [pc, #88] @ (80108dc <HAL_TIMEx_ConfigBreakDeadTime+0xf4>)
  38750. 8010884: 4293 cmp r3, r2
  38751. 8010886: d004 beq.n 8010892 <HAL_TIMEx_ConfigBreakDeadTime+0xaa>
  38752. 8010888: 687b ldr r3, [r7, #4]
  38753. 801088a: 681b ldr r3, [r3, #0]
  38754. 801088c: 4a14 ldr r2, [pc, #80] @ (80108e0 <HAL_TIMEx_ConfigBreakDeadTime+0xf8>)
  38755. 801088e: 4293 cmp r3, r2
  38756. 8010890: d115 bne.n 80108be <HAL_TIMEx_ConfigBreakDeadTime+0xd6>
  38757. #if defined(TIM_BDTR_BKBID)
  38758. assert_param(IS_TIM_BREAK2_AFMODE(sBreakDeadTimeConfig->Break2AFMode));
  38759. #endif /* TIM_BDTR_BKBID */
  38760. /* Set the BREAK2 input related BDTR bits */
  38761. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (sBreakDeadTimeConfig->Break2Filter << TIM_BDTR_BK2F_Pos));
  38762. 8010892: 68fb ldr r3, [r7, #12]
  38763. 8010894: f423 0270 bic.w r2, r3, #15728640 @ 0xf00000
  38764. 8010898: 683b ldr r3, [r7, #0]
  38765. 801089a: 6a5b ldr r3, [r3, #36] @ 0x24
  38766. 801089c: 051b lsls r3, r3, #20
  38767. 801089e: 4313 orrs r3, r2
  38768. 80108a0: 60fb str r3, [r7, #12]
  38769. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State);
  38770. 80108a2: 68fb ldr r3, [r7, #12]
  38771. 80108a4: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000
  38772. 80108a8: 683b ldr r3, [r7, #0]
  38773. 80108aa: 69db ldr r3, [r3, #28]
  38774. 80108ac: 4313 orrs r3, r2
  38775. 80108ae: 60fb str r3, [r7, #12]
  38776. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity);
  38777. 80108b0: 68fb ldr r3, [r7, #12]
  38778. 80108b2: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000
  38779. 80108b6: 683b ldr r3, [r7, #0]
  38780. 80108b8: 6a1b ldr r3, [r3, #32]
  38781. 80108ba: 4313 orrs r3, r2
  38782. 80108bc: 60fb str r3, [r7, #12]
  38783. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2BID, sBreakDeadTimeConfig->Break2AFMode);
  38784. #endif /* TIM_BDTR_BKBID */
  38785. }
  38786. /* Set TIMx_BDTR */
  38787. htim->Instance->BDTR = tmpbdtr;
  38788. 80108be: 687b ldr r3, [r7, #4]
  38789. 80108c0: 681b ldr r3, [r3, #0]
  38790. 80108c2: 68fa ldr r2, [r7, #12]
  38791. 80108c4: 645a str r2, [r3, #68] @ 0x44
  38792. __HAL_UNLOCK(htim);
  38793. 80108c6: 687b ldr r3, [r7, #4]
  38794. 80108c8: 2200 movs r2, #0
  38795. 80108ca: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38796. return HAL_OK;
  38797. 80108ce: 2300 movs r3, #0
  38798. }
  38799. 80108d0: 4618 mov r0, r3
  38800. 80108d2: 3714 adds r7, #20
  38801. 80108d4: 46bd mov sp, r7
  38802. 80108d6: f85d 7b04 ldr.w r7, [sp], #4
  38803. 80108da: 4770 bx lr
  38804. 80108dc: 40010000 .word 0x40010000
  38805. 80108e0: 40010400 .word 0x40010400
  38806. 080108e4 <HAL_TIMEx_CommutCallback>:
  38807. * @brief Commutation callback in non-blocking mode
  38808. * @param htim TIM handle
  38809. * @retval None
  38810. */
  38811. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  38812. {
  38813. 80108e4: b480 push {r7}
  38814. 80108e6: b083 sub sp, #12
  38815. 80108e8: af00 add r7, sp, #0
  38816. 80108ea: 6078 str r0, [r7, #4]
  38817. UNUSED(htim);
  38818. /* NOTE : This function should not be modified, when the callback is needed,
  38819. the HAL_TIMEx_CommutCallback could be implemented in the user file
  38820. */
  38821. }
  38822. 80108ec: bf00 nop
  38823. 80108ee: 370c adds r7, #12
  38824. 80108f0: 46bd mov sp, r7
  38825. 80108f2: f85d 7b04 ldr.w r7, [sp], #4
  38826. 80108f6: 4770 bx lr
  38827. 080108f8 <HAL_TIMEx_BreakCallback>:
  38828. * @brief Break detection callback in non-blocking mode
  38829. * @param htim TIM handle
  38830. * @retval None
  38831. */
  38832. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  38833. {
  38834. 80108f8: b480 push {r7}
  38835. 80108fa: b083 sub sp, #12
  38836. 80108fc: af00 add r7, sp, #0
  38837. 80108fe: 6078 str r0, [r7, #4]
  38838. UNUSED(htim);
  38839. /* NOTE : This function should not be modified, when the callback is needed,
  38840. the HAL_TIMEx_BreakCallback could be implemented in the user file
  38841. */
  38842. }
  38843. 8010900: bf00 nop
  38844. 8010902: 370c adds r7, #12
  38845. 8010904: 46bd mov sp, r7
  38846. 8010906: f85d 7b04 ldr.w r7, [sp], #4
  38847. 801090a: 4770 bx lr
  38848. 0801090c <HAL_TIMEx_Break2Callback>:
  38849. * @brief Break2 detection callback in non blocking mode
  38850. * @param htim: TIM handle
  38851. * @retval None
  38852. */
  38853. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  38854. {
  38855. 801090c: b480 push {r7}
  38856. 801090e: b083 sub sp, #12
  38857. 8010910: af00 add r7, sp, #0
  38858. 8010912: 6078 str r0, [r7, #4]
  38859. UNUSED(htim);
  38860. /* NOTE : This function Should not be modified, when the callback is needed,
  38861. the HAL_TIMEx_Break2Callback could be implemented in the user file
  38862. */
  38863. }
  38864. 8010914: bf00 nop
  38865. 8010916: 370c adds r7, #12
  38866. 8010918: 46bd mov sp, r7
  38867. 801091a: f85d 7b04 ldr.w r7, [sp], #4
  38868. 801091e: 4770 bx lr
  38869. 08010920 <HAL_UART_Init>:
  38870. * parameters in the UART_InitTypeDef and initialize the associated handle.
  38871. * @param huart UART handle.
  38872. * @retval HAL status
  38873. */
  38874. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  38875. {
  38876. 8010920: b580 push {r7, lr}
  38877. 8010922: b082 sub sp, #8
  38878. 8010924: af00 add r7, sp, #0
  38879. 8010926: 6078 str r0, [r7, #4]
  38880. /* Check the UART handle allocation */
  38881. if (huart == NULL)
  38882. 8010928: 687b ldr r3, [r7, #4]
  38883. 801092a: 2b00 cmp r3, #0
  38884. 801092c: d101 bne.n 8010932 <HAL_UART_Init+0x12>
  38885. {
  38886. return HAL_ERROR;
  38887. 801092e: 2301 movs r3, #1
  38888. 8010930: e042 b.n 80109b8 <HAL_UART_Init+0x98>
  38889. {
  38890. /* Check the parameters */
  38891. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  38892. }
  38893. if (huart->gState == HAL_UART_STATE_RESET)
  38894. 8010932: 687b ldr r3, [r7, #4]
  38895. 8010934: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  38896. 8010938: 2b00 cmp r3, #0
  38897. 801093a: d106 bne.n 801094a <HAL_UART_Init+0x2a>
  38898. {
  38899. /* Allocate lock resource and initialize it */
  38900. huart->Lock = HAL_UNLOCKED;
  38901. 801093c: 687b ldr r3, [r7, #4]
  38902. 801093e: 2200 movs r2, #0
  38903. 8010940: f883 2084 strb.w r2, [r3, #132] @ 0x84
  38904. /* Init the low level hardware */
  38905. huart->MspInitCallback(huart);
  38906. #else
  38907. /* Init the low level hardware : GPIO, CLOCK */
  38908. HAL_UART_MspInit(huart);
  38909. 8010944: 6878 ldr r0, [r7, #4]
  38910. 8010946: f7f3 f96b bl 8003c20 <HAL_UART_MspInit>
  38911. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  38912. }
  38913. huart->gState = HAL_UART_STATE_BUSY;
  38914. 801094a: 687b ldr r3, [r7, #4]
  38915. 801094c: 2224 movs r2, #36 @ 0x24
  38916. 801094e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  38917. __HAL_UART_DISABLE(huart);
  38918. 8010952: 687b ldr r3, [r7, #4]
  38919. 8010954: 681b ldr r3, [r3, #0]
  38920. 8010956: 681a ldr r2, [r3, #0]
  38921. 8010958: 687b ldr r3, [r7, #4]
  38922. 801095a: 681b ldr r3, [r3, #0]
  38923. 801095c: f022 0201 bic.w r2, r2, #1
  38924. 8010960: 601a str r2, [r3, #0]
  38925. /* Perform advanced settings configuration */
  38926. /* For some items, configuration requires to be done prior TE and RE bits are set */
  38927. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  38928. 8010962: 687b ldr r3, [r7, #4]
  38929. 8010964: 6a9b ldr r3, [r3, #40] @ 0x28
  38930. 8010966: 2b00 cmp r3, #0
  38931. 8010968: d002 beq.n 8010970 <HAL_UART_Init+0x50>
  38932. {
  38933. UART_AdvFeatureConfig(huart);
  38934. 801096a: 6878 ldr r0, [r7, #4]
  38935. 801096c: f001 fa76 bl 8011e5c <UART_AdvFeatureConfig>
  38936. }
  38937. /* Set the UART Communication parameters */
  38938. if (UART_SetConfig(huart) == HAL_ERROR)
  38939. 8010970: 6878 ldr r0, [r7, #4]
  38940. 8010972: f000 fd0b bl 801138c <UART_SetConfig>
  38941. 8010976: 4603 mov r3, r0
  38942. 8010978: 2b01 cmp r3, #1
  38943. 801097a: d101 bne.n 8010980 <HAL_UART_Init+0x60>
  38944. {
  38945. return HAL_ERROR;
  38946. 801097c: 2301 movs r3, #1
  38947. 801097e: e01b b.n 80109b8 <HAL_UART_Init+0x98>
  38948. }
  38949. /* In asynchronous mode, the following bits must be kept cleared:
  38950. - LINEN and CLKEN bits in the USART_CR2 register,
  38951. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  38952. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  38953. 8010980: 687b ldr r3, [r7, #4]
  38954. 8010982: 681b ldr r3, [r3, #0]
  38955. 8010984: 685a ldr r2, [r3, #4]
  38956. 8010986: 687b ldr r3, [r7, #4]
  38957. 8010988: 681b ldr r3, [r3, #0]
  38958. 801098a: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  38959. 801098e: 605a str r2, [r3, #4]
  38960. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  38961. 8010990: 687b ldr r3, [r7, #4]
  38962. 8010992: 681b ldr r3, [r3, #0]
  38963. 8010994: 689a ldr r2, [r3, #8]
  38964. 8010996: 687b ldr r3, [r7, #4]
  38965. 8010998: 681b ldr r3, [r3, #0]
  38966. 801099a: f022 022a bic.w r2, r2, #42 @ 0x2a
  38967. 801099e: 609a str r2, [r3, #8]
  38968. __HAL_UART_ENABLE(huart);
  38969. 80109a0: 687b ldr r3, [r7, #4]
  38970. 80109a2: 681b ldr r3, [r3, #0]
  38971. 80109a4: 681a ldr r2, [r3, #0]
  38972. 80109a6: 687b ldr r3, [r7, #4]
  38973. 80109a8: 681b ldr r3, [r3, #0]
  38974. 80109aa: f042 0201 orr.w r2, r2, #1
  38975. 80109ae: 601a str r2, [r3, #0]
  38976. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  38977. return (UART_CheckIdleState(huart));
  38978. 80109b0: 6878 ldr r0, [r7, #4]
  38979. 80109b2: f001 faf5 bl 8011fa0 <UART_CheckIdleState>
  38980. 80109b6: 4603 mov r3, r0
  38981. }
  38982. 80109b8: 4618 mov r0, r3
  38983. 80109ba: 3708 adds r7, #8
  38984. 80109bc: 46bd mov sp, r7
  38985. 80109be: bd80 pop {r7, pc}
  38986. 080109c0 <HAL_UART_Transmit>:
  38987. * @param Size Amount of data elements (u8 or u16) to be sent.
  38988. * @param Timeout Timeout duration.
  38989. * @retval HAL status
  38990. */
  38991. HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
  38992. {
  38993. 80109c0: b580 push {r7, lr}
  38994. 80109c2: b08a sub sp, #40 @ 0x28
  38995. 80109c4: af02 add r7, sp, #8
  38996. 80109c6: 60f8 str r0, [r7, #12]
  38997. 80109c8: 60b9 str r1, [r7, #8]
  38998. 80109ca: 603b str r3, [r7, #0]
  38999. 80109cc: 4613 mov r3, r2
  39000. 80109ce: 80fb strh r3, [r7, #6]
  39001. const uint8_t *pdata8bits;
  39002. const uint16_t *pdata16bits;
  39003. uint32_t tickstart;
  39004. /* Check that a Tx process is not already ongoing */
  39005. if (huart->gState == HAL_UART_STATE_READY)
  39006. 80109d0: 68fb ldr r3, [r7, #12]
  39007. 80109d2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  39008. 80109d6: 2b20 cmp r3, #32
  39009. 80109d8: d17b bne.n 8010ad2 <HAL_UART_Transmit+0x112>
  39010. {
  39011. if ((pData == NULL) || (Size == 0U))
  39012. 80109da: 68bb ldr r3, [r7, #8]
  39013. 80109dc: 2b00 cmp r3, #0
  39014. 80109de: d002 beq.n 80109e6 <HAL_UART_Transmit+0x26>
  39015. 80109e0: 88fb ldrh r3, [r7, #6]
  39016. 80109e2: 2b00 cmp r3, #0
  39017. 80109e4: d101 bne.n 80109ea <HAL_UART_Transmit+0x2a>
  39018. {
  39019. return HAL_ERROR;
  39020. 80109e6: 2301 movs r3, #1
  39021. 80109e8: e074 b.n 8010ad4 <HAL_UART_Transmit+0x114>
  39022. }
  39023. huart->ErrorCode = HAL_UART_ERROR_NONE;
  39024. 80109ea: 68fb ldr r3, [r7, #12]
  39025. 80109ec: 2200 movs r2, #0
  39026. 80109ee: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39027. huart->gState = HAL_UART_STATE_BUSY_TX;
  39028. 80109f2: 68fb ldr r3, [r7, #12]
  39029. 80109f4: 2221 movs r2, #33 @ 0x21
  39030. 80109f6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39031. /* Init tickstart for timeout management */
  39032. tickstart = HAL_GetTick();
  39033. 80109fa: f7f4 fd1f bl 800543c <HAL_GetTick>
  39034. 80109fe: 6178 str r0, [r7, #20]
  39035. huart->TxXferSize = Size;
  39036. 8010a00: 68fb ldr r3, [r7, #12]
  39037. 8010a02: 88fa ldrh r2, [r7, #6]
  39038. 8010a04: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  39039. huart->TxXferCount = Size;
  39040. 8010a08: 68fb ldr r3, [r7, #12]
  39041. 8010a0a: 88fa ldrh r2, [r7, #6]
  39042. 8010a0c: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  39043. /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */
  39044. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  39045. 8010a10: 68fb ldr r3, [r7, #12]
  39046. 8010a12: 689b ldr r3, [r3, #8]
  39047. 8010a14: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39048. 8010a18: d108 bne.n 8010a2c <HAL_UART_Transmit+0x6c>
  39049. 8010a1a: 68fb ldr r3, [r7, #12]
  39050. 8010a1c: 691b ldr r3, [r3, #16]
  39051. 8010a1e: 2b00 cmp r3, #0
  39052. 8010a20: d104 bne.n 8010a2c <HAL_UART_Transmit+0x6c>
  39053. {
  39054. pdata8bits = NULL;
  39055. 8010a22: 2300 movs r3, #0
  39056. 8010a24: 61fb str r3, [r7, #28]
  39057. pdata16bits = (const uint16_t *) pData;
  39058. 8010a26: 68bb ldr r3, [r7, #8]
  39059. 8010a28: 61bb str r3, [r7, #24]
  39060. 8010a2a: e003 b.n 8010a34 <HAL_UART_Transmit+0x74>
  39061. }
  39062. else
  39063. {
  39064. pdata8bits = pData;
  39065. 8010a2c: 68bb ldr r3, [r7, #8]
  39066. 8010a2e: 61fb str r3, [r7, #28]
  39067. pdata16bits = NULL;
  39068. 8010a30: 2300 movs r3, #0
  39069. 8010a32: 61bb str r3, [r7, #24]
  39070. }
  39071. while (huart->TxXferCount > 0U)
  39072. 8010a34: e030 b.n 8010a98 <HAL_UART_Transmit+0xd8>
  39073. {
  39074. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  39075. 8010a36: 683b ldr r3, [r7, #0]
  39076. 8010a38: 9300 str r3, [sp, #0]
  39077. 8010a3a: 697b ldr r3, [r7, #20]
  39078. 8010a3c: 2200 movs r2, #0
  39079. 8010a3e: 2180 movs r1, #128 @ 0x80
  39080. 8010a40: 68f8 ldr r0, [r7, #12]
  39081. 8010a42: f001 fb57 bl 80120f4 <UART_WaitOnFlagUntilTimeout>
  39082. 8010a46: 4603 mov r3, r0
  39083. 8010a48: 2b00 cmp r3, #0
  39084. 8010a4a: d005 beq.n 8010a58 <HAL_UART_Transmit+0x98>
  39085. {
  39086. huart->gState = HAL_UART_STATE_READY;
  39087. 8010a4c: 68fb ldr r3, [r7, #12]
  39088. 8010a4e: 2220 movs r2, #32
  39089. 8010a50: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39090. return HAL_TIMEOUT;
  39091. 8010a54: 2303 movs r3, #3
  39092. 8010a56: e03d b.n 8010ad4 <HAL_UART_Transmit+0x114>
  39093. }
  39094. if (pdata8bits == NULL)
  39095. 8010a58: 69fb ldr r3, [r7, #28]
  39096. 8010a5a: 2b00 cmp r3, #0
  39097. 8010a5c: d10b bne.n 8010a76 <HAL_UART_Transmit+0xb6>
  39098. {
  39099. huart->Instance->TDR = (uint16_t)(*pdata16bits & 0x01FFU);
  39100. 8010a5e: 69bb ldr r3, [r7, #24]
  39101. 8010a60: 881b ldrh r3, [r3, #0]
  39102. 8010a62: 461a mov r2, r3
  39103. 8010a64: 68fb ldr r3, [r7, #12]
  39104. 8010a66: 681b ldr r3, [r3, #0]
  39105. 8010a68: f3c2 0208 ubfx r2, r2, #0, #9
  39106. 8010a6c: 629a str r2, [r3, #40] @ 0x28
  39107. pdata16bits++;
  39108. 8010a6e: 69bb ldr r3, [r7, #24]
  39109. 8010a70: 3302 adds r3, #2
  39110. 8010a72: 61bb str r3, [r7, #24]
  39111. 8010a74: e007 b.n 8010a86 <HAL_UART_Transmit+0xc6>
  39112. }
  39113. else
  39114. {
  39115. huart->Instance->TDR = (uint8_t)(*pdata8bits & 0xFFU);
  39116. 8010a76: 69fb ldr r3, [r7, #28]
  39117. 8010a78: 781a ldrb r2, [r3, #0]
  39118. 8010a7a: 68fb ldr r3, [r7, #12]
  39119. 8010a7c: 681b ldr r3, [r3, #0]
  39120. 8010a7e: 629a str r2, [r3, #40] @ 0x28
  39121. pdata8bits++;
  39122. 8010a80: 69fb ldr r3, [r7, #28]
  39123. 8010a82: 3301 adds r3, #1
  39124. 8010a84: 61fb str r3, [r7, #28]
  39125. }
  39126. huart->TxXferCount--;
  39127. 8010a86: 68fb ldr r3, [r7, #12]
  39128. 8010a88: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  39129. 8010a8c: b29b uxth r3, r3
  39130. 8010a8e: 3b01 subs r3, #1
  39131. 8010a90: b29a uxth r2, r3
  39132. 8010a92: 68fb ldr r3, [r7, #12]
  39133. 8010a94: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  39134. while (huart->TxXferCount > 0U)
  39135. 8010a98: 68fb ldr r3, [r7, #12]
  39136. 8010a9a: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  39137. 8010a9e: b29b uxth r3, r3
  39138. 8010aa0: 2b00 cmp r3, #0
  39139. 8010aa2: d1c8 bne.n 8010a36 <HAL_UART_Transmit+0x76>
  39140. }
  39141. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
  39142. 8010aa4: 683b ldr r3, [r7, #0]
  39143. 8010aa6: 9300 str r3, [sp, #0]
  39144. 8010aa8: 697b ldr r3, [r7, #20]
  39145. 8010aaa: 2200 movs r2, #0
  39146. 8010aac: 2140 movs r1, #64 @ 0x40
  39147. 8010aae: 68f8 ldr r0, [r7, #12]
  39148. 8010ab0: f001 fb20 bl 80120f4 <UART_WaitOnFlagUntilTimeout>
  39149. 8010ab4: 4603 mov r3, r0
  39150. 8010ab6: 2b00 cmp r3, #0
  39151. 8010ab8: d005 beq.n 8010ac6 <HAL_UART_Transmit+0x106>
  39152. {
  39153. huart->gState = HAL_UART_STATE_READY;
  39154. 8010aba: 68fb ldr r3, [r7, #12]
  39155. 8010abc: 2220 movs r2, #32
  39156. 8010abe: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39157. return HAL_TIMEOUT;
  39158. 8010ac2: 2303 movs r3, #3
  39159. 8010ac4: e006 b.n 8010ad4 <HAL_UART_Transmit+0x114>
  39160. }
  39161. /* At end of Tx process, restore huart->gState to Ready */
  39162. huart->gState = HAL_UART_STATE_READY;
  39163. 8010ac6: 68fb ldr r3, [r7, #12]
  39164. 8010ac8: 2220 movs r2, #32
  39165. 8010aca: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39166. return HAL_OK;
  39167. 8010ace: 2300 movs r3, #0
  39168. 8010ad0: e000 b.n 8010ad4 <HAL_UART_Transmit+0x114>
  39169. }
  39170. else
  39171. {
  39172. return HAL_BUSY;
  39173. 8010ad2: 2302 movs r3, #2
  39174. }
  39175. }
  39176. 8010ad4: 4618 mov r0, r3
  39177. 8010ad6: 3720 adds r7, #32
  39178. 8010ad8: 46bd mov sp, r7
  39179. 8010ada: bd80 pop {r7, pc}
  39180. 08010adc <HAL_UART_Transmit_IT>:
  39181. * @param pData Pointer to data buffer (u8 or u16 data elements).
  39182. * @param Size Amount of data elements (u8 or u16) to be sent.
  39183. * @retval HAL status
  39184. */
  39185. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  39186. {
  39187. 8010adc: b480 push {r7}
  39188. 8010ade: b091 sub sp, #68 @ 0x44
  39189. 8010ae0: af00 add r7, sp, #0
  39190. 8010ae2: 60f8 str r0, [r7, #12]
  39191. 8010ae4: 60b9 str r1, [r7, #8]
  39192. 8010ae6: 4613 mov r3, r2
  39193. 8010ae8: 80fb strh r3, [r7, #6]
  39194. /* Check that a Tx process is not already ongoing */
  39195. if (huart->gState == HAL_UART_STATE_READY)
  39196. 8010aea: 68fb ldr r3, [r7, #12]
  39197. 8010aec: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  39198. 8010af0: 2b20 cmp r3, #32
  39199. 8010af2: d178 bne.n 8010be6 <HAL_UART_Transmit_IT+0x10a>
  39200. {
  39201. if ((pData == NULL) || (Size == 0U))
  39202. 8010af4: 68bb ldr r3, [r7, #8]
  39203. 8010af6: 2b00 cmp r3, #0
  39204. 8010af8: d002 beq.n 8010b00 <HAL_UART_Transmit_IT+0x24>
  39205. 8010afa: 88fb ldrh r3, [r7, #6]
  39206. 8010afc: 2b00 cmp r3, #0
  39207. 8010afe: d101 bne.n 8010b04 <HAL_UART_Transmit_IT+0x28>
  39208. {
  39209. return HAL_ERROR;
  39210. 8010b00: 2301 movs r3, #1
  39211. 8010b02: e071 b.n 8010be8 <HAL_UART_Transmit_IT+0x10c>
  39212. }
  39213. huart->pTxBuffPtr = pData;
  39214. 8010b04: 68fb ldr r3, [r7, #12]
  39215. 8010b06: 68ba ldr r2, [r7, #8]
  39216. 8010b08: 651a str r2, [r3, #80] @ 0x50
  39217. huart->TxXferSize = Size;
  39218. 8010b0a: 68fb ldr r3, [r7, #12]
  39219. 8010b0c: 88fa ldrh r2, [r7, #6]
  39220. 8010b0e: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  39221. huart->TxXferCount = Size;
  39222. 8010b12: 68fb ldr r3, [r7, #12]
  39223. 8010b14: 88fa ldrh r2, [r7, #6]
  39224. 8010b16: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  39225. huart->TxISR = NULL;
  39226. 8010b1a: 68fb ldr r3, [r7, #12]
  39227. 8010b1c: 2200 movs r2, #0
  39228. 8010b1e: 679a str r2, [r3, #120] @ 0x78
  39229. huart->ErrorCode = HAL_UART_ERROR_NONE;
  39230. 8010b20: 68fb ldr r3, [r7, #12]
  39231. 8010b22: 2200 movs r2, #0
  39232. 8010b24: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39233. huart->gState = HAL_UART_STATE_BUSY_TX;
  39234. 8010b28: 68fb ldr r3, [r7, #12]
  39235. 8010b2a: 2221 movs r2, #33 @ 0x21
  39236. 8010b2c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39237. /* Configure Tx interrupt processing */
  39238. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  39239. 8010b30: 68fb ldr r3, [r7, #12]
  39240. 8010b32: 6e5b ldr r3, [r3, #100] @ 0x64
  39241. 8010b34: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  39242. 8010b38: d12a bne.n 8010b90 <HAL_UART_Transmit_IT+0xb4>
  39243. {
  39244. /* Set the Tx ISR function pointer according to the data word length */
  39245. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  39246. 8010b3a: 68fb ldr r3, [r7, #12]
  39247. 8010b3c: 689b ldr r3, [r3, #8]
  39248. 8010b3e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39249. 8010b42: d107 bne.n 8010b54 <HAL_UART_Transmit_IT+0x78>
  39250. 8010b44: 68fb ldr r3, [r7, #12]
  39251. 8010b46: 691b ldr r3, [r3, #16]
  39252. 8010b48: 2b00 cmp r3, #0
  39253. 8010b4a: d103 bne.n 8010b54 <HAL_UART_Transmit_IT+0x78>
  39254. {
  39255. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  39256. 8010b4c: 68fb ldr r3, [r7, #12]
  39257. 8010b4e: 4a29 ldr r2, [pc, #164] @ (8010bf4 <HAL_UART_Transmit_IT+0x118>)
  39258. 8010b50: 679a str r2, [r3, #120] @ 0x78
  39259. 8010b52: e002 b.n 8010b5a <HAL_UART_Transmit_IT+0x7e>
  39260. }
  39261. else
  39262. {
  39263. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  39264. 8010b54: 68fb ldr r3, [r7, #12]
  39265. 8010b56: 4a28 ldr r2, [pc, #160] @ (8010bf8 <HAL_UART_Transmit_IT+0x11c>)
  39266. 8010b58: 679a str r2, [r3, #120] @ 0x78
  39267. }
  39268. /* Enable the TX FIFO threshold interrupt */
  39269. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  39270. 8010b5a: 68fb ldr r3, [r7, #12]
  39271. 8010b5c: 681b ldr r3, [r3, #0]
  39272. 8010b5e: 3308 adds r3, #8
  39273. 8010b60: 62bb str r3, [r7, #40] @ 0x28
  39274. */
  39275. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  39276. {
  39277. uint32_t result;
  39278. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39279. 8010b62: 6abb ldr r3, [r7, #40] @ 0x28
  39280. 8010b64: e853 3f00 ldrex r3, [r3]
  39281. 8010b68: 627b str r3, [r7, #36] @ 0x24
  39282. return(result);
  39283. 8010b6a: 6a7b ldr r3, [r7, #36] @ 0x24
  39284. 8010b6c: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  39285. 8010b70: 63bb str r3, [r7, #56] @ 0x38
  39286. 8010b72: 68fb ldr r3, [r7, #12]
  39287. 8010b74: 681b ldr r3, [r3, #0]
  39288. 8010b76: 3308 adds r3, #8
  39289. 8010b78: 6bba ldr r2, [r7, #56] @ 0x38
  39290. 8010b7a: 637a str r2, [r7, #52] @ 0x34
  39291. 8010b7c: 633b str r3, [r7, #48] @ 0x30
  39292. */
  39293. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  39294. {
  39295. uint32_t result;
  39296. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39297. 8010b7e: 6b39 ldr r1, [r7, #48] @ 0x30
  39298. 8010b80: 6b7a ldr r2, [r7, #52] @ 0x34
  39299. 8010b82: e841 2300 strex r3, r2, [r1]
  39300. 8010b86: 62fb str r3, [r7, #44] @ 0x2c
  39301. return(result);
  39302. 8010b88: 6afb ldr r3, [r7, #44] @ 0x2c
  39303. 8010b8a: 2b00 cmp r3, #0
  39304. 8010b8c: d1e5 bne.n 8010b5a <HAL_UART_Transmit_IT+0x7e>
  39305. 8010b8e: e028 b.n 8010be2 <HAL_UART_Transmit_IT+0x106>
  39306. }
  39307. else
  39308. {
  39309. /* Set the Tx ISR function pointer according to the data word length */
  39310. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  39311. 8010b90: 68fb ldr r3, [r7, #12]
  39312. 8010b92: 689b ldr r3, [r3, #8]
  39313. 8010b94: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39314. 8010b98: d107 bne.n 8010baa <HAL_UART_Transmit_IT+0xce>
  39315. 8010b9a: 68fb ldr r3, [r7, #12]
  39316. 8010b9c: 691b ldr r3, [r3, #16]
  39317. 8010b9e: 2b00 cmp r3, #0
  39318. 8010ba0: d103 bne.n 8010baa <HAL_UART_Transmit_IT+0xce>
  39319. {
  39320. huart->TxISR = UART_TxISR_16BIT;
  39321. 8010ba2: 68fb ldr r3, [r7, #12]
  39322. 8010ba4: 4a15 ldr r2, [pc, #84] @ (8010bfc <HAL_UART_Transmit_IT+0x120>)
  39323. 8010ba6: 679a str r2, [r3, #120] @ 0x78
  39324. 8010ba8: e002 b.n 8010bb0 <HAL_UART_Transmit_IT+0xd4>
  39325. }
  39326. else
  39327. {
  39328. huart->TxISR = UART_TxISR_8BIT;
  39329. 8010baa: 68fb ldr r3, [r7, #12]
  39330. 8010bac: 4a14 ldr r2, [pc, #80] @ (8010c00 <HAL_UART_Transmit_IT+0x124>)
  39331. 8010bae: 679a str r2, [r3, #120] @ 0x78
  39332. }
  39333. /* Enable the Transmit Data Register Empty interrupt */
  39334. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  39335. 8010bb0: 68fb ldr r3, [r7, #12]
  39336. 8010bb2: 681b ldr r3, [r3, #0]
  39337. 8010bb4: 617b str r3, [r7, #20]
  39338. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39339. 8010bb6: 697b ldr r3, [r7, #20]
  39340. 8010bb8: e853 3f00 ldrex r3, [r3]
  39341. 8010bbc: 613b str r3, [r7, #16]
  39342. return(result);
  39343. 8010bbe: 693b ldr r3, [r7, #16]
  39344. 8010bc0: f043 0380 orr.w r3, r3, #128 @ 0x80
  39345. 8010bc4: 63fb str r3, [r7, #60] @ 0x3c
  39346. 8010bc6: 68fb ldr r3, [r7, #12]
  39347. 8010bc8: 681b ldr r3, [r3, #0]
  39348. 8010bca: 461a mov r2, r3
  39349. 8010bcc: 6bfb ldr r3, [r7, #60] @ 0x3c
  39350. 8010bce: 623b str r3, [r7, #32]
  39351. 8010bd0: 61fa str r2, [r7, #28]
  39352. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39353. 8010bd2: 69f9 ldr r1, [r7, #28]
  39354. 8010bd4: 6a3a ldr r2, [r7, #32]
  39355. 8010bd6: e841 2300 strex r3, r2, [r1]
  39356. 8010bda: 61bb str r3, [r7, #24]
  39357. return(result);
  39358. 8010bdc: 69bb ldr r3, [r7, #24]
  39359. 8010bde: 2b00 cmp r3, #0
  39360. 8010be0: d1e6 bne.n 8010bb0 <HAL_UART_Transmit_IT+0xd4>
  39361. }
  39362. return HAL_OK;
  39363. 8010be2: 2300 movs r3, #0
  39364. 8010be4: e000 b.n 8010be8 <HAL_UART_Transmit_IT+0x10c>
  39365. }
  39366. else
  39367. {
  39368. return HAL_BUSY;
  39369. 8010be6: 2302 movs r3, #2
  39370. }
  39371. }
  39372. 8010be8: 4618 mov r0, r3
  39373. 8010bea: 3744 adds r7, #68 @ 0x44
  39374. 8010bec: 46bd mov sp, r7
  39375. 8010bee: f85d 7b04 ldr.w r7, [sp], #4
  39376. 8010bf2: 4770 bx lr
  39377. 8010bf4: 08012767 .word 0x08012767
  39378. 8010bf8: 08012687 .word 0x08012687
  39379. 8010bfc: 080125c5 .word 0x080125c5
  39380. 8010c00: 0801250d .word 0x0801250d
  39381. 08010c04 <HAL_UART_IRQHandler>:
  39382. * @brief Handle UART interrupt request.
  39383. * @param huart UART handle.
  39384. * @retval None
  39385. */
  39386. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  39387. {
  39388. 8010c04: b580 push {r7, lr}
  39389. 8010c06: b0ba sub sp, #232 @ 0xe8
  39390. 8010c08: af00 add r7, sp, #0
  39391. 8010c0a: 6078 str r0, [r7, #4]
  39392. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  39393. 8010c0c: 687b ldr r3, [r7, #4]
  39394. 8010c0e: 681b ldr r3, [r3, #0]
  39395. 8010c10: 69db ldr r3, [r3, #28]
  39396. 8010c12: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  39397. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  39398. 8010c16: 687b ldr r3, [r7, #4]
  39399. 8010c18: 681b ldr r3, [r3, #0]
  39400. 8010c1a: 681b ldr r3, [r3, #0]
  39401. 8010c1c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  39402. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  39403. 8010c20: 687b ldr r3, [r7, #4]
  39404. 8010c22: 681b ldr r3, [r3, #0]
  39405. 8010c24: 689b ldr r3, [r3, #8]
  39406. 8010c26: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  39407. uint32_t errorflags;
  39408. uint32_t errorcode;
  39409. /* If no error occurs */
  39410. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  39411. 8010c2a: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  39412. 8010c2e: f640 030f movw r3, #2063 @ 0x80f
  39413. 8010c32: 4013 ands r3, r2
  39414. 8010c34: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  39415. if (errorflags == 0U)
  39416. 8010c38: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  39417. 8010c3c: 2b00 cmp r3, #0
  39418. 8010c3e: d11b bne.n 8010c78 <HAL_UART_IRQHandler+0x74>
  39419. {
  39420. /* UART in mode Receiver ---------------------------------------------------*/
  39421. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  39422. 8010c40: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39423. 8010c44: f003 0320 and.w r3, r3, #32
  39424. 8010c48: 2b00 cmp r3, #0
  39425. 8010c4a: d015 beq.n 8010c78 <HAL_UART_IRQHandler+0x74>
  39426. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  39427. 8010c4c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39428. 8010c50: f003 0320 and.w r3, r3, #32
  39429. 8010c54: 2b00 cmp r3, #0
  39430. 8010c56: d105 bne.n 8010c64 <HAL_UART_IRQHandler+0x60>
  39431. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  39432. 8010c58: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39433. 8010c5c: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  39434. 8010c60: 2b00 cmp r3, #0
  39435. 8010c62: d009 beq.n 8010c78 <HAL_UART_IRQHandler+0x74>
  39436. {
  39437. if (huart->RxISR != NULL)
  39438. 8010c64: 687b ldr r3, [r7, #4]
  39439. 8010c66: 6f5b ldr r3, [r3, #116] @ 0x74
  39440. 8010c68: 2b00 cmp r3, #0
  39441. 8010c6a: f000 8377 beq.w 801135c <HAL_UART_IRQHandler+0x758>
  39442. {
  39443. huart->RxISR(huart);
  39444. 8010c6e: 687b ldr r3, [r7, #4]
  39445. 8010c70: 6f5b ldr r3, [r3, #116] @ 0x74
  39446. 8010c72: 6878 ldr r0, [r7, #4]
  39447. 8010c74: 4798 blx r3
  39448. }
  39449. return;
  39450. 8010c76: e371 b.n 801135c <HAL_UART_IRQHandler+0x758>
  39451. }
  39452. }
  39453. /* If some errors occur */
  39454. if ((errorflags != 0U)
  39455. 8010c78: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  39456. 8010c7c: 2b00 cmp r3, #0
  39457. 8010c7e: f000 8123 beq.w 8010ec8 <HAL_UART_IRQHandler+0x2c4>
  39458. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  39459. 8010c82: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  39460. 8010c86: 4b8d ldr r3, [pc, #564] @ (8010ebc <HAL_UART_IRQHandler+0x2b8>)
  39461. 8010c88: 4013 ands r3, r2
  39462. 8010c8a: 2b00 cmp r3, #0
  39463. 8010c8c: d106 bne.n 8010c9c <HAL_UART_IRQHandler+0x98>
  39464. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  39465. 8010c8e: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  39466. 8010c92: 4b8b ldr r3, [pc, #556] @ (8010ec0 <HAL_UART_IRQHandler+0x2bc>)
  39467. 8010c94: 4013 ands r3, r2
  39468. 8010c96: 2b00 cmp r3, #0
  39469. 8010c98: f000 8116 beq.w 8010ec8 <HAL_UART_IRQHandler+0x2c4>
  39470. {
  39471. /* UART parity error interrupt occurred -------------------------------------*/
  39472. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  39473. 8010c9c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39474. 8010ca0: f003 0301 and.w r3, r3, #1
  39475. 8010ca4: 2b00 cmp r3, #0
  39476. 8010ca6: d011 beq.n 8010ccc <HAL_UART_IRQHandler+0xc8>
  39477. 8010ca8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39478. 8010cac: f403 7380 and.w r3, r3, #256 @ 0x100
  39479. 8010cb0: 2b00 cmp r3, #0
  39480. 8010cb2: d00b beq.n 8010ccc <HAL_UART_IRQHandler+0xc8>
  39481. {
  39482. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  39483. 8010cb4: 687b ldr r3, [r7, #4]
  39484. 8010cb6: 681b ldr r3, [r3, #0]
  39485. 8010cb8: 2201 movs r2, #1
  39486. 8010cba: 621a str r2, [r3, #32]
  39487. huart->ErrorCode |= HAL_UART_ERROR_PE;
  39488. 8010cbc: 687b ldr r3, [r7, #4]
  39489. 8010cbe: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39490. 8010cc2: f043 0201 orr.w r2, r3, #1
  39491. 8010cc6: 687b ldr r3, [r7, #4]
  39492. 8010cc8: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39493. }
  39494. /* UART frame error interrupt occurred --------------------------------------*/
  39495. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  39496. 8010ccc: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39497. 8010cd0: f003 0302 and.w r3, r3, #2
  39498. 8010cd4: 2b00 cmp r3, #0
  39499. 8010cd6: d011 beq.n 8010cfc <HAL_UART_IRQHandler+0xf8>
  39500. 8010cd8: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39501. 8010cdc: f003 0301 and.w r3, r3, #1
  39502. 8010ce0: 2b00 cmp r3, #0
  39503. 8010ce2: d00b beq.n 8010cfc <HAL_UART_IRQHandler+0xf8>
  39504. {
  39505. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  39506. 8010ce4: 687b ldr r3, [r7, #4]
  39507. 8010ce6: 681b ldr r3, [r3, #0]
  39508. 8010ce8: 2202 movs r2, #2
  39509. 8010cea: 621a str r2, [r3, #32]
  39510. huart->ErrorCode |= HAL_UART_ERROR_FE;
  39511. 8010cec: 687b ldr r3, [r7, #4]
  39512. 8010cee: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39513. 8010cf2: f043 0204 orr.w r2, r3, #4
  39514. 8010cf6: 687b ldr r3, [r7, #4]
  39515. 8010cf8: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39516. }
  39517. /* UART noise error interrupt occurred --------------------------------------*/
  39518. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  39519. 8010cfc: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39520. 8010d00: f003 0304 and.w r3, r3, #4
  39521. 8010d04: 2b00 cmp r3, #0
  39522. 8010d06: d011 beq.n 8010d2c <HAL_UART_IRQHandler+0x128>
  39523. 8010d08: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39524. 8010d0c: f003 0301 and.w r3, r3, #1
  39525. 8010d10: 2b00 cmp r3, #0
  39526. 8010d12: d00b beq.n 8010d2c <HAL_UART_IRQHandler+0x128>
  39527. {
  39528. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  39529. 8010d14: 687b ldr r3, [r7, #4]
  39530. 8010d16: 681b ldr r3, [r3, #0]
  39531. 8010d18: 2204 movs r2, #4
  39532. 8010d1a: 621a str r2, [r3, #32]
  39533. huart->ErrorCode |= HAL_UART_ERROR_NE;
  39534. 8010d1c: 687b ldr r3, [r7, #4]
  39535. 8010d1e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39536. 8010d22: f043 0202 orr.w r2, r3, #2
  39537. 8010d26: 687b ldr r3, [r7, #4]
  39538. 8010d28: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39539. }
  39540. /* UART Over-Run interrupt occurred -----------------------------------------*/
  39541. if (((isrflags & USART_ISR_ORE) != 0U)
  39542. 8010d2c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39543. 8010d30: f003 0308 and.w r3, r3, #8
  39544. 8010d34: 2b00 cmp r3, #0
  39545. 8010d36: d017 beq.n 8010d68 <HAL_UART_IRQHandler+0x164>
  39546. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  39547. 8010d38: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39548. 8010d3c: f003 0320 and.w r3, r3, #32
  39549. 8010d40: 2b00 cmp r3, #0
  39550. 8010d42: d105 bne.n 8010d50 <HAL_UART_IRQHandler+0x14c>
  39551. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  39552. 8010d44: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  39553. 8010d48: 4b5c ldr r3, [pc, #368] @ (8010ebc <HAL_UART_IRQHandler+0x2b8>)
  39554. 8010d4a: 4013 ands r3, r2
  39555. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  39556. 8010d4c: 2b00 cmp r3, #0
  39557. 8010d4e: d00b beq.n 8010d68 <HAL_UART_IRQHandler+0x164>
  39558. {
  39559. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  39560. 8010d50: 687b ldr r3, [r7, #4]
  39561. 8010d52: 681b ldr r3, [r3, #0]
  39562. 8010d54: 2208 movs r2, #8
  39563. 8010d56: 621a str r2, [r3, #32]
  39564. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  39565. 8010d58: 687b ldr r3, [r7, #4]
  39566. 8010d5a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39567. 8010d5e: f043 0208 orr.w r2, r3, #8
  39568. 8010d62: 687b ldr r3, [r7, #4]
  39569. 8010d64: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39570. }
  39571. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  39572. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  39573. 8010d68: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39574. 8010d6c: f403 6300 and.w r3, r3, #2048 @ 0x800
  39575. 8010d70: 2b00 cmp r3, #0
  39576. 8010d72: d012 beq.n 8010d9a <HAL_UART_IRQHandler+0x196>
  39577. 8010d74: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39578. 8010d78: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  39579. 8010d7c: 2b00 cmp r3, #0
  39580. 8010d7e: d00c beq.n 8010d9a <HAL_UART_IRQHandler+0x196>
  39581. {
  39582. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  39583. 8010d80: 687b ldr r3, [r7, #4]
  39584. 8010d82: 681b ldr r3, [r3, #0]
  39585. 8010d84: f44f 6200 mov.w r2, #2048 @ 0x800
  39586. 8010d88: 621a str r2, [r3, #32]
  39587. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  39588. 8010d8a: 687b ldr r3, [r7, #4]
  39589. 8010d8c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39590. 8010d90: f043 0220 orr.w r2, r3, #32
  39591. 8010d94: 687b ldr r3, [r7, #4]
  39592. 8010d96: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39593. }
  39594. /* Call UART Error Call back function if need be ----------------------------*/
  39595. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  39596. 8010d9a: 687b ldr r3, [r7, #4]
  39597. 8010d9c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39598. 8010da0: 2b00 cmp r3, #0
  39599. 8010da2: f000 82dd beq.w 8011360 <HAL_UART_IRQHandler+0x75c>
  39600. {
  39601. /* UART in mode Receiver --------------------------------------------------*/
  39602. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  39603. 8010da6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39604. 8010daa: f003 0320 and.w r3, r3, #32
  39605. 8010dae: 2b00 cmp r3, #0
  39606. 8010db0: d013 beq.n 8010dda <HAL_UART_IRQHandler+0x1d6>
  39607. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  39608. 8010db2: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39609. 8010db6: f003 0320 and.w r3, r3, #32
  39610. 8010dba: 2b00 cmp r3, #0
  39611. 8010dbc: d105 bne.n 8010dca <HAL_UART_IRQHandler+0x1c6>
  39612. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  39613. 8010dbe: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39614. 8010dc2: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  39615. 8010dc6: 2b00 cmp r3, #0
  39616. 8010dc8: d007 beq.n 8010dda <HAL_UART_IRQHandler+0x1d6>
  39617. {
  39618. if (huart->RxISR != NULL)
  39619. 8010dca: 687b ldr r3, [r7, #4]
  39620. 8010dcc: 6f5b ldr r3, [r3, #116] @ 0x74
  39621. 8010dce: 2b00 cmp r3, #0
  39622. 8010dd0: d003 beq.n 8010dda <HAL_UART_IRQHandler+0x1d6>
  39623. {
  39624. huart->RxISR(huart);
  39625. 8010dd2: 687b ldr r3, [r7, #4]
  39626. 8010dd4: 6f5b ldr r3, [r3, #116] @ 0x74
  39627. 8010dd6: 6878 ldr r0, [r7, #4]
  39628. 8010dd8: 4798 blx r3
  39629. /* If Error is to be considered as blocking :
  39630. - Receiver Timeout error in Reception
  39631. - Overrun error in Reception
  39632. - any error occurs in DMA mode reception
  39633. */
  39634. errorcode = huart->ErrorCode;
  39635. 8010dda: 687b ldr r3, [r7, #4]
  39636. 8010ddc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39637. 8010de0: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  39638. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  39639. 8010de4: 687b ldr r3, [r7, #4]
  39640. 8010de6: 681b ldr r3, [r3, #0]
  39641. 8010de8: 689b ldr r3, [r3, #8]
  39642. 8010dea: f003 0340 and.w r3, r3, #64 @ 0x40
  39643. 8010dee: 2b40 cmp r3, #64 @ 0x40
  39644. 8010df0: d005 beq.n 8010dfe <HAL_UART_IRQHandler+0x1fa>
  39645. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  39646. 8010df2: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  39647. 8010df6: f003 0328 and.w r3, r3, #40 @ 0x28
  39648. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  39649. 8010dfa: 2b00 cmp r3, #0
  39650. 8010dfc: d054 beq.n 8010ea8 <HAL_UART_IRQHandler+0x2a4>
  39651. {
  39652. /* Blocking error : transfer is aborted
  39653. Set the UART state ready to be able to start again the process,
  39654. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  39655. UART_EndRxTransfer(huart);
  39656. 8010dfe: 6878 ldr r0, [r7, #4]
  39657. 8010e00: f001 fb08 bl 8012414 <UART_EndRxTransfer>
  39658. /* Abort the UART DMA Rx channel if enabled */
  39659. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39660. 8010e04: 687b ldr r3, [r7, #4]
  39661. 8010e06: 681b ldr r3, [r3, #0]
  39662. 8010e08: 689b ldr r3, [r3, #8]
  39663. 8010e0a: f003 0340 and.w r3, r3, #64 @ 0x40
  39664. 8010e0e: 2b40 cmp r3, #64 @ 0x40
  39665. 8010e10: d146 bne.n 8010ea0 <HAL_UART_IRQHandler+0x29c>
  39666. {
  39667. /* Disable the UART DMA Rx request if enabled */
  39668. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  39669. 8010e12: 687b ldr r3, [r7, #4]
  39670. 8010e14: 681b ldr r3, [r3, #0]
  39671. 8010e16: 3308 adds r3, #8
  39672. 8010e18: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  39673. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39674. 8010e1c: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  39675. 8010e20: e853 3f00 ldrex r3, [r3]
  39676. 8010e24: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  39677. return(result);
  39678. 8010e28: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  39679. 8010e2c: f023 0340 bic.w r3, r3, #64 @ 0x40
  39680. 8010e30: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  39681. 8010e34: 687b ldr r3, [r7, #4]
  39682. 8010e36: 681b ldr r3, [r3, #0]
  39683. 8010e38: 3308 adds r3, #8
  39684. 8010e3a: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  39685. 8010e3e: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  39686. 8010e42: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  39687. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39688. 8010e46: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  39689. 8010e4a: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  39690. 8010e4e: e841 2300 strex r3, r2, [r1]
  39691. 8010e52: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  39692. return(result);
  39693. 8010e56: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  39694. 8010e5a: 2b00 cmp r3, #0
  39695. 8010e5c: d1d9 bne.n 8010e12 <HAL_UART_IRQHandler+0x20e>
  39696. /* Abort the UART DMA Rx channel */
  39697. if (huart->hdmarx != NULL)
  39698. 8010e5e: 687b ldr r3, [r7, #4]
  39699. 8010e60: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39700. 8010e64: 2b00 cmp r3, #0
  39701. 8010e66: d017 beq.n 8010e98 <HAL_UART_IRQHandler+0x294>
  39702. {
  39703. /* Set the UART DMA Abort callback :
  39704. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  39705. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  39706. 8010e68: 687b ldr r3, [r7, #4]
  39707. 8010e6a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39708. 8010e6e: 4a15 ldr r2, [pc, #84] @ (8010ec4 <HAL_UART_IRQHandler+0x2c0>)
  39709. 8010e70: 651a str r2, [r3, #80] @ 0x50
  39710. /* Abort DMA RX */
  39711. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  39712. 8010e72: 687b ldr r3, [r7, #4]
  39713. 8010e74: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39714. 8010e78: 4618 mov r0, r3
  39715. 8010e7a: f7f7 ff5f bl 8008d3c <HAL_DMA_Abort_IT>
  39716. 8010e7e: 4603 mov r3, r0
  39717. 8010e80: 2b00 cmp r3, #0
  39718. 8010e82: d019 beq.n 8010eb8 <HAL_UART_IRQHandler+0x2b4>
  39719. {
  39720. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  39721. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  39722. 8010e84: 687b ldr r3, [r7, #4]
  39723. 8010e86: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39724. 8010e8a: 6d1b ldr r3, [r3, #80] @ 0x50
  39725. 8010e8c: 687a ldr r2, [r7, #4]
  39726. 8010e8e: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  39727. 8010e92: 4610 mov r0, r2
  39728. 8010e94: 4798 blx r3
  39729. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39730. 8010e96: e00f b.n 8010eb8 <HAL_UART_IRQHandler+0x2b4>
  39731. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  39732. /*Call registered error callback*/
  39733. huart->ErrorCallback(huart);
  39734. #else
  39735. /*Call legacy weak error callback*/
  39736. HAL_UART_ErrorCallback(huart);
  39737. 8010e98: 6878 ldr r0, [r7, #4]
  39738. 8010e9a: f000 fa6d bl 8011378 <HAL_UART_ErrorCallback>
  39739. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39740. 8010e9e: e00b b.n 8010eb8 <HAL_UART_IRQHandler+0x2b4>
  39741. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  39742. /*Call registered error callback*/
  39743. huart->ErrorCallback(huart);
  39744. #else
  39745. /*Call legacy weak error callback*/
  39746. HAL_UART_ErrorCallback(huart);
  39747. 8010ea0: 6878 ldr r0, [r7, #4]
  39748. 8010ea2: f000 fa69 bl 8011378 <HAL_UART_ErrorCallback>
  39749. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39750. 8010ea6: e007 b.n 8010eb8 <HAL_UART_IRQHandler+0x2b4>
  39751. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  39752. /*Call registered error callback*/
  39753. huart->ErrorCallback(huart);
  39754. #else
  39755. /*Call legacy weak error callback*/
  39756. HAL_UART_ErrorCallback(huart);
  39757. 8010ea8: 6878 ldr r0, [r7, #4]
  39758. 8010eaa: f000 fa65 bl 8011378 <HAL_UART_ErrorCallback>
  39759. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  39760. huart->ErrorCode = HAL_UART_ERROR_NONE;
  39761. 8010eae: 687b ldr r3, [r7, #4]
  39762. 8010eb0: 2200 movs r2, #0
  39763. 8010eb2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39764. }
  39765. }
  39766. return;
  39767. 8010eb6: e253 b.n 8011360 <HAL_UART_IRQHandler+0x75c>
  39768. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39769. 8010eb8: bf00 nop
  39770. return;
  39771. 8010eba: e251 b.n 8011360 <HAL_UART_IRQHandler+0x75c>
  39772. 8010ebc: 10000001 .word 0x10000001
  39773. 8010ec0: 04000120 .word 0x04000120
  39774. 8010ec4: 080124e1 .word 0x080124e1
  39775. } /* End if some error occurs */
  39776. /* Check current reception Mode :
  39777. If Reception till IDLE event has been selected : */
  39778. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  39779. 8010ec8: 687b ldr r3, [r7, #4]
  39780. 8010eca: 6edb ldr r3, [r3, #108] @ 0x6c
  39781. 8010ecc: 2b01 cmp r3, #1
  39782. 8010ece: f040 81e7 bne.w 80112a0 <HAL_UART_IRQHandler+0x69c>
  39783. && ((isrflags & USART_ISR_IDLE) != 0U)
  39784. 8010ed2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39785. 8010ed6: f003 0310 and.w r3, r3, #16
  39786. 8010eda: 2b00 cmp r3, #0
  39787. 8010edc: f000 81e0 beq.w 80112a0 <HAL_UART_IRQHandler+0x69c>
  39788. && ((cr1its & USART_ISR_IDLE) != 0U))
  39789. 8010ee0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39790. 8010ee4: f003 0310 and.w r3, r3, #16
  39791. 8010ee8: 2b00 cmp r3, #0
  39792. 8010eea: f000 81d9 beq.w 80112a0 <HAL_UART_IRQHandler+0x69c>
  39793. {
  39794. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  39795. 8010eee: 687b ldr r3, [r7, #4]
  39796. 8010ef0: 681b ldr r3, [r3, #0]
  39797. 8010ef2: 2210 movs r2, #16
  39798. 8010ef4: 621a str r2, [r3, #32]
  39799. /* Check if DMA mode is enabled in UART */
  39800. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39801. 8010ef6: 687b ldr r3, [r7, #4]
  39802. 8010ef8: 681b ldr r3, [r3, #0]
  39803. 8010efa: 689b ldr r3, [r3, #8]
  39804. 8010efc: f003 0340 and.w r3, r3, #64 @ 0x40
  39805. 8010f00: 2b40 cmp r3, #64 @ 0x40
  39806. 8010f02: f040 8151 bne.w 80111a8 <HAL_UART_IRQHandler+0x5a4>
  39807. {
  39808. /* DMA mode enabled */
  39809. /* Check received length : If all expected data are received, do nothing,
  39810. (DMA cplt callback will be called).
  39811. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  39812. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  39813. 8010f06: 687b ldr r3, [r7, #4]
  39814. 8010f08: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39815. 8010f0c: 681b ldr r3, [r3, #0]
  39816. 8010f0e: 4a96 ldr r2, [pc, #600] @ (8011168 <HAL_UART_IRQHandler+0x564>)
  39817. 8010f10: 4293 cmp r3, r2
  39818. 8010f12: d068 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39819. 8010f14: 687b ldr r3, [r7, #4]
  39820. 8010f16: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39821. 8010f1a: 681b ldr r3, [r3, #0]
  39822. 8010f1c: 4a93 ldr r2, [pc, #588] @ (801116c <HAL_UART_IRQHandler+0x568>)
  39823. 8010f1e: 4293 cmp r3, r2
  39824. 8010f20: d061 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39825. 8010f22: 687b ldr r3, [r7, #4]
  39826. 8010f24: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39827. 8010f28: 681b ldr r3, [r3, #0]
  39828. 8010f2a: 4a91 ldr r2, [pc, #580] @ (8011170 <HAL_UART_IRQHandler+0x56c>)
  39829. 8010f2c: 4293 cmp r3, r2
  39830. 8010f2e: d05a beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39831. 8010f30: 687b ldr r3, [r7, #4]
  39832. 8010f32: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39833. 8010f36: 681b ldr r3, [r3, #0]
  39834. 8010f38: 4a8e ldr r2, [pc, #568] @ (8011174 <HAL_UART_IRQHandler+0x570>)
  39835. 8010f3a: 4293 cmp r3, r2
  39836. 8010f3c: d053 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39837. 8010f3e: 687b ldr r3, [r7, #4]
  39838. 8010f40: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39839. 8010f44: 681b ldr r3, [r3, #0]
  39840. 8010f46: 4a8c ldr r2, [pc, #560] @ (8011178 <HAL_UART_IRQHandler+0x574>)
  39841. 8010f48: 4293 cmp r3, r2
  39842. 8010f4a: d04c beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39843. 8010f4c: 687b ldr r3, [r7, #4]
  39844. 8010f4e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39845. 8010f52: 681b ldr r3, [r3, #0]
  39846. 8010f54: 4a89 ldr r2, [pc, #548] @ (801117c <HAL_UART_IRQHandler+0x578>)
  39847. 8010f56: 4293 cmp r3, r2
  39848. 8010f58: d045 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39849. 8010f5a: 687b ldr r3, [r7, #4]
  39850. 8010f5c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39851. 8010f60: 681b ldr r3, [r3, #0]
  39852. 8010f62: 4a87 ldr r2, [pc, #540] @ (8011180 <HAL_UART_IRQHandler+0x57c>)
  39853. 8010f64: 4293 cmp r3, r2
  39854. 8010f66: d03e beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39855. 8010f68: 687b ldr r3, [r7, #4]
  39856. 8010f6a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39857. 8010f6e: 681b ldr r3, [r3, #0]
  39858. 8010f70: 4a84 ldr r2, [pc, #528] @ (8011184 <HAL_UART_IRQHandler+0x580>)
  39859. 8010f72: 4293 cmp r3, r2
  39860. 8010f74: d037 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39861. 8010f76: 687b ldr r3, [r7, #4]
  39862. 8010f78: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39863. 8010f7c: 681b ldr r3, [r3, #0]
  39864. 8010f7e: 4a82 ldr r2, [pc, #520] @ (8011188 <HAL_UART_IRQHandler+0x584>)
  39865. 8010f80: 4293 cmp r3, r2
  39866. 8010f82: d030 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39867. 8010f84: 687b ldr r3, [r7, #4]
  39868. 8010f86: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39869. 8010f8a: 681b ldr r3, [r3, #0]
  39870. 8010f8c: 4a7f ldr r2, [pc, #508] @ (801118c <HAL_UART_IRQHandler+0x588>)
  39871. 8010f8e: 4293 cmp r3, r2
  39872. 8010f90: d029 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39873. 8010f92: 687b ldr r3, [r7, #4]
  39874. 8010f94: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39875. 8010f98: 681b ldr r3, [r3, #0]
  39876. 8010f9a: 4a7d ldr r2, [pc, #500] @ (8011190 <HAL_UART_IRQHandler+0x58c>)
  39877. 8010f9c: 4293 cmp r3, r2
  39878. 8010f9e: d022 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39879. 8010fa0: 687b ldr r3, [r7, #4]
  39880. 8010fa2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39881. 8010fa6: 681b ldr r3, [r3, #0]
  39882. 8010fa8: 4a7a ldr r2, [pc, #488] @ (8011194 <HAL_UART_IRQHandler+0x590>)
  39883. 8010faa: 4293 cmp r3, r2
  39884. 8010fac: d01b beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39885. 8010fae: 687b ldr r3, [r7, #4]
  39886. 8010fb0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39887. 8010fb4: 681b ldr r3, [r3, #0]
  39888. 8010fb6: 4a78 ldr r2, [pc, #480] @ (8011198 <HAL_UART_IRQHandler+0x594>)
  39889. 8010fb8: 4293 cmp r3, r2
  39890. 8010fba: d014 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39891. 8010fbc: 687b ldr r3, [r7, #4]
  39892. 8010fbe: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39893. 8010fc2: 681b ldr r3, [r3, #0]
  39894. 8010fc4: 4a75 ldr r2, [pc, #468] @ (801119c <HAL_UART_IRQHandler+0x598>)
  39895. 8010fc6: 4293 cmp r3, r2
  39896. 8010fc8: d00d beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39897. 8010fca: 687b ldr r3, [r7, #4]
  39898. 8010fcc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39899. 8010fd0: 681b ldr r3, [r3, #0]
  39900. 8010fd2: 4a73 ldr r2, [pc, #460] @ (80111a0 <HAL_UART_IRQHandler+0x59c>)
  39901. 8010fd4: 4293 cmp r3, r2
  39902. 8010fd6: d006 beq.n 8010fe6 <HAL_UART_IRQHandler+0x3e2>
  39903. 8010fd8: 687b ldr r3, [r7, #4]
  39904. 8010fda: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39905. 8010fde: 681b ldr r3, [r3, #0]
  39906. 8010fe0: 4a70 ldr r2, [pc, #448] @ (80111a4 <HAL_UART_IRQHandler+0x5a0>)
  39907. 8010fe2: 4293 cmp r3, r2
  39908. 8010fe4: d106 bne.n 8010ff4 <HAL_UART_IRQHandler+0x3f0>
  39909. 8010fe6: 687b ldr r3, [r7, #4]
  39910. 8010fe8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39911. 8010fec: 681b ldr r3, [r3, #0]
  39912. 8010fee: 685b ldr r3, [r3, #4]
  39913. 8010ff0: b29b uxth r3, r3
  39914. 8010ff2: e005 b.n 8011000 <HAL_UART_IRQHandler+0x3fc>
  39915. 8010ff4: 687b ldr r3, [r7, #4]
  39916. 8010ff6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39917. 8010ffa: 681b ldr r3, [r3, #0]
  39918. 8010ffc: 685b ldr r3, [r3, #4]
  39919. 8010ffe: b29b uxth r3, r3
  39920. 8011000: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  39921. if ((nb_remaining_rx_data > 0U)
  39922. 8011004: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  39923. 8011008: 2b00 cmp r3, #0
  39924. 801100a: f000 81ab beq.w 8011364 <HAL_UART_IRQHandler+0x760>
  39925. && (nb_remaining_rx_data < huart->RxXferSize))
  39926. 801100e: 687b ldr r3, [r7, #4]
  39927. 8011010: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  39928. 8011014: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  39929. 8011018: 429a cmp r2, r3
  39930. 801101a: f080 81a3 bcs.w 8011364 <HAL_UART_IRQHandler+0x760>
  39931. {
  39932. /* Reception is not complete */
  39933. huart->RxXferCount = nb_remaining_rx_data;
  39934. 801101e: 687b ldr r3, [r7, #4]
  39935. 8011020: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  39936. 8011024: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  39937. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  39938. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  39939. 8011028: 687b ldr r3, [r7, #4]
  39940. 801102a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39941. 801102e: 69db ldr r3, [r3, #28]
  39942. 8011030: f5b3 7f80 cmp.w r3, #256 @ 0x100
  39943. 8011034: f000 8087 beq.w 8011146 <HAL_UART_IRQHandler+0x542>
  39944. {
  39945. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  39946. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  39947. 8011038: 687b ldr r3, [r7, #4]
  39948. 801103a: 681b ldr r3, [r3, #0]
  39949. 801103c: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  39950. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39951. 8011040: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  39952. 8011044: e853 3f00 ldrex r3, [r3]
  39953. 8011048: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  39954. return(result);
  39955. 801104c: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  39956. 8011050: f423 7380 bic.w r3, r3, #256 @ 0x100
  39957. 8011054: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  39958. 8011058: 687b ldr r3, [r7, #4]
  39959. 801105a: 681b ldr r3, [r3, #0]
  39960. 801105c: 461a mov r2, r3
  39961. 801105e: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  39962. 8011062: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  39963. 8011066: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  39964. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39965. 801106a: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  39966. 801106e: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  39967. 8011072: e841 2300 strex r3, r2, [r1]
  39968. 8011076: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  39969. return(result);
  39970. 801107a: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  39971. 801107e: 2b00 cmp r3, #0
  39972. 8011080: d1da bne.n 8011038 <HAL_UART_IRQHandler+0x434>
  39973. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  39974. 8011082: 687b ldr r3, [r7, #4]
  39975. 8011084: 681b ldr r3, [r3, #0]
  39976. 8011086: 3308 adds r3, #8
  39977. 8011088: 677b str r3, [r7, #116] @ 0x74
  39978. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39979. 801108a: 6f7b ldr r3, [r7, #116] @ 0x74
  39980. 801108c: e853 3f00 ldrex r3, [r3]
  39981. 8011090: 673b str r3, [r7, #112] @ 0x70
  39982. return(result);
  39983. 8011092: 6f3b ldr r3, [r7, #112] @ 0x70
  39984. 8011094: f023 0301 bic.w r3, r3, #1
  39985. 8011098: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  39986. 801109c: 687b ldr r3, [r7, #4]
  39987. 801109e: 681b ldr r3, [r3, #0]
  39988. 80110a0: 3308 adds r3, #8
  39989. 80110a2: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  39990. 80110a6: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  39991. 80110aa: 67fb str r3, [r7, #124] @ 0x7c
  39992. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39993. 80110ac: 6ff9 ldr r1, [r7, #124] @ 0x7c
  39994. 80110ae: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  39995. 80110b2: e841 2300 strex r3, r2, [r1]
  39996. 80110b6: 67bb str r3, [r7, #120] @ 0x78
  39997. return(result);
  39998. 80110b8: 6fbb ldr r3, [r7, #120] @ 0x78
  39999. 80110ba: 2b00 cmp r3, #0
  40000. 80110bc: d1e1 bne.n 8011082 <HAL_UART_IRQHandler+0x47e>
  40001. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  40002. in the UART CR3 register */
  40003. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  40004. 80110be: 687b ldr r3, [r7, #4]
  40005. 80110c0: 681b ldr r3, [r3, #0]
  40006. 80110c2: 3308 adds r3, #8
  40007. 80110c4: 663b str r3, [r7, #96] @ 0x60
  40008. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40009. 80110c6: 6e3b ldr r3, [r7, #96] @ 0x60
  40010. 80110c8: e853 3f00 ldrex r3, [r3]
  40011. 80110cc: 65fb str r3, [r7, #92] @ 0x5c
  40012. return(result);
  40013. 80110ce: 6dfb ldr r3, [r7, #92] @ 0x5c
  40014. 80110d0: f023 0340 bic.w r3, r3, #64 @ 0x40
  40015. 80110d4: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  40016. 80110d8: 687b ldr r3, [r7, #4]
  40017. 80110da: 681b ldr r3, [r3, #0]
  40018. 80110dc: 3308 adds r3, #8
  40019. 80110de: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  40020. 80110e2: 66fa str r2, [r7, #108] @ 0x6c
  40021. 80110e4: 66bb str r3, [r7, #104] @ 0x68
  40022. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40023. 80110e6: 6eb9 ldr r1, [r7, #104] @ 0x68
  40024. 80110e8: 6efa ldr r2, [r7, #108] @ 0x6c
  40025. 80110ea: e841 2300 strex r3, r2, [r1]
  40026. 80110ee: 667b str r3, [r7, #100] @ 0x64
  40027. return(result);
  40028. 80110f0: 6e7b ldr r3, [r7, #100] @ 0x64
  40029. 80110f2: 2b00 cmp r3, #0
  40030. 80110f4: d1e3 bne.n 80110be <HAL_UART_IRQHandler+0x4ba>
  40031. /* At end of Rx process, restore huart->RxState to Ready */
  40032. huart->RxState = HAL_UART_STATE_READY;
  40033. 80110f6: 687b ldr r3, [r7, #4]
  40034. 80110f8: 2220 movs r2, #32
  40035. 80110fa: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  40036. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  40037. 80110fe: 687b ldr r3, [r7, #4]
  40038. 8011100: 2200 movs r2, #0
  40039. 8011102: 66da str r2, [r3, #108] @ 0x6c
  40040. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  40041. 8011104: 687b ldr r3, [r7, #4]
  40042. 8011106: 681b ldr r3, [r3, #0]
  40043. 8011108: 64fb str r3, [r7, #76] @ 0x4c
  40044. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40045. 801110a: 6cfb ldr r3, [r7, #76] @ 0x4c
  40046. 801110c: e853 3f00 ldrex r3, [r3]
  40047. 8011110: 64bb str r3, [r7, #72] @ 0x48
  40048. return(result);
  40049. 8011112: 6cbb ldr r3, [r7, #72] @ 0x48
  40050. 8011114: f023 0310 bic.w r3, r3, #16
  40051. 8011118: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  40052. 801111c: 687b ldr r3, [r7, #4]
  40053. 801111e: 681b ldr r3, [r3, #0]
  40054. 8011120: 461a mov r2, r3
  40055. 8011122: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  40056. 8011126: 65bb str r3, [r7, #88] @ 0x58
  40057. 8011128: 657a str r2, [r7, #84] @ 0x54
  40058. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40059. 801112a: 6d79 ldr r1, [r7, #84] @ 0x54
  40060. 801112c: 6dba ldr r2, [r7, #88] @ 0x58
  40061. 801112e: e841 2300 strex r3, r2, [r1]
  40062. 8011132: 653b str r3, [r7, #80] @ 0x50
  40063. return(result);
  40064. 8011134: 6d3b ldr r3, [r7, #80] @ 0x50
  40065. 8011136: 2b00 cmp r3, #0
  40066. 8011138: d1e4 bne.n 8011104 <HAL_UART_IRQHandler+0x500>
  40067. /* Last bytes received, so no need as the abort is immediate */
  40068. (void)HAL_DMA_Abort(huart->hdmarx);
  40069. 801113a: 687b ldr r3, [r7, #4]
  40070. 801113c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40071. 8011140: 4618 mov r0, r3
  40072. 8011142: f7f7 fadd bl 8008700 <HAL_DMA_Abort>
  40073. }
  40074. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  40075. In this case, Rx Event type is Idle Event */
  40076. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  40077. 8011146: 687b ldr r3, [r7, #4]
  40078. 8011148: 2202 movs r2, #2
  40079. 801114a: 671a str r2, [r3, #112] @ 0x70
  40080. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40081. /*Call registered Rx Event callback*/
  40082. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  40083. #else
  40084. /*Call legacy weak Rx Event callback*/
  40085. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  40086. 801114c: 687b ldr r3, [r7, #4]
  40087. 801114e: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  40088. 8011152: 687b ldr r3, [r7, #4]
  40089. 8011154: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  40090. 8011158: b29b uxth r3, r3
  40091. 801115a: 1ad3 subs r3, r2, r3
  40092. 801115c: b29b uxth r3, r3
  40093. 801115e: 4619 mov r1, r3
  40094. 8011160: 6878 ldr r0, [r7, #4]
  40095. 8011162: f7f3 f8d1 bl 8004308 <HAL_UARTEx_RxEventCallback>
  40096. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40097. }
  40098. return;
  40099. 8011166: e0fd b.n 8011364 <HAL_UART_IRQHandler+0x760>
  40100. 8011168: 40020010 .word 0x40020010
  40101. 801116c: 40020028 .word 0x40020028
  40102. 8011170: 40020040 .word 0x40020040
  40103. 8011174: 40020058 .word 0x40020058
  40104. 8011178: 40020070 .word 0x40020070
  40105. 801117c: 40020088 .word 0x40020088
  40106. 8011180: 400200a0 .word 0x400200a0
  40107. 8011184: 400200b8 .word 0x400200b8
  40108. 8011188: 40020410 .word 0x40020410
  40109. 801118c: 40020428 .word 0x40020428
  40110. 8011190: 40020440 .word 0x40020440
  40111. 8011194: 40020458 .word 0x40020458
  40112. 8011198: 40020470 .word 0x40020470
  40113. 801119c: 40020488 .word 0x40020488
  40114. 80111a0: 400204a0 .word 0x400204a0
  40115. 80111a4: 400204b8 .word 0x400204b8
  40116. else
  40117. {
  40118. /* DMA mode not enabled */
  40119. /* Check received length : If all expected data are received, do nothing.
  40120. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  40121. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  40122. 80111a8: 687b ldr r3, [r7, #4]
  40123. 80111aa: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  40124. 80111ae: 687b ldr r3, [r7, #4]
  40125. 80111b0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  40126. 80111b4: b29b uxth r3, r3
  40127. 80111b6: 1ad3 subs r3, r2, r3
  40128. 80111b8: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  40129. if ((huart->RxXferCount > 0U)
  40130. 80111bc: 687b ldr r3, [r7, #4]
  40131. 80111be: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  40132. 80111c2: b29b uxth r3, r3
  40133. 80111c4: 2b00 cmp r3, #0
  40134. 80111c6: f000 80cf beq.w 8011368 <HAL_UART_IRQHandler+0x764>
  40135. && (nb_rx_data > 0U))
  40136. 80111ca: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  40137. 80111ce: 2b00 cmp r3, #0
  40138. 80111d0: f000 80ca beq.w 8011368 <HAL_UART_IRQHandler+0x764>
  40139. {
  40140. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  40141. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  40142. 80111d4: 687b ldr r3, [r7, #4]
  40143. 80111d6: 681b ldr r3, [r3, #0]
  40144. 80111d8: 63bb str r3, [r7, #56] @ 0x38
  40145. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40146. 80111da: 6bbb ldr r3, [r7, #56] @ 0x38
  40147. 80111dc: e853 3f00 ldrex r3, [r3]
  40148. 80111e0: 637b str r3, [r7, #52] @ 0x34
  40149. return(result);
  40150. 80111e2: 6b7b ldr r3, [r7, #52] @ 0x34
  40151. 80111e4: f423 7390 bic.w r3, r3, #288 @ 0x120
  40152. 80111e8: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  40153. 80111ec: 687b ldr r3, [r7, #4]
  40154. 80111ee: 681b ldr r3, [r3, #0]
  40155. 80111f0: 461a mov r2, r3
  40156. 80111f2: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  40157. 80111f6: 647b str r3, [r7, #68] @ 0x44
  40158. 80111f8: 643a str r2, [r7, #64] @ 0x40
  40159. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40160. 80111fa: 6c39 ldr r1, [r7, #64] @ 0x40
  40161. 80111fc: 6c7a ldr r2, [r7, #68] @ 0x44
  40162. 80111fe: e841 2300 strex r3, r2, [r1]
  40163. 8011202: 63fb str r3, [r7, #60] @ 0x3c
  40164. return(result);
  40165. 8011204: 6bfb ldr r3, [r7, #60] @ 0x3c
  40166. 8011206: 2b00 cmp r3, #0
  40167. 8011208: d1e4 bne.n 80111d4 <HAL_UART_IRQHandler+0x5d0>
  40168. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  40169. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  40170. 801120a: 687b ldr r3, [r7, #4]
  40171. 801120c: 681b ldr r3, [r3, #0]
  40172. 801120e: 3308 adds r3, #8
  40173. 8011210: 627b str r3, [r7, #36] @ 0x24
  40174. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40175. 8011212: 6a7b ldr r3, [r7, #36] @ 0x24
  40176. 8011214: e853 3f00 ldrex r3, [r3]
  40177. 8011218: 623b str r3, [r7, #32]
  40178. return(result);
  40179. 801121a: 6a3a ldr r2, [r7, #32]
  40180. 801121c: 4b55 ldr r3, [pc, #340] @ (8011374 <HAL_UART_IRQHandler+0x770>)
  40181. 801121e: 4013 ands r3, r2
  40182. 8011220: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  40183. 8011224: 687b ldr r3, [r7, #4]
  40184. 8011226: 681b ldr r3, [r3, #0]
  40185. 8011228: 3308 adds r3, #8
  40186. 801122a: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  40187. 801122e: 633a str r2, [r7, #48] @ 0x30
  40188. 8011230: 62fb str r3, [r7, #44] @ 0x2c
  40189. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40190. 8011232: 6af9 ldr r1, [r7, #44] @ 0x2c
  40191. 8011234: 6b3a ldr r2, [r7, #48] @ 0x30
  40192. 8011236: e841 2300 strex r3, r2, [r1]
  40193. 801123a: 62bb str r3, [r7, #40] @ 0x28
  40194. return(result);
  40195. 801123c: 6abb ldr r3, [r7, #40] @ 0x28
  40196. 801123e: 2b00 cmp r3, #0
  40197. 8011240: d1e3 bne.n 801120a <HAL_UART_IRQHandler+0x606>
  40198. /* Rx process is completed, restore huart->RxState to Ready */
  40199. huart->RxState = HAL_UART_STATE_READY;
  40200. 8011242: 687b ldr r3, [r7, #4]
  40201. 8011244: 2220 movs r2, #32
  40202. 8011246: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  40203. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  40204. 801124a: 687b ldr r3, [r7, #4]
  40205. 801124c: 2200 movs r2, #0
  40206. 801124e: 66da str r2, [r3, #108] @ 0x6c
  40207. /* Clear RxISR function pointer */
  40208. huart->RxISR = NULL;
  40209. 8011250: 687b ldr r3, [r7, #4]
  40210. 8011252: 2200 movs r2, #0
  40211. 8011254: 675a str r2, [r3, #116] @ 0x74
  40212. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  40213. 8011256: 687b ldr r3, [r7, #4]
  40214. 8011258: 681b ldr r3, [r3, #0]
  40215. 801125a: 613b str r3, [r7, #16]
  40216. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40217. 801125c: 693b ldr r3, [r7, #16]
  40218. 801125e: e853 3f00 ldrex r3, [r3]
  40219. 8011262: 60fb str r3, [r7, #12]
  40220. return(result);
  40221. 8011264: 68fb ldr r3, [r7, #12]
  40222. 8011266: f023 0310 bic.w r3, r3, #16
  40223. 801126a: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  40224. 801126e: 687b ldr r3, [r7, #4]
  40225. 8011270: 681b ldr r3, [r3, #0]
  40226. 8011272: 461a mov r2, r3
  40227. 8011274: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  40228. 8011278: 61fb str r3, [r7, #28]
  40229. 801127a: 61ba str r2, [r7, #24]
  40230. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40231. 801127c: 69b9 ldr r1, [r7, #24]
  40232. 801127e: 69fa ldr r2, [r7, #28]
  40233. 8011280: e841 2300 strex r3, r2, [r1]
  40234. 8011284: 617b str r3, [r7, #20]
  40235. return(result);
  40236. 8011286: 697b ldr r3, [r7, #20]
  40237. 8011288: 2b00 cmp r3, #0
  40238. 801128a: d1e4 bne.n 8011256 <HAL_UART_IRQHandler+0x652>
  40239. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  40240. In this case, Rx Event type is Idle Event */
  40241. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  40242. 801128c: 687b ldr r3, [r7, #4]
  40243. 801128e: 2202 movs r2, #2
  40244. 8011290: 671a str r2, [r3, #112] @ 0x70
  40245. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40246. /*Call registered Rx complete callback*/
  40247. huart->RxEventCallback(huart, nb_rx_data);
  40248. #else
  40249. /*Call legacy weak Rx Event callback*/
  40250. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  40251. 8011292: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  40252. 8011296: 4619 mov r1, r3
  40253. 8011298: 6878 ldr r0, [r7, #4]
  40254. 801129a: f7f3 f835 bl 8004308 <HAL_UARTEx_RxEventCallback>
  40255. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40256. }
  40257. return;
  40258. 801129e: e063 b.n 8011368 <HAL_UART_IRQHandler+0x764>
  40259. }
  40260. }
  40261. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  40262. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  40263. 80112a0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40264. 80112a4: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  40265. 80112a8: 2b00 cmp r3, #0
  40266. 80112aa: d00e beq.n 80112ca <HAL_UART_IRQHandler+0x6c6>
  40267. 80112ac: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40268. 80112b0: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  40269. 80112b4: 2b00 cmp r3, #0
  40270. 80112b6: d008 beq.n 80112ca <HAL_UART_IRQHandler+0x6c6>
  40271. {
  40272. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  40273. 80112b8: 687b ldr r3, [r7, #4]
  40274. 80112ba: 681b ldr r3, [r3, #0]
  40275. 80112bc: f44f 1280 mov.w r2, #1048576 @ 0x100000
  40276. 80112c0: 621a str r2, [r3, #32]
  40277. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40278. /* Call registered Wakeup Callback */
  40279. huart->WakeupCallback(huart);
  40280. #else
  40281. /* Call legacy weak Wakeup Callback */
  40282. HAL_UARTEx_WakeupCallback(huart);
  40283. 80112c2: 6878 ldr r0, [r7, #4]
  40284. 80112c4: f002 f80c bl 80132e0 <HAL_UARTEx_WakeupCallback>
  40285. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40286. return;
  40287. 80112c8: e051 b.n 801136e <HAL_UART_IRQHandler+0x76a>
  40288. }
  40289. /* UART in mode Transmitter ------------------------------------------------*/
  40290. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  40291. 80112ca: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40292. 80112ce: f003 0380 and.w r3, r3, #128 @ 0x80
  40293. 80112d2: 2b00 cmp r3, #0
  40294. 80112d4: d014 beq.n 8011300 <HAL_UART_IRQHandler+0x6fc>
  40295. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  40296. 80112d6: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40297. 80112da: f003 0380 and.w r3, r3, #128 @ 0x80
  40298. 80112de: 2b00 cmp r3, #0
  40299. 80112e0: d105 bne.n 80112ee <HAL_UART_IRQHandler+0x6ea>
  40300. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  40301. 80112e2: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40302. 80112e6: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  40303. 80112ea: 2b00 cmp r3, #0
  40304. 80112ec: d008 beq.n 8011300 <HAL_UART_IRQHandler+0x6fc>
  40305. {
  40306. if (huart->TxISR != NULL)
  40307. 80112ee: 687b ldr r3, [r7, #4]
  40308. 80112f0: 6f9b ldr r3, [r3, #120] @ 0x78
  40309. 80112f2: 2b00 cmp r3, #0
  40310. 80112f4: d03a beq.n 801136c <HAL_UART_IRQHandler+0x768>
  40311. {
  40312. huart->TxISR(huart);
  40313. 80112f6: 687b ldr r3, [r7, #4]
  40314. 80112f8: 6f9b ldr r3, [r3, #120] @ 0x78
  40315. 80112fa: 6878 ldr r0, [r7, #4]
  40316. 80112fc: 4798 blx r3
  40317. }
  40318. return;
  40319. 80112fe: e035 b.n 801136c <HAL_UART_IRQHandler+0x768>
  40320. }
  40321. /* UART in mode Transmitter (transmission end) -----------------------------*/
  40322. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  40323. 8011300: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40324. 8011304: f003 0340 and.w r3, r3, #64 @ 0x40
  40325. 8011308: 2b00 cmp r3, #0
  40326. 801130a: d009 beq.n 8011320 <HAL_UART_IRQHandler+0x71c>
  40327. 801130c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40328. 8011310: f003 0340 and.w r3, r3, #64 @ 0x40
  40329. 8011314: 2b00 cmp r3, #0
  40330. 8011316: d003 beq.n 8011320 <HAL_UART_IRQHandler+0x71c>
  40331. {
  40332. UART_EndTransmit_IT(huart);
  40333. 8011318: 6878 ldr r0, [r7, #4]
  40334. 801131a: f001 fa99 bl 8012850 <UART_EndTransmit_IT>
  40335. return;
  40336. 801131e: e026 b.n 801136e <HAL_UART_IRQHandler+0x76a>
  40337. }
  40338. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  40339. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  40340. 8011320: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40341. 8011324: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  40342. 8011328: 2b00 cmp r3, #0
  40343. 801132a: d009 beq.n 8011340 <HAL_UART_IRQHandler+0x73c>
  40344. 801132c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40345. 8011330: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  40346. 8011334: 2b00 cmp r3, #0
  40347. 8011336: d003 beq.n 8011340 <HAL_UART_IRQHandler+0x73c>
  40348. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40349. /* Call registered Tx Fifo Empty Callback */
  40350. huart->TxFifoEmptyCallback(huart);
  40351. #else
  40352. /* Call legacy weak Tx Fifo Empty Callback */
  40353. HAL_UARTEx_TxFifoEmptyCallback(huart);
  40354. 8011338: 6878 ldr r0, [r7, #4]
  40355. 801133a: f001 ffe5 bl 8013308 <HAL_UARTEx_TxFifoEmptyCallback>
  40356. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40357. return;
  40358. 801133e: e016 b.n 801136e <HAL_UART_IRQHandler+0x76a>
  40359. }
  40360. /* UART RX Fifo Full occurred ----------------------------------------------*/
  40361. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  40362. 8011340: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40363. 8011344: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  40364. 8011348: 2b00 cmp r3, #0
  40365. 801134a: d010 beq.n 801136e <HAL_UART_IRQHandler+0x76a>
  40366. 801134c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40367. 8011350: 2b00 cmp r3, #0
  40368. 8011352: da0c bge.n 801136e <HAL_UART_IRQHandler+0x76a>
  40369. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40370. /* Call registered Rx Fifo Full Callback */
  40371. huart->RxFifoFullCallback(huart);
  40372. #else
  40373. /* Call legacy weak Rx Fifo Full Callback */
  40374. HAL_UARTEx_RxFifoFullCallback(huart);
  40375. 8011354: 6878 ldr r0, [r7, #4]
  40376. 8011356: f001 ffcd bl 80132f4 <HAL_UARTEx_RxFifoFullCallback>
  40377. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40378. return;
  40379. 801135a: e008 b.n 801136e <HAL_UART_IRQHandler+0x76a>
  40380. return;
  40381. 801135c: bf00 nop
  40382. 801135e: e006 b.n 801136e <HAL_UART_IRQHandler+0x76a>
  40383. return;
  40384. 8011360: bf00 nop
  40385. 8011362: e004 b.n 801136e <HAL_UART_IRQHandler+0x76a>
  40386. return;
  40387. 8011364: bf00 nop
  40388. 8011366: e002 b.n 801136e <HAL_UART_IRQHandler+0x76a>
  40389. return;
  40390. 8011368: bf00 nop
  40391. 801136a: e000 b.n 801136e <HAL_UART_IRQHandler+0x76a>
  40392. return;
  40393. 801136c: bf00 nop
  40394. }
  40395. }
  40396. 801136e: 37e8 adds r7, #232 @ 0xe8
  40397. 8011370: 46bd mov sp, r7
  40398. 8011372: bd80 pop {r7, pc}
  40399. 8011374: effffffe .word 0xeffffffe
  40400. 08011378 <HAL_UART_ErrorCallback>:
  40401. * @brief UART error callback.
  40402. * @param huart UART handle.
  40403. * @retval None
  40404. */
  40405. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  40406. {
  40407. 8011378: b480 push {r7}
  40408. 801137a: b083 sub sp, #12
  40409. 801137c: af00 add r7, sp, #0
  40410. 801137e: 6078 str r0, [r7, #4]
  40411. UNUSED(huart);
  40412. /* NOTE : This function should not be modified, when the callback is needed,
  40413. the HAL_UART_ErrorCallback can be implemented in the user file.
  40414. */
  40415. }
  40416. 8011380: bf00 nop
  40417. 8011382: 370c adds r7, #12
  40418. 8011384: 46bd mov sp, r7
  40419. 8011386: f85d 7b04 ldr.w r7, [sp], #4
  40420. 801138a: 4770 bx lr
  40421. 0801138c <UART_SetConfig>:
  40422. * @brief Configure the UART peripheral.
  40423. * @param huart UART handle.
  40424. * @retval HAL status
  40425. */
  40426. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  40427. {
  40428. 801138c: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  40429. 8011390: b092 sub sp, #72 @ 0x48
  40430. 8011392: af00 add r7, sp, #0
  40431. 8011394: 6178 str r0, [r7, #20]
  40432. uint32_t tmpreg;
  40433. uint16_t brrtemp;
  40434. UART_ClockSourceTypeDef clocksource;
  40435. uint32_t usartdiv;
  40436. HAL_StatusTypeDef ret = HAL_OK;
  40437. 8011396: 2300 movs r3, #0
  40438. 8011398: f887 3042 strb.w r3, [r7, #66] @ 0x42
  40439. * the UART Word Length, Parity, Mode and oversampling:
  40440. * set the M bits according to huart->Init.WordLength value
  40441. * set PCE and PS bits according to huart->Init.Parity value
  40442. * set TE and RE bits according to huart->Init.Mode value
  40443. * set OVER8 bit according to huart->Init.OverSampling value */
  40444. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  40445. 801139c: 697b ldr r3, [r7, #20]
  40446. 801139e: 689a ldr r2, [r3, #8]
  40447. 80113a0: 697b ldr r3, [r7, #20]
  40448. 80113a2: 691b ldr r3, [r3, #16]
  40449. 80113a4: 431a orrs r2, r3
  40450. 80113a6: 697b ldr r3, [r7, #20]
  40451. 80113a8: 695b ldr r3, [r3, #20]
  40452. 80113aa: 431a orrs r2, r3
  40453. 80113ac: 697b ldr r3, [r7, #20]
  40454. 80113ae: 69db ldr r3, [r3, #28]
  40455. 80113b0: 4313 orrs r3, r2
  40456. 80113b2: 647b str r3, [r7, #68] @ 0x44
  40457. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  40458. 80113b4: 697b ldr r3, [r7, #20]
  40459. 80113b6: 681b ldr r3, [r3, #0]
  40460. 80113b8: 681a ldr r2, [r3, #0]
  40461. 80113ba: 4bbe ldr r3, [pc, #760] @ (80116b4 <UART_SetConfig+0x328>)
  40462. 80113bc: 4013 ands r3, r2
  40463. 80113be: 697a ldr r2, [r7, #20]
  40464. 80113c0: 6812 ldr r2, [r2, #0]
  40465. 80113c2: 6c79 ldr r1, [r7, #68] @ 0x44
  40466. 80113c4: 430b orrs r3, r1
  40467. 80113c6: 6013 str r3, [r2, #0]
  40468. /*-------------------------- USART CR2 Configuration -----------------------*/
  40469. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  40470. * to huart->Init.StopBits value */
  40471. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  40472. 80113c8: 697b ldr r3, [r7, #20]
  40473. 80113ca: 681b ldr r3, [r3, #0]
  40474. 80113cc: 685b ldr r3, [r3, #4]
  40475. 80113ce: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  40476. 80113d2: 697b ldr r3, [r7, #20]
  40477. 80113d4: 68da ldr r2, [r3, #12]
  40478. 80113d6: 697b ldr r3, [r7, #20]
  40479. 80113d8: 681b ldr r3, [r3, #0]
  40480. 80113da: 430a orrs r2, r1
  40481. 80113dc: 605a str r2, [r3, #4]
  40482. /* Configure
  40483. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  40484. * to huart->Init.HwFlowCtl value
  40485. * - one-bit sampling method versus three samples' majority rule according
  40486. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  40487. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  40488. 80113de: 697b ldr r3, [r7, #20]
  40489. 80113e0: 699b ldr r3, [r3, #24]
  40490. 80113e2: 647b str r3, [r7, #68] @ 0x44
  40491. if (!(UART_INSTANCE_LOWPOWER(huart)))
  40492. 80113e4: 697b ldr r3, [r7, #20]
  40493. 80113e6: 681b ldr r3, [r3, #0]
  40494. 80113e8: 4ab3 ldr r2, [pc, #716] @ (80116b8 <UART_SetConfig+0x32c>)
  40495. 80113ea: 4293 cmp r3, r2
  40496. 80113ec: d004 beq.n 80113f8 <UART_SetConfig+0x6c>
  40497. {
  40498. tmpreg |= huart->Init.OneBitSampling;
  40499. 80113ee: 697b ldr r3, [r7, #20]
  40500. 80113f0: 6a1b ldr r3, [r3, #32]
  40501. 80113f2: 6c7a ldr r2, [r7, #68] @ 0x44
  40502. 80113f4: 4313 orrs r3, r2
  40503. 80113f6: 647b str r3, [r7, #68] @ 0x44
  40504. }
  40505. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  40506. 80113f8: 697b ldr r3, [r7, #20]
  40507. 80113fa: 681b ldr r3, [r3, #0]
  40508. 80113fc: 689a ldr r2, [r3, #8]
  40509. 80113fe: 4baf ldr r3, [pc, #700] @ (80116bc <UART_SetConfig+0x330>)
  40510. 8011400: 4013 ands r3, r2
  40511. 8011402: 697a ldr r2, [r7, #20]
  40512. 8011404: 6812 ldr r2, [r2, #0]
  40513. 8011406: 6c79 ldr r1, [r7, #68] @ 0x44
  40514. 8011408: 430b orrs r3, r1
  40515. 801140a: 6093 str r3, [r2, #8]
  40516. /*-------------------------- USART PRESC Configuration -----------------------*/
  40517. /* Configure
  40518. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  40519. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  40520. 801140c: 697b ldr r3, [r7, #20]
  40521. 801140e: 681b ldr r3, [r3, #0]
  40522. 8011410: 6adb ldr r3, [r3, #44] @ 0x2c
  40523. 8011412: f023 010f bic.w r1, r3, #15
  40524. 8011416: 697b ldr r3, [r7, #20]
  40525. 8011418: 6a5a ldr r2, [r3, #36] @ 0x24
  40526. 801141a: 697b ldr r3, [r7, #20]
  40527. 801141c: 681b ldr r3, [r3, #0]
  40528. 801141e: 430a orrs r2, r1
  40529. 8011420: 62da str r2, [r3, #44] @ 0x2c
  40530. /*-------------------------- USART BRR Configuration -----------------------*/
  40531. UART_GETCLOCKSOURCE(huart, clocksource);
  40532. 8011422: 697b ldr r3, [r7, #20]
  40533. 8011424: 681b ldr r3, [r3, #0]
  40534. 8011426: 4aa6 ldr r2, [pc, #664] @ (80116c0 <UART_SetConfig+0x334>)
  40535. 8011428: 4293 cmp r3, r2
  40536. 801142a: d177 bne.n 801151c <UART_SetConfig+0x190>
  40537. 801142c: 4ba5 ldr r3, [pc, #660] @ (80116c4 <UART_SetConfig+0x338>)
  40538. 801142e: 6d5b ldr r3, [r3, #84] @ 0x54
  40539. 8011430: f003 0338 and.w r3, r3, #56 @ 0x38
  40540. 8011434: 2b28 cmp r3, #40 @ 0x28
  40541. 8011436: d86d bhi.n 8011514 <UART_SetConfig+0x188>
  40542. 8011438: a201 add r2, pc, #4 @ (adr r2, 8011440 <UART_SetConfig+0xb4>)
  40543. 801143a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40544. 801143e: bf00 nop
  40545. 8011440: 080114e5 .word 0x080114e5
  40546. 8011444: 08011515 .word 0x08011515
  40547. 8011448: 08011515 .word 0x08011515
  40548. 801144c: 08011515 .word 0x08011515
  40549. 8011450: 08011515 .word 0x08011515
  40550. 8011454: 08011515 .word 0x08011515
  40551. 8011458: 08011515 .word 0x08011515
  40552. 801145c: 08011515 .word 0x08011515
  40553. 8011460: 080114ed .word 0x080114ed
  40554. 8011464: 08011515 .word 0x08011515
  40555. 8011468: 08011515 .word 0x08011515
  40556. 801146c: 08011515 .word 0x08011515
  40557. 8011470: 08011515 .word 0x08011515
  40558. 8011474: 08011515 .word 0x08011515
  40559. 8011478: 08011515 .word 0x08011515
  40560. 801147c: 08011515 .word 0x08011515
  40561. 8011480: 080114f5 .word 0x080114f5
  40562. 8011484: 08011515 .word 0x08011515
  40563. 8011488: 08011515 .word 0x08011515
  40564. 801148c: 08011515 .word 0x08011515
  40565. 8011490: 08011515 .word 0x08011515
  40566. 8011494: 08011515 .word 0x08011515
  40567. 8011498: 08011515 .word 0x08011515
  40568. 801149c: 08011515 .word 0x08011515
  40569. 80114a0: 080114fd .word 0x080114fd
  40570. 80114a4: 08011515 .word 0x08011515
  40571. 80114a8: 08011515 .word 0x08011515
  40572. 80114ac: 08011515 .word 0x08011515
  40573. 80114b0: 08011515 .word 0x08011515
  40574. 80114b4: 08011515 .word 0x08011515
  40575. 80114b8: 08011515 .word 0x08011515
  40576. 80114bc: 08011515 .word 0x08011515
  40577. 80114c0: 08011505 .word 0x08011505
  40578. 80114c4: 08011515 .word 0x08011515
  40579. 80114c8: 08011515 .word 0x08011515
  40580. 80114cc: 08011515 .word 0x08011515
  40581. 80114d0: 08011515 .word 0x08011515
  40582. 80114d4: 08011515 .word 0x08011515
  40583. 80114d8: 08011515 .word 0x08011515
  40584. 80114dc: 08011515 .word 0x08011515
  40585. 80114e0: 0801150d .word 0x0801150d
  40586. 80114e4: 2301 movs r3, #1
  40587. 80114e6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40588. 80114ea: e222 b.n 8011932 <UART_SetConfig+0x5a6>
  40589. 80114ec: 2304 movs r3, #4
  40590. 80114ee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40591. 80114f2: e21e b.n 8011932 <UART_SetConfig+0x5a6>
  40592. 80114f4: 2308 movs r3, #8
  40593. 80114f6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40594. 80114fa: e21a b.n 8011932 <UART_SetConfig+0x5a6>
  40595. 80114fc: 2310 movs r3, #16
  40596. 80114fe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40597. 8011502: e216 b.n 8011932 <UART_SetConfig+0x5a6>
  40598. 8011504: 2320 movs r3, #32
  40599. 8011506: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40600. 801150a: e212 b.n 8011932 <UART_SetConfig+0x5a6>
  40601. 801150c: 2340 movs r3, #64 @ 0x40
  40602. 801150e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40603. 8011512: e20e b.n 8011932 <UART_SetConfig+0x5a6>
  40604. 8011514: 2380 movs r3, #128 @ 0x80
  40605. 8011516: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40606. 801151a: e20a b.n 8011932 <UART_SetConfig+0x5a6>
  40607. 801151c: 697b ldr r3, [r7, #20]
  40608. 801151e: 681b ldr r3, [r3, #0]
  40609. 8011520: 4a69 ldr r2, [pc, #420] @ (80116c8 <UART_SetConfig+0x33c>)
  40610. 8011522: 4293 cmp r3, r2
  40611. 8011524: d130 bne.n 8011588 <UART_SetConfig+0x1fc>
  40612. 8011526: 4b67 ldr r3, [pc, #412] @ (80116c4 <UART_SetConfig+0x338>)
  40613. 8011528: 6d5b ldr r3, [r3, #84] @ 0x54
  40614. 801152a: f003 0307 and.w r3, r3, #7
  40615. 801152e: 2b05 cmp r3, #5
  40616. 8011530: d826 bhi.n 8011580 <UART_SetConfig+0x1f4>
  40617. 8011532: a201 add r2, pc, #4 @ (adr r2, 8011538 <UART_SetConfig+0x1ac>)
  40618. 8011534: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40619. 8011538: 08011551 .word 0x08011551
  40620. 801153c: 08011559 .word 0x08011559
  40621. 8011540: 08011561 .word 0x08011561
  40622. 8011544: 08011569 .word 0x08011569
  40623. 8011548: 08011571 .word 0x08011571
  40624. 801154c: 08011579 .word 0x08011579
  40625. 8011550: 2300 movs r3, #0
  40626. 8011552: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40627. 8011556: e1ec b.n 8011932 <UART_SetConfig+0x5a6>
  40628. 8011558: 2304 movs r3, #4
  40629. 801155a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40630. 801155e: e1e8 b.n 8011932 <UART_SetConfig+0x5a6>
  40631. 8011560: 2308 movs r3, #8
  40632. 8011562: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40633. 8011566: e1e4 b.n 8011932 <UART_SetConfig+0x5a6>
  40634. 8011568: 2310 movs r3, #16
  40635. 801156a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40636. 801156e: e1e0 b.n 8011932 <UART_SetConfig+0x5a6>
  40637. 8011570: 2320 movs r3, #32
  40638. 8011572: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40639. 8011576: e1dc b.n 8011932 <UART_SetConfig+0x5a6>
  40640. 8011578: 2340 movs r3, #64 @ 0x40
  40641. 801157a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40642. 801157e: e1d8 b.n 8011932 <UART_SetConfig+0x5a6>
  40643. 8011580: 2380 movs r3, #128 @ 0x80
  40644. 8011582: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40645. 8011586: e1d4 b.n 8011932 <UART_SetConfig+0x5a6>
  40646. 8011588: 697b ldr r3, [r7, #20]
  40647. 801158a: 681b ldr r3, [r3, #0]
  40648. 801158c: 4a4f ldr r2, [pc, #316] @ (80116cc <UART_SetConfig+0x340>)
  40649. 801158e: 4293 cmp r3, r2
  40650. 8011590: d130 bne.n 80115f4 <UART_SetConfig+0x268>
  40651. 8011592: 4b4c ldr r3, [pc, #304] @ (80116c4 <UART_SetConfig+0x338>)
  40652. 8011594: 6d5b ldr r3, [r3, #84] @ 0x54
  40653. 8011596: f003 0307 and.w r3, r3, #7
  40654. 801159a: 2b05 cmp r3, #5
  40655. 801159c: d826 bhi.n 80115ec <UART_SetConfig+0x260>
  40656. 801159e: a201 add r2, pc, #4 @ (adr r2, 80115a4 <UART_SetConfig+0x218>)
  40657. 80115a0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40658. 80115a4: 080115bd .word 0x080115bd
  40659. 80115a8: 080115c5 .word 0x080115c5
  40660. 80115ac: 080115cd .word 0x080115cd
  40661. 80115b0: 080115d5 .word 0x080115d5
  40662. 80115b4: 080115dd .word 0x080115dd
  40663. 80115b8: 080115e5 .word 0x080115e5
  40664. 80115bc: 2300 movs r3, #0
  40665. 80115be: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40666. 80115c2: e1b6 b.n 8011932 <UART_SetConfig+0x5a6>
  40667. 80115c4: 2304 movs r3, #4
  40668. 80115c6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40669. 80115ca: e1b2 b.n 8011932 <UART_SetConfig+0x5a6>
  40670. 80115cc: 2308 movs r3, #8
  40671. 80115ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40672. 80115d2: e1ae b.n 8011932 <UART_SetConfig+0x5a6>
  40673. 80115d4: 2310 movs r3, #16
  40674. 80115d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40675. 80115da: e1aa b.n 8011932 <UART_SetConfig+0x5a6>
  40676. 80115dc: 2320 movs r3, #32
  40677. 80115de: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40678. 80115e2: e1a6 b.n 8011932 <UART_SetConfig+0x5a6>
  40679. 80115e4: 2340 movs r3, #64 @ 0x40
  40680. 80115e6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40681. 80115ea: e1a2 b.n 8011932 <UART_SetConfig+0x5a6>
  40682. 80115ec: 2380 movs r3, #128 @ 0x80
  40683. 80115ee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40684. 80115f2: e19e b.n 8011932 <UART_SetConfig+0x5a6>
  40685. 80115f4: 697b ldr r3, [r7, #20]
  40686. 80115f6: 681b ldr r3, [r3, #0]
  40687. 80115f8: 4a35 ldr r2, [pc, #212] @ (80116d0 <UART_SetConfig+0x344>)
  40688. 80115fa: 4293 cmp r3, r2
  40689. 80115fc: d130 bne.n 8011660 <UART_SetConfig+0x2d4>
  40690. 80115fe: 4b31 ldr r3, [pc, #196] @ (80116c4 <UART_SetConfig+0x338>)
  40691. 8011600: 6d5b ldr r3, [r3, #84] @ 0x54
  40692. 8011602: f003 0307 and.w r3, r3, #7
  40693. 8011606: 2b05 cmp r3, #5
  40694. 8011608: d826 bhi.n 8011658 <UART_SetConfig+0x2cc>
  40695. 801160a: a201 add r2, pc, #4 @ (adr r2, 8011610 <UART_SetConfig+0x284>)
  40696. 801160c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40697. 8011610: 08011629 .word 0x08011629
  40698. 8011614: 08011631 .word 0x08011631
  40699. 8011618: 08011639 .word 0x08011639
  40700. 801161c: 08011641 .word 0x08011641
  40701. 8011620: 08011649 .word 0x08011649
  40702. 8011624: 08011651 .word 0x08011651
  40703. 8011628: 2300 movs r3, #0
  40704. 801162a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40705. 801162e: e180 b.n 8011932 <UART_SetConfig+0x5a6>
  40706. 8011630: 2304 movs r3, #4
  40707. 8011632: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40708. 8011636: e17c b.n 8011932 <UART_SetConfig+0x5a6>
  40709. 8011638: 2308 movs r3, #8
  40710. 801163a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40711. 801163e: e178 b.n 8011932 <UART_SetConfig+0x5a6>
  40712. 8011640: 2310 movs r3, #16
  40713. 8011642: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40714. 8011646: e174 b.n 8011932 <UART_SetConfig+0x5a6>
  40715. 8011648: 2320 movs r3, #32
  40716. 801164a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40717. 801164e: e170 b.n 8011932 <UART_SetConfig+0x5a6>
  40718. 8011650: 2340 movs r3, #64 @ 0x40
  40719. 8011652: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40720. 8011656: e16c b.n 8011932 <UART_SetConfig+0x5a6>
  40721. 8011658: 2380 movs r3, #128 @ 0x80
  40722. 801165a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40723. 801165e: e168 b.n 8011932 <UART_SetConfig+0x5a6>
  40724. 8011660: 697b ldr r3, [r7, #20]
  40725. 8011662: 681b ldr r3, [r3, #0]
  40726. 8011664: 4a1b ldr r2, [pc, #108] @ (80116d4 <UART_SetConfig+0x348>)
  40727. 8011666: 4293 cmp r3, r2
  40728. 8011668: d142 bne.n 80116f0 <UART_SetConfig+0x364>
  40729. 801166a: 4b16 ldr r3, [pc, #88] @ (80116c4 <UART_SetConfig+0x338>)
  40730. 801166c: 6d5b ldr r3, [r3, #84] @ 0x54
  40731. 801166e: f003 0307 and.w r3, r3, #7
  40732. 8011672: 2b05 cmp r3, #5
  40733. 8011674: d838 bhi.n 80116e8 <UART_SetConfig+0x35c>
  40734. 8011676: a201 add r2, pc, #4 @ (adr r2, 801167c <UART_SetConfig+0x2f0>)
  40735. 8011678: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40736. 801167c: 08011695 .word 0x08011695
  40737. 8011680: 0801169d .word 0x0801169d
  40738. 8011684: 080116a5 .word 0x080116a5
  40739. 8011688: 080116ad .word 0x080116ad
  40740. 801168c: 080116d9 .word 0x080116d9
  40741. 8011690: 080116e1 .word 0x080116e1
  40742. 8011694: 2300 movs r3, #0
  40743. 8011696: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40744. 801169a: e14a b.n 8011932 <UART_SetConfig+0x5a6>
  40745. 801169c: 2304 movs r3, #4
  40746. 801169e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40747. 80116a2: e146 b.n 8011932 <UART_SetConfig+0x5a6>
  40748. 80116a4: 2308 movs r3, #8
  40749. 80116a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40750. 80116aa: e142 b.n 8011932 <UART_SetConfig+0x5a6>
  40751. 80116ac: 2310 movs r3, #16
  40752. 80116ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40753. 80116b2: e13e b.n 8011932 <UART_SetConfig+0x5a6>
  40754. 80116b4: cfff69f3 .word 0xcfff69f3
  40755. 80116b8: 58000c00 .word 0x58000c00
  40756. 80116bc: 11fff4ff .word 0x11fff4ff
  40757. 80116c0: 40011000 .word 0x40011000
  40758. 80116c4: 58024400 .word 0x58024400
  40759. 80116c8: 40004400 .word 0x40004400
  40760. 80116cc: 40004800 .word 0x40004800
  40761. 80116d0: 40004c00 .word 0x40004c00
  40762. 80116d4: 40005000 .word 0x40005000
  40763. 80116d8: 2320 movs r3, #32
  40764. 80116da: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40765. 80116de: e128 b.n 8011932 <UART_SetConfig+0x5a6>
  40766. 80116e0: 2340 movs r3, #64 @ 0x40
  40767. 80116e2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40768. 80116e6: e124 b.n 8011932 <UART_SetConfig+0x5a6>
  40769. 80116e8: 2380 movs r3, #128 @ 0x80
  40770. 80116ea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40771. 80116ee: e120 b.n 8011932 <UART_SetConfig+0x5a6>
  40772. 80116f0: 697b ldr r3, [r7, #20]
  40773. 80116f2: 681b ldr r3, [r3, #0]
  40774. 80116f4: 4acb ldr r2, [pc, #812] @ (8011a24 <UART_SetConfig+0x698>)
  40775. 80116f6: 4293 cmp r3, r2
  40776. 80116f8: d176 bne.n 80117e8 <UART_SetConfig+0x45c>
  40777. 80116fa: 4bcb ldr r3, [pc, #812] @ (8011a28 <UART_SetConfig+0x69c>)
  40778. 80116fc: 6d5b ldr r3, [r3, #84] @ 0x54
  40779. 80116fe: f003 0338 and.w r3, r3, #56 @ 0x38
  40780. 8011702: 2b28 cmp r3, #40 @ 0x28
  40781. 8011704: d86c bhi.n 80117e0 <UART_SetConfig+0x454>
  40782. 8011706: a201 add r2, pc, #4 @ (adr r2, 801170c <UART_SetConfig+0x380>)
  40783. 8011708: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40784. 801170c: 080117b1 .word 0x080117b1
  40785. 8011710: 080117e1 .word 0x080117e1
  40786. 8011714: 080117e1 .word 0x080117e1
  40787. 8011718: 080117e1 .word 0x080117e1
  40788. 801171c: 080117e1 .word 0x080117e1
  40789. 8011720: 080117e1 .word 0x080117e1
  40790. 8011724: 080117e1 .word 0x080117e1
  40791. 8011728: 080117e1 .word 0x080117e1
  40792. 801172c: 080117b9 .word 0x080117b9
  40793. 8011730: 080117e1 .word 0x080117e1
  40794. 8011734: 080117e1 .word 0x080117e1
  40795. 8011738: 080117e1 .word 0x080117e1
  40796. 801173c: 080117e1 .word 0x080117e1
  40797. 8011740: 080117e1 .word 0x080117e1
  40798. 8011744: 080117e1 .word 0x080117e1
  40799. 8011748: 080117e1 .word 0x080117e1
  40800. 801174c: 080117c1 .word 0x080117c1
  40801. 8011750: 080117e1 .word 0x080117e1
  40802. 8011754: 080117e1 .word 0x080117e1
  40803. 8011758: 080117e1 .word 0x080117e1
  40804. 801175c: 080117e1 .word 0x080117e1
  40805. 8011760: 080117e1 .word 0x080117e1
  40806. 8011764: 080117e1 .word 0x080117e1
  40807. 8011768: 080117e1 .word 0x080117e1
  40808. 801176c: 080117c9 .word 0x080117c9
  40809. 8011770: 080117e1 .word 0x080117e1
  40810. 8011774: 080117e1 .word 0x080117e1
  40811. 8011778: 080117e1 .word 0x080117e1
  40812. 801177c: 080117e1 .word 0x080117e1
  40813. 8011780: 080117e1 .word 0x080117e1
  40814. 8011784: 080117e1 .word 0x080117e1
  40815. 8011788: 080117e1 .word 0x080117e1
  40816. 801178c: 080117d1 .word 0x080117d1
  40817. 8011790: 080117e1 .word 0x080117e1
  40818. 8011794: 080117e1 .word 0x080117e1
  40819. 8011798: 080117e1 .word 0x080117e1
  40820. 801179c: 080117e1 .word 0x080117e1
  40821. 80117a0: 080117e1 .word 0x080117e1
  40822. 80117a4: 080117e1 .word 0x080117e1
  40823. 80117a8: 080117e1 .word 0x080117e1
  40824. 80117ac: 080117d9 .word 0x080117d9
  40825. 80117b0: 2301 movs r3, #1
  40826. 80117b2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40827. 80117b6: e0bc b.n 8011932 <UART_SetConfig+0x5a6>
  40828. 80117b8: 2304 movs r3, #4
  40829. 80117ba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40830. 80117be: e0b8 b.n 8011932 <UART_SetConfig+0x5a6>
  40831. 80117c0: 2308 movs r3, #8
  40832. 80117c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40833. 80117c6: e0b4 b.n 8011932 <UART_SetConfig+0x5a6>
  40834. 80117c8: 2310 movs r3, #16
  40835. 80117ca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40836. 80117ce: e0b0 b.n 8011932 <UART_SetConfig+0x5a6>
  40837. 80117d0: 2320 movs r3, #32
  40838. 80117d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40839. 80117d6: e0ac b.n 8011932 <UART_SetConfig+0x5a6>
  40840. 80117d8: 2340 movs r3, #64 @ 0x40
  40841. 80117da: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40842. 80117de: e0a8 b.n 8011932 <UART_SetConfig+0x5a6>
  40843. 80117e0: 2380 movs r3, #128 @ 0x80
  40844. 80117e2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40845. 80117e6: e0a4 b.n 8011932 <UART_SetConfig+0x5a6>
  40846. 80117e8: 697b ldr r3, [r7, #20]
  40847. 80117ea: 681b ldr r3, [r3, #0]
  40848. 80117ec: 4a8f ldr r2, [pc, #572] @ (8011a2c <UART_SetConfig+0x6a0>)
  40849. 80117ee: 4293 cmp r3, r2
  40850. 80117f0: d130 bne.n 8011854 <UART_SetConfig+0x4c8>
  40851. 80117f2: 4b8d ldr r3, [pc, #564] @ (8011a28 <UART_SetConfig+0x69c>)
  40852. 80117f4: 6d5b ldr r3, [r3, #84] @ 0x54
  40853. 80117f6: f003 0307 and.w r3, r3, #7
  40854. 80117fa: 2b05 cmp r3, #5
  40855. 80117fc: d826 bhi.n 801184c <UART_SetConfig+0x4c0>
  40856. 80117fe: a201 add r2, pc, #4 @ (adr r2, 8011804 <UART_SetConfig+0x478>)
  40857. 8011800: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40858. 8011804: 0801181d .word 0x0801181d
  40859. 8011808: 08011825 .word 0x08011825
  40860. 801180c: 0801182d .word 0x0801182d
  40861. 8011810: 08011835 .word 0x08011835
  40862. 8011814: 0801183d .word 0x0801183d
  40863. 8011818: 08011845 .word 0x08011845
  40864. 801181c: 2300 movs r3, #0
  40865. 801181e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40866. 8011822: e086 b.n 8011932 <UART_SetConfig+0x5a6>
  40867. 8011824: 2304 movs r3, #4
  40868. 8011826: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40869. 801182a: e082 b.n 8011932 <UART_SetConfig+0x5a6>
  40870. 801182c: 2308 movs r3, #8
  40871. 801182e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40872. 8011832: e07e b.n 8011932 <UART_SetConfig+0x5a6>
  40873. 8011834: 2310 movs r3, #16
  40874. 8011836: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40875. 801183a: e07a b.n 8011932 <UART_SetConfig+0x5a6>
  40876. 801183c: 2320 movs r3, #32
  40877. 801183e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40878. 8011842: e076 b.n 8011932 <UART_SetConfig+0x5a6>
  40879. 8011844: 2340 movs r3, #64 @ 0x40
  40880. 8011846: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40881. 801184a: e072 b.n 8011932 <UART_SetConfig+0x5a6>
  40882. 801184c: 2380 movs r3, #128 @ 0x80
  40883. 801184e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40884. 8011852: e06e b.n 8011932 <UART_SetConfig+0x5a6>
  40885. 8011854: 697b ldr r3, [r7, #20]
  40886. 8011856: 681b ldr r3, [r3, #0]
  40887. 8011858: 4a75 ldr r2, [pc, #468] @ (8011a30 <UART_SetConfig+0x6a4>)
  40888. 801185a: 4293 cmp r3, r2
  40889. 801185c: d130 bne.n 80118c0 <UART_SetConfig+0x534>
  40890. 801185e: 4b72 ldr r3, [pc, #456] @ (8011a28 <UART_SetConfig+0x69c>)
  40891. 8011860: 6d5b ldr r3, [r3, #84] @ 0x54
  40892. 8011862: f003 0307 and.w r3, r3, #7
  40893. 8011866: 2b05 cmp r3, #5
  40894. 8011868: d826 bhi.n 80118b8 <UART_SetConfig+0x52c>
  40895. 801186a: a201 add r2, pc, #4 @ (adr r2, 8011870 <UART_SetConfig+0x4e4>)
  40896. 801186c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40897. 8011870: 08011889 .word 0x08011889
  40898. 8011874: 08011891 .word 0x08011891
  40899. 8011878: 08011899 .word 0x08011899
  40900. 801187c: 080118a1 .word 0x080118a1
  40901. 8011880: 080118a9 .word 0x080118a9
  40902. 8011884: 080118b1 .word 0x080118b1
  40903. 8011888: 2300 movs r3, #0
  40904. 801188a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40905. 801188e: e050 b.n 8011932 <UART_SetConfig+0x5a6>
  40906. 8011890: 2304 movs r3, #4
  40907. 8011892: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40908. 8011896: e04c b.n 8011932 <UART_SetConfig+0x5a6>
  40909. 8011898: 2308 movs r3, #8
  40910. 801189a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40911. 801189e: e048 b.n 8011932 <UART_SetConfig+0x5a6>
  40912. 80118a0: 2310 movs r3, #16
  40913. 80118a2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40914. 80118a6: e044 b.n 8011932 <UART_SetConfig+0x5a6>
  40915. 80118a8: 2320 movs r3, #32
  40916. 80118aa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40917. 80118ae: e040 b.n 8011932 <UART_SetConfig+0x5a6>
  40918. 80118b0: 2340 movs r3, #64 @ 0x40
  40919. 80118b2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40920. 80118b6: e03c b.n 8011932 <UART_SetConfig+0x5a6>
  40921. 80118b8: 2380 movs r3, #128 @ 0x80
  40922. 80118ba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40923. 80118be: e038 b.n 8011932 <UART_SetConfig+0x5a6>
  40924. 80118c0: 697b ldr r3, [r7, #20]
  40925. 80118c2: 681b ldr r3, [r3, #0]
  40926. 80118c4: 4a5b ldr r2, [pc, #364] @ (8011a34 <UART_SetConfig+0x6a8>)
  40927. 80118c6: 4293 cmp r3, r2
  40928. 80118c8: d130 bne.n 801192c <UART_SetConfig+0x5a0>
  40929. 80118ca: 4b57 ldr r3, [pc, #348] @ (8011a28 <UART_SetConfig+0x69c>)
  40930. 80118cc: 6d9b ldr r3, [r3, #88] @ 0x58
  40931. 80118ce: f003 0307 and.w r3, r3, #7
  40932. 80118d2: 2b05 cmp r3, #5
  40933. 80118d4: d826 bhi.n 8011924 <UART_SetConfig+0x598>
  40934. 80118d6: a201 add r2, pc, #4 @ (adr r2, 80118dc <UART_SetConfig+0x550>)
  40935. 80118d8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40936. 80118dc: 080118f5 .word 0x080118f5
  40937. 80118e0: 080118fd .word 0x080118fd
  40938. 80118e4: 08011905 .word 0x08011905
  40939. 80118e8: 0801190d .word 0x0801190d
  40940. 80118ec: 08011915 .word 0x08011915
  40941. 80118f0: 0801191d .word 0x0801191d
  40942. 80118f4: 2302 movs r3, #2
  40943. 80118f6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40944. 80118fa: e01a b.n 8011932 <UART_SetConfig+0x5a6>
  40945. 80118fc: 2304 movs r3, #4
  40946. 80118fe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40947. 8011902: e016 b.n 8011932 <UART_SetConfig+0x5a6>
  40948. 8011904: 2308 movs r3, #8
  40949. 8011906: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40950. 801190a: e012 b.n 8011932 <UART_SetConfig+0x5a6>
  40951. 801190c: 2310 movs r3, #16
  40952. 801190e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40953. 8011912: e00e b.n 8011932 <UART_SetConfig+0x5a6>
  40954. 8011914: 2320 movs r3, #32
  40955. 8011916: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40956. 801191a: e00a b.n 8011932 <UART_SetConfig+0x5a6>
  40957. 801191c: 2340 movs r3, #64 @ 0x40
  40958. 801191e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40959. 8011922: e006 b.n 8011932 <UART_SetConfig+0x5a6>
  40960. 8011924: 2380 movs r3, #128 @ 0x80
  40961. 8011926: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40962. 801192a: e002 b.n 8011932 <UART_SetConfig+0x5a6>
  40963. 801192c: 2380 movs r3, #128 @ 0x80
  40964. 801192e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40965. /* Check LPUART instance */
  40966. if (UART_INSTANCE_LOWPOWER(huart))
  40967. 8011932: 697b ldr r3, [r7, #20]
  40968. 8011934: 681b ldr r3, [r3, #0]
  40969. 8011936: 4a3f ldr r2, [pc, #252] @ (8011a34 <UART_SetConfig+0x6a8>)
  40970. 8011938: 4293 cmp r3, r2
  40971. 801193a: f040 80f8 bne.w 8011b2e <UART_SetConfig+0x7a2>
  40972. {
  40973. /* Retrieve frequency clock */
  40974. switch (clocksource)
  40975. 801193e: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  40976. 8011942: 2b20 cmp r3, #32
  40977. 8011944: dc46 bgt.n 80119d4 <UART_SetConfig+0x648>
  40978. 8011946: 2b02 cmp r3, #2
  40979. 8011948: f2c0 8082 blt.w 8011a50 <UART_SetConfig+0x6c4>
  40980. 801194c: 3b02 subs r3, #2
  40981. 801194e: 2b1e cmp r3, #30
  40982. 8011950: d87e bhi.n 8011a50 <UART_SetConfig+0x6c4>
  40983. 8011952: a201 add r2, pc, #4 @ (adr r2, 8011958 <UART_SetConfig+0x5cc>)
  40984. 8011954: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40985. 8011958: 080119db .word 0x080119db
  40986. 801195c: 08011a51 .word 0x08011a51
  40987. 8011960: 080119e3 .word 0x080119e3
  40988. 8011964: 08011a51 .word 0x08011a51
  40989. 8011968: 08011a51 .word 0x08011a51
  40990. 801196c: 08011a51 .word 0x08011a51
  40991. 8011970: 080119f3 .word 0x080119f3
  40992. 8011974: 08011a51 .word 0x08011a51
  40993. 8011978: 08011a51 .word 0x08011a51
  40994. 801197c: 08011a51 .word 0x08011a51
  40995. 8011980: 08011a51 .word 0x08011a51
  40996. 8011984: 08011a51 .word 0x08011a51
  40997. 8011988: 08011a51 .word 0x08011a51
  40998. 801198c: 08011a51 .word 0x08011a51
  40999. 8011990: 08011a03 .word 0x08011a03
  41000. 8011994: 08011a51 .word 0x08011a51
  41001. 8011998: 08011a51 .word 0x08011a51
  41002. 801199c: 08011a51 .word 0x08011a51
  41003. 80119a0: 08011a51 .word 0x08011a51
  41004. 80119a4: 08011a51 .word 0x08011a51
  41005. 80119a8: 08011a51 .word 0x08011a51
  41006. 80119ac: 08011a51 .word 0x08011a51
  41007. 80119b0: 08011a51 .word 0x08011a51
  41008. 80119b4: 08011a51 .word 0x08011a51
  41009. 80119b8: 08011a51 .word 0x08011a51
  41010. 80119bc: 08011a51 .word 0x08011a51
  41011. 80119c0: 08011a51 .word 0x08011a51
  41012. 80119c4: 08011a51 .word 0x08011a51
  41013. 80119c8: 08011a51 .word 0x08011a51
  41014. 80119cc: 08011a51 .word 0x08011a51
  41015. 80119d0: 08011a43 .word 0x08011a43
  41016. 80119d4: 2b40 cmp r3, #64 @ 0x40
  41017. 80119d6: d037 beq.n 8011a48 <UART_SetConfig+0x6bc>
  41018. 80119d8: e03a b.n 8011a50 <UART_SetConfig+0x6c4>
  41019. {
  41020. case UART_CLOCKSOURCE_D3PCLK1:
  41021. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  41022. 80119da: f7fc f9fd bl 800ddd8 <HAL_RCCEx_GetD3PCLK1Freq>
  41023. 80119de: 63f8 str r0, [r7, #60] @ 0x3c
  41024. break;
  41025. 80119e0: e03c b.n 8011a5c <UART_SetConfig+0x6d0>
  41026. case UART_CLOCKSOURCE_PLL2:
  41027. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41028. 80119e2: f107 0324 add.w r3, r7, #36 @ 0x24
  41029. 80119e6: 4618 mov r0, r3
  41030. 80119e8: f7fc fa0c bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  41031. pclk = pll2_clocks.PLL2_Q_Frequency;
  41032. 80119ec: 6abb ldr r3, [r7, #40] @ 0x28
  41033. 80119ee: 63fb str r3, [r7, #60] @ 0x3c
  41034. break;
  41035. 80119f0: e034 b.n 8011a5c <UART_SetConfig+0x6d0>
  41036. case UART_CLOCKSOURCE_PLL3:
  41037. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41038. 80119f2: f107 0318 add.w r3, r7, #24
  41039. 80119f6: 4618 mov r0, r3
  41040. 80119f8: f7fc fb58 bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  41041. pclk = pll3_clocks.PLL3_Q_Frequency;
  41042. 80119fc: 69fb ldr r3, [r7, #28]
  41043. 80119fe: 63fb str r3, [r7, #60] @ 0x3c
  41044. break;
  41045. 8011a00: e02c b.n 8011a5c <UART_SetConfig+0x6d0>
  41046. case UART_CLOCKSOURCE_HSI:
  41047. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41048. 8011a02: 4b09 ldr r3, [pc, #36] @ (8011a28 <UART_SetConfig+0x69c>)
  41049. 8011a04: 681b ldr r3, [r3, #0]
  41050. 8011a06: f003 0320 and.w r3, r3, #32
  41051. 8011a0a: 2b00 cmp r3, #0
  41052. 8011a0c: d016 beq.n 8011a3c <UART_SetConfig+0x6b0>
  41053. {
  41054. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41055. 8011a0e: 4b06 ldr r3, [pc, #24] @ (8011a28 <UART_SetConfig+0x69c>)
  41056. 8011a10: 681b ldr r3, [r3, #0]
  41057. 8011a12: 08db lsrs r3, r3, #3
  41058. 8011a14: f003 0303 and.w r3, r3, #3
  41059. 8011a18: 4a07 ldr r2, [pc, #28] @ (8011a38 <UART_SetConfig+0x6ac>)
  41060. 8011a1a: fa22 f303 lsr.w r3, r2, r3
  41061. 8011a1e: 63fb str r3, [r7, #60] @ 0x3c
  41062. }
  41063. else
  41064. {
  41065. pclk = (uint32_t) HSI_VALUE;
  41066. }
  41067. break;
  41068. 8011a20: e01c b.n 8011a5c <UART_SetConfig+0x6d0>
  41069. 8011a22: bf00 nop
  41070. 8011a24: 40011400 .word 0x40011400
  41071. 8011a28: 58024400 .word 0x58024400
  41072. 8011a2c: 40007800 .word 0x40007800
  41073. 8011a30: 40007c00 .word 0x40007c00
  41074. 8011a34: 58000c00 .word 0x58000c00
  41075. 8011a38: 03d09000 .word 0x03d09000
  41076. pclk = (uint32_t) HSI_VALUE;
  41077. 8011a3c: 4b9d ldr r3, [pc, #628] @ (8011cb4 <UART_SetConfig+0x928>)
  41078. 8011a3e: 63fb str r3, [r7, #60] @ 0x3c
  41079. break;
  41080. 8011a40: e00c b.n 8011a5c <UART_SetConfig+0x6d0>
  41081. case UART_CLOCKSOURCE_CSI:
  41082. pclk = (uint32_t) CSI_VALUE;
  41083. 8011a42: 4b9d ldr r3, [pc, #628] @ (8011cb8 <UART_SetConfig+0x92c>)
  41084. 8011a44: 63fb str r3, [r7, #60] @ 0x3c
  41085. break;
  41086. 8011a46: e009 b.n 8011a5c <UART_SetConfig+0x6d0>
  41087. case UART_CLOCKSOURCE_LSE:
  41088. pclk = (uint32_t) LSE_VALUE;
  41089. 8011a48: f44f 4300 mov.w r3, #32768 @ 0x8000
  41090. 8011a4c: 63fb str r3, [r7, #60] @ 0x3c
  41091. break;
  41092. 8011a4e: e005 b.n 8011a5c <UART_SetConfig+0x6d0>
  41093. default:
  41094. pclk = 0U;
  41095. 8011a50: 2300 movs r3, #0
  41096. 8011a52: 63fb str r3, [r7, #60] @ 0x3c
  41097. ret = HAL_ERROR;
  41098. 8011a54: 2301 movs r3, #1
  41099. 8011a56: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41100. break;
  41101. 8011a5a: bf00 nop
  41102. }
  41103. /* If proper clock source reported */
  41104. if (pclk != 0U)
  41105. 8011a5c: 6bfb ldr r3, [r7, #60] @ 0x3c
  41106. 8011a5e: 2b00 cmp r3, #0
  41107. 8011a60: f000 81de beq.w 8011e20 <UART_SetConfig+0xa94>
  41108. {
  41109. /* Compute clock after Prescaler */
  41110. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  41111. 8011a64: 697b ldr r3, [r7, #20]
  41112. 8011a66: 6a5b ldr r3, [r3, #36] @ 0x24
  41113. 8011a68: 4a94 ldr r2, [pc, #592] @ (8011cbc <UART_SetConfig+0x930>)
  41114. 8011a6a: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41115. 8011a6e: 461a mov r2, r3
  41116. 8011a70: 6bfb ldr r3, [r7, #60] @ 0x3c
  41117. 8011a72: fbb3 f3f2 udiv r3, r3, r2
  41118. 8011a76: 633b str r3, [r7, #48] @ 0x30
  41119. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  41120. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  41121. 8011a78: 697b ldr r3, [r7, #20]
  41122. 8011a7a: 685a ldr r2, [r3, #4]
  41123. 8011a7c: 4613 mov r3, r2
  41124. 8011a7e: 005b lsls r3, r3, #1
  41125. 8011a80: 4413 add r3, r2
  41126. 8011a82: 6b3a ldr r2, [r7, #48] @ 0x30
  41127. 8011a84: 429a cmp r2, r3
  41128. 8011a86: d305 bcc.n 8011a94 <UART_SetConfig+0x708>
  41129. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  41130. 8011a88: 697b ldr r3, [r7, #20]
  41131. 8011a8a: 685b ldr r3, [r3, #4]
  41132. 8011a8c: 031b lsls r3, r3, #12
  41133. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  41134. 8011a8e: 6b3a ldr r2, [r7, #48] @ 0x30
  41135. 8011a90: 429a cmp r2, r3
  41136. 8011a92: d903 bls.n 8011a9c <UART_SetConfig+0x710>
  41137. {
  41138. ret = HAL_ERROR;
  41139. 8011a94: 2301 movs r3, #1
  41140. 8011a96: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41141. 8011a9a: e1c1 b.n 8011e20 <UART_SetConfig+0xa94>
  41142. }
  41143. else
  41144. {
  41145. /* Check computed UsartDiv value is in allocated range
  41146. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  41147. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41148. 8011a9c: 6bfb ldr r3, [r7, #60] @ 0x3c
  41149. 8011a9e: 2200 movs r2, #0
  41150. 8011aa0: 60bb str r3, [r7, #8]
  41151. 8011aa2: 60fa str r2, [r7, #12]
  41152. 8011aa4: 697b ldr r3, [r7, #20]
  41153. 8011aa6: 6a5b ldr r3, [r3, #36] @ 0x24
  41154. 8011aa8: 4a84 ldr r2, [pc, #528] @ (8011cbc <UART_SetConfig+0x930>)
  41155. 8011aaa: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41156. 8011aae: b29b uxth r3, r3
  41157. 8011ab0: 2200 movs r2, #0
  41158. 8011ab2: 603b str r3, [r7, #0]
  41159. 8011ab4: 607a str r2, [r7, #4]
  41160. 8011ab6: e9d7 2300 ldrd r2, r3, [r7]
  41161. 8011aba: e9d7 0102 ldrd r0, r1, [r7, #8]
  41162. 8011abe: f7ee fc5f bl 8000380 <__aeabi_uldivmod>
  41163. 8011ac2: 4602 mov r2, r0
  41164. 8011ac4: 460b mov r3, r1
  41165. 8011ac6: 4610 mov r0, r2
  41166. 8011ac8: 4619 mov r1, r3
  41167. 8011aca: f04f 0200 mov.w r2, #0
  41168. 8011ace: f04f 0300 mov.w r3, #0
  41169. 8011ad2: 020b lsls r3, r1, #8
  41170. 8011ad4: ea43 6310 orr.w r3, r3, r0, lsr #24
  41171. 8011ad8: 0202 lsls r2, r0, #8
  41172. 8011ada: 6979 ldr r1, [r7, #20]
  41173. 8011adc: 6849 ldr r1, [r1, #4]
  41174. 8011ade: 0849 lsrs r1, r1, #1
  41175. 8011ae0: 2000 movs r0, #0
  41176. 8011ae2: 460c mov r4, r1
  41177. 8011ae4: 4605 mov r5, r0
  41178. 8011ae6: eb12 0804 adds.w r8, r2, r4
  41179. 8011aea: eb43 0905 adc.w r9, r3, r5
  41180. 8011aee: 697b ldr r3, [r7, #20]
  41181. 8011af0: 685b ldr r3, [r3, #4]
  41182. 8011af2: 2200 movs r2, #0
  41183. 8011af4: 469a mov sl, r3
  41184. 8011af6: 4693 mov fp, r2
  41185. 8011af8: 4652 mov r2, sl
  41186. 8011afa: 465b mov r3, fp
  41187. 8011afc: 4640 mov r0, r8
  41188. 8011afe: 4649 mov r1, r9
  41189. 8011b00: f7ee fc3e bl 8000380 <__aeabi_uldivmod>
  41190. 8011b04: 4602 mov r2, r0
  41191. 8011b06: 460b mov r3, r1
  41192. 8011b08: 4613 mov r3, r2
  41193. 8011b0a: 63bb str r3, [r7, #56] @ 0x38
  41194. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  41195. 8011b0c: 6bbb ldr r3, [r7, #56] @ 0x38
  41196. 8011b0e: f5b3 7f40 cmp.w r3, #768 @ 0x300
  41197. 8011b12: d308 bcc.n 8011b26 <UART_SetConfig+0x79a>
  41198. 8011b14: 6bbb ldr r3, [r7, #56] @ 0x38
  41199. 8011b16: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  41200. 8011b1a: d204 bcs.n 8011b26 <UART_SetConfig+0x79a>
  41201. {
  41202. huart->Instance->BRR = usartdiv;
  41203. 8011b1c: 697b ldr r3, [r7, #20]
  41204. 8011b1e: 681b ldr r3, [r3, #0]
  41205. 8011b20: 6bba ldr r2, [r7, #56] @ 0x38
  41206. 8011b22: 60da str r2, [r3, #12]
  41207. 8011b24: e17c b.n 8011e20 <UART_SetConfig+0xa94>
  41208. }
  41209. else
  41210. {
  41211. ret = HAL_ERROR;
  41212. 8011b26: 2301 movs r3, #1
  41213. 8011b28: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41214. 8011b2c: e178 b.n 8011e20 <UART_SetConfig+0xa94>
  41215. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  41216. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  41217. } /* if (pclk != 0) */
  41218. }
  41219. /* Check UART Over Sampling to set Baud Rate Register */
  41220. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  41221. 8011b2e: 697b ldr r3, [r7, #20]
  41222. 8011b30: 69db ldr r3, [r3, #28]
  41223. 8011b32: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  41224. 8011b36: f040 80c5 bne.w 8011cc4 <UART_SetConfig+0x938>
  41225. {
  41226. switch (clocksource)
  41227. 8011b3a: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  41228. 8011b3e: 2b20 cmp r3, #32
  41229. 8011b40: dc48 bgt.n 8011bd4 <UART_SetConfig+0x848>
  41230. 8011b42: 2b00 cmp r3, #0
  41231. 8011b44: db7b blt.n 8011c3e <UART_SetConfig+0x8b2>
  41232. 8011b46: 2b20 cmp r3, #32
  41233. 8011b48: d879 bhi.n 8011c3e <UART_SetConfig+0x8b2>
  41234. 8011b4a: a201 add r2, pc, #4 @ (adr r2, 8011b50 <UART_SetConfig+0x7c4>)
  41235. 8011b4c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41236. 8011b50: 08011bdb .word 0x08011bdb
  41237. 8011b54: 08011be3 .word 0x08011be3
  41238. 8011b58: 08011c3f .word 0x08011c3f
  41239. 8011b5c: 08011c3f .word 0x08011c3f
  41240. 8011b60: 08011beb .word 0x08011beb
  41241. 8011b64: 08011c3f .word 0x08011c3f
  41242. 8011b68: 08011c3f .word 0x08011c3f
  41243. 8011b6c: 08011c3f .word 0x08011c3f
  41244. 8011b70: 08011bfb .word 0x08011bfb
  41245. 8011b74: 08011c3f .word 0x08011c3f
  41246. 8011b78: 08011c3f .word 0x08011c3f
  41247. 8011b7c: 08011c3f .word 0x08011c3f
  41248. 8011b80: 08011c3f .word 0x08011c3f
  41249. 8011b84: 08011c3f .word 0x08011c3f
  41250. 8011b88: 08011c3f .word 0x08011c3f
  41251. 8011b8c: 08011c3f .word 0x08011c3f
  41252. 8011b90: 08011c0b .word 0x08011c0b
  41253. 8011b94: 08011c3f .word 0x08011c3f
  41254. 8011b98: 08011c3f .word 0x08011c3f
  41255. 8011b9c: 08011c3f .word 0x08011c3f
  41256. 8011ba0: 08011c3f .word 0x08011c3f
  41257. 8011ba4: 08011c3f .word 0x08011c3f
  41258. 8011ba8: 08011c3f .word 0x08011c3f
  41259. 8011bac: 08011c3f .word 0x08011c3f
  41260. 8011bb0: 08011c3f .word 0x08011c3f
  41261. 8011bb4: 08011c3f .word 0x08011c3f
  41262. 8011bb8: 08011c3f .word 0x08011c3f
  41263. 8011bbc: 08011c3f .word 0x08011c3f
  41264. 8011bc0: 08011c3f .word 0x08011c3f
  41265. 8011bc4: 08011c3f .word 0x08011c3f
  41266. 8011bc8: 08011c3f .word 0x08011c3f
  41267. 8011bcc: 08011c3f .word 0x08011c3f
  41268. 8011bd0: 08011c31 .word 0x08011c31
  41269. 8011bd4: 2b40 cmp r3, #64 @ 0x40
  41270. 8011bd6: d02e beq.n 8011c36 <UART_SetConfig+0x8aa>
  41271. 8011bd8: e031 b.n 8011c3e <UART_SetConfig+0x8b2>
  41272. {
  41273. case UART_CLOCKSOURCE_D2PCLK1:
  41274. pclk = HAL_RCC_GetPCLK1Freq();
  41275. 8011bda: f7fa f921 bl 800be20 <HAL_RCC_GetPCLK1Freq>
  41276. 8011bde: 63f8 str r0, [r7, #60] @ 0x3c
  41277. break;
  41278. 8011be0: e033 b.n 8011c4a <UART_SetConfig+0x8be>
  41279. case UART_CLOCKSOURCE_D2PCLK2:
  41280. pclk = HAL_RCC_GetPCLK2Freq();
  41281. 8011be2: f7fa f933 bl 800be4c <HAL_RCC_GetPCLK2Freq>
  41282. 8011be6: 63f8 str r0, [r7, #60] @ 0x3c
  41283. break;
  41284. 8011be8: e02f b.n 8011c4a <UART_SetConfig+0x8be>
  41285. case UART_CLOCKSOURCE_PLL2:
  41286. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41287. 8011bea: f107 0324 add.w r3, r7, #36 @ 0x24
  41288. 8011bee: 4618 mov r0, r3
  41289. 8011bf0: f7fc f908 bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  41290. pclk = pll2_clocks.PLL2_Q_Frequency;
  41291. 8011bf4: 6abb ldr r3, [r7, #40] @ 0x28
  41292. 8011bf6: 63fb str r3, [r7, #60] @ 0x3c
  41293. break;
  41294. 8011bf8: e027 b.n 8011c4a <UART_SetConfig+0x8be>
  41295. case UART_CLOCKSOURCE_PLL3:
  41296. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41297. 8011bfa: f107 0318 add.w r3, r7, #24
  41298. 8011bfe: 4618 mov r0, r3
  41299. 8011c00: f7fc fa54 bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  41300. pclk = pll3_clocks.PLL3_Q_Frequency;
  41301. 8011c04: 69fb ldr r3, [r7, #28]
  41302. 8011c06: 63fb str r3, [r7, #60] @ 0x3c
  41303. break;
  41304. 8011c08: e01f b.n 8011c4a <UART_SetConfig+0x8be>
  41305. case UART_CLOCKSOURCE_HSI:
  41306. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41307. 8011c0a: 4b2d ldr r3, [pc, #180] @ (8011cc0 <UART_SetConfig+0x934>)
  41308. 8011c0c: 681b ldr r3, [r3, #0]
  41309. 8011c0e: f003 0320 and.w r3, r3, #32
  41310. 8011c12: 2b00 cmp r3, #0
  41311. 8011c14: d009 beq.n 8011c2a <UART_SetConfig+0x89e>
  41312. {
  41313. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41314. 8011c16: 4b2a ldr r3, [pc, #168] @ (8011cc0 <UART_SetConfig+0x934>)
  41315. 8011c18: 681b ldr r3, [r3, #0]
  41316. 8011c1a: 08db lsrs r3, r3, #3
  41317. 8011c1c: f003 0303 and.w r3, r3, #3
  41318. 8011c20: 4a24 ldr r2, [pc, #144] @ (8011cb4 <UART_SetConfig+0x928>)
  41319. 8011c22: fa22 f303 lsr.w r3, r2, r3
  41320. 8011c26: 63fb str r3, [r7, #60] @ 0x3c
  41321. }
  41322. else
  41323. {
  41324. pclk = (uint32_t) HSI_VALUE;
  41325. }
  41326. break;
  41327. 8011c28: e00f b.n 8011c4a <UART_SetConfig+0x8be>
  41328. pclk = (uint32_t) HSI_VALUE;
  41329. 8011c2a: 4b22 ldr r3, [pc, #136] @ (8011cb4 <UART_SetConfig+0x928>)
  41330. 8011c2c: 63fb str r3, [r7, #60] @ 0x3c
  41331. break;
  41332. 8011c2e: e00c b.n 8011c4a <UART_SetConfig+0x8be>
  41333. case UART_CLOCKSOURCE_CSI:
  41334. pclk = (uint32_t) CSI_VALUE;
  41335. 8011c30: 4b21 ldr r3, [pc, #132] @ (8011cb8 <UART_SetConfig+0x92c>)
  41336. 8011c32: 63fb str r3, [r7, #60] @ 0x3c
  41337. break;
  41338. 8011c34: e009 b.n 8011c4a <UART_SetConfig+0x8be>
  41339. case UART_CLOCKSOURCE_LSE:
  41340. pclk = (uint32_t) LSE_VALUE;
  41341. 8011c36: f44f 4300 mov.w r3, #32768 @ 0x8000
  41342. 8011c3a: 63fb str r3, [r7, #60] @ 0x3c
  41343. break;
  41344. 8011c3c: e005 b.n 8011c4a <UART_SetConfig+0x8be>
  41345. default:
  41346. pclk = 0U;
  41347. 8011c3e: 2300 movs r3, #0
  41348. 8011c40: 63fb str r3, [r7, #60] @ 0x3c
  41349. ret = HAL_ERROR;
  41350. 8011c42: 2301 movs r3, #1
  41351. 8011c44: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41352. break;
  41353. 8011c48: bf00 nop
  41354. }
  41355. /* USARTDIV must be greater than or equal to 0d16 */
  41356. if (pclk != 0U)
  41357. 8011c4a: 6bfb ldr r3, [r7, #60] @ 0x3c
  41358. 8011c4c: 2b00 cmp r3, #0
  41359. 8011c4e: f000 80e7 beq.w 8011e20 <UART_SetConfig+0xa94>
  41360. {
  41361. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41362. 8011c52: 697b ldr r3, [r7, #20]
  41363. 8011c54: 6a5b ldr r3, [r3, #36] @ 0x24
  41364. 8011c56: 4a19 ldr r2, [pc, #100] @ (8011cbc <UART_SetConfig+0x930>)
  41365. 8011c58: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41366. 8011c5c: 461a mov r2, r3
  41367. 8011c5e: 6bfb ldr r3, [r7, #60] @ 0x3c
  41368. 8011c60: fbb3 f3f2 udiv r3, r3, r2
  41369. 8011c64: 005a lsls r2, r3, #1
  41370. 8011c66: 697b ldr r3, [r7, #20]
  41371. 8011c68: 685b ldr r3, [r3, #4]
  41372. 8011c6a: 085b lsrs r3, r3, #1
  41373. 8011c6c: 441a add r2, r3
  41374. 8011c6e: 697b ldr r3, [r7, #20]
  41375. 8011c70: 685b ldr r3, [r3, #4]
  41376. 8011c72: fbb2 f3f3 udiv r3, r2, r3
  41377. 8011c76: 63bb str r3, [r7, #56] @ 0x38
  41378. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  41379. 8011c78: 6bbb ldr r3, [r7, #56] @ 0x38
  41380. 8011c7a: 2b0f cmp r3, #15
  41381. 8011c7c: d916 bls.n 8011cac <UART_SetConfig+0x920>
  41382. 8011c7e: 6bbb ldr r3, [r7, #56] @ 0x38
  41383. 8011c80: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  41384. 8011c84: d212 bcs.n 8011cac <UART_SetConfig+0x920>
  41385. {
  41386. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  41387. 8011c86: 6bbb ldr r3, [r7, #56] @ 0x38
  41388. 8011c88: b29b uxth r3, r3
  41389. 8011c8a: f023 030f bic.w r3, r3, #15
  41390. 8011c8e: 86fb strh r3, [r7, #54] @ 0x36
  41391. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  41392. 8011c90: 6bbb ldr r3, [r7, #56] @ 0x38
  41393. 8011c92: 085b lsrs r3, r3, #1
  41394. 8011c94: b29b uxth r3, r3
  41395. 8011c96: f003 0307 and.w r3, r3, #7
  41396. 8011c9a: b29a uxth r2, r3
  41397. 8011c9c: 8efb ldrh r3, [r7, #54] @ 0x36
  41398. 8011c9e: 4313 orrs r3, r2
  41399. 8011ca0: 86fb strh r3, [r7, #54] @ 0x36
  41400. huart->Instance->BRR = brrtemp;
  41401. 8011ca2: 697b ldr r3, [r7, #20]
  41402. 8011ca4: 681b ldr r3, [r3, #0]
  41403. 8011ca6: 8efa ldrh r2, [r7, #54] @ 0x36
  41404. 8011ca8: 60da str r2, [r3, #12]
  41405. 8011caa: e0b9 b.n 8011e20 <UART_SetConfig+0xa94>
  41406. }
  41407. else
  41408. {
  41409. ret = HAL_ERROR;
  41410. 8011cac: 2301 movs r3, #1
  41411. 8011cae: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41412. 8011cb2: e0b5 b.n 8011e20 <UART_SetConfig+0xa94>
  41413. 8011cb4: 03d09000 .word 0x03d09000
  41414. 8011cb8: 003d0900 .word 0x003d0900
  41415. 8011cbc: 08018a40 .word 0x08018a40
  41416. 8011cc0: 58024400 .word 0x58024400
  41417. }
  41418. }
  41419. }
  41420. else
  41421. {
  41422. switch (clocksource)
  41423. 8011cc4: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  41424. 8011cc8: 2b20 cmp r3, #32
  41425. 8011cca: dc49 bgt.n 8011d60 <UART_SetConfig+0x9d4>
  41426. 8011ccc: 2b00 cmp r3, #0
  41427. 8011cce: db7c blt.n 8011dca <UART_SetConfig+0xa3e>
  41428. 8011cd0: 2b20 cmp r3, #32
  41429. 8011cd2: d87a bhi.n 8011dca <UART_SetConfig+0xa3e>
  41430. 8011cd4: a201 add r2, pc, #4 @ (adr r2, 8011cdc <UART_SetConfig+0x950>)
  41431. 8011cd6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41432. 8011cda: bf00 nop
  41433. 8011cdc: 08011d67 .word 0x08011d67
  41434. 8011ce0: 08011d6f .word 0x08011d6f
  41435. 8011ce4: 08011dcb .word 0x08011dcb
  41436. 8011ce8: 08011dcb .word 0x08011dcb
  41437. 8011cec: 08011d77 .word 0x08011d77
  41438. 8011cf0: 08011dcb .word 0x08011dcb
  41439. 8011cf4: 08011dcb .word 0x08011dcb
  41440. 8011cf8: 08011dcb .word 0x08011dcb
  41441. 8011cfc: 08011d87 .word 0x08011d87
  41442. 8011d00: 08011dcb .word 0x08011dcb
  41443. 8011d04: 08011dcb .word 0x08011dcb
  41444. 8011d08: 08011dcb .word 0x08011dcb
  41445. 8011d0c: 08011dcb .word 0x08011dcb
  41446. 8011d10: 08011dcb .word 0x08011dcb
  41447. 8011d14: 08011dcb .word 0x08011dcb
  41448. 8011d18: 08011dcb .word 0x08011dcb
  41449. 8011d1c: 08011d97 .word 0x08011d97
  41450. 8011d20: 08011dcb .word 0x08011dcb
  41451. 8011d24: 08011dcb .word 0x08011dcb
  41452. 8011d28: 08011dcb .word 0x08011dcb
  41453. 8011d2c: 08011dcb .word 0x08011dcb
  41454. 8011d30: 08011dcb .word 0x08011dcb
  41455. 8011d34: 08011dcb .word 0x08011dcb
  41456. 8011d38: 08011dcb .word 0x08011dcb
  41457. 8011d3c: 08011dcb .word 0x08011dcb
  41458. 8011d40: 08011dcb .word 0x08011dcb
  41459. 8011d44: 08011dcb .word 0x08011dcb
  41460. 8011d48: 08011dcb .word 0x08011dcb
  41461. 8011d4c: 08011dcb .word 0x08011dcb
  41462. 8011d50: 08011dcb .word 0x08011dcb
  41463. 8011d54: 08011dcb .word 0x08011dcb
  41464. 8011d58: 08011dcb .word 0x08011dcb
  41465. 8011d5c: 08011dbd .word 0x08011dbd
  41466. 8011d60: 2b40 cmp r3, #64 @ 0x40
  41467. 8011d62: d02e beq.n 8011dc2 <UART_SetConfig+0xa36>
  41468. 8011d64: e031 b.n 8011dca <UART_SetConfig+0xa3e>
  41469. {
  41470. case UART_CLOCKSOURCE_D2PCLK1:
  41471. pclk = HAL_RCC_GetPCLK1Freq();
  41472. 8011d66: f7fa f85b bl 800be20 <HAL_RCC_GetPCLK1Freq>
  41473. 8011d6a: 63f8 str r0, [r7, #60] @ 0x3c
  41474. break;
  41475. 8011d6c: e033 b.n 8011dd6 <UART_SetConfig+0xa4a>
  41476. case UART_CLOCKSOURCE_D2PCLK2:
  41477. pclk = HAL_RCC_GetPCLK2Freq();
  41478. 8011d6e: f7fa f86d bl 800be4c <HAL_RCC_GetPCLK2Freq>
  41479. 8011d72: 63f8 str r0, [r7, #60] @ 0x3c
  41480. break;
  41481. 8011d74: e02f b.n 8011dd6 <UART_SetConfig+0xa4a>
  41482. case UART_CLOCKSOURCE_PLL2:
  41483. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41484. 8011d76: f107 0324 add.w r3, r7, #36 @ 0x24
  41485. 8011d7a: 4618 mov r0, r3
  41486. 8011d7c: f7fc f842 bl 800de04 <HAL_RCCEx_GetPLL2ClockFreq>
  41487. pclk = pll2_clocks.PLL2_Q_Frequency;
  41488. 8011d80: 6abb ldr r3, [r7, #40] @ 0x28
  41489. 8011d82: 63fb str r3, [r7, #60] @ 0x3c
  41490. break;
  41491. 8011d84: e027 b.n 8011dd6 <UART_SetConfig+0xa4a>
  41492. case UART_CLOCKSOURCE_PLL3:
  41493. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41494. 8011d86: f107 0318 add.w r3, r7, #24
  41495. 8011d8a: 4618 mov r0, r3
  41496. 8011d8c: f7fc f98e bl 800e0ac <HAL_RCCEx_GetPLL3ClockFreq>
  41497. pclk = pll3_clocks.PLL3_Q_Frequency;
  41498. 8011d90: 69fb ldr r3, [r7, #28]
  41499. 8011d92: 63fb str r3, [r7, #60] @ 0x3c
  41500. break;
  41501. 8011d94: e01f b.n 8011dd6 <UART_SetConfig+0xa4a>
  41502. case UART_CLOCKSOURCE_HSI:
  41503. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41504. 8011d96: 4b2d ldr r3, [pc, #180] @ (8011e4c <UART_SetConfig+0xac0>)
  41505. 8011d98: 681b ldr r3, [r3, #0]
  41506. 8011d9a: f003 0320 and.w r3, r3, #32
  41507. 8011d9e: 2b00 cmp r3, #0
  41508. 8011da0: d009 beq.n 8011db6 <UART_SetConfig+0xa2a>
  41509. {
  41510. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41511. 8011da2: 4b2a ldr r3, [pc, #168] @ (8011e4c <UART_SetConfig+0xac0>)
  41512. 8011da4: 681b ldr r3, [r3, #0]
  41513. 8011da6: 08db lsrs r3, r3, #3
  41514. 8011da8: f003 0303 and.w r3, r3, #3
  41515. 8011dac: 4a28 ldr r2, [pc, #160] @ (8011e50 <UART_SetConfig+0xac4>)
  41516. 8011dae: fa22 f303 lsr.w r3, r2, r3
  41517. 8011db2: 63fb str r3, [r7, #60] @ 0x3c
  41518. }
  41519. else
  41520. {
  41521. pclk = (uint32_t) HSI_VALUE;
  41522. }
  41523. break;
  41524. 8011db4: e00f b.n 8011dd6 <UART_SetConfig+0xa4a>
  41525. pclk = (uint32_t) HSI_VALUE;
  41526. 8011db6: 4b26 ldr r3, [pc, #152] @ (8011e50 <UART_SetConfig+0xac4>)
  41527. 8011db8: 63fb str r3, [r7, #60] @ 0x3c
  41528. break;
  41529. 8011dba: e00c b.n 8011dd6 <UART_SetConfig+0xa4a>
  41530. case UART_CLOCKSOURCE_CSI:
  41531. pclk = (uint32_t) CSI_VALUE;
  41532. 8011dbc: 4b25 ldr r3, [pc, #148] @ (8011e54 <UART_SetConfig+0xac8>)
  41533. 8011dbe: 63fb str r3, [r7, #60] @ 0x3c
  41534. break;
  41535. 8011dc0: e009 b.n 8011dd6 <UART_SetConfig+0xa4a>
  41536. case UART_CLOCKSOURCE_LSE:
  41537. pclk = (uint32_t) LSE_VALUE;
  41538. 8011dc2: f44f 4300 mov.w r3, #32768 @ 0x8000
  41539. 8011dc6: 63fb str r3, [r7, #60] @ 0x3c
  41540. break;
  41541. 8011dc8: e005 b.n 8011dd6 <UART_SetConfig+0xa4a>
  41542. default:
  41543. pclk = 0U;
  41544. 8011dca: 2300 movs r3, #0
  41545. 8011dcc: 63fb str r3, [r7, #60] @ 0x3c
  41546. ret = HAL_ERROR;
  41547. 8011dce: 2301 movs r3, #1
  41548. 8011dd0: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41549. break;
  41550. 8011dd4: bf00 nop
  41551. }
  41552. if (pclk != 0U)
  41553. 8011dd6: 6bfb ldr r3, [r7, #60] @ 0x3c
  41554. 8011dd8: 2b00 cmp r3, #0
  41555. 8011dda: d021 beq.n 8011e20 <UART_SetConfig+0xa94>
  41556. {
  41557. /* USARTDIV must be greater than or equal to 0d16 */
  41558. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41559. 8011ddc: 697b ldr r3, [r7, #20]
  41560. 8011dde: 6a5b ldr r3, [r3, #36] @ 0x24
  41561. 8011de0: 4a1d ldr r2, [pc, #116] @ (8011e58 <UART_SetConfig+0xacc>)
  41562. 8011de2: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41563. 8011de6: 461a mov r2, r3
  41564. 8011de8: 6bfb ldr r3, [r7, #60] @ 0x3c
  41565. 8011dea: fbb3 f2f2 udiv r2, r3, r2
  41566. 8011dee: 697b ldr r3, [r7, #20]
  41567. 8011df0: 685b ldr r3, [r3, #4]
  41568. 8011df2: 085b lsrs r3, r3, #1
  41569. 8011df4: 441a add r2, r3
  41570. 8011df6: 697b ldr r3, [r7, #20]
  41571. 8011df8: 685b ldr r3, [r3, #4]
  41572. 8011dfa: fbb2 f3f3 udiv r3, r2, r3
  41573. 8011dfe: 63bb str r3, [r7, #56] @ 0x38
  41574. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  41575. 8011e00: 6bbb ldr r3, [r7, #56] @ 0x38
  41576. 8011e02: 2b0f cmp r3, #15
  41577. 8011e04: d909 bls.n 8011e1a <UART_SetConfig+0xa8e>
  41578. 8011e06: 6bbb ldr r3, [r7, #56] @ 0x38
  41579. 8011e08: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  41580. 8011e0c: d205 bcs.n 8011e1a <UART_SetConfig+0xa8e>
  41581. {
  41582. huart->Instance->BRR = (uint16_t)usartdiv;
  41583. 8011e0e: 6bbb ldr r3, [r7, #56] @ 0x38
  41584. 8011e10: b29a uxth r2, r3
  41585. 8011e12: 697b ldr r3, [r7, #20]
  41586. 8011e14: 681b ldr r3, [r3, #0]
  41587. 8011e16: 60da str r2, [r3, #12]
  41588. 8011e18: e002 b.n 8011e20 <UART_SetConfig+0xa94>
  41589. }
  41590. else
  41591. {
  41592. ret = HAL_ERROR;
  41593. 8011e1a: 2301 movs r3, #1
  41594. 8011e1c: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41595. }
  41596. }
  41597. }
  41598. /* Initialize the number of data to process during RX/TX ISR execution */
  41599. huart->NbTxDataToProcess = 1;
  41600. 8011e20: 697b ldr r3, [r7, #20]
  41601. 8011e22: 2201 movs r2, #1
  41602. 8011e24: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  41603. huart->NbRxDataToProcess = 1;
  41604. 8011e28: 697b ldr r3, [r7, #20]
  41605. 8011e2a: 2201 movs r2, #1
  41606. 8011e2c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  41607. /* Clear ISR function pointers */
  41608. huart->RxISR = NULL;
  41609. 8011e30: 697b ldr r3, [r7, #20]
  41610. 8011e32: 2200 movs r2, #0
  41611. 8011e34: 675a str r2, [r3, #116] @ 0x74
  41612. huart->TxISR = NULL;
  41613. 8011e36: 697b ldr r3, [r7, #20]
  41614. 8011e38: 2200 movs r2, #0
  41615. 8011e3a: 679a str r2, [r3, #120] @ 0x78
  41616. return ret;
  41617. 8011e3c: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  41618. }
  41619. 8011e40: 4618 mov r0, r3
  41620. 8011e42: 3748 adds r7, #72 @ 0x48
  41621. 8011e44: 46bd mov sp, r7
  41622. 8011e46: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  41623. 8011e4a: bf00 nop
  41624. 8011e4c: 58024400 .word 0x58024400
  41625. 8011e50: 03d09000 .word 0x03d09000
  41626. 8011e54: 003d0900 .word 0x003d0900
  41627. 8011e58: 08018a40 .word 0x08018a40
  41628. 08011e5c <UART_AdvFeatureConfig>:
  41629. * @brief Configure the UART peripheral advanced features.
  41630. * @param huart UART handle.
  41631. * @retval None
  41632. */
  41633. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  41634. {
  41635. 8011e5c: b480 push {r7}
  41636. 8011e5e: b083 sub sp, #12
  41637. 8011e60: af00 add r7, sp, #0
  41638. 8011e62: 6078 str r0, [r7, #4]
  41639. /* Check whether the set of advanced features to configure is properly set */
  41640. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  41641. /* if required, configure RX/TX pins swap */
  41642. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  41643. 8011e64: 687b ldr r3, [r7, #4]
  41644. 8011e66: 6a9b ldr r3, [r3, #40] @ 0x28
  41645. 8011e68: f003 0308 and.w r3, r3, #8
  41646. 8011e6c: 2b00 cmp r3, #0
  41647. 8011e6e: d00a beq.n 8011e86 <UART_AdvFeatureConfig+0x2a>
  41648. {
  41649. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  41650. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  41651. 8011e70: 687b ldr r3, [r7, #4]
  41652. 8011e72: 681b ldr r3, [r3, #0]
  41653. 8011e74: 685b ldr r3, [r3, #4]
  41654. 8011e76: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  41655. 8011e7a: 687b ldr r3, [r7, #4]
  41656. 8011e7c: 6b9a ldr r2, [r3, #56] @ 0x38
  41657. 8011e7e: 687b ldr r3, [r7, #4]
  41658. 8011e80: 681b ldr r3, [r3, #0]
  41659. 8011e82: 430a orrs r2, r1
  41660. 8011e84: 605a str r2, [r3, #4]
  41661. }
  41662. /* if required, configure TX pin active level inversion */
  41663. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  41664. 8011e86: 687b ldr r3, [r7, #4]
  41665. 8011e88: 6a9b ldr r3, [r3, #40] @ 0x28
  41666. 8011e8a: f003 0301 and.w r3, r3, #1
  41667. 8011e8e: 2b00 cmp r3, #0
  41668. 8011e90: d00a beq.n 8011ea8 <UART_AdvFeatureConfig+0x4c>
  41669. {
  41670. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  41671. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  41672. 8011e92: 687b ldr r3, [r7, #4]
  41673. 8011e94: 681b ldr r3, [r3, #0]
  41674. 8011e96: 685b ldr r3, [r3, #4]
  41675. 8011e98: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  41676. 8011e9c: 687b ldr r3, [r7, #4]
  41677. 8011e9e: 6ada ldr r2, [r3, #44] @ 0x2c
  41678. 8011ea0: 687b ldr r3, [r7, #4]
  41679. 8011ea2: 681b ldr r3, [r3, #0]
  41680. 8011ea4: 430a orrs r2, r1
  41681. 8011ea6: 605a str r2, [r3, #4]
  41682. }
  41683. /* if required, configure RX pin active level inversion */
  41684. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  41685. 8011ea8: 687b ldr r3, [r7, #4]
  41686. 8011eaa: 6a9b ldr r3, [r3, #40] @ 0x28
  41687. 8011eac: f003 0302 and.w r3, r3, #2
  41688. 8011eb0: 2b00 cmp r3, #0
  41689. 8011eb2: d00a beq.n 8011eca <UART_AdvFeatureConfig+0x6e>
  41690. {
  41691. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  41692. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  41693. 8011eb4: 687b ldr r3, [r7, #4]
  41694. 8011eb6: 681b ldr r3, [r3, #0]
  41695. 8011eb8: 685b ldr r3, [r3, #4]
  41696. 8011eba: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  41697. 8011ebe: 687b ldr r3, [r7, #4]
  41698. 8011ec0: 6b1a ldr r2, [r3, #48] @ 0x30
  41699. 8011ec2: 687b ldr r3, [r7, #4]
  41700. 8011ec4: 681b ldr r3, [r3, #0]
  41701. 8011ec6: 430a orrs r2, r1
  41702. 8011ec8: 605a str r2, [r3, #4]
  41703. }
  41704. /* if required, configure data inversion */
  41705. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  41706. 8011eca: 687b ldr r3, [r7, #4]
  41707. 8011ecc: 6a9b ldr r3, [r3, #40] @ 0x28
  41708. 8011ece: f003 0304 and.w r3, r3, #4
  41709. 8011ed2: 2b00 cmp r3, #0
  41710. 8011ed4: d00a beq.n 8011eec <UART_AdvFeatureConfig+0x90>
  41711. {
  41712. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  41713. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  41714. 8011ed6: 687b ldr r3, [r7, #4]
  41715. 8011ed8: 681b ldr r3, [r3, #0]
  41716. 8011eda: 685b ldr r3, [r3, #4]
  41717. 8011edc: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  41718. 8011ee0: 687b ldr r3, [r7, #4]
  41719. 8011ee2: 6b5a ldr r2, [r3, #52] @ 0x34
  41720. 8011ee4: 687b ldr r3, [r7, #4]
  41721. 8011ee6: 681b ldr r3, [r3, #0]
  41722. 8011ee8: 430a orrs r2, r1
  41723. 8011eea: 605a str r2, [r3, #4]
  41724. }
  41725. /* if required, configure RX overrun detection disabling */
  41726. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  41727. 8011eec: 687b ldr r3, [r7, #4]
  41728. 8011eee: 6a9b ldr r3, [r3, #40] @ 0x28
  41729. 8011ef0: f003 0310 and.w r3, r3, #16
  41730. 8011ef4: 2b00 cmp r3, #0
  41731. 8011ef6: d00a beq.n 8011f0e <UART_AdvFeatureConfig+0xb2>
  41732. {
  41733. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  41734. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  41735. 8011ef8: 687b ldr r3, [r7, #4]
  41736. 8011efa: 681b ldr r3, [r3, #0]
  41737. 8011efc: 689b ldr r3, [r3, #8]
  41738. 8011efe: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  41739. 8011f02: 687b ldr r3, [r7, #4]
  41740. 8011f04: 6bda ldr r2, [r3, #60] @ 0x3c
  41741. 8011f06: 687b ldr r3, [r7, #4]
  41742. 8011f08: 681b ldr r3, [r3, #0]
  41743. 8011f0a: 430a orrs r2, r1
  41744. 8011f0c: 609a str r2, [r3, #8]
  41745. }
  41746. /* if required, configure DMA disabling on reception error */
  41747. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  41748. 8011f0e: 687b ldr r3, [r7, #4]
  41749. 8011f10: 6a9b ldr r3, [r3, #40] @ 0x28
  41750. 8011f12: f003 0320 and.w r3, r3, #32
  41751. 8011f16: 2b00 cmp r3, #0
  41752. 8011f18: d00a beq.n 8011f30 <UART_AdvFeatureConfig+0xd4>
  41753. {
  41754. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  41755. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  41756. 8011f1a: 687b ldr r3, [r7, #4]
  41757. 8011f1c: 681b ldr r3, [r3, #0]
  41758. 8011f1e: 689b ldr r3, [r3, #8]
  41759. 8011f20: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  41760. 8011f24: 687b ldr r3, [r7, #4]
  41761. 8011f26: 6c1a ldr r2, [r3, #64] @ 0x40
  41762. 8011f28: 687b ldr r3, [r7, #4]
  41763. 8011f2a: 681b ldr r3, [r3, #0]
  41764. 8011f2c: 430a orrs r2, r1
  41765. 8011f2e: 609a str r2, [r3, #8]
  41766. }
  41767. /* if required, configure auto Baud rate detection scheme */
  41768. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  41769. 8011f30: 687b ldr r3, [r7, #4]
  41770. 8011f32: 6a9b ldr r3, [r3, #40] @ 0x28
  41771. 8011f34: f003 0340 and.w r3, r3, #64 @ 0x40
  41772. 8011f38: 2b00 cmp r3, #0
  41773. 8011f3a: d01a beq.n 8011f72 <UART_AdvFeatureConfig+0x116>
  41774. {
  41775. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  41776. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  41777. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  41778. 8011f3c: 687b ldr r3, [r7, #4]
  41779. 8011f3e: 681b ldr r3, [r3, #0]
  41780. 8011f40: 685b ldr r3, [r3, #4]
  41781. 8011f42: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  41782. 8011f46: 687b ldr r3, [r7, #4]
  41783. 8011f48: 6c5a ldr r2, [r3, #68] @ 0x44
  41784. 8011f4a: 687b ldr r3, [r7, #4]
  41785. 8011f4c: 681b ldr r3, [r3, #0]
  41786. 8011f4e: 430a orrs r2, r1
  41787. 8011f50: 605a str r2, [r3, #4]
  41788. /* set auto Baudrate detection parameters if detection is enabled */
  41789. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  41790. 8011f52: 687b ldr r3, [r7, #4]
  41791. 8011f54: 6c5b ldr r3, [r3, #68] @ 0x44
  41792. 8011f56: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  41793. 8011f5a: d10a bne.n 8011f72 <UART_AdvFeatureConfig+0x116>
  41794. {
  41795. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  41796. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  41797. 8011f5c: 687b ldr r3, [r7, #4]
  41798. 8011f5e: 681b ldr r3, [r3, #0]
  41799. 8011f60: 685b ldr r3, [r3, #4]
  41800. 8011f62: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  41801. 8011f66: 687b ldr r3, [r7, #4]
  41802. 8011f68: 6c9a ldr r2, [r3, #72] @ 0x48
  41803. 8011f6a: 687b ldr r3, [r7, #4]
  41804. 8011f6c: 681b ldr r3, [r3, #0]
  41805. 8011f6e: 430a orrs r2, r1
  41806. 8011f70: 605a str r2, [r3, #4]
  41807. }
  41808. }
  41809. /* if required, configure MSB first on communication line */
  41810. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  41811. 8011f72: 687b ldr r3, [r7, #4]
  41812. 8011f74: 6a9b ldr r3, [r3, #40] @ 0x28
  41813. 8011f76: f003 0380 and.w r3, r3, #128 @ 0x80
  41814. 8011f7a: 2b00 cmp r3, #0
  41815. 8011f7c: d00a beq.n 8011f94 <UART_AdvFeatureConfig+0x138>
  41816. {
  41817. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  41818. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  41819. 8011f7e: 687b ldr r3, [r7, #4]
  41820. 8011f80: 681b ldr r3, [r3, #0]
  41821. 8011f82: 685b ldr r3, [r3, #4]
  41822. 8011f84: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  41823. 8011f88: 687b ldr r3, [r7, #4]
  41824. 8011f8a: 6cda ldr r2, [r3, #76] @ 0x4c
  41825. 8011f8c: 687b ldr r3, [r7, #4]
  41826. 8011f8e: 681b ldr r3, [r3, #0]
  41827. 8011f90: 430a orrs r2, r1
  41828. 8011f92: 605a str r2, [r3, #4]
  41829. }
  41830. }
  41831. 8011f94: bf00 nop
  41832. 8011f96: 370c adds r7, #12
  41833. 8011f98: 46bd mov sp, r7
  41834. 8011f9a: f85d 7b04 ldr.w r7, [sp], #4
  41835. 8011f9e: 4770 bx lr
  41836. 08011fa0 <UART_CheckIdleState>:
  41837. * @brief Check the UART Idle State.
  41838. * @param huart UART handle.
  41839. * @retval HAL status
  41840. */
  41841. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  41842. {
  41843. 8011fa0: b580 push {r7, lr}
  41844. 8011fa2: b098 sub sp, #96 @ 0x60
  41845. 8011fa4: af02 add r7, sp, #8
  41846. 8011fa6: 6078 str r0, [r7, #4]
  41847. uint32_t tickstart;
  41848. /* Initialize the UART ErrorCode */
  41849. huart->ErrorCode = HAL_UART_ERROR_NONE;
  41850. 8011fa8: 687b ldr r3, [r7, #4]
  41851. 8011faa: 2200 movs r2, #0
  41852. 8011fac: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  41853. /* Init tickstart for timeout management */
  41854. tickstart = HAL_GetTick();
  41855. 8011fb0: f7f3 fa44 bl 800543c <HAL_GetTick>
  41856. 8011fb4: 6578 str r0, [r7, #84] @ 0x54
  41857. /* Check if the Transmitter is enabled */
  41858. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  41859. 8011fb6: 687b ldr r3, [r7, #4]
  41860. 8011fb8: 681b ldr r3, [r3, #0]
  41861. 8011fba: 681b ldr r3, [r3, #0]
  41862. 8011fbc: f003 0308 and.w r3, r3, #8
  41863. 8011fc0: 2b08 cmp r3, #8
  41864. 8011fc2: d12f bne.n 8012024 <UART_CheckIdleState+0x84>
  41865. {
  41866. /* Wait until TEACK flag is set */
  41867. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  41868. 8011fc4: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  41869. 8011fc8: 9300 str r3, [sp, #0]
  41870. 8011fca: 6d7b ldr r3, [r7, #84] @ 0x54
  41871. 8011fcc: 2200 movs r2, #0
  41872. 8011fce: f44f 1100 mov.w r1, #2097152 @ 0x200000
  41873. 8011fd2: 6878 ldr r0, [r7, #4]
  41874. 8011fd4: f000 f88e bl 80120f4 <UART_WaitOnFlagUntilTimeout>
  41875. 8011fd8: 4603 mov r3, r0
  41876. 8011fda: 2b00 cmp r3, #0
  41877. 8011fdc: d022 beq.n 8012024 <UART_CheckIdleState+0x84>
  41878. {
  41879. /* Disable TXE interrupt for the interrupt process */
  41880. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  41881. 8011fde: 687b ldr r3, [r7, #4]
  41882. 8011fe0: 681b ldr r3, [r3, #0]
  41883. 8011fe2: 63bb str r3, [r7, #56] @ 0x38
  41884. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41885. 8011fe4: 6bbb ldr r3, [r7, #56] @ 0x38
  41886. 8011fe6: e853 3f00 ldrex r3, [r3]
  41887. 8011fea: 637b str r3, [r7, #52] @ 0x34
  41888. return(result);
  41889. 8011fec: 6b7b ldr r3, [r7, #52] @ 0x34
  41890. 8011fee: f023 0380 bic.w r3, r3, #128 @ 0x80
  41891. 8011ff2: 653b str r3, [r7, #80] @ 0x50
  41892. 8011ff4: 687b ldr r3, [r7, #4]
  41893. 8011ff6: 681b ldr r3, [r3, #0]
  41894. 8011ff8: 461a mov r2, r3
  41895. 8011ffa: 6d3b ldr r3, [r7, #80] @ 0x50
  41896. 8011ffc: 647b str r3, [r7, #68] @ 0x44
  41897. 8011ffe: 643a str r2, [r7, #64] @ 0x40
  41898. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41899. 8012000: 6c39 ldr r1, [r7, #64] @ 0x40
  41900. 8012002: 6c7a ldr r2, [r7, #68] @ 0x44
  41901. 8012004: e841 2300 strex r3, r2, [r1]
  41902. 8012008: 63fb str r3, [r7, #60] @ 0x3c
  41903. return(result);
  41904. 801200a: 6bfb ldr r3, [r7, #60] @ 0x3c
  41905. 801200c: 2b00 cmp r3, #0
  41906. 801200e: d1e6 bne.n 8011fde <UART_CheckIdleState+0x3e>
  41907. huart->gState = HAL_UART_STATE_READY;
  41908. 8012010: 687b ldr r3, [r7, #4]
  41909. 8012012: 2220 movs r2, #32
  41910. 8012014: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  41911. __HAL_UNLOCK(huart);
  41912. 8012018: 687b ldr r3, [r7, #4]
  41913. 801201a: 2200 movs r2, #0
  41914. 801201c: f883 2084 strb.w r2, [r3, #132] @ 0x84
  41915. /* Timeout occurred */
  41916. return HAL_TIMEOUT;
  41917. 8012020: 2303 movs r3, #3
  41918. 8012022: e063 b.n 80120ec <UART_CheckIdleState+0x14c>
  41919. }
  41920. }
  41921. /* Check if the Receiver is enabled */
  41922. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  41923. 8012024: 687b ldr r3, [r7, #4]
  41924. 8012026: 681b ldr r3, [r3, #0]
  41925. 8012028: 681b ldr r3, [r3, #0]
  41926. 801202a: f003 0304 and.w r3, r3, #4
  41927. 801202e: 2b04 cmp r3, #4
  41928. 8012030: d149 bne.n 80120c6 <UART_CheckIdleState+0x126>
  41929. {
  41930. /* Wait until REACK flag is set */
  41931. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  41932. 8012032: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  41933. 8012036: 9300 str r3, [sp, #0]
  41934. 8012038: 6d7b ldr r3, [r7, #84] @ 0x54
  41935. 801203a: 2200 movs r2, #0
  41936. 801203c: f44f 0180 mov.w r1, #4194304 @ 0x400000
  41937. 8012040: 6878 ldr r0, [r7, #4]
  41938. 8012042: f000 f857 bl 80120f4 <UART_WaitOnFlagUntilTimeout>
  41939. 8012046: 4603 mov r3, r0
  41940. 8012048: 2b00 cmp r3, #0
  41941. 801204a: d03c beq.n 80120c6 <UART_CheckIdleState+0x126>
  41942. {
  41943. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  41944. interrupts for the interrupt process */
  41945. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  41946. 801204c: 687b ldr r3, [r7, #4]
  41947. 801204e: 681b ldr r3, [r3, #0]
  41948. 8012050: 627b str r3, [r7, #36] @ 0x24
  41949. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41950. 8012052: 6a7b ldr r3, [r7, #36] @ 0x24
  41951. 8012054: e853 3f00 ldrex r3, [r3]
  41952. 8012058: 623b str r3, [r7, #32]
  41953. return(result);
  41954. 801205a: 6a3b ldr r3, [r7, #32]
  41955. 801205c: f423 7390 bic.w r3, r3, #288 @ 0x120
  41956. 8012060: 64fb str r3, [r7, #76] @ 0x4c
  41957. 8012062: 687b ldr r3, [r7, #4]
  41958. 8012064: 681b ldr r3, [r3, #0]
  41959. 8012066: 461a mov r2, r3
  41960. 8012068: 6cfb ldr r3, [r7, #76] @ 0x4c
  41961. 801206a: 633b str r3, [r7, #48] @ 0x30
  41962. 801206c: 62fa str r2, [r7, #44] @ 0x2c
  41963. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41964. 801206e: 6af9 ldr r1, [r7, #44] @ 0x2c
  41965. 8012070: 6b3a ldr r2, [r7, #48] @ 0x30
  41966. 8012072: e841 2300 strex r3, r2, [r1]
  41967. 8012076: 62bb str r3, [r7, #40] @ 0x28
  41968. return(result);
  41969. 8012078: 6abb ldr r3, [r7, #40] @ 0x28
  41970. 801207a: 2b00 cmp r3, #0
  41971. 801207c: d1e6 bne.n 801204c <UART_CheckIdleState+0xac>
  41972. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  41973. 801207e: 687b ldr r3, [r7, #4]
  41974. 8012080: 681b ldr r3, [r3, #0]
  41975. 8012082: 3308 adds r3, #8
  41976. 8012084: 613b str r3, [r7, #16]
  41977. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41978. 8012086: 693b ldr r3, [r7, #16]
  41979. 8012088: e853 3f00 ldrex r3, [r3]
  41980. 801208c: 60fb str r3, [r7, #12]
  41981. return(result);
  41982. 801208e: 68fb ldr r3, [r7, #12]
  41983. 8012090: f023 0301 bic.w r3, r3, #1
  41984. 8012094: 64bb str r3, [r7, #72] @ 0x48
  41985. 8012096: 687b ldr r3, [r7, #4]
  41986. 8012098: 681b ldr r3, [r3, #0]
  41987. 801209a: 3308 adds r3, #8
  41988. 801209c: 6cba ldr r2, [r7, #72] @ 0x48
  41989. 801209e: 61fa str r2, [r7, #28]
  41990. 80120a0: 61bb str r3, [r7, #24]
  41991. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41992. 80120a2: 69b9 ldr r1, [r7, #24]
  41993. 80120a4: 69fa ldr r2, [r7, #28]
  41994. 80120a6: e841 2300 strex r3, r2, [r1]
  41995. 80120aa: 617b str r3, [r7, #20]
  41996. return(result);
  41997. 80120ac: 697b ldr r3, [r7, #20]
  41998. 80120ae: 2b00 cmp r3, #0
  41999. 80120b0: d1e5 bne.n 801207e <UART_CheckIdleState+0xde>
  42000. huart->RxState = HAL_UART_STATE_READY;
  42001. 80120b2: 687b ldr r3, [r7, #4]
  42002. 80120b4: 2220 movs r2, #32
  42003. 80120b6: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42004. __HAL_UNLOCK(huart);
  42005. 80120ba: 687b ldr r3, [r7, #4]
  42006. 80120bc: 2200 movs r2, #0
  42007. 80120be: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42008. /* Timeout occurred */
  42009. return HAL_TIMEOUT;
  42010. 80120c2: 2303 movs r3, #3
  42011. 80120c4: e012 b.n 80120ec <UART_CheckIdleState+0x14c>
  42012. }
  42013. }
  42014. /* Initialize the UART State */
  42015. huart->gState = HAL_UART_STATE_READY;
  42016. 80120c6: 687b ldr r3, [r7, #4]
  42017. 80120c8: 2220 movs r2, #32
  42018. 80120ca: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  42019. huart->RxState = HAL_UART_STATE_READY;
  42020. 80120ce: 687b ldr r3, [r7, #4]
  42021. 80120d0: 2220 movs r2, #32
  42022. 80120d2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42023. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  42024. 80120d6: 687b ldr r3, [r7, #4]
  42025. 80120d8: 2200 movs r2, #0
  42026. 80120da: 66da str r2, [r3, #108] @ 0x6c
  42027. huart->RxEventType = HAL_UART_RXEVENT_TC;
  42028. 80120dc: 687b ldr r3, [r7, #4]
  42029. 80120de: 2200 movs r2, #0
  42030. 80120e0: 671a str r2, [r3, #112] @ 0x70
  42031. __HAL_UNLOCK(huart);
  42032. 80120e2: 687b ldr r3, [r7, #4]
  42033. 80120e4: 2200 movs r2, #0
  42034. 80120e6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42035. return HAL_OK;
  42036. 80120ea: 2300 movs r3, #0
  42037. }
  42038. 80120ec: 4618 mov r0, r3
  42039. 80120ee: 3758 adds r7, #88 @ 0x58
  42040. 80120f0: 46bd mov sp, r7
  42041. 80120f2: bd80 pop {r7, pc}
  42042. 080120f4 <UART_WaitOnFlagUntilTimeout>:
  42043. * @param Timeout Timeout duration
  42044. * @retval HAL status
  42045. */
  42046. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  42047. uint32_t Tickstart, uint32_t Timeout)
  42048. {
  42049. 80120f4: b580 push {r7, lr}
  42050. 80120f6: b084 sub sp, #16
  42051. 80120f8: af00 add r7, sp, #0
  42052. 80120fa: 60f8 str r0, [r7, #12]
  42053. 80120fc: 60b9 str r1, [r7, #8]
  42054. 80120fe: 603b str r3, [r7, #0]
  42055. 8012100: 4613 mov r3, r2
  42056. 8012102: 71fb strb r3, [r7, #7]
  42057. /* Wait until flag is set */
  42058. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  42059. 8012104: e04f b.n 80121a6 <UART_WaitOnFlagUntilTimeout+0xb2>
  42060. {
  42061. /* Check for the Timeout */
  42062. if (Timeout != HAL_MAX_DELAY)
  42063. 8012106: 69bb ldr r3, [r7, #24]
  42064. 8012108: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42065. 801210c: d04b beq.n 80121a6 <UART_WaitOnFlagUntilTimeout+0xb2>
  42066. {
  42067. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  42068. 801210e: f7f3 f995 bl 800543c <HAL_GetTick>
  42069. 8012112: 4602 mov r2, r0
  42070. 8012114: 683b ldr r3, [r7, #0]
  42071. 8012116: 1ad3 subs r3, r2, r3
  42072. 8012118: 69ba ldr r2, [r7, #24]
  42073. 801211a: 429a cmp r2, r3
  42074. 801211c: d302 bcc.n 8012124 <UART_WaitOnFlagUntilTimeout+0x30>
  42075. 801211e: 69bb ldr r3, [r7, #24]
  42076. 8012120: 2b00 cmp r3, #0
  42077. 8012122: d101 bne.n 8012128 <UART_WaitOnFlagUntilTimeout+0x34>
  42078. {
  42079. return HAL_TIMEOUT;
  42080. 8012124: 2303 movs r3, #3
  42081. 8012126: e04e b.n 80121c6 <UART_WaitOnFlagUntilTimeout+0xd2>
  42082. }
  42083. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  42084. 8012128: 68fb ldr r3, [r7, #12]
  42085. 801212a: 681b ldr r3, [r3, #0]
  42086. 801212c: 681b ldr r3, [r3, #0]
  42087. 801212e: f003 0304 and.w r3, r3, #4
  42088. 8012132: 2b00 cmp r3, #0
  42089. 8012134: d037 beq.n 80121a6 <UART_WaitOnFlagUntilTimeout+0xb2>
  42090. 8012136: 68bb ldr r3, [r7, #8]
  42091. 8012138: 2b80 cmp r3, #128 @ 0x80
  42092. 801213a: d034 beq.n 80121a6 <UART_WaitOnFlagUntilTimeout+0xb2>
  42093. 801213c: 68bb ldr r3, [r7, #8]
  42094. 801213e: 2b40 cmp r3, #64 @ 0x40
  42095. 8012140: d031 beq.n 80121a6 <UART_WaitOnFlagUntilTimeout+0xb2>
  42096. {
  42097. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  42098. 8012142: 68fb ldr r3, [r7, #12]
  42099. 8012144: 681b ldr r3, [r3, #0]
  42100. 8012146: 69db ldr r3, [r3, #28]
  42101. 8012148: f003 0308 and.w r3, r3, #8
  42102. 801214c: 2b08 cmp r3, #8
  42103. 801214e: d110 bne.n 8012172 <UART_WaitOnFlagUntilTimeout+0x7e>
  42104. {
  42105. /* Clear Overrun Error flag*/
  42106. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  42107. 8012150: 68fb ldr r3, [r7, #12]
  42108. 8012152: 681b ldr r3, [r3, #0]
  42109. 8012154: 2208 movs r2, #8
  42110. 8012156: 621a str r2, [r3, #32]
  42111. /* Blocking error : transfer is aborted
  42112. Set the UART state ready to be able to start again the process,
  42113. Disable Rx Interrupts if ongoing */
  42114. UART_EndRxTransfer(huart);
  42115. 8012158: 68f8 ldr r0, [r7, #12]
  42116. 801215a: f000 f95b bl 8012414 <UART_EndRxTransfer>
  42117. huart->ErrorCode = HAL_UART_ERROR_ORE;
  42118. 801215e: 68fb ldr r3, [r7, #12]
  42119. 8012160: 2208 movs r2, #8
  42120. 8012162: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42121. /* Process Unlocked */
  42122. __HAL_UNLOCK(huart);
  42123. 8012166: 68fb ldr r3, [r7, #12]
  42124. 8012168: 2200 movs r2, #0
  42125. 801216a: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42126. return HAL_ERROR;
  42127. 801216e: 2301 movs r3, #1
  42128. 8012170: e029 b.n 80121c6 <UART_WaitOnFlagUntilTimeout+0xd2>
  42129. }
  42130. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  42131. 8012172: 68fb ldr r3, [r7, #12]
  42132. 8012174: 681b ldr r3, [r3, #0]
  42133. 8012176: 69db ldr r3, [r3, #28]
  42134. 8012178: f403 6300 and.w r3, r3, #2048 @ 0x800
  42135. 801217c: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  42136. 8012180: d111 bne.n 80121a6 <UART_WaitOnFlagUntilTimeout+0xb2>
  42137. {
  42138. /* Clear Receiver Timeout flag*/
  42139. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  42140. 8012182: 68fb ldr r3, [r7, #12]
  42141. 8012184: 681b ldr r3, [r3, #0]
  42142. 8012186: f44f 6200 mov.w r2, #2048 @ 0x800
  42143. 801218a: 621a str r2, [r3, #32]
  42144. /* Blocking error : transfer is aborted
  42145. Set the UART state ready to be able to start again the process,
  42146. Disable Rx Interrupts if ongoing */
  42147. UART_EndRxTransfer(huart);
  42148. 801218c: 68f8 ldr r0, [r7, #12]
  42149. 801218e: f000 f941 bl 8012414 <UART_EndRxTransfer>
  42150. huart->ErrorCode = HAL_UART_ERROR_RTO;
  42151. 8012192: 68fb ldr r3, [r7, #12]
  42152. 8012194: 2220 movs r2, #32
  42153. 8012196: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42154. /* Process Unlocked */
  42155. __HAL_UNLOCK(huart);
  42156. 801219a: 68fb ldr r3, [r7, #12]
  42157. 801219c: 2200 movs r2, #0
  42158. 801219e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42159. return HAL_TIMEOUT;
  42160. 80121a2: 2303 movs r3, #3
  42161. 80121a4: e00f b.n 80121c6 <UART_WaitOnFlagUntilTimeout+0xd2>
  42162. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  42163. 80121a6: 68fb ldr r3, [r7, #12]
  42164. 80121a8: 681b ldr r3, [r3, #0]
  42165. 80121aa: 69da ldr r2, [r3, #28]
  42166. 80121ac: 68bb ldr r3, [r7, #8]
  42167. 80121ae: 4013 ands r3, r2
  42168. 80121b0: 68ba ldr r2, [r7, #8]
  42169. 80121b2: 429a cmp r2, r3
  42170. 80121b4: bf0c ite eq
  42171. 80121b6: 2301 moveq r3, #1
  42172. 80121b8: 2300 movne r3, #0
  42173. 80121ba: b2db uxtb r3, r3
  42174. 80121bc: 461a mov r2, r3
  42175. 80121be: 79fb ldrb r3, [r7, #7]
  42176. 80121c0: 429a cmp r2, r3
  42177. 80121c2: d0a0 beq.n 8012106 <UART_WaitOnFlagUntilTimeout+0x12>
  42178. }
  42179. }
  42180. }
  42181. }
  42182. return HAL_OK;
  42183. 80121c4: 2300 movs r3, #0
  42184. }
  42185. 80121c6: 4618 mov r0, r3
  42186. 80121c8: 3710 adds r7, #16
  42187. 80121ca: 46bd mov sp, r7
  42188. 80121cc: bd80 pop {r7, pc}
  42189. ...
  42190. 080121d0 <UART_Start_Receive_IT>:
  42191. * @param pData Pointer to data buffer (u8 or u16 data elements).
  42192. * @param Size Amount of data elements (u8 or u16) to be received.
  42193. * @retval HAL status
  42194. */
  42195. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  42196. {
  42197. 80121d0: b480 push {r7}
  42198. 80121d2: b0a3 sub sp, #140 @ 0x8c
  42199. 80121d4: af00 add r7, sp, #0
  42200. 80121d6: 60f8 str r0, [r7, #12]
  42201. 80121d8: 60b9 str r1, [r7, #8]
  42202. 80121da: 4613 mov r3, r2
  42203. 80121dc: 80fb strh r3, [r7, #6]
  42204. huart->pRxBuffPtr = pData;
  42205. 80121de: 68fb ldr r3, [r7, #12]
  42206. 80121e0: 68ba ldr r2, [r7, #8]
  42207. 80121e2: 659a str r2, [r3, #88] @ 0x58
  42208. huart->RxXferSize = Size;
  42209. 80121e4: 68fb ldr r3, [r7, #12]
  42210. 80121e6: 88fa ldrh r2, [r7, #6]
  42211. 80121e8: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  42212. huart->RxXferCount = Size;
  42213. 80121ec: 68fb ldr r3, [r7, #12]
  42214. 80121ee: 88fa ldrh r2, [r7, #6]
  42215. 80121f0: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  42216. huart->RxISR = NULL;
  42217. 80121f4: 68fb ldr r3, [r7, #12]
  42218. 80121f6: 2200 movs r2, #0
  42219. 80121f8: 675a str r2, [r3, #116] @ 0x74
  42220. /* Computation of UART mask to apply to RDR register */
  42221. UART_MASK_COMPUTATION(huart);
  42222. 80121fa: 68fb ldr r3, [r7, #12]
  42223. 80121fc: 689b ldr r3, [r3, #8]
  42224. 80121fe: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42225. 8012202: d10e bne.n 8012222 <UART_Start_Receive_IT+0x52>
  42226. 8012204: 68fb ldr r3, [r7, #12]
  42227. 8012206: 691b ldr r3, [r3, #16]
  42228. 8012208: 2b00 cmp r3, #0
  42229. 801220a: d105 bne.n 8012218 <UART_Start_Receive_IT+0x48>
  42230. 801220c: 68fb ldr r3, [r7, #12]
  42231. 801220e: f240 12ff movw r2, #511 @ 0x1ff
  42232. 8012212: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42233. 8012216: e02d b.n 8012274 <UART_Start_Receive_IT+0xa4>
  42234. 8012218: 68fb ldr r3, [r7, #12]
  42235. 801221a: 22ff movs r2, #255 @ 0xff
  42236. 801221c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42237. 8012220: e028 b.n 8012274 <UART_Start_Receive_IT+0xa4>
  42238. 8012222: 68fb ldr r3, [r7, #12]
  42239. 8012224: 689b ldr r3, [r3, #8]
  42240. 8012226: 2b00 cmp r3, #0
  42241. 8012228: d10d bne.n 8012246 <UART_Start_Receive_IT+0x76>
  42242. 801222a: 68fb ldr r3, [r7, #12]
  42243. 801222c: 691b ldr r3, [r3, #16]
  42244. 801222e: 2b00 cmp r3, #0
  42245. 8012230: d104 bne.n 801223c <UART_Start_Receive_IT+0x6c>
  42246. 8012232: 68fb ldr r3, [r7, #12]
  42247. 8012234: 22ff movs r2, #255 @ 0xff
  42248. 8012236: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42249. 801223a: e01b b.n 8012274 <UART_Start_Receive_IT+0xa4>
  42250. 801223c: 68fb ldr r3, [r7, #12]
  42251. 801223e: 227f movs r2, #127 @ 0x7f
  42252. 8012240: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42253. 8012244: e016 b.n 8012274 <UART_Start_Receive_IT+0xa4>
  42254. 8012246: 68fb ldr r3, [r7, #12]
  42255. 8012248: 689b ldr r3, [r3, #8]
  42256. 801224a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  42257. 801224e: d10d bne.n 801226c <UART_Start_Receive_IT+0x9c>
  42258. 8012250: 68fb ldr r3, [r7, #12]
  42259. 8012252: 691b ldr r3, [r3, #16]
  42260. 8012254: 2b00 cmp r3, #0
  42261. 8012256: d104 bne.n 8012262 <UART_Start_Receive_IT+0x92>
  42262. 8012258: 68fb ldr r3, [r7, #12]
  42263. 801225a: 227f movs r2, #127 @ 0x7f
  42264. 801225c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42265. 8012260: e008 b.n 8012274 <UART_Start_Receive_IT+0xa4>
  42266. 8012262: 68fb ldr r3, [r7, #12]
  42267. 8012264: 223f movs r2, #63 @ 0x3f
  42268. 8012266: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42269. 801226a: e003 b.n 8012274 <UART_Start_Receive_IT+0xa4>
  42270. 801226c: 68fb ldr r3, [r7, #12]
  42271. 801226e: 2200 movs r2, #0
  42272. 8012270: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42273. huart->ErrorCode = HAL_UART_ERROR_NONE;
  42274. 8012274: 68fb ldr r3, [r7, #12]
  42275. 8012276: 2200 movs r2, #0
  42276. 8012278: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42277. huart->RxState = HAL_UART_STATE_BUSY_RX;
  42278. 801227c: 68fb ldr r3, [r7, #12]
  42279. 801227e: 2222 movs r2, #34 @ 0x22
  42280. 8012280: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42281. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  42282. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  42283. 8012284: 68fb ldr r3, [r7, #12]
  42284. 8012286: 681b ldr r3, [r3, #0]
  42285. 8012288: 3308 adds r3, #8
  42286. 801228a: 667b str r3, [r7, #100] @ 0x64
  42287. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42288. 801228c: 6e7b ldr r3, [r7, #100] @ 0x64
  42289. 801228e: e853 3f00 ldrex r3, [r3]
  42290. 8012292: 663b str r3, [r7, #96] @ 0x60
  42291. return(result);
  42292. 8012294: 6e3b ldr r3, [r7, #96] @ 0x60
  42293. 8012296: f043 0301 orr.w r3, r3, #1
  42294. 801229a: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  42295. 801229e: 68fb ldr r3, [r7, #12]
  42296. 80122a0: 681b ldr r3, [r3, #0]
  42297. 80122a2: 3308 adds r3, #8
  42298. 80122a4: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  42299. 80122a8: 673a str r2, [r7, #112] @ 0x70
  42300. 80122aa: 66fb str r3, [r7, #108] @ 0x6c
  42301. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42302. 80122ac: 6ef9 ldr r1, [r7, #108] @ 0x6c
  42303. 80122ae: 6f3a ldr r2, [r7, #112] @ 0x70
  42304. 80122b0: e841 2300 strex r3, r2, [r1]
  42305. 80122b4: 66bb str r3, [r7, #104] @ 0x68
  42306. return(result);
  42307. 80122b6: 6ebb ldr r3, [r7, #104] @ 0x68
  42308. 80122b8: 2b00 cmp r3, #0
  42309. 80122ba: d1e3 bne.n 8012284 <UART_Start_Receive_IT+0xb4>
  42310. /* Configure Rx interrupt processing */
  42311. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  42312. 80122bc: 68fb ldr r3, [r7, #12]
  42313. 80122be: 6e5b ldr r3, [r3, #100] @ 0x64
  42314. 80122c0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  42315. 80122c4: d14f bne.n 8012366 <UART_Start_Receive_IT+0x196>
  42316. 80122c6: 68fb ldr r3, [r7, #12]
  42317. 80122c8: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  42318. 80122cc: 88fa ldrh r2, [r7, #6]
  42319. 80122ce: 429a cmp r2, r3
  42320. 80122d0: d349 bcc.n 8012366 <UART_Start_Receive_IT+0x196>
  42321. {
  42322. /* Set the Rx ISR function pointer according to the data word length */
  42323. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  42324. 80122d2: 68fb ldr r3, [r7, #12]
  42325. 80122d4: 689b ldr r3, [r3, #8]
  42326. 80122d6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42327. 80122da: d107 bne.n 80122ec <UART_Start_Receive_IT+0x11c>
  42328. 80122dc: 68fb ldr r3, [r7, #12]
  42329. 80122de: 691b ldr r3, [r3, #16]
  42330. 80122e0: 2b00 cmp r3, #0
  42331. 80122e2: d103 bne.n 80122ec <UART_Start_Receive_IT+0x11c>
  42332. {
  42333. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  42334. 80122e4: 68fb ldr r3, [r7, #12]
  42335. 80122e6: 4a47 ldr r2, [pc, #284] @ (8012404 <UART_Start_Receive_IT+0x234>)
  42336. 80122e8: 675a str r2, [r3, #116] @ 0x74
  42337. 80122ea: e002 b.n 80122f2 <UART_Start_Receive_IT+0x122>
  42338. }
  42339. else
  42340. {
  42341. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  42342. 80122ec: 68fb ldr r3, [r7, #12]
  42343. 80122ee: 4a46 ldr r2, [pc, #280] @ (8012408 <UART_Start_Receive_IT+0x238>)
  42344. 80122f0: 675a str r2, [r3, #116] @ 0x74
  42345. }
  42346. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  42347. if (huart->Init.Parity != UART_PARITY_NONE)
  42348. 80122f2: 68fb ldr r3, [r7, #12]
  42349. 80122f4: 691b ldr r3, [r3, #16]
  42350. 80122f6: 2b00 cmp r3, #0
  42351. 80122f8: d01a beq.n 8012330 <UART_Start_Receive_IT+0x160>
  42352. {
  42353. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  42354. 80122fa: 68fb ldr r3, [r7, #12]
  42355. 80122fc: 681b ldr r3, [r3, #0]
  42356. 80122fe: 653b str r3, [r7, #80] @ 0x50
  42357. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42358. 8012300: 6d3b ldr r3, [r7, #80] @ 0x50
  42359. 8012302: e853 3f00 ldrex r3, [r3]
  42360. 8012306: 64fb str r3, [r7, #76] @ 0x4c
  42361. return(result);
  42362. 8012308: 6cfb ldr r3, [r7, #76] @ 0x4c
  42363. 801230a: f443 7380 orr.w r3, r3, #256 @ 0x100
  42364. 801230e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  42365. 8012312: 68fb ldr r3, [r7, #12]
  42366. 8012314: 681b ldr r3, [r3, #0]
  42367. 8012316: 461a mov r2, r3
  42368. 8012318: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  42369. 801231c: 65fb str r3, [r7, #92] @ 0x5c
  42370. 801231e: 65ba str r2, [r7, #88] @ 0x58
  42371. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42372. 8012320: 6db9 ldr r1, [r7, #88] @ 0x58
  42373. 8012322: 6dfa ldr r2, [r7, #92] @ 0x5c
  42374. 8012324: e841 2300 strex r3, r2, [r1]
  42375. 8012328: 657b str r3, [r7, #84] @ 0x54
  42376. return(result);
  42377. 801232a: 6d7b ldr r3, [r7, #84] @ 0x54
  42378. 801232c: 2b00 cmp r3, #0
  42379. 801232e: d1e4 bne.n 80122fa <UART_Start_Receive_IT+0x12a>
  42380. }
  42381. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  42382. 8012330: 68fb ldr r3, [r7, #12]
  42383. 8012332: 681b ldr r3, [r3, #0]
  42384. 8012334: 3308 adds r3, #8
  42385. 8012336: 63fb str r3, [r7, #60] @ 0x3c
  42386. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42387. 8012338: 6bfb ldr r3, [r7, #60] @ 0x3c
  42388. 801233a: e853 3f00 ldrex r3, [r3]
  42389. 801233e: 63bb str r3, [r7, #56] @ 0x38
  42390. return(result);
  42391. 8012340: 6bbb ldr r3, [r7, #56] @ 0x38
  42392. 8012342: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  42393. 8012346: 67fb str r3, [r7, #124] @ 0x7c
  42394. 8012348: 68fb ldr r3, [r7, #12]
  42395. 801234a: 681b ldr r3, [r3, #0]
  42396. 801234c: 3308 adds r3, #8
  42397. 801234e: 6ffa ldr r2, [r7, #124] @ 0x7c
  42398. 8012350: 64ba str r2, [r7, #72] @ 0x48
  42399. 8012352: 647b str r3, [r7, #68] @ 0x44
  42400. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42401. 8012354: 6c79 ldr r1, [r7, #68] @ 0x44
  42402. 8012356: 6cba ldr r2, [r7, #72] @ 0x48
  42403. 8012358: e841 2300 strex r3, r2, [r1]
  42404. 801235c: 643b str r3, [r7, #64] @ 0x40
  42405. return(result);
  42406. 801235e: 6c3b ldr r3, [r7, #64] @ 0x40
  42407. 8012360: 2b00 cmp r3, #0
  42408. 8012362: d1e5 bne.n 8012330 <UART_Start_Receive_IT+0x160>
  42409. 8012364: e046 b.n 80123f4 <UART_Start_Receive_IT+0x224>
  42410. }
  42411. else
  42412. {
  42413. /* Set the Rx ISR function pointer according to the data word length */
  42414. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  42415. 8012366: 68fb ldr r3, [r7, #12]
  42416. 8012368: 689b ldr r3, [r3, #8]
  42417. 801236a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42418. 801236e: d107 bne.n 8012380 <UART_Start_Receive_IT+0x1b0>
  42419. 8012370: 68fb ldr r3, [r7, #12]
  42420. 8012372: 691b ldr r3, [r3, #16]
  42421. 8012374: 2b00 cmp r3, #0
  42422. 8012376: d103 bne.n 8012380 <UART_Start_Receive_IT+0x1b0>
  42423. {
  42424. huart->RxISR = UART_RxISR_16BIT;
  42425. 8012378: 68fb ldr r3, [r7, #12]
  42426. 801237a: 4a24 ldr r2, [pc, #144] @ (801240c <UART_Start_Receive_IT+0x23c>)
  42427. 801237c: 675a str r2, [r3, #116] @ 0x74
  42428. 801237e: e002 b.n 8012386 <UART_Start_Receive_IT+0x1b6>
  42429. }
  42430. else
  42431. {
  42432. huart->RxISR = UART_RxISR_8BIT;
  42433. 8012380: 68fb ldr r3, [r7, #12]
  42434. 8012382: 4a23 ldr r2, [pc, #140] @ (8012410 <UART_Start_Receive_IT+0x240>)
  42435. 8012384: 675a str r2, [r3, #116] @ 0x74
  42436. }
  42437. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  42438. if (huart->Init.Parity != UART_PARITY_NONE)
  42439. 8012386: 68fb ldr r3, [r7, #12]
  42440. 8012388: 691b ldr r3, [r3, #16]
  42441. 801238a: 2b00 cmp r3, #0
  42442. 801238c: d019 beq.n 80123c2 <UART_Start_Receive_IT+0x1f2>
  42443. {
  42444. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  42445. 801238e: 68fb ldr r3, [r7, #12]
  42446. 8012390: 681b ldr r3, [r3, #0]
  42447. 8012392: 62bb str r3, [r7, #40] @ 0x28
  42448. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42449. 8012394: 6abb ldr r3, [r7, #40] @ 0x28
  42450. 8012396: e853 3f00 ldrex r3, [r3]
  42451. 801239a: 627b str r3, [r7, #36] @ 0x24
  42452. return(result);
  42453. 801239c: 6a7b ldr r3, [r7, #36] @ 0x24
  42454. 801239e: f443 7390 orr.w r3, r3, #288 @ 0x120
  42455. 80123a2: 677b str r3, [r7, #116] @ 0x74
  42456. 80123a4: 68fb ldr r3, [r7, #12]
  42457. 80123a6: 681b ldr r3, [r3, #0]
  42458. 80123a8: 461a mov r2, r3
  42459. 80123aa: 6f7b ldr r3, [r7, #116] @ 0x74
  42460. 80123ac: 637b str r3, [r7, #52] @ 0x34
  42461. 80123ae: 633a str r2, [r7, #48] @ 0x30
  42462. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42463. 80123b0: 6b39 ldr r1, [r7, #48] @ 0x30
  42464. 80123b2: 6b7a ldr r2, [r7, #52] @ 0x34
  42465. 80123b4: e841 2300 strex r3, r2, [r1]
  42466. 80123b8: 62fb str r3, [r7, #44] @ 0x2c
  42467. return(result);
  42468. 80123ba: 6afb ldr r3, [r7, #44] @ 0x2c
  42469. 80123bc: 2b00 cmp r3, #0
  42470. 80123be: d1e6 bne.n 801238e <UART_Start_Receive_IT+0x1be>
  42471. 80123c0: e018 b.n 80123f4 <UART_Start_Receive_IT+0x224>
  42472. }
  42473. else
  42474. {
  42475. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  42476. 80123c2: 68fb ldr r3, [r7, #12]
  42477. 80123c4: 681b ldr r3, [r3, #0]
  42478. 80123c6: 617b str r3, [r7, #20]
  42479. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42480. 80123c8: 697b ldr r3, [r7, #20]
  42481. 80123ca: e853 3f00 ldrex r3, [r3]
  42482. 80123ce: 613b str r3, [r7, #16]
  42483. return(result);
  42484. 80123d0: 693b ldr r3, [r7, #16]
  42485. 80123d2: f043 0320 orr.w r3, r3, #32
  42486. 80123d6: 67bb str r3, [r7, #120] @ 0x78
  42487. 80123d8: 68fb ldr r3, [r7, #12]
  42488. 80123da: 681b ldr r3, [r3, #0]
  42489. 80123dc: 461a mov r2, r3
  42490. 80123de: 6fbb ldr r3, [r7, #120] @ 0x78
  42491. 80123e0: 623b str r3, [r7, #32]
  42492. 80123e2: 61fa str r2, [r7, #28]
  42493. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42494. 80123e4: 69f9 ldr r1, [r7, #28]
  42495. 80123e6: 6a3a ldr r2, [r7, #32]
  42496. 80123e8: e841 2300 strex r3, r2, [r1]
  42497. 80123ec: 61bb str r3, [r7, #24]
  42498. return(result);
  42499. 80123ee: 69bb ldr r3, [r7, #24]
  42500. 80123f0: 2b00 cmp r3, #0
  42501. 80123f2: d1e6 bne.n 80123c2 <UART_Start_Receive_IT+0x1f2>
  42502. }
  42503. }
  42504. return HAL_OK;
  42505. 80123f4: 2300 movs r3, #0
  42506. }
  42507. 80123f6: 4618 mov r0, r3
  42508. 80123f8: 378c adds r7, #140 @ 0x8c
  42509. 80123fa: 46bd mov sp, r7
  42510. 80123fc: f85d 7b04 ldr.w r7, [sp], #4
  42511. 8012400: 4770 bx lr
  42512. 8012402: bf00 nop
  42513. 8012404: 08012f79 .word 0x08012f79
  42514. 8012408: 08012c19 .word 0x08012c19
  42515. 801240c: 08012a61 .word 0x08012a61
  42516. 8012410: 080128a9 .word 0x080128a9
  42517. 08012414 <UART_EndRxTransfer>:
  42518. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  42519. * @param huart UART handle.
  42520. * @retval None
  42521. */
  42522. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  42523. {
  42524. 8012414: b480 push {r7}
  42525. 8012416: b095 sub sp, #84 @ 0x54
  42526. 8012418: af00 add r7, sp, #0
  42527. 801241a: 6078 str r0, [r7, #4]
  42528. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  42529. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  42530. 801241c: 687b ldr r3, [r7, #4]
  42531. 801241e: 681b ldr r3, [r3, #0]
  42532. 8012420: 637b str r3, [r7, #52] @ 0x34
  42533. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42534. 8012422: 6b7b ldr r3, [r7, #52] @ 0x34
  42535. 8012424: e853 3f00 ldrex r3, [r3]
  42536. 8012428: 633b str r3, [r7, #48] @ 0x30
  42537. return(result);
  42538. 801242a: 6b3b ldr r3, [r7, #48] @ 0x30
  42539. 801242c: f423 7390 bic.w r3, r3, #288 @ 0x120
  42540. 8012430: 64fb str r3, [r7, #76] @ 0x4c
  42541. 8012432: 687b ldr r3, [r7, #4]
  42542. 8012434: 681b ldr r3, [r3, #0]
  42543. 8012436: 461a mov r2, r3
  42544. 8012438: 6cfb ldr r3, [r7, #76] @ 0x4c
  42545. 801243a: 643b str r3, [r7, #64] @ 0x40
  42546. 801243c: 63fa str r2, [r7, #60] @ 0x3c
  42547. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42548. 801243e: 6bf9 ldr r1, [r7, #60] @ 0x3c
  42549. 8012440: 6c3a ldr r2, [r7, #64] @ 0x40
  42550. 8012442: e841 2300 strex r3, r2, [r1]
  42551. 8012446: 63bb str r3, [r7, #56] @ 0x38
  42552. return(result);
  42553. 8012448: 6bbb ldr r3, [r7, #56] @ 0x38
  42554. 801244a: 2b00 cmp r3, #0
  42555. 801244c: d1e6 bne.n 801241c <UART_EndRxTransfer+0x8>
  42556. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  42557. 801244e: 687b ldr r3, [r7, #4]
  42558. 8012450: 681b ldr r3, [r3, #0]
  42559. 8012452: 3308 adds r3, #8
  42560. 8012454: 623b str r3, [r7, #32]
  42561. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42562. 8012456: 6a3b ldr r3, [r7, #32]
  42563. 8012458: e853 3f00 ldrex r3, [r3]
  42564. 801245c: 61fb str r3, [r7, #28]
  42565. return(result);
  42566. 801245e: 69fa ldr r2, [r7, #28]
  42567. 8012460: 4b1e ldr r3, [pc, #120] @ (80124dc <UART_EndRxTransfer+0xc8>)
  42568. 8012462: 4013 ands r3, r2
  42569. 8012464: 64bb str r3, [r7, #72] @ 0x48
  42570. 8012466: 687b ldr r3, [r7, #4]
  42571. 8012468: 681b ldr r3, [r3, #0]
  42572. 801246a: 3308 adds r3, #8
  42573. 801246c: 6cba ldr r2, [r7, #72] @ 0x48
  42574. 801246e: 62fa str r2, [r7, #44] @ 0x2c
  42575. 8012470: 62bb str r3, [r7, #40] @ 0x28
  42576. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42577. 8012472: 6ab9 ldr r1, [r7, #40] @ 0x28
  42578. 8012474: 6afa ldr r2, [r7, #44] @ 0x2c
  42579. 8012476: e841 2300 strex r3, r2, [r1]
  42580. 801247a: 627b str r3, [r7, #36] @ 0x24
  42581. return(result);
  42582. 801247c: 6a7b ldr r3, [r7, #36] @ 0x24
  42583. 801247e: 2b00 cmp r3, #0
  42584. 8012480: d1e5 bne.n 801244e <UART_EndRxTransfer+0x3a>
  42585. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  42586. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  42587. 8012482: 687b ldr r3, [r7, #4]
  42588. 8012484: 6edb ldr r3, [r3, #108] @ 0x6c
  42589. 8012486: 2b01 cmp r3, #1
  42590. 8012488: d118 bne.n 80124bc <UART_EndRxTransfer+0xa8>
  42591. {
  42592. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  42593. 801248a: 687b ldr r3, [r7, #4]
  42594. 801248c: 681b ldr r3, [r3, #0]
  42595. 801248e: 60fb str r3, [r7, #12]
  42596. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42597. 8012490: 68fb ldr r3, [r7, #12]
  42598. 8012492: e853 3f00 ldrex r3, [r3]
  42599. 8012496: 60bb str r3, [r7, #8]
  42600. return(result);
  42601. 8012498: 68bb ldr r3, [r7, #8]
  42602. 801249a: f023 0310 bic.w r3, r3, #16
  42603. 801249e: 647b str r3, [r7, #68] @ 0x44
  42604. 80124a0: 687b ldr r3, [r7, #4]
  42605. 80124a2: 681b ldr r3, [r3, #0]
  42606. 80124a4: 461a mov r2, r3
  42607. 80124a6: 6c7b ldr r3, [r7, #68] @ 0x44
  42608. 80124a8: 61bb str r3, [r7, #24]
  42609. 80124aa: 617a str r2, [r7, #20]
  42610. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42611. 80124ac: 6979 ldr r1, [r7, #20]
  42612. 80124ae: 69ba ldr r2, [r7, #24]
  42613. 80124b0: e841 2300 strex r3, r2, [r1]
  42614. 80124b4: 613b str r3, [r7, #16]
  42615. return(result);
  42616. 80124b6: 693b ldr r3, [r7, #16]
  42617. 80124b8: 2b00 cmp r3, #0
  42618. 80124ba: d1e6 bne.n 801248a <UART_EndRxTransfer+0x76>
  42619. }
  42620. /* At end of Rx process, restore huart->RxState to Ready */
  42621. huart->RxState = HAL_UART_STATE_READY;
  42622. 80124bc: 687b ldr r3, [r7, #4]
  42623. 80124be: 2220 movs r2, #32
  42624. 80124c0: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42625. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  42626. 80124c4: 687b ldr r3, [r7, #4]
  42627. 80124c6: 2200 movs r2, #0
  42628. 80124c8: 66da str r2, [r3, #108] @ 0x6c
  42629. /* Reset RxIsr function pointer */
  42630. huart->RxISR = NULL;
  42631. 80124ca: 687b ldr r3, [r7, #4]
  42632. 80124cc: 2200 movs r2, #0
  42633. 80124ce: 675a str r2, [r3, #116] @ 0x74
  42634. }
  42635. 80124d0: bf00 nop
  42636. 80124d2: 3754 adds r7, #84 @ 0x54
  42637. 80124d4: 46bd mov sp, r7
  42638. 80124d6: f85d 7b04 ldr.w r7, [sp], #4
  42639. 80124da: 4770 bx lr
  42640. 80124dc: effffffe .word 0xeffffffe
  42641. 080124e0 <UART_DMAAbortOnError>:
  42642. * (To be called at end of DMA Abort procedure following error occurrence).
  42643. * @param hdma DMA handle.
  42644. * @retval None
  42645. */
  42646. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  42647. {
  42648. 80124e0: b580 push {r7, lr}
  42649. 80124e2: b084 sub sp, #16
  42650. 80124e4: af00 add r7, sp, #0
  42651. 80124e6: 6078 str r0, [r7, #4]
  42652. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  42653. 80124e8: 687b ldr r3, [r7, #4]
  42654. 80124ea: 6b9b ldr r3, [r3, #56] @ 0x38
  42655. 80124ec: 60fb str r3, [r7, #12]
  42656. huart->RxXferCount = 0U;
  42657. 80124ee: 68fb ldr r3, [r7, #12]
  42658. 80124f0: 2200 movs r2, #0
  42659. 80124f2: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  42660. huart->TxXferCount = 0U;
  42661. 80124f6: 68fb ldr r3, [r7, #12]
  42662. 80124f8: 2200 movs r2, #0
  42663. 80124fa: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  42664. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  42665. /*Call registered error callback*/
  42666. huart->ErrorCallback(huart);
  42667. #else
  42668. /*Call legacy weak error callback*/
  42669. HAL_UART_ErrorCallback(huart);
  42670. 80124fe: 68f8 ldr r0, [r7, #12]
  42671. 8012500: f7fe ff3a bl 8011378 <HAL_UART_ErrorCallback>
  42672. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  42673. }
  42674. 8012504: bf00 nop
  42675. 8012506: 3710 adds r7, #16
  42676. 8012508: 46bd mov sp, r7
  42677. 801250a: bd80 pop {r7, pc}
  42678. 0801250c <UART_TxISR_8BIT>:
  42679. * interruptions have been enabled by HAL_UART_Transmit_IT().
  42680. * @param huart UART handle.
  42681. * @retval None
  42682. */
  42683. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  42684. {
  42685. 801250c: b480 push {r7}
  42686. 801250e: b08f sub sp, #60 @ 0x3c
  42687. 8012510: af00 add r7, sp, #0
  42688. 8012512: 6078 str r0, [r7, #4]
  42689. /* Check that a Tx process is ongoing */
  42690. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  42691. 8012514: 687b ldr r3, [r7, #4]
  42692. 8012516: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  42693. 801251a: 2b21 cmp r3, #33 @ 0x21
  42694. 801251c: d14c bne.n 80125b8 <UART_TxISR_8BIT+0xac>
  42695. {
  42696. if (huart->TxXferCount == 0U)
  42697. 801251e: 687b ldr r3, [r7, #4]
  42698. 8012520: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42699. 8012524: b29b uxth r3, r3
  42700. 8012526: 2b00 cmp r3, #0
  42701. 8012528: d132 bne.n 8012590 <UART_TxISR_8BIT+0x84>
  42702. {
  42703. /* Disable the UART Transmit Data Register Empty Interrupt */
  42704. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  42705. 801252a: 687b ldr r3, [r7, #4]
  42706. 801252c: 681b ldr r3, [r3, #0]
  42707. 801252e: 623b str r3, [r7, #32]
  42708. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42709. 8012530: 6a3b ldr r3, [r7, #32]
  42710. 8012532: e853 3f00 ldrex r3, [r3]
  42711. 8012536: 61fb str r3, [r7, #28]
  42712. return(result);
  42713. 8012538: 69fb ldr r3, [r7, #28]
  42714. 801253a: f023 0380 bic.w r3, r3, #128 @ 0x80
  42715. 801253e: 637b str r3, [r7, #52] @ 0x34
  42716. 8012540: 687b ldr r3, [r7, #4]
  42717. 8012542: 681b ldr r3, [r3, #0]
  42718. 8012544: 461a mov r2, r3
  42719. 8012546: 6b7b ldr r3, [r7, #52] @ 0x34
  42720. 8012548: 62fb str r3, [r7, #44] @ 0x2c
  42721. 801254a: 62ba str r2, [r7, #40] @ 0x28
  42722. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42723. 801254c: 6ab9 ldr r1, [r7, #40] @ 0x28
  42724. 801254e: 6afa ldr r2, [r7, #44] @ 0x2c
  42725. 8012550: e841 2300 strex r3, r2, [r1]
  42726. 8012554: 627b str r3, [r7, #36] @ 0x24
  42727. return(result);
  42728. 8012556: 6a7b ldr r3, [r7, #36] @ 0x24
  42729. 8012558: 2b00 cmp r3, #0
  42730. 801255a: d1e6 bne.n 801252a <UART_TxISR_8BIT+0x1e>
  42731. /* Enable the UART Transmit Complete Interrupt */
  42732. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  42733. 801255c: 687b ldr r3, [r7, #4]
  42734. 801255e: 681b ldr r3, [r3, #0]
  42735. 8012560: 60fb str r3, [r7, #12]
  42736. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42737. 8012562: 68fb ldr r3, [r7, #12]
  42738. 8012564: e853 3f00 ldrex r3, [r3]
  42739. 8012568: 60bb str r3, [r7, #8]
  42740. return(result);
  42741. 801256a: 68bb ldr r3, [r7, #8]
  42742. 801256c: f043 0340 orr.w r3, r3, #64 @ 0x40
  42743. 8012570: 633b str r3, [r7, #48] @ 0x30
  42744. 8012572: 687b ldr r3, [r7, #4]
  42745. 8012574: 681b ldr r3, [r3, #0]
  42746. 8012576: 461a mov r2, r3
  42747. 8012578: 6b3b ldr r3, [r7, #48] @ 0x30
  42748. 801257a: 61bb str r3, [r7, #24]
  42749. 801257c: 617a str r2, [r7, #20]
  42750. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42751. 801257e: 6979 ldr r1, [r7, #20]
  42752. 8012580: 69ba ldr r2, [r7, #24]
  42753. 8012582: e841 2300 strex r3, r2, [r1]
  42754. 8012586: 613b str r3, [r7, #16]
  42755. return(result);
  42756. 8012588: 693b ldr r3, [r7, #16]
  42757. 801258a: 2b00 cmp r3, #0
  42758. 801258c: d1e6 bne.n 801255c <UART_TxISR_8BIT+0x50>
  42759. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  42760. huart->pTxBuffPtr++;
  42761. huart->TxXferCount--;
  42762. }
  42763. }
  42764. }
  42765. 801258e: e013 b.n 80125b8 <UART_TxISR_8BIT+0xac>
  42766. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  42767. 8012590: 687b ldr r3, [r7, #4]
  42768. 8012592: 6d1b ldr r3, [r3, #80] @ 0x50
  42769. 8012594: 781a ldrb r2, [r3, #0]
  42770. 8012596: 687b ldr r3, [r7, #4]
  42771. 8012598: 681b ldr r3, [r3, #0]
  42772. 801259a: 629a str r2, [r3, #40] @ 0x28
  42773. huart->pTxBuffPtr++;
  42774. 801259c: 687b ldr r3, [r7, #4]
  42775. 801259e: 6d1b ldr r3, [r3, #80] @ 0x50
  42776. 80125a0: 1c5a adds r2, r3, #1
  42777. 80125a2: 687b ldr r3, [r7, #4]
  42778. 80125a4: 651a str r2, [r3, #80] @ 0x50
  42779. huart->TxXferCount--;
  42780. 80125a6: 687b ldr r3, [r7, #4]
  42781. 80125a8: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42782. 80125ac: b29b uxth r3, r3
  42783. 80125ae: 3b01 subs r3, #1
  42784. 80125b0: b29a uxth r2, r3
  42785. 80125b2: 687b ldr r3, [r7, #4]
  42786. 80125b4: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  42787. }
  42788. 80125b8: bf00 nop
  42789. 80125ba: 373c adds r7, #60 @ 0x3c
  42790. 80125bc: 46bd mov sp, r7
  42791. 80125be: f85d 7b04 ldr.w r7, [sp], #4
  42792. 80125c2: 4770 bx lr
  42793. 080125c4 <UART_TxISR_16BIT>:
  42794. * interruptions have been enabled by HAL_UART_Transmit_IT().
  42795. * @param huart UART handle.
  42796. * @retval None
  42797. */
  42798. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  42799. {
  42800. 80125c4: b480 push {r7}
  42801. 80125c6: b091 sub sp, #68 @ 0x44
  42802. 80125c8: af00 add r7, sp, #0
  42803. 80125ca: 6078 str r0, [r7, #4]
  42804. const uint16_t *tmp;
  42805. /* Check that a Tx process is ongoing */
  42806. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  42807. 80125cc: 687b ldr r3, [r7, #4]
  42808. 80125ce: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  42809. 80125d2: 2b21 cmp r3, #33 @ 0x21
  42810. 80125d4: d151 bne.n 801267a <UART_TxISR_16BIT+0xb6>
  42811. {
  42812. if (huart->TxXferCount == 0U)
  42813. 80125d6: 687b ldr r3, [r7, #4]
  42814. 80125d8: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42815. 80125dc: b29b uxth r3, r3
  42816. 80125de: 2b00 cmp r3, #0
  42817. 80125e0: d132 bne.n 8012648 <UART_TxISR_16BIT+0x84>
  42818. {
  42819. /* Disable the UART Transmit Data Register Empty Interrupt */
  42820. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  42821. 80125e2: 687b ldr r3, [r7, #4]
  42822. 80125e4: 681b ldr r3, [r3, #0]
  42823. 80125e6: 627b str r3, [r7, #36] @ 0x24
  42824. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42825. 80125e8: 6a7b ldr r3, [r7, #36] @ 0x24
  42826. 80125ea: e853 3f00 ldrex r3, [r3]
  42827. 80125ee: 623b str r3, [r7, #32]
  42828. return(result);
  42829. 80125f0: 6a3b ldr r3, [r7, #32]
  42830. 80125f2: f023 0380 bic.w r3, r3, #128 @ 0x80
  42831. 80125f6: 63bb str r3, [r7, #56] @ 0x38
  42832. 80125f8: 687b ldr r3, [r7, #4]
  42833. 80125fa: 681b ldr r3, [r3, #0]
  42834. 80125fc: 461a mov r2, r3
  42835. 80125fe: 6bbb ldr r3, [r7, #56] @ 0x38
  42836. 8012600: 633b str r3, [r7, #48] @ 0x30
  42837. 8012602: 62fa str r2, [r7, #44] @ 0x2c
  42838. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42839. 8012604: 6af9 ldr r1, [r7, #44] @ 0x2c
  42840. 8012606: 6b3a ldr r2, [r7, #48] @ 0x30
  42841. 8012608: e841 2300 strex r3, r2, [r1]
  42842. 801260c: 62bb str r3, [r7, #40] @ 0x28
  42843. return(result);
  42844. 801260e: 6abb ldr r3, [r7, #40] @ 0x28
  42845. 8012610: 2b00 cmp r3, #0
  42846. 8012612: d1e6 bne.n 80125e2 <UART_TxISR_16BIT+0x1e>
  42847. /* Enable the UART Transmit Complete Interrupt */
  42848. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  42849. 8012614: 687b ldr r3, [r7, #4]
  42850. 8012616: 681b ldr r3, [r3, #0]
  42851. 8012618: 613b str r3, [r7, #16]
  42852. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42853. 801261a: 693b ldr r3, [r7, #16]
  42854. 801261c: e853 3f00 ldrex r3, [r3]
  42855. 8012620: 60fb str r3, [r7, #12]
  42856. return(result);
  42857. 8012622: 68fb ldr r3, [r7, #12]
  42858. 8012624: f043 0340 orr.w r3, r3, #64 @ 0x40
  42859. 8012628: 637b str r3, [r7, #52] @ 0x34
  42860. 801262a: 687b ldr r3, [r7, #4]
  42861. 801262c: 681b ldr r3, [r3, #0]
  42862. 801262e: 461a mov r2, r3
  42863. 8012630: 6b7b ldr r3, [r7, #52] @ 0x34
  42864. 8012632: 61fb str r3, [r7, #28]
  42865. 8012634: 61ba str r2, [r7, #24]
  42866. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42867. 8012636: 69b9 ldr r1, [r7, #24]
  42868. 8012638: 69fa ldr r2, [r7, #28]
  42869. 801263a: e841 2300 strex r3, r2, [r1]
  42870. 801263e: 617b str r3, [r7, #20]
  42871. return(result);
  42872. 8012640: 697b ldr r3, [r7, #20]
  42873. 8012642: 2b00 cmp r3, #0
  42874. 8012644: d1e6 bne.n 8012614 <UART_TxISR_16BIT+0x50>
  42875. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  42876. huart->pTxBuffPtr += 2U;
  42877. huart->TxXferCount--;
  42878. }
  42879. }
  42880. }
  42881. 8012646: e018 b.n 801267a <UART_TxISR_16BIT+0xb6>
  42882. tmp = (const uint16_t *) huart->pTxBuffPtr;
  42883. 8012648: 687b ldr r3, [r7, #4]
  42884. 801264a: 6d1b ldr r3, [r3, #80] @ 0x50
  42885. 801264c: 63fb str r3, [r7, #60] @ 0x3c
  42886. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  42887. 801264e: 6bfb ldr r3, [r7, #60] @ 0x3c
  42888. 8012650: 881b ldrh r3, [r3, #0]
  42889. 8012652: 461a mov r2, r3
  42890. 8012654: 687b ldr r3, [r7, #4]
  42891. 8012656: 681b ldr r3, [r3, #0]
  42892. 8012658: f3c2 0208 ubfx r2, r2, #0, #9
  42893. 801265c: 629a str r2, [r3, #40] @ 0x28
  42894. huart->pTxBuffPtr += 2U;
  42895. 801265e: 687b ldr r3, [r7, #4]
  42896. 8012660: 6d1b ldr r3, [r3, #80] @ 0x50
  42897. 8012662: 1c9a adds r2, r3, #2
  42898. 8012664: 687b ldr r3, [r7, #4]
  42899. 8012666: 651a str r2, [r3, #80] @ 0x50
  42900. huart->TxXferCount--;
  42901. 8012668: 687b ldr r3, [r7, #4]
  42902. 801266a: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42903. 801266e: b29b uxth r3, r3
  42904. 8012670: 3b01 subs r3, #1
  42905. 8012672: b29a uxth r2, r3
  42906. 8012674: 687b ldr r3, [r7, #4]
  42907. 8012676: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  42908. }
  42909. 801267a: bf00 nop
  42910. 801267c: 3744 adds r7, #68 @ 0x44
  42911. 801267e: 46bd mov sp, r7
  42912. 8012680: f85d 7b04 ldr.w r7, [sp], #4
  42913. 8012684: 4770 bx lr
  42914. 08012686 <UART_TxISR_8BIT_FIFOEN>:
  42915. * interruptions have been enabled by HAL_UART_Transmit_IT().
  42916. * @param huart UART handle.
  42917. * @retval None
  42918. */
  42919. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  42920. {
  42921. 8012686: b480 push {r7}
  42922. 8012688: b091 sub sp, #68 @ 0x44
  42923. 801268a: af00 add r7, sp, #0
  42924. 801268c: 6078 str r0, [r7, #4]
  42925. uint16_t nb_tx_data;
  42926. /* Check that a Tx process is ongoing */
  42927. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  42928. 801268e: 687b ldr r3, [r7, #4]
  42929. 8012690: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  42930. 8012694: 2b21 cmp r3, #33 @ 0x21
  42931. 8012696: d160 bne.n 801275a <UART_TxISR_8BIT_FIFOEN+0xd4>
  42932. {
  42933. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  42934. 8012698: 687b ldr r3, [r7, #4]
  42935. 801269a: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  42936. 801269e: 87fb strh r3, [r7, #62] @ 0x3e
  42937. 80126a0: e057 b.n 8012752 <UART_TxISR_8BIT_FIFOEN+0xcc>
  42938. {
  42939. if (huart->TxXferCount == 0U)
  42940. 80126a2: 687b ldr r3, [r7, #4]
  42941. 80126a4: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42942. 80126a8: b29b uxth r3, r3
  42943. 80126aa: 2b00 cmp r3, #0
  42944. 80126ac: d133 bne.n 8012716 <UART_TxISR_8BIT_FIFOEN+0x90>
  42945. {
  42946. /* Disable the TX FIFO threshold interrupt */
  42947. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  42948. 80126ae: 687b ldr r3, [r7, #4]
  42949. 80126b0: 681b ldr r3, [r3, #0]
  42950. 80126b2: 3308 adds r3, #8
  42951. 80126b4: 627b str r3, [r7, #36] @ 0x24
  42952. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42953. 80126b6: 6a7b ldr r3, [r7, #36] @ 0x24
  42954. 80126b8: e853 3f00 ldrex r3, [r3]
  42955. 80126bc: 623b str r3, [r7, #32]
  42956. return(result);
  42957. 80126be: 6a3b ldr r3, [r7, #32]
  42958. 80126c0: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  42959. 80126c4: 63bb str r3, [r7, #56] @ 0x38
  42960. 80126c6: 687b ldr r3, [r7, #4]
  42961. 80126c8: 681b ldr r3, [r3, #0]
  42962. 80126ca: 3308 adds r3, #8
  42963. 80126cc: 6bba ldr r2, [r7, #56] @ 0x38
  42964. 80126ce: 633a str r2, [r7, #48] @ 0x30
  42965. 80126d0: 62fb str r3, [r7, #44] @ 0x2c
  42966. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42967. 80126d2: 6af9 ldr r1, [r7, #44] @ 0x2c
  42968. 80126d4: 6b3a ldr r2, [r7, #48] @ 0x30
  42969. 80126d6: e841 2300 strex r3, r2, [r1]
  42970. 80126da: 62bb str r3, [r7, #40] @ 0x28
  42971. return(result);
  42972. 80126dc: 6abb ldr r3, [r7, #40] @ 0x28
  42973. 80126de: 2b00 cmp r3, #0
  42974. 80126e0: d1e5 bne.n 80126ae <UART_TxISR_8BIT_FIFOEN+0x28>
  42975. /* Enable the UART Transmit Complete Interrupt */
  42976. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  42977. 80126e2: 687b ldr r3, [r7, #4]
  42978. 80126e4: 681b ldr r3, [r3, #0]
  42979. 80126e6: 613b str r3, [r7, #16]
  42980. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42981. 80126e8: 693b ldr r3, [r7, #16]
  42982. 80126ea: e853 3f00 ldrex r3, [r3]
  42983. 80126ee: 60fb str r3, [r7, #12]
  42984. return(result);
  42985. 80126f0: 68fb ldr r3, [r7, #12]
  42986. 80126f2: f043 0340 orr.w r3, r3, #64 @ 0x40
  42987. 80126f6: 637b str r3, [r7, #52] @ 0x34
  42988. 80126f8: 687b ldr r3, [r7, #4]
  42989. 80126fa: 681b ldr r3, [r3, #0]
  42990. 80126fc: 461a mov r2, r3
  42991. 80126fe: 6b7b ldr r3, [r7, #52] @ 0x34
  42992. 8012700: 61fb str r3, [r7, #28]
  42993. 8012702: 61ba str r2, [r7, #24]
  42994. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42995. 8012704: 69b9 ldr r1, [r7, #24]
  42996. 8012706: 69fa ldr r2, [r7, #28]
  42997. 8012708: e841 2300 strex r3, r2, [r1]
  42998. 801270c: 617b str r3, [r7, #20]
  42999. return(result);
  43000. 801270e: 697b ldr r3, [r7, #20]
  43001. 8012710: 2b00 cmp r3, #0
  43002. 8012712: d1e6 bne.n 80126e2 <UART_TxISR_8BIT_FIFOEN+0x5c>
  43003. break; /* force exit loop */
  43004. 8012714: e021 b.n 801275a <UART_TxISR_8BIT_FIFOEN+0xd4>
  43005. }
  43006. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  43007. 8012716: 687b ldr r3, [r7, #4]
  43008. 8012718: 681b ldr r3, [r3, #0]
  43009. 801271a: 69db ldr r3, [r3, #28]
  43010. 801271c: f003 0380 and.w r3, r3, #128 @ 0x80
  43011. 8012720: 2b00 cmp r3, #0
  43012. 8012722: d013 beq.n 801274c <UART_TxISR_8BIT_FIFOEN+0xc6>
  43013. {
  43014. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  43015. 8012724: 687b ldr r3, [r7, #4]
  43016. 8012726: 6d1b ldr r3, [r3, #80] @ 0x50
  43017. 8012728: 781a ldrb r2, [r3, #0]
  43018. 801272a: 687b ldr r3, [r7, #4]
  43019. 801272c: 681b ldr r3, [r3, #0]
  43020. 801272e: 629a str r2, [r3, #40] @ 0x28
  43021. huart->pTxBuffPtr++;
  43022. 8012730: 687b ldr r3, [r7, #4]
  43023. 8012732: 6d1b ldr r3, [r3, #80] @ 0x50
  43024. 8012734: 1c5a adds r2, r3, #1
  43025. 8012736: 687b ldr r3, [r7, #4]
  43026. 8012738: 651a str r2, [r3, #80] @ 0x50
  43027. huart->TxXferCount--;
  43028. 801273a: 687b ldr r3, [r7, #4]
  43029. 801273c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43030. 8012740: b29b uxth r3, r3
  43031. 8012742: 3b01 subs r3, #1
  43032. 8012744: b29a uxth r2, r3
  43033. 8012746: 687b ldr r3, [r7, #4]
  43034. 8012748: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43035. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43036. 801274c: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43037. 801274e: 3b01 subs r3, #1
  43038. 8012750: 87fb strh r3, [r7, #62] @ 0x3e
  43039. 8012752: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43040. 8012754: 2b00 cmp r3, #0
  43041. 8012756: d1a4 bne.n 80126a2 <UART_TxISR_8BIT_FIFOEN+0x1c>
  43042. {
  43043. /* Nothing to do */
  43044. }
  43045. }
  43046. }
  43047. }
  43048. 8012758: e7ff b.n 801275a <UART_TxISR_8BIT_FIFOEN+0xd4>
  43049. 801275a: bf00 nop
  43050. 801275c: 3744 adds r7, #68 @ 0x44
  43051. 801275e: 46bd mov sp, r7
  43052. 8012760: f85d 7b04 ldr.w r7, [sp], #4
  43053. 8012764: 4770 bx lr
  43054. 08012766 <UART_TxISR_16BIT_FIFOEN>:
  43055. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43056. * @param huart UART handle.
  43057. * @retval None
  43058. */
  43059. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  43060. {
  43061. 8012766: b480 push {r7}
  43062. 8012768: b091 sub sp, #68 @ 0x44
  43063. 801276a: af00 add r7, sp, #0
  43064. 801276c: 6078 str r0, [r7, #4]
  43065. const uint16_t *tmp;
  43066. uint16_t nb_tx_data;
  43067. /* Check that a Tx process is ongoing */
  43068. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43069. 801276e: 687b ldr r3, [r7, #4]
  43070. 8012770: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43071. 8012774: 2b21 cmp r3, #33 @ 0x21
  43072. 8012776: d165 bne.n 8012844 <UART_TxISR_16BIT_FIFOEN+0xde>
  43073. {
  43074. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43075. 8012778: 687b ldr r3, [r7, #4]
  43076. 801277a: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  43077. 801277e: 87fb strh r3, [r7, #62] @ 0x3e
  43078. 8012780: e05c b.n 801283c <UART_TxISR_16BIT_FIFOEN+0xd6>
  43079. {
  43080. if (huart->TxXferCount == 0U)
  43081. 8012782: 687b ldr r3, [r7, #4]
  43082. 8012784: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43083. 8012788: b29b uxth r3, r3
  43084. 801278a: 2b00 cmp r3, #0
  43085. 801278c: d133 bne.n 80127f6 <UART_TxISR_16BIT_FIFOEN+0x90>
  43086. {
  43087. /* Disable the TX FIFO threshold interrupt */
  43088. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  43089. 801278e: 687b ldr r3, [r7, #4]
  43090. 8012790: 681b ldr r3, [r3, #0]
  43091. 8012792: 3308 adds r3, #8
  43092. 8012794: 623b str r3, [r7, #32]
  43093. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43094. 8012796: 6a3b ldr r3, [r7, #32]
  43095. 8012798: e853 3f00 ldrex r3, [r3]
  43096. 801279c: 61fb str r3, [r7, #28]
  43097. return(result);
  43098. 801279e: 69fb ldr r3, [r7, #28]
  43099. 80127a0: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  43100. 80127a4: 637b str r3, [r7, #52] @ 0x34
  43101. 80127a6: 687b ldr r3, [r7, #4]
  43102. 80127a8: 681b ldr r3, [r3, #0]
  43103. 80127aa: 3308 adds r3, #8
  43104. 80127ac: 6b7a ldr r2, [r7, #52] @ 0x34
  43105. 80127ae: 62fa str r2, [r7, #44] @ 0x2c
  43106. 80127b0: 62bb str r3, [r7, #40] @ 0x28
  43107. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43108. 80127b2: 6ab9 ldr r1, [r7, #40] @ 0x28
  43109. 80127b4: 6afa ldr r2, [r7, #44] @ 0x2c
  43110. 80127b6: e841 2300 strex r3, r2, [r1]
  43111. 80127ba: 627b str r3, [r7, #36] @ 0x24
  43112. return(result);
  43113. 80127bc: 6a7b ldr r3, [r7, #36] @ 0x24
  43114. 80127be: 2b00 cmp r3, #0
  43115. 80127c0: d1e5 bne.n 801278e <UART_TxISR_16BIT_FIFOEN+0x28>
  43116. /* Enable the UART Transmit Complete Interrupt */
  43117. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43118. 80127c2: 687b ldr r3, [r7, #4]
  43119. 80127c4: 681b ldr r3, [r3, #0]
  43120. 80127c6: 60fb str r3, [r7, #12]
  43121. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43122. 80127c8: 68fb ldr r3, [r7, #12]
  43123. 80127ca: e853 3f00 ldrex r3, [r3]
  43124. 80127ce: 60bb str r3, [r7, #8]
  43125. return(result);
  43126. 80127d0: 68bb ldr r3, [r7, #8]
  43127. 80127d2: f043 0340 orr.w r3, r3, #64 @ 0x40
  43128. 80127d6: 633b str r3, [r7, #48] @ 0x30
  43129. 80127d8: 687b ldr r3, [r7, #4]
  43130. 80127da: 681b ldr r3, [r3, #0]
  43131. 80127dc: 461a mov r2, r3
  43132. 80127de: 6b3b ldr r3, [r7, #48] @ 0x30
  43133. 80127e0: 61bb str r3, [r7, #24]
  43134. 80127e2: 617a str r2, [r7, #20]
  43135. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43136. 80127e4: 6979 ldr r1, [r7, #20]
  43137. 80127e6: 69ba ldr r2, [r7, #24]
  43138. 80127e8: e841 2300 strex r3, r2, [r1]
  43139. 80127ec: 613b str r3, [r7, #16]
  43140. return(result);
  43141. 80127ee: 693b ldr r3, [r7, #16]
  43142. 80127f0: 2b00 cmp r3, #0
  43143. 80127f2: d1e6 bne.n 80127c2 <UART_TxISR_16BIT_FIFOEN+0x5c>
  43144. break; /* force exit loop */
  43145. 80127f4: e026 b.n 8012844 <UART_TxISR_16BIT_FIFOEN+0xde>
  43146. }
  43147. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  43148. 80127f6: 687b ldr r3, [r7, #4]
  43149. 80127f8: 681b ldr r3, [r3, #0]
  43150. 80127fa: 69db ldr r3, [r3, #28]
  43151. 80127fc: f003 0380 and.w r3, r3, #128 @ 0x80
  43152. 8012800: 2b00 cmp r3, #0
  43153. 8012802: d018 beq.n 8012836 <UART_TxISR_16BIT_FIFOEN+0xd0>
  43154. {
  43155. tmp = (const uint16_t *) huart->pTxBuffPtr;
  43156. 8012804: 687b ldr r3, [r7, #4]
  43157. 8012806: 6d1b ldr r3, [r3, #80] @ 0x50
  43158. 8012808: 63bb str r3, [r7, #56] @ 0x38
  43159. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  43160. 801280a: 6bbb ldr r3, [r7, #56] @ 0x38
  43161. 801280c: 881b ldrh r3, [r3, #0]
  43162. 801280e: 461a mov r2, r3
  43163. 8012810: 687b ldr r3, [r7, #4]
  43164. 8012812: 681b ldr r3, [r3, #0]
  43165. 8012814: f3c2 0208 ubfx r2, r2, #0, #9
  43166. 8012818: 629a str r2, [r3, #40] @ 0x28
  43167. huart->pTxBuffPtr += 2U;
  43168. 801281a: 687b ldr r3, [r7, #4]
  43169. 801281c: 6d1b ldr r3, [r3, #80] @ 0x50
  43170. 801281e: 1c9a adds r2, r3, #2
  43171. 8012820: 687b ldr r3, [r7, #4]
  43172. 8012822: 651a str r2, [r3, #80] @ 0x50
  43173. huart->TxXferCount--;
  43174. 8012824: 687b ldr r3, [r7, #4]
  43175. 8012826: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43176. 801282a: b29b uxth r3, r3
  43177. 801282c: 3b01 subs r3, #1
  43178. 801282e: b29a uxth r2, r3
  43179. 8012830: 687b ldr r3, [r7, #4]
  43180. 8012832: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43181. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43182. 8012836: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43183. 8012838: 3b01 subs r3, #1
  43184. 801283a: 87fb strh r3, [r7, #62] @ 0x3e
  43185. 801283c: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43186. 801283e: 2b00 cmp r3, #0
  43187. 8012840: d19f bne.n 8012782 <UART_TxISR_16BIT_FIFOEN+0x1c>
  43188. {
  43189. /* Nothing to do */
  43190. }
  43191. }
  43192. }
  43193. }
  43194. 8012842: e7ff b.n 8012844 <UART_TxISR_16BIT_FIFOEN+0xde>
  43195. 8012844: bf00 nop
  43196. 8012846: 3744 adds r7, #68 @ 0x44
  43197. 8012848: 46bd mov sp, r7
  43198. 801284a: f85d 7b04 ldr.w r7, [sp], #4
  43199. 801284e: 4770 bx lr
  43200. 08012850 <UART_EndTransmit_IT>:
  43201. * @param huart pointer to a UART_HandleTypeDef structure that contains
  43202. * the configuration information for the specified UART module.
  43203. * @retval None
  43204. */
  43205. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  43206. {
  43207. 8012850: b580 push {r7, lr}
  43208. 8012852: b088 sub sp, #32
  43209. 8012854: af00 add r7, sp, #0
  43210. 8012856: 6078 str r0, [r7, #4]
  43211. /* Disable the UART Transmit Complete Interrupt */
  43212. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43213. 8012858: 687b ldr r3, [r7, #4]
  43214. 801285a: 681b ldr r3, [r3, #0]
  43215. 801285c: 60fb str r3, [r7, #12]
  43216. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43217. 801285e: 68fb ldr r3, [r7, #12]
  43218. 8012860: e853 3f00 ldrex r3, [r3]
  43219. 8012864: 60bb str r3, [r7, #8]
  43220. return(result);
  43221. 8012866: 68bb ldr r3, [r7, #8]
  43222. 8012868: f023 0340 bic.w r3, r3, #64 @ 0x40
  43223. 801286c: 61fb str r3, [r7, #28]
  43224. 801286e: 687b ldr r3, [r7, #4]
  43225. 8012870: 681b ldr r3, [r3, #0]
  43226. 8012872: 461a mov r2, r3
  43227. 8012874: 69fb ldr r3, [r7, #28]
  43228. 8012876: 61bb str r3, [r7, #24]
  43229. 8012878: 617a str r2, [r7, #20]
  43230. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43231. 801287a: 6979 ldr r1, [r7, #20]
  43232. 801287c: 69ba ldr r2, [r7, #24]
  43233. 801287e: e841 2300 strex r3, r2, [r1]
  43234. 8012882: 613b str r3, [r7, #16]
  43235. return(result);
  43236. 8012884: 693b ldr r3, [r7, #16]
  43237. 8012886: 2b00 cmp r3, #0
  43238. 8012888: d1e6 bne.n 8012858 <UART_EndTransmit_IT+0x8>
  43239. /* Tx process is ended, restore huart->gState to Ready */
  43240. huart->gState = HAL_UART_STATE_READY;
  43241. 801288a: 687b ldr r3, [r7, #4]
  43242. 801288c: 2220 movs r2, #32
  43243. 801288e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43244. /* Cleat TxISR function pointer */
  43245. huart->TxISR = NULL;
  43246. 8012892: 687b ldr r3, [r7, #4]
  43247. 8012894: 2200 movs r2, #0
  43248. 8012896: 679a str r2, [r3, #120] @ 0x78
  43249. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43250. /*Call registered Tx complete callback*/
  43251. huart->TxCpltCallback(huart);
  43252. #else
  43253. /*Call legacy weak Tx complete callback*/
  43254. HAL_UART_TxCpltCallback(huart);
  43255. 8012898: 6878 ldr r0, [r7, #4]
  43256. 801289a: f7f1 fd5f bl 800435c <HAL_UART_TxCpltCallback>
  43257. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43258. }
  43259. 801289e: bf00 nop
  43260. 80128a0: 3720 adds r7, #32
  43261. 80128a2: 46bd mov sp, r7
  43262. 80128a4: bd80 pop {r7, pc}
  43263. ...
  43264. 080128a8 <UART_RxISR_8BIT>:
  43265. * @brief RX interrupt handler for 7 or 8 bits data word length .
  43266. * @param huart UART handle.
  43267. * @retval None
  43268. */
  43269. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  43270. {
  43271. 80128a8: b580 push {r7, lr}
  43272. 80128aa: b09c sub sp, #112 @ 0x70
  43273. 80128ac: af00 add r7, sp, #0
  43274. 80128ae: 6078 str r0, [r7, #4]
  43275. uint16_t uhMask = huart->Mask;
  43276. 80128b0: 687b ldr r3, [r7, #4]
  43277. 80128b2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  43278. 80128b6: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  43279. uint16_t uhdata;
  43280. /* Check that a Rx process is ongoing */
  43281. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  43282. 80128ba: 687b ldr r3, [r7, #4]
  43283. 80128bc: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  43284. 80128c0: 2b22 cmp r3, #34 @ 0x22
  43285. 80128c2: f040 80be bne.w 8012a42 <UART_RxISR_8BIT+0x19a>
  43286. {
  43287. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  43288. 80128c6: 687b ldr r3, [r7, #4]
  43289. 80128c8: 681b ldr r3, [r3, #0]
  43290. 80128ca: 6a5b ldr r3, [r3, #36] @ 0x24
  43291. 80128cc: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  43292. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  43293. 80128d0: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  43294. 80128d4: b2d9 uxtb r1, r3
  43295. 80128d6: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  43296. 80128da: b2da uxtb r2, r3
  43297. 80128dc: 687b ldr r3, [r7, #4]
  43298. 80128de: 6d9b ldr r3, [r3, #88] @ 0x58
  43299. 80128e0: 400a ands r2, r1
  43300. 80128e2: b2d2 uxtb r2, r2
  43301. 80128e4: 701a strb r2, [r3, #0]
  43302. huart->pRxBuffPtr++;
  43303. 80128e6: 687b ldr r3, [r7, #4]
  43304. 80128e8: 6d9b ldr r3, [r3, #88] @ 0x58
  43305. 80128ea: 1c5a adds r2, r3, #1
  43306. 80128ec: 687b ldr r3, [r7, #4]
  43307. 80128ee: 659a str r2, [r3, #88] @ 0x58
  43308. huart->RxXferCount--;
  43309. 80128f0: 687b ldr r3, [r7, #4]
  43310. 80128f2: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43311. 80128f6: b29b uxth r3, r3
  43312. 80128f8: 3b01 subs r3, #1
  43313. 80128fa: b29a uxth r2, r3
  43314. 80128fc: 687b ldr r3, [r7, #4]
  43315. 80128fe: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43316. if (huart->RxXferCount == 0U)
  43317. 8012902: 687b ldr r3, [r7, #4]
  43318. 8012904: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43319. 8012908: b29b uxth r3, r3
  43320. 801290a: 2b00 cmp r3, #0
  43321. 801290c: f040 80a1 bne.w 8012a52 <UART_RxISR_8BIT+0x1aa>
  43322. {
  43323. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  43324. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43325. 8012910: 687b ldr r3, [r7, #4]
  43326. 8012912: 681b ldr r3, [r3, #0]
  43327. 8012914: 64fb str r3, [r7, #76] @ 0x4c
  43328. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43329. 8012916: 6cfb ldr r3, [r7, #76] @ 0x4c
  43330. 8012918: e853 3f00 ldrex r3, [r3]
  43331. 801291c: 64bb str r3, [r7, #72] @ 0x48
  43332. return(result);
  43333. 801291e: 6cbb ldr r3, [r7, #72] @ 0x48
  43334. 8012920: f423 7390 bic.w r3, r3, #288 @ 0x120
  43335. 8012924: 66bb str r3, [r7, #104] @ 0x68
  43336. 8012926: 687b ldr r3, [r7, #4]
  43337. 8012928: 681b ldr r3, [r3, #0]
  43338. 801292a: 461a mov r2, r3
  43339. 801292c: 6ebb ldr r3, [r7, #104] @ 0x68
  43340. 801292e: 65bb str r3, [r7, #88] @ 0x58
  43341. 8012930: 657a str r2, [r7, #84] @ 0x54
  43342. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43343. 8012932: 6d79 ldr r1, [r7, #84] @ 0x54
  43344. 8012934: 6dba ldr r2, [r7, #88] @ 0x58
  43345. 8012936: e841 2300 strex r3, r2, [r1]
  43346. 801293a: 653b str r3, [r7, #80] @ 0x50
  43347. return(result);
  43348. 801293c: 6d3b ldr r3, [r7, #80] @ 0x50
  43349. 801293e: 2b00 cmp r3, #0
  43350. 8012940: d1e6 bne.n 8012910 <UART_RxISR_8BIT+0x68>
  43351. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43352. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43353. 8012942: 687b ldr r3, [r7, #4]
  43354. 8012944: 681b ldr r3, [r3, #0]
  43355. 8012946: 3308 adds r3, #8
  43356. 8012948: 63bb str r3, [r7, #56] @ 0x38
  43357. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43358. 801294a: 6bbb ldr r3, [r7, #56] @ 0x38
  43359. 801294c: e853 3f00 ldrex r3, [r3]
  43360. 8012950: 637b str r3, [r7, #52] @ 0x34
  43361. return(result);
  43362. 8012952: 6b7b ldr r3, [r7, #52] @ 0x34
  43363. 8012954: f023 0301 bic.w r3, r3, #1
  43364. 8012958: 667b str r3, [r7, #100] @ 0x64
  43365. 801295a: 687b ldr r3, [r7, #4]
  43366. 801295c: 681b ldr r3, [r3, #0]
  43367. 801295e: 3308 adds r3, #8
  43368. 8012960: 6e7a ldr r2, [r7, #100] @ 0x64
  43369. 8012962: 647a str r2, [r7, #68] @ 0x44
  43370. 8012964: 643b str r3, [r7, #64] @ 0x40
  43371. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43372. 8012966: 6c39 ldr r1, [r7, #64] @ 0x40
  43373. 8012968: 6c7a ldr r2, [r7, #68] @ 0x44
  43374. 801296a: e841 2300 strex r3, r2, [r1]
  43375. 801296e: 63fb str r3, [r7, #60] @ 0x3c
  43376. return(result);
  43377. 8012970: 6bfb ldr r3, [r7, #60] @ 0x3c
  43378. 8012972: 2b00 cmp r3, #0
  43379. 8012974: d1e5 bne.n 8012942 <UART_RxISR_8BIT+0x9a>
  43380. /* Rx process is completed, restore huart->RxState to Ready */
  43381. huart->RxState = HAL_UART_STATE_READY;
  43382. 8012976: 687b ldr r3, [r7, #4]
  43383. 8012978: 2220 movs r2, #32
  43384. 801297a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43385. /* Clear RxISR function pointer */
  43386. huart->RxISR = NULL;
  43387. 801297e: 687b ldr r3, [r7, #4]
  43388. 8012980: 2200 movs r2, #0
  43389. 8012982: 675a str r2, [r3, #116] @ 0x74
  43390. /* Initialize type of RxEvent to Transfer Complete */
  43391. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43392. 8012984: 687b ldr r3, [r7, #4]
  43393. 8012986: 2200 movs r2, #0
  43394. 8012988: 671a str r2, [r3, #112] @ 0x70
  43395. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  43396. 801298a: 687b ldr r3, [r7, #4]
  43397. 801298c: 681b ldr r3, [r3, #0]
  43398. 801298e: 4a33 ldr r2, [pc, #204] @ (8012a5c <UART_RxISR_8BIT+0x1b4>)
  43399. 8012990: 4293 cmp r3, r2
  43400. 8012992: d01f beq.n 80129d4 <UART_RxISR_8BIT+0x12c>
  43401. {
  43402. /* Check that USART RTOEN bit is set */
  43403. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  43404. 8012994: 687b ldr r3, [r7, #4]
  43405. 8012996: 681b ldr r3, [r3, #0]
  43406. 8012998: 685b ldr r3, [r3, #4]
  43407. 801299a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  43408. 801299e: 2b00 cmp r3, #0
  43409. 80129a0: d018 beq.n 80129d4 <UART_RxISR_8BIT+0x12c>
  43410. {
  43411. /* Enable the UART Receiver Timeout Interrupt */
  43412. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  43413. 80129a2: 687b ldr r3, [r7, #4]
  43414. 80129a4: 681b ldr r3, [r3, #0]
  43415. 80129a6: 627b str r3, [r7, #36] @ 0x24
  43416. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43417. 80129a8: 6a7b ldr r3, [r7, #36] @ 0x24
  43418. 80129aa: e853 3f00 ldrex r3, [r3]
  43419. 80129ae: 623b str r3, [r7, #32]
  43420. return(result);
  43421. 80129b0: 6a3b ldr r3, [r7, #32]
  43422. 80129b2: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  43423. 80129b6: 663b str r3, [r7, #96] @ 0x60
  43424. 80129b8: 687b ldr r3, [r7, #4]
  43425. 80129ba: 681b ldr r3, [r3, #0]
  43426. 80129bc: 461a mov r2, r3
  43427. 80129be: 6e3b ldr r3, [r7, #96] @ 0x60
  43428. 80129c0: 633b str r3, [r7, #48] @ 0x30
  43429. 80129c2: 62fa str r2, [r7, #44] @ 0x2c
  43430. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43431. 80129c4: 6af9 ldr r1, [r7, #44] @ 0x2c
  43432. 80129c6: 6b3a ldr r2, [r7, #48] @ 0x30
  43433. 80129c8: e841 2300 strex r3, r2, [r1]
  43434. 80129cc: 62bb str r3, [r7, #40] @ 0x28
  43435. return(result);
  43436. 80129ce: 6abb ldr r3, [r7, #40] @ 0x28
  43437. 80129d0: 2b00 cmp r3, #0
  43438. 80129d2: d1e6 bne.n 80129a2 <UART_RxISR_8BIT+0xfa>
  43439. }
  43440. }
  43441. /* Check current reception Mode :
  43442. If Reception till IDLE event has been selected : */
  43443. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43444. 80129d4: 687b ldr r3, [r7, #4]
  43445. 80129d6: 6edb ldr r3, [r3, #108] @ 0x6c
  43446. 80129d8: 2b01 cmp r3, #1
  43447. 80129da: d12e bne.n 8012a3a <UART_RxISR_8BIT+0x192>
  43448. {
  43449. /* Set reception type to Standard */
  43450. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43451. 80129dc: 687b ldr r3, [r7, #4]
  43452. 80129de: 2200 movs r2, #0
  43453. 80129e0: 66da str r2, [r3, #108] @ 0x6c
  43454. /* Disable IDLE interrupt */
  43455. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43456. 80129e2: 687b ldr r3, [r7, #4]
  43457. 80129e4: 681b ldr r3, [r3, #0]
  43458. 80129e6: 613b str r3, [r7, #16]
  43459. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43460. 80129e8: 693b ldr r3, [r7, #16]
  43461. 80129ea: e853 3f00 ldrex r3, [r3]
  43462. 80129ee: 60fb str r3, [r7, #12]
  43463. return(result);
  43464. 80129f0: 68fb ldr r3, [r7, #12]
  43465. 80129f2: f023 0310 bic.w r3, r3, #16
  43466. 80129f6: 65fb str r3, [r7, #92] @ 0x5c
  43467. 80129f8: 687b ldr r3, [r7, #4]
  43468. 80129fa: 681b ldr r3, [r3, #0]
  43469. 80129fc: 461a mov r2, r3
  43470. 80129fe: 6dfb ldr r3, [r7, #92] @ 0x5c
  43471. 8012a00: 61fb str r3, [r7, #28]
  43472. 8012a02: 61ba str r2, [r7, #24]
  43473. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43474. 8012a04: 69b9 ldr r1, [r7, #24]
  43475. 8012a06: 69fa ldr r2, [r7, #28]
  43476. 8012a08: e841 2300 strex r3, r2, [r1]
  43477. 8012a0c: 617b str r3, [r7, #20]
  43478. return(result);
  43479. 8012a0e: 697b ldr r3, [r7, #20]
  43480. 8012a10: 2b00 cmp r3, #0
  43481. 8012a12: d1e6 bne.n 80129e2 <UART_RxISR_8BIT+0x13a>
  43482. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  43483. 8012a14: 687b ldr r3, [r7, #4]
  43484. 8012a16: 681b ldr r3, [r3, #0]
  43485. 8012a18: 69db ldr r3, [r3, #28]
  43486. 8012a1a: f003 0310 and.w r3, r3, #16
  43487. 8012a1e: 2b10 cmp r3, #16
  43488. 8012a20: d103 bne.n 8012a2a <UART_RxISR_8BIT+0x182>
  43489. {
  43490. /* Clear IDLE Flag */
  43491. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  43492. 8012a22: 687b ldr r3, [r7, #4]
  43493. 8012a24: 681b ldr r3, [r3, #0]
  43494. 8012a26: 2210 movs r2, #16
  43495. 8012a28: 621a str r2, [r3, #32]
  43496. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43497. /*Call registered Rx Event callback*/
  43498. huart->RxEventCallback(huart, huart->RxXferSize);
  43499. #else
  43500. /*Call legacy weak Rx Event callback*/
  43501. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  43502. 8012a2a: 687b ldr r3, [r7, #4]
  43503. 8012a2c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  43504. 8012a30: 4619 mov r1, r3
  43505. 8012a32: 6878 ldr r0, [r7, #4]
  43506. 8012a34: f7f1 fc68 bl 8004308 <HAL_UARTEx_RxEventCallback>
  43507. else
  43508. {
  43509. /* Clear RXNE interrupt flag */
  43510. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43511. }
  43512. }
  43513. 8012a38: e00b b.n 8012a52 <UART_RxISR_8BIT+0x1aa>
  43514. HAL_UART_RxCpltCallback(huart);
  43515. 8012a3a: 6878 ldr r0, [r7, #4]
  43516. 8012a3c: f7f1 fc5a bl 80042f4 <HAL_UART_RxCpltCallback>
  43517. }
  43518. 8012a40: e007 b.n 8012a52 <UART_RxISR_8BIT+0x1aa>
  43519. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43520. 8012a42: 687b ldr r3, [r7, #4]
  43521. 8012a44: 681b ldr r3, [r3, #0]
  43522. 8012a46: 699a ldr r2, [r3, #24]
  43523. 8012a48: 687b ldr r3, [r7, #4]
  43524. 8012a4a: 681b ldr r3, [r3, #0]
  43525. 8012a4c: f042 0208 orr.w r2, r2, #8
  43526. 8012a50: 619a str r2, [r3, #24]
  43527. }
  43528. 8012a52: bf00 nop
  43529. 8012a54: 3770 adds r7, #112 @ 0x70
  43530. 8012a56: 46bd mov sp, r7
  43531. 8012a58: bd80 pop {r7, pc}
  43532. 8012a5a: bf00 nop
  43533. 8012a5c: 58000c00 .word 0x58000c00
  43534. 08012a60 <UART_RxISR_16BIT>:
  43535. * interruptions have been enabled by HAL_UART_Receive_IT()
  43536. * @param huart UART handle.
  43537. * @retval None
  43538. */
  43539. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  43540. {
  43541. 8012a60: b580 push {r7, lr}
  43542. 8012a62: b09c sub sp, #112 @ 0x70
  43543. 8012a64: af00 add r7, sp, #0
  43544. 8012a66: 6078 str r0, [r7, #4]
  43545. uint16_t *tmp;
  43546. uint16_t uhMask = huart->Mask;
  43547. 8012a68: 687b ldr r3, [r7, #4]
  43548. 8012a6a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  43549. 8012a6e: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  43550. uint16_t uhdata;
  43551. /* Check that a Rx process is ongoing */
  43552. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  43553. 8012a72: 687b ldr r3, [r7, #4]
  43554. 8012a74: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  43555. 8012a78: 2b22 cmp r3, #34 @ 0x22
  43556. 8012a7a: f040 80be bne.w 8012bfa <UART_RxISR_16BIT+0x19a>
  43557. {
  43558. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  43559. 8012a7e: 687b ldr r3, [r7, #4]
  43560. 8012a80: 681b ldr r3, [r3, #0]
  43561. 8012a82: 6a5b ldr r3, [r3, #36] @ 0x24
  43562. 8012a84: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  43563. tmp = (uint16_t *) huart->pRxBuffPtr ;
  43564. 8012a88: 687b ldr r3, [r7, #4]
  43565. 8012a8a: 6d9b ldr r3, [r3, #88] @ 0x58
  43566. 8012a8c: 66bb str r3, [r7, #104] @ 0x68
  43567. *tmp = (uint16_t)(uhdata & uhMask);
  43568. 8012a8e: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  43569. 8012a92: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  43570. 8012a96: 4013 ands r3, r2
  43571. 8012a98: b29a uxth r2, r3
  43572. 8012a9a: 6ebb ldr r3, [r7, #104] @ 0x68
  43573. 8012a9c: 801a strh r2, [r3, #0]
  43574. huart->pRxBuffPtr += 2U;
  43575. 8012a9e: 687b ldr r3, [r7, #4]
  43576. 8012aa0: 6d9b ldr r3, [r3, #88] @ 0x58
  43577. 8012aa2: 1c9a adds r2, r3, #2
  43578. 8012aa4: 687b ldr r3, [r7, #4]
  43579. 8012aa6: 659a str r2, [r3, #88] @ 0x58
  43580. huart->RxXferCount--;
  43581. 8012aa8: 687b ldr r3, [r7, #4]
  43582. 8012aaa: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43583. 8012aae: b29b uxth r3, r3
  43584. 8012ab0: 3b01 subs r3, #1
  43585. 8012ab2: b29a uxth r2, r3
  43586. 8012ab4: 687b ldr r3, [r7, #4]
  43587. 8012ab6: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43588. if (huart->RxXferCount == 0U)
  43589. 8012aba: 687b ldr r3, [r7, #4]
  43590. 8012abc: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43591. 8012ac0: b29b uxth r3, r3
  43592. 8012ac2: 2b00 cmp r3, #0
  43593. 8012ac4: f040 80a1 bne.w 8012c0a <UART_RxISR_16BIT+0x1aa>
  43594. {
  43595. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  43596. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43597. 8012ac8: 687b ldr r3, [r7, #4]
  43598. 8012aca: 681b ldr r3, [r3, #0]
  43599. 8012acc: 64bb str r3, [r7, #72] @ 0x48
  43600. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43601. 8012ace: 6cbb ldr r3, [r7, #72] @ 0x48
  43602. 8012ad0: e853 3f00 ldrex r3, [r3]
  43603. 8012ad4: 647b str r3, [r7, #68] @ 0x44
  43604. return(result);
  43605. 8012ad6: 6c7b ldr r3, [r7, #68] @ 0x44
  43606. 8012ad8: f423 7390 bic.w r3, r3, #288 @ 0x120
  43607. 8012adc: 667b str r3, [r7, #100] @ 0x64
  43608. 8012ade: 687b ldr r3, [r7, #4]
  43609. 8012ae0: 681b ldr r3, [r3, #0]
  43610. 8012ae2: 461a mov r2, r3
  43611. 8012ae4: 6e7b ldr r3, [r7, #100] @ 0x64
  43612. 8012ae6: 657b str r3, [r7, #84] @ 0x54
  43613. 8012ae8: 653a str r2, [r7, #80] @ 0x50
  43614. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43615. 8012aea: 6d39 ldr r1, [r7, #80] @ 0x50
  43616. 8012aec: 6d7a ldr r2, [r7, #84] @ 0x54
  43617. 8012aee: e841 2300 strex r3, r2, [r1]
  43618. 8012af2: 64fb str r3, [r7, #76] @ 0x4c
  43619. return(result);
  43620. 8012af4: 6cfb ldr r3, [r7, #76] @ 0x4c
  43621. 8012af6: 2b00 cmp r3, #0
  43622. 8012af8: d1e6 bne.n 8012ac8 <UART_RxISR_16BIT+0x68>
  43623. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43624. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43625. 8012afa: 687b ldr r3, [r7, #4]
  43626. 8012afc: 681b ldr r3, [r3, #0]
  43627. 8012afe: 3308 adds r3, #8
  43628. 8012b00: 637b str r3, [r7, #52] @ 0x34
  43629. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43630. 8012b02: 6b7b ldr r3, [r7, #52] @ 0x34
  43631. 8012b04: e853 3f00 ldrex r3, [r3]
  43632. 8012b08: 633b str r3, [r7, #48] @ 0x30
  43633. return(result);
  43634. 8012b0a: 6b3b ldr r3, [r7, #48] @ 0x30
  43635. 8012b0c: f023 0301 bic.w r3, r3, #1
  43636. 8012b10: 663b str r3, [r7, #96] @ 0x60
  43637. 8012b12: 687b ldr r3, [r7, #4]
  43638. 8012b14: 681b ldr r3, [r3, #0]
  43639. 8012b16: 3308 adds r3, #8
  43640. 8012b18: 6e3a ldr r2, [r7, #96] @ 0x60
  43641. 8012b1a: 643a str r2, [r7, #64] @ 0x40
  43642. 8012b1c: 63fb str r3, [r7, #60] @ 0x3c
  43643. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43644. 8012b1e: 6bf9 ldr r1, [r7, #60] @ 0x3c
  43645. 8012b20: 6c3a ldr r2, [r7, #64] @ 0x40
  43646. 8012b22: e841 2300 strex r3, r2, [r1]
  43647. 8012b26: 63bb str r3, [r7, #56] @ 0x38
  43648. return(result);
  43649. 8012b28: 6bbb ldr r3, [r7, #56] @ 0x38
  43650. 8012b2a: 2b00 cmp r3, #0
  43651. 8012b2c: d1e5 bne.n 8012afa <UART_RxISR_16BIT+0x9a>
  43652. /* Rx process is completed, restore huart->RxState to Ready */
  43653. huart->RxState = HAL_UART_STATE_READY;
  43654. 8012b2e: 687b ldr r3, [r7, #4]
  43655. 8012b30: 2220 movs r2, #32
  43656. 8012b32: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43657. /* Clear RxISR function pointer */
  43658. huart->RxISR = NULL;
  43659. 8012b36: 687b ldr r3, [r7, #4]
  43660. 8012b38: 2200 movs r2, #0
  43661. 8012b3a: 675a str r2, [r3, #116] @ 0x74
  43662. /* Initialize type of RxEvent to Transfer Complete */
  43663. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43664. 8012b3c: 687b ldr r3, [r7, #4]
  43665. 8012b3e: 2200 movs r2, #0
  43666. 8012b40: 671a str r2, [r3, #112] @ 0x70
  43667. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  43668. 8012b42: 687b ldr r3, [r7, #4]
  43669. 8012b44: 681b ldr r3, [r3, #0]
  43670. 8012b46: 4a33 ldr r2, [pc, #204] @ (8012c14 <UART_RxISR_16BIT+0x1b4>)
  43671. 8012b48: 4293 cmp r3, r2
  43672. 8012b4a: d01f beq.n 8012b8c <UART_RxISR_16BIT+0x12c>
  43673. {
  43674. /* Check that USART RTOEN bit is set */
  43675. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  43676. 8012b4c: 687b ldr r3, [r7, #4]
  43677. 8012b4e: 681b ldr r3, [r3, #0]
  43678. 8012b50: 685b ldr r3, [r3, #4]
  43679. 8012b52: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  43680. 8012b56: 2b00 cmp r3, #0
  43681. 8012b58: d018 beq.n 8012b8c <UART_RxISR_16BIT+0x12c>
  43682. {
  43683. /* Enable the UART Receiver Timeout Interrupt */
  43684. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  43685. 8012b5a: 687b ldr r3, [r7, #4]
  43686. 8012b5c: 681b ldr r3, [r3, #0]
  43687. 8012b5e: 623b str r3, [r7, #32]
  43688. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43689. 8012b60: 6a3b ldr r3, [r7, #32]
  43690. 8012b62: e853 3f00 ldrex r3, [r3]
  43691. 8012b66: 61fb str r3, [r7, #28]
  43692. return(result);
  43693. 8012b68: 69fb ldr r3, [r7, #28]
  43694. 8012b6a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  43695. 8012b6e: 65fb str r3, [r7, #92] @ 0x5c
  43696. 8012b70: 687b ldr r3, [r7, #4]
  43697. 8012b72: 681b ldr r3, [r3, #0]
  43698. 8012b74: 461a mov r2, r3
  43699. 8012b76: 6dfb ldr r3, [r7, #92] @ 0x5c
  43700. 8012b78: 62fb str r3, [r7, #44] @ 0x2c
  43701. 8012b7a: 62ba str r2, [r7, #40] @ 0x28
  43702. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43703. 8012b7c: 6ab9 ldr r1, [r7, #40] @ 0x28
  43704. 8012b7e: 6afa ldr r2, [r7, #44] @ 0x2c
  43705. 8012b80: e841 2300 strex r3, r2, [r1]
  43706. 8012b84: 627b str r3, [r7, #36] @ 0x24
  43707. return(result);
  43708. 8012b86: 6a7b ldr r3, [r7, #36] @ 0x24
  43709. 8012b88: 2b00 cmp r3, #0
  43710. 8012b8a: d1e6 bne.n 8012b5a <UART_RxISR_16BIT+0xfa>
  43711. }
  43712. }
  43713. /* Check current reception Mode :
  43714. If Reception till IDLE event has been selected : */
  43715. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43716. 8012b8c: 687b ldr r3, [r7, #4]
  43717. 8012b8e: 6edb ldr r3, [r3, #108] @ 0x6c
  43718. 8012b90: 2b01 cmp r3, #1
  43719. 8012b92: d12e bne.n 8012bf2 <UART_RxISR_16BIT+0x192>
  43720. {
  43721. /* Set reception type to Standard */
  43722. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43723. 8012b94: 687b ldr r3, [r7, #4]
  43724. 8012b96: 2200 movs r2, #0
  43725. 8012b98: 66da str r2, [r3, #108] @ 0x6c
  43726. /* Disable IDLE interrupt */
  43727. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43728. 8012b9a: 687b ldr r3, [r7, #4]
  43729. 8012b9c: 681b ldr r3, [r3, #0]
  43730. 8012b9e: 60fb str r3, [r7, #12]
  43731. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43732. 8012ba0: 68fb ldr r3, [r7, #12]
  43733. 8012ba2: e853 3f00 ldrex r3, [r3]
  43734. 8012ba6: 60bb str r3, [r7, #8]
  43735. return(result);
  43736. 8012ba8: 68bb ldr r3, [r7, #8]
  43737. 8012baa: f023 0310 bic.w r3, r3, #16
  43738. 8012bae: 65bb str r3, [r7, #88] @ 0x58
  43739. 8012bb0: 687b ldr r3, [r7, #4]
  43740. 8012bb2: 681b ldr r3, [r3, #0]
  43741. 8012bb4: 461a mov r2, r3
  43742. 8012bb6: 6dbb ldr r3, [r7, #88] @ 0x58
  43743. 8012bb8: 61bb str r3, [r7, #24]
  43744. 8012bba: 617a str r2, [r7, #20]
  43745. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43746. 8012bbc: 6979 ldr r1, [r7, #20]
  43747. 8012bbe: 69ba ldr r2, [r7, #24]
  43748. 8012bc0: e841 2300 strex r3, r2, [r1]
  43749. 8012bc4: 613b str r3, [r7, #16]
  43750. return(result);
  43751. 8012bc6: 693b ldr r3, [r7, #16]
  43752. 8012bc8: 2b00 cmp r3, #0
  43753. 8012bca: d1e6 bne.n 8012b9a <UART_RxISR_16BIT+0x13a>
  43754. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  43755. 8012bcc: 687b ldr r3, [r7, #4]
  43756. 8012bce: 681b ldr r3, [r3, #0]
  43757. 8012bd0: 69db ldr r3, [r3, #28]
  43758. 8012bd2: f003 0310 and.w r3, r3, #16
  43759. 8012bd6: 2b10 cmp r3, #16
  43760. 8012bd8: d103 bne.n 8012be2 <UART_RxISR_16BIT+0x182>
  43761. {
  43762. /* Clear IDLE Flag */
  43763. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  43764. 8012bda: 687b ldr r3, [r7, #4]
  43765. 8012bdc: 681b ldr r3, [r3, #0]
  43766. 8012bde: 2210 movs r2, #16
  43767. 8012be0: 621a str r2, [r3, #32]
  43768. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43769. /*Call registered Rx Event callback*/
  43770. huart->RxEventCallback(huart, huart->RxXferSize);
  43771. #else
  43772. /*Call legacy weak Rx Event callback*/
  43773. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  43774. 8012be2: 687b ldr r3, [r7, #4]
  43775. 8012be4: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  43776. 8012be8: 4619 mov r1, r3
  43777. 8012bea: 6878 ldr r0, [r7, #4]
  43778. 8012bec: f7f1 fb8c bl 8004308 <HAL_UARTEx_RxEventCallback>
  43779. else
  43780. {
  43781. /* Clear RXNE interrupt flag */
  43782. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43783. }
  43784. }
  43785. 8012bf0: e00b b.n 8012c0a <UART_RxISR_16BIT+0x1aa>
  43786. HAL_UART_RxCpltCallback(huart);
  43787. 8012bf2: 6878 ldr r0, [r7, #4]
  43788. 8012bf4: f7f1 fb7e bl 80042f4 <HAL_UART_RxCpltCallback>
  43789. }
  43790. 8012bf8: e007 b.n 8012c0a <UART_RxISR_16BIT+0x1aa>
  43791. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43792. 8012bfa: 687b ldr r3, [r7, #4]
  43793. 8012bfc: 681b ldr r3, [r3, #0]
  43794. 8012bfe: 699a ldr r2, [r3, #24]
  43795. 8012c00: 687b ldr r3, [r7, #4]
  43796. 8012c02: 681b ldr r3, [r3, #0]
  43797. 8012c04: f042 0208 orr.w r2, r2, #8
  43798. 8012c08: 619a str r2, [r3, #24]
  43799. }
  43800. 8012c0a: bf00 nop
  43801. 8012c0c: 3770 adds r7, #112 @ 0x70
  43802. 8012c0e: 46bd mov sp, r7
  43803. 8012c10: bd80 pop {r7, pc}
  43804. 8012c12: bf00 nop
  43805. 8012c14: 58000c00 .word 0x58000c00
  43806. 08012c18 <UART_RxISR_8BIT_FIFOEN>:
  43807. * interruptions have been enabled by HAL_UART_Receive_IT()
  43808. * @param huart UART handle.
  43809. * @retval None
  43810. */
  43811. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  43812. {
  43813. 8012c18: b580 push {r7, lr}
  43814. 8012c1a: b0ac sub sp, #176 @ 0xb0
  43815. 8012c1c: af00 add r7, sp, #0
  43816. 8012c1e: 6078 str r0, [r7, #4]
  43817. uint16_t uhMask = huart->Mask;
  43818. 8012c20: 687b ldr r3, [r7, #4]
  43819. 8012c22: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  43820. 8012c26: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  43821. uint16_t uhdata;
  43822. uint16_t nb_rx_data;
  43823. uint16_t rxdatacount;
  43824. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  43825. 8012c2a: 687b ldr r3, [r7, #4]
  43826. 8012c2c: 681b ldr r3, [r3, #0]
  43827. 8012c2e: 69db ldr r3, [r3, #28]
  43828. 8012c30: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  43829. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  43830. 8012c34: 687b ldr r3, [r7, #4]
  43831. 8012c36: 681b ldr r3, [r3, #0]
  43832. 8012c38: 681b ldr r3, [r3, #0]
  43833. 8012c3a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  43834. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  43835. 8012c3e: 687b ldr r3, [r7, #4]
  43836. 8012c40: 681b ldr r3, [r3, #0]
  43837. 8012c42: 689b ldr r3, [r3, #8]
  43838. 8012c44: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  43839. /* Check that a Rx process is ongoing */
  43840. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  43841. 8012c48: 687b ldr r3, [r7, #4]
  43842. 8012c4a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  43843. 8012c4e: 2b22 cmp r3, #34 @ 0x22
  43844. 8012c50: f040 8180 bne.w 8012f54 <UART_RxISR_8BIT_FIFOEN+0x33c>
  43845. {
  43846. nb_rx_data = huart->NbRxDataToProcess;
  43847. 8012c54: 687b ldr r3, [r7, #4]
  43848. 8012c56: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  43849. 8012c5a: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  43850. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  43851. 8012c5e: e123 b.n 8012ea8 <UART_RxISR_8BIT_FIFOEN+0x290>
  43852. {
  43853. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  43854. 8012c60: 687b ldr r3, [r7, #4]
  43855. 8012c62: 681b ldr r3, [r3, #0]
  43856. 8012c64: 6a5b ldr r3, [r3, #36] @ 0x24
  43857. 8012c66: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  43858. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  43859. 8012c6a: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  43860. 8012c6e: b2d9 uxtb r1, r3
  43861. 8012c70: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  43862. 8012c74: b2da uxtb r2, r3
  43863. 8012c76: 687b ldr r3, [r7, #4]
  43864. 8012c78: 6d9b ldr r3, [r3, #88] @ 0x58
  43865. 8012c7a: 400a ands r2, r1
  43866. 8012c7c: b2d2 uxtb r2, r2
  43867. 8012c7e: 701a strb r2, [r3, #0]
  43868. huart->pRxBuffPtr++;
  43869. 8012c80: 687b ldr r3, [r7, #4]
  43870. 8012c82: 6d9b ldr r3, [r3, #88] @ 0x58
  43871. 8012c84: 1c5a adds r2, r3, #1
  43872. 8012c86: 687b ldr r3, [r7, #4]
  43873. 8012c88: 659a str r2, [r3, #88] @ 0x58
  43874. huart->RxXferCount--;
  43875. 8012c8a: 687b ldr r3, [r7, #4]
  43876. 8012c8c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43877. 8012c90: b29b uxth r3, r3
  43878. 8012c92: 3b01 subs r3, #1
  43879. 8012c94: b29a uxth r2, r3
  43880. 8012c96: 687b ldr r3, [r7, #4]
  43881. 8012c98: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43882. isrflags = READ_REG(huart->Instance->ISR);
  43883. 8012c9c: 687b ldr r3, [r7, #4]
  43884. 8012c9e: 681b ldr r3, [r3, #0]
  43885. 8012ca0: 69db ldr r3, [r3, #28]
  43886. 8012ca2: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  43887. /* If some non blocking errors occurred */
  43888. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  43889. 8012ca6: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  43890. 8012caa: f003 0307 and.w r3, r3, #7
  43891. 8012cae: 2b00 cmp r3, #0
  43892. 8012cb0: d053 beq.n 8012d5a <UART_RxISR_8BIT_FIFOEN+0x142>
  43893. {
  43894. /* UART parity error interrupt occurred -------------------------------------*/
  43895. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  43896. 8012cb2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  43897. 8012cb6: f003 0301 and.w r3, r3, #1
  43898. 8012cba: 2b00 cmp r3, #0
  43899. 8012cbc: d011 beq.n 8012ce2 <UART_RxISR_8BIT_FIFOEN+0xca>
  43900. 8012cbe: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  43901. 8012cc2: f403 7380 and.w r3, r3, #256 @ 0x100
  43902. 8012cc6: 2b00 cmp r3, #0
  43903. 8012cc8: d00b beq.n 8012ce2 <UART_RxISR_8BIT_FIFOEN+0xca>
  43904. {
  43905. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  43906. 8012cca: 687b ldr r3, [r7, #4]
  43907. 8012ccc: 681b ldr r3, [r3, #0]
  43908. 8012cce: 2201 movs r2, #1
  43909. 8012cd0: 621a str r2, [r3, #32]
  43910. huart->ErrorCode |= HAL_UART_ERROR_PE;
  43911. 8012cd2: 687b ldr r3, [r7, #4]
  43912. 8012cd4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  43913. 8012cd8: f043 0201 orr.w r2, r3, #1
  43914. 8012cdc: 687b ldr r3, [r7, #4]
  43915. 8012cde: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43916. }
  43917. /* UART frame error interrupt occurred --------------------------------------*/
  43918. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  43919. 8012ce2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  43920. 8012ce6: f003 0302 and.w r3, r3, #2
  43921. 8012cea: 2b00 cmp r3, #0
  43922. 8012cec: d011 beq.n 8012d12 <UART_RxISR_8BIT_FIFOEN+0xfa>
  43923. 8012cee: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  43924. 8012cf2: f003 0301 and.w r3, r3, #1
  43925. 8012cf6: 2b00 cmp r3, #0
  43926. 8012cf8: d00b beq.n 8012d12 <UART_RxISR_8BIT_FIFOEN+0xfa>
  43927. {
  43928. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  43929. 8012cfa: 687b ldr r3, [r7, #4]
  43930. 8012cfc: 681b ldr r3, [r3, #0]
  43931. 8012cfe: 2202 movs r2, #2
  43932. 8012d00: 621a str r2, [r3, #32]
  43933. huart->ErrorCode |= HAL_UART_ERROR_FE;
  43934. 8012d02: 687b ldr r3, [r7, #4]
  43935. 8012d04: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  43936. 8012d08: f043 0204 orr.w r2, r3, #4
  43937. 8012d0c: 687b ldr r3, [r7, #4]
  43938. 8012d0e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43939. }
  43940. /* UART noise error interrupt occurred --------------------------------------*/
  43941. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  43942. 8012d12: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  43943. 8012d16: f003 0304 and.w r3, r3, #4
  43944. 8012d1a: 2b00 cmp r3, #0
  43945. 8012d1c: d011 beq.n 8012d42 <UART_RxISR_8BIT_FIFOEN+0x12a>
  43946. 8012d1e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  43947. 8012d22: f003 0301 and.w r3, r3, #1
  43948. 8012d26: 2b00 cmp r3, #0
  43949. 8012d28: d00b beq.n 8012d42 <UART_RxISR_8BIT_FIFOEN+0x12a>
  43950. {
  43951. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  43952. 8012d2a: 687b ldr r3, [r7, #4]
  43953. 8012d2c: 681b ldr r3, [r3, #0]
  43954. 8012d2e: 2204 movs r2, #4
  43955. 8012d30: 621a str r2, [r3, #32]
  43956. huart->ErrorCode |= HAL_UART_ERROR_NE;
  43957. 8012d32: 687b ldr r3, [r7, #4]
  43958. 8012d34: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  43959. 8012d38: f043 0202 orr.w r2, r3, #2
  43960. 8012d3c: 687b ldr r3, [r7, #4]
  43961. 8012d3e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43962. }
  43963. /* Call UART Error Call back function if need be ----------------------------*/
  43964. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  43965. 8012d42: 687b ldr r3, [r7, #4]
  43966. 8012d44: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  43967. 8012d48: 2b00 cmp r3, #0
  43968. 8012d4a: d006 beq.n 8012d5a <UART_RxISR_8BIT_FIFOEN+0x142>
  43969. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43970. /*Call registered error callback*/
  43971. huart->ErrorCallback(huart);
  43972. #else
  43973. /*Call legacy weak error callback*/
  43974. HAL_UART_ErrorCallback(huart);
  43975. 8012d4c: 6878 ldr r0, [r7, #4]
  43976. 8012d4e: f7fe fb13 bl 8011378 <HAL_UART_ErrorCallback>
  43977. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43978. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43979. 8012d52: 687b ldr r3, [r7, #4]
  43980. 8012d54: 2200 movs r2, #0
  43981. 8012d56: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43982. }
  43983. }
  43984. if (huart->RxXferCount == 0U)
  43985. 8012d5a: 687b ldr r3, [r7, #4]
  43986. 8012d5c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43987. 8012d60: b29b uxth r3, r3
  43988. 8012d62: 2b00 cmp r3, #0
  43989. 8012d64: f040 80a0 bne.w 8012ea8 <UART_RxISR_8BIT_FIFOEN+0x290>
  43990. {
  43991. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  43992. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  43993. 8012d68: 687b ldr r3, [r7, #4]
  43994. 8012d6a: 681b ldr r3, [r3, #0]
  43995. 8012d6c: 673b str r3, [r7, #112] @ 0x70
  43996. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43997. 8012d6e: 6f3b ldr r3, [r7, #112] @ 0x70
  43998. 8012d70: e853 3f00 ldrex r3, [r3]
  43999. 8012d74: 66fb str r3, [r7, #108] @ 0x6c
  44000. return(result);
  44001. 8012d76: 6efb ldr r3, [r7, #108] @ 0x6c
  44002. 8012d78: f423 7380 bic.w r3, r3, #256 @ 0x100
  44003. 8012d7c: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  44004. 8012d80: 687b ldr r3, [r7, #4]
  44005. 8012d82: 681b ldr r3, [r3, #0]
  44006. 8012d84: 461a mov r2, r3
  44007. 8012d86: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  44008. 8012d8a: 67fb str r3, [r7, #124] @ 0x7c
  44009. 8012d8c: 67ba str r2, [r7, #120] @ 0x78
  44010. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44011. 8012d8e: 6fb9 ldr r1, [r7, #120] @ 0x78
  44012. 8012d90: 6ffa ldr r2, [r7, #124] @ 0x7c
  44013. 8012d92: e841 2300 strex r3, r2, [r1]
  44014. 8012d96: 677b str r3, [r7, #116] @ 0x74
  44015. return(result);
  44016. 8012d98: 6f7b ldr r3, [r7, #116] @ 0x74
  44017. 8012d9a: 2b00 cmp r3, #0
  44018. 8012d9c: d1e4 bne.n 8012d68 <UART_RxISR_8BIT_FIFOEN+0x150>
  44019. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  44020. and RX FIFO Threshold interrupt */
  44021. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  44022. 8012d9e: 687b ldr r3, [r7, #4]
  44023. 8012da0: 681b ldr r3, [r3, #0]
  44024. 8012da2: 3308 adds r3, #8
  44025. 8012da4: 65fb str r3, [r7, #92] @ 0x5c
  44026. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44027. 8012da6: 6dfb ldr r3, [r7, #92] @ 0x5c
  44028. 8012da8: e853 3f00 ldrex r3, [r3]
  44029. 8012dac: 65bb str r3, [r7, #88] @ 0x58
  44030. return(result);
  44031. 8012dae: 6dba ldr r2, [r7, #88] @ 0x58
  44032. 8012db0: 4b6e ldr r3, [pc, #440] @ (8012f6c <UART_RxISR_8BIT_FIFOEN+0x354>)
  44033. 8012db2: 4013 ands r3, r2
  44034. 8012db4: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  44035. 8012db8: 687b ldr r3, [r7, #4]
  44036. 8012dba: 681b ldr r3, [r3, #0]
  44037. 8012dbc: 3308 adds r3, #8
  44038. 8012dbe: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  44039. 8012dc2: 66ba str r2, [r7, #104] @ 0x68
  44040. 8012dc4: 667b str r3, [r7, #100] @ 0x64
  44041. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44042. 8012dc6: 6e79 ldr r1, [r7, #100] @ 0x64
  44043. 8012dc8: 6eba ldr r2, [r7, #104] @ 0x68
  44044. 8012dca: e841 2300 strex r3, r2, [r1]
  44045. 8012dce: 663b str r3, [r7, #96] @ 0x60
  44046. return(result);
  44047. 8012dd0: 6e3b ldr r3, [r7, #96] @ 0x60
  44048. 8012dd2: 2b00 cmp r3, #0
  44049. 8012dd4: d1e3 bne.n 8012d9e <UART_RxISR_8BIT_FIFOEN+0x186>
  44050. /* Rx process is completed, restore huart->RxState to Ready */
  44051. huart->RxState = HAL_UART_STATE_READY;
  44052. 8012dd6: 687b ldr r3, [r7, #4]
  44053. 8012dd8: 2220 movs r2, #32
  44054. 8012dda: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44055. /* Clear RxISR function pointer */
  44056. huart->RxISR = NULL;
  44057. 8012dde: 687b ldr r3, [r7, #4]
  44058. 8012de0: 2200 movs r2, #0
  44059. 8012de2: 675a str r2, [r3, #116] @ 0x74
  44060. /* Initialize type of RxEvent to Transfer Complete */
  44061. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44062. 8012de4: 687b ldr r3, [r7, #4]
  44063. 8012de6: 2200 movs r2, #0
  44064. 8012de8: 671a str r2, [r3, #112] @ 0x70
  44065. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44066. 8012dea: 687b ldr r3, [r7, #4]
  44067. 8012dec: 681b ldr r3, [r3, #0]
  44068. 8012dee: 4a60 ldr r2, [pc, #384] @ (8012f70 <UART_RxISR_8BIT_FIFOEN+0x358>)
  44069. 8012df0: 4293 cmp r3, r2
  44070. 8012df2: d021 beq.n 8012e38 <UART_RxISR_8BIT_FIFOEN+0x220>
  44071. {
  44072. /* Check that USART RTOEN bit is set */
  44073. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44074. 8012df4: 687b ldr r3, [r7, #4]
  44075. 8012df6: 681b ldr r3, [r3, #0]
  44076. 8012df8: 685b ldr r3, [r3, #4]
  44077. 8012dfa: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44078. 8012dfe: 2b00 cmp r3, #0
  44079. 8012e00: d01a beq.n 8012e38 <UART_RxISR_8BIT_FIFOEN+0x220>
  44080. {
  44081. /* Enable the UART Receiver Timeout Interrupt */
  44082. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44083. 8012e02: 687b ldr r3, [r7, #4]
  44084. 8012e04: 681b ldr r3, [r3, #0]
  44085. 8012e06: 64bb str r3, [r7, #72] @ 0x48
  44086. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44087. 8012e08: 6cbb ldr r3, [r7, #72] @ 0x48
  44088. 8012e0a: e853 3f00 ldrex r3, [r3]
  44089. 8012e0e: 647b str r3, [r7, #68] @ 0x44
  44090. return(result);
  44091. 8012e10: 6c7b ldr r3, [r7, #68] @ 0x44
  44092. 8012e12: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44093. 8012e16: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  44094. 8012e1a: 687b ldr r3, [r7, #4]
  44095. 8012e1c: 681b ldr r3, [r3, #0]
  44096. 8012e1e: 461a mov r2, r3
  44097. 8012e20: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  44098. 8012e24: 657b str r3, [r7, #84] @ 0x54
  44099. 8012e26: 653a str r2, [r7, #80] @ 0x50
  44100. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44101. 8012e28: 6d39 ldr r1, [r7, #80] @ 0x50
  44102. 8012e2a: 6d7a ldr r2, [r7, #84] @ 0x54
  44103. 8012e2c: e841 2300 strex r3, r2, [r1]
  44104. 8012e30: 64fb str r3, [r7, #76] @ 0x4c
  44105. return(result);
  44106. 8012e32: 6cfb ldr r3, [r7, #76] @ 0x4c
  44107. 8012e34: 2b00 cmp r3, #0
  44108. 8012e36: d1e4 bne.n 8012e02 <UART_RxISR_8BIT_FIFOEN+0x1ea>
  44109. }
  44110. }
  44111. /* Check current reception Mode :
  44112. If Reception till IDLE event has been selected : */
  44113. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44114. 8012e38: 687b ldr r3, [r7, #4]
  44115. 8012e3a: 6edb ldr r3, [r3, #108] @ 0x6c
  44116. 8012e3c: 2b01 cmp r3, #1
  44117. 8012e3e: d130 bne.n 8012ea2 <UART_RxISR_8BIT_FIFOEN+0x28a>
  44118. {
  44119. /* Set reception type to Standard */
  44120. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44121. 8012e40: 687b ldr r3, [r7, #4]
  44122. 8012e42: 2200 movs r2, #0
  44123. 8012e44: 66da str r2, [r3, #108] @ 0x6c
  44124. /* Disable IDLE interrupt */
  44125. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44126. 8012e46: 687b ldr r3, [r7, #4]
  44127. 8012e48: 681b ldr r3, [r3, #0]
  44128. 8012e4a: 637b str r3, [r7, #52] @ 0x34
  44129. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44130. 8012e4c: 6b7b ldr r3, [r7, #52] @ 0x34
  44131. 8012e4e: e853 3f00 ldrex r3, [r3]
  44132. 8012e52: 633b str r3, [r7, #48] @ 0x30
  44133. return(result);
  44134. 8012e54: 6b3b ldr r3, [r7, #48] @ 0x30
  44135. 8012e56: f023 0310 bic.w r3, r3, #16
  44136. 8012e5a: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  44137. 8012e5e: 687b ldr r3, [r7, #4]
  44138. 8012e60: 681b ldr r3, [r3, #0]
  44139. 8012e62: 461a mov r2, r3
  44140. 8012e64: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  44141. 8012e68: 643b str r3, [r7, #64] @ 0x40
  44142. 8012e6a: 63fa str r2, [r7, #60] @ 0x3c
  44143. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44144. 8012e6c: 6bf9 ldr r1, [r7, #60] @ 0x3c
  44145. 8012e6e: 6c3a ldr r2, [r7, #64] @ 0x40
  44146. 8012e70: e841 2300 strex r3, r2, [r1]
  44147. 8012e74: 63bb str r3, [r7, #56] @ 0x38
  44148. return(result);
  44149. 8012e76: 6bbb ldr r3, [r7, #56] @ 0x38
  44150. 8012e78: 2b00 cmp r3, #0
  44151. 8012e7a: d1e4 bne.n 8012e46 <UART_RxISR_8BIT_FIFOEN+0x22e>
  44152. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44153. 8012e7c: 687b ldr r3, [r7, #4]
  44154. 8012e7e: 681b ldr r3, [r3, #0]
  44155. 8012e80: 69db ldr r3, [r3, #28]
  44156. 8012e82: f003 0310 and.w r3, r3, #16
  44157. 8012e86: 2b10 cmp r3, #16
  44158. 8012e88: d103 bne.n 8012e92 <UART_RxISR_8BIT_FIFOEN+0x27a>
  44159. {
  44160. /* Clear IDLE Flag */
  44161. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44162. 8012e8a: 687b ldr r3, [r7, #4]
  44163. 8012e8c: 681b ldr r3, [r3, #0]
  44164. 8012e8e: 2210 movs r2, #16
  44165. 8012e90: 621a str r2, [r3, #32]
  44166. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44167. /*Call registered Rx Event callback*/
  44168. huart->RxEventCallback(huart, huart->RxXferSize);
  44169. #else
  44170. /*Call legacy weak Rx Event callback*/
  44171. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44172. 8012e92: 687b ldr r3, [r7, #4]
  44173. 8012e94: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44174. 8012e98: 4619 mov r1, r3
  44175. 8012e9a: 6878 ldr r0, [r7, #4]
  44176. 8012e9c: f7f1 fa34 bl 8004308 <HAL_UARTEx_RxEventCallback>
  44177. 8012ea0: e002 b.n 8012ea8 <UART_RxISR_8BIT_FIFOEN+0x290>
  44178. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44179. /*Call registered Rx complete callback*/
  44180. huart->RxCpltCallback(huart);
  44181. #else
  44182. /*Call legacy weak Rx complete callback*/
  44183. HAL_UART_RxCpltCallback(huart);
  44184. 8012ea2: 6878 ldr r0, [r7, #4]
  44185. 8012ea4: f7f1 fa26 bl 80042f4 <HAL_UART_RxCpltCallback>
  44186. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44187. 8012ea8: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  44188. 8012eac: 2b00 cmp r3, #0
  44189. 8012eae: d006 beq.n 8012ebe <UART_RxISR_8BIT_FIFOEN+0x2a6>
  44190. 8012eb0: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44191. 8012eb4: f003 0320 and.w r3, r3, #32
  44192. 8012eb8: 2b00 cmp r3, #0
  44193. 8012eba: f47f aed1 bne.w 8012c60 <UART_RxISR_8BIT_FIFOEN+0x48>
  44194. /* When remaining number of bytes to receive is less than the RX FIFO
  44195. threshold, next incoming frames are processed as if FIFO mode was
  44196. disabled (i.e. one interrupt per received frame).
  44197. */
  44198. rxdatacount = huart->RxXferCount;
  44199. 8012ebe: 687b ldr r3, [r7, #4]
  44200. 8012ec0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44201. 8012ec4: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  44202. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  44203. 8012ec8: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  44204. 8012ecc: 2b00 cmp r3, #0
  44205. 8012ece: d049 beq.n 8012f64 <UART_RxISR_8BIT_FIFOEN+0x34c>
  44206. 8012ed0: 687b ldr r3, [r7, #4]
  44207. 8012ed2: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44208. 8012ed6: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  44209. 8012eda: 429a cmp r2, r3
  44210. 8012edc: d242 bcs.n 8012f64 <UART_RxISR_8BIT_FIFOEN+0x34c>
  44211. {
  44212. /* Disable the UART RXFT interrupt*/
  44213. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  44214. 8012ede: 687b ldr r3, [r7, #4]
  44215. 8012ee0: 681b ldr r3, [r3, #0]
  44216. 8012ee2: 3308 adds r3, #8
  44217. 8012ee4: 623b str r3, [r7, #32]
  44218. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44219. 8012ee6: 6a3b ldr r3, [r7, #32]
  44220. 8012ee8: e853 3f00 ldrex r3, [r3]
  44221. 8012eec: 61fb str r3, [r7, #28]
  44222. return(result);
  44223. 8012eee: 69fb ldr r3, [r7, #28]
  44224. 8012ef0: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  44225. 8012ef4: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  44226. 8012ef8: 687b ldr r3, [r7, #4]
  44227. 8012efa: 681b ldr r3, [r3, #0]
  44228. 8012efc: 3308 adds r3, #8
  44229. 8012efe: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  44230. 8012f02: 62fa str r2, [r7, #44] @ 0x2c
  44231. 8012f04: 62bb str r3, [r7, #40] @ 0x28
  44232. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44233. 8012f06: 6ab9 ldr r1, [r7, #40] @ 0x28
  44234. 8012f08: 6afa ldr r2, [r7, #44] @ 0x2c
  44235. 8012f0a: e841 2300 strex r3, r2, [r1]
  44236. 8012f0e: 627b str r3, [r7, #36] @ 0x24
  44237. return(result);
  44238. 8012f10: 6a7b ldr r3, [r7, #36] @ 0x24
  44239. 8012f12: 2b00 cmp r3, #0
  44240. 8012f14: d1e3 bne.n 8012ede <UART_RxISR_8BIT_FIFOEN+0x2c6>
  44241. /* Update the RxISR function pointer */
  44242. huart->RxISR = UART_RxISR_8BIT;
  44243. 8012f16: 687b ldr r3, [r7, #4]
  44244. 8012f18: 4a16 ldr r2, [pc, #88] @ (8012f74 <UART_RxISR_8BIT_FIFOEN+0x35c>)
  44245. 8012f1a: 675a str r2, [r3, #116] @ 0x74
  44246. /* Enable the UART Data Register Not Empty interrupt */
  44247. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  44248. 8012f1c: 687b ldr r3, [r7, #4]
  44249. 8012f1e: 681b ldr r3, [r3, #0]
  44250. 8012f20: 60fb str r3, [r7, #12]
  44251. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44252. 8012f22: 68fb ldr r3, [r7, #12]
  44253. 8012f24: e853 3f00 ldrex r3, [r3]
  44254. 8012f28: 60bb str r3, [r7, #8]
  44255. return(result);
  44256. 8012f2a: 68bb ldr r3, [r7, #8]
  44257. 8012f2c: f043 0320 orr.w r3, r3, #32
  44258. 8012f30: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  44259. 8012f34: 687b ldr r3, [r7, #4]
  44260. 8012f36: 681b ldr r3, [r3, #0]
  44261. 8012f38: 461a mov r2, r3
  44262. 8012f3a: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  44263. 8012f3e: 61bb str r3, [r7, #24]
  44264. 8012f40: 617a str r2, [r7, #20]
  44265. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44266. 8012f42: 6979 ldr r1, [r7, #20]
  44267. 8012f44: 69ba ldr r2, [r7, #24]
  44268. 8012f46: e841 2300 strex r3, r2, [r1]
  44269. 8012f4a: 613b str r3, [r7, #16]
  44270. return(result);
  44271. 8012f4c: 693b ldr r3, [r7, #16]
  44272. 8012f4e: 2b00 cmp r3, #0
  44273. 8012f50: d1e4 bne.n 8012f1c <UART_RxISR_8BIT_FIFOEN+0x304>
  44274. else
  44275. {
  44276. /* Clear RXNE interrupt flag */
  44277. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44278. }
  44279. }
  44280. 8012f52: e007 b.n 8012f64 <UART_RxISR_8BIT_FIFOEN+0x34c>
  44281. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44282. 8012f54: 687b ldr r3, [r7, #4]
  44283. 8012f56: 681b ldr r3, [r3, #0]
  44284. 8012f58: 699a ldr r2, [r3, #24]
  44285. 8012f5a: 687b ldr r3, [r7, #4]
  44286. 8012f5c: 681b ldr r3, [r3, #0]
  44287. 8012f5e: f042 0208 orr.w r2, r2, #8
  44288. 8012f62: 619a str r2, [r3, #24]
  44289. }
  44290. 8012f64: bf00 nop
  44291. 8012f66: 37b0 adds r7, #176 @ 0xb0
  44292. 8012f68: 46bd mov sp, r7
  44293. 8012f6a: bd80 pop {r7, pc}
  44294. 8012f6c: effffffe .word 0xeffffffe
  44295. 8012f70: 58000c00 .word 0x58000c00
  44296. 8012f74: 080128a9 .word 0x080128a9
  44297. 08012f78 <UART_RxISR_16BIT_FIFOEN>:
  44298. * interruptions have been enabled by HAL_UART_Receive_IT()
  44299. * @param huart UART handle.
  44300. * @retval None
  44301. */
  44302. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  44303. {
  44304. 8012f78: b580 push {r7, lr}
  44305. 8012f7a: b0ae sub sp, #184 @ 0xb8
  44306. 8012f7c: af00 add r7, sp, #0
  44307. 8012f7e: 6078 str r0, [r7, #4]
  44308. uint16_t *tmp;
  44309. uint16_t uhMask = huart->Mask;
  44310. 8012f80: 687b ldr r3, [r7, #4]
  44311. 8012f82: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44312. 8012f86: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  44313. uint16_t uhdata;
  44314. uint16_t nb_rx_data;
  44315. uint16_t rxdatacount;
  44316. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  44317. 8012f8a: 687b ldr r3, [r7, #4]
  44318. 8012f8c: 681b ldr r3, [r3, #0]
  44319. 8012f8e: 69db ldr r3, [r3, #28]
  44320. 8012f90: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  44321. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  44322. 8012f94: 687b ldr r3, [r7, #4]
  44323. 8012f96: 681b ldr r3, [r3, #0]
  44324. 8012f98: 681b ldr r3, [r3, #0]
  44325. 8012f9a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  44326. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  44327. 8012f9e: 687b ldr r3, [r7, #4]
  44328. 8012fa0: 681b ldr r3, [r3, #0]
  44329. 8012fa2: 689b ldr r3, [r3, #8]
  44330. 8012fa4: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  44331. /* Check that a Rx process is ongoing */
  44332. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44333. 8012fa8: 687b ldr r3, [r7, #4]
  44334. 8012faa: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44335. 8012fae: 2b22 cmp r3, #34 @ 0x22
  44336. 8012fb0: f040 8184 bne.w 80132bc <UART_RxISR_16BIT_FIFOEN+0x344>
  44337. {
  44338. nb_rx_data = huart->NbRxDataToProcess;
  44339. 8012fb4: 687b ldr r3, [r7, #4]
  44340. 8012fb6: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44341. 8012fba: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  44342. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44343. 8012fbe: e127 b.n 8013210 <UART_RxISR_16BIT_FIFOEN+0x298>
  44344. {
  44345. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44346. 8012fc0: 687b ldr r3, [r7, #4]
  44347. 8012fc2: 681b ldr r3, [r3, #0]
  44348. 8012fc4: 6a5b ldr r3, [r3, #36] @ 0x24
  44349. 8012fc6: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  44350. tmp = (uint16_t *) huart->pRxBuffPtr ;
  44351. 8012fca: 687b ldr r3, [r7, #4]
  44352. 8012fcc: 6d9b ldr r3, [r3, #88] @ 0x58
  44353. 8012fce: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  44354. *tmp = (uint16_t)(uhdata & uhMask);
  44355. 8012fd2: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  44356. 8012fd6: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  44357. 8012fda: 4013 ands r3, r2
  44358. 8012fdc: b29a uxth r2, r3
  44359. 8012fde: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  44360. 8012fe2: 801a strh r2, [r3, #0]
  44361. huart->pRxBuffPtr += 2U;
  44362. 8012fe4: 687b ldr r3, [r7, #4]
  44363. 8012fe6: 6d9b ldr r3, [r3, #88] @ 0x58
  44364. 8012fe8: 1c9a adds r2, r3, #2
  44365. 8012fea: 687b ldr r3, [r7, #4]
  44366. 8012fec: 659a str r2, [r3, #88] @ 0x58
  44367. huart->RxXferCount--;
  44368. 8012fee: 687b ldr r3, [r7, #4]
  44369. 8012ff0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44370. 8012ff4: b29b uxth r3, r3
  44371. 8012ff6: 3b01 subs r3, #1
  44372. 8012ff8: b29a uxth r2, r3
  44373. 8012ffa: 687b ldr r3, [r7, #4]
  44374. 8012ffc: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44375. isrflags = READ_REG(huart->Instance->ISR);
  44376. 8013000: 687b ldr r3, [r7, #4]
  44377. 8013002: 681b ldr r3, [r3, #0]
  44378. 8013004: 69db ldr r3, [r3, #28]
  44379. 8013006: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  44380. /* If some non blocking errors occurred */
  44381. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  44382. 801300a: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44383. 801300e: f003 0307 and.w r3, r3, #7
  44384. 8013012: 2b00 cmp r3, #0
  44385. 8013014: d053 beq.n 80130be <UART_RxISR_16BIT_FIFOEN+0x146>
  44386. {
  44387. /* UART parity error interrupt occurred -------------------------------------*/
  44388. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  44389. 8013016: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44390. 801301a: f003 0301 and.w r3, r3, #1
  44391. 801301e: 2b00 cmp r3, #0
  44392. 8013020: d011 beq.n 8013046 <UART_RxISR_16BIT_FIFOEN+0xce>
  44393. 8013022: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44394. 8013026: f403 7380 and.w r3, r3, #256 @ 0x100
  44395. 801302a: 2b00 cmp r3, #0
  44396. 801302c: d00b beq.n 8013046 <UART_RxISR_16BIT_FIFOEN+0xce>
  44397. {
  44398. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  44399. 801302e: 687b ldr r3, [r7, #4]
  44400. 8013030: 681b ldr r3, [r3, #0]
  44401. 8013032: 2201 movs r2, #1
  44402. 8013034: 621a str r2, [r3, #32]
  44403. huart->ErrorCode |= HAL_UART_ERROR_PE;
  44404. 8013036: 687b ldr r3, [r7, #4]
  44405. 8013038: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44406. 801303c: f043 0201 orr.w r2, r3, #1
  44407. 8013040: 687b ldr r3, [r7, #4]
  44408. 8013042: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44409. }
  44410. /* UART frame error interrupt occurred --------------------------------------*/
  44411. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44412. 8013046: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44413. 801304a: f003 0302 and.w r3, r3, #2
  44414. 801304e: 2b00 cmp r3, #0
  44415. 8013050: d011 beq.n 8013076 <UART_RxISR_16BIT_FIFOEN+0xfe>
  44416. 8013052: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  44417. 8013056: f003 0301 and.w r3, r3, #1
  44418. 801305a: 2b00 cmp r3, #0
  44419. 801305c: d00b beq.n 8013076 <UART_RxISR_16BIT_FIFOEN+0xfe>
  44420. {
  44421. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  44422. 801305e: 687b ldr r3, [r7, #4]
  44423. 8013060: 681b ldr r3, [r3, #0]
  44424. 8013062: 2202 movs r2, #2
  44425. 8013064: 621a str r2, [r3, #32]
  44426. huart->ErrorCode |= HAL_UART_ERROR_FE;
  44427. 8013066: 687b ldr r3, [r7, #4]
  44428. 8013068: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44429. 801306c: f043 0204 orr.w r2, r3, #4
  44430. 8013070: 687b ldr r3, [r7, #4]
  44431. 8013072: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44432. }
  44433. /* UART noise error interrupt occurred --------------------------------------*/
  44434. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44435. 8013076: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44436. 801307a: f003 0304 and.w r3, r3, #4
  44437. 801307e: 2b00 cmp r3, #0
  44438. 8013080: d011 beq.n 80130a6 <UART_RxISR_16BIT_FIFOEN+0x12e>
  44439. 8013082: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  44440. 8013086: f003 0301 and.w r3, r3, #1
  44441. 801308a: 2b00 cmp r3, #0
  44442. 801308c: d00b beq.n 80130a6 <UART_RxISR_16BIT_FIFOEN+0x12e>
  44443. {
  44444. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  44445. 801308e: 687b ldr r3, [r7, #4]
  44446. 8013090: 681b ldr r3, [r3, #0]
  44447. 8013092: 2204 movs r2, #4
  44448. 8013094: 621a str r2, [r3, #32]
  44449. huart->ErrorCode |= HAL_UART_ERROR_NE;
  44450. 8013096: 687b ldr r3, [r7, #4]
  44451. 8013098: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44452. 801309c: f043 0202 orr.w r2, r3, #2
  44453. 80130a0: 687b ldr r3, [r7, #4]
  44454. 80130a2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44455. }
  44456. /* Call UART Error Call back function if need be ----------------------------*/
  44457. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  44458. 80130a6: 687b ldr r3, [r7, #4]
  44459. 80130a8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44460. 80130ac: 2b00 cmp r3, #0
  44461. 80130ae: d006 beq.n 80130be <UART_RxISR_16BIT_FIFOEN+0x146>
  44462. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44463. /*Call registered error callback*/
  44464. huart->ErrorCallback(huart);
  44465. #else
  44466. /*Call legacy weak error callback*/
  44467. HAL_UART_ErrorCallback(huart);
  44468. 80130b0: 6878 ldr r0, [r7, #4]
  44469. 80130b2: f7fe f961 bl 8011378 <HAL_UART_ErrorCallback>
  44470. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44471. huart->ErrorCode = HAL_UART_ERROR_NONE;
  44472. 80130b6: 687b ldr r3, [r7, #4]
  44473. 80130b8: 2200 movs r2, #0
  44474. 80130ba: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44475. }
  44476. }
  44477. if (huart->RxXferCount == 0U)
  44478. 80130be: 687b ldr r3, [r7, #4]
  44479. 80130c0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44480. 80130c4: b29b uxth r3, r3
  44481. 80130c6: 2b00 cmp r3, #0
  44482. 80130c8: f040 80a2 bne.w 8013210 <UART_RxISR_16BIT_FIFOEN+0x298>
  44483. {
  44484. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  44485. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  44486. 80130cc: 687b ldr r3, [r7, #4]
  44487. 80130ce: 681b ldr r3, [r3, #0]
  44488. 80130d0: 677b str r3, [r7, #116] @ 0x74
  44489. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44490. 80130d2: 6f7b ldr r3, [r7, #116] @ 0x74
  44491. 80130d4: e853 3f00 ldrex r3, [r3]
  44492. 80130d8: 673b str r3, [r7, #112] @ 0x70
  44493. return(result);
  44494. 80130da: 6f3b ldr r3, [r7, #112] @ 0x70
  44495. 80130dc: f423 7380 bic.w r3, r3, #256 @ 0x100
  44496. 80130e0: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  44497. 80130e4: 687b ldr r3, [r7, #4]
  44498. 80130e6: 681b ldr r3, [r3, #0]
  44499. 80130e8: 461a mov r2, r3
  44500. 80130ea: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  44501. 80130ee: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  44502. 80130f2: 67fa str r2, [r7, #124] @ 0x7c
  44503. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44504. 80130f4: 6ff9 ldr r1, [r7, #124] @ 0x7c
  44505. 80130f6: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  44506. 80130fa: e841 2300 strex r3, r2, [r1]
  44507. 80130fe: 67bb str r3, [r7, #120] @ 0x78
  44508. return(result);
  44509. 8013100: 6fbb ldr r3, [r7, #120] @ 0x78
  44510. 8013102: 2b00 cmp r3, #0
  44511. 8013104: d1e2 bne.n 80130cc <UART_RxISR_16BIT_FIFOEN+0x154>
  44512. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  44513. and RX FIFO Threshold interrupt */
  44514. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  44515. 8013106: 687b ldr r3, [r7, #4]
  44516. 8013108: 681b ldr r3, [r3, #0]
  44517. 801310a: 3308 adds r3, #8
  44518. 801310c: 663b str r3, [r7, #96] @ 0x60
  44519. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44520. 801310e: 6e3b ldr r3, [r7, #96] @ 0x60
  44521. 8013110: e853 3f00 ldrex r3, [r3]
  44522. 8013114: 65fb str r3, [r7, #92] @ 0x5c
  44523. return(result);
  44524. 8013116: 6dfa ldr r2, [r7, #92] @ 0x5c
  44525. 8013118: 4b6e ldr r3, [pc, #440] @ (80132d4 <UART_RxISR_16BIT_FIFOEN+0x35c>)
  44526. 801311a: 4013 ands r3, r2
  44527. 801311c: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  44528. 8013120: 687b ldr r3, [r7, #4]
  44529. 8013122: 681b ldr r3, [r3, #0]
  44530. 8013124: 3308 adds r3, #8
  44531. 8013126: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  44532. 801312a: 66fa str r2, [r7, #108] @ 0x6c
  44533. 801312c: 66bb str r3, [r7, #104] @ 0x68
  44534. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44535. 801312e: 6eb9 ldr r1, [r7, #104] @ 0x68
  44536. 8013130: 6efa ldr r2, [r7, #108] @ 0x6c
  44537. 8013132: e841 2300 strex r3, r2, [r1]
  44538. 8013136: 667b str r3, [r7, #100] @ 0x64
  44539. return(result);
  44540. 8013138: 6e7b ldr r3, [r7, #100] @ 0x64
  44541. 801313a: 2b00 cmp r3, #0
  44542. 801313c: d1e3 bne.n 8013106 <UART_RxISR_16BIT_FIFOEN+0x18e>
  44543. /* Rx process is completed, restore huart->RxState to Ready */
  44544. huart->RxState = HAL_UART_STATE_READY;
  44545. 801313e: 687b ldr r3, [r7, #4]
  44546. 8013140: 2220 movs r2, #32
  44547. 8013142: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44548. /* Clear RxISR function pointer */
  44549. huart->RxISR = NULL;
  44550. 8013146: 687b ldr r3, [r7, #4]
  44551. 8013148: 2200 movs r2, #0
  44552. 801314a: 675a str r2, [r3, #116] @ 0x74
  44553. /* Initialize type of RxEvent to Transfer Complete */
  44554. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44555. 801314c: 687b ldr r3, [r7, #4]
  44556. 801314e: 2200 movs r2, #0
  44557. 8013150: 671a str r2, [r3, #112] @ 0x70
  44558. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44559. 8013152: 687b ldr r3, [r7, #4]
  44560. 8013154: 681b ldr r3, [r3, #0]
  44561. 8013156: 4a60 ldr r2, [pc, #384] @ (80132d8 <UART_RxISR_16BIT_FIFOEN+0x360>)
  44562. 8013158: 4293 cmp r3, r2
  44563. 801315a: d021 beq.n 80131a0 <UART_RxISR_16BIT_FIFOEN+0x228>
  44564. {
  44565. /* Check that USART RTOEN bit is set */
  44566. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44567. 801315c: 687b ldr r3, [r7, #4]
  44568. 801315e: 681b ldr r3, [r3, #0]
  44569. 8013160: 685b ldr r3, [r3, #4]
  44570. 8013162: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44571. 8013166: 2b00 cmp r3, #0
  44572. 8013168: d01a beq.n 80131a0 <UART_RxISR_16BIT_FIFOEN+0x228>
  44573. {
  44574. /* Enable the UART Receiver Timeout Interrupt */
  44575. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44576. 801316a: 687b ldr r3, [r7, #4]
  44577. 801316c: 681b ldr r3, [r3, #0]
  44578. 801316e: 64fb str r3, [r7, #76] @ 0x4c
  44579. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44580. 8013170: 6cfb ldr r3, [r7, #76] @ 0x4c
  44581. 8013172: e853 3f00 ldrex r3, [r3]
  44582. 8013176: 64bb str r3, [r7, #72] @ 0x48
  44583. return(result);
  44584. 8013178: 6cbb ldr r3, [r7, #72] @ 0x48
  44585. 801317a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44586. 801317e: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  44587. 8013182: 687b ldr r3, [r7, #4]
  44588. 8013184: 681b ldr r3, [r3, #0]
  44589. 8013186: 461a mov r2, r3
  44590. 8013188: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  44591. 801318c: 65bb str r3, [r7, #88] @ 0x58
  44592. 801318e: 657a str r2, [r7, #84] @ 0x54
  44593. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44594. 8013190: 6d79 ldr r1, [r7, #84] @ 0x54
  44595. 8013192: 6dba ldr r2, [r7, #88] @ 0x58
  44596. 8013194: e841 2300 strex r3, r2, [r1]
  44597. 8013198: 653b str r3, [r7, #80] @ 0x50
  44598. return(result);
  44599. 801319a: 6d3b ldr r3, [r7, #80] @ 0x50
  44600. 801319c: 2b00 cmp r3, #0
  44601. 801319e: d1e4 bne.n 801316a <UART_RxISR_16BIT_FIFOEN+0x1f2>
  44602. }
  44603. }
  44604. /* Check current reception Mode :
  44605. If Reception till IDLE event has been selected : */
  44606. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44607. 80131a0: 687b ldr r3, [r7, #4]
  44608. 80131a2: 6edb ldr r3, [r3, #108] @ 0x6c
  44609. 80131a4: 2b01 cmp r3, #1
  44610. 80131a6: d130 bne.n 801320a <UART_RxISR_16BIT_FIFOEN+0x292>
  44611. {
  44612. /* Set reception type to Standard */
  44613. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44614. 80131a8: 687b ldr r3, [r7, #4]
  44615. 80131aa: 2200 movs r2, #0
  44616. 80131ac: 66da str r2, [r3, #108] @ 0x6c
  44617. /* Disable IDLE interrupt */
  44618. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44619. 80131ae: 687b ldr r3, [r7, #4]
  44620. 80131b0: 681b ldr r3, [r3, #0]
  44621. 80131b2: 63bb str r3, [r7, #56] @ 0x38
  44622. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44623. 80131b4: 6bbb ldr r3, [r7, #56] @ 0x38
  44624. 80131b6: e853 3f00 ldrex r3, [r3]
  44625. 80131ba: 637b str r3, [r7, #52] @ 0x34
  44626. return(result);
  44627. 80131bc: 6b7b ldr r3, [r7, #52] @ 0x34
  44628. 80131be: f023 0310 bic.w r3, r3, #16
  44629. 80131c2: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  44630. 80131c6: 687b ldr r3, [r7, #4]
  44631. 80131c8: 681b ldr r3, [r3, #0]
  44632. 80131ca: 461a mov r2, r3
  44633. 80131cc: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  44634. 80131d0: 647b str r3, [r7, #68] @ 0x44
  44635. 80131d2: 643a str r2, [r7, #64] @ 0x40
  44636. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44637. 80131d4: 6c39 ldr r1, [r7, #64] @ 0x40
  44638. 80131d6: 6c7a ldr r2, [r7, #68] @ 0x44
  44639. 80131d8: e841 2300 strex r3, r2, [r1]
  44640. 80131dc: 63fb str r3, [r7, #60] @ 0x3c
  44641. return(result);
  44642. 80131de: 6bfb ldr r3, [r7, #60] @ 0x3c
  44643. 80131e0: 2b00 cmp r3, #0
  44644. 80131e2: d1e4 bne.n 80131ae <UART_RxISR_16BIT_FIFOEN+0x236>
  44645. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44646. 80131e4: 687b ldr r3, [r7, #4]
  44647. 80131e6: 681b ldr r3, [r3, #0]
  44648. 80131e8: 69db ldr r3, [r3, #28]
  44649. 80131ea: f003 0310 and.w r3, r3, #16
  44650. 80131ee: 2b10 cmp r3, #16
  44651. 80131f0: d103 bne.n 80131fa <UART_RxISR_16BIT_FIFOEN+0x282>
  44652. {
  44653. /* Clear IDLE Flag */
  44654. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44655. 80131f2: 687b ldr r3, [r7, #4]
  44656. 80131f4: 681b ldr r3, [r3, #0]
  44657. 80131f6: 2210 movs r2, #16
  44658. 80131f8: 621a str r2, [r3, #32]
  44659. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44660. /*Call registered Rx Event callback*/
  44661. huart->RxEventCallback(huart, huart->RxXferSize);
  44662. #else
  44663. /*Call legacy weak Rx Event callback*/
  44664. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44665. 80131fa: 687b ldr r3, [r7, #4]
  44666. 80131fc: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44667. 8013200: 4619 mov r1, r3
  44668. 8013202: 6878 ldr r0, [r7, #4]
  44669. 8013204: f7f1 f880 bl 8004308 <HAL_UARTEx_RxEventCallback>
  44670. 8013208: e002 b.n 8013210 <UART_RxISR_16BIT_FIFOEN+0x298>
  44671. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44672. /*Call registered Rx complete callback*/
  44673. huart->RxCpltCallback(huart);
  44674. #else
  44675. /*Call legacy weak Rx complete callback*/
  44676. HAL_UART_RxCpltCallback(huart);
  44677. 801320a: 6878 ldr r0, [r7, #4]
  44678. 801320c: f7f1 f872 bl 80042f4 <HAL_UART_RxCpltCallback>
  44679. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44680. 8013210: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  44681. 8013214: 2b00 cmp r3, #0
  44682. 8013216: d006 beq.n 8013226 <UART_RxISR_16BIT_FIFOEN+0x2ae>
  44683. 8013218: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44684. 801321c: f003 0320 and.w r3, r3, #32
  44685. 8013220: 2b00 cmp r3, #0
  44686. 8013222: f47f aecd bne.w 8012fc0 <UART_RxISR_16BIT_FIFOEN+0x48>
  44687. /* When remaining number of bytes to receive is less than the RX FIFO
  44688. threshold, next incoming frames are processed as if FIFO mode was
  44689. disabled (i.e. one interrupt per received frame).
  44690. */
  44691. rxdatacount = huart->RxXferCount;
  44692. 8013226: 687b ldr r3, [r7, #4]
  44693. 8013228: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44694. 801322c: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  44695. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  44696. 8013230: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  44697. 8013234: 2b00 cmp r3, #0
  44698. 8013236: d049 beq.n 80132cc <UART_RxISR_16BIT_FIFOEN+0x354>
  44699. 8013238: 687b ldr r3, [r7, #4]
  44700. 801323a: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44701. 801323e: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  44702. 8013242: 429a cmp r2, r3
  44703. 8013244: d242 bcs.n 80132cc <UART_RxISR_16BIT_FIFOEN+0x354>
  44704. {
  44705. /* Disable the UART RXFT interrupt*/
  44706. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  44707. 8013246: 687b ldr r3, [r7, #4]
  44708. 8013248: 681b ldr r3, [r3, #0]
  44709. 801324a: 3308 adds r3, #8
  44710. 801324c: 627b str r3, [r7, #36] @ 0x24
  44711. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44712. 801324e: 6a7b ldr r3, [r7, #36] @ 0x24
  44713. 8013250: e853 3f00 ldrex r3, [r3]
  44714. 8013254: 623b str r3, [r7, #32]
  44715. return(result);
  44716. 8013256: 6a3b ldr r3, [r7, #32]
  44717. 8013258: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  44718. 801325c: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  44719. 8013260: 687b ldr r3, [r7, #4]
  44720. 8013262: 681b ldr r3, [r3, #0]
  44721. 8013264: 3308 adds r3, #8
  44722. 8013266: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  44723. 801326a: 633a str r2, [r7, #48] @ 0x30
  44724. 801326c: 62fb str r3, [r7, #44] @ 0x2c
  44725. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44726. 801326e: 6af9 ldr r1, [r7, #44] @ 0x2c
  44727. 8013270: 6b3a ldr r2, [r7, #48] @ 0x30
  44728. 8013272: e841 2300 strex r3, r2, [r1]
  44729. 8013276: 62bb str r3, [r7, #40] @ 0x28
  44730. return(result);
  44731. 8013278: 6abb ldr r3, [r7, #40] @ 0x28
  44732. 801327a: 2b00 cmp r3, #0
  44733. 801327c: d1e3 bne.n 8013246 <UART_RxISR_16BIT_FIFOEN+0x2ce>
  44734. /* Update the RxISR function pointer */
  44735. huart->RxISR = UART_RxISR_16BIT;
  44736. 801327e: 687b ldr r3, [r7, #4]
  44737. 8013280: 4a16 ldr r2, [pc, #88] @ (80132dc <UART_RxISR_16BIT_FIFOEN+0x364>)
  44738. 8013282: 675a str r2, [r3, #116] @ 0x74
  44739. /* Enable the UART Data Register Not Empty interrupt */
  44740. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  44741. 8013284: 687b ldr r3, [r7, #4]
  44742. 8013286: 681b ldr r3, [r3, #0]
  44743. 8013288: 613b str r3, [r7, #16]
  44744. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44745. 801328a: 693b ldr r3, [r7, #16]
  44746. 801328c: e853 3f00 ldrex r3, [r3]
  44747. 8013290: 60fb str r3, [r7, #12]
  44748. return(result);
  44749. 8013292: 68fb ldr r3, [r7, #12]
  44750. 8013294: f043 0320 orr.w r3, r3, #32
  44751. 8013298: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  44752. 801329c: 687b ldr r3, [r7, #4]
  44753. 801329e: 681b ldr r3, [r3, #0]
  44754. 80132a0: 461a mov r2, r3
  44755. 80132a2: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  44756. 80132a6: 61fb str r3, [r7, #28]
  44757. 80132a8: 61ba str r2, [r7, #24]
  44758. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44759. 80132aa: 69b9 ldr r1, [r7, #24]
  44760. 80132ac: 69fa ldr r2, [r7, #28]
  44761. 80132ae: e841 2300 strex r3, r2, [r1]
  44762. 80132b2: 617b str r3, [r7, #20]
  44763. return(result);
  44764. 80132b4: 697b ldr r3, [r7, #20]
  44765. 80132b6: 2b00 cmp r3, #0
  44766. 80132b8: d1e4 bne.n 8013284 <UART_RxISR_16BIT_FIFOEN+0x30c>
  44767. else
  44768. {
  44769. /* Clear RXNE interrupt flag */
  44770. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44771. }
  44772. }
  44773. 80132ba: e007 b.n 80132cc <UART_RxISR_16BIT_FIFOEN+0x354>
  44774. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44775. 80132bc: 687b ldr r3, [r7, #4]
  44776. 80132be: 681b ldr r3, [r3, #0]
  44777. 80132c0: 699a ldr r2, [r3, #24]
  44778. 80132c2: 687b ldr r3, [r7, #4]
  44779. 80132c4: 681b ldr r3, [r3, #0]
  44780. 80132c6: f042 0208 orr.w r2, r2, #8
  44781. 80132ca: 619a str r2, [r3, #24]
  44782. }
  44783. 80132cc: bf00 nop
  44784. 80132ce: 37b8 adds r7, #184 @ 0xb8
  44785. 80132d0: 46bd mov sp, r7
  44786. 80132d2: bd80 pop {r7, pc}
  44787. 80132d4: effffffe .word 0xeffffffe
  44788. 80132d8: 58000c00 .word 0x58000c00
  44789. 80132dc: 08012a61 .word 0x08012a61
  44790. 080132e0 <HAL_UARTEx_WakeupCallback>:
  44791. * @brief UART wakeup from Stop mode callback.
  44792. * @param huart UART handle.
  44793. * @retval None
  44794. */
  44795. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  44796. {
  44797. 80132e0: b480 push {r7}
  44798. 80132e2: b083 sub sp, #12
  44799. 80132e4: af00 add r7, sp, #0
  44800. 80132e6: 6078 str r0, [r7, #4]
  44801. UNUSED(huart);
  44802. /* NOTE : This function should not be modified, when the callback is needed,
  44803. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  44804. */
  44805. }
  44806. 80132e8: bf00 nop
  44807. 80132ea: 370c adds r7, #12
  44808. 80132ec: 46bd mov sp, r7
  44809. 80132ee: f85d 7b04 ldr.w r7, [sp], #4
  44810. 80132f2: 4770 bx lr
  44811. 080132f4 <HAL_UARTEx_RxFifoFullCallback>:
  44812. * @brief UART RX Fifo full callback.
  44813. * @param huart UART handle.
  44814. * @retval None
  44815. */
  44816. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  44817. {
  44818. 80132f4: b480 push {r7}
  44819. 80132f6: b083 sub sp, #12
  44820. 80132f8: af00 add r7, sp, #0
  44821. 80132fa: 6078 str r0, [r7, #4]
  44822. UNUSED(huart);
  44823. /* NOTE : This function should not be modified, when the callback is needed,
  44824. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  44825. */
  44826. }
  44827. 80132fc: bf00 nop
  44828. 80132fe: 370c adds r7, #12
  44829. 8013300: 46bd mov sp, r7
  44830. 8013302: f85d 7b04 ldr.w r7, [sp], #4
  44831. 8013306: 4770 bx lr
  44832. 08013308 <HAL_UARTEx_TxFifoEmptyCallback>:
  44833. * @brief UART TX Fifo empty callback.
  44834. * @param huart UART handle.
  44835. * @retval None
  44836. */
  44837. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  44838. {
  44839. 8013308: b480 push {r7}
  44840. 801330a: b083 sub sp, #12
  44841. 801330c: af00 add r7, sp, #0
  44842. 801330e: 6078 str r0, [r7, #4]
  44843. UNUSED(huart);
  44844. /* NOTE : This function should not be modified, when the callback is needed,
  44845. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  44846. */
  44847. }
  44848. 8013310: bf00 nop
  44849. 8013312: 370c adds r7, #12
  44850. 8013314: 46bd mov sp, r7
  44851. 8013316: f85d 7b04 ldr.w r7, [sp], #4
  44852. 801331a: 4770 bx lr
  44853. 0801331c <HAL_UARTEx_DisableFifoMode>:
  44854. * @brief Disable the FIFO mode.
  44855. * @param huart UART handle.
  44856. * @retval HAL status
  44857. */
  44858. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  44859. {
  44860. 801331c: b480 push {r7}
  44861. 801331e: b085 sub sp, #20
  44862. 8013320: af00 add r7, sp, #0
  44863. 8013322: 6078 str r0, [r7, #4]
  44864. /* Check parameters */
  44865. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  44866. /* Process Locked */
  44867. __HAL_LOCK(huart);
  44868. 8013324: 687b ldr r3, [r7, #4]
  44869. 8013326: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  44870. 801332a: 2b01 cmp r3, #1
  44871. 801332c: d101 bne.n 8013332 <HAL_UARTEx_DisableFifoMode+0x16>
  44872. 801332e: 2302 movs r3, #2
  44873. 8013330: e027 b.n 8013382 <HAL_UARTEx_DisableFifoMode+0x66>
  44874. 8013332: 687b ldr r3, [r7, #4]
  44875. 8013334: 2201 movs r2, #1
  44876. 8013336: f883 2084 strb.w r2, [r3, #132] @ 0x84
  44877. huart->gState = HAL_UART_STATE_BUSY;
  44878. 801333a: 687b ldr r3, [r7, #4]
  44879. 801333c: 2224 movs r2, #36 @ 0x24
  44880. 801333e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44881. /* Save actual UART configuration */
  44882. tmpcr1 = READ_REG(huart->Instance->CR1);
  44883. 8013342: 687b ldr r3, [r7, #4]
  44884. 8013344: 681b ldr r3, [r3, #0]
  44885. 8013346: 681b ldr r3, [r3, #0]
  44886. 8013348: 60fb str r3, [r7, #12]
  44887. /* Disable UART */
  44888. __HAL_UART_DISABLE(huart);
  44889. 801334a: 687b ldr r3, [r7, #4]
  44890. 801334c: 681b ldr r3, [r3, #0]
  44891. 801334e: 681a ldr r2, [r3, #0]
  44892. 8013350: 687b ldr r3, [r7, #4]
  44893. 8013352: 681b ldr r3, [r3, #0]
  44894. 8013354: f022 0201 bic.w r2, r2, #1
  44895. 8013358: 601a str r2, [r3, #0]
  44896. /* Enable FIFO mode */
  44897. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  44898. 801335a: 68fb ldr r3, [r7, #12]
  44899. 801335c: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  44900. 8013360: 60fb str r3, [r7, #12]
  44901. huart->FifoMode = UART_FIFOMODE_DISABLE;
  44902. 8013362: 687b ldr r3, [r7, #4]
  44903. 8013364: 2200 movs r2, #0
  44904. 8013366: 665a str r2, [r3, #100] @ 0x64
  44905. /* Restore UART configuration */
  44906. WRITE_REG(huart->Instance->CR1, tmpcr1);
  44907. 8013368: 687b ldr r3, [r7, #4]
  44908. 801336a: 681b ldr r3, [r3, #0]
  44909. 801336c: 68fa ldr r2, [r7, #12]
  44910. 801336e: 601a str r2, [r3, #0]
  44911. huart->gState = HAL_UART_STATE_READY;
  44912. 8013370: 687b ldr r3, [r7, #4]
  44913. 8013372: 2220 movs r2, #32
  44914. 8013374: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44915. /* Process Unlocked */
  44916. __HAL_UNLOCK(huart);
  44917. 8013378: 687b ldr r3, [r7, #4]
  44918. 801337a: 2200 movs r2, #0
  44919. 801337c: f883 2084 strb.w r2, [r3, #132] @ 0x84
  44920. return HAL_OK;
  44921. 8013380: 2300 movs r3, #0
  44922. }
  44923. 8013382: 4618 mov r0, r3
  44924. 8013384: 3714 adds r7, #20
  44925. 8013386: 46bd mov sp, r7
  44926. 8013388: f85d 7b04 ldr.w r7, [sp], #4
  44927. 801338c: 4770 bx lr
  44928. 0801338e <HAL_UARTEx_SetTxFifoThreshold>:
  44929. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  44930. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  44931. * @retval HAL status
  44932. */
  44933. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  44934. {
  44935. 801338e: b580 push {r7, lr}
  44936. 8013390: b084 sub sp, #16
  44937. 8013392: af00 add r7, sp, #0
  44938. 8013394: 6078 str r0, [r7, #4]
  44939. 8013396: 6039 str r1, [r7, #0]
  44940. /* Check parameters */
  44941. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  44942. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  44943. /* Process Locked */
  44944. __HAL_LOCK(huart);
  44945. 8013398: 687b ldr r3, [r7, #4]
  44946. 801339a: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  44947. 801339e: 2b01 cmp r3, #1
  44948. 80133a0: d101 bne.n 80133a6 <HAL_UARTEx_SetTxFifoThreshold+0x18>
  44949. 80133a2: 2302 movs r3, #2
  44950. 80133a4: e02d b.n 8013402 <HAL_UARTEx_SetTxFifoThreshold+0x74>
  44951. 80133a6: 687b ldr r3, [r7, #4]
  44952. 80133a8: 2201 movs r2, #1
  44953. 80133aa: f883 2084 strb.w r2, [r3, #132] @ 0x84
  44954. huart->gState = HAL_UART_STATE_BUSY;
  44955. 80133ae: 687b ldr r3, [r7, #4]
  44956. 80133b0: 2224 movs r2, #36 @ 0x24
  44957. 80133b2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44958. /* Save actual UART configuration */
  44959. tmpcr1 = READ_REG(huart->Instance->CR1);
  44960. 80133b6: 687b ldr r3, [r7, #4]
  44961. 80133b8: 681b ldr r3, [r3, #0]
  44962. 80133ba: 681b ldr r3, [r3, #0]
  44963. 80133bc: 60fb str r3, [r7, #12]
  44964. /* Disable UART */
  44965. __HAL_UART_DISABLE(huart);
  44966. 80133be: 687b ldr r3, [r7, #4]
  44967. 80133c0: 681b ldr r3, [r3, #0]
  44968. 80133c2: 681a ldr r2, [r3, #0]
  44969. 80133c4: 687b ldr r3, [r7, #4]
  44970. 80133c6: 681b ldr r3, [r3, #0]
  44971. 80133c8: f022 0201 bic.w r2, r2, #1
  44972. 80133cc: 601a str r2, [r3, #0]
  44973. /* Update TX threshold configuration */
  44974. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  44975. 80133ce: 687b ldr r3, [r7, #4]
  44976. 80133d0: 681b ldr r3, [r3, #0]
  44977. 80133d2: 689b ldr r3, [r3, #8]
  44978. 80133d4: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  44979. 80133d8: 687b ldr r3, [r7, #4]
  44980. 80133da: 681b ldr r3, [r3, #0]
  44981. 80133dc: 683a ldr r2, [r7, #0]
  44982. 80133de: 430a orrs r2, r1
  44983. 80133e0: 609a str r2, [r3, #8]
  44984. /* Determine the number of data to process during RX/TX ISR execution */
  44985. UARTEx_SetNbDataToProcess(huart);
  44986. 80133e2: 6878 ldr r0, [r7, #4]
  44987. 80133e4: f000 f8a0 bl 8013528 <UARTEx_SetNbDataToProcess>
  44988. /* Restore UART configuration */
  44989. WRITE_REG(huart->Instance->CR1, tmpcr1);
  44990. 80133e8: 687b ldr r3, [r7, #4]
  44991. 80133ea: 681b ldr r3, [r3, #0]
  44992. 80133ec: 68fa ldr r2, [r7, #12]
  44993. 80133ee: 601a str r2, [r3, #0]
  44994. huart->gState = HAL_UART_STATE_READY;
  44995. 80133f0: 687b ldr r3, [r7, #4]
  44996. 80133f2: 2220 movs r2, #32
  44997. 80133f4: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44998. /* Process Unlocked */
  44999. __HAL_UNLOCK(huart);
  45000. 80133f8: 687b ldr r3, [r7, #4]
  45001. 80133fa: 2200 movs r2, #0
  45002. 80133fc: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45003. return HAL_OK;
  45004. 8013400: 2300 movs r3, #0
  45005. }
  45006. 8013402: 4618 mov r0, r3
  45007. 8013404: 3710 adds r7, #16
  45008. 8013406: 46bd mov sp, r7
  45009. 8013408: bd80 pop {r7, pc}
  45010. 0801340a <HAL_UARTEx_SetRxFifoThreshold>:
  45011. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  45012. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  45013. * @retval HAL status
  45014. */
  45015. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  45016. {
  45017. 801340a: b580 push {r7, lr}
  45018. 801340c: b084 sub sp, #16
  45019. 801340e: af00 add r7, sp, #0
  45020. 8013410: 6078 str r0, [r7, #4]
  45021. 8013412: 6039 str r1, [r7, #0]
  45022. /* Check the parameters */
  45023. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  45024. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  45025. /* Process Locked */
  45026. __HAL_LOCK(huart);
  45027. 8013414: 687b ldr r3, [r7, #4]
  45028. 8013416: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  45029. 801341a: 2b01 cmp r3, #1
  45030. 801341c: d101 bne.n 8013422 <HAL_UARTEx_SetRxFifoThreshold+0x18>
  45031. 801341e: 2302 movs r3, #2
  45032. 8013420: e02d b.n 801347e <HAL_UARTEx_SetRxFifoThreshold+0x74>
  45033. 8013422: 687b ldr r3, [r7, #4]
  45034. 8013424: 2201 movs r2, #1
  45035. 8013426: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45036. huart->gState = HAL_UART_STATE_BUSY;
  45037. 801342a: 687b ldr r3, [r7, #4]
  45038. 801342c: 2224 movs r2, #36 @ 0x24
  45039. 801342e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45040. /* Save actual UART configuration */
  45041. tmpcr1 = READ_REG(huart->Instance->CR1);
  45042. 8013432: 687b ldr r3, [r7, #4]
  45043. 8013434: 681b ldr r3, [r3, #0]
  45044. 8013436: 681b ldr r3, [r3, #0]
  45045. 8013438: 60fb str r3, [r7, #12]
  45046. /* Disable UART */
  45047. __HAL_UART_DISABLE(huart);
  45048. 801343a: 687b ldr r3, [r7, #4]
  45049. 801343c: 681b ldr r3, [r3, #0]
  45050. 801343e: 681a ldr r2, [r3, #0]
  45051. 8013440: 687b ldr r3, [r7, #4]
  45052. 8013442: 681b ldr r3, [r3, #0]
  45053. 8013444: f022 0201 bic.w r2, r2, #1
  45054. 8013448: 601a str r2, [r3, #0]
  45055. /* Update RX threshold configuration */
  45056. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  45057. 801344a: 687b ldr r3, [r7, #4]
  45058. 801344c: 681b ldr r3, [r3, #0]
  45059. 801344e: 689b ldr r3, [r3, #8]
  45060. 8013450: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  45061. 8013454: 687b ldr r3, [r7, #4]
  45062. 8013456: 681b ldr r3, [r3, #0]
  45063. 8013458: 683a ldr r2, [r7, #0]
  45064. 801345a: 430a orrs r2, r1
  45065. 801345c: 609a str r2, [r3, #8]
  45066. /* Determine the number of data to process during RX/TX ISR execution */
  45067. UARTEx_SetNbDataToProcess(huart);
  45068. 801345e: 6878 ldr r0, [r7, #4]
  45069. 8013460: f000 f862 bl 8013528 <UARTEx_SetNbDataToProcess>
  45070. /* Restore UART configuration */
  45071. WRITE_REG(huart->Instance->CR1, tmpcr1);
  45072. 8013464: 687b ldr r3, [r7, #4]
  45073. 8013466: 681b ldr r3, [r3, #0]
  45074. 8013468: 68fa ldr r2, [r7, #12]
  45075. 801346a: 601a str r2, [r3, #0]
  45076. huart->gState = HAL_UART_STATE_READY;
  45077. 801346c: 687b ldr r3, [r7, #4]
  45078. 801346e: 2220 movs r2, #32
  45079. 8013470: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45080. /* Process Unlocked */
  45081. __HAL_UNLOCK(huart);
  45082. 8013474: 687b ldr r3, [r7, #4]
  45083. 8013476: 2200 movs r2, #0
  45084. 8013478: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45085. return HAL_OK;
  45086. 801347c: 2300 movs r3, #0
  45087. }
  45088. 801347e: 4618 mov r0, r3
  45089. 8013480: 3710 adds r7, #16
  45090. 8013482: 46bd mov sp, r7
  45091. 8013484: bd80 pop {r7, pc}
  45092. 08013486 <HAL_UARTEx_ReceiveToIdle_IT>:
  45093. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  45094. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  45095. * @retval HAL status
  45096. */
  45097. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  45098. {
  45099. 8013486: b580 push {r7, lr}
  45100. 8013488: b08c sub sp, #48 @ 0x30
  45101. 801348a: af00 add r7, sp, #0
  45102. 801348c: 60f8 str r0, [r7, #12]
  45103. 801348e: 60b9 str r1, [r7, #8]
  45104. 8013490: 4613 mov r3, r2
  45105. 8013492: 80fb strh r3, [r7, #6]
  45106. HAL_StatusTypeDef status = HAL_OK;
  45107. 8013494: 2300 movs r3, #0
  45108. 8013496: f887 302f strb.w r3, [r7, #47] @ 0x2f
  45109. /* Check that a Rx process is not already ongoing */
  45110. if (huart->RxState == HAL_UART_STATE_READY)
  45111. 801349a: 68fb ldr r3, [r7, #12]
  45112. 801349c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45113. 80134a0: 2b20 cmp r3, #32
  45114. 80134a2: d13b bne.n 801351c <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  45115. {
  45116. if ((pData == NULL) || (Size == 0U))
  45117. 80134a4: 68bb ldr r3, [r7, #8]
  45118. 80134a6: 2b00 cmp r3, #0
  45119. 80134a8: d002 beq.n 80134b0 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  45120. 80134aa: 88fb ldrh r3, [r7, #6]
  45121. 80134ac: 2b00 cmp r3, #0
  45122. 80134ae: d101 bne.n 80134b4 <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  45123. {
  45124. return HAL_ERROR;
  45125. 80134b0: 2301 movs r3, #1
  45126. 80134b2: e034 b.n 801351e <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  45127. }
  45128. /* Set Reception type to reception till IDLE Event*/
  45129. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  45130. 80134b4: 68fb ldr r3, [r7, #12]
  45131. 80134b6: 2201 movs r2, #1
  45132. 80134b8: 66da str r2, [r3, #108] @ 0x6c
  45133. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45134. 80134ba: 68fb ldr r3, [r7, #12]
  45135. 80134bc: 2200 movs r2, #0
  45136. 80134be: 671a str r2, [r3, #112] @ 0x70
  45137. (void)UART_Start_Receive_IT(huart, pData, Size);
  45138. 80134c0: 88fb ldrh r3, [r7, #6]
  45139. 80134c2: 461a mov r2, r3
  45140. 80134c4: 68b9 ldr r1, [r7, #8]
  45141. 80134c6: 68f8 ldr r0, [r7, #12]
  45142. 80134c8: f7fe fe82 bl 80121d0 <UART_Start_Receive_IT>
  45143. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45144. 80134cc: 68fb ldr r3, [r7, #12]
  45145. 80134ce: 6edb ldr r3, [r3, #108] @ 0x6c
  45146. 80134d0: 2b01 cmp r3, #1
  45147. 80134d2: d11d bne.n 8013510 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  45148. {
  45149. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45150. 80134d4: 68fb ldr r3, [r7, #12]
  45151. 80134d6: 681b ldr r3, [r3, #0]
  45152. 80134d8: 2210 movs r2, #16
  45153. 80134da: 621a str r2, [r3, #32]
  45154. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45155. 80134dc: 68fb ldr r3, [r7, #12]
  45156. 80134de: 681b ldr r3, [r3, #0]
  45157. 80134e0: 61bb str r3, [r7, #24]
  45158. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45159. 80134e2: 69bb ldr r3, [r7, #24]
  45160. 80134e4: e853 3f00 ldrex r3, [r3]
  45161. 80134e8: 617b str r3, [r7, #20]
  45162. return(result);
  45163. 80134ea: 697b ldr r3, [r7, #20]
  45164. 80134ec: f043 0310 orr.w r3, r3, #16
  45165. 80134f0: 62bb str r3, [r7, #40] @ 0x28
  45166. 80134f2: 68fb ldr r3, [r7, #12]
  45167. 80134f4: 681b ldr r3, [r3, #0]
  45168. 80134f6: 461a mov r2, r3
  45169. 80134f8: 6abb ldr r3, [r7, #40] @ 0x28
  45170. 80134fa: 627b str r3, [r7, #36] @ 0x24
  45171. 80134fc: 623a str r2, [r7, #32]
  45172. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45173. 80134fe: 6a39 ldr r1, [r7, #32]
  45174. 8013500: 6a7a ldr r2, [r7, #36] @ 0x24
  45175. 8013502: e841 2300 strex r3, r2, [r1]
  45176. 8013506: 61fb str r3, [r7, #28]
  45177. return(result);
  45178. 8013508: 69fb ldr r3, [r7, #28]
  45179. 801350a: 2b00 cmp r3, #0
  45180. 801350c: d1e6 bne.n 80134dc <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  45181. 801350e: e002 b.n 8013516 <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  45182. {
  45183. /* In case of errors already pending when reception is started,
  45184. Interrupts may have already been raised and lead to reception abortion.
  45185. (Overrun error for instance).
  45186. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  45187. status = HAL_ERROR;
  45188. 8013510: 2301 movs r3, #1
  45189. 8013512: f887 302f strb.w r3, [r7, #47] @ 0x2f
  45190. }
  45191. return status;
  45192. 8013516: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  45193. 801351a: e000 b.n 801351e <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  45194. }
  45195. else
  45196. {
  45197. return HAL_BUSY;
  45198. 801351c: 2302 movs r3, #2
  45199. }
  45200. }
  45201. 801351e: 4618 mov r0, r3
  45202. 8013520: 3730 adds r7, #48 @ 0x30
  45203. 8013522: 46bd mov sp, r7
  45204. 8013524: bd80 pop {r7, pc}
  45205. ...
  45206. 08013528 <UARTEx_SetNbDataToProcess>:
  45207. * the UART configuration registers.
  45208. * @param huart UART handle.
  45209. * @retval None
  45210. */
  45211. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  45212. {
  45213. 8013528: b480 push {r7}
  45214. 801352a: b085 sub sp, #20
  45215. 801352c: af00 add r7, sp, #0
  45216. 801352e: 6078 str r0, [r7, #4]
  45217. uint8_t rx_fifo_threshold;
  45218. uint8_t tx_fifo_threshold;
  45219. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  45220. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  45221. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  45222. 8013530: 687b ldr r3, [r7, #4]
  45223. 8013532: 6e5b ldr r3, [r3, #100] @ 0x64
  45224. 8013534: 2b00 cmp r3, #0
  45225. 8013536: d108 bne.n 801354a <UARTEx_SetNbDataToProcess+0x22>
  45226. {
  45227. huart->NbTxDataToProcess = 1U;
  45228. 8013538: 687b ldr r3, [r7, #4]
  45229. 801353a: 2201 movs r2, #1
  45230. 801353c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  45231. huart->NbRxDataToProcess = 1U;
  45232. 8013540: 687b ldr r3, [r7, #4]
  45233. 8013542: 2201 movs r2, #1
  45234. 8013544: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  45235. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  45236. (uint16_t)denominator[tx_fifo_threshold];
  45237. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  45238. (uint16_t)denominator[rx_fifo_threshold];
  45239. }
  45240. }
  45241. 8013548: e031 b.n 80135ae <UARTEx_SetNbDataToProcess+0x86>
  45242. rx_fifo_depth = RX_FIFO_DEPTH;
  45243. 801354a: 2310 movs r3, #16
  45244. 801354c: 73fb strb r3, [r7, #15]
  45245. tx_fifo_depth = TX_FIFO_DEPTH;
  45246. 801354e: 2310 movs r3, #16
  45247. 8013550: 73bb strb r3, [r7, #14]
  45248. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  45249. 8013552: 687b ldr r3, [r7, #4]
  45250. 8013554: 681b ldr r3, [r3, #0]
  45251. 8013556: 689b ldr r3, [r3, #8]
  45252. 8013558: 0e5b lsrs r3, r3, #25
  45253. 801355a: b2db uxtb r3, r3
  45254. 801355c: f003 0307 and.w r3, r3, #7
  45255. 8013560: 737b strb r3, [r7, #13]
  45256. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  45257. 8013562: 687b ldr r3, [r7, #4]
  45258. 8013564: 681b ldr r3, [r3, #0]
  45259. 8013566: 689b ldr r3, [r3, #8]
  45260. 8013568: 0f5b lsrs r3, r3, #29
  45261. 801356a: b2db uxtb r3, r3
  45262. 801356c: f003 0307 and.w r3, r3, #7
  45263. 8013570: 733b strb r3, [r7, #12]
  45264. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  45265. 8013572: 7bbb ldrb r3, [r7, #14]
  45266. 8013574: 7b3a ldrb r2, [r7, #12]
  45267. 8013576: 4911 ldr r1, [pc, #68] @ (80135bc <UARTEx_SetNbDataToProcess+0x94>)
  45268. 8013578: 5c8a ldrb r2, [r1, r2]
  45269. 801357a: fb02 f303 mul.w r3, r2, r3
  45270. (uint16_t)denominator[tx_fifo_threshold];
  45271. 801357e: 7b3a ldrb r2, [r7, #12]
  45272. 8013580: 490f ldr r1, [pc, #60] @ (80135c0 <UARTEx_SetNbDataToProcess+0x98>)
  45273. 8013582: 5c8a ldrb r2, [r1, r2]
  45274. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  45275. 8013584: fb93 f3f2 sdiv r3, r3, r2
  45276. 8013588: b29a uxth r2, r3
  45277. 801358a: 687b ldr r3, [r7, #4]
  45278. 801358c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  45279. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  45280. 8013590: 7bfb ldrb r3, [r7, #15]
  45281. 8013592: 7b7a ldrb r2, [r7, #13]
  45282. 8013594: 4909 ldr r1, [pc, #36] @ (80135bc <UARTEx_SetNbDataToProcess+0x94>)
  45283. 8013596: 5c8a ldrb r2, [r1, r2]
  45284. 8013598: fb02 f303 mul.w r3, r2, r3
  45285. (uint16_t)denominator[rx_fifo_threshold];
  45286. 801359c: 7b7a ldrb r2, [r7, #13]
  45287. 801359e: 4908 ldr r1, [pc, #32] @ (80135c0 <UARTEx_SetNbDataToProcess+0x98>)
  45288. 80135a0: 5c8a ldrb r2, [r1, r2]
  45289. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  45290. 80135a2: fb93 f3f2 sdiv r3, r3, r2
  45291. 80135a6: b29a uxth r2, r3
  45292. 80135a8: 687b ldr r3, [r7, #4]
  45293. 80135aa: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  45294. }
  45295. 80135ae: bf00 nop
  45296. 80135b0: 3714 adds r7, #20
  45297. 80135b2: 46bd mov sp, r7
  45298. 80135b4: f85d 7b04 ldr.w r7, [sp], #4
  45299. 80135b8: 4770 bx lr
  45300. 80135ba: bf00 nop
  45301. 80135bc: 08018a58 .word 0x08018a58
  45302. 80135c0: 08018a60 .word 0x08018a60
  45303. 080135c4 <__NVIC_SetPriority>:
  45304. {
  45305. 80135c4: b480 push {r7}
  45306. 80135c6: b083 sub sp, #12
  45307. 80135c8: af00 add r7, sp, #0
  45308. 80135ca: 4603 mov r3, r0
  45309. 80135cc: 6039 str r1, [r7, #0]
  45310. 80135ce: 80fb strh r3, [r7, #6]
  45311. if ((int32_t)(IRQn) >= 0)
  45312. 80135d0: f9b7 3006 ldrsh.w r3, [r7, #6]
  45313. 80135d4: 2b00 cmp r3, #0
  45314. 80135d6: db0a blt.n 80135ee <__NVIC_SetPriority+0x2a>
  45315. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  45316. 80135d8: 683b ldr r3, [r7, #0]
  45317. 80135da: b2da uxtb r2, r3
  45318. 80135dc: 490c ldr r1, [pc, #48] @ (8013610 <__NVIC_SetPriority+0x4c>)
  45319. 80135de: f9b7 3006 ldrsh.w r3, [r7, #6]
  45320. 80135e2: 0112 lsls r2, r2, #4
  45321. 80135e4: b2d2 uxtb r2, r2
  45322. 80135e6: 440b add r3, r1
  45323. 80135e8: f883 2300 strb.w r2, [r3, #768] @ 0x300
  45324. }
  45325. 80135ec: e00a b.n 8013604 <__NVIC_SetPriority+0x40>
  45326. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  45327. 80135ee: 683b ldr r3, [r7, #0]
  45328. 80135f0: b2da uxtb r2, r3
  45329. 80135f2: 4908 ldr r1, [pc, #32] @ (8013614 <__NVIC_SetPriority+0x50>)
  45330. 80135f4: 88fb ldrh r3, [r7, #6]
  45331. 80135f6: f003 030f and.w r3, r3, #15
  45332. 80135fa: 3b04 subs r3, #4
  45333. 80135fc: 0112 lsls r2, r2, #4
  45334. 80135fe: b2d2 uxtb r2, r2
  45335. 8013600: 440b add r3, r1
  45336. 8013602: 761a strb r2, [r3, #24]
  45337. }
  45338. 8013604: bf00 nop
  45339. 8013606: 370c adds r7, #12
  45340. 8013608: 46bd mov sp, r7
  45341. 801360a: f85d 7b04 ldr.w r7, [sp], #4
  45342. 801360e: 4770 bx lr
  45343. 8013610: e000e100 .word 0xe000e100
  45344. 8013614: e000ed00 .word 0xe000ed00
  45345. 08013618 <SysTick_Handler>:
  45346. /*
  45347. SysTick handler implementation that also clears overflow flag.
  45348. */
  45349. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  45350. void SysTick_Handler (void) {
  45351. 8013618: b580 push {r7, lr}
  45352. 801361a: af00 add r7, sp, #0
  45353. /* Clear overflow flag */
  45354. SysTick->CTRL;
  45355. 801361c: 4b05 ldr r3, [pc, #20] @ (8013634 <SysTick_Handler+0x1c>)
  45356. 801361e: 681b ldr r3, [r3, #0]
  45357. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  45358. 8013620: f002 fd1e bl 8016060 <xTaskGetSchedulerState>
  45359. 8013624: 4603 mov r3, r0
  45360. 8013626: 2b01 cmp r3, #1
  45361. 8013628: d001 beq.n 801362e <SysTick_Handler+0x16>
  45362. /* Call tick handler */
  45363. xPortSysTickHandler();
  45364. 801362a: f003 ff2d bl 8017488 <xPortSysTickHandler>
  45365. }
  45366. }
  45367. 801362e: bf00 nop
  45368. 8013630: bd80 pop {r7, pc}
  45369. 8013632: bf00 nop
  45370. 8013634: e000e010 .word 0xe000e010
  45371. 08013638 <SVC_Setup>:
  45372. #endif /* SysTick */
  45373. /*
  45374. Setup SVC to reset value.
  45375. */
  45376. __STATIC_INLINE void SVC_Setup (void) {
  45377. 8013638: b580 push {r7, lr}
  45378. 801363a: af00 add r7, sp, #0
  45379. #if (__ARM_ARCH_7A__ == 0U)
  45380. /* Service Call interrupt might be configured before kernel start */
  45381. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  45382. /* causes a Hard Fault. */
  45383. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  45384. 801363c: 2100 movs r1, #0
  45385. 801363e: f06f 0004 mvn.w r0, #4
  45386. 8013642: f7ff ffbf bl 80135c4 <__NVIC_SetPriority>
  45387. #endif
  45388. }
  45389. 8013646: bf00 nop
  45390. 8013648: bd80 pop {r7, pc}
  45391. ...
  45392. 0801364c <osKernelInitialize>:
  45393. static uint32_t OS_Tick_GetOverflow (void);
  45394. /* Get OS Tick interval */
  45395. static uint32_t OS_Tick_GetInterval (void);
  45396. /*---------------------------------------------------------------------------*/
  45397. osStatus_t osKernelInitialize (void) {
  45398. 801364c: b480 push {r7}
  45399. 801364e: b083 sub sp, #12
  45400. 8013650: af00 add r7, sp, #0
  45401. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45402. 8013652: f3ef 8305 mrs r3, IPSR
  45403. 8013656: 603b str r3, [r7, #0]
  45404. return(result);
  45405. 8013658: 683b ldr r3, [r7, #0]
  45406. osStatus_t stat;
  45407. if (IS_IRQ()) {
  45408. 801365a: 2b00 cmp r3, #0
  45409. 801365c: d003 beq.n 8013666 <osKernelInitialize+0x1a>
  45410. stat = osErrorISR;
  45411. 801365e: f06f 0305 mvn.w r3, #5
  45412. 8013662: 607b str r3, [r7, #4]
  45413. 8013664: e00c b.n 8013680 <osKernelInitialize+0x34>
  45414. }
  45415. else {
  45416. if (KernelState == osKernelInactive) {
  45417. 8013666: 4b0a ldr r3, [pc, #40] @ (8013690 <osKernelInitialize+0x44>)
  45418. 8013668: 681b ldr r3, [r3, #0]
  45419. 801366a: 2b00 cmp r3, #0
  45420. 801366c: d105 bne.n 801367a <osKernelInitialize+0x2e>
  45421. EvrFreeRTOSSetup(0U);
  45422. #endif
  45423. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  45424. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  45425. #endif
  45426. KernelState = osKernelReady;
  45427. 801366e: 4b08 ldr r3, [pc, #32] @ (8013690 <osKernelInitialize+0x44>)
  45428. 8013670: 2201 movs r2, #1
  45429. 8013672: 601a str r2, [r3, #0]
  45430. stat = osOK;
  45431. 8013674: 2300 movs r3, #0
  45432. 8013676: 607b str r3, [r7, #4]
  45433. 8013678: e002 b.n 8013680 <osKernelInitialize+0x34>
  45434. } else {
  45435. stat = osError;
  45436. 801367a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45437. 801367e: 607b str r3, [r7, #4]
  45438. }
  45439. }
  45440. return (stat);
  45441. 8013680: 687b ldr r3, [r7, #4]
  45442. }
  45443. 8013682: 4618 mov r0, r3
  45444. 8013684: 370c adds r7, #12
  45445. 8013686: 46bd mov sp, r7
  45446. 8013688: f85d 7b04 ldr.w r7, [sp], #4
  45447. 801368c: 4770 bx lr
  45448. 801368e: bf00 nop
  45449. 8013690: 24000cac .word 0x24000cac
  45450. 08013694 <osKernelStart>:
  45451. }
  45452. return (state);
  45453. }
  45454. osStatus_t osKernelStart (void) {
  45455. 8013694: b580 push {r7, lr}
  45456. 8013696: b082 sub sp, #8
  45457. 8013698: af00 add r7, sp, #0
  45458. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45459. 801369a: f3ef 8305 mrs r3, IPSR
  45460. 801369e: 603b str r3, [r7, #0]
  45461. return(result);
  45462. 80136a0: 683b ldr r3, [r7, #0]
  45463. osStatus_t stat;
  45464. if (IS_IRQ()) {
  45465. 80136a2: 2b00 cmp r3, #0
  45466. 80136a4: d003 beq.n 80136ae <osKernelStart+0x1a>
  45467. stat = osErrorISR;
  45468. 80136a6: f06f 0305 mvn.w r3, #5
  45469. 80136aa: 607b str r3, [r7, #4]
  45470. 80136ac: e010 b.n 80136d0 <osKernelStart+0x3c>
  45471. }
  45472. else {
  45473. if (KernelState == osKernelReady) {
  45474. 80136ae: 4b0b ldr r3, [pc, #44] @ (80136dc <osKernelStart+0x48>)
  45475. 80136b0: 681b ldr r3, [r3, #0]
  45476. 80136b2: 2b01 cmp r3, #1
  45477. 80136b4: d109 bne.n 80136ca <osKernelStart+0x36>
  45478. /* Ensure SVC priority is at the reset value */
  45479. SVC_Setup();
  45480. 80136b6: f7ff ffbf bl 8013638 <SVC_Setup>
  45481. /* Change state to enable IRQ masking check */
  45482. KernelState = osKernelRunning;
  45483. 80136ba: 4b08 ldr r3, [pc, #32] @ (80136dc <osKernelStart+0x48>)
  45484. 80136bc: 2202 movs r2, #2
  45485. 80136be: 601a str r2, [r3, #0]
  45486. /* Start the kernel scheduler */
  45487. vTaskStartScheduler();
  45488. 80136c0: f002 f824 bl 801570c <vTaskStartScheduler>
  45489. stat = osOK;
  45490. 80136c4: 2300 movs r3, #0
  45491. 80136c6: 607b str r3, [r7, #4]
  45492. 80136c8: e002 b.n 80136d0 <osKernelStart+0x3c>
  45493. } else {
  45494. stat = osError;
  45495. 80136ca: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45496. 80136ce: 607b str r3, [r7, #4]
  45497. }
  45498. }
  45499. return (stat);
  45500. 80136d0: 687b ldr r3, [r7, #4]
  45501. }
  45502. 80136d2: 4618 mov r0, r3
  45503. 80136d4: 3708 adds r7, #8
  45504. 80136d6: 46bd mov sp, r7
  45505. 80136d8: bd80 pop {r7, pc}
  45506. 80136da: bf00 nop
  45507. 80136dc: 24000cac .word 0x24000cac
  45508. 080136e0 <osThreadNew>:
  45509. return (configCPU_CLOCK_HZ);
  45510. }
  45511. /*---------------------------------------------------------------------------*/
  45512. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  45513. 80136e0: b580 push {r7, lr}
  45514. 80136e2: b08e sub sp, #56 @ 0x38
  45515. 80136e4: af04 add r7, sp, #16
  45516. 80136e6: 60f8 str r0, [r7, #12]
  45517. 80136e8: 60b9 str r1, [r7, #8]
  45518. 80136ea: 607a str r2, [r7, #4]
  45519. uint32_t stack;
  45520. TaskHandle_t hTask;
  45521. UBaseType_t prio;
  45522. int32_t mem;
  45523. hTask = NULL;
  45524. 80136ec: 2300 movs r3, #0
  45525. 80136ee: 613b str r3, [r7, #16]
  45526. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45527. 80136f0: f3ef 8305 mrs r3, IPSR
  45528. 80136f4: 617b str r3, [r7, #20]
  45529. return(result);
  45530. 80136f6: 697b ldr r3, [r7, #20]
  45531. if (!IS_IRQ() && (func != NULL)) {
  45532. 80136f8: 2b00 cmp r3, #0
  45533. 80136fa: d17f bne.n 80137fc <osThreadNew+0x11c>
  45534. 80136fc: 68fb ldr r3, [r7, #12]
  45535. 80136fe: 2b00 cmp r3, #0
  45536. 8013700: d07c beq.n 80137fc <osThreadNew+0x11c>
  45537. stack = configMINIMAL_STACK_SIZE;
  45538. 8013702: f44f 7300 mov.w r3, #512 @ 0x200
  45539. 8013706: 623b str r3, [r7, #32]
  45540. prio = (UBaseType_t)osPriorityNormal;
  45541. 8013708: 2318 movs r3, #24
  45542. 801370a: 61fb str r3, [r7, #28]
  45543. name = NULL;
  45544. 801370c: 2300 movs r3, #0
  45545. 801370e: 627b str r3, [r7, #36] @ 0x24
  45546. mem = -1;
  45547. 8013710: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45548. 8013714: 61bb str r3, [r7, #24]
  45549. if (attr != NULL) {
  45550. 8013716: 687b ldr r3, [r7, #4]
  45551. 8013718: 2b00 cmp r3, #0
  45552. 801371a: d045 beq.n 80137a8 <osThreadNew+0xc8>
  45553. if (attr->name != NULL) {
  45554. 801371c: 687b ldr r3, [r7, #4]
  45555. 801371e: 681b ldr r3, [r3, #0]
  45556. 8013720: 2b00 cmp r3, #0
  45557. 8013722: d002 beq.n 801372a <osThreadNew+0x4a>
  45558. name = attr->name;
  45559. 8013724: 687b ldr r3, [r7, #4]
  45560. 8013726: 681b ldr r3, [r3, #0]
  45561. 8013728: 627b str r3, [r7, #36] @ 0x24
  45562. }
  45563. if (attr->priority != osPriorityNone) {
  45564. 801372a: 687b ldr r3, [r7, #4]
  45565. 801372c: 699b ldr r3, [r3, #24]
  45566. 801372e: 2b00 cmp r3, #0
  45567. 8013730: d002 beq.n 8013738 <osThreadNew+0x58>
  45568. prio = (UBaseType_t)attr->priority;
  45569. 8013732: 687b ldr r3, [r7, #4]
  45570. 8013734: 699b ldr r3, [r3, #24]
  45571. 8013736: 61fb str r3, [r7, #28]
  45572. }
  45573. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  45574. 8013738: 69fb ldr r3, [r7, #28]
  45575. 801373a: 2b00 cmp r3, #0
  45576. 801373c: d008 beq.n 8013750 <osThreadNew+0x70>
  45577. 801373e: 69fb ldr r3, [r7, #28]
  45578. 8013740: 2b38 cmp r3, #56 @ 0x38
  45579. 8013742: d805 bhi.n 8013750 <osThreadNew+0x70>
  45580. 8013744: 687b ldr r3, [r7, #4]
  45581. 8013746: 685b ldr r3, [r3, #4]
  45582. 8013748: f003 0301 and.w r3, r3, #1
  45583. 801374c: 2b00 cmp r3, #0
  45584. 801374e: d001 beq.n 8013754 <osThreadNew+0x74>
  45585. return (NULL);
  45586. 8013750: 2300 movs r3, #0
  45587. 8013752: e054 b.n 80137fe <osThreadNew+0x11e>
  45588. }
  45589. if (attr->stack_size > 0U) {
  45590. 8013754: 687b ldr r3, [r7, #4]
  45591. 8013756: 695b ldr r3, [r3, #20]
  45592. 8013758: 2b00 cmp r3, #0
  45593. 801375a: d003 beq.n 8013764 <osThreadNew+0x84>
  45594. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  45595. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  45596. stack = attr->stack_size / sizeof(StackType_t);
  45597. 801375c: 687b ldr r3, [r7, #4]
  45598. 801375e: 695b ldr r3, [r3, #20]
  45599. 8013760: 089b lsrs r3, r3, #2
  45600. 8013762: 623b str r3, [r7, #32]
  45601. }
  45602. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  45603. 8013764: 687b ldr r3, [r7, #4]
  45604. 8013766: 689b ldr r3, [r3, #8]
  45605. 8013768: 2b00 cmp r3, #0
  45606. 801376a: d00e beq.n 801378a <osThreadNew+0xaa>
  45607. 801376c: 687b ldr r3, [r7, #4]
  45608. 801376e: 68db ldr r3, [r3, #12]
  45609. 8013770: 2ba7 cmp r3, #167 @ 0xa7
  45610. 8013772: d90a bls.n 801378a <osThreadNew+0xaa>
  45611. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  45612. 8013774: 687b ldr r3, [r7, #4]
  45613. 8013776: 691b ldr r3, [r3, #16]
  45614. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  45615. 8013778: 2b00 cmp r3, #0
  45616. 801377a: d006 beq.n 801378a <osThreadNew+0xaa>
  45617. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  45618. 801377c: 687b ldr r3, [r7, #4]
  45619. 801377e: 695b ldr r3, [r3, #20]
  45620. 8013780: 2b00 cmp r3, #0
  45621. 8013782: d002 beq.n 801378a <osThreadNew+0xaa>
  45622. mem = 1;
  45623. 8013784: 2301 movs r3, #1
  45624. 8013786: 61bb str r3, [r7, #24]
  45625. 8013788: e010 b.n 80137ac <osThreadNew+0xcc>
  45626. }
  45627. else {
  45628. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  45629. 801378a: 687b ldr r3, [r7, #4]
  45630. 801378c: 689b ldr r3, [r3, #8]
  45631. 801378e: 2b00 cmp r3, #0
  45632. 8013790: d10c bne.n 80137ac <osThreadNew+0xcc>
  45633. 8013792: 687b ldr r3, [r7, #4]
  45634. 8013794: 68db ldr r3, [r3, #12]
  45635. 8013796: 2b00 cmp r3, #0
  45636. 8013798: d108 bne.n 80137ac <osThreadNew+0xcc>
  45637. 801379a: 687b ldr r3, [r7, #4]
  45638. 801379c: 691b ldr r3, [r3, #16]
  45639. 801379e: 2b00 cmp r3, #0
  45640. 80137a0: d104 bne.n 80137ac <osThreadNew+0xcc>
  45641. mem = 0;
  45642. 80137a2: 2300 movs r3, #0
  45643. 80137a4: 61bb str r3, [r7, #24]
  45644. 80137a6: e001 b.n 80137ac <osThreadNew+0xcc>
  45645. }
  45646. }
  45647. }
  45648. else {
  45649. mem = 0;
  45650. 80137a8: 2300 movs r3, #0
  45651. 80137aa: 61bb str r3, [r7, #24]
  45652. }
  45653. if (mem == 1) {
  45654. 80137ac: 69bb ldr r3, [r7, #24]
  45655. 80137ae: 2b01 cmp r3, #1
  45656. 80137b0: d110 bne.n 80137d4 <osThreadNew+0xf4>
  45657. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  45658. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  45659. 80137b2: 687b ldr r3, [r7, #4]
  45660. 80137b4: 691b ldr r3, [r3, #16]
  45661. (StaticTask_t *)attr->cb_mem);
  45662. 80137b6: 687a ldr r2, [r7, #4]
  45663. 80137b8: 6892 ldr r2, [r2, #8]
  45664. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  45665. 80137ba: 9202 str r2, [sp, #8]
  45666. 80137bc: 9301 str r3, [sp, #4]
  45667. 80137be: 69fb ldr r3, [r7, #28]
  45668. 80137c0: 9300 str r3, [sp, #0]
  45669. 80137c2: 68bb ldr r3, [r7, #8]
  45670. 80137c4: 6a3a ldr r2, [r7, #32]
  45671. 80137c6: 6a79 ldr r1, [r7, #36] @ 0x24
  45672. 80137c8: 68f8 ldr r0, [r7, #12]
  45673. 80137ca: f001 fdac bl 8015326 <xTaskCreateStatic>
  45674. 80137ce: 4603 mov r3, r0
  45675. 80137d0: 613b str r3, [r7, #16]
  45676. 80137d2: e013 b.n 80137fc <osThreadNew+0x11c>
  45677. #endif
  45678. }
  45679. else {
  45680. if (mem == 0) {
  45681. 80137d4: 69bb ldr r3, [r7, #24]
  45682. 80137d6: 2b00 cmp r3, #0
  45683. 80137d8: d110 bne.n 80137fc <osThreadNew+0x11c>
  45684. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  45685. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  45686. 80137da: 6a3b ldr r3, [r7, #32]
  45687. 80137dc: b29a uxth r2, r3
  45688. 80137de: f107 0310 add.w r3, r7, #16
  45689. 80137e2: 9301 str r3, [sp, #4]
  45690. 80137e4: 69fb ldr r3, [r7, #28]
  45691. 80137e6: 9300 str r3, [sp, #0]
  45692. 80137e8: 68bb ldr r3, [r7, #8]
  45693. 80137ea: 6a79 ldr r1, [r7, #36] @ 0x24
  45694. 80137ec: 68f8 ldr r0, [r7, #12]
  45695. 80137ee: f001 fdfa bl 80153e6 <xTaskCreate>
  45696. 80137f2: 4603 mov r3, r0
  45697. 80137f4: 2b01 cmp r3, #1
  45698. 80137f6: d001 beq.n 80137fc <osThreadNew+0x11c>
  45699. hTask = NULL;
  45700. 80137f8: 2300 movs r3, #0
  45701. 80137fa: 613b str r3, [r7, #16]
  45702. #endif
  45703. }
  45704. }
  45705. }
  45706. return ((osThreadId_t)hTask);
  45707. 80137fc: 693b ldr r3, [r7, #16]
  45708. }
  45709. 80137fe: 4618 mov r0, r3
  45710. 8013800: 3728 adds r7, #40 @ 0x28
  45711. 8013802: 46bd mov sp, r7
  45712. 8013804: bd80 pop {r7, pc}
  45713. 08013806 <osDelay>:
  45714. /* Return flags before clearing */
  45715. return (rflags);
  45716. }
  45717. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  45718. osStatus_t osDelay (uint32_t ticks) {
  45719. 8013806: b580 push {r7, lr}
  45720. 8013808: b084 sub sp, #16
  45721. 801380a: af00 add r7, sp, #0
  45722. 801380c: 6078 str r0, [r7, #4]
  45723. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45724. 801380e: f3ef 8305 mrs r3, IPSR
  45725. 8013812: 60bb str r3, [r7, #8]
  45726. return(result);
  45727. 8013814: 68bb ldr r3, [r7, #8]
  45728. osStatus_t stat;
  45729. if (IS_IRQ()) {
  45730. 8013816: 2b00 cmp r3, #0
  45731. 8013818: d003 beq.n 8013822 <osDelay+0x1c>
  45732. stat = osErrorISR;
  45733. 801381a: f06f 0305 mvn.w r3, #5
  45734. 801381e: 60fb str r3, [r7, #12]
  45735. 8013820: e007 b.n 8013832 <osDelay+0x2c>
  45736. }
  45737. else {
  45738. stat = osOK;
  45739. 8013822: 2300 movs r3, #0
  45740. 8013824: 60fb str r3, [r7, #12]
  45741. if (ticks != 0U) {
  45742. 8013826: 687b ldr r3, [r7, #4]
  45743. 8013828: 2b00 cmp r3, #0
  45744. 801382a: d002 beq.n 8013832 <osDelay+0x2c>
  45745. vTaskDelay(ticks);
  45746. 801382c: 6878 ldr r0, [r7, #4]
  45747. 801382e: f001 ff37 bl 80156a0 <vTaskDelay>
  45748. }
  45749. }
  45750. return (stat);
  45751. 8013832: 68fb ldr r3, [r7, #12]
  45752. }
  45753. 8013834: 4618 mov r0, r3
  45754. 8013836: 3710 adds r7, #16
  45755. 8013838: 46bd mov sp, r7
  45756. 801383a: bd80 pop {r7, pc}
  45757. 0801383c <TimerCallback>:
  45758. }
  45759. /*---------------------------------------------------------------------------*/
  45760. #if (configUSE_OS2_TIMER == 1)
  45761. static void TimerCallback (TimerHandle_t hTimer) {
  45762. 801383c: b580 push {r7, lr}
  45763. 801383e: b084 sub sp, #16
  45764. 8013840: af00 add r7, sp, #0
  45765. 8013842: 6078 str r0, [r7, #4]
  45766. TimerCallback_t *callb;
  45767. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  45768. 8013844: 6878 ldr r0, [r7, #4]
  45769. 8013846: f003 fc3d bl 80170c4 <pvTimerGetTimerID>
  45770. 801384a: 60f8 str r0, [r7, #12]
  45771. if (callb != NULL) {
  45772. 801384c: 68fb ldr r3, [r7, #12]
  45773. 801384e: 2b00 cmp r3, #0
  45774. 8013850: d005 beq.n 801385e <TimerCallback+0x22>
  45775. callb->func (callb->arg);
  45776. 8013852: 68fb ldr r3, [r7, #12]
  45777. 8013854: 681b ldr r3, [r3, #0]
  45778. 8013856: 68fa ldr r2, [r7, #12]
  45779. 8013858: 6852 ldr r2, [r2, #4]
  45780. 801385a: 4610 mov r0, r2
  45781. 801385c: 4798 blx r3
  45782. }
  45783. }
  45784. 801385e: bf00 nop
  45785. 8013860: 3710 adds r7, #16
  45786. 8013862: 46bd mov sp, r7
  45787. 8013864: bd80 pop {r7, pc}
  45788. ...
  45789. 08013868 <osTimerNew>:
  45790. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  45791. 8013868: b580 push {r7, lr}
  45792. 801386a: b08c sub sp, #48 @ 0x30
  45793. 801386c: af02 add r7, sp, #8
  45794. 801386e: 60f8 str r0, [r7, #12]
  45795. 8013870: 607a str r2, [r7, #4]
  45796. 8013872: 603b str r3, [r7, #0]
  45797. 8013874: 460b mov r3, r1
  45798. 8013876: 72fb strb r3, [r7, #11]
  45799. TimerHandle_t hTimer;
  45800. TimerCallback_t *callb;
  45801. UBaseType_t reload;
  45802. int32_t mem;
  45803. hTimer = NULL;
  45804. 8013878: 2300 movs r3, #0
  45805. 801387a: 623b str r3, [r7, #32]
  45806. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45807. 801387c: f3ef 8305 mrs r3, IPSR
  45808. 8013880: 613b str r3, [r7, #16]
  45809. return(result);
  45810. 8013882: 693b ldr r3, [r7, #16]
  45811. if (!IS_IRQ() && (func != NULL)) {
  45812. 8013884: 2b00 cmp r3, #0
  45813. 8013886: d163 bne.n 8013950 <osTimerNew+0xe8>
  45814. 8013888: 68fb ldr r3, [r7, #12]
  45815. 801388a: 2b00 cmp r3, #0
  45816. 801388c: d060 beq.n 8013950 <osTimerNew+0xe8>
  45817. /* Allocate memory to store callback function and argument */
  45818. callb = pvPortMalloc (sizeof(TimerCallback_t));
  45819. 801388e: 2008 movs r0, #8
  45820. 8013890: f003 fe8c bl 80175ac <pvPortMalloc>
  45821. 8013894: 6178 str r0, [r7, #20]
  45822. if (callb != NULL) {
  45823. 8013896: 697b ldr r3, [r7, #20]
  45824. 8013898: 2b00 cmp r3, #0
  45825. 801389a: d059 beq.n 8013950 <osTimerNew+0xe8>
  45826. callb->func = func;
  45827. 801389c: 697b ldr r3, [r7, #20]
  45828. 801389e: 68fa ldr r2, [r7, #12]
  45829. 80138a0: 601a str r2, [r3, #0]
  45830. callb->arg = argument;
  45831. 80138a2: 697b ldr r3, [r7, #20]
  45832. 80138a4: 687a ldr r2, [r7, #4]
  45833. 80138a6: 605a str r2, [r3, #4]
  45834. if (type == osTimerOnce) {
  45835. 80138a8: 7afb ldrb r3, [r7, #11]
  45836. 80138aa: 2b00 cmp r3, #0
  45837. 80138ac: d102 bne.n 80138b4 <osTimerNew+0x4c>
  45838. reload = pdFALSE;
  45839. 80138ae: 2300 movs r3, #0
  45840. 80138b0: 61fb str r3, [r7, #28]
  45841. 80138b2: e001 b.n 80138b8 <osTimerNew+0x50>
  45842. } else {
  45843. reload = pdTRUE;
  45844. 80138b4: 2301 movs r3, #1
  45845. 80138b6: 61fb str r3, [r7, #28]
  45846. }
  45847. mem = -1;
  45848. 80138b8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45849. 80138bc: 61bb str r3, [r7, #24]
  45850. name = NULL;
  45851. 80138be: 2300 movs r3, #0
  45852. 80138c0: 627b str r3, [r7, #36] @ 0x24
  45853. if (attr != NULL) {
  45854. 80138c2: 683b ldr r3, [r7, #0]
  45855. 80138c4: 2b00 cmp r3, #0
  45856. 80138c6: d01c beq.n 8013902 <osTimerNew+0x9a>
  45857. if (attr->name != NULL) {
  45858. 80138c8: 683b ldr r3, [r7, #0]
  45859. 80138ca: 681b ldr r3, [r3, #0]
  45860. 80138cc: 2b00 cmp r3, #0
  45861. 80138ce: d002 beq.n 80138d6 <osTimerNew+0x6e>
  45862. name = attr->name;
  45863. 80138d0: 683b ldr r3, [r7, #0]
  45864. 80138d2: 681b ldr r3, [r3, #0]
  45865. 80138d4: 627b str r3, [r7, #36] @ 0x24
  45866. }
  45867. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  45868. 80138d6: 683b ldr r3, [r7, #0]
  45869. 80138d8: 689b ldr r3, [r3, #8]
  45870. 80138da: 2b00 cmp r3, #0
  45871. 80138dc: d006 beq.n 80138ec <osTimerNew+0x84>
  45872. 80138de: 683b ldr r3, [r7, #0]
  45873. 80138e0: 68db ldr r3, [r3, #12]
  45874. 80138e2: 2b2b cmp r3, #43 @ 0x2b
  45875. 80138e4: d902 bls.n 80138ec <osTimerNew+0x84>
  45876. mem = 1;
  45877. 80138e6: 2301 movs r3, #1
  45878. 80138e8: 61bb str r3, [r7, #24]
  45879. 80138ea: e00c b.n 8013906 <osTimerNew+0x9e>
  45880. }
  45881. else {
  45882. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  45883. 80138ec: 683b ldr r3, [r7, #0]
  45884. 80138ee: 689b ldr r3, [r3, #8]
  45885. 80138f0: 2b00 cmp r3, #0
  45886. 80138f2: d108 bne.n 8013906 <osTimerNew+0x9e>
  45887. 80138f4: 683b ldr r3, [r7, #0]
  45888. 80138f6: 68db ldr r3, [r3, #12]
  45889. 80138f8: 2b00 cmp r3, #0
  45890. 80138fa: d104 bne.n 8013906 <osTimerNew+0x9e>
  45891. mem = 0;
  45892. 80138fc: 2300 movs r3, #0
  45893. 80138fe: 61bb str r3, [r7, #24]
  45894. 8013900: e001 b.n 8013906 <osTimerNew+0x9e>
  45895. }
  45896. }
  45897. }
  45898. else {
  45899. mem = 0;
  45900. 8013902: 2300 movs r3, #0
  45901. 8013904: 61bb str r3, [r7, #24]
  45902. }
  45903. if (mem == 1) {
  45904. 8013906: 69bb ldr r3, [r7, #24]
  45905. 8013908: 2b01 cmp r3, #1
  45906. 801390a: d10c bne.n 8013926 <osTimerNew+0xbe>
  45907. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  45908. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  45909. 801390c: 683b ldr r3, [r7, #0]
  45910. 801390e: 689b ldr r3, [r3, #8]
  45911. 8013910: 9301 str r3, [sp, #4]
  45912. 8013912: 4b12 ldr r3, [pc, #72] @ (801395c <osTimerNew+0xf4>)
  45913. 8013914: 9300 str r3, [sp, #0]
  45914. 8013916: 697b ldr r3, [r7, #20]
  45915. 8013918: 69fa ldr r2, [r7, #28]
  45916. 801391a: 2101 movs r1, #1
  45917. 801391c: 6a78 ldr r0, [r7, #36] @ 0x24
  45918. 801391e: f003 f81a bl 8016956 <xTimerCreateStatic>
  45919. 8013922: 6238 str r0, [r7, #32]
  45920. 8013924: e00b b.n 801393e <osTimerNew+0xd6>
  45921. #endif
  45922. }
  45923. else {
  45924. if (mem == 0) {
  45925. 8013926: 69bb ldr r3, [r7, #24]
  45926. 8013928: 2b00 cmp r3, #0
  45927. 801392a: d108 bne.n 801393e <osTimerNew+0xd6>
  45928. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  45929. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  45930. 801392c: 4b0b ldr r3, [pc, #44] @ (801395c <osTimerNew+0xf4>)
  45931. 801392e: 9300 str r3, [sp, #0]
  45932. 8013930: 697b ldr r3, [r7, #20]
  45933. 8013932: 69fa ldr r2, [r7, #28]
  45934. 8013934: 2101 movs r1, #1
  45935. 8013936: 6a78 ldr r0, [r7, #36] @ 0x24
  45936. 8013938: f002 ffec bl 8016914 <xTimerCreate>
  45937. 801393c: 6238 str r0, [r7, #32]
  45938. #endif
  45939. }
  45940. }
  45941. if ((hTimer == NULL) && (callb != NULL)) {
  45942. 801393e: 6a3b ldr r3, [r7, #32]
  45943. 8013940: 2b00 cmp r3, #0
  45944. 8013942: d105 bne.n 8013950 <osTimerNew+0xe8>
  45945. 8013944: 697b ldr r3, [r7, #20]
  45946. 8013946: 2b00 cmp r3, #0
  45947. 8013948: d002 beq.n 8013950 <osTimerNew+0xe8>
  45948. vPortFree (callb);
  45949. 801394a: 6978 ldr r0, [r7, #20]
  45950. 801394c: f003 fefc bl 8017748 <vPortFree>
  45951. }
  45952. }
  45953. }
  45954. return ((osTimerId_t)hTimer);
  45955. 8013950: 6a3b ldr r3, [r7, #32]
  45956. }
  45957. 8013952: 4618 mov r0, r3
  45958. 8013954: 3728 adds r7, #40 @ 0x28
  45959. 8013956: 46bd mov sp, r7
  45960. 8013958: bd80 pop {r7, pc}
  45961. 801395a: bf00 nop
  45962. 801395c: 0801383d .word 0x0801383d
  45963. 08013960 <osTimerStart>:
  45964. }
  45965. return (p);
  45966. }
  45967. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
  45968. 8013960: b580 push {r7, lr}
  45969. 8013962: b088 sub sp, #32
  45970. 8013964: af02 add r7, sp, #8
  45971. 8013966: 6078 str r0, [r7, #4]
  45972. 8013968: 6039 str r1, [r7, #0]
  45973. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  45974. 801396a: 687b ldr r3, [r7, #4]
  45975. 801396c: 613b str r3, [r7, #16]
  45976. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45977. 801396e: f3ef 8305 mrs r3, IPSR
  45978. 8013972: 60fb str r3, [r7, #12]
  45979. return(result);
  45980. 8013974: 68fb ldr r3, [r7, #12]
  45981. osStatus_t stat;
  45982. if (IS_IRQ()) {
  45983. 8013976: 2b00 cmp r3, #0
  45984. 8013978: d003 beq.n 8013982 <osTimerStart+0x22>
  45985. stat = osErrorISR;
  45986. 801397a: f06f 0305 mvn.w r3, #5
  45987. 801397e: 617b str r3, [r7, #20]
  45988. 8013980: e017 b.n 80139b2 <osTimerStart+0x52>
  45989. }
  45990. else if (hTimer == NULL) {
  45991. 8013982: 693b ldr r3, [r7, #16]
  45992. 8013984: 2b00 cmp r3, #0
  45993. 8013986: d103 bne.n 8013990 <osTimerStart+0x30>
  45994. stat = osErrorParameter;
  45995. 8013988: f06f 0303 mvn.w r3, #3
  45996. 801398c: 617b str r3, [r7, #20]
  45997. 801398e: e010 b.n 80139b2 <osTimerStart+0x52>
  45998. }
  45999. else {
  46000. if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
  46001. 8013990: 2300 movs r3, #0
  46002. 8013992: 9300 str r3, [sp, #0]
  46003. 8013994: 2300 movs r3, #0
  46004. 8013996: 683a ldr r2, [r7, #0]
  46005. 8013998: 2104 movs r1, #4
  46006. 801399a: 6938 ldr r0, [r7, #16]
  46007. 801399c: f003 f858 bl 8016a50 <xTimerGenericCommand>
  46008. 80139a0: 4603 mov r3, r0
  46009. 80139a2: 2b01 cmp r3, #1
  46010. 80139a4: d102 bne.n 80139ac <osTimerStart+0x4c>
  46011. stat = osOK;
  46012. 80139a6: 2300 movs r3, #0
  46013. 80139a8: 617b str r3, [r7, #20]
  46014. 80139aa: e002 b.n 80139b2 <osTimerStart+0x52>
  46015. } else {
  46016. stat = osErrorResource;
  46017. 80139ac: f06f 0302 mvn.w r3, #2
  46018. 80139b0: 617b str r3, [r7, #20]
  46019. }
  46020. }
  46021. return (stat);
  46022. 80139b2: 697b ldr r3, [r7, #20]
  46023. }
  46024. 80139b4: 4618 mov r0, r3
  46025. 80139b6: 3718 adds r7, #24
  46026. 80139b8: 46bd mov sp, r7
  46027. 80139ba: bd80 pop {r7, pc}
  46028. 080139bc <osTimerStop>:
  46029. osStatus_t osTimerStop (osTimerId_t timer_id) {
  46030. 80139bc: b580 push {r7, lr}
  46031. 80139be: b088 sub sp, #32
  46032. 80139c0: af02 add r7, sp, #8
  46033. 80139c2: 6078 str r0, [r7, #4]
  46034. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  46035. 80139c4: 687b ldr r3, [r7, #4]
  46036. 80139c6: 613b str r3, [r7, #16]
  46037. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46038. 80139c8: f3ef 8305 mrs r3, IPSR
  46039. 80139cc: 60fb str r3, [r7, #12]
  46040. return(result);
  46041. 80139ce: 68fb ldr r3, [r7, #12]
  46042. osStatus_t stat;
  46043. if (IS_IRQ()) {
  46044. 80139d0: 2b00 cmp r3, #0
  46045. 80139d2: d003 beq.n 80139dc <osTimerStop+0x20>
  46046. stat = osErrorISR;
  46047. 80139d4: f06f 0305 mvn.w r3, #5
  46048. 80139d8: 617b str r3, [r7, #20]
  46049. 80139da: e021 b.n 8013a20 <osTimerStop+0x64>
  46050. }
  46051. else if (hTimer == NULL) {
  46052. 80139dc: 693b ldr r3, [r7, #16]
  46053. 80139de: 2b00 cmp r3, #0
  46054. 80139e0: d103 bne.n 80139ea <osTimerStop+0x2e>
  46055. stat = osErrorParameter;
  46056. 80139e2: f06f 0303 mvn.w r3, #3
  46057. 80139e6: 617b str r3, [r7, #20]
  46058. 80139e8: e01a b.n 8013a20 <osTimerStop+0x64>
  46059. }
  46060. else {
  46061. if (xTimerIsTimerActive (hTimer) == pdFALSE) {
  46062. 80139ea: 6938 ldr r0, [r7, #16]
  46063. 80139ec: f003 fb40 bl 8017070 <xTimerIsTimerActive>
  46064. 80139f0: 4603 mov r3, r0
  46065. 80139f2: 2b00 cmp r3, #0
  46066. 80139f4: d103 bne.n 80139fe <osTimerStop+0x42>
  46067. stat = osErrorResource;
  46068. 80139f6: f06f 0302 mvn.w r3, #2
  46069. 80139fa: 617b str r3, [r7, #20]
  46070. 80139fc: e010 b.n 8013a20 <osTimerStop+0x64>
  46071. }
  46072. else {
  46073. if (xTimerStop (hTimer, 0) == pdPASS) {
  46074. 80139fe: 2300 movs r3, #0
  46075. 8013a00: 9300 str r3, [sp, #0]
  46076. 8013a02: 2300 movs r3, #0
  46077. 8013a04: 2200 movs r2, #0
  46078. 8013a06: 2103 movs r1, #3
  46079. 8013a08: 6938 ldr r0, [r7, #16]
  46080. 8013a0a: f003 f821 bl 8016a50 <xTimerGenericCommand>
  46081. 8013a0e: 4603 mov r3, r0
  46082. 8013a10: 2b01 cmp r3, #1
  46083. 8013a12: d102 bne.n 8013a1a <osTimerStop+0x5e>
  46084. stat = osOK;
  46085. 8013a14: 2300 movs r3, #0
  46086. 8013a16: 617b str r3, [r7, #20]
  46087. 8013a18: e002 b.n 8013a20 <osTimerStop+0x64>
  46088. } else {
  46089. stat = osError;
  46090. 8013a1a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46091. 8013a1e: 617b str r3, [r7, #20]
  46092. }
  46093. }
  46094. }
  46095. return (stat);
  46096. 8013a20: 697b ldr r3, [r7, #20]
  46097. }
  46098. 8013a22: 4618 mov r0, r3
  46099. 8013a24: 3718 adds r7, #24
  46100. 8013a26: 46bd mov sp, r7
  46101. 8013a28: bd80 pop {r7, pc}
  46102. 08013a2a <osMutexNew>:
  46103. }
  46104. /*---------------------------------------------------------------------------*/
  46105. #if (configUSE_OS2_MUTEX == 1)
  46106. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  46107. 8013a2a: b580 push {r7, lr}
  46108. 8013a2c: b088 sub sp, #32
  46109. 8013a2e: af00 add r7, sp, #0
  46110. 8013a30: 6078 str r0, [r7, #4]
  46111. int32_t mem;
  46112. #if (configQUEUE_REGISTRY_SIZE > 0)
  46113. const char *name;
  46114. #endif
  46115. hMutex = NULL;
  46116. 8013a32: 2300 movs r3, #0
  46117. 8013a34: 61fb str r3, [r7, #28]
  46118. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46119. 8013a36: f3ef 8305 mrs r3, IPSR
  46120. 8013a3a: 60bb str r3, [r7, #8]
  46121. return(result);
  46122. 8013a3c: 68bb ldr r3, [r7, #8]
  46123. if (!IS_IRQ()) {
  46124. 8013a3e: 2b00 cmp r3, #0
  46125. 8013a40: d174 bne.n 8013b2c <osMutexNew+0x102>
  46126. if (attr != NULL) {
  46127. 8013a42: 687b ldr r3, [r7, #4]
  46128. 8013a44: 2b00 cmp r3, #0
  46129. 8013a46: d003 beq.n 8013a50 <osMutexNew+0x26>
  46130. type = attr->attr_bits;
  46131. 8013a48: 687b ldr r3, [r7, #4]
  46132. 8013a4a: 685b ldr r3, [r3, #4]
  46133. 8013a4c: 61bb str r3, [r7, #24]
  46134. 8013a4e: e001 b.n 8013a54 <osMutexNew+0x2a>
  46135. } else {
  46136. type = 0U;
  46137. 8013a50: 2300 movs r3, #0
  46138. 8013a52: 61bb str r3, [r7, #24]
  46139. }
  46140. if ((type & osMutexRecursive) == osMutexRecursive) {
  46141. 8013a54: 69bb ldr r3, [r7, #24]
  46142. 8013a56: f003 0301 and.w r3, r3, #1
  46143. 8013a5a: 2b00 cmp r3, #0
  46144. 8013a5c: d002 beq.n 8013a64 <osMutexNew+0x3a>
  46145. rmtx = 1U;
  46146. 8013a5e: 2301 movs r3, #1
  46147. 8013a60: 617b str r3, [r7, #20]
  46148. 8013a62: e001 b.n 8013a68 <osMutexNew+0x3e>
  46149. } else {
  46150. rmtx = 0U;
  46151. 8013a64: 2300 movs r3, #0
  46152. 8013a66: 617b str r3, [r7, #20]
  46153. }
  46154. if ((type & osMutexRobust) != osMutexRobust) {
  46155. 8013a68: 69bb ldr r3, [r7, #24]
  46156. 8013a6a: f003 0308 and.w r3, r3, #8
  46157. 8013a6e: 2b00 cmp r3, #0
  46158. 8013a70: d15c bne.n 8013b2c <osMutexNew+0x102>
  46159. mem = -1;
  46160. 8013a72: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46161. 8013a76: 613b str r3, [r7, #16]
  46162. if (attr != NULL) {
  46163. 8013a78: 687b ldr r3, [r7, #4]
  46164. 8013a7a: 2b00 cmp r3, #0
  46165. 8013a7c: d015 beq.n 8013aaa <osMutexNew+0x80>
  46166. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  46167. 8013a7e: 687b ldr r3, [r7, #4]
  46168. 8013a80: 689b ldr r3, [r3, #8]
  46169. 8013a82: 2b00 cmp r3, #0
  46170. 8013a84: d006 beq.n 8013a94 <osMutexNew+0x6a>
  46171. 8013a86: 687b ldr r3, [r7, #4]
  46172. 8013a88: 68db ldr r3, [r3, #12]
  46173. 8013a8a: 2b4f cmp r3, #79 @ 0x4f
  46174. 8013a8c: d902 bls.n 8013a94 <osMutexNew+0x6a>
  46175. mem = 1;
  46176. 8013a8e: 2301 movs r3, #1
  46177. 8013a90: 613b str r3, [r7, #16]
  46178. 8013a92: e00c b.n 8013aae <osMutexNew+0x84>
  46179. }
  46180. else {
  46181. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  46182. 8013a94: 687b ldr r3, [r7, #4]
  46183. 8013a96: 689b ldr r3, [r3, #8]
  46184. 8013a98: 2b00 cmp r3, #0
  46185. 8013a9a: d108 bne.n 8013aae <osMutexNew+0x84>
  46186. 8013a9c: 687b ldr r3, [r7, #4]
  46187. 8013a9e: 68db ldr r3, [r3, #12]
  46188. 8013aa0: 2b00 cmp r3, #0
  46189. 8013aa2: d104 bne.n 8013aae <osMutexNew+0x84>
  46190. mem = 0;
  46191. 8013aa4: 2300 movs r3, #0
  46192. 8013aa6: 613b str r3, [r7, #16]
  46193. 8013aa8: e001 b.n 8013aae <osMutexNew+0x84>
  46194. }
  46195. }
  46196. }
  46197. else {
  46198. mem = 0;
  46199. 8013aaa: 2300 movs r3, #0
  46200. 8013aac: 613b str r3, [r7, #16]
  46201. }
  46202. if (mem == 1) {
  46203. 8013aae: 693b ldr r3, [r7, #16]
  46204. 8013ab0: 2b01 cmp r3, #1
  46205. 8013ab2: d112 bne.n 8013ada <osMutexNew+0xb0>
  46206. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46207. if (rmtx != 0U) {
  46208. 8013ab4: 697b ldr r3, [r7, #20]
  46209. 8013ab6: 2b00 cmp r3, #0
  46210. 8013ab8: d007 beq.n 8013aca <osMutexNew+0xa0>
  46211. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46212. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  46213. 8013aba: 687b ldr r3, [r7, #4]
  46214. 8013abc: 689b ldr r3, [r3, #8]
  46215. 8013abe: 4619 mov r1, r3
  46216. 8013ac0: 2004 movs r0, #4
  46217. 8013ac2: f000 fc50 bl 8014366 <xQueueCreateMutexStatic>
  46218. 8013ac6: 61f8 str r0, [r7, #28]
  46219. 8013ac8: e016 b.n 8013af8 <osMutexNew+0xce>
  46220. #endif
  46221. }
  46222. else {
  46223. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  46224. 8013aca: 687b ldr r3, [r7, #4]
  46225. 8013acc: 689b ldr r3, [r3, #8]
  46226. 8013ace: 4619 mov r1, r3
  46227. 8013ad0: 2001 movs r0, #1
  46228. 8013ad2: f000 fc48 bl 8014366 <xQueueCreateMutexStatic>
  46229. 8013ad6: 61f8 str r0, [r7, #28]
  46230. 8013ad8: e00e b.n 8013af8 <osMutexNew+0xce>
  46231. }
  46232. #endif
  46233. }
  46234. else {
  46235. if (mem == 0) {
  46236. 8013ada: 693b ldr r3, [r7, #16]
  46237. 8013adc: 2b00 cmp r3, #0
  46238. 8013ade: d10b bne.n 8013af8 <osMutexNew+0xce>
  46239. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46240. if (rmtx != 0U) {
  46241. 8013ae0: 697b ldr r3, [r7, #20]
  46242. 8013ae2: 2b00 cmp r3, #0
  46243. 8013ae4: d004 beq.n 8013af0 <osMutexNew+0xc6>
  46244. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46245. hMutex = xSemaphoreCreateRecursiveMutex ();
  46246. 8013ae6: 2004 movs r0, #4
  46247. 8013ae8: f000 fc25 bl 8014336 <xQueueCreateMutex>
  46248. 8013aec: 61f8 str r0, [r7, #28]
  46249. 8013aee: e003 b.n 8013af8 <osMutexNew+0xce>
  46250. #endif
  46251. } else {
  46252. hMutex = xSemaphoreCreateMutex ();
  46253. 8013af0: 2001 movs r0, #1
  46254. 8013af2: f000 fc20 bl 8014336 <xQueueCreateMutex>
  46255. 8013af6: 61f8 str r0, [r7, #28]
  46256. #endif
  46257. }
  46258. }
  46259. #if (configQUEUE_REGISTRY_SIZE > 0)
  46260. if (hMutex != NULL) {
  46261. 8013af8: 69fb ldr r3, [r7, #28]
  46262. 8013afa: 2b00 cmp r3, #0
  46263. 8013afc: d00c beq.n 8013b18 <osMutexNew+0xee>
  46264. if (attr != NULL) {
  46265. 8013afe: 687b ldr r3, [r7, #4]
  46266. 8013b00: 2b00 cmp r3, #0
  46267. 8013b02: d003 beq.n 8013b0c <osMutexNew+0xe2>
  46268. name = attr->name;
  46269. 8013b04: 687b ldr r3, [r7, #4]
  46270. 8013b06: 681b ldr r3, [r3, #0]
  46271. 8013b08: 60fb str r3, [r7, #12]
  46272. 8013b0a: e001 b.n 8013b10 <osMutexNew+0xe6>
  46273. } else {
  46274. name = NULL;
  46275. 8013b0c: 2300 movs r3, #0
  46276. 8013b0e: 60fb str r3, [r7, #12]
  46277. }
  46278. vQueueAddToRegistry (hMutex, name);
  46279. 8013b10: 68f9 ldr r1, [r7, #12]
  46280. 8013b12: 69f8 ldr r0, [r7, #28]
  46281. 8013b14: f001 f9ea bl 8014eec <vQueueAddToRegistry>
  46282. }
  46283. #endif
  46284. if ((hMutex != NULL) && (rmtx != 0U)) {
  46285. 8013b18: 69fb ldr r3, [r7, #28]
  46286. 8013b1a: 2b00 cmp r3, #0
  46287. 8013b1c: d006 beq.n 8013b2c <osMutexNew+0x102>
  46288. 8013b1e: 697b ldr r3, [r7, #20]
  46289. 8013b20: 2b00 cmp r3, #0
  46290. 8013b22: d003 beq.n 8013b2c <osMutexNew+0x102>
  46291. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  46292. 8013b24: 69fb ldr r3, [r7, #28]
  46293. 8013b26: f043 0301 orr.w r3, r3, #1
  46294. 8013b2a: 61fb str r3, [r7, #28]
  46295. }
  46296. }
  46297. }
  46298. return ((osMutexId_t)hMutex);
  46299. 8013b2c: 69fb ldr r3, [r7, #28]
  46300. }
  46301. 8013b2e: 4618 mov r0, r3
  46302. 8013b30: 3720 adds r7, #32
  46303. 8013b32: 46bd mov sp, r7
  46304. 8013b34: bd80 pop {r7, pc}
  46305. 08013b36 <osMutexAcquire>:
  46306. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  46307. 8013b36: b580 push {r7, lr}
  46308. 8013b38: b086 sub sp, #24
  46309. 8013b3a: af00 add r7, sp, #0
  46310. 8013b3c: 6078 str r0, [r7, #4]
  46311. 8013b3e: 6039 str r1, [r7, #0]
  46312. SemaphoreHandle_t hMutex;
  46313. osStatus_t stat;
  46314. uint32_t rmtx;
  46315. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  46316. 8013b40: 687b ldr r3, [r7, #4]
  46317. 8013b42: f023 0301 bic.w r3, r3, #1
  46318. 8013b46: 613b str r3, [r7, #16]
  46319. rmtx = (uint32_t)mutex_id & 1U;
  46320. 8013b48: 687b ldr r3, [r7, #4]
  46321. 8013b4a: f003 0301 and.w r3, r3, #1
  46322. 8013b4e: 60fb str r3, [r7, #12]
  46323. stat = osOK;
  46324. 8013b50: 2300 movs r3, #0
  46325. 8013b52: 617b str r3, [r7, #20]
  46326. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46327. 8013b54: f3ef 8305 mrs r3, IPSR
  46328. 8013b58: 60bb str r3, [r7, #8]
  46329. return(result);
  46330. 8013b5a: 68bb ldr r3, [r7, #8]
  46331. if (IS_IRQ()) {
  46332. 8013b5c: 2b00 cmp r3, #0
  46333. 8013b5e: d003 beq.n 8013b68 <osMutexAcquire+0x32>
  46334. stat = osErrorISR;
  46335. 8013b60: f06f 0305 mvn.w r3, #5
  46336. 8013b64: 617b str r3, [r7, #20]
  46337. 8013b66: e02c b.n 8013bc2 <osMutexAcquire+0x8c>
  46338. }
  46339. else if (hMutex == NULL) {
  46340. 8013b68: 693b ldr r3, [r7, #16]
  46341. 8013b6a: 2b00 cmp r3, #0
  46342. 8013b6c: d103 bne.n 8013b76 <osMutexAcquire+0x40>
  46343. stat = osErrorParameter;
  46344. 8013b6e: f06f 0303 mvn.w r3, #3
  46345. 8013b72: 617b str r3, [r7, #20]
  46346. 8013b74: e025 b.n 8013bc2 <osMutexAcquire+0x8c>
  46347. }
  46348. else {
  46349. if (rmtx != 0U) {
  46350. 8013b76: 68fb ldr r3, [r7, #12]
  46351. 8013b78: 2b00 cmp r3, #0
  46352. 8013b7a: d011 beq.n 8013ba0 <osMutexAcquire+0x6a>
  46353. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46354. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  46355. 8013b7c: 6839 ldr r1, [r7, #0]
  46356. 8013b7e: 6938 ldr r0, [r7, #16]
  46357. 8013b80: f000 fc41 bl 8014406 <xQueueTakeMutexRecursive>
  46358. 8013b84: 4603 mov r3, r0
  46359. 8013b86: 2b01 cmp r3, #1
  46360. 8013b88: d01b beq.n 8013bc2 <osMutexAcquire+0x8c>
  46361. if (timeout != 0U) {
  46362. 8013b8a: 683b ldr r3, [r7, #0]
  46363. 8013b8c: 2b00 cmp r3, #0
  46364. 8013b8e: d003 beq.n 8013b98 <osMutexAcquire+0x62>
  46365. stat = osErrorTimeout;
  46366. 8013b90: f06f 0301 mvn.w r3, #1
  46367. 8013b94: 617b str r3, [r7, #20]
  46368. 8013b96: e014 b.n 8013bc2 <osMutexAcquire+0x8c>
  46369. } else {
  46370. stat = osErrorResource;
  46371. 8013b98: f06f 0302 mvn.w r3, #2
  46372. 8013b9c: 617b str r3, [r7, #20]
  46373. 8013b9e: e010 b.n 8013bc2 <osMutexAcquire+0x8c>
  46374. }
  46375. }
  46376. #endif
  46377. }
  46378. else {
  46379. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  46380. 8013ba0: 6839 ldr r1, [r7, #0]
  46381. 8013ba2: 6938 ldr r0, [r7, #16]
  46382. 8013ba4: f000 fee8 bl 8014978 <xQueueSemaphoreTake>
  46383. 8013ba8: 4603 mov r3, r0
  46384. 8013baa: 2b01 cmp r3, #1
  46385. 8013bac: d009 beq.n 8013bc2 <osMutexAcquire+0x8c>
  46386. if (timeout != 0U) {
  46387. 8013bae: 683b ldr r3, [r7, #0]
  46388. 8013bb0: 2b00 cmp r3, #0
  46389. 8013bb2: d003 beq.n 8013bbc <osMutexAcquire+0x86>
  46390. stat = osErrorTimeout;
  46391. 8013bb4: f06f 0301 mvn.w r3, #1
  46392. 8013bb8: 617b str r3, [r7, #20]
  46393. 8013bba: e002 b.n 8013bc2 <osMutexAcquire+0x8c>
  46394. } else {
  46395. stat = osErrorResource;
  46396. 8013bbc: f06f 0302 mvn.w r3, #2
  46397. 8013bc0: 617b str r3, [r7, #20]
  46398. }
  46399. }
  46400. }
  46401. }
  46402. return (stat);
  46403. 8013bc2: 697b ldr r3, [r7, #20]
  46404. }
  46405. 8013bc4: 4618 mov r0, r3
  46406. 8013bc6: 3718 adds r7, #24
  46407. 8013bc8: 46bd mov sp, r7
  46408. 8013bca: bd80 pop {r7, pc}
  46409. 08013bcc <osMutexRelease>:
  46410. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  46411. 8013bcc: b580 push {r7, lr}
  46412. 8013bce: b086 sub sp, #24
  46413. 8013bd0: af00 add r7, sp, #0
  46414. 8013bd2: 6078 str r0, [r7, #4]
  46415. SemaphoreHandle_t hMutex;
  46416. osStatus_t stat;
  46417. uint32_t rmtx;
  46418. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  46419. 8013bd4: 687b ldr r3, [r7, #4]
  46420. 8013bd6: f023 0301 bic.w r3, r3, #1
  46421. 8013bda: 613b str r3, [r7, #16]
  46422. rmtx = (uint32_t)mutex_id & 1U;
  46423. 8013bdc: 687b ldr r3, [r7, #4]
  46424. 8013bde: f003 0301 and.w r3, r3, #1
  46425. 8013be2: 60fb str r3, [r7, #12]
  46426. stat = osOK;
  46427. 8013be4: 2300 movs r3, #0
  46428. 8013be6: 617b str r3, [r7, #20]
  46429. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46430. 8013be8: f3ef 8305 mrs r3, IPSR
  46431. 8013bec: 60bb str r3, [r7, #8]
  46432. return(result);
  46433. 8013bee: 68bb ldr r3, [r7, #8]
  46434. if (IS_IRQ()) {
  46435. 8013bf0: 2b00 cmp r3, #0
  46436. 8013bf2: d003 beq.n 8013bfc <osMutexRelease+0x30>
  46437. stat = osErrorISR;
  46438. 8013bf4: f06f 0305 mvn.w r3, #5
  46439. 8013bf8: 617b str r3, [r7, #20]
  46440. 8013bfa: e01f b.n 8013c3c <osMutexRelease+0x70>
  46441. }
  46442. else if (hMutex == NULL) {
  46443. 8013bfc: 693b ldr r3, [r7, #16]
  46444. 8013bfe: 2b00 cmp r3, #0
  46445. 8013c00: d103 bne.n 8013c0a <osMutexRelease+0x3e>
  46446. stat = osErrorParameter;
  46447. 8013c02: f06f 0303 mvn.w r3, #3
  46448. 8013c06: 617b str r3, [r7, #20]
  46449. 8013c08: e018 b.n 8013c3c <osMutexRelease+0x70>
  46450. }
  46451. else {
  46452. if (rmtx != 0U) {
  46453. 8013c0a: 68fb ldr r3, [r7, #12]
  46454. 8013c0c: 2b00 cmp r3, #0
  46455. 8013c0e: d009 beq.n 8013c24 <osMutexRelease+0x58>
  46456. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46457. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  46458. 8013c10: 6938 ldr r0, [r7, #16]
  46459. 8013c12: f000 fbc3 bl 801439c <xQueueGiveMutexRecursive>
  46460. 8013c16: 4603 mov r3, r0
  46461. 8013c18: 2b01 cmp r3, #1
  46462. 8013c1a: d00f beq.n 8013c3c <osMutexRelease+0x70>
  46463. stat = osErrorResource;
  46464. 8013c1c: f06f 0302 mvn.w r3, #2
  46465. 8013c20: 617b str r3, [r7, #20]
  46466. 8013c22: e00b b.n 8013c3c <osMutexRelease+0x70>
  46467. }
  46468. #endif
  46469. }
  46470. else {
  46471. if (xSemaphoreGive (hMutex) != pdPASS) {
  46472. 8013c24: 2300 movs r3, #0
  46473. 8013c26: 2200 movs r2, #0
  46474. 8013c28: 2100 movs r1, #0
  46475. 8013c2a: 6938 ldr r0, [r7, #16]
  46476. 8013c2c: f000 fc22 bl 8014474 <xQueueGenericSend>
  46477. 8013c30: 4603 mov r3, r0
  46478. 8013c32: 2b01 cmp r3, #1
  46479. 8013c34: d002 beq.n 8013c3c <osMutexRelease+0x70>
  46480. stat = osErrorResource;
  46481. 8013c36: f06f 0302 mvn.w r3, #2
  46482. 8013c3a: 617b str r3, [r7, #20]
  46483. }
  46484. }
  46485. }
  46486. return (stat);
  46487. 8013c3c: 697b ldr r3, [r7, #20]
  46488. }
  46489. 8013c3e: 4618 mov r0, r3
  46490. 8013c40: 3718 adds r7, #24
  46491. 8013c42: 46bd mov sp, r7
  46492. 8013c44: bd80 pop {r7, pc}
  46493. 08013c46 <osMessageQueueNew>:
  46494. return (stat);
  46495. }
  46496. /*---------------------------------------------------------------------------*/
  46497. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  46498. 8013c46: b580 push {r7, lr}
  46499. 8013c48: b08a sub sp, #40 @ 0x28
  46500. 8013c4a: af02 add r7, sp, #8
  46501. 8013c4c: 60f8 str r0, [r7, #12]
  46502. 8013c4e: 60b9 str r1, [r7, #8]
  46503. 8013c50: 607a str r2, [r7, #4]
  46504. int32_t mem;
  46505. #if (configQUEUE_REGISTRY_SIZE > 0)
  46506. const char *name;
  46507. #endif
  46508. hQueue = NULL;
  46509. 8013c52: 2300 movs r3, #0
  46510. 8013c54: 61fb str r3, [r7, #28]
  46511. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46512. 8013c56: f3ef 8305 mrs r3, IPSR
  46513. 8013c5a: 613b str r3, [r7, #16]
  46514. return(result);
  46515. 8013c5c: 693b ldr r3, [r7, #16]
  46516. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  46517. 8013c5e: 2b00 cmp r3, #0
  46518. 8013c60: d15f bne.n 8013d22 <osMessageQueueNew+0xdc>
  46519. 8013c62: 68fb ldr r3, [r7, #12]
  46520. 8013c64: 2b00 cmp r3, #0
  46521. 8013c66: d05c beq.n 8013d22 <osMessageQueueNew+0xdc>
  46522. 8013c68: 68bb ldr r3, [r7, #8]
  46523. 8013c6a: 2b00 cmp r3, #0
  46524. 8013c6c: d059 beq.n 8013d22 <osMessageQueueNew+0xdc>
  46525. mem = -1;
  46526. 8013c6e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46527. 8013c72: 61bb str r3, [r7, #24]
  46528. if (attr != NULL) {
  46529. 8013c74: 687b ldr r3, [r7, #4]
  46530. 8013c76: 2b00 cmp r3, #0
  46531. 8013c78: d029 beq.n 8013cce <osMessageQueueNew+0x88>
  46532. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  46533. 8013c7a: 687b ldr r3, [r7, #4]
  46534. 8013c7c: 689b ldr r3, [r3, #8]
  46535. 8013c7e: 2b00 cmp r3, #0
  46536. 8013c80: d012 beq.n 8013ca8 <osMessageQueueNew+0x62>
  46537. 8013c82: 687b ldr r3, [r7, #4]
  46538. 8013c84: 68db ldr r3, [r3, #12]
  46539. 8013c86: 2b4f cmp r3, #79 @ 0x4f
  46540. 8013c88: d90e bls.n 8013ca8 <osMessageQueueNew+0x62>
  46541. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  46542. 8013c8a: 687b ldr r3, [r7, #4]
  46543. 8013c8c: 691b ldr r3, [r3, #16]
  46544. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  46545. 8013c8e: 2b00 cmp r3, #0
  46546. 8013c90: d00a beq.n 8013ca8 <osMessageQueueNew+0x62>
  46547. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  46548. 8013c92: 687b ldr r3, [r7, #4]
  46549. 8013c94: 695a ldr r2, [r3, #20]
  46550. 8013c96: 68fb ldr r3, [r7, #12]
  46551. 8013c98: 68b9 ldr r1, [r7, #8]
  46552. 8013c9a: fb01 f303 mul.w r3, r1, r3
  46553. 8013c9e: 429a cmp r2, r3
  46554. 8013ca0: d302 bcc.n 8013ca8 <osMessageQueueNew+0x62>
  46555. mem = 1;
  46556. 8013ca2: 2301 movs r3, #1
  46557. 8013ca4: 61bb str r3, [r7, #24]
  46558. 8013ca6: e014 b.n 8013cd2 <osMessageQueueNew+0x8c>
  46559. }
  46560. else {
  46561. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  46562. 8013ca8: 687b ldr r3, [r7, #4]
  46563. 8013caa: 689b ldr r3, [r3, #8]
  46564. 8013cac: 2b00 cmp r3, #0
  46565. 8013cae: d110 bne.n 8013cd2 <osMessageQueueNew+0x8c>
  46566. 8013cb0: 687b ldr r3, [r7, #4]
  46567. 8013cb2: 68db ldr r3, [r3, #12]
  46568. 8013cb4: 2b00 cmp r3, #0
  46569. 8013cb6: d10c bne.n 8013cd2 <osMessageQueueNew+0x8c>
  46570. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  46571. 8013cb8: 687b ldr r3, [r7, #4]
  46572. 8013cba: 691b ldr r3, [r3, #16]
  46573. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  46574. 8013cbc: 2b00 cmp r3, #0
  46575. 8013cbe: d108 bne.n 8013cd2 <osMessageQueueNew+0x8c>
  46576. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  46577. 8013cc0: 687b ldr r3, [r7, #4]
  46578. 8013cc2: 695b ldr r3, [r3, #20]
  46579. 8013cc4: 2b00 cmp r3, #0
  46580. 8013cc6: d104 bne.n 8013cd2 <osMessageQueueNew+0x8c>
  46581. mem = 0;
  46582. 8013cc8: 2300 movs r3, #0
  46583. 8013cca: 61bb str r3, [r7, #24]
  46584. 8013ccc: e001 b.n 8013cd2 <osMessageQueueNew+0x8c>
  46585. }
  46586. }
  46587. }
  46588. else {
  46589. mem = 0;
  46590. 8013cce: 2300 movs r3, #0
  46591. 8013cd0: 61bb str r3, [r7, #24]
  46592. }
  46593. if (mem == 1) {
  46594. 8013cd2: 69bb ldr r3, [r7, #24]
  46595. 8013cd4: 2b01 cmp r3, #1
  46596. 8013cd6: d10b bne.n 8013cf0 <osMessageQueueNew+0xaa>
  46597. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46598. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  46599. 8013cd8: 687b ldr r3, [r7, #4]
  46600. 8013cda: 691a ldr r2, [r3, #16]
  46601. 8013cdc: 687b ldr r3, [r7, #4]
  46602. 8013cde: 689b ldr r3, [r3, #8]
  46603. 8013ce0: 2100 movs r1, #0
  46604. 8013ce2: 9100 str r1, [sp, #0]
  46605. 8013ce4: 68b9 ldr r1, [r7, #8]
  46606. 8013ce6: 68f8 ldr r0, [r7, #12]
  46607. 8013ce8: f000 fa30 bl 801414c <xQueueGenericCreateStatic>
  46608. 8013cec: 61f8 str r0, [r7, #28]
  46609. 8013cee: e008 b.n 8013d02 <osMessageQueueNew+0xbc>
  46610. #endif
  46611. }
  46612. else {
  46613. if (mem == 0) {
  46614. 8013cf0: 69bb ldr r3, [r7, #24]
  46615. 8013cf2: 2b00 cmp r3, #0
  46616. 8013cf4: d105 bne.n 8013d02 <osMessageQueueNew+0xbc>
  46617. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46618. hQueue = xQueueCreate (msg_count, msg_size);
  46619. 8013cf6: 2200 movs r2, #0
  46620. 8013cf8: 68b9 ldr r1, [r7, #8]
  46621. 8013cfa: 68f8 ldr r0, [r7, #12]
  46622. 8013cfc: f000 faa3 bl 8014246 <xQueueGenericCreate>
  46623. 8013d00: 61f8 str r0, [r7, #28]
  46624. #endif
  46625. }
  46626. }
  46627. #if (configQUEUE_REGISTRY_SIZE > 0)
  46628. if (hQueue != NULL) {
  46629. 8013d02: 69fb ldr r3, [r7, #28]
  46630. 8013d04: 2b00 cmp r3, #0
  46631. 8013d06: d00c beq.n 8013d22 <osMessageQueueNew+0xdc>
  46632. if (attr != NULL) {
  46633. 8013d08: 687b ldr r3, [r7, #4]
  46634. 8013d0a: 2b00 cmp r3, #0
  46635. 8013d0c: d003 beq.n 8013d16 <osMessageQueueNew+0xd0>
  46636. name = attr->name;
  46637. 8013d0e: 687b ldr r3, [r7, #4]
  46638. 8013d10: 681b ldr r3, [r3, #0]
  46639. 8013d12: 617b str r3, [r7, #20]
  46640. 8013d14: e001 b.n 8013d1a <osMessageQueueNew+0xd4>
  46641. } else {
  46642. name = NULL;
  46643. 8013d16: 2300 movs r3, #0
  46644. 8013d18: 617b str r3, [r7, #20]
  46645. }
  46646. vQueueAddToRegistry (hQueue, name);
  46647. 8013d1a: 6979 ldr r1, [r7, #20]
  46648. 8013d1c: 69f8 ldr r0, [r7, #28]
  46649. 8013d1e: f001 f8e5 bl 8014eec <vQueueAddToRegistry>
  46650. }
  46651. #endif
  46652. }
  46653. return ((osMessageQueueId_t)hQueue);
  46654. 8013d22: 69fb ldr r3, [r7, #28]
  46655. }
  46656. 8013d24: 4618 mov r0, r3
  46657. 8013d26: 3720 adds r7, #32
  46658. 8013d28: 46bd mov sp, r7
  46659. 8013d2a: bd80 pop {r7, pc}
  46660. 08013d2c <osMessageQueuePut>:
  46661. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  46662. 8013d2c: b580 push {r7, lr}
  46663. 8013d2e: b088 sub sp, #32
  46664. 8013d30: af00 add r7, sp, #0
  46665. 8013d32: 60f8 str r0, [r7, #12]
  46666. 8013d34: 60b9 str r1, [r7, #8]
  46667. 8013d36: 603b str r3, [r7, #0]
  46668. 8013d38: 4613 mov r3, r2
  46669. 8013d3a: 71fb strb r3, [r7, #7]
  46670. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  46671. 8013d3c: 68fb ldr r3, [r7, #12]
  46672. 8013d3e: 61bb str r3, [r7, #24]
  46673. osStatus_t stat;
  46674. BaseType_t yield;
  46675. (void)msg_prio; /* Message priority is ignored */
  46676. stat = osOK;
  46677. 8013d40: 2300 movs r3, #0
  46678. 8013d42: 61fb str r3, [r7, #28]
  46679. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46680. 8013d44: f3ef 8305 mrs r3, IPSR
  46681. 8013d48: 617b str r3, [r7, #20]
  46682. return(result);
  46683. 8013d4a: 697b ldr r3, [r7, #20]
  46684. if (IS_IRQ()) {
  46685. 8013d4c: 2b00 cmp r3, #0
  46686. 8013d4e: d028 beq.n 8013da2 <osMessageQueuePut+0x76>
  46687. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  46688. 8013d50: 69bb ldr r3, [r7, #24]
  46689. 8013d52: 2b00 cmp r3, #0
  46690. 8013d54: d005 beq.n 8013d62 <osMessageQueuePut+0x36>
  46691. 8013d56: 68bb ldr r3, [r7, #8]
  46692. 8013d58: 2b00 cmp r3, #0
  46693. 8013d5a: d002 beq.n 8013d62 <osMessageQueuePut+0x36>
  46694. 8013d5c: 683b ldr r3, [r7, #0]
  46695. 8013d5e: 2b00 cmp r3, #0
  46696. 8013d60: d003 beq.n 8013d6a <osMessageQueuePut+0x3e>
  46697. stat = osErrorParameter;
  46698. 8013d62: f06f 0303 mvn.w r3, #3
  46699. 8013d66: 61fb str r3, [r7, #28]
  46700. 8013d68: e038 b.n 8013ddc <osMessageQueuePut+0xb0>
  46701. }
  46702. else {
  46703. yield = pdFALSE;
  46704. 8013d6a: 2300 movs r3, #0
  46705. 8013d6c: 613b str r3, [r7, #16]
  46706. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  46707. 8013d6e: f107 0210 add.w r2, r7, #16
  46708. 8013d72: 2300 movs r3, #0
  46709. 8013d74: 68b9 ldr r1, [r7, #8]
  46710. 8013d76: 69b8 ldr r0, [r7, #24]
  46711. 8013d78: f000 fc7e bl 8014678 <xQueueGenericSendFromISR>
  46712. 8013d7c: 4603 mov r3, r0
  46713. 8013d7e: 2b01 cmp r3, #1
  46714. 8013d80: d003 beq.n 8013d8a <osMessageQueuePut+0x5e>
  46715. stat = osErrorResource;
  46716. 8013d82: f06f 0302 mvn.w r3, #2
  46717. 8013d86: 61fb str r3, [r7, #28]
  46718. 8013d88: e028 b.n 8013ddc <osMessageQueuePut+0xb0>
  46719. } else {
  46720. portYIELD_FROM_ISR (yield);
  46721. 8013d8a: 693b ldr r3, [r7, #16]
  46722. 8013d8c: 2b00 cmp r3, #0
  46723. 8013d8e: d025 beq.n 8013ddc <osMessageQueuePut+0xb0>
  46724. 8013d90: 4b15 ldr r3, [pc, #84] @ (8013de8 <osMessageQueuePut+0xbc>)
  46725. 8013d92: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46726. 8013d96: 601a str r2, [r3, #0]
  46727. 8013d98: f3bf 8f4f dsb sy
  46728. 8013d9c: f3bf 8f6f isb sy
  46729. 8013da0: e01c b.n 8013ddc <osMessageQueuePut+0xb0>
  46730. }
  46731. }
  46732. }
  46733. else {
  46734. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  46735. 8013da2: 69bb ldr r3, [r7, #24]
  46736. 8013da4: 2b00 cmp r3, #0
  46737. 8013da6: d002 beq.n 8013dae <osMessageQueuePut+0x82>
  46738. 8013da8: 68bb ldr r3, [r7, #8]
  46739. 8013daa: 2b00 cmp r3, #0
  46740. 8013dac: d103 bne.n 8013db6 <osMessageQueuePut+0x8a>
  46741. stat = osErrorParameter;
  46742. 8013dae: f06f 0303 mvn.w r3, #3
  46743. 8013db2: 61fb str r3, [r7, #28]
  46744. 8013db4: e012 b.n 8013ddc <osMessageQueuePut+0xb0>
  46745. }
  46746. else {
  46747. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  46748. 8013db6: 2300 movs r3, #0
  46749. 8013db8: 683a ldr r2, [r7, #0]
  46750. 8013dba: 68b9 ldr r1, [r7, #8]
  46751. 8013dbc: 69b8 ldr r0, [r7, #24]
  46752. 8013dbe: f000 fb59 bl 8014474 <xQueueGenericSend>
  46753. 8013dc2: 4603 mov r3, r0
  46754. 8013dc4: 2b01 cmp r3, #1
  46755. 8013dc6: d009 beq.n 8013ddc <osMessageQueuePut+0xb0>
  46756. if (timeout != 0U) {
  46757. 8013dc8: 683b ldr r3, [r7, #0]
  46758. 8013dca: 2b00 cmp r3, #0
  46759. 8013dcc: d003 beq.n 8013dd6 <osMessageQueuePut+0xaa>
  46760. stat = osErrorTimeout;
  46761. 8013dce: f06f 0301 mvn.w r3, #1
  46762. 8013dd2: 61fb str r3, [r7, #28]
  46763. 8013dd4: e002 b.n 8013ddc <osMessageQueuePut+0xb0>
  46764. } else {
  46765. stat = osErrorResource;
  46766. 8013dd6: f06f 0302 mvn.w r3, #2
  46767. 8013dda: 61fb str r3, [r7, #28]
  46768. }
  46769. }
  46770. }
  46771. }
  46772. return (stat);
  46773. 8013ddc: 69fb ldr r3, [r7, #28]
  46774. }
  46775. 8013dde: 4618 mov r0, r3
  46776. 8013de0: 3720 adds r7, #32
  46777. 8013de2: 46bd mov sp, r7
  46778. 8013de4: bd80 pop {r7, pc}
  46779. 8013de6: bf00 nop
  46780. 8013de8: e000ed04 .word 0xe000ed04
  46781. 08013dec <osMessageQueueGet>:
  46782. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  46783. 8013dec: b580 push {r7, lr}
  46784. 8013dee: b088 sub sp, #32
  46785. 8013df0: af00 add r7, sp, #0
  46786. 8013df2: 60f8 str r0, [r7, #12]
  46787. 8013df4: 60b9 str r1, [r7, #8]
  46788. 8013df6: 607a str r2, [r7, #4]
  46789. 8013df8: 603b str r3, [r7, #0]
  46790. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  46791. 8013dfa: 68fb ldr r3, [r7, #12]
  46792. 8013dfc: 61bb str r3, [r7, #24]
  46793. osStatus_t stat;
  46794. BaseType_t yield;
  46795. (void)msg_prio; /* Message priority is ignored */
  46796. stat = osOK;
  46797. 8013dfe: 2300 movs r3, #0
  46798. 8013e00: 61fb str r3, [r7, #28]
  46799. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46800. 8013e02: f3ef 8305 mrs r3, IPSR
  46801. 8013e06: 617b str r3, [r7, #20]
  46802. return(result);
  46803. 8013e08: 697b ldr r3, [r7, #20]
  46804. if (IS_IRQ()) {
  46805. 8013e0a: 2b00 cmp r3, #0
  46806. 8013e0c: d028 beq.n 8013e60 <osMessageQueueGet+0x74>
  46807. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  46808. 8013e0e: 69bb ldr r3, [r7, #24]
  46809. 8013e10: 2b00 cmp r3, #0
  46810. 8013e12: d005 beq.n 8013e20 <osMessageQueueGet+0x34>
  46811. 8013e14: 68bb ldr r3, [r7, #8]
  46812. 8013e16: 2b00 cmp r3, #0
  46813. 8013e18: d002 beq.n 8013e20 <osMessageQueueGet+0x34>
  46814. 8013e1a: 683b ldr r3, [r7, #0]
  46815. 8013e1c: 2b00 cmp r3, #0
  46816. 8013e1e: d003 beq.n 8013e28 <osMessageQueueGet+0x3c>
  46817. stat = osErrorParameter;
  46818. 8013e20: f06f 0303 mvn.w r3, #3
  46819. 8013e24: 61fb str r3, [r7, #28]
  46820. 8013e26: e037 b.n 8013e98 <osMessageQueueGet+0xac>
  46821. }
  46822. else {
  46823. yield = pdFALSE;
  46824. 8013e28: 2300 movs r3, #0
  46825. 8013e2a: 613b str r3, [r7, #16]
  46826. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  46827. 8013e2c: f107 0310 add.w r3, r7, #16
  46828. 8013e30: 461a mov r2, r3
  46829. 8013e32: 68b9 ldr r1, [r7, #8]
  46830. 8013e34: 69b8 ldr r0, [r7, #24]
  46831. 8013e36: f000 feaf bl 8014b98 <xQueueReceiveFromISR>
  46832. 8013e3a: 4603 mov r3, r0
  46833. 8013e3c: 2b01 cmp r3, #1
  46834. 8013e3e: d003 beq.n 8013e48 <osMessageQueueGet+0x5c>
  46835. stat = osErrorResource;
  46836. 8013e40: f06f 0302 mvn.w r3, #2
  46837. 8013e44: 61fb str r3, [r7, #28]
  46838. 8013e46: e027 b.n 8013e98 <osMessageQueueGet+0xac>
  46839. } else {
  46840. portYIELD_FROM_ISR (yield);
  46841. 8013e48: 693b ldr r3, [r7, #16]
  46842. 8013e4a: 2b00 cmp r3, #0
  46843. 8013e4c: d024 beq.n 8013e98 <osMessageQueueGet+0xac>
  46844. 8013e4e: 4b15 ldr r3, [pc, #84] @ (8013ea4 <osMessageQueueGet+0xb8>)
  46845. 8013e50: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46846. 8013e54: 601a str r2, [r3, #0]
  46847. 8013e56: f3bf 8f4f dsb sy
  46848. 8013e5a: f3bf 8f6f isb sy
  46849. 8013e5e: e01b b.n 8013e98 <osMessageQueueGet+0xac>
  46850. }
  46851. }
  46852. }
  46853. else {
  46854. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  46855. 8013e60: 69bb ldr r3, [r7, #24]
  46856. 8013e62: 2b00 cmp r3, #0
  46857. 8013e64: d002 beq.n 8013e6c <osMessageQueueGet+0x80>
  46858. 8013e66: 68bb ldr r3, [r7, #8]
  46859. 8013e68: 2b00 cmp r3, #0
  46860. 8013e6a: d103 bne.n 8013e74 <osMessageQueueGet+0x88>
  46861. stat = osErrorParameter;
  46862. 8013e6c: f06f 0303 mvn.w r3, #3
  46863. 8013e70: 61fb str r3, [r7, #28]
  46864. 8013e72: e011 b.n 8013e98 <osMessageQueueGet+0xac>
  46865. }
  46866. else {
  46867. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  46868. 8013e74: 683a ldr r2, [r7, #0]
  46869. 8013e76: 68b9 ldr r1, [r7, #8]
  46870. 8013e78: 69b8 ldr r0, [r7, #24]
  46871. 8013e7a: f000 fc9b bl 80147b4 <xQueueReceive>
  46872. 8013e7e: 4603 mov r3, r0
  46873. 8013e80: 2b01 cmp r3, #1
  46874. 8013e82: d009 beq.n 8013e98 <osMessageQueueGet+0xac>
  46875. if (timeout != 0U) {
  46876. 8013e84: 683b ldr r3, [r7, #0]
  46877. 8013e86: 2b00 cmp r3, #0
  46878. 8013e88: d003 beq.n 8013e92 <osMessageQueueGet+0xa6>
  46879. stat = osErrorTimeout;
  46880. 8013e8a: f06f 0301 mvn.w r3, #1
  46881. 8013e8e: 61fb str r3, [r7, #28]
  46882. 8013e90: e002 b.n 8013e98 <osMessageQueueGet+0xac>
  46883. } else {
  46884. stat = osErrorResource;
  46885. 8013e92: f06f 0302 mvn.w r3, #2
  46886. 8013e96: 61fb str r3, [r7, #28]
  46887. }
  46888. }
  46889. }
  46890. }
  46891. return (stat);
  46892. 8013e98: 69fb ldr r3, [r7, #28]
  46893. }
  46894. 8013e9a: 4618 mov r0, r3
  46895. 8013e9c: 3720 adds r7, #32
  46896. 8013e9e: 46bd mov sp, r7
  46897. 8013ea0: bd80 pop {r7, pc}
  46898. 8013ea2: bf00 nop
  46899. 8013ea4: e000ed04 .word 0xe000ed04
  46900. 08013ea8 <vApplicationGetIdleTaskMemory>:
  46901. /*
  46902. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  46903. equals to 1 and is required for static memory allocation support.
  46904. */
  46905. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  46906. 8013ea8: b480 push {r7}
  46907. 8013eaa: b085 sub sp, #20
  46908. 8013eac: af00 add r7, sp, #0
  46909. 8013eae: 60f8 str r0, [r7, #12]
  46910. 8013eb0: 60b9 str r1, [r7, #8]
  46911. 8013eb2: 607a str r2, [r7, #4]
  46912. /* Idle task control block and stack */
  46913. static StaticTask_t Idle_TCB;
  46914. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  46915. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  46916. 8013eb4: 68fb ldr r3, [r7, #12]
  46917. 8013eb6: 4a07 ldr r2, [pc, #28] @ (8013ed4 <vApplicationGetIdleTaskMemory+0x2c>)
  46918. 8013eb8: 601a str r2, [r3, #0]
  46919. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  46920. 8013eba: 68bb ldr r3, [r7, #8]
  46921. 8013ebc: 4a06 ldr r2, [pc, #24] @ (8013ed8 <vApplicationGetIdleTaskMemory+0x30>)
  46922. 8013ebe: 601a str r2, [r3, #0]
  46923. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  46924. 8013ec0: 687b ldr r3, [r7, #4]
  46925. 8013ec2: f44f 7200 mov.w r2, #512 @ 0x200
  46926. 8013ec6: 601a str r2, [r3, #0]
  46927. }
  46928. 8013ec8: bf00 nop
  46929. 8013eca: 3714 adds r7, #20
  46930. 8013ecc: 46bd mov sp, r7
  46931. 8013ece: f85d 7b04 ldr.w r7, [sp], #4
  46932. 8013ed2: 4770 bx lr
  46933. 8013ed4: 24000cb0 .word 0x24000cb0
  46934. 8013ed8: 24000d58 .word 0x24000d58
  46935. 08013edc <vApplicationGetTimerTaskMemory>:
  46936. /*
  46937. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  46938. equals to 1 and is required for static memory allocation support.
  46939. */
  46940. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  46941. 8013edc: b480 push {r7}
  46942. 8013ede: b085 sub sp, #20
  46943. 8013ee0: af00 add r7, sp, #0
  46944. 8013ee2: 60f8 str r0, [r7, #12]
  46945. 8013ee4: 60b9 str r1, [r7, #8]
  46946. 8013ee6: 607a str r2, [r7, #4]
  46947. /* Timer task control block and stack */
  46948. static StaticTask_t Timer_TCB;
  46949. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  46950. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  46951. 8013ee8: 68fb ldr r3, [r7, #12]
  46952. 8013eea: 4a07 ldr r2, [pc, #28] @ (8013f08 <vApplicationGetTimerTaskMemory+0x2c>)
  46953. 8013eec: 601a str r2, [r3, #0]
  46954. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  46955. 8013eee: 68bb ldr r3, [r7, #8]
  46956. 8013ef0: 4a06 ldr r2, [pc, #24] @ (8013f0c <vApplicationGetTimerTaskMemory+0x30>)
  46957. 8013ef2: 601a str r2, [r3, #0]
  46958. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  46959. 8013ef4: 687b ldr r3, [r7, #4]
  46960. 8013ef6: f44f 6280 mov.w r2, #1024 @ 0x400
  46961. 8013efa: 601a str r2, [r3, #0]
  46962. }
  46963. 8013efc: bf00 nop
  46964. 8013efe: 3714 adds r7, #20
  46965. 8013f00: 46bd mov sp, r7
  46966. 8013f02: f85d 7b04 ldr.w r7, [sp], #4
  46967. 8013f06: 4770 bx lr
  46968. 8013f08: 24001558 .word 0x24001558
  46969. 8013f0c: 24001600 .word 0x24001600
  46970. 08013f10 <vListInitialise>:
  46971. /*-----------------------------------------------------------
  46972. * PUBLIC LIST API documented in list.h
  46973. *----------------------------------------------------------*/
  46974. void vListInitialise( List_t * const pxList )
  46975. {
  46976. 8013f10: b480 push {r7}
  46977. 8013f12: b083 sub sp, #12
  46978. 8013f14: af00 add r7, sp, #0
  46979. 8013f16: 6078 str r0, [r7, #4]
  46980. /* The list structure contains a list item which is used to mark the
  46981. end of the list. To initialise the list the list end is inserted
  46982. as the only list entry. */
  46983. pxList->pxIndex = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
  46984. 8013f18: 687b ldr r3, [r7, #4]
  46985. 8013f1a: f103 0208 add.w r2, r3, #8
  46986. 8013f1e: 687b ldr r3, [r7, #4]
  46987. 8013f20: 605a str r2, [r3, #4]
  46988. /* The list end value is the highest possible value in the list to
  46989. ensure it remains at the end of the list. */
  46990. pxList->xListEnd.xItemValue = portMAX_DELAY;
  46991. 8013f22: 687b ldr r3, [r7, #4]
  46992. 8013f24: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  46993. 8013f28: 609a str r2, [r3, #8]
  46994. /* The list end next and previous pointers point to itself so we know
  46995. when the list is empty. */
  46996. pxList->xListEnd.pxNext = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
  46997. 8013f2a: 687b ldr r3, [r7, #4]
  46998. 8013f2c: f103 0208 add.w r2, r3, #8
  46999. 8013f30: 687b ldr r3, [r7, #4]
  47000. 8013f32: 60da str r2, [r3, #12]
  47001. pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
  47002. 8013f34: 687b ldr r3, [r7, #4]
  47003. 8013f36: f103 0208 add.w r2, r3, #8
  47004. 8013f3a: 687b ldr r3, [r7, #4]
  47005. 8013f3c: 611a str r2, [r3, #16]
  47006. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  47007. 8013f3e: 687b ldr r3, [r7, #4]
  47008. 8013f40: 2200 movs r2, #0
  47009. 8013f42: 601a str r2, [r3, #0]
  47010. /* Write known values into the list if
  47011. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  47012. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  47013. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  47014. }
  47015. 8013f44: bf00 nop
  47016. 8013f46: 370c adds r7, #12
  47017. 8013f48: 46bd mov sp, r7
  47018. 8013f4a: f85d 7b04 ldr.w r7, [sp], #4
  47019. 8013f4e: 4770 bx lr
  47020. 08013f50 <vListInitialiseItem>:
  47021. /*-----------------------------------------------------------*/
  47022. void vListInitialiseItem( ListItem_t * const pxItem )
  47023. {
  47024. 8013f50: b480 push {r7}
  47025. 8013f52: b083 sub sp, #12
  47026. 8013f54: af00 add r7, sp, #0
  47027. 8013f56: 6078 str r0, [r7, #4]
  47028. /* Make sure the list item is not recorded as being on a list. */
  47029. pxItem->pxContainer = NULL;
  47030. 8013f58: 687b ldr r3, [r7, #4]
  47031. 8013f5a: 2200 movs r2, #0
  47032. 8013f5c: 611a str r2, [r3, #16]
  47033. /* Write known values into the list item if
  47034. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  47035. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  47036. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  47037. }
  47038. 8013f5e: bf00 nop
  47039. 8013f60: 370c adds r7, #12
  47040. 8013f62: 46bd mov sp, r7
  47041. 8013f64: f85d 7b04 ldr.w r7, [sp], #4
  47042. 8013f68: 4770 bx lr
  47043. 08013f6a <vListInsertEnd>:
  47044. /*-----------------------------------------------------------*/
  47045. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  47046. {
  47047. 8013f6a: b480 push {r7}
  47048. 8013f6c: b085 sub sp, #20
  47049. 8013f6e: af00 add r7, sp, #0
  47050. 8013f70: 6078 str r0, [r7, #4]
  47051. 8013f72: 6039 str r1, [r7, #0]
  47052. ListItem_t * const pxIndex = pxList->pxIndex;
  47053. 8013f74: 687b ldr r3, [r7, #4]
  47054. 8013f76: 685b ldr r3, [r3, #4]
  47055. 8013f78: 60fb str r3, [r7, #12]
  47056. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  47057. /* Insert a new list item into pxList, but rather than sort the list,
  47058. makes the new list item the last item to be removed by a call to
  47059. listGET_OWNER_OF_NEXT_ENTRY(). */
  47060. pxNewListItem->pxNext = pxIndex;
  47061. 8013f7a: 683b ldr r3, [r7, #0]
  47062. 8013f7c: 68fa ldr r2, [r7, #12]
  47063. 8013f7e: 605a str r2, [r3, #4]
  47064. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  47065. 8013f80: 68fb ldr r3, [r7, #12]
  47066. 8013f82: 689a ldr r2, [r3, #8]
  47067. 8013f84: 683b ldr r3, [r7, #0]
  47068. 8013f86: 609a str r2, [r3, #8]
  47069. /* Only used during decision coverage testing. */
  47070. mtCOVERAGE_TEST_DELAY();
  47071. pxIndex->pxPrevious->pxNext = pxNewListItem;
  47072. 8013f88: 68fb ldr r3, [r7, #12]
  47073. 8013f8a: 689b ldr r3, [r3, #8]
  47074. 8013f8c: 683a ldr r2, [r7, #0]
  47075. 8013f8e: 605a str r2, [r3, #4]
  47076. pxIndex->pxPrevious = pxNewListItem;
  47077. 8013f90: 68fb ldr r3, [r7, #12]
  47078. 8013f92: 683a ldr r2, [r7, #0]
  47079. 8013f94: 609a str r2, [r3, #8]
  47080. /* Remember which list the item is in. */
  47081. pxNewListItem->pxContainer = pxList;
  47082. 8013f96: 683b ldr r3, [r7, #0]
  47083. 8013f98: 687a ldr r2, [r7, #4]
  47084. 8013f9a: 611a str r2, [r3, #16]
  47085. ( pxList->uxNumberOfItems )++;
  47086. 8013f9c: 687b ldr r3, [r7, #4]
  47087. 8013f9e: 681b ldr r3, [r3, #0]
  47088. 8013fa0: 1c5a adds r2, r3, #1
  47089. 8013fa2: 687b ldr r3, [r7, #4]
  47090. 8013fa4: 601a str r2, [r3, #0]
  47091. }
  47092. 8013fa6: bf00 nop
  47093. 8013fa8: 3714 adds r7, #20
  47094. 8013faa: 46bd mov sp, r7
  47095. 8013fac: f85d 7b04 ldr.w r7, [sp], #4
  47096. 8013fb0: 4770 bx lr
  47097. 08013fb2 <vListInsert>:
  47098. /*-----------------------------------------------------------*/
  47099. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  47100. {
  47101. 8013fb2: b480 push {r7}
  47102. 8013fb4: b085 sub sp, #20
  47103. 8013fb6: af00 add r7, sp, #0
  47104. 8013fb8: 6078 str r0, [r7, #4]
  47105. 8013fba: 6039 str r1, [r7, #0]
  47106. ListItem_t *pxIterator;
  47107. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  47108. 8013fbc: 683b ldr r3, [r7, #0]
  47109. 8013fbe: 681b ldr r3, [r3, #0]
  47110. 8013fc0: 60bb str r3, [r7, #8]
  47111. new list item should be placed after it. This ensures that TCBs which are
  47112. stored in ready lists (all of which have the same xItemValue value) get a
  47113. share of the CPU. However, if the xItemValue is the same as the back marker
  47114. the iteration loop below will not end. Therefore the value is checked
  47115. first, and the algorithm slightly modified if necessary. */
  47116. if( xValueOfInsertion == portMAX_DELAY )
  47117. 8013fc2: 68bb ldr r3, [r7, #8]
  47118. 8013fc4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47119. 8013fc8: d103 bne.n 8013fd2 <vListInsert+0x20>
  47120. {
  47121. pxIterator = pxList->xListEnd.pxPrevious;
  47122. 8013fca: 687b ldr r3, [r7, #4]
  47123. 8013fcc: 691b ldr r3, [r3, #16]
  47124. 8013fce: 60fb str r3, [r7, #12]
  47125. 8013fd0: e00c b.n 8013fec <vListInsert+0x3a>
  47126. 4) Using a queue or semaphore before it has been initialised or
  47127. before the scheduler has been started (are interrupts firing
  47128. before vTaskStartScheduler() has been called?).
  47129. **********************************************************************/
  47130. for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. *//*lint !e440 The iterator moves to a different value, not xValueOfInsertion. */
  47131. 8013fd2: 687b ldr r3, [r7, #4]
  47132. 8013fd4: 3308 adds r3, #8
  47133. 8013fd6: 60fb str r3, [r7, #12]
  47134. 8013fd8: e002 b.n 8013fe0 <vListInsert+0x2e>
  47135. 8013fda: 68fb ldr r3, [r7, #12]
  47136. 8013fdc: 685b ldr r3, [r3, #4]
  47137. 8013fde: 60fb str r3, [r7, #12]
  47138. 8013fe0: 68fb ldr r3, [r7, #12]
  47139. 8013fe2: 685b ldr r3, [r3, #4]
  47140. 8013fe4: 681b ldr r3, [r3, #0]
  47141. 8013fe6: 68ba ldr r2, [r7, #8]
  47142. 8013fe8: 429a cmp r2, r3
  47143. 8013fea: d2f6 bcs.n 8013fda <vListInsert+0x28>
  47144. /* There is nothing to do here, just iterating to the wanted
  47145. insertion position. */
  47146. }
  47147. }
  47148. pxNewListItem->pxNext = pxIterator->pxNext;
  47149. 8013fec: 68fb ldr r3, [r7, #12]
  47150. 8013fee: 685a ldr r2, [r3, #4]
  47151. 8013ff0: 683b ldr r3, [r7, #0]
  47152. 8013ff2: 605a str r2, [r3, #4]
  47153. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  47154. 8013ff4: 683b ldr r3, [r7, #0]
  47155. 8013ff6: 685b ldr r3, [r3, #4]
  47156. 8013ff8: 683a ldr r2, [r7, #0]
  47157. 8013ffa: 609a str r2, [r3, #8]
  47158. pxNewListItem->pxPrevious = pxIterator;
  47159. 8013ffc: 683b ldr r3, [r7, #0]
  47160. 8013ffe: 68fa ldr r2, [r7, #12]
  47161. 8014000: 609a str r2, [r3, #8]
  47162. pxIterator->pxNext = pxNewListItem;
  47163. 8014002: 68fb ldr r3, [r7, #12]
  47164. 8014004: 683a ldr r2, [r7, #0]
  47165. 8014006: 605a str r2, [r3, #4]
  47166. /* Remember which list the item is in. This allows fast removal of the
  47167. item later. */
  47168. pxNewListItem->pxContainer = pxList;
  47169. 8014008: 683b ldr r3, [r7, #0]
  47170. 801400a: 687a ldr r2, [r7, #4]
  47171. 801400c: 611a str r2, [r3, #16]
  47172. ( pxList->uxNumberOfItems )++;
  47173. 801400e: 687b ldr r3, [r7, #4]
  47174. 8014010: 681b ldr r3, [r3, #0]
  47175. 8014012: 1c5a adds r2, r3, #1
  47176. 8014014: 687b ldr r3, [r7, #4]
  47177. 8014016: 601a str r2, [r3, #0]
  47178. }
  47179. 8014018: bf00 nop
  47180. 801401a: 3714 adds r7, #20
  47181. 801401c: 46bd mov sp, r7
  47182. 801401e: f85d 7b04 ldr.w r7, [sp], #4
  47183. 8014022: 4770 bx lr
  47184. 08014024 <uxListRemove>:
  47185. /*-----------------------------------------------------------*/
  47186. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  47187. {
  47188. 8014024: b480 push {r7}
  47189. 8014026: b085 sub sp, #20
  47190. 8014028: af00 add r7, sp, #0
  47191. 801402a: 6078 str r0, [r7, #4]
  47192. /* The list item knows which list it is in. Obtain the list from the list
  47193. item. */
  47194. List_t * const pxList = pxItemToRemove->pxContainer;
  47195. 801402c: 687b ldr r3, [r7, #4]
  47196. 801402e: 691b ldr r3, [r3, #16]
  47197. 8014030: 60fb str r3, [r7, #12]
  47198. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  47199. 8014032: 687b ldr r3, [r7, #4]
  47200. 8014034: 685b ldr r3, [r3, #4]
  47201. 8014036: 687a ldr r2, [r7, #4]
  47202. 8014038: 6892 ldr r2, [r2, #8]
  47203. 801403a: 609a str r2, [r3, #8]
  47204. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  47205. 801403c: 687b ldr r3, [r7, #4]
  47206. 801403e: 689b ldr r3, [r3, #8]
  47207. 8014040: 687a ldr r2, [r7, #4]
  47208. 8014042: 6852 ldr r2, [r2, #4]
  47209. 8014044: 605a str r2, [r3, #4]
  47210. /* Only used during decision coverage testing. */
  47211. mtCOVERAGE_TEST_DELAY();
  47212. /* Make sure the index is left pointing to a valid item. */
  47213. if( pxList->pxIndex == pxItemToRemove )
  47214. 8014046: 68fb ldr r3, [r7, #12]
  47215. 8014048: 685b ldr r3, [r3, #4]
  47216. 801404a: 687a ldr r2, [r7, #4]
  47217. 801404c: 429a cmp r2, r3
  47218. 801404e: d103 bne.n 8014058 <uxListRemove+0x34>
  47219. {
  47220. pxList->pxIndex = pxItemToRemove->pxPrevious;
  47221. 8014050: 687b ldr r3, [r7, #4]
  47222. 8014052: 689a ldr r2, [r3, #8]
  47223. 8014054: 68fb ldr r3, [r7, #12]
  47224. 8014056: 605a str r2, [r3, #4]
  47225. else
  47226. {
  47227. mtCOVERAGE_TEST_MARKER();
  47228. }
  47229. pxItemToRemove->pxContainer = NULL;
  47230. 8014058: 687b ldr r3, [r7, #4]
  47231. 801405a: 2200 movs r2, #0
  47232. 801405c: 611a str r2, [r3, #16]
  47233. ( pxList->uxNumberOfItems )--;
  47234. 801405e: 68fb ldr r3, [r7, #12]
  47235. 8014060: 681b ldr r3, [r3, #0]
  47236. 8014062: 1e5a subs r2, r3, #1
  47237. 8014064: 68fb ldr r3, [r7, #12]
  47238. 8014066: 601a str r2, [r3, #0]
  47239. return pxList->uxNumberOfItems;
  47240. 8014068: 68fb ldr r3, [r7, #12]
  47241. 801406a: 681b ldr r3, [r3, #0]
  47242. }
  47243. 801406c: 4618 mov r0, r3
  47244. 801406e: 3714 adds r7, #20
  47245. 8014070: 46bd mov sp, r7
  47246. 8014072: f85d 7b04 ldr.w r7, [sp], #4
  47247. 8014076: 4770 bx lr
  47248. 08014078 <xQueueGenericReset>:
  47249. } \
  47250. taskEXIT_CRITICAL()
  47251. /*-----------------------------------------------------------*/
  47252. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  47253. {
  47254. 8014078: b580 push {r7, lr}
  47255. 801407a: b084 sub sp, #16
  47256. 801407c: af00 add r7, sp, #0
  47257. 801407e: 6078 str r0, [r7, #4]
  47258. 8014080: 6039 str r1, [r7, #0]
  47259. Queue_t * const pxQueue = xQueue;
  47260. 8014082: 687b ldr r3, [r7, #4]
  47261. 8014084: 60fb str r3, [r7, #12]
  47262. configASSERT( pxQueue );
  47263. 8014086: 68fb ldr r3, [r7, #12]
  47264. 8014088: 2b00 cmp r3, #0
  47265. 801408a: d10b bne.n 80140a4 <xQueueGenericReset+0x2c>
  47266. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  47267. {
  47268. uint32_t ulNewBASEPRI;
  47269. __asm volatile
  47270. 801408c: f04f 0350 mov.w r3, #80 @ 0x50
  47271. 8014090: f383 8811 msr BASEPRI, r3
  47272. 8014094: f3bf 8f6f isb sy
  47273. 8014098: f3bf 8f4f dsb sy
  47274. 801409c: 60bb str r3, [r7, #8]
  47275. " msr basepri, %0 \n" \
  47276. " isb \n" \
  47277. " dsb \n" \
  47278. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  47279. );
  47280. }
  47281. 801409e: bf00 nop
  47282. 80140a0: bf00 nop
  47283. 80140a2: e7fd b.n 80140a0 <xQueueGenericReset+0x28>
  47284. taskENTER_CRITICAL();
  47285. 80140a4: f003 f960 bl 8017368 <vPortEnterCritical>
  47286. {
  47287. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  47288. 80140a8: 68fb ldr r3, [r7, #12]
  47289. 80140aa: 681a ldr r2, [r3, #0]
  47290. 80140ac: 68fb ldr r3, [r7, #12]
  47291. 80140ae: 6bdb ldr r3, [r3, #60] @ 0x3c
  47292. 80140b0: 68f9 ldr r1, [r7, #12]
  47293. 80140b2: 6c09 ldr r1, [r1, #64] @ 0x40
  47294. 80140b4: fb01 f303 mul.w r3, r1, r3
  47295. 80140b8: 441a add r2, r3
  47296. 80140ba: 68fb ldr r3, [r7, #12]
  47297. 80140bc: 609a str r2, [r3, #8]
  47298. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  47299. 80140be: 68fb ldr r3, [r7, #12]
  47300. 80140c0: 2200 movs r2, #0
  47301. 80140c2: 639a str r2, [r3, #56] @ 0x38
  47302. pxQueue->pcWriteTo = pxQueue->pcHead;
  47303. 80140c4: 68fb ldr r3, [r7, #12]
  47304. 80140c6: 681a ldr r2, [r3, #0]
  47305. 80140c8: 68fb ldr r3, [r7, #12]
  47306. 80140ca: 605a str r2, [r3, #4]
  47307. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  47308. 80140cc: 68fb ldr r3, [r7, #12]
  47309. 80140ce: 681a ldr r2, [r3, #0]
  47310. 80140d0: 68fb ldr r3, [r7, #12]
  47311. 80140d2: 6bdb ldr r3, [r3, #60] @ 0x3c
  47312. 80140d4: 3b01 subs r3, #1
  47313. 80140d6: 68f9 ldr r1, [r7, #12]
  47314. 80140d8: 6c09 ldr r1, [r1, #64] @ 0x40
  47315. 80140da: fb01 f303 mul.w r3, r1, r3
  47316. 80140de: 441a add r2, r3
  47317. 80140e0: 68fb ldr r3, [r7, #12]
  47318. 80140e2: 60da str r2, [r3, #12]
  47319. pxQueue->cRxLock = queueUNLOCKED;
  47320. 80140e4: 68fb ldr r3, [r7, #12]
  47321. 80140e6: 22ff movs r2, #255 @ 0xff
  47322. 80140e8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  47323. pxQueue->cTxLock = queueUNLOCKED;
  47324. 80140ec: 68fb ldr r3, [r7, #12]
  47325. 80140ee: 22ff movs r2, #255 @ 0xff
  47326. 80140f0: f883 2045 strb.w r2, [r3, #69] @ 0x45
  47327. if( xNewQueue == pdFALSE )
  47328. 80140f4: 683b ldr r3, [r7, #0]
  47329. 80140f6: 2b00 cmp r3, #0
  47330. 80140f8: d114 bne.n 8014124 <xQueueGenericReset+0xac>
  47331. /* If there are tasks blocked waiting to read from the queue, then
  47332. the tasks will remain blocked as after this function exits the queue
  47333. will still be empty. If there are tasks blocked waiting to write to
  47334. the queue, then one should be unblocked as after this function exits
  47335. it will be possible to write to it. */
  47336. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  47337. 80140fa: 68fb ldr r3, [r7, #12]
  47338. 80140fc: 691b ldr r3, [r3, #16]
  47339. 80140fe: 2b00 cmp r3, #0
  47340. 8014100: d01a beq.n 8014138 <xQueueGenericReset+0xc0>
  47341. {
  47342. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  47343. 8014102: 68fb ldr r3, [r7, #12]
  47344. 8014104: 3310 adds r3, #16
  47345. 8014106: 4618 mov r0, r3
  47346. 8014108: f001 fdac bl 8015c64 <xTaskRemoveFromEventList>
  47347. 801410c: 4603 mov r3, r0
  47348. 801410e: 2b00 cmp r3, #0
  47349. 8014110: d012 beq.n 8014138 <xQueueGenericReset+0xc0>
  47350. {
  47351. queueYIELD_IF_USING_PREEMPTION();
  47352. 8014112: 4b0d ldr r3, [pc, #52] @ (8014148 <xQueueGenericReset+0xd0>)
  47353. 8014114: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47354. 8014118: 601a str r2, [r3, #0]
  47355. 801411a: f3bf 8f4f dsb sy
  47356. 801411e: f3bf 8f6f isb sy
  47357. 8014122: e009 b.n 8014138 <xQueueGenericReset+0xc0>
  47358. }
  47359. }
  47360. else
  47361. {
  47362. /* Ensure the event queues start in the correct state. */
  47363. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  47364. 8014124: 68fb ldr r3, [r7, #12]
  47365. 8014126: 3310 adds r3, #16
  47366. 8014128: 4618 mov r0, r3
  47367. 801412a: f7ff fef1 bl 8013f10 <vListInitialise>
  47368. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  47369. 801412e: 68fb ldr r3, [r7, #12]
  47370. 8014130: 3324 adds r3, #36 @ 0x24
  47371. 8014132: 4618 mov r0, r3
  47372. 8014134: f7ff feec bl 8013f10 <vListInitialise>
  47373. }
  47374. }
  47375. taskEXIT_CRITICAL();
  47376. 8014138: f003 f948 bl 80173cc <vPortExitCritical>
  47377. /* A value is returned for calling semantic consistency with previous
  47378. versions. */
  47379. return pdPASS;
  47380. 801413c: 2301 movs r3, #1
  47381. }
  47382. 801413e: 4618 mov r0, r3
  47383. 8014140: 3710 adds r7, #16
  47384. 8014142: 46bd mov sp, r7
  47385. 8014144: bd80 pop {r7, pc}
  47386. 8014146: bf00 nop
  47387. 8014148: e000ed04 .word 0xe000ed04
  47388. 0801414c <xQueueGenericCreateStatic>:
  47389. /*-----------------------------------------------------------*/
  47390. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47391. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  47392. {
  47393. 801414c: b580 push {r7, lr}
  47394. 801414e: b08e sub sp, #56 @ 0x38
  47395. 8014150: af02 add r7, sp, #8
  47396. 8014152: 60f8 str r0, [r7, #12]
  47397. 8014154: 60b9 str r1, [r7, #8]
  47398. 8014156: 607a str r2, [r7, #4]
  47399. 8014158: 603b str r3, [r7, #0]
  47400. Queue_t *pxNewQueue;
  47401. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  47402. 801415a: 68fb ldr r3, [r7, #12]
  47403. 801415c: 2b00 cmp r3, #0
  47404. 801415e: d10b bne.n 8014178 <xQueueGenericCreateStatic+0x2c>
  47405. __asm volatile
  47406. 8014160: f04f 0350 mov.w r3, #80 @ 0x50
  47407. 8014164: f383 8811 msr BASEPRI, r3
  47408. 8014168: f3bf 8f6f isb sy
  47409. 801416c: f3bf 8f4f dsb sy
  47410. 8014170: 62bb str r3, [r7, #40] @ 0x28
  47411. }
  47412. 8014172: bf00 nop
  47413. 8014174: bf00 nop
  47414. 8014176: e7fd b.n 8014174 <xQueueGenericCreateStatic+0x28>
  47415. /* The StaticQueue_t structure and the queue storage area must be
  47416. supplied. */
  47417. configASSERT( pxStaticQueue != NULL );
  47418. 8014178: 683b ldr r3, [r7, #0]
  47419. 801417a: 2b00 cmp r3, #0
  47420. 801417c: d10b bne.n 8014196 <xQueueGenericCreateStatic+0x4a>
  47421. __asm volatile
  47422. 801417e: f04f 0350 mov.w r3, #80 @ 0x50
  47423. 8014182: f383 8811 msr BASEPRI, r3
  47424. 8014186: f3bf 8f6f isb sy
  47425. 801418a: f3bf 8f4f dsb sy
  47426. 801418e: 627b str r3, [r7, #36] @ 0x24
  47427. }
  47428. 8014190: bf00 nop
  47429. 8014192: bf00 nop
  47430. 8014194: e7fd b.n 8014192 <xQueueGenericCreateStatic+0x46>
  47431. /* A queue storage area should be provided if the item size is not 0, and
  47432. should not be provided if the item size is 0. */
  47433. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  47434. 8014196: 687b ldr r3, [r7, #4]
  47435. 8014198: 2b00 cmp r3, #0
  47436. 801419a: d002 beq.n 80141a2 <xQueueGenericCreateStatic+0x56>
  47437. 801419c: 68bb ldr r3, [r7, #8]
  47438. 801419e: 2b00 cmp r3, #0
  47439. 80141a0: d001 beq.n 80141a6 <xQueueGenericCreateStatic+0x5a>
  47440. 80141a2: 2301 movs r3, #1
  47441. 80141a4: e000 b.n 80141a8 <xQueueGenericCreateStatic+0x5c>
  47442. 80141a6: 2300 movs r3, #0
  47443. 80141a8: 2b00 cmp r3, #0
  47444. 80141aa: d10b bne.n 80141c4 <xQueueGenericCreateStatic+0x78>
  47445. __asm volatile
  47446. 80141ac: f04f 0350 mov.w r3, #80 @ 0x50
  47447. 80141b0: f383 8811 msr BASEPRI, r3
  47448. 80141b4: f3bf 8f6f isb sy
  47449. 80141b8: f3bf 8f4f dsb sy
  47450. 80141bc: 623b str r3, [r7, #32]
  47451. }
  47452. 80141be: bf00 nop
  47453. 80141c0: bf00 nop
  47454. 80141c2: e7fd b.n 80141c0 <xQueueGenericCreateStatic+0x74>
  47455. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  47456. 80141c4: 687b ldr r3, [r7, #4]
  47457. 80141c6: 2b00 cmp r3, #0
  47458. 80141c8: d102 bne.n 80141d0 <xQueueGenericCreateStatic+0x84>
  47459. 80141ca: 68bb ldr r3, [r7, #8]
  47460. 80141cc: 2b00 cmp r3, #0
  47461. 80141ce: d101 bne.n 80141d4 <xQueueGenericCreateStatic+0x88>
  47462. 80141d0: 2301 movs r3, #1
  47463. 80141d2: e000 b.n 80141d6 <xQueueGenericCreateStatic+0x8a>
  47464. 80141d4: 2300 movs r3, #0
  47465. 80141d6: 2b00 cmp r3, #0
  47466. 80141d8: d10b bne.n 80141f2 <xQueueGenericCreateStatic+0xa6>
  47467. __asm volatile
  47468. 80141da: f04f 0350 mov.w r3, #80 @ 0x50
  47469. 80141de: f383 8811 msr BASEPRI, r3
  47470. 80141e2: f3bf 8f6f isb sy
  47471. 80141e6: f3bf 8f4f dsb sy
  47472. 80141ea: 61fb str r3, [r7, #28]
  47473. }
  47474. 80141ec: bf00 nop
  47475. 80141ee: bf00 nop
  47476. 80141f0: e7fd b.n 80141ee <xQueueGenericCreateStatic+0xa2>
  47477. #if( configASSERT_DEFINED == 1 )
  47478. {
  47479. /* Sanity check that the size of the structure used to declare a
  47480. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  47481. the real queue and semaphore structures. */
  47482. volatile size_t xSize = sizeof( StaticQueue_t );
  47483. 80141f2: 2350 movs r3, #80 @ 0x50
  47484. 80141f4: 617b str r3, [r7, #20]
  47485. configASSERT( xSize == sizeof( Queue_t ) );
  47486. 80141f6: 697b ldr r3, [r7, #20]
  47487. 80141f8: 2b50 cmp r3, #80 @ 0x50
  47488. 80141fa: d00b beq.n 8014214 <xQueueGenericCreateStatic+0xc8>
  47489. __asm volatile
  47490. 80141fc: f04f 0350 mov.w r3, #80 @ 0x50
  47491. 8014200: f383 8811 msr BASEPRI, r3
  47492. 8014204: f3bf 8f6f isb sy
  47493. 8014208: f3bf 8f4f dsb sy
  47494. 801420c: 61bb str r3, [r7, #24]
  47495. }
  47496. 801420e: bf00 nop
  47497. 8014210: bf00 nop
  47498. 8014212: e7fd b.n 8014210 <xQueueGenericCreateStatic+0xc4>
  47499. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  47500. 8014214: 697b ldr r3, [r7, #20]
  47501. #endif /* configASSERT_DEFINED */
  47502. /* The address of a statically allocated queue was passed in, use it.
  47503. The address of a statically allocated storage area was also passed in
  47504. but is already set. */
  47505. pxNewQueue = ( Queue_t * ) pxStaticQueue; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
  47506. 8014216: 683b ldr r3, [r7, #0]
  47507. 8014218: 62fb str r3, [r7, #44] @ 0x2c
  47508. if( pxNewQueue != NULL )
  47509. 801421a: 6afb ldr r3, [r7, #44] @ 0x2c
  47510. 801421c: 2b00 cmp r3, #0
  47511. 801421e: d00d beq.n 801423c <xQueueGenericCreateStatic+0xf0>
  47512. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  47513. {
  47514. /* Queues can be allocated wither statically or dynamically, so
  47515. note this queue was allocated statically in case the queue is
  47516. later deleted. */
  47517. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  47518. 8014220: 6afb ldr r3, [r7, #44] @ 0x2c
  47519. 8014222: 2201 movs r2, #1
  47520. 8014224: f883 2046 strb.w r2, [r3, #70] @ 0x46
  47521. }
  47522. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  47523. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  47524. 8014228: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  47525. 801422c: 6afb ldr r3, [r7, #44] @ 0x2c
  47526. 801422e: 9300 str r3, [sp, #0]
  47527. 8014230: 4613 mov r3, r2
  47528. 8014232: 687a ldr r2, [r7, #4]
  47529. 8014234: 68b9 ldr r1, [r7, #8]
  47530. 8014236: 68f8 ldr r0, [r7, #12]
  47531. 8014238: f000 f840 bl 80142bc <prvInitialiseNewQueue>
  47532. {
  47533. traceQUEUE_CREATE_FAILED( ucQueueType );
  47534. mtCOVERAGE_TEST_MARKER();
  47535. }
  47536. return pxNewQueue;
  47537. 801423c: 6afb ldr r3, [r7, #44] @ 0x2c
  47538. }
  47539. 801423e: 4618 mov r0, r3
  47540. 8014240: 3730 adds r7, #48 @ 0x30
  47541. 8014242: 46bd mov sp, r7
  47542. 8014244: bd80 pop {r7, pc}
  47543. 08014246 <xQueueGenericCreate>:
  47544. /*-----------------------------------------------------------*/
  47545. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  47546. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  47547. {
  47548. 8014246: b580 push {r7, lr}
  47549. 8014248: b08a sub sp, #40 @ 0x28
  47550. 801424a: af02 add r7, sp, #8
  47551. 801424c: 60f8 str r0, [r7, #12]
  47552. 801424e: 60b9 str r1, [r7, #8]
  47553. 8014250: 4613 mov r3, r2
  47554. 8014252: 71fb strb r3, [r7, #7]
  47555. Queue_t *pxNewQueue;
  47556. size_t xQueueSizeInBytes;
  47557. uint8_t *pucQueueStorage;
  47558. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  47559. 8014254: 68fb ldr r3, [r7, #12]
  47560. 8014256: 2b00 cmp r3, #0
  47561. 8014258: d10b bne.n 8014272 <xQueueGenericCreate+0x2c>
  47562. __asm volatile
  47563. 801425a: f04f 0350 mov.w r3, #80 @ 0x50
  47564. 801425e: f383 8811 msr BASEPRI, r3
  47565. 8014262: f3bf 8f6f isb sy
  47566. 8014266: f3bf 8f4f dsb sy
  47567. 801426a: 613b str r3, [r7, #16]
  47568. }
  47569. 801426c: bf00 nop
  47570. 801426e: bf00 nop
  47571. 8014270: e7fd b.n 801426e <xQueueGenericCreate+0x28>
  47572. /* Allocate enough space to hold the maximum number of items that
  47573. can be in the queue at any time. It is valid for uxItemSize to be
  47574. zero in the case the queue is used as a semaphore. */
  47575. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  47576. 8014272: 68fb ldr r3, [r7, #12]
  47577. 8014274: 68ba ldr r2, [r7, #8]
  47578. 8014276: fb02 f303 mul.w r3, r2, r3
  47579. 801427a: 61fb str r3, [r7, #28]
  47580. alignment requirements of the Queue_t structure - which in this case
  47581. is an int8_t *. Therefore, whenever the stack alignment requirements
  47582. are greater than or equal to the pointer to char requirements the cast
  47583. is safe. In other cases alignment requirements are not strict (one or
  47584. two bytes). */
  47585. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  47586. 801427c: 69fb ldr r3, [r7, #28]
  47587. 801427e: 3350 adds r3, #80 @ 0x50
  47588. 8014280: 4618 mov r0, r3
  47589. 8014282: f003 f993 bl 80175ac <pvPortMalloc>
  47590. 8014286: 61b8 str r0, [r7, #24]
  47591. if( pxNewQueue != NULL )
  47592. 8014288: 69bb ldr r3, [r7, #24]
  47593. 801428a: 2b00 cmp r3, #0
  47594. 801428c: d011 beq.n 80142b2 <xQueueGenericCreate+0x6c>
  47595. {
  47596. /* Jump past the queue structure to find the location of the queue
  47597. storage area. */
  47598. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  47599. 801428e: 69bb ldr r3, [r7, #24]
  47600. 8014290: 617b str r3, [r7, #20]
  47601. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  47602. 8014292: 697b ldr r3, [r7, #20]
  47603. 8014294: 3350 adds r3, #80 @ 0x50
  47604. 8014296: 617b str r3, [r7, #20]
  47605. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47606. {
  47607. /* Queues can be created either statically or dynamically, so
  47608. note this task was created dynamically in case it is later
  47609. deleted. */
  47610. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  47611. 8014298: 69bb ldr r3, [r7, #24]
  47612. 801429a: 2200 movs r2, #0
  47613. 801429c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  47614. }
  47615. #endif /* configSUPPORT_STATIC_ALLOCATION */
  47616. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  47617. 80142a0: 79fa ldrb r2, [r7, #7]
  47618. 80142a2: 69bb ldr r3, [r7, #24]
  47619. 80142a4: 9300 str r3, [sp, #0]
  47620. 80142a6: 4613 mov r3, r2
  47621. 80142a8: 697a ldr r2, [r7, #20]
  47622. 80142aa: 68b9 ldr r1, [r7, #8]
  47623. 80142ac: 68f8 ldr r0, [r7, #12]
  47624. 80142ae: f000 f805 bl 80142bc <prvInitialiseNewQueue>
  47625. {
  47626. traceQUEUE_CREATE_FAILED( ucQueueType );
  47627. mtCOVERAGE_TEST_MARKER();
  47628. }
  47629. return pxNewQueue;
  47630. 80142b2: 69bb ldr r3, [r7, #24]
  47631. }
  47632. 80142b4: 4618 mov r0, r3
  47633. 80142b6: 3720 adds r7, #32
  47634. 80142b8: 46bd mov sp, r7
  47635. 80142ba: bd80 pop {r7, pc}
  47636. 080142bc <prvInitialiseNewQueue>:
  47637. #endif /* configSUPPORT_STATIC_ALLOCATION */
  47638. /*-----------------------------------------------------------*/
  47639. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  47640. {
  47641. 80142bc: b580 push {r7, lr}
  47642. 80142be: b084 sub sp, #16
  47643. 80142c0: af00 add r7, sp, #0
  47644. 80142c2: 60f8 str r0, [r7, #12]
  47645. 80142c4: 60b9 str r1, [r7, #8]
  47646. 80142c6: 607a str r2, [r7, #4]
  47647. 80142c8: 70fb strb r3, [r7, #3]
  47648. /* Remove compiler warnings about unused parameters should
  47649. configUSE_TRACE_FACILITY not be set to 1. */
  47650. ( void ) ucQueueType;
  47651. if( uxItemSize == ( UBaseType_t ) 0 )
  47652. 80142ca: 68bb ldr r3, [r7, #8]
  47653. 80142cc: 2b00 cmp r3, #0
  47654. 80142ce: d103 bne.n 80142d8 <prvInitialiseNewQueue+0x1c>
  47655. {
  47656. /* No RAM was allocated for the queue storage area, but PC head cannot
  47657. be set to NULL because NULL is used as a key to say the queue is used as
  47658. a mutex. Therefore just set pcHead to point to the queue as a benign
  47659. value that is known to be within the memory map. */
  47660. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  47661. 80142d0: 69bb ldr r3, [r7, #24]
  47662. 80142d2: 69ba ldr r2, [r7, #24]
  47663. 80142d4: 601a str r2, [r3, #0]
  47664. 80142d6: e002 b.n 80142de <prvInitialiseNewQueue+0x22>
  47665. }
  47666. else
  47667. {
  47668. /* Set the head to the start of the queue storage area. */
  47669. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  47670. 80142d8: 69bb ldr r3, [r7, #24]
  47671. 80142da: 687a ldr r2, [r7, #4]
  47672. 80142dc: 601a str r2, [r3, #0]
  47673. }
  47674. /* Initialise the queue members as described where the queue type is
  47675. defined. */
  47676. pxNewQueue->uxLength = uxQueueLength;
  47677. 80142de: 69bb ldr r3, [r7, #24]
  47678. 80142e0: 68fa ldr r2, [r7, #12]
  47679. 80142e2: 63da str r2, [r3, #60] @ 0x3c
  47680. pxNewQueue->uxItemSize = uxItemSize;
  47681. 80142e4: 69bb ldr r3, [r7, #24]
  47682. 80142e6: 68ba ldr r2, [r7, #8]
  47683. 80142e8: 641a str r2, [r3, #64] @ 0x40
  47684. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  47685. 80142ea: 2101 movs r1, #1
  47686. 80142ec: 69b8 ldr r0, [r7, #24]
  47687. 80142ee: f7ff fec3 bl 8014078 <xQueueGenericReset>
  47688. #if ( configUSE_TRACE_FACILITY == 1 )
  47689. {
  47690. pxNewQueue->ucQueueType = ucQueueType;
  47691. 80142f2: 69bb ldr r3, [r7, #24]
  47692. 80142f4: 78fa ldrb r2, [r7, #3]
  47693. 80142f6: f883 204c strb.w r2, [r3, #76] @ 0x4c
  47694. pxNewQueue->pxQueueSetContainer = NULL;
  47695. }
  47696. #endif /* configUSE_QUEUE_SETS */
  47697. traceQUEUE_CREATE( pxNewQueue );
  47698. }
  47699. 80142fa: bf00 nop
  47700. 80142fc: 3710 adds r7, #16
  47701. 80142fe: 46bd mov sp, r7
  47702. 8014300: bd80 pop {r7, pc}
  47703. 08014302 <prvInitialiseMutex>:
  47704. /*-----------------------------------------------------------*/
  47705. #if( configUSE_MUTEXES == 1 )
  47706. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  47707. {
  47708. 8014302: b580 push {r7, lr}
  47709. 8014304: b082 sub sp, #8
  47710. 8014306: af00 add r7, sp, #0
  47711. 8014308: 6078 str r0, [r7, #4]
  47712. if( pxNewQueue != NULL )
  47713. 801430a: 687b ldr r3, [r7, #4]
  47714. 801430c: 2b00 cmp r3, #0
  47715. 801430e: d00e beq.n 801432e <prvInitialiseMutex+0x2c>
  47716. {
  47717. /* The queue create function will set all the queue structure members
  47718. correctly for a generic queue, but this function is creating a
  47719. mutex. Overwrite those members that need to be set differently -
  47720. in particular the information required for priority inheritance. */
  47721. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  47722. 8014310: 687b ldr r3, [r7, #4]
  47723. 8014312: 2200 movs r2, #0
  47724. 8014314: 609a str r2, [r3, #8]
  47725. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  47726. 8014316: 687b ldr r3, [r7, #4]
  47727. 8014318: 2200 movs r2, #0
  47728. 801431a: 601a str r2, [r3, #0]
  47729. /* In case this is a recursive mutex. */
  47730. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  47731. 801431c: 687b ldr r3, [r7, #4]
  47732. 801431e: 2200 movs r2, #0
  47733. 8014320: 60da str r2, [r3, #12]
  47734. traceCREATE_MUTEX( pxNewQueue );
  47735. /* Start with the semaphore in the expected state. */
  47736. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  47737. 8014322: 2300 movs r3, #0
  47738. 8014324: 2200 movs r2, #0
  47739. 8014326: 2100 movs r1, #0
  47740. 8014328: 6878 ldr r0, [r7, #4]
  47741. 801432a: f000 f8a3 bl 8014474 <xQueueGenericSend>
  47742. }
  47743. else
  47744. {
  47745. traceCREATE_MUTEX_FAILED();
  47746. }
  47747. }
  47748. 801432e: bf00 nop
  47749. 8014330: 3708 adds r7, #8
  47750. 8014332: 46bd mov sp, r7
  47751. 8014334: bd80 pop {r7, pc}
  47752. 08014336 <xQueueCreateMutex>:
  47753. /*-----------------------------------------------------------*/
  47754. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  47755. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  47756. {
  47757. 8014336: b580 push {r7, lr}
  47758. 8014338: b086 sub sp, #24
  47759. 801433a: af00 add r7, sp, #0
  47760. 801433c: 4603 mov r3, r0
  47761. 801433e: 71fb strb r3, [r7, #7]
  47762. QueueHandle_t xNewQueue;
  47763. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  47764. 8014340: 2301 movs r3, #1
  47765. 8014342: 617b str r3, [r7, #20]
  47766. 8014344: 2300 movs r3, #0
  47767. 8014346: 613b str r3, [r7, #16]
  47768. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  47769. 8014348: 79fb ldrb r3, [r7, #7]
  47770. 801434a: 461a mov r2, r3
  47771. 801434c: 6939 ldr r1, [r7, #16]
  47772. 801434e: 6978 ldr r0, [r7, #20]
  47773. 8014350: f7ff ff79 bl 8014246 <xQueueGenericCreate>
  47774. 8014354: 60f8 str r0, [r7, #12]
  47775. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  47776. 8014356: 68f8 ldr r0, [r7, #12]
  47777. 8014358: f7ff ffd3 bl 8014302 <prvInitialiseMutex>
  47778. return xNewQueue;
  47779. 801435c: 68fb ldr r3, [r7, #12]
  47780. }
  47781. 801435e: 4618 mov r0, r3
  47782. 8014360: 3718 adds r7, #24
  47783. 8014362: 46bd mov sp, r7
  47784. 8014364: bd80 pop {r7, pc}
  47785. 08014366 <xQueueCreateMutexStatic>:
  47786. /*-----------------------------------------------------------*/
  47787. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  47788. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  47789. {
  47790. 8014366: b580 push {r7, lr}
  47791. 8014368: b088 sub sp, #32
  47792. 801436a: af02 add r7, sp, #8
  47793. 801436c: 4603 mov r3, r0
  47794. 801436e: 6039 str r1, [r7, #0]
  47795. 8014370: 71fb strb r3, [r7, #7]
  47796. QueueHandle_t xNewQueue;
  47797. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  47798. 8014372: 2301 movs r3, #1
  47799. 8014374: 617b str r3, [r7, #20]
  47800. 8014376: 2300 movs r3, #0
  47801. 8014378: 613b str r3, [r7, #16]
  47802. /* Prevent compiler warnings about unused parameters if
  47803. configUSE_TRACE_FACILITY does not equal 1. */
  47804. ( void ) ucQueueType;
  47805. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  47806. 801437a: 79fb ldrb r3, [r7, #7]
  47807. 801437c: 9300 str r3, [sp, #0]
  47808. 801437e: 683b ldr r3, [r7, #0]
  47809. 8014380: 2200 movs r2, #0
  47810. 8014382: 6939 ldr r1, [r7, #16]
  47811. 8014384: 6978 ldr r0, [r7, #20]
  47812. 8014386: f7ff fee1 bl 801414c <xQueueGenericCreateStatic>
  47813. 801438a: 60f8 str r0, [r7, #12]
  47814. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  47815. 801438c: 68f8 ldr r0, [r7, #12]
  47816. 801438e: f7ff ffb8 bl 8014302 <prvInitialiseMutex>
  47817. return xNewQueue;
  47818. 8014392: 68fb ldr r3, [r7, #12]
  47819. }
  47820. 8014394: 4618 mov r0, r3
  47821. 8014396: 3718 adds r7, #24
  47822. 8014398: 46bd mov sp, r7
  47823. 801439a: bd80 pop {r7, pc}
  47824. 0801439c <xQueueGiveMutexRecursive>:
  47825. /*-----------------------------------------------------------*/
  47826. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  47827. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  47828. {
  47829. 801439c: b590 push {r4, r7, lr}
  47830. 801439e: b087 sub sp, #28
  47831. 80143a0: af00 add r7, sp, #0
  47832. 80143a2: 6078 str r0, [r7, #4]
  47833. BaseType_t xReturn;
  47834. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  47835. 80143a4: 687b ldr r3, [r7, #4]
  47836. 80143a6: 613b str r3, [r7, #16]
  47837. configASSERT( pxMutex );
  47838. 80143a8: 693b ldr r3, [r7, #16]
  47839. 80143aa: 2b00 cmp r3, #0
  47840. 80143ac: d10b bne.n 80143c6 <xQueueGiveMutexRecursive+0x2a>
  47841. __asm volatile
  47842. 80143ae: f04f 0350 mov.w r3, #80 @ 0x50
  47843. 80143b2: f383 8811 msr BASEPRI, r3
  47844. 80143b6: f3bf 8f6f isb sy
  47845. 80143ba: f3bf 8f4f dsb sy
  47846. 80143be: 60fb str r3, [r7, #12]
  47847. }
  47848. 80143c0: bf00 nop
  47849. 80143c2: bf00 nop
  47850. 80143c4: e7fd b.n 80143c2 <xQueueGiveMutexRecursive+0x26>
  47851. change outside of this task. If this task does not hold the mutex then
  47852. pxMutexHolder can never coincidentally equal the tasks handle, and as
  47853. this is the only condition we are interested in it does not matter if
  47854. pxMutexHolder is accessed simultaneously by another task. Therefore no
  47855. mutual exclusion is required to test the pxMutexHolder variable. */
  47856. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  47857. 80143c6: 693b ldr r3, [r7, #16]
  47858. 80143c8: 689c ldr r4, [r3, #8]
  47859. 80143ca: f001 fe39 bl 8016040 <xTaskGetCurrentTaskHandle>
  47860. 80143ce: 4603 mov r3, r0
  47861. 80143d0: 429c cmp r4, r3
  47862. 80143d2: d111 bne.n 80143f8 <xQueueGiveMutexRecursive+0x5c>
  47863. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  47864. the task handle, therefore no underflow check is required. Also,
  47865. uxRecursiveCallCount is only modified by the mutex holder, and as
  47866. there can only be one, no mutual exclusion is required to modify the
  47867. uxRecursiveCallCount member. */
  47868. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  47869. 80143d4: 693b ldr r3, [r7, #16]
  47870. 80143d6: 68db ldr r3, [r3, #12]
  47871. 80143d8: 1e5a subs r2, r3, #1
  47872. 80143da: 693b ldr r3, [r7, #16]
  47873. 80143dc: 60da str r2, [r3, #12]
  47874. /* Has the recursive call count unwound to 0? */
  47875. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  47876. 80143de: 693b ldr r3, [r7, #16]
  47877. 80143e0: 68db ldr r3, [r3, #12]
  47878. 80143e2: 2b00 cmp r3, #0
  47879. 80143e4: d105 bne.n 80143f2 <xQueueGiveMutexRecursive+0x56>
  47880. {
  47881. /* Return the mutex. This will automatically unblock any other
  47882. task that might be waiting to access the mutex. */
  47883. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  47884. 80143e6: 2300 movs r3, #0
  47885. 80143e8: 2200 movs r2, #0
  47886. 80143ea: 2100 movs r1, #0
  47887. 80143ec: 6938 ldr r0, [r7, #16]
  47888. 80143ee: f000 f841 bl 8014474 <xQueueGenericSend>
  47889. else
  47890. {
  47891. mtCOVERAGE_TEST_MARKER();
  47892. }
  47893. xReturn = pdPASS;
  47894. 80143f2: 2301 movs r3, #1
  47895. 80143f4: 617b str r3, [r7, #20]
  47896. 80143f6: e001 b.n 80143fc <xQueueGiveMutexRecursive+0x60>
  47897. }
  47898. else
  47899. {
  47900. /* The mutex cannot be given because the calling task is not the
  47901. holder. */
  47902. xReturn = pdFAIL;
  47903. 80143f8: 2300 movs r3, #0
  47904. 80143fa: 617b str r3, [r7, #20]
  47905. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  47906. }
  47907. return xReturn;
  47908. 80143fc: 697b ldr r3, [r7, #20]
  47909. }
  47910. 80143fe: 4618 mov r0, r3
  47911. 8014400: 371c adds r7, #28
  47912. 8014402: 46bd mov sp, r7
  47913. 8014404: bd90 pop {r4, r7, pc}
  47914. 08014406 <xQueueTakeMutexRecursive>:
  47915. /*-----------------------------------------------------------*/
  47916. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  47917. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  47918. {
  47919. 8014406: b590 push {r4, r7, lr}
  47920. 8014408: b087 sub sp, #28
  47921. 801440a: af00 add r7, sp, #0
  47922. 801440c: 6078 str r0, [r7, #4]
  47923. 801440e: 6039 str r1, [r7, #0]
  47924. BaseType_t xReturn;
  47925. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  47926. 8014410: 687b ldr r3, [r7, #4]
  47927. 8014412: 613b str r3, [r7, #16]
  47928. configASSERT( pxMutex );
  47929. 8014414: 693b ldr r3, [r7, #16]
  47930. 8014416: 2b00 cmp r3, #0
  47931. 8014418: d10b bne.n 8014432 <xQueueTakeMutexRecursive+0x2c>
  47932. __asm volatile
  47933. 801441a: f04f 0350 mov.w r3, #80 @ 0x50
  47934. 801441e: f383 8811 msr BASEPRI, r3
  47935. 8014422: f3bf 8f6f isb sy
  47936. 8014426: f3bf 8f4f dsb sy
  47937. 801442a: 60fb str r3, [r7, #12]
  47938. }
  47939. 801442c: bf00 nop
  47940. 801442e: bf00 nop
  47941. 8014430: e7fd b.n 801442e <xQueueTakeMutexRecursive+0x28>
  47942. /* Comments regarding mutual exclusion as per those within
  47943. xQueueGiveMutexRecursive(). */
  47944. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  47945. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  47946. 8014432: 693b ldr r3, [r7, #16]
  47947. 8014434: 689c ldr r4, [r3, #8]
  47948. 8014436: f001 fe03 bl 8016040 <xTaskGetCurrentTaskHandle>
  47949. 801443a: 4603 mov r3, r0
  47950. 801443c: 429c cmp r4, r3
  47951. 801443e: d107 bne.n 8014450 <xQueueTakeMutexRecursive+0x4a>
  47952. {
  47953. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  47954. 8014440: 693b ldr r3, [r7, #16]
  47955. 8014442: 68db ldr r3, [r3, #12]
  47956. 8014444: 1c5a adds r2, r3, #1
  47957. 8014446: 693b ldr r3, [r7, #16]
  47958. 8014448: 60da str r2, [r3, #12]
  47959. xReturn = pdPASS;
  47960. 801444a: 2301 movs r3, #1
  47961. 801444c: 617b str r3, [r7, #20]
  47962. 801444e: e00c b.n 801446a <xQueueTakeMutexRecursive+0x64>
  47963. }
  47964. else
  47965. {
  47966. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  47967. 8014450: 6839 ldr r1, [r7, #0]
  47968. 8014452: 6938 ldr r0, [r7, #16]
  47969. 8014454: f000 fa90 bl 8014978 <xQueueSemaphoreTake>
  47970. 8014458: 6178 str r0, [r7, #20]
  47971. /* pdPASS will only be returned if the mutex was successfully
  47972. obtained. The calling task may have entered the Blocked state
  47973. before reaching here. */
  47974. if( xReturn != pdFAIL )
  47975. 801445a: 697b ldr r3, [r7, #20]
  47976. 801445c: 2b00 cmp r3, #0
  47977. 801445e: d004 beq.n 801446a <xQueueTakeMutexRecursive+0x64>
  47978. {
  47979. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  47980. 8014460: 693b ldr r3, [r7, #16]
  47981. 8014462: 68db ldr r3, [r3, #12]
  47982. 8014464: 1c5a adds r2, r3, #1
  47983. 8014466: 693b ldr r3, [r7, #16]
  47984. 8014468: 60da str r2, [r3, #12]
  47985. {
  47986. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  47987. }
  47988. }
  47989. return xReturn;
  47990. 801446a: 697b ldr r3, [r7, #20]
  47991. }
  47992. 801446c: 4618 mov r0, r3
  47993. 801446e: 371c adds r7, #28
  47994. 8014470: 46bd mov sp, r7
  47995. 8014472: bd90 pop {r4, r7, pc}
  47996. 08014474 <xQueueGenericSend>:
  47997. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  47998. /*-----------------------------------------------------------*/
  47999. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  48000. {
  48001. 8014474: b580 push {r7, lr}
  48002. 8014476: b08e sub sp, #56 @ 0x38
  48003. 8014478: af00 add r7, sp, #0
  48004. 801447a: 60f8 str r0, [r7, #12]
  48005. 801447c: 60b9 str r1, [r7, #8]
  48006. 801447e: 607a str r2, [r7, #4]
  48007. 8014480: 603b str r3, [r7, #0]
  48008. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  48009. 8014482: 2300 movs r3, #0
  48010. 8014484: 637b str r3, [r7, #52] @ 0x34
  48011. TimeOut_t xTimeOut;
  48012. Queue_t * const pxQueue = xQueue;
  48013. 8014486: 68fb ldr r3, [r7, #12]
  48014. 8014488: 633b str r3, [r7, #48] @ 0x30
  48015. configASSERT( pxQueue );
  48016. 801448a: 6b3b ldr r3, [r7, #48] @ 0x30
  48017. 801448c: 2b00 cmp r3, #0
  48018. 801448e: d10b bne.n 80144a8 <xQueueGenericSend+0x34>
  48019. __asm volatile
  48020. 8014490: f04f 0350 mov.w r3, #80 @ 0x50
  48021. 8014494: f383 8811 msr BASEPRI, r3
  48022. 8014498: f3bf 8f6f isb sy
  48023. 801449c: f3bf 8f4f dsb sy
  48024. 80144a0: 62bb str r3, [r7, #40] @ 0x28
  48025. }
  48026. 80144a2: bf00 nop
  48027. 80144a4: bf00 nop
  48028. 80144a6: e7fd b.n 80144a4 <xQueueGenericSend+0x30>
  48029. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48030. 80144a8: 68bb ldr r3, [r7, #8]
  48031. 80144aa: 2b00 cmp r3, #0
  48032. 80144ac: d103 bne.n 80144b6 <xQueueGenericSend+0x42>
  48033. 80144ae: 6b3b ldr r3, [r7, #48] @ 0x30
  48034. 80144b0: 6c1b ldr r3, [r3, #64] @ 0x40
  48035. 80144b2: 2b00 cmp r3, #0
  48036. 80144b4: d101 bne.n 80144ba <xQueueGenericSend+0x46>
  48037. 80144b6: 2301 movs r3, #1
  48038. 80144b8: e000 b.n 80144bc <xQueueGenericSend+0x48>
  48039. 80144ba: 2300 movs r3, #0
  48040. 80144bc: 2b00 cmp r3, #0
  48041. 80144be: d10b bne.n 80144d8 <xQueueGenericSend+0x64>
  48042. __asm volatile
  48043. 80144c0: f04f 0350 mov.w r3, #80 @ 0x50
  48044. 80144c4: f383 8811 msr BASEPRI, r3
  48045. 80144c8: f3bf 8f6f isb sy
  48046. 80144cc: f3bf 8f4f dsb sy
  48047. 80144d0: 627b str r3, [r7, #36] @ 0x24
  48048. }
  48049. 80144d2: bf00 nop
  48050. 80144d4: bf00 nop
  48051. 80144d6: e7fd b.n 80144d4 <xQueueGenericSend+0x60>
  48052. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  48053. 80144d8: 683b ldr r3, [r7, #0]
  48054. 80144da: 2b02 cmp r3, #2
  48055. 80144dc: d103 bne.n 80144e6 <xQueueGenericSend+0x72>
  48056. 80144de: 6b3b ldr r3, [r7, #48] @ 0x30
  48057. 80144e0: 6bdb ldr r3, [r3, #60] @ 0x3c
  48058. 80144e2: 2b01 cmp r3, #1
  48059. 80144e4: d101 bne.n 80144ea <xQueueGenericSend+0x76>
  48060. 80144e6: 2301 movs r3, #1
  48061. 80144e8: e000 b.n 80144ec <xQueueGenericSend+0x78>
  48062. 80144ea: 2300 movs r3, #0
  48063. 80144ec: 2b00 cmp r3, #0
  48064. 80144ee: d10b bne.n 8014508 <xQueueGenericSend+0x94>
  48065. __asm volatile
  48066. 80144f0: f04f 0350 mov.w r3, #80 @ 0x50
  48067. 80144f4: f383 8811 msr BASEPRI, r3
  48068. 80144f8: f3bf 8f6f isb sy
  48069. 80144fc: f3bf 8f4f dsb sy
  48070. 8014500: 623b str r3, [r7, #32]
  48071. }
  48072. 8014502: bf00 nop
  48073. 8014504: bf00 nop
  48074. 8014506: e7fd b.n 8014504 <xQueueGenericSend+0x90>
  48075. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48076. {
  48077. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  48078. 8014508: f001 fdaa bl 8016060 <xTaskGetSchedulerState>
  48079. 801450c: 4603 mov r3, r0
  48080. 801450e: 2b00 cmp r3, #0
  48081. 8014510: d102 bne.n 8014518 <xQueueGenericSend+0xa4>
  48082. 8014512: 687b ldr r3, [r7, #4]
  48083. 8014514: 2b00 cmp r3, #0
  48084. 8014516: d101 bne.n 801451c <xQueueGenericSend+0xa8>
  48085. 8014518: 2301 movs r3, #1
  48086. 801451a: e000 b.n 801451e <xQueueGenericSend+0xaa>
  48087. 801451c: 2300 movs r3, #0
  48088. 801451e: 2b00 cmp r3, #0
  48089. 8014520: d10b bne.n 801453a <xQueueGenericSend+0xc6>
  48090. __asm volatile
  48091. 8014522: f04f 0350 mov.w r3, #80 @ 0x50
  48092. 8014526: f383 8811 msr BASEPRI, r3
  48093. 801452a: f3bf 8f6f isb sy
  48094. 801452e: f3bf 8f4f dsb sy
  48095. 8014532: 61fb str r3, [r7, #28]
  48096. }
  48097. 8014534: bf00 nop
  48098. 8014536: bf00 nop
  48099. 8014538: e7fd b.n 8014536 <xQueueGenericSend+0xc2>
  48100. /*lint -save -e904 This function relaxes the coding standard somewhat to
  48101. allow return statements within the function itself. This is done in the
  48102. interest of execution time efficiency. */
  48103. for( ;; )
  48104. {
  48105. taskENTER_CRITICAL();
  48106. 801453a: f002 ff15 bl 8017368 <vPortEnterCritical>
  48107. {
  48108. /* Is there room on the queue now? The running task must be the
  48109. highest priority task wanting to access the queue. If the head item
  48110. in the queue is to be overwritten then it does not matter if the
  48111. queue is full. */
  48112. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  48113. 801453e: 6b3b ldr r3, [r7, #48] @ 0x30
  48114. 8014540: 6b9a ldr r2, [r3, #56] @ 0x38
  48115. 8014542: 6b3b ldr r3, [r7, #48] @ 0x30
  48116. 8014544: 6bdb ldr r3, [r3, #60] @ 0x3c
  48117. 8014546: 429a cmp r2, r3
  48118. 8014548: d302 bcc.n 8014550 <xQueueGenericSend+0xdc>
  48119. 801454a: 683b ldr r3, [r7, #0]
  48120. 801454c: 2b02 cmp r3, #2
  48121. 801454e: d129 bne.n 80145a4 <xQueueGenericSend+0x130>
  48122. }
  48123. }
  48124. }
  48125. #else /* configUSE_QUEUE_SETS */
  48126. {
  48127. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  48128. 8014550: 683a ldr r2, [r7, #0]
  48129. 8014552: 68b9 ldr r1, [r7, #8]
  48130. 8014554: 6b38 ldr r0, [r7, #48] @ 0x30
  48131. 8014556: f000 fbb9 bl 8014ccc <prvCopyDataToQueue>
  48132. 801455a: 62f8 str r0, [r7, #44] @ 0x2c
  48133. /* If there was a task waiting for data to arrive on the
  48134. queue then unblock it now. */
  48135. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  48136. 801455c: 6b3b ldr r3, [r7, #48] @ 0x30
  48137. 801455e: 6a5b ldr r3, [r3, #36] @ 0x24
  48138. 8014560: 2b00 cmp r3, #0
  48139. 8014562: d010 beq.n 8014586 <xQueueGenericSend+0x112>
  48140. {
  48141. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  48142. 8014564: 6b3b ldr r3, [r7, #48] @ 0x30
  48143. 8014566: 3324 adds r3, #36 @ 0x24
  48144. 8014568: 4618 mov r0, r3
  48145. 801456a: f001 fb7b bl 8015c64 <xTaskRemoveFromEventList>
  48146. 801456e: 4603 mov r3, r0
  48147. 8014570: 2b00 cmp r3, #0
  48148. 8014572: d013 beq.n 801459c <xQueueGenericSend+0x128>
  48149. {
  48150. /* The unblocked task has a priority higher than
  48151. our own so yield immediately. Yes it is ok to do
  48152. this from within the critical section - the kernel
  48153. takes care of that. */
  48154. queueYIELD_IF_USING_PREEMPTION();
  48155. 8014574: 4b3f ldr r3, [pc, #252] @ (8014674 <xQueueGenericSend+0x200>)
  48156. 8014576: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48157. 801457a: 601a str r2, [r3, #0]
  48158. 801457c: f3bf 8f4f dsb sy
  48159. 8014580: f3bf 8f6f isb sy
  48160. 8014584: e00a b.n 801459c <xQueueGenericSend+0x128>
  48161. else
  48162. {
  48163. mtCOVERAGE_TEST_MARKER();
  48164. }
  48165. }
  48166. else if( xYieldRequired != pdFALSE )
  48167. 8014586: 6afb ldr r3, [r7, #44] @ 0x2c
  48168. 8014588: 2b00 cmp r3, #0
  48169. 801458a: d007 beq.n 801459c <xQueueGenericSend+0x128>
  48170. {
  48171. /* This path is a special case that will only get
  48172. executed if the task was holding multiple mutexes and
  48173. the mutexes were given back in an order that is
  48174. different to that in which they were taken. */
  48175. queueYIELD_IF_USING_PREEMPTION();
  48176. 801458c: 4b39 ldr r3, [pc, #228] @ (8014674 <xQueueGenericSend+0x200>)
  48177. 801458e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48178. 8014592: 601a str r2, [r3, #0]
  48179. 8014594: f3bf 8f4f dsb sy
  48180. 8014598: f3bf 8f6f isb sy
  48181. mtCOVERAGE_TEST_MARKER();
  48182. }
  48183. }
  48184. #endif /* configUSE_QUEUE_SETS */
  48185. taskEXIT_CRITICAL();
  48186. 801459c: f002 ff16 bl 80173cc <vPortExitCritical>
  48187. return pdPASS;
  48188. 80145a0: 2301 movs r3, #1
  48189. 80145a2: e063 b.n 801466c <xQueueGenericSend+0x1f8>
  48190. }
  48191. else
  48192. {
  48193. if( xTicksToWait == ( TickType_t ) 0 )
  48194. 80145a4: 687b ldr r3, [r7, #4]
  48195. 80145a6: 2b00 cmp r3, #0
  48196. 80145a8: d103 bne.n 80145b2 <xQueueGenericSend+0x13e>
  48197. {
  48198. /* The queue was full and no block time is specified (or
  48199. the block time has expired) so leave now. */
  48200. taskEXIT_CRITICAL();
  48201. 80145aa: f002 ff0f bl 80173cc <vPortExitCritical>
  48202. /* Return to the original privilege level before exiting
  48203. the function. */
  48204. traceQUEUE_SEND_FAILED( pxQueue );
  48205. return errQUEUE_FULL;
  48206. 80145ae: 2300 movs r3, #0
  48207. 80145b0: e05c b.n 801466c <xQueueGenericSend+0x1f8>
  48208. }
  48209. else if( xEntryTimeSet == pdFALSE )
  48210. 80145b2: 6b7b ldr r3, [r7, #52] @ 0x34
  48211. 80145b4: 2b00 cmp r3, #0
  48212. 80145b6: d106 bne.n 80145c6 <xQueueGenericSend+0x152>
  48213. {
  48214. /* The queue was full and a block time was specified so
  48215. configure the timeout structure. */
  48216. vTaskInternalSetTimeOutState( &xTimeOut );
  48217. 80145b8: f107 0314 add.w r3, r7, #20
  48218. 80145bc: 4618 mov r0, r3
  48219. 80145be: f001 fbdd bl 8015d7c <vTaskInternalSetTimeOutState>
  48220. xEntryTimeSet = pdTRUE;
  48221. 80145c2: 2301 movs r3, #1
  48222. 80145c4: 637b str r3, [r7, #52] @ 0x34
  48223. /* Entry time was already set. */
  48224. mtCOVERAGE_TEST_MARKER();
  48225. }
  48226. }
  48227. }
  48228. taskEXIT_CRITICAL();
  48229. 80145c6: f002 ff01 bl 80173cc <vPortExitCritical>
  48230. /* Interrupts and other tasks can send to and receive from the queue
  48231. now the critical section has been exited. */
  48232. vTaskSuspendAll();
  48233. 80145ca: f001 f90f bl 80157ec <vTaskSuspendAll>
  48234. prvLockQueue( pxQueue );
  48235. 80145ce: f002 fecb bl 8017368 <vPortEnterCritical>
  48236. 80145d2: 6b3b ldr r3, [r7, #48] @ 0x30
  48237. 80145d4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  48238. 80145d8: b25b sxtb r3, r3
  48239. 80145da: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48240. 80145de: d103 bne.n 80145e8 <xQueueGenericSend+0x174>
  48241. 80145e0: 6b3b ldr r3, [r7, #48] @ 0x30
  48242. 80145e2: 2200 movs r2, #0
  48243. 80145e4: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48244. 80145e8: 6b3b ldr r3, [r7, #48] @ 0x30
  48245. 80145ea: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48246. 80145ee: b25b sxtb r3, r3
  48247. 80145f0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48248. 80145f4: d103 bne.n 80145fe <xQueueGenericSend+0x18a>
  48249. 80145f6: 6b3b ldr r3, [r7, #48] @ 0x30
  48250. 80145f8: 2200 movs r2, #0
  48251. 80145fa: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48252. 80145fe: f002 fee5 bl 80173cc <vPortExitCritical>
  48253. /* Update the timeout state to see if it has expired yet. */
  48254. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  48255. 8014602: 1d3a adds r2, r7, #4
  48256. 8014604: f107 0314 add.w r3, r7, #20
  48257. 8014608: 4611 mov r1, r2
  48258. 801460a: 4618 mov r0, r3
  48259. 801460c: f001 fbcc bl 8015da8 <xTaskCheckForTimeOut>
  48260. 8014610: 4603 mov r3, r0
  48261. 8014612: 2b00 cmp r3, #0
  48262. 8014614: d124 bne.n 8014660 <xQueueGenericSend+0x1ec>
  48263. {
  48264. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  48265. 8014616: 6b38 ldr r0, [r7, #48] @ 0x30
  48266. 8014618: f000 fc50 bl 8014ebc <prvIsQueueFull>
  48267. 801461c: 4603 mov r3, r0
  48268. 801461e: 2b00 cmp r3, #0
  48269. 8014620: d018 beq.n 8014654 <xQueueGenericSend+0x1e0>
  48270. {
  48271. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  48272. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  48273. 8014622: 6b3b ldr r3, [r7, #48] @ 0x30
  48274. 8014624: 3310 adds r3, #16
  48275. 8014626: 687a ldr r2, [r7, #4]
  48276. 8014628: 4611 mov r1, r2
  48277. 801462a: 4618 mov r0, r3
  48278. 801462c: f001 fac8 bl 8015bc0 <vTaskPlaceOnEventList>
  48279. /* Unlocking the queue means queue events can effect the
  48280. event list. It is possible that interrupts occurring now
  48281. remove this task from the event list again - but as the
  48282. scheduler is suspended the task will go onto the pending
  48283. ready last instead of the actual ready list. */
  48284. prvUnlockQueue( pxQueue );
  48285. 8014630: 6b38 ldr r0, [r7, #48] @ 0x30
  48286. 8014632: f000 fbdb bl 8014dec <prvUnlockQueue>
  48287. /* Resuming the scheduler will move tasks from the pending
  48288. ready list into the ready list - so it is feasible that this
  48289. task is already in a ready list before it yields - in which
  48290. case the yield will not cause a context switch unless there
  48291. is also a higher priority task in the pending ready list. */
  48292. if( xTaskResumeAll() == pdFALSE )
  48293. 8014636: f001 f8e7 bl 8015808 <xTaskResumeAll>
  48294. 801463a: 4603 mov r3, r0
  48295. 801463c: 2b00 cmp r3, #0
  48296. 801463e: f47f af7c bne.w 801453a <xQueueGenericSend+0xc6>
  48297. {
  48298. portYIELD_WITHIN_API();
  48299. 8014642: 4b0c ldr r3, [pc, #48] @ (8014674 <xQueueGenericSend+0x200>)
  48300. 8014644: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48301. 8014648: 601a str r2, [r3, #0]
  48302. 801464a: f3bf 8f4f dsb sy
  48303. 801464e: f3bf 8f6f isb sy
  48304. 8014652: e772 b.n 801453a <xQueueGenericSend+0xc6>
  48305. }
  48306. }
  48307. else
  48308. {
  48309. /* Try again. */
  48310. prvUnlockQueue( pxQueue );
  48311. 8014654: 6b38 ldr r0, [r7, #48] @ 0x30
  48312. 8014656: f000 fbc9 bl 8014dec <prvUnlockQueue>
  48313. ( void ) xTaskResumeAll();
  48314. 801465a: f001 f8d5 bl 8015808 <xTaskResumeAll>
  48315. 801465e: e76c b.n 801453a <xQueueGenericSend+0xc6>
  48316. }
  48317. }
  48318. else
  48319. {
  48320. /* The timeout has expired. */
  48321. prvUnlockQueue( pxQueue );
  48322. 8014660: 6b38 ldr r0, [r7, #48] @ 0x30
  48323. 8014662: f000 fbc3 bl 8014dec <prvUnlockQueue>
  48324. ( void ) xTaskResumeAll();
  48325. 8014666: f001 f8cf bl 8015808 <xTaskResumeAll>
  48326. traceQUEUE_SEND_FAILED( pxQueue );
  48327. return errQUEUE_FULL;
  48328. 801466a: 2300 movs r3, #0
  48329. }
  48330. } /*lint -restore */
  48331. }
  48332. 801466c: 4618 mov r0, r3
  48333. 801466e: 3738 adds r7, #56 @ 0x38
  48334. 8014670: 46bd mov sp, r7
  48335. 8014672: bd80 pop {r7, pc}
  48336. 8014674: e000ed04 .word 0xe000ed04
  48337. 08014678 <xQueueGenericSendFromISR>:
  48338. /*-----------------------------------------------------------*/
  48339. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  48340. {
  48341. 8014678: b580 push {r7, lr}
  48342. 801467a: b090 sub sp, #64 @ 0x40
  48343. 801467c: af00 add r7, sp, #0
  48344. 801467e: 60f8 str r0, [r7, #12]
  48345. 8014680: 60b9 str r1, [r7, #8]
  48346. 8014682: 607a str r2, [r7, #4]
  48347. 8014684: 603b str r3, [r7, #0]
  48348. BaseType_t xReturn;
  48349. UBaseType_t uxSavedInterruptStatus;
  48350. Queue_t * const pxQueue = xQueue;
  48351. 8014686: 68fb ldr r3, [r7, #12]
  48352. 8014688: 63bb str r3, [r7, #56] @ 0x38
  48353. configASSERT( pxQueue );
  48354. 801468a: 6bbb ldr r3, [r7, #56] @ 0x38
  48355. 801468c: 2b00 cmp r3, #0
  48356. 801468e: d10b bne.n 80146a8 <xQueueGenericSendFromISR+0x30>
  48357. __asm volatile
  48358. 8014690: f04f 0350 mov.w r3, #80 @ 0x50
  48359. 8014694: f383 8811 msr BASEPRI, r3
  48360. 8014698: f3bf 8f6f isb sy
  48361. 801469c: f3bf 8f4f dsb sy
  48362. 80146a0: 62bb str r3, [r7, #40] @ 0x28
  48363. }
  48364. 80146a2: bf00 nop
  48365. 80146a4: bf00 nop
  48366. 80146a6: e7fd b.n 80146a4 <xQueueGenericSendFromISR+0x2c>
  48367. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48368. 80146a8: 68bb ldr r3, [r7, #8]
  48369. 80146aa: 2b00 cmp r3, #0
  48370. 80146ac: d103 bne.n 80146b6 <xQueueGenericSendFromISR+0x3e>
  48371. 80146ae: 6bbb ldr r3, [r7, #56] @ 0x38
  48372. 80146b0: 6c1b ldr r3, [r3, #64] @ 0x40
  48373. 80146b2: 2b00 cmp r3, #0
  48374. 80146b4: d101 bne.n 80146ba <xQueueGenericSendFromISR+0x42>
  48375. 80146b6: 2301 movs r3, #1
  48376. 80146b8: e000 b.n 80146bc <xQueueGenericSendFromISR+0x44>
  48377. 80146ba: 2300 movs r3, #0
  48378. 80146bc: 2b00 cmp r3, #0
  48379. 80146be: d10b bne.n 80146d8 <xQueueGenericSendFromISR+0x60>
  48380. __asm volatile
  48381. 80146c0: f04f 0350 mov.w r3, #80 @ 0x50
  48382. 80146c4: f383 8811 msr BASEPRI, r3
  48383. 80146c8: f3bf 8f6f isb sy
  48384. 80146cc: f3bf 8f4f dsb sy
  48385. 80146d0: 627b str r3, [r7, #36] @ 0x24
  48386. }
  48387. 80146d2: bf00 nop
  48388. 80146d4: bf00 nop
  48389. 80146d6: e7fd b.n 80146d4 <xQueueGenericSendFromISR+0x5c>
  48390. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  48391. 80146d8: 683b ldr r3, [r7, #0]
  48392. 80146da: 2b02 cmp r3, #2
  48393. 80146dc: d103 bne.n 80146e6 <xQueueGenericSendFromISR+0x6e>
  48394. 80146de: 6bbb ldr r3, [r7, #56] @ 0x38
  48395. 80146e0: 6bdb ldr r3, [r3, #60] @ 0x3c
  48396. 80146e2: 2b01 cmp r3, #1
  48397. 80146e4: d101 bne.n 80146ea <xQueueGenericSendFromISR+0x72>
  48398. 80146e6: 2301 movs r3, #1
  48399. 80146e8: e000 b.n 80146ec <xQueueGenericSendFromISR+0x74>
  48400. 80146ea: 2300 movs r3, #0
  48401. 80146ec: 2b00 cmp r3, #0
  48402. 80146ee: d10b bne.n 8014708 <xQueueGenericSendFromISR+0x90>
  48403. __asm volatile
  48404. 80146f0: f04f 0350 mov.w r3, #80 @ 0x50
  48405. 80146f4: f383 8811 msr BASEPRI, r3
  48406. 80146f8: f3bf 8f6f isb sy
  48407. 80146fc: f3bf 8f4f dsb sy
  48408. 8014700: 623b str r3, [r7, #32]
  48409. }
  48410. 8014702: bf00 nop
  48411. 8014704: bf00 nop
  48412. 8014706: e7fd b.n 8014704 <xQueueGenericSendFromISR+0x8c>
  48413. that have been assigned a priority at or (logically) below the maximum
  48414. system call interrupt priority. FreeRTOS maintains a separate interrupt
  48415. safe API to ensure interrupt entry is as fast and as simple as possible.
  48416. More information (albeit Cortex-M specific) is provided on the following
  48417. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  48418. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  48419. 8014708: f002 ff0e bl 8017528 <vPortValidateInterruptPriority>
  48420. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  48421. {
  48422. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  48423. __asm volatile
  48424. 801470c: f3ef 8211 mrs r2, BASEPRI
  48425. 8014710: f04f 0350 mov.w r3, #80 @ 0x50
  48426. 8014714: f383 8811 msr BASEPRI, r3
  48427. 8014718: f3bf 8f6f isb sy
  48428. 801471c: f3bf 8f4f dsb sy
  48429. 8014720: 61fa str r2, [r7, #28]
  48430. 8014722: 61bb str r3, [r7, #24]
  48431. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  48432. );
  48433. /* This return will not be reached but is necessary to prevent compiler
  48434. warnings. */
  48435. return ulOriginalBASEPRI;
  48436. 8014724: 69fb ldr r3, [r7, #28]
  48437. /* Similar to xQueueGenericSend, except without blocking if there is no room
  48438. in the queue. Also don't directly wake a task that was blocked on a queue
  48439. read, instead return a flag to say whether a context switch is required or
  48440. not (i.e. has a task with a higher priority than us been woken by this
  48441. post). */
  48442. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  48443. 8014726: 637b str r3, [r7, #52] @ 0x34
  48444. {
  48445. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  48446. 8014728: 6bbb ldr r3, [r7, #56] @ 0x38
  48447. 801472a: 6b9a ldr r2, [r3, #56] @ 0x38
  48448. 801472c: 6bbb ldr r3, [r7, #56] @ 0x38
  48449. 801472e: 6bdb ldr r3, [r3, #60] @ 0x3c
  48450. 8014730: 429a cmp r2, r3
  48451. 8014732: d302 bcc.n 801473a <xQueueGenericSendFromISR+0xc2>
  48452. 8014734: 683b ldr r3, [r7, #0]
  48453. 8014736: 2b02 cmp r3, #2
  48454. 8014738: d12f bne.n 801479a <xQueueGenericSendFromISR+0x122>
  48455. {
  48456. const int8_t cTxLock = pxQueue->cTxLock;
  48457. 801473a: 6bbb ldr r3, [r7, #56] @ 0x38
  48458. 801473c: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48459. 8014740: f887 3033 strb.w r3, [r7, #51] @ 0x33
  48460. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  48461. 8014744: 6bbb ldr r3, [r7, #56] @ 0x38
  48462. 8014746: 6b9b ldr r3, [r3, #56] @ 0x38
  48463. 8014748: 62fb str r3, [r7, #44] @ 0x2c
  48464. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  48465. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  48466. in a task disinheriting a priority and prvCopyDataToQueue() can be
  48467. called here even though the disinherit function does not check if
  48468. the scheduler is suspended before accessing the ready lists. */
  48469. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  48470. 801474a: 683a ldr r2, [r7, #0]
  48471. 801474c: 68b9 ldr r1, [r7, #8]
  48472. 801474e: 6bb8 ldr r0, [r7, #56] @ 0x38
  48473. 8014750: f000 fabc bl 8014ccc <prvCopyDataToQueue>
  48474. /* The event list is not altered if the queue is locked. This will
  48475. be done when the queue is unlocked later. */
  48476. if( cTxLock == queueUNLOCKED )
  48477. 8014754: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  48478. 8014758: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48479. 801475c: d112 bne.n 8014784 <xQueueGenericSendFromISR+0x10c>
  48480. }
  48481. }
  48482. }
  48483. #else /* configUSE_QUEUE_SETS */
  48484. {
  48485. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  48486. 801475e: 6bbb ldr r3, [r7, #56] @ 0x38
  48487. 8014760: 6a5b ldr r3, [r3, #36] @ 0x24
  48488. 8014762: 2b00 cmp r3, #0
  48489. 8014764: d016 beq.n 8014794 <xQueueGenericSendFromISR+0x11c>
  48490. {
  48491. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  48492. 8014766: 6bbb ldr r3, [r7, #56] @ 0x38
  48493. 8014768: 3324 adds r3, #36 @ 0x24
  48494. 801476a: 4618 mov r0, r3
  48495. 801476c: f001 fa7a bl 8015c64 <xTaskRemoveFromEventList>
  48496. 8014770: 4603 mov r3, r0
  48497. 8014772: 2b00 cmp r3, #0
  48498. 8014774: d00e beq.n 8014794 <xQueueGenericSendFromISR+0x11c>
  48499. {
  48500. /* The task waiting has a higher priority so record that a
  48501. context switch is required. */
  48502. if( pxHigherPriorityTaskWoken != NULL )
  48503. 8014776: 687b ldr r3, [r7, #4]
  48504. 8014778: 2b00 cmp r3, #0
  48505. 801477a: d00b beq.n 8014794 <xQueueGenericSendFromISR+0x11c>
  48506. {
  48507. *pxHigherPriorityTaskWoken = pdTRUE;
  48508. 801477c: 687b ldr r3, [r7, #4]
  48509. 801477e: 2201 movs r2, #1
  48510. 8014780: 601a str r2, [r3, #0]
  48511. 8014782: e007 b.n 8014794 <xQueueGenericSendFromISR+0x11c>
  48512. }
  48513. else
  48514. {
  48515. /* Increment the lock count so the task that unlocks the queue
  48516. knows that data was posted while it was locked. */
  48517. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  48518. 8014784: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  48519. 8014788: 3301 adds r3, #1
  48520. 801478a: b2db uxtb r3, r3
  48521. 801478c: b25a sxtb r2, r3
  48522. 801478e: 6bbb ldr r3, [r7, #56] @ 0x38
  48523. 8014790: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48524. }
  48525. xReturn = pdPASS;
  48526. 8014794: 2301 movs r3, #1
  48527. 8014796: 63fb str r3, [r7, #60] @ 0x3c
  48528. {
  48529. 8014798: e001 b.n 801479e <xQueueGenericSendFromISR+0x126>
  48530. }
  48531. else
  48532. {
  48533. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  48534. xReturn = errQUEUE_FULL;
  48535. 801479a: 2300 movs r3, #0
  48536. 801479c: 63fb str r3, [r7, #60] @ 0x3c
  48537. 801479e: 6b7b ldr r3, [r7, #52] @ 0x34
  48538. 80147a0: 617b str r3, [r7, #20]
  48539. }
  48540. /*-----------------------------------------------------------*/
  48541. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  48542. {
  48543. __asm volatile
  48544. 80147a2: 697b ldr r3, [r7, #20]
  48545. 80147a4: f383 8811 msr BASEPRI, r3
  48546. (
  48547. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  48548. );
  48549. }
  48550. 80147a8: bf00 nop
  48551. }
  48552. }
  48553. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  48554. return xReturn;
  48555. 80147aa: 6bfb ldr r3, [r7, #60] @ 0x3c
  48556. }
  48557. 80147ac: 4618 mov r0, r3
  48558. 80147ae: 3740 adds r7, #64 @ 0x40
  48559. 80147b0: 46bd mov sp, r7
  48560. 80147b2: bd80 pop {r7, pc}
  48561. 080147b4 <xQueueReceive>:
  48562. return xReturn;
  48563. }
  48564. /*-----------------------------------------------------------*/
  48565. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  48566. {
  48567. 80147b4: b580 push {r7, lr}
  48568. 80147b6: b08c sub sp, #48 @ 0x30
  48569. 80147b8: af00 add r7, sp, #0
  48570. 80147ba: 60f8 str r0, [r7, #12]
  48571. 80147bc: 60b9 str r1, [r7, #8]
  48572. 80147be: 607a str r2, [r7, #4]
  48573. BaseType_t xEntryTimeSet = pdFALSE;
  48574. 80147c0: 2300 movs r3, #0
  48575. 80147c2: 62fb str r3, [r7, #44] @ 0x2c
  48576. TimeOut_t xTimeOut;
  48577. Queue_t * const pxQueue = xQueue;
  48578. 80147c4: 68fb ldr r3, [r7, #12]
  48579. 80147c6: 62bb str r3, [r7, #40] @ 0x28
  48580. /* Check the pointer is not NULL. */
  48581. configASSERT( ( pxQueue ) );
  48582. 80147c8: 6abb ldr r3, [r7, #40] @ 0x28
  48583. 80147ca: 2b00 cmp r3, #0
  48584. 80147cc: d10b bne.n 80147e6 <xQueueReceive+0x32>
  48585. __asm volatile
  48586. 80147ce: f04f 0350 mov.w r3, #80 @ 0x50
  48587. 80147d2: f383 8811 msr BASEPRI, r3
  48588. 80147d6: f3bf 8f6f isb sy
  48589. 80147da: f3bf 8f4f dsb sy
  48590. 80147de: 623b str r3, [r7, #32]
  48591. }
  48592. 80147e0: bf00 nop
  48593. 80147e2: bf00 nop
  48594. 80147e4: e7fd b.n 80147e2 <xQueueReceive+0x2e>
  48595. /* The buffer into which data is received can only be NULL if the data size
  48596. is zero (so no data is copied into the buffer. */
  48597. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48598. 80147e6: 68bb ldr r3, [r7, #8]
  48599. 80147e8: 2b00 cmp r3, #0
  48600. 80147ea: d103 bne.n 80147f4 <xQueueReceive+0x40>
  48601. 80147ec: 6abb ldr r3, [r7, #40] @ 0x28
  48602. 80147ee: 6c1b ldr r3, [r3, #64] @ 0x40
  48603. 80147f0: 2b00 cmp r3, #0
  48604. 80147f2: d101 bne.n 80147f8 <xQueueReceive+0x44>
  48605. 80147f4: 2301 movs r3, #1
  48606. 80147f6: e000 b.n 80147fa <xQueueReceive+0x46>
  48607. 80147f8: 2300 movs r3, #0
  48608. 80147fa: 2b00 cmp r3, #0
  48609. 80147fc: d10b bne.n 8014816 <xQueueReceive+0x62>
  48610. __asm volatile
  48611. 80147fe: f04f 0350 mov.w r3, #80 @ 0x50
  48612. 8014802: f383 8811 msr BASEPRI, r3
  48613. 8014806: f3bf 8f6f isb sy
  48614. 801480a: f3bf 8f4f dsb sy
  48615. 801480e: 61fb str r3, [r7, #28]
  48616. }
  48617. 8014810: bf00 nop
  48618. 8014812: bf00 nop
  48619. 8014814: e7fd b.n 8014812 <xQueueReceive+0x5e>
  48620. /* Cannot block if the scheduler is suspended. */
  48621. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48622. {
  48623. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  48624. 8014816: f001 fc23 bl 8016060 <xTaskGetSchedulerState>
  48625. 801481a: 4603 mov r3, r0
  48626. 801481c: 2b00 cmp r3, #0
  48627. 801481e: d102 bne.n 8014826 <xQueueReceive+0x72>
  48628. 8014820: 687b ldr r3, [r7, #4]
  48629. 8014822: 2b00 cmp r3, #0
  48630. 8014824: d101 bne.n 801482a <xQueueReceive+0x76>
  48631. 8014826: 2301 movs r3, #1
  48632. 8014828: e000 b.n 801482c <xQueueReceive+0x78>
  48633. 801482a: 2300 movs r3, #0
  48634. 801482c: 2b00 cmp r3, #0
  48635. 801482e: d10b bne.n 8014848 <xQueueReceive+0x94>
  48636. __asm volatile
  48637. 8014830: f04f 0350 mov.w r3, #80 @ 0x50
  48638. 8014834: f383 8811 msr BASEPRI, r3
  48639. 8014838: f3bf 8f6f isb sy
  48640. 801483c: f3bf 8f4f dsb sy
  48641. 8014840: 61bb str r3, [r7, #24]
  48642. }
  48643. 8014842: bf00 nop
  48644. 8014844: bf00 nop
  48645. 8014846: e7fd b.n 8014844 <xQueueReceive+0x90>
  48646. /*lint -save -e904 This function relaxes the coding standard somewhat to
  48647. allow return statements within the function itself. This is done in the
  48648. interest of execution time efficiency. */
  48649. for( ;; )
  48650. {
  48651. taskENTER_CRITICAL();
  48652. 8014848: f002 fd8e bl 8017368 <vPortEnterCritical>
  48653. {
  48654. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  48655. 801484c: 6abb ldr r3, [r7, #40] @ 0x28
  48656. 801484e: 6b9b ldr r3, [r3, #56] @ 0x38
  48657. 8014850: 627b str r3, [r7, #36] @ 0x24
  48658. /* Is there data in the queue now? To be running the calling task
  48659. must be the highest priority task wanting to access the queue. */
  48660. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  48661. 8014852: 6a7b ldr r3, [r7, #36] @ 0x24
  48662. 8014854: 2b00 cmp r3, #0
  48663. 8014856: d01f beq.n 8014898 <xQueueReceive+0xe4>
  48664. {
  48665. /* Data available, remove one item. */
  48666. prvCopyDataFromQueue( pxQueue, pvBuffer );
  48667. 8014858: 68b9 ldr r1, [r7, #8]
  48668. 801485a: 6ab8 ldr r0, [r7, #40] @ 0x28
  48669. 801485c: f000 faa0 bl 8014da0 <prvCopyDataFromQueue>
  48670. traceQUEUE_RECEIVE( pxQueue );
  48671. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  48672. 8014860: 6a7b ldr r3, [r7, #36] @ 0x24
  48673. 8014862: 1e5a subs r2, r3, #1
  48674. 8014864: 6abb ldr r3, [r7, #40] @ 0x28
  48675. 8014866: 639a str r2, [r3, #56] @ 0x38
  48676. /* There is now space in the queue, were any tasks waiting to
  48677. post to the queue? If so, unblock the highest priority waiting
  48678. task. */
  48679. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  48680. 8014868: 6abb ldr r3, [r7, #40] @ 0x28
  48681. 801486a: 691b ldr r3, [r3, #16]
  48682. 801486c: 2b00 cmp r3, #0
  48683. 801486e: d00f beq.n 8014890 <xQueueReceive+0xdc>
  48684. {
  48685. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  48686. 8014870: 6abb ldr r3, [r7, #40] @ 0x28
  48687. 8014872: 3310 adds r3, #16
  48688. 8014874: 4618 mov r0, r3
  48689. 8014876: f001 f9f5 bl 8015c64 <xTaskRemoveFromEventList>
  48690. 801487a: 4603 mov r3, r0
  48691. 801487c: 2b00 cmp r3, #0
  48692. 801487e: d007 beq.n 8014890 <xQueueReceive+0xdc>
  48693. {
  48694. queueYIELD_IF_USING_PREEMPTION();
  48695. 8014880: 4b3c ldr r3, [pc, #240] @ (8014974 <xQueueReceive+0x1c0>)
  48696. 8014882: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48697. 8014886: 601a str r2, [r3, #0]
  48698. 8014888: f3bf 8f4f dsb sy
  48699. 801488c: f3bf 8f6f isb sy
  48700. else
  48701. {
  48702. mtCOVERAGE_TEST_MARKER();
  48703. }
  48704. taskEXIT_CRITICAL();
  48705. 8014890: f002 fd9c bl 80173cc <vPortExitCritical>
  48706. return pdPASS;
  48707. 8014894: 2301 movs r3, #1
  48708. 8014896: e069 b.n 801496c <xQueueReceive+0x1b8>
  48709. }
  48710. else
  48711. {
  48712. if( xTicksToWait == ( TickType_t ) 0 )
  48713. 8014898: 687b ldr r3, [r7, #4]
  48714. 801489a: 2b00 cmp r3, #0
  48715. 801489c: d103 bne.n 80148a6 <xQueueReceive+0xf2>
  48716. {
  48717. /* The queue was empty and no block time is specified (or
  48718. the block time has expired) so leave now. */
  48719. taskEXIT_CRITICAL();
  48720. 801489e: f002 fd95 bl 80173cc <vPortExitCritical>
  48721. traceQUEUE_RECEIVE_FAILED( pxQueue );
  48722. return errQUEUE_EMPTY;
  48723. 80148a2: 2300 movs r3, #0
  48724. 80148a4: e062 b.n 801496c <xQueueReceive+0x1b8>
  48725. }
  48726. else if( xEntryTimeSet == pdFALSE )
  48727. 80148a6: 6afb ldr r3, [r7, #44] @ 0x2c
  48728. 80148a8: 2b00 cmp r3, #0
  48729. 80148aa: d106 bne.n 80148ba <xQueueReceive+0x106>
  48730. {
  48731. /* The queue was empty and a block time was specified so
  48732. configure the timeout structure. */
  48733. vTaskInternalSetTimeOutState( &xTimeOut );
  48734. 80148ac: f107 0310 add.w r3, r7, #16
  48735. 80148b0: 4618 mov r0, r3
  48736. 80148b2: f001 fa63 bl 8015d7c <vTaskInternalSetTimeOutState>
  48737. xEntryTimeSet = pdTRUE;
  48738. 80148b6: 2301 movs r3, #1
  48739. 80148b8: 62fb str r3, [r7, #44] @ 0x2c
  48740. /* Entry time was already set. */
  48741. mtCOVERAGE_TEST_MARKER();
  48742. }
  48743. }
  48744. }
  48745. taskEXIT_CRITICAL();
  48746. 80148ba: f002 fd87 bl 80173cc <vPortExitCritical>
  48747. /* Interrupts and other tasks can send to and receive from the queue
  48748. now the critical section has been exited. */
  48749. vTaskSuspendAll();
  48750. 80148be: f000 ff95 bl 80157ec <vTaskSuspendAll>
  48751. prvLockQueue( pxQueue );
  48752. 80148c2: f002 fd51 bl 8017368 <vPortEnterCritical>
  48753. 80148c6: 6abb ldr r3, [r7, #40] @ 0x28
  48754. 80148c8: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  48755. 80148cc: b25b sxtb r3, r3
  48756. 80148ce: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48757. 80148d2: d103 bne.n 80148dc <xQueueReceive+0x128>
  48758. 80148d4: 6abb ldr r3, [r7, #40] @ 0x28
  48759. 80148d6: 2200 movs r2, #0
  48760. 80148d8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48761. 80148dc: 6abb ldr r3, [r7, #40] @ 0x28
  48762. 80148de: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48763. 80148e2: b25b sxtb r3, r3
  48764. 80148e4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48765. 80148e8: d103 bne.n 80148f2 <xQueueReceive+0x13e>
  48766. 80148ea: 6abb ldr r3, [r7, #40] @ 0x28
  48767. 80148ec: 2200 movs r2, #0
  48768. 80148ee: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48769. 80148f2: f002 fd6b bl 80173cc <vPortExitCritical>
  48770. /* Update the timeout state to see if it has expired yet. */
  48771. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  48772. 80148f6: 1d3a adds r2, r7, #4
  48773. 80148f8: f107 0310 add.w r3, r7, #16
  48774. 80148fc: 4611 mov r1, r2
  48775. 80148fe: 4618 mov r0, r3
  48776. 8014900: f001 fa52 bl 8015da8 <xTaskCheckForTimeOut>
  48777. 8014904: 4603 mov r3, r0
  48778. 8014906: 2b00 cmp r3, #0
  48779. 8014908: d123 bne.n 8014952 <xQueueReceive+0x19e>
  48780. {
  48781. /* The timeout has not expired. If the queue is still empty place
  48782. the task on the list of tasks waiting to receive from the queue. */
  48783. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  48784. 801490a: 6ab8 ldr r0, [r7, #40] @ 0x28
  48785. 801490c: f000 fac0 bl 8014e90 <prvIsQueueEmpty>
  48786. 8014910: 4603 mov r3, r0
  48787. 8014912: 2b00 cmp r3, #0
  48788. 8014914: d017 beq.n 8014946 <xQueueReceive+0x192>
  48789. {
  48790. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  48791. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  48792. 8014916: 6abb ldr r3, [r7, #40] @ 0x28
  48793. 8014918: 3324 adds r3, #36 @ 0x24
  48794. 801491a: 687a ldr r2, [r7, #4]
  48795. 801491c: 4611 mov r1, r2
  48796. 801491e: 4618 mov r0, r3
  48797. 8014920: f001 f94e bl 8015bc0 <vTaskPlaceOnEventList>
  48798. prvUnlockQueue( pxQueue );
  48799. 8014924: 6ab8 ldr r0, [r7, #40] @ 0x28
  48800. 8014926: f000 fa61 bl 8014dec <prvUnlockQueue>
  48801. if( xTaskResumeAll() == pdFALSE )
  48802. 801492a: f000 ff6d bl 8015808 <xTaskResumeAll>
  48803. 801492e: 4603 mov r3, r0
  48804. 8014930: 2b00 cmp r3, #0
  48805. 8014932: d189 bne.n 8014848 <xQueueReceive+0x94>
  48806. {
  48807. portYIELD_WITHIN_API();
  48808. 8014934: 4b0f ldr r3, [pc, #60] @ (8014974 <xQueueReceive+0x1c0>)
  48809. 8014936: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48810. 801493a: 601a str r2, [r3, #0]
  48811. 801493c: f3bf 8f4f dsb sy
  48812. 8014940: f3bf 8f6f isb sy
  48813. 8014944: e780 b.n 8014848 <xQueueReceive+0x94>
  48814. }
  48815. else
  48816. {
  48817. /* The queue contains data again. Loop back to try and read the
  48818. data. */
  48819. prvUnlockQueue( pxQueue );
  48820. 8014946: 6ab8 ldr r0, [r7, #40] @ 0x28
  48821. 8014948: f000 fa50 bl 8014dec <prvUnlockQueue>
  48822. ( void ) xTaskResumeAll();
  48823. 801494c: f000 ff5c bl 8015808 <xTaskResumeAll>
  48824. 8014950: e77a b.n 8014848 <xQueueReceive+0x94>
  48825. }
  48826. else
  48827. {
  48828. /* Timed out. If there is no data in the queue exit, otherwise loop
  48829. back and attempt to read the data. */
  48830. prvUnlockQueue( pxQueue );
  48831. 8014952: 6ab8 ldr r0, [r7, #40] @ 0x28
  48832. 8014954: f000 fa4a bl 8014dec <prvUnlockQueue>
  48833. ( void ) xTaskResumeAll();
  48834. 8014958: f000 ff56 bl 8015808 <xTaskResumeAll>
  48835. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  48836. 801495c: 6ab8 ldr r0, [r7, #40] @ 0x28
  48837. 801495e: f000 fa97 bl 8014e90 <prvIsQueueEmpty>
  48838. 8014962: 4603 mov r3, r0
  48839. 8014964: 2b00 cmp r3, #0
  48840. 8014966: f43f af6f beq.w 8014848 <xQueueReceive+0x94>
  48841. {
  48842. traceQUEUE_RECEIVE_FAILED( pxQueue );
  48843. return errQUEUE_EMPTY;
  48844. 801496a: 2300 movs r3, #0
  48845. {
  48846. mtCOVERAGE_TEST_MARKER();
  48847. }
  48848. }
  48849. } /*lint -restore */
  48850. }
  48851. 801496c: 4618 mov r0, r3
  48852. 801496e: 3730 adds r7, #48 @ 0x30
  48853. 8014970: 46bd mov sp, r7
  48854. 8014972: bd80 pop {r7, pc}
  48855. 8014974: e000ed04 .word 0xe000ed04
  48856. 08014978 <xQueueSemaphoreTake>:
  48857. /*-----------------------------------------------------------*/
  48858. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  48859. {
  48860. 8014978: b580 push {r7, lr}
  48861. 801497a: b08e sub sp, #56 @ 0x38
  48862. 801497c: af00 add r7, sp, #0
  48863. 801497e: 6078 str r0, [r7, #4]
  48864. 8014980: 6039 str r1, [r7, #0]
  48865. BaseType_t xEntryTimeSet = pdFALSE;
  48866. 8014982: 2300 movs r3, #0
  48867. 8014984: 637b str r3, [r7, #52] @ 0x34
  48868. TimeOut_t xTimeOut;
  48869. Queue_t * const pxQueue = xQueue;
  48870. 8014986: 687b ldr r3, [r7, #4]
  48871. 8014988: 62fb str r3, [r7, #44] @ 0x2c
  48872. #if( configUSE_MUTEXES == 1 )
  48873. BaseType_t xInheritanceOccurred = pdFALSE;
  48874. 801498a: 2300 movs r3, #0
  48875. 801498c: 633b str r3, [r7, #48] @ 0x30
  48876. #endif
  48877. /* Check the queue pointer is not NULL. */
  48878. configASSERT( ( pxQueue ) );
  48879. 801498e: 6afb ldr r3, [r7, #44] @ 0x2c
  48880. 8014990: 2b00 cmp r3, #0
  48881. 8014992: d10b bne.n 80149ac <xQueueSemaphoreTake+0x34>
  48882. __asm volatile
  48883. 8014994: f04f 0350 mov.w r3, #80 @ 0x50
  48884. 8014998: f383 8811 msr BASEPRI, r3
  48885. 801499c: f3bf 8f6f isb sy
  48886. 80149a0: f3bf 8f4f dsb sy
  48887. 80149a4: 623b str r3, [r7, #32]
  48888. }
  48889. 80149a6: bf00 nop
  48890. 80149a8: bf00 nop
  48891. 80149aa: e7fd b.n 80149a8 <xQueueSemaphoreTake+0x30>
  48892. /* Check this really is a semaphore, in which case the item size will be
  48893. 0. */
  48894. configASSERT( pxQueue->uxItemSize == 0 );
  48895. 80149ac: 6afb ldr r3, [r7, #44] @ 0x2c
  48896. 80149ae: 6c1b ldr r3, [r3, #64] @ 0x40
  48897. 80149b0: 2b00 cmp r3, #0
  48898. 80149b2: d00b beq.n 80149cc <xQueueSemaphoreTake+0x54>
  48899. __asm volatile
  48900. 80149b4: f04f 0350 mov.w r3, #80 @ 0x50
  48901. 80149b8: f383 8811 msr BASEPRI, r3
  48902. 80149bc: f3bf 8f6f isb sy
  48903. 80149c0: f3bf 8f4f dsb sy
  48904. 80149c4: 61fb str r3, [r7, #28]
  48905. }
  48906. 80149c6: bf00 nop
  48907. 80149c8: bf00 nop
  48908. 80149ca: e7fd b.n 80149c8 <xQueueSemaphoreTake+0x50>
  48909. /* Cannot block if the scheduler is suspended. */
  48910. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48911. {
  48912. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  48913. 80149cc: f001 fb48 bl 8016060 <xTaskGetSchedulerState>
  48914. 80149d0: 4603 mov r3, r0
  48915. 80149d2: 2b00 cmp r3, #0
  48916. 80149d4: d102 bne.n 80149dc <xQueueSemaphoreTake+0x64>
  48917. 80149d6: 683b ldr r3, [r7, #0]
  48918. 80149d8: 2b00 cmp r3, #0
  48919. 80149da: d101 bne.n 80149e0 <xQueueSemaphoreTake+0x68>
  48920. 80149dc: 2301 movs r3, #1
  48921. 80149de: e000 b.n 80149e2 <xQueueSemaphoreTake+0x6a>
  48922. 80149e0: 2300 movs r3, #0
  48923. 80149e2: 2b00 cmp r3, #0
  48924. 80149e4: d10b bne.n 80149fe <xQueueSemaphoreTake+0x86>
  48925. __asm volatile
  48926. 80149e6: f04f 0350 mov.w r3, #80 @ 0x50
  48927. 80149ea: f383 8811 msr BASEPRI, r3
  48928. 80149ee: f3bf 8f6f isb sy
  48929. 80149f2: f3bf 8f4f dsb sy
  48930. 80149f6: 61bb str r3, [r7, #24]
  48931. }
  48932. 80149f8: bf00 nop
  48933. 80149fa: bf00 nop
  48934. 80149fc: e7fd b.n 80149fa <xQueueSemaphoreTake+0x82>
  48935. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  48936. statements within the function itself. This is done in the interest
  48937. of execution time efficiency. */
  48938. for( ;; )
  48939. {
  48940. taskENTER_CRITICAL();
  48941. 80149fe: f002 fcb3 bl 8017368 <vPortEnterCritical>
  48942. {
  48943. /* Semaphores are queues with an item size of 0, and where the
  48944. number of messages in the queue is the semaphore's count value. */
  48945. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  48946. 8014a02: 6afb ldr r3, [r7, #44] @ 0x2c
  48947. 8014a04: 6b9b ldr r3, [r3, #56] @ 0x38
  48948. 8014a06: 62bb str r3, [r7, #40] @ 0x28
  48949. /* Is there data in the queue now? To be running the calling task
  48950. must be the highest priority task wanting to access the queue. */
  48951. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  48952. 8014a08: 6abb ldr r3, [r7, #40] @ 0x28
  48953. 8014a0a: 2b00 cmp r3, #0
  48954. 8014a0c: d024 beq.n 8014a58 <xQueueSemaphoreTake+0xe0>
  48955. {
  48956. traceQUEUE_RECEIVE( pxQueue );
  48957. /* Semaphores are queues with a data size of zero and where the
  48958. messages waiting is the semaphore's count. Reduce the count. */
  48959. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  48960. 8014a0e: 6abb ldr r3, [r7, #40] @ 0x28
  48961. 8014a10: 1e5a subs r2, r3, #1
  48962. 8014a12: 6afb ldr r3, [r7, #44] @ 0x2c
  48963. 8014a14: 639a str r2, [r3, #56] @ 0x38
  48964. #if ( configUSE_MUTEXES == 1 )
  48965. {
  48966. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  48967. 8014a16: 6afb ldr r3, [r7, #44] @ 0x2c
  48968. 8014a18: 681b ldr r3, [r3, #0]
  48969. 8014a1a: 2b00 cmp r3, #0
  48970. 8014a1c: d104 bne.n 8014a28 <xQueueSemaphoreTake+0xb0>
  48971. {
  48972. /* Record the information required to implement
  48973. priority inheritance should it become necessary. */
  48974. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  48975. 8014a1e: f001 fc99 bl 8016354 <pvTaskIncrementMutexHeldCount>
  48976. 8014a22: 4602 mov r2, r0
  48977. 8014a24: 6afb ldr r3, [r7, #44] @ 0x2c
  48978. 8014a26: 609a str r2, [r3, #8]
  48979. }
  48980. #endif /* configUSE_MUTEXES */
  48981. /* Check to see if other tasks are blocked waiting to give the
  48982. semaphore, and if so, unblock the highest priority such task. */
  48983. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  48984. 8014a28: 6afb ldr r3, [r7, #44] @ 0x2c
  48985. 8014a2a: 691b ldr r3, [r3, #16]
  48986. 8014a2c: 2b00 cmp r3, #0
  48987. 8014a2e: d00f beq.n 8014a50 <xQueueSemaphoreTake+0xd8>
  48988. {
  48989. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  48990. 8014a30: 6afb ldr r3, [r7, #44] @ 0x2c
  48991. 8014a32: 3310 adds r3, #16
  48992. 8014a34: 4618 mov r0, r3
  48993. 8014a36: f001 f915 bl 8015c64 <xTaskRemoveFromEventList>
  48994. 8014a3a: 4603 mov r3, r0
  48995. 8014a3c: 2b00 cmp r3, #0
  48996. 8014a3e: d007 beq.n 8014a50 <xQueueSemaphoreTake+0xd8>
  48997. {
  48998. queueYIELD_IF_USING_PREEMPTION();
  48999. 8014a40: 4b54 ldr r3, [pc, #336] @ (8014b94 <xQueueSemaphoreTake+0x21c>)
  49000. 8014a42: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49001. 8014a46: 601a str r2, [r3, #0]
  49002. 8014a48: f3bf 8f4f dsb sy
  49003. 8014a4c: f3bf 8f6f isb sy
  49004. else
  49005. {
  49006. mtCOVERAGE_TEST_MARKER();
  49007. }
  49008. taskEXIT_CRITICAL();
  49009. 8014a50: f002 fcbc bl 80173cc <vPortExitCritical>
  49010. return pdPASS;
  49011. 8014a54: 2301 movs r3, #1
  49012. 8014a56: e098 b.n 8014b8a <xQueueSemaphoreTake+0x212>
  49013. }
  49014. else
  49015. {
  49016. if( xTicksToWait == ( TickType_t ) 0 )
  49017. 8014a58: 683b ldr r3, [r7, #0]
  49018. 8014a5a: 2b00 cmp r3, #0
  49019. 8014a5c: d112 bne.n 8014a84 <xQueueSemaphoreTake+0x10c>
  49020. /* For inheritance to have occurred there must have been an
  49021. initial timeout, and an adjusted timeout cannot become 0, as
  49022. if it were 0 the function would have exited. */
  49023. #if( configUSE_MUTEXES == 1 )
  49024. {
  49025. configASSERT( xInheritanceOccurred == pdFALSE );
  49026. 8014a5e: 6b3b ldr r3, [r7, #48] @ 0x30
  49027. 8014a60: 2b00 cmp r3, #0
  49028. 8014a62: d00b beq.n 8014a7c <xQueueSemaphoreTake+0x104>
  49029. __asm volatile
  49030. 8014a64: f04f 0350 mov.w r3, #80 @ 0x50
  49031. 8014a68: f383 8811 msr BASEPRI, r3
  49032. 8014a6c: f3bf 8f6f isb sy
  49033. 8014a70: f3bf 8f4f dsb sy
  49034. 8014a74: 617b str r3, [r7, #20]
  49035. }
  49036. 8014a76: bf00 nop
  49037. 8014a78: bf00 nop
  49038. 8014a7a: e7fd b.n 8014a78 <xQueueSemaphoreTake+0x100>
  49039. }
  49040. #endif /* configUSE_MUTEXES */
  49041. /* The semaphore count was 0 and no block time is specified
  49042. (or the block time has expired) so exit now. */
  49043. taskEXIT_CRITICAL();
  49044. 8014a7c: f002 fca6 bl 80173cc <vPortExitCritical>
  49045. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49046. return errQUEUE_EMPTY;
  49047. 8014a80: 2300 movs r3, #0
  49048. 8014a82: e082 b.n 8014b8a <xQueueSemaphoreTake+0x212>
  49049. }
  49050. else if( xEntryTimeSet == pdFALSE )
  49051. 8014a84: 6b7b ldr r3, [r7, #52] @ 0x34
  49052. 8014a86: 2b00 cmp r3, #0
  49053. 8014a88: d106 bne.n 8014a98 <xQueueSemaphoreTake+0x120>
  49054. {
  49055. /* The semaphore count was 0 and a block time was specified
  49056. so configure the timeout structure ready to block. */
  49057. vTaskInternalSetTimeOutState( &xTimeOut );
  49058. 8014a8a: f107 030c add.w r3, r7, #12
  49059. 8014a8e: 4618 mov r0, r3
  49060. 8014a90: f001 f974 bl 8015d7c <vTaskInternalSetTimeOutState>
  49061. xEntryTimeSet = pdTRUE;
  49062. 8014a94: 2301 movs r3, #1
  49063. 8014a96: 637b str r3, [r7, #52] @ 0x34
  49064. /* Entry time was already set. */
  49065. mtCOVERAGE_TEST_MARKER();
  49066. }
  49067. }
  49068. }
  49069. taskEXIT_CRITICAL();
  49070. 8014a98: f002 fc98 bl 80173cc <vPortExitCritical>
  49071. /* Interrupts and other tasks can give to and take from the semaphore
  49072. now the critical section has been exited. */
  49073. vTaskSuspendAll();
  49074. 8014a9c: f000 fea6 bl 80157ec <vTaskSuspendAll>
  49075. prvLockQueue( pxQueue );
  49076. 8014aa0: f002 fc62 bl 8017368 <vPortEnterCritical>
  49077. 8014aa4: 6afb ldr r3, [r7, #44] @ 0x2c
  49078. 8014aa6: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49079. 8014aaa: b25b sxtb r3, r3
  49080. 8014aac: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49081. 8014ab0: d103 bne.n 8014aba <xQueueSemaphoreTake+0x142>
  49082. 8014ab2: 6afb ldr r3, [r7, #44] @ 0x2c
  49083. 8014ab4: 2200 movs r2, #0
  49084. 8014ab6: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49085. 8014aba: 6afb ldr r3, [r7, #44] @ 0x2c
  49086. 8014abc: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49087. 8014ac0: b25b sxtb r3, r3
  49088. 8014ac2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49089. 8014ac6: d103 bne.n 8014ad0 <xQueueSemaphoreTake+0x158>
  49090. 8014ac8: 6afb ldr r3, [r7, #44] @ 0x2c
  49091. 8014aca: 2200 movs r2, #0
  49092. 8014acc: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49093. 8014ad0: f002 fc7c bl 80173cc <vPortExitCritical>
  49094. /* Update the timeout state to see if it has expired yet. */
  49095. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  49096. 8014ad4: 463a mov r2, r7
  49097. 8014ad6: f107 030c add.w r3, r7, #12
  49098. 8014ada: 4611 mov r1, r2
  49099. 8014adc: 4618 mov r0, r3
  49100. 8014ade: f001 f963 bl 8015da8 <xTaskCheckForTimeOut>
  49101. 8014ae2: 4603 mov r3, r0
  49102. 8014ae4: 2b00 cmp r3, #0
  49103. 8014ae6: d132 bne.n 8014b4e <xQueueSemaphoreTake+0x1d6>
  49104. {
  49105. /* A block time is specified and not expired. If the semaphore
  49106. count is 0 then enter the Blocked state to wait for a semaphore to
  49107. become available. As semaphores are implemented with queues the
  49108. queue being empty is equivalent to the semaphore count being 0. */
  49109. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49110. 8014ae8: 6af8 ldr r0, [r7, #44] @ 0x2c
  49111. 8014aea: f000 f9d1 bl 8014e90 <prvIsQueueEmpty>
  49112. 8014aee: 4603 mov r3, r0
  49113. 8014af0: 2b00 cmp r3, #0
  49114. 8014af2: d026 beq.n 8014b42 <xQueueSemaphoreTake+0x1ca>
  49115. {
  49116. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  49117. #if ( configUSE_MUTEXES == 1 )
  49118. {
  49119. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  49120. 8014af4: 6afb ldr r3, [r7, #44] @ 0x2c
  49121. 8014af6: 681b ldr r3, [r3, #0]
  49122. 8014af8: 2b00 cmp r3, #0
  49123. 8014afa: d109 bne.n 8014b10 <xQueueSemaphoreTake+0x198>
  49124. {
  49125. taskENTER_CRITICAL();
  49126. 8014afc: f002 fc34 bl 8017368 <vPortEnterCritical>
  49127. {
  49128. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  49129. 8014b00: 6afb ldr r3, [r7, #44] @ 0x2c
  49130. 8014b02: 689b ldr r3, [r3, #8]
  49131. 8014b04: 4618 mov r0, r3
  49132. 8014b06: f001 fac9 bl 801609c <xTaskPriorityInherit>
  49133. 8014b0a: 6338 str r0, [r7, #48] @ 0x30
  49134. }
  49135. taskEXIT_CRITICAL();
  49136. 8014b0c: f002 fc5e bl 80173cc <vPortExitCritical>
  49137. mtCOVERAGE_TEST_MARKER();
  49138. }
  49139. }
  49140. #endif
  49141. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  49142. 8014b10: 6afb ldr r3, [r7, #44] @ 0x2c
  49143. 8014b12: 3324 adds r3, #36 @ 0x24
  49144. 8014b14: 683a ldr r2, [r7, #0]
  49145. 8014b16: 4611 mov r1, r2
  49146. 8014b18: 4618 mov r0, r3
  49147. 8014b1a: f001 f851 bl 8015bc0 <vTaskPlaceOnEventList>
  49148. prvUnlockQueue( pxQueue );
  49149. 8014b1e: 6af8 ldr r0, [r7, #44] @ 0x2c
  49150. 8014b20: f000 f964 bl 8014dec <prvUnlockQueue>
  49151. if( xTaskResumeAll() == pdFALSE )
  49152. 8014b24: f000 fe70 bl 8015808 <xTaskResumeAll>
  49153. 8014b28: 4603 mov r3, r0
  49154. 8014b2a: 2b00 cmp r3, #0
  49155. 8014b2c: f47f af67 bne.w 80149fe <xQueueSemaphoreTake+0x86>
  49156. {
  49157. portYIELD_WITHIN_API();
  49158. 8014b30: 4b18 ldr r3, [pc, #96] @ (8014b94 <xQueueSemaphoreTake+0x21c>)
  49159. 8014b32: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49160. 8014b36: 601a str r2, [r3, #0]
  49161. 8014b38: f3bf 8f4f dsb sy
  49162. 8014b3c: f3bf 8f6f isb sy
  49163. 8014b40: e75d b.n 80149fe <xQueueSemaphoreTake+0x86>
  49164. }
  49165. else
  49166. {
  49167. /* There was no timeout and the semaphore count was not 0, so
  49168. attempt to take the semaphore again. */
  49169. prvUnlockQueue( pxQueue );
  49170. 8014b42: 6af8 ldr r0, [r7, #44] @ 0x2c
  49171. 8014b44: f000 f952 bl 8014dec <prvUnlockQueue>
  49172. ( void ) xTaskResumeAll();
  49173. 8014b48: f000 fe5e bl 8015808 <xTaskResumeAll>
  49174. 8014b4c: e757 b.n 80149fe <xQueueSemaphoreTake+0x86>
  49175. }
  49176. }
  49177. else
  49178. {
  49179. /* Timed out. */
  49180. prvUnlockQueue( pxQueue );
  49181. 8014b4e: 6af8 ldr r0, [r7, #44] @ 0x2c
  49182. 8014b50: f000 f94c bl 8014dec <prvUnlockQueue>
  49183. ( void ) xTaskResumeAll();
  49184. 8014b54: f000 fe58 bl 8015808 <xTaskResumeAll>
  49185. /* If the semaphore count is 0 exit now as the timeout has
  49186. expired. Otherwise return to attempt to take the semaphore that is
  49187. known to be available. As semaphores are implemented by queues the
  49188. queue being empty is equivalent to the semaphore count being 0. */
  49189. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49190. 8014b58: 6af8 ldr r0, [r7, #44] @ 0x2c
  49191. 8014b5a: f000 f999 bl 8014e90 <prvIsQueueEmpty>
  49192. 8014b5e: 4603 mov r3, r0
  49193. 8014b60: 2b00 cmp r3, #0
  49194. 8014b62: f43f af4c beq.w 80149fe <xQueueSemaphoreTake+0x86>
  49195. #if ( configUSE_MUTEXES == 1 )
  49196. {
  49197. /* xInheritanceOccurred could only have be set if
  49198. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  49199. test the mutex type again to check it is actually a mutex. */
  49200. if( xInheritanceOccurred != pdFALSE )
  49201. 8014b66: 6b3b ldr r3, [r7, #48] @ 0x30
  49202. 8014b68: 2b00 cmp r3, #0
  49203. 8014b6a: d00d beq.n 8014b88 <xQueueSemaphoreTake+0x210>
  49204. {
  49205. taskENTER_CRITICAL();
  49206. 8014b6c: f002 fbfc bl 8017368 <vPortEnterCritical>
  49207. /* This task blocking on the mutex caused another
  49208. task to inherit this task's priority. Now this task
  49209. has timed out the priority should be disinherited
  49210. again, but only as low as the next highest priority
  49211. task that is waiting for the same mutex. */
  49212. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  49213. 8014b70: 6af8 ldr r0, [r7, #44] @ 0x2c
  49214. 8014b72: f000 f893 bl 8014c9c <prvGetDisinheritPriorityAfterTimeout>
  49215. 8014b76: 6278 str r0, [r7, #36] @ 0x24
  49216. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  49217. 8014b78: 6afb ldr r3, [r7, #44] @ 0x2c
  49218. 8014b7a: 689b ldr r3, [r3, #8]
  49219. 8014b7c: 6a79 ldr r1, [r7, #36] @ 0x24
  49220. 8014b7e: 4618 mov r0, r3
  49221. 8014b80: f001 fb64 bl 801624c <vTaskPriorityDisinheritAfterTimeout>
  49222. }
  49223. taskEXIT_CRITICAL();
  49224. 8014b84: f002 fc22 bl 80173cc <vPortExitCritical>
  49225. }
  49226. }
  49227. #endif /* configUSE_MUTEXES */
  49228. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49229. return errQUEUE_EMPTY;
  49230. 8014b88: 2300 movs r3, #0
  49231. {
  49232. mtCOVERAGE_TEST_MARKER();
  49233. }
  49234. }
  49235. } /*lint -restore */
  49236. }
  49237. 8014b8a: 4618 mov r0, r3
  49238. 8014b8c: 3738 adds r7, #56 @ 0x38
  49239. 8014b8e: 46bd mov sp, r7
  49240. 8014b90: bd80 pop {r7, pc}
  49241. 8014b92: bf00 nop
  49242. 8014b94: e000ed04 .word 0xe000ed04
  49243. 08014b98 <xQueueReceiveFromISR>:
  49244. } /*lint -restore */
  49245. }
  49246. /*-----------------------------------------------------------*/
  49247. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  49248. {
  49249. 8014b98: b580 push {r7, lr}
  49250. 8014b9a: b08e sub sp, #56 @ 0x38
  49251. 8014b9c: af00 add r7, sp, #0
  49252. 8014b9e: 60f8 str r0, [r7, #12]
  49253. 8014ba0: 60b9 str r1, [r7, #8]
  49254. 8014ba2: 607a str r2, [r7, #4]
  49255. BaseType_t xReturn;
  49256. UBaseType_t uxSavedInterruptStatus;
  49257. Queue_t * const pxQueue = xQueue;
  49258. 8014ba4: 68fb ldr r3, [r7, #12]
  49259. 8014ba6: 633b str r3, [r7, #48] @ 0x30
  49260. configASSERT( pxQueue );
  49261. 8014ba8: 6b3b ldr r3, [r7, #48] @ 0x30
  49262. 8014baa: 2b00 cmp r3, #0
  49263. 8014bac: d10b bne.n 8014bc6 <xQueueReceiveFromISR+0x2e>
  49264. __asm volatile
  49265. 8014bae: f04f 0350 mov.w r3, #80 @ 0x50
  49266. 8014bb2: f383 8811 msr BASEPRI, r3
  49267. 8014bb6: f3bf 8f6f isb sy
  49268. 8014bba: f3bf 8f4f dsb sy
  49269. 8014bbe: 623b str r3, [r7, #32]
  49270. }
  49271. 8014bc0: bf00 nop
  49272. 8014bc2: bf00 nop
  49273. 8014bc4: e7fd b.n 8014bc2 <xQueueReceiveFromISR+0x2a>
  49274. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49275. 8014bc6: 68bb ldr r3, [r7, #8]
  49276. 8014bc8: 2b00 cmp r3, #0
  49277. 8014bca: d103 bne.n 8014bd4 <xQueueReceiveFromISR+0x3c>
  49278. 8014bcc: 6b3b ldr r3, [r7, #48] @ 0x30
  49279. 8014bce: 6c1b ldr r3, [r3, #64] @ 0x40
  49280. 8014bd0: 2b00 cmp r3, #0
  49281. 8014bd2: d101 bne.n 8014bd8 <xQueueReceiveFromISR+0x40>
  49282. 8014bd4: 2301 movs r3, #1
  49283. 8014bd6: e000 b.n 8014bda <xQueueReceiveFromISR+0x42>
  49284. 8014bd8: 2300 movs r3, #0
  49285. 8014bda: 2b00 cmp r3, #0
  49286. 8014bdc: d10b bne.n 8014bf6 <xQueueReceiveFromISR+0x5e>
  49287. __asm volatile
  49288. 8014bde: f04f 0350 mov.w r3, #80 @ 0x50
  49289. 8014be2: f383 8811 msr BASEPRI, r3
  49290. 8014be6: f3bf 8f6f isb sy
  49291. 8014bea: f3bf 8f4f dsb sy
  49292. 8014bee: 61fb str r3, [r7, #28]
  49293. }
  49294. 8014bf0: bf00 nop
  49295. 8014bf2: bf00 nop
  49296. 8014bf4: e7fd b.n 8014bf2 <xQueueReceiveFromISR+0x5a>
  49297. that have been assigned a priority at or (logically) below the maximum
  49298. system call interrupt priority. FreeRTOS maintains a separate interrupt
  49299. safe API to ensure interrupt entry is as fast and as simple as possible.
  49300. More information (albeit Cortex-M specific) is provided on the following
  49301. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  49302. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  49303. 8014bf6: f002 fc97 bl 8017528 <vPortValidateInterruptPriority>
  49304. __asm volatile
  49305. 8014bfa: f3ef 8211 mrs r2, BASEPRI
  49306. 8014bfe: f04f 0350 mov.w r3, #80 @ 0x50
  49307. 8014c02: f383 8811 msr BASEPRI, r3
  49308. 8014c06: f3bf 8f6f isb sy
  49309. 8014c0a: f3bf 8f4f dsb sy
  49310. 8014c0e: 61ba str r2, [r7, #24]
  49311. 8014c10: 617b str r3, [r7, #20]
  49312. return ulOriginalBASEPRI;
  49313. 8014c12: 69bb ldr r3, [r7, #24]
  49314. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49315. 8014c14: 62fb str r3, [r7, #44] @ 0x2c
  49316. {
  49317. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49318. 8014c16: 6b3b ldr r3, [r7, #48] @ 0x30
  49319. 8014c18: 6b9b ldr r3, [r3, #56] @ 0x38
  49320. 8014c1a: 62bb str r3, [r7, #40] @ 0x28
  49321. /* Cannot block in an ISR, so check there is data available. */
  49322. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49323. 8014c1c: 6abb ldr r3, [r7, #40] @ 0x28
  49324. 8014c1e: 2b00 cmp r3, #0
  49325. 8014c20: d02f beq.n 8014c82 <xQueueReceiveFromISR+0xea>
  49326. {
  49327. const int8_t cRxLock = pxQueue->cRxLock;
  49328. 8014c22: 6b3b ldr r3, [r7, #48] @ 0x30
  49329. 8014c24: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49330. 8014c28: f887 3027 strb.w r3, [r7, #39] @ 0x27
  49331. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  49332. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49333. 8014c2c: 68b9 ldr r1, [r7, #8]
  49334. 8014c2e: 6b38 ldr r0, [r7, #48] @ 0x30
  49335. 8014c30: f000 f8b6 bl 8014da0 <prvCopyDataFromQueue>
  49336. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49337. 8014c34: 6abb ldr r3, [r7, #40] @ 0x28
  49338. 8014c36: 1e5a subs r2, r3, #1
  49339. 8014c38: 6b3b ldr r3, [r7, #48] @ 0x30
  49340. 8014c3a: 639a str r2, [r3, #56] @ 0x38
  49341. /* If the queue is locked the event list will not be modified.
  49342. Instead update the lock count so the task that unlocks the queue
  49343. will know that an ISR has removed data while the queue was
  49344. locked. */
  49345. if( cRxLock == queueUNLOCKED )
  49346. 8014c3c: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  49347. 8014c40: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49348. 8014c44: d112 bne.n 8014c6c <xQueueReceiveFromISR+0xd4>
  49349. {
  49350. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49351. 8014c46: 6b3b ldr r3, [r7, #48] @ 0x30
  49352. 8014c48: 691b ldr r3, [r3, #16]
  49353. 8014c4a: 2b00 cmp r3, #0
  49354. 8014c4c: d016 beq.n 8014c7c <xQueueReceiveFromISR+0xe4>
  49355. {
  49356. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49357. 8014c4e: 6b3b ldr r3, [r7, #48] @ 0x30
  49358. 8014c50: 3310 adds r3, #16
  49359. 8014c52: 4618 mov r0, r3
  49360. 8014c54: f001 f806 bl 8015c64 <xTaskRemoveFromEventList>
  49361. 8014c58: 4603 mov r3, r0
  49362. 8014c5a: 2b00 cmp r3, #0
  49363. 8014c5c: d00e beq.n 8014c7c <xQueueReceiveFromISR+0xe4>
  49364. {
  49365. /* The task waiting has a higher priority than us so
  49366. force a context switch. */
  49367. if( pxHigherPriorityTaskWoken != NULL )
  49368. 8014c5e: 687b ldr r3, [r7, #4]
  49369. 8014c60: 2b00 cmp r3, #0
  49370. 8014c62: d00b beq.n 8014c7c <xQueueReceiveFromISR+0xe4>
  49371. {
  49372. *pxHigherPriorityTaskWoken = pdTRUE;
  49373. 8014c64: 687b ldr r3, [r7, #4]
  49374. 8014c66: 2201 movs r2, #1
  49375. 8014c68: 601a str r2, [r3, #0]
  49376. 8014c6a: e007 b.n 8014c7c <xQueueReceiveFromISR+0xe4>
  49377. }
  49378. else
  49379. {
  49380. /* Increment the lock count so the task that unlocks the queue
  49381. knows that data was removed while it was locked. */
  49382. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  49383. 8014c6c: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  49384. 8014c70: 3301 adds r3, #1
  49385. 8014c72: b2db uxtb r3, r3
  49386. 8014c74: b25a sxtb r2, r3
  49387. 8014c76: 6b3b ldr r3, [r7, #48] @ 0x30
  49388. 8014c78: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49389. }
  49390. xReturn = pdPASS;
  49391. 8014c7c: 2301 movs r3, #1
  49392. 8014c7e: 637b str r3, [r7, #52] @ 0x34
  49393. 8014c80: e001 b.n 8014c86 <xQueueReceiveFromISR+0xee>
  49394. }
  49395. else
  49396. {
  49397. xReturn = pdFAIL;
  49398. 8014c82: 2300 movs r3, #0
  49399. 8014c84: 637b str r3, [r7, #52] @ 0x34
  49400. 8014c86: 6afb ldr r3, [r7, #44] @ 0x2c
  49401. 8014c88: 613b str r3, [r7, #16]
  49402. __asm volatile
  49403. 8014c8a: 693b ldr r3, [r7, #16]
  49404. 8014c8c: f383 8811 msr BASEPRI, r3
  49405. }
  49406. 8014c90: bf00 nop
  49407. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  49408. }
  49409. }
  49410. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  49411. return xReturn;
  49412. 8014c92: 6b7b ldr r3, [r7, #52] @ 0x34
  49413. }
  49414. 8014c94: 4618 mov r0, r3
  49415. 8014c96: 3738 adds r7, #56 @ 0x38
  49416. 8014c98: 46bd mov sp, r7
  49417. 8014c9a: bd80 pop {r7, pc}
  49418. 08014c9c <prvGetDisinheritPriorityAfterTimeout>:
  49419. /*-----------------------------------------------------------*/
  49420. #if( configUSE_MUTEXES == 1 )
  49421. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  49422. {
  49423. 8014c9c: b480 push {r7}
  49424. 8014c9e: b085 sub sp, #20
  49425. 8014ca0: af00 add r7, sp, #0
  49426. 8014ca2: 6078 str r0, [r7, #4]
  49427. priority, but the waiting task times out, then the holder should
  49428. disinherit the priority - but only down to the highest priority of any
  49429. other tasks that are waiting for the same mutex. For this purpose,
  49430. return the priority of the highest priority task that is waiting for the
  49431. mutex. */
  49432. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  49433. 8014ca4: 687b ldr r3, [r7, #4]
  49434. 8014ca6: 6a5b ldr r3, [r3, #36] @ 0x24
  49435. 8014ca8: 2b00 cmp r3, #0
  49436. 8014caa: d006 beq.n 8014cba <prvGetDisinheritPriorityAfterTimeout+0x1e>
  49437. {
  49438. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  49439. 8014cac: 687b ldr r3, [r7, #4]
  49440. 8014cae: 6b1b ldr r3, [r3, #48] @ 0x30
  49441. 8014cb0: 681b ldr r3, [r3, #0]
  49442. 8014cb2: f1c3 0338 rsb r3, r3, #56 @ 0x38
  49443. 8014cb6: 60fb str r3, [r7, #12]
  49444. 8014cb8: e001 b.n 8014cbe <prvGetDisinheritPriorityAfterTimeout+0x22>
  49445. }
  49446. else
  49447. {
  49448. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  49449. 8014cba: 2300 movs r3, #0
  49450. 8014cbc: 60fb str r3, [r7, #12]
  49451. }
  49452. return uxHighestPriorityOfWaitingTasks;
  49453. 8014cbe: 68fb ldr r3, [r7, #12]
  49454. }
  49455. 8014cc0: 4618 mov r0, r3
  49456. 8014cc2: 3714 adds r7, #20
  49457. 8014cc4: 46bd mov sp, r7
  49458. 8014cc6: f85d 7b04 ldr.w r7, [sp], #4
  49459. 8014cca: 4770 bx lr
  49460. 08014ccc <prvCopyDataToQueue>:
  49461. #endif /* configUSE_MUTEXES */
  49462. /*-----------------------------------------------------------*/
  49463. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  49464. {
  49465. 8014ccc: b580 push {r7, lr}
  49466. 8014cce: b086 sub sp, #24
  49467. 8014cd0: af00 add r7, sp, #0
  49468. 8014cd2: 60f8 str r0, [r7, #12]
  49469. 8014cd4: 60b9 str r1, [r7, #8]
  49470. 8014cd6: 607a str r2, [r7, #4]
  49471. BaseType_t xReturn = pdFALSE;
  49472. 8014cd8: 2300 movs r3, #0
  49473. 8014cda: 617b str r3, [r7, #20]
  49474. UBaseType_t uxMessagesWaiting;
  49475. /* This function is called from a critical section. */
  49476. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49477. 8014cdc: 68fb ldr r3, [r7, #12]
  49478. 8014cde: 6b9b ldr r3, [r3, #56] @ 0x38
  49479. 8014ce0: 613b str r3, [r7, #16]
  49480. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  49481. 8014ce2: 68fb ldr r3, [r7, #12]
  49482. 8014ce4: 6c1b ldr r3, [r3, #64] @ 0x40
  49483. 8014ce6: 2b00 cmp r3, #0
  49484. 8014ce8: d10d bne.n 8014d06 <prvCopyDataToQueue+0x3a>
  49485. {
  49486. #if ( configUSE_MUTEXES == 1 )
  49487. {
  49488. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  49489. 8014cea: 68fb ldr r3, [r7, #12]
  49490. 8014cec: 681b ldr r3, [r3, #0]
  49491. 8014cee: 2b00 cmp r3, #0
  49492. 8014cf0: d14d bne.n 8014d8e <prvCopyDataToQueue+0xc2>
  49493. {
  49494. /* The mutex is no longer being held. */
  49495. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  49496. 8014cf2: 68fb ldr r3, [r7, #12]
  49497. 8014cf4: 689b ldr r3, [r3, #8]
  49498. 8014cf6: 4618 mov r0, r3
  49499. 8014cf8: f001 fa38 bl 801616c <xTaskPriorityDisinherit>
  49500. 8014cfc: 6178 str r0, [r7, #20]
  49501. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  49502. 8014cfe: 68fb ldr r3, [r7, #12]
  49503. 8014d00: 2200 movs r2, #0
  49504. 8014d02: 609a str r2, [r3, #8]
  49505. 8014d04: e043 b.n 8014d8e <prvCopyDataToQueue+0xc2>
  49506. mtCOVERAGE_TEST_MARKER();
  49507. }
  49508. }
  49509. #endif /* configUSE_MUTEXES */
  49510. }
  49511. else if( xPosition == queueSEND_TO_BACK )
  49512. 8014d06: 687b ldr r3, [r7, #4]
  49513. 8014d08: 2b00 cmp r3, #0
  49514. 8014d0a: d119 bne.n 8014d40 <prvCopyDataToQueue+0x74>
  49515. {
  49516. ( void ) memcpy( ( void * ) pxQueue->pcWriteTo, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports, plus previous logic ensures a null pointer can only be passed to memcpy() if the copy size is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
  49517. 8014d0c: 68fb ldr r3, [r7, #12]
  49518. 8014d0e: 6858 ldr r0, [r3, #4]
  49519. 8014d10: 68fb ldr r3, [r7, #12]
  49520. 8014d12: 6c1b ldr r3, [r3, #64] @ 0x40
  49521. 8014d14: 461a mov r2, r3
  49522. 8014d16: 68b9 ldr r1, [r7, #8]
  49523. 8014d18: f003 f81f bl 8017d5a <memcpy>
  49524. pxQueue->pcWriteTo += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
  49525. 8014d1c: 68fb ldr r3, [r7, #12]
  49526. 8014d1e: 685a ldr r2, [r3, #4]
  49527. 8014d20: 68fb ldr r3, [r7, #12]
  49528. 8014d22: 6c1b ldr r3, [r3, #64] @ 0x40
  49529. 8014d24: 441a add r2, r3
  49530. 8014d26: 68fb ldr r3, [r7, #12]
  49531. 8014d28: 605a str r2, [r3, #4]
  49532. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  49533. 8014d2a: 68fb ldr r3, [r7, #12]
  49534. 8014d2c: 685a ldr r2, [r3, #4]
  49535. 8014d2e: 68fb ldr r3, [r7, #12]
  49536. 8014d30: 689b ldr r3, [r3, #8]
  49537. 8014d32: 429a cmp r2, r3
  49538. 8014d34: d32b bcc.n 8014d8e <prvCopyDataToQueue+0xc2>
  49539. {
  49540. pxQueue->pcWriteTo = pxQueue->pcHead;
  49541. 8014d36: 68fb ldr r3, [r7, #12]
  49542. 8014d38: 681a ldr r2, [r3, #0]
  49543. 8014d3a: 68fb ldr r3, [r7, #12]
  49544. 8014d3c: 605a str r2, [r3, #4]
  49545. 8014d3e: e026 b.n 8014d8e <prvCopyDataToQueue+0xc2>
  49546. mtCOVERAGE_TEST_MARKER();
  49547. }
  49548. }
  49549. else
  49550. {
  49551. ( void ) memcpy( ( void * ) pxQueue->u.xQueue.pcReadFrom, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e9087 !e418 MISRA exception as the casts are only redundant for some ports. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. Assert checks null pointer only used when length is 0. */
  49552. 8014d40: 68fb ldr r3, [r7, #12]
  49553. 8014d42: 68d8 ldr r0, [r3, #12]
  49554. 8014d44: 68fb ldr r3, [r7, #12]
  49555. 8014d46: 6c1b ldr r3, [r3, #64] @ 0x40
  49556. 8014d48: 461a mov r2, r3
  49557. 8014d4a: 68b9 ldr r1, [r7, #8]
  49558. 8014d4c: f003 f805 bl 8017d5a <memcpy>
  49559. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  49560. 8014d50: 68fb ldr r3, [r7, #12]
  49561. 8014d52: 68da ldr r2, [r3, #12]
  49562. 8014d54: 68fb ldr r3, [r7, #12]
  49563. 8014d56: 6c1b ldr r3, [r3, #64] @ 0x40
  49564. 8014d58: 425b negs r3, r3
  49565. 8014d5a: 441a add r2, r3
  49566. 8014d5c: 68fb ldr r3, [r7, #12]
  49567. 8014d5e: 60da str r2, [r3, #12]
  49568. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  49569. 8014d60: 68fb ldr r3, [r7, #12]
  49570. 8014d62: 68da ldr r2, [r3, #12]
  49571. 8014d64: 68fb ldr r3, [r7, #12]
  49572. 8014d66: 681b ldr r3, [r3, #0]
  49573. 8014d68: 429a cmp r2, r3
  49574. 8014d6a: d207 bcs.n 8014d7c <prvCopyDataToQueue+0xb0>
  49575. {
  49576. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  49577. 8014d6c: 68fb ldr r3, [r7, #12]
  49578. 8014d6e: 689a ldr r2, [r3, #8]
  49579. 8014d70: 68fb ldr r3, [r7, #12]
  49580. 8014d72: 6c1b ldr r3, [r3, #64] @ 0x40
  49581. 8014d74: 425b negs r3, r3
  49582. 8014d76: 441a add r2, r3
  49583. 8014d78: 68fb ldr r3, [r7, #12]
  49584. 8014d7a: 60da str r2, [r3, #12]
  49585. else
  49586. {
  49587. mtCOVERAGE_TEST_MARKER();
  49588. }
  49589. if( xPosition == queueOVERWRITE )
  49590. 8014d7c: 687b ldr r3, [r7, #4]
  49591. 8014d7e: 2b02 cmp r3, #2
  49592. 8014d80: d105 bne.n 8014d8e <prvCopyDataToQueue+0xc2>
  49593. {
  49594. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49595. 8014d82: 693b ldr r3, [r7, #16]
  49596. 8014d84: 2b00 cmp r3, #0
  49597. 8014d86: d002 beq.n 8014d8e <prvCopyDataToQueue+0xc2>
  49598. {
  49599. /* An item is not being added but overwritten, so subtract
  49600. one from the recorded number of items in the queue so when
  49601. one is added again below the number of recorded items remains
  49602. correct. */
  49603. --uxMessagesWaiting;
  49604. 8014d88: 693b ldr r3, [r7, #16]
  49605. 8014d8a: 3b01 subs r3, #1
  49606. 8014d8c: 613b str r3, [r7, #16]
  49607. {
  49608. mtCOVERAGE_TEST_MARKER();
  49609. }
  49610. }
  49611. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  49612. 8014d8e: 693b ldr r3, [r7, #16]
  49613. 8014d90: 1c5a adds r2, r3, #1
  49614. 8014d92: 68fb ldr r3, [r7, #12]
  49615. 8014d94: 639a str r2, [r3, #56] @ 0x38
  49616. return xReturn;
  49617. 8014d96: 697b ldr r3, [r7, #20]
  49618. }
  49619. 8014d98: 4618 mov r0, r3
  49620. 8014d9a: 3718 adds r7, #24
  49621. 8014d9c: 46bd mov sp, r7
  49622. 8014d9e: bd80 pop {r7, pc}
  49623. 08014da0 <prvCopyDataFromQueue>:
  49624. /*-----------------------------------------------------------*/
  49625. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  49626. {
  49627. 8014da0: b580 push {r7, lr}
  49628. 8014da2: b082 sub sp, #8
  49629. 8014da4: af00 add r7, sp, #0
  49630. 8014da6: 6078 str r0, [r7, #4]
  49631. 8014da8: 6039 str r1, [r7, #0]
  49632. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  49633. 8014daa: 687b ldr r3, [r7, #4]
  49634. 8014dac: 6c1b ldr r3, [r3, #64] @ 0x40
  49635. 8014dae: 2b00 cmp r3, #0
  49636. 8014db0: d018 beq.n 8014de4 <prvCopyDataFromQueue+0x44>
  49637. {
  49638. pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
  49639. 8014db2: 687b ldr r3, [r7, #4]
  49640. 8014db4: 68da ldr r2, [r3, #12]
  49641. 8014db6: 687b ldr r3, [r7, #4]
  49642. 8014db8: 6c1b ldr r3, [r3, #64] @ 0x40
  49643. 8014dba: 441a add r2, r3
  49644. 8014dbc: 687b ldr r3, [r7, #4]
  49645. 8014dbe: 60da str r2, [r3, #12]
  49646. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  49647. 8014dc0: 687b ldr r3, [r7, #4]
  49648. 8014dc2: 68da ldr r2, [r3, #12]
  49649. 8014dc4: 687b ldr r3, [r7, #4]
  49650. 8014dc6: 689b ldr r3, [r3, #8]
  49651. 8014dc8: 429a cmp r2, r3
  49652. 8014dca: d303 bcc.n 8014dd4 <prvCopyDataFromQueue+0x34>
  49653. {
  49654. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  49655. 8014dcc: 687b ldr r3, [r7, #4]
  49656. 8014dce: 681a ldr r2, [r3, #0]
  49657. 8014dd0: 687b ldr r3, [r7, #4]
  49658. 8014dd2: 60da str r2, [r3, #12]
  49659. }
  49660. else
  49661. {
  49662. mtCOVERAGE_TEST_MARKER();
  49663. }
  49664. ( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports. Also previous logic ensures a null pointer can only be passed to memcpy() when the count is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
  49665. 8014dd4: 687b ldr r3, [r7, #4]
  49666. 8014dd6: 68d9 ldr r1, [r3, #12]
  49667. 8014dd8: 687b ldr r3, [r7, #4]
  49668. 8014dda: 6c1b ldr r3, [r3, #64] @ 0x40
  49669. 8014ddc: 461a mov r2, r3
  49670. 8014dde: 6838 ldr r0, [r7, #0]
  49671. 8014de0: f002 ffbb bl 8017d5a <memcpy>
  49672. }
  49673. }
  49674. 8014de4: bf00 nop
  49675. 8014de6: 3708 adds r7, #8
  49676. 8014de8: 46bd mov sp, r7
  49677. 8014dea: bd80 pop {r7, pc}
  49678. 08014dec <prvUnlockQueue>:
  49679. /*-----------------------------------------------------------*/
  49680. static void prvUnlockQueue( Queue_t * const pxQueue )
  49681. {
  49682. 8014dec: b580 push {r7, lr}
  49683. 8014dee: b084 sub sp, #16
  49684. 8014df0: af00 add r7, sp, #0
  49685. 8014df2: 6078 str r0, [r7, #4]
  49686. /* The lock counts contains the number of extra data items placed or
  49687. removed from the queue while the queue was locked. When a queue is
  49688. locked items can be added or removed, but the event lists cannot be
  49689. updated. */
  49690. taskENTER_CRITICAL();
  49691. 8014df4: f002 fab8 bl 8017368 <vPortEnterCritical>
  49692. {
  49693. int8_t cTxLock = pxQueue->cTxLock;
  49694. 8014df8: 687b ldr r3, [r7, #4]
  49695. 8014dfa: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49696. 8014dfe: 73fb strb r3, [r7, #15]
  49697. /* See if data was added to the queue while it was locked. */
  49698. while( cTxLock > queueLOCKED_UNMODIFIED )
  49699. 8014e00: e011 b.n 8014e26 <prvUnlockQueue+0x3a>
  49700. }
  49701. #else /* configUSE_QUEUE_SETS */
  49702. {
  49703. /* Tasks that are removed from the event list will get added to
  49704. the pending ready list as the scheduler is still suspended. */
  49705. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49706. 8014e02: 687b ldr r3, [r7, #4]
  49707. 8014e04: 6a5b ldr r3, [r3, #36] @ 0x24
  49708. 8014e06: 2b00 cmp r3, #0
  49709. 8014e08: d012 beq.n 8014e30 <prvUnlockQueue+0x44>
  49710. {
  49711. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49712. 8014e0a: 687b ldr r3, [r7, #4]
  49713. 8014e0c: 3324 adds r3, #36 @ 0x24
  49714. 8014e0e: 4618 mov r0, r3
  49715. 8014e10: f000 ff28 bl 8015c64 <xTaskRemoveFromEventList>
  49716. 8014e14: 4603 mov r3, r0
  49717. 8014e16: 2b00 cmp r3, #0
  49718. 8014e18: d001 beq.n 8014e1e <prvUnlockQueue+0x32>
  49719. {
  49720. /* The task waiting has a higher priority so record that
  49721. a context switch is required. */
  49722. vTaskMissedYield();
  49723. 8014e1a: f001 f829 bl 8015e70 <vTaskMissedYield>
  49724. break;
  49725. }
  49726. }
  49727. #endif /* configUSE_QUEUE_SETS */
  49728. --cTxLock;
  49729. 8014e1e: 7bfb ldrb r3, [r7, #15]
  49730. 8014e20: 3b01 subs r3, #1
  49731. 8014e22: b2db uxtb r3, r3
  49732. 8014e24: 73fb strb r3, [r7, #15]
  49733. while( cTxLock > queueLOCKED_UNMODIFIED )
  49734. 8014e26: f997 300f ldrsb.w r3, [r7, #15]
  49735. 8014e2a: 2b00 cmp r3, #0
  49736. 8014e2c: dce9 bgt.n 8014e02 <prvUnlockQueue+0x16>
  49737. 8014e2e: e000 b.n 8014e32 <prvUnlockQueue+0x46>
  49738. break;
  49739. 8014e30: bf00 nop
  49740. }
  49741. pxQueue->cTxLock = queueUNLOCKED;
  49742. 8014e32: 687b ldr r3, [r7, #4]
  49743. 8014e34: 22ff movs r2, #255 @ 0xff
  49744. 8014e36: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49745. }
  49746. taskEXIT_CRITICAL();
  49747. 8014e3a: f002 fac7 bl 80173cc <vPortExitCritical>
  49748. /* Do the same for the Rx lock. */
  49749. taskENTER_CRITICAL();
  49750. 8014e3e: f002 fa93 bl 8017368 <vPortEnterCritical>
  49751. {
  49752. int8_t cRxLock = pxQueue->cRxLock;
  49753. 8014e42: 687b ldr r3, [r7, #4]
  49754. 8014e44: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49755. 8014e48: 73bb strb r3, [r7, #14]
  49756. while( cRxLock > queueLOCKED_UNMODIFIED )
  49757. 8014e4a: e011 b.n 8014e70 <prvUnlockQueue+0x84>
  49758. {
  49759. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49760. 8014e4c: 687b ldr r3, [r7, #4]
  49761. 8014e4e: 691b ldr r3, [r3, #16]
  49762. 8014e50: 2b00 cmp r3, #0
  49763. 8014e52: d012 beq.n 8014e7a <prvUnlockQueue+0x8e>
  49764. {
  49765. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49766. 8014e54: 687b ldr r3, [r7, #4]
  49767. 8014e56: 3310 adds r3, #16
  49768. 8014e58: 4618 mov r0, r3
  49769. 8014e5a: f000 ff03 bl 8015c64 <xTaskRemoveFromEventList>
  49770. 8014e5e: 4603 mov r3, r0
  49771. 8014e60: 2b00 cmp r3, #0
  49772. 8014e62: d001 beq.n 8014e68 <prvUnlockQueue+0x7c>
  49773. {
  49774. vTaskMissedYield();
  49775. 8014e64: f001 f804 bl 8015e70 <vTaskMissedYield>
  49776. else
  49777. {
  49778. mtCOVERAGE_TEST_MARKER();
  49779. }
  49780. --cRxLock;
  49781. 8014e68: 7bbb ldrb r3, [r7, #14]
  49782. 8014e6a: 3b01 subs r3, #1
  49783. 8014e6c: b2db uxtb r3, r3
  49784. 8014e6e: 73bb strb r3, [r7, #14]
  49785. while( cRxLock > queueLOCKED_UNMODIFIED )
  49786. 8014e70: f997 300e ldrsb.w r3, [r7, #14]
  49787. 8014e74: 2b00 cmp r3, #0
  49788. 8014e76: dce9 bgt.n 8014e4c <prvUnlockQueue+0x60>
  49789. 8014e78: e000 b.n 8014e7c <prvUnlockQueue+0x90>
  49790. }
  49791. else
  49792. {
  49793. break;
  49794. 8014e7a: bf00 nop
  49795. }
  49796. }
  49797. pxQueue->cRxLock = queueUNLOCKED;
  49798. 8014e7c: 687b ldr r3, [r7, #4]
  49799. 8014e7e: 22ff movs r2, #255 @ 0xff
  49800. 8014e80: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49801. }
  49802. taskEXIT_CRITICAL();
  49803. 8014e84: f002 faa2 bl 80173cc <vPortExitCritical>
  49804. }
  49805. 8014e88: bf00 nop
  49806. 8014e8a: 3710 adds r7, #16
  49807. 8014e8c: 46bd mov sp, r7
  49808. 8014e8e: bd80 pop {r7, pc}
  49809. 08014e90 <prvIsQueueEmpty>:
  49810. /*-----------------------------------------------------------*/
  49811. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  49812. {
  49813. 8014e90: b580 push {r7, lr}
  49814. 8014e92: b084 sub sp, #16
  49815. 8014e94: af00 add r7, sp, #0
  49816. 8014e96: 6078 str r0, [r7, #4]
  49817. BaseType_t xReturn;
  49818. taskENTER_CRITICAL();
  49819. 8014e98: f002 fa66 bl 8017368 <vPortEnterCritical>
  49820. {
  49821. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  49822. 8014e9c: 687b ldr r3, [r7, #4]
  49823. 8014e9e: 6b9b ldr r3, [r3, #56] @ 0x38
  49824. 8014ea0: 2b00 cmp r3, #0
  49825. 8014ea2: d102 bne.n 8014eaa <prvIsQueueEmpty+0x1a>
  49826. {
  49827. xReturn = pdTRUE;
  49828. 8014ea4: 2301 movs r3, #1
  49829. 8014ea6: 60fb str r3, [r7, #12]
  49830. 8014ea8: e001 b.n 8014eae <prvIsQueueEmpty+0x1e>
  49831. }
  49832. else
  49833. {
  49834. xReturn = pdFALSE;
  49835. 8014eaa: 2300 movs r3, #0
  49836. 8014eac: 60fb str r3, [r7, #12]
  49837. }
  49838. }
  49839. taskEXIT_CRITICAL();
  49840. 8014eae: f002 fa8d bl 80173cc <vPortExitCritical>
  49841. return xReturn;
  49842. 8014eb2: 68fb ldr r3, [r7, #12]
  49843. }
  49844. 8014eb4: 4618 mov r0, r3
  49845. 8014eb6: 3710 adds r7, #16
  49846. 8014eb8: 46bd mov sp, r7
  49847. 8014eba: bd80 pop {r7, pc}
  49848. 08014ebc <prvIsQueueFull>:
  49849. return xReturn;
  49850. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  49851. /*-----------------------------------------------------------*/
  49852. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  49853. {
  49854. 8014ebc: b580 push {r7, lr}
  49855. 8014ebe: b084 sub sp, #16
  49856. 8014ec0: af00 add r7, sp, #0
  49857. 8014ec2: 6078 str r0, [r7, #4]
  49858. BaseType_t xReturn;
  49859. taskENTER_CRITICAL();
  49860. 8014ec4: f002 fa50 bl 8017368 <vPortEnterCritical>
  49861. {
  49862. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  49863. 8014ec8: 687b ldr r3, [r7, #4]
  49864. 8014eca: 6b9a ldr r2, [r3, #56] @ 0x38
  49865. 8014ecc: 687b ldr r3, [r7, #4]
  49866. 8014ece: 6bdb ldr r3, [r3, #60] @ 0x3c
  49867. 8014ed0: 429a cmp r2, r3
  49868. 8014ed2: d102 bne.n 8014eda <prvIsQueueFull+0x1e>
  49869. {
  49870. xReturn = pdTRUE;
  49871. 8014ed4: 2301 movs r3, #1
  49872. 8014ed6: 60fb str r3, [r7, #12]
  49873. 8014ed8: e001 b.n 8014ede <prvIsQueueFull+0x22>
  49874. }
  49875. else
  49876. {
  49877. xReturn = pdFALSE;
  49878. 8014eda: 2300 movs r3, #0
  49879. 8014edc: 60fb str r3, [r7, #12]
  49880. }
  49881. }
  49882. taskEXIT_CRITICAL();
  49883. 8014ede: f002 fa75 bl 80173cc <vPortExitCritical>
  49884. return xReturn;
  49885. 8014ee2: 68fb ldr r3, [r7, #12]
  49886. }
  49887. 8014ee4: 4618 mov r0, r3
  49888. 8014ee6: 3710 adds r7, #16
  49889. 8014ee8: 46bd mov sp, r7
  49890. 8014eea: bd80 pop {r7, pc}
  49891. 08014eec <vQueueAddToRegistry>:
  49892. /*-----------------------------------------------------------*/
  49893. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  49894. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  49895. {
  49896. 8014eec: b480 push {r7}
  49897. 8014eee: b085 sub sp, #20
  49898. 8014ef0: af00 add r7, sp, #0
  49899. 8014ef2: 6078 str r0, [r7, #4]
  49900. 8014ef4: 6039 str r1, [r7, #0]
  49901. UBaseType_t ux;
  49902. /* See if there is an empty space in the registry. A NULL name denotes
  49903. a free slot. */
  49904. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  49905. 8014ef6: 2300 movs r3, #0
  49906. 8014ef8: 60fb str r3, [r7, #12]
  49907. 8014efa: e014 b.n 8014f26 <vQueueAddToRegistry+0x3a>
  49908. {
  49909. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  49910. 8014efc: 4a0f ldr r2, [pc, #60] @ (8014f3c <vQueueAddToRegistry+0x50>)
  49911. 8014efe: 68fb ldr r3, [r7, #12]
  49912. 8014f00: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  49913. 8014f04: 2b00 cmp r3, #0
  49914. 8014f06: d10b bne.n 8014f20 <vQueueAddToRegistry+0x34>
  49915. {
  49916. /* Store the information on this queue. */
  49917. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  49918. 8014f08: 490c ldr r1, [pc, #48] @ (8014f3c <vQueueAddToRegistry+0x50>)
  49919. 8014f0a: 68fb ldr r3, [r7, #12]
  49920. 8014f0c: 683a ldr r2, [r7, #0]
  49921. 8014f0e: f841 2033 str.w r2, [r1, r3, lsl #3]
  49922. xQueueRegistry[ ux ].xHandle = xQueue;
  49923. 8014f12: 4a0a ldr r2, [pc, #40] @ (8014f3c <vQueueAddToRegistry+0x50>)
  49924. 8014f14: 68fb ldr r3, [r7, #12]
  49925. 8014f16: 00db lsls r3, r3, #3
  49926. 8014f18: 4413 add r3, r2
  49927. 8014f1a: 687a ldr r2, [r7, #4]
  49928. 8014f1c: 605a str r2, [r3, #4]
  49929. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  49930. break;
  49931. 8014f1e: e006 b.n 8014f2e <vQueueAddToRegistry+0x42>
  49932. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  49933. 8014f20: 68fb ldr r3, [r7, #12]
  49934. 8014f22: 3301 adds r3, #1
  49935. 8014f24: 60fb str r3, [r7, #12]
  49936. 8014f26: 68fb ldr r3, [r7, #12]
  49937. 8014f28: 2b07 cmp r3, #7
  49938. 8014f2a: d9e7 bls.n 8014efc <vQueueAddToRegistry+0x10>
  49939. else
  49940. {
  49941. mtCOVERAGE_TEST_MARKER();
  49942. }
  49943. }
  49944. }
  49945. 8014f2c: bf00 nop
  49946. 8014f2e: bf00 nop
  49947. 8014f30: 3714 adds r7, #20
  49948. 8014f32: 46bd mov sp, r7
  49949. 8014f34: f85d 7b04 ldr.w r7, [sp], #4
  49950. 8014f38: 4770 bx lr
  49951. 8014f3a: bf00 nop
  49952. 8014f3c: 24002600 .word 0x24002600
  49953. 08014f40 <vQueueWaitForMessageRestricted>:
  49954. /*-----------------------------------------------------------*/
  49955. #if ( configUSE_TIMERS == 1 )
  49956. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  49957. {
  49958. 8014f40: b580 push {r7, lr}
  49959. 8014f42: b086 sub sp, #24
  49960. 8014f44: af00 add r7, sp, #0
  49961. 8014f46: 60f8 str r0, [r7, #12]
  49962. 8014f48: 60b9 str r1, [r7, #8]
  49963. 8014f4a: 607a str r2, [r7, #4]
  49964. Queue_t * const pxQueue = xQueue;
  49965. 8014f4c: 68fb ldr r3, [r7, #12]
  49966. 8014f4e: 617b str r3, [r7, #20]
  49967. will not actually cause the task to block, just place it on a blocked
  49968. list. It will not block until the scheduler is unlocked - at which
  49969. time a yield will be performed. If an item is added to the queue while
  49970. the queue is locked, and the calling task blocks on the queue, then the
  49971. calling task will be immediately unblocked when the queue is unlocked. */
  49972. prvLockQueue( pxQueue );
  49973. 8014f50: f002 fa0a bl 8017368 <vPortEnterCritical>
  49974. 8014f54: 697b ldr r3, [r7, #20]
  49975. 8014f56: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49976. 8014f5a: b25b sxtb r3, r3
  49977. 8014f5c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49978. 8014f60: d103 bne.n 8014f6a <vQueueWaitForMessageRestricted+0x2a>
  49979. 8014f62: 697b ldr r3, [r7, #20]
  49980. 8014f64: 2200 movs r2, #0
  49981. 8014f66: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49982. 8014f6a: 697b ldr r3, [r7, #20]
  49983. 8014f6c: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49984. 8014f70: b25b sxtb r3, r3
  49985. 8014f72: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49986. 8014f76: d103 bne.n 8014f80 <vQueueWaitForMessageRestricted+0x40>
  49987. 8014f78: 697b ldr r3, [r7, #20]
  49988. 8014f7a: 2200 movs r2, #0
  49989. 8014f7c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49990. 8014f80: f002 fa24 bl 80173cc <vPortExitCritical>
  49991. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  49992. 8014f84: 697b ldr r3, [r7, #20]
  49993. 8014f86: 6b9b ldr r3, [r3, #56] @ 0x38
  49994. 8014f88: 2b00 cmp r3, #0
  49995. 8014f8a: d106 bne.n 8014f9a <vQueueWaitForMessageRestricted+0x5a>
  49996. {
  49997. /* There is nothing in the queue, block for the specified period. */
  49998. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  49999. 8014f8c: 697b ldr r3, [r7, #20]
  50000. 8014f8e: 3324 adds r3, #36 @ 0x24
  50001. 8014f90: 687a ldr r2, [r7, #4]
  50002. 8014f92: 68b9 ldr r1, [r7, #8]
  50003. 8014f94: 4618 mov r0, r3
  50004. 8014f96: f000 fe39 bl 8015c0c <vTaskPlaceOnEventListRestricted>
  50005. }
  50006. else
  50007. {
  50008. mtCOVERAGE_TEST_MARKER();
  50009. }
  50010. prvUnlockQueue( pxQueue );
  50011. 8014f9a: 6978 ldr r0, [r7, #20]
  50012. 8014f9c: f7ff ff26 bl 8014dec <prvUnlockQueue>
  50013. }
  50014. 8014fa0: bf00 nop
  50015. 8014fa2: 3718 adds r7, #24
  50016. 8014fa4: 46bd mov sp, r7
  50017. 8014fa6: bd80 pop {r7, pc}
  50018. 08014fa8 <xStreamBufferSpacesAvailable>:
  50019. return xReturn;
  50020. }
  50021. /*-----------------------------------------------------------*/
  50022. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  50023. {
  50024. 8014fa8: b480 push {r7}
  50025. 8014faa: b087 sub sp, #28
  50026. 8014fac: af00 add r7, sp, #0
  50027. 8014fae: 6078 str r0, [r7, #4]
  50028. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  50029. 8014fb0: 687b ldr r3, [r7, #4]
  50030. 8014fb2: 613b str r3, [r7, #16]
  50031. size_t xSpace;
  50032. configASSERT( pxStreamBuffer );
  50033. 8014fb4: 693b ldr r3, [r7, #16]
  50034. 8014fb6: 2b00 cmp r3, #0
  50035. 8014fb8: d10b bne.n 8014fd2 <xStreamBufferSpacesAvailable+0x2a>
  50036. __asm volatile
  50037. 8014fba: f04f 0350 mov.w r3, #80 @ 0x50
  50038. 8014fbe: f383 8811 msr BASEPRI, r3
  50039. 8014fc2: f3bf 8f6f isb sy
  50040. 8014fc6: f3bf 8f4f dsb sy
  50041. 8014fca: 60fb str r3, [r7, #12]
  50042. }
  50043. 8014fcc: bf00 nop
  50044. 8014fce: bf00 nop
  50045. 8014fd0: e7fd b.n 8014fce <xStreamBufferSpacesAvailable+0x26>
  50046. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  50047. 8014fd2: 693b ldr r3, [r7, #16]
  50048. 8014fd4: 689a ldr r2, [r3, #8]
  50049. 8014fd6: 693b ldr r3, [r7, #16]
  50050. 8014fd8: 681b ldr r3, [r3, #0]
  50051. 8014fda: 4413 add r3, r2
  50052. 8014fdc: 617b str r3, [r7, #20]
  50053. xSpace -= pxStreamBuffer->xHead;
  50054. 8014fde: 693b ldr r3, [r7, #16]
  50055. 8014fe0: 685b ldr r3, [r3, #4]
  50056. 8014fe2: 697a ldr r2, [r7, #20]
  50057. 8014fe4: 1ad3 subs r3, r2, r3
  50058. 8014fe6: 617b str r3, [r7, #20]
  50059. xSpace -= ( size_t ) 1;
  50060. 8014fe8: 697b ldr r3, [r7, #20]
  50061. 8014fea: 3b01 subs r3, #1
  50062. 8014fec: 617b str r3, [r7, #20]
  50063. if( xSpace >= pxStreamBuffer->xLength )
  50064. 8014fee: 693b ldr r3, [r7, #16]
  50065. 8014ff0: 689b ldr r3, [r3, #8]
  50066. 8014ff2: 697a ldr r2, [r7, #20]
  50067. 8014ff4: 429a cmp r2, r3
  50068. 8014ff6: d304 bcc.n 8015002 <xStreamBufferSpacesAvailable+0x5a>
  50069. {
  50070. xSpace -= pxStreamBuffer->xLength;
  50071. 8014ff8: 693b ldr r3, [r7, #16]
  50072. 8014ffa: 689b ldr r3, [r3, #8]
  50073. 8014ffc: 697a ldr r2, [r7, #20]
  50074. 8014ffe: 1ad3 subs r3, r2, r3
  50075. 8015000: 617b str r3, [r7, #20]
  50076. else
  50077. {
  50078. mtCOVERAGE_TEST_MARKER();
  50079. }
  50080. return xSpace;
  50081. 8015002: 697b ldr r3, [r7, #20]
  50082. }
  50083. 8015004: 4618 mov r0, r3
  50084. 8015006: 371c adds r7, #28
  50085. 8015008: 46bd mov sp, r7
  50086. 801500a: f85d 7b04 ldr.w r7, [sp], #4
  50087. 801500e: 4770 bx lr
  50088. 08015010 <xStreamBufferSend>:
  50089. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  50090. const void *pvTxData,
  50091. size_t xDataLengthBytes,
  50092. TickType_t xTicksToWait )
  50093. {
  50094. 8015010: b580 push {r7, lr}
  50095. 8015012: b090 sub sp, #64 @ 0x40
  50096. 8015014: af02 add r7, sp, #8
  50097. 8015016: 60f8 str r0, [r7, #12]
  50098. 8015018: 60b9 str r1, [r7, #8]
  50099. 801501a: 607a str r2, [r7, #4]
  50100. 801501c: 603b str r3, [r7, #0]
  50101. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  50102. 801501e: 68fb ldr r3, [r7, #12]
  50103. 8015020: 62fb str r3, [r7, #44] @ 0x2c
  50104. size_t xReturn, xSpace = 0;
  50105. 8015022: 2300 movs r3, #0
  50106. 8015024: 637b str r3, [r7, #52] @ 0x34
  50107. size_t xRequiredSpace = xDataLengthBytes;
  50108. 8015026: 687b ldr r3, [r7, #4]
  50109. 8015028: 633b str r3, [r7, #48] @ 0x30
  50110. TimeOut_t xTimeOut;
  50111. configASSERT( pvTxData );
  50112. 801502a: 68bb ldr r3, [r7, #8]
  50113. 801502c: 2b00 cmp r3, #0
  50114. 801502e: d10b bne.n 8015048 <xStreamBufferSend+0x38>
  50115. __asm volatile
  50116. 8015030: f04f 0350 mov.w r3, #80 @ 0x50
  50117. 8015034: f383 8811 msr BASEPRI, r3
  50118. 8015038: f3bf 8f6f isb sy
  50119. 801503c: f3bf 8f4f dsb sy
  50120. 8015040: 627b str r3, [r7, #36] @ 0x24
  50121. }
  50122. 8015042: bf00 nop
  50123. 8015044: bf00 nop
  50124. 8015046: e7fd b.n 8015044 <xStreamBufferSend+0x34>
  50125. configASSERT( pxStreamBuffer );
  50126. 8015048: 6afb ldr r3, [r7, #44] @ 0x2c
  50127. 801504a: 2b00 cmp r3, #0
  50128. 801504c: d10b bne.n 8015066 <xStreamBufferSend+0x56>
  50129. __asm volatile
  50130. 801504e: f04f 0350 mov.w r3, #80 @ 0x50
  50131. 8015052: f383 8811 msr BASEPRI, r3
  50132. 8015056: f3bf 8f6f isb sy
  50133. 801505a: f3bf 8f4f dsb sy
  50134. 801505e: 623b str r3, [r7, #32]
  50135. }
  50136. 8015060: bf00 nop
  50137. 8015062: bf00 nop
  50138. 8015064: e7fd b.n 8015062 <xStreamBufferSend+0x52>
  50139. /* This send function is used to write to both message buffers and stream
  50140. buffers. If this is a message buffer then the space needed must be
  50141. increased by the amount of bytes needed to store the length of the
  50142. message. */
  50143. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  50144. 8015066: 6afb ldr r3, [r7, #44] @ 0x2c
  50145. 8015068: 7f1b ldrb r3, [r3, #28]
  50146. 801506a: f003 0301 and.w r3, r3, #1
  50147. 801506e: 2b00 cmp r3, #0
  50148. 8015070: d012 beq.n 8015098 <xStreamBufferSend+0x88>
  50149. {
  50150. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  50151. 8015072: 6b3b ldr r3, [r7, #48] @ 0x30
  50152. 8015074: 3304 adds r3, #4
  50153. 8015076: 633b str r3, [r7, #48] @ 0x30
  50154. /* Overflow? */
  50155. configASSERT( xRequiredSpace > xDataLengthBytes );
  50156. 8015078: 6b3a ldr r2, [r7, #48] @ 0x30
  50157. 801507a: 687b ldr r3, [r7, #4]
  50158. 801507c: 429a cmp r2, r3
  50159. 801507e: d80b bhi.n 8015098 <xStreamBufferSend+0x88>
  50160. __asm volatile
  50161. 8015080: f04f 0350 mov.w r3, #80 @ 0x50
  50162. 8015084: f383 8811 msr BASEPRI, r3
  50163. 8015088: f3bf 8f6f isb sy
  50164. 801508c: f3bf 8f4f dsb sy
  50165. 8015090: 61fb str r3, [r7, #28]
  50166. }
  50167. 8015092: bf00 nop
  50168. 8015094: bf00 nop
  50169. 8015096: e7fd b.n 8015094 <xStreamBufferSend+0x84>
  50170. else
  50171. {
  50172. mtCOVERAGE_TEST_MARKER();
  50173. }
  50174. if( xTicksToWait != ( TickType_t ) 0 )
  50175. 8015098: 683b ldr r3, [r7, #0]
  50176. 801509a: 2b00 cmp r3, #0
  50177. 801509c: d03f beq.n 801511e <xStreamBufferSend+0x10e>
  50178. {
  50179. vTaskSetTimeOutState( &xTimeOut );
  50180. 801509e: f107 0310 add.w r3, r7, #16
  50181. 80150a2: 4618 mov r0, r3
  50182. 80150a4: f000 fe42 bl 8015d2c <vTaskSetTimeOutState>
  50183. do
  50184. {
  50185. /* Wait until the required number of bytes are free in the message
  50186. buffer. */
  50187. taskENTER_CRITICAL();
  50188. 80150a8: f002 f95e bl 8017368 <vPortEnterCritical>
  50189. {
  50190. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  50191. 80150ac: 6af8 ldr r0, [r7, #44] @ 0x2c
  50192. 80150ae: f7ff ff7b bl 8014fa8 <xStreamBufferSpacesAvailable>
  50193. 80150b2: 6378 str r0, [r7, #52] @ 0x34
  50194. if( xSpace < xRequiredSpace )
  50195. 80150b4: 6b7a ldr r2, [r7, #52] @ 0x34
  50196. 80150b6: 6b3b ldr r3, [r7, #48] @ 0x30
  50197. 80150b8: 429a cmp r2, r3
  50198. 80150ba: d218 bcs.n 80150ee <xStreamBufferSend+0xde>
  50199. {
  50200. /* Clear notification state as going to wait for space. */
  50201. ( void ) xTaskNotifyStateClear( NULL );
  50202. 80150bc: 2000 movs r0, #0
  50203. 80150be: f001 fb65 bl 801678c <xTaskNotifyStateClear>
  50204. /* Should only be one writer. */
  50205. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  50206. 80150c2: 6afb ldr r3, [r7, #44] @ 0x2c
  50207. 80150c4: 695b ldr r3, [r3, #20]
  50208. 80150c6: 2b00 cmp r3, #0
  50209. 80150c8: d00b beq.n 80150e2 <xStreamBufferSend+0xd2>
  50210. __asm volatile
  50211. 80150ca: f04f 0350 mov.w r3, #80 @ 0x50
  50212. 80150ce: f383 8811 msr BASEPRI, r3
  50213. 80150d2: f3bf 8f6f isb sy
  50214. 80150d6: f3bf 8f4f dsb sy
  50215. 80150da: 61bb str r3, [r7, #24]
  50216. }
  50217. 80150dc: bf00 nop
  50218. 80150de: bf00 nop
  50219. 80150e0: e7fd b.n 80150de <xStreamBufferSend+0xce>
  50220. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  50221. 80150e2: f000 ffad bl 8016040 <xTaskGetCurrentTaskHandle>
  50222. 80150e6: 4602 mov r2, r0
  50223. 80150e8: 6afb ldr r3, [r7, #44] @ 0x2c
  50224. 80150ea: 615a str r2, [r3, #20]
  50225. 80150ec: e002 b.n 80150f4 <xStreamBufferSend+0xe4>
  50226. }
  50227. else
  50228. {
  50229. taskEXIT_CRITICAL();
  50230. 80150ee: f002 f96d bl 80173cc <vPortExitCritical>
  50231. break;
  50232. 80150f2: e014 b.n 801511e <xStreamBufferSend+0x10e>
  50233. }
  50234. }
  50235. taskEXIT_CRITICAL();
  50236. 80150f4: f002 f96a bl 80173cc <vPortExitCritical>
  50237. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  50238. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  50239. 80150f8: 683b ldr r3, [r7, #0]
  50240. 80150fa: 2200 movs r2, #0
  50241. 80150fc: 2100 movs r1, #0
  50242. 80150fe: 2000 movs r0, #0
  50243. 8015100: f001 f93c bl 801637c <xTaskNotifyWait>
  50244. pxStreamBuffer->xTaskWaitingToSend = NULL;
  50245. 8015104: 6afb ldr r3, [r7, #44] @ 0x2c
  50246. 8015106: 2200 movs r2, #0
  50247. 8015108: 615a str r2, [r3, #20]
  50248. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  50249. 801510a: 463a mov r2, r7
  50250. 801510c: f107 0310 add.w r3, r7, #16
  50251. 8015110: 4611 mov r1, r2
  50252. 8015112: 4618 mov r0, r3
  50253. 8015114: f000 fe48 bl 8015da8 <xTaskCheckForTimeOut>
  50254. 8015118: 4603 mov r3, r0
  50255. 801511a: 2b00 cmp r3, #0
  50256. 801511c: d0c4 beq.n 80150a8 <xStreamBufferSend+0x98>
  50257. else
  50258. {
  50259. mtCOVERAGE_TEST_MARKER();
  50260. }
  50261. if( xSpace == ( size_t ) 0 )
  50262. 801511e: 6b7b ldr r3, [r7, #52] @ 0x34
  50263. 8015120: 2b00 cmp r3, #0
  50264. 8015122: d103 bne.n 801512c <xStreamBufferSend+0x11c>
  50265. {
  50266. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  50267. 8015124: 6af8 ldr r0, [r7, #44] @ 0x2c
  50268. 8015126: f7ff ff3f bl 8014fa8 <xStreamBufferSpacesAvailable>
  50269. 801512a: 6378 str r0, [r7, #52] @ 0x34
  50270. else
  50271. {
  50272. mtCOVERAGE_TEST_MARKER();
  50273. }
  50274. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  50275. 801512c: 6b3b ldr r3, [r7, #48] @ 0x30
  50276. 801512e: 9300 str r3, [sp, #0]
  50277. 8015130: 6b7b ldr r3, [r7, #52] @ 0x34
  50278. 8015132: 687a ldr r2, [r7, #4]
  50279. 8015134: 68b9 ldr r1, [r7, #8]
  50280. 8015136: 6af8 ldr r0, [r7, #44] @ 0x2c
  50281. 8015138: f000 f823 bl 8015182 <prvWriteMessageToBuffer>
  50282. 801513c: 62b8 str r0, [r7, #40] @ 0x28
  50283. if( xReturn > ( size_t ) 0 )
  50284. 801513e: 6abb ldr r3, [r7, #40] @ 0x28
  50285. 8015140: 2b00 cmp r3, #0
  50286. 8015142: d019 beq.n 8015178 <xStreamBufferSend+0x168>
  50287. {
  50288. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  50289. /* Was a task waiting for the data? */
  50290. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  50291. 8015144: 6af8 ldr r0, [r7, #44] @ 0x2c
  50292. 8015146: f000 f8ce bl 80152e6 <prvBytesInBuffer>
  50293. 801514a: 4602 mov r2, r0
  50294. 801514c: 6afb ldr r3, [r7, #44] @ 0x2c
  50295. 801514e: 68db ldr r3, [r3, #12]
  50296. 8015150: 429a cmp r2, r3
  50297. 8015152: d311 bcc.n 8015178 <xStreamBufferSend+0x168>
  50298. {
  50299. sbSEND_COMPLETED( pxStreamBuffer );
  50300. 8015154: f000 fb4a bl 80157ec <vTaskSuspendAll>
  50301. 8015158: 6afb ldr r3, [r7, #44] @ 0x2c
  50302. 801515a: 691b ldr r3, [r3, #16]
  50303. 801515c: 2b00 cmp r3, #0
  50304. 801515e: d009 beq.n 8015174 <xStreamBufferSend+0x164>
  50305. 8015160: 6afb ldr r3, [r7, #44] @ 0x2c
  50306. 8015162: 6918 ldr r0, [r3, #16]
  50307. 8015164: 2300 movs r3, #0
  50308. 8015166: 2200 movs r2, #0
  50309. 8015168: 2100 movs r1, #0
  50310. 801516a: f001 f967 bl 801643c <xTaskGenericNotify>
  50311. 801516e: 6afb ldr r3, [r7, #44] @ 0x2c
  50312. 8015170: 2200 movs r2, #0
  50313. 8015172: 611a str r2, [r3, #16]
  50314. 8015174: f000 fb48 bl 8015808 <xTaskResumeAll>
  50315. {
  50316. mtCOVERAGE_TEST_MARKER();
  50317. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  50318. }
  50319. return xReturn;
  50320. 8015178: 6abb ldr r3, [r7, #40] @ 0x28
  50321. }
  50322. 801517a: 4618 mov r0, r3
  50323. 801517c: 3738 adds r7, #56 @ 0x38
  50324. 801517e: 46bd mov sp, r7
  50325. 8015180: bd80 pop {r7, pc}
  50326. 08015182 <prvWriteMessageToBuffer>:
  50327. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  50328. const void * pvTxData,
  50329. size_t xDataLengthBytes,
  50330. size_t xSpace,
  50331. size_t xRequiredSpace )
  50332. {
  50333. 8015182: b580 push {r7, lr}
  50334. 8015184: b086 sub sp, #24
  50335. 8015186: af00 add r7, sp, #0
  50336. 8015188: 60f8 str r0, [r7, #12]
  50337. 801518a: 60b9 str r1, [r7, #8]
  50338. 801518c: 607a str r2, [r7, #4]
  50339. 801518e: 603b str r3, [r7, #0]
  50340. BaseType_t xShouldWrite;
  50341. size_t xReturn;
  50342. if( xSpace == ( size_t ) 0 )
  50343. 8015190: 683b ldr r3, [r7, #0]
  50344. 8015192: 2b00 cmp r3, #0
  50345. 8015194: d102 bne.n 801519c <prvWriteMessageToBuffer+0x1a>
  50346. {
  50347. /* Doesn't matter if this is a stream buffer or a message buffer, there
  50348. is no space to write. */
  50349. xShouldWrite = pdFALSE;
  50350. 8015196: 2300 movs r3, #0
  50351. 8015198: 617b str r3, [r7, #20]
  50352. 801519a: e01d b.n 80151d8 <prvWriteMessageToBuffer+0x56>
  50353. }
  50354. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  50355. 801519c: 68fb ldr r3, [r7, #12]
  50356. 801519e: 7f1b ldrb r3, [r3, #28]
  50357. 80151a0: f003 0301 and.w r3, r3, #1
  50358. 80151a4: 2b00 cmp r3, #0
  50359. 80151a6: d108 bne.n 80151ba <prvWriteMessageToBuffer+0x38>
  50360. {
  50361. /* This is a stream buffer, as opposed to a message buffer, so writing a
  50362. stream of bytes rather than discrete messages. Write as many bytes as
  50363. possible. */
  50364. xShouldWrite = pdTRUE;
  50365. 80151a8: 2301 movs r3, #1
  50366. 80151aa: 617b str r3, [r7, #20]
  50367. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  50368. 80151ac: 687a ldr r2, [r7, #4]
  50369. 80151ae: 683b ldr r3, [r7, #0]
  50370. 80151b0: 4293 cmp r3, r2
  50371. 80151b2: bf28 it cs
  50372. 80151b4: 4613 movcs r3, r2
  50373. 80151b6: 607b str r3, [r7, #4]
  50374. 80151b8: e00e b.n 80151d8 <prvWriteMessageToBuffer+0x56>
  50375. }
  50376. else if( xSpace >= xRequiredSpace )
  50377. 80151ba: 683a ldr r2, [r7, #0]
  50378. 80151bc: 6a3b ldr r3, [r7, #32]
  50379. 80151be: 429a cmp r2, r3
  50380. 80151c0: d308 bcc.n 80151d4 <prvWriteMessageToBuffer+0x52>
  50381. {
  50382. /* This is a message buffer, as opposed to a stream buffer, and there
  50383. is enough space to write both the message length and the message itself
  50384. into the buffer. Start by writing the length of the data, the data
  50385. itself will be written later in this function. */
  50386. xShouldWrite = pdTRUE;
  50387. 80151c2: 2301 movs r3, #1
  50388. 80151c4: 617b str r3, [r7, #20]
  50389. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  50390. 80151c6: 1d3b adds r3, r7, #4
  50391. 80151c8: 2204 movs r2, #4
  50392. 80151ca: 4619 mov r1, r3
  50393. 80151cc: 68f8 ldr r0, [r7, #12]
  50394. 80151ce: f000 f815 bl 80151fc <prvWriteBytesToBuffer>
  50395. 80151d2: e001 b.n 80151d8 <prvWriteMessageToBuffer+0x56>
  50396. }
  50397. else
  50398. {
  50399. /* There is space available, but not enough space. */
  50400. xShouldWrite = pdFALSE;
  50401. 80151d4: 2300 movs r3, #0
  50402. 80151d6: 617b str r3, [r7, #20]
  50403. }
  50404. if( xShouldWrite != pdFALSE )
  50405. 80151d8: 697b ldr r3, [r7, #20]
  50406. 80151da: 2b00 cmp r3, #0
  50407. 80151dc: d007 beq.n 80151ee <prvWriteMessageToBuffer+0x6c>
  50408. {
  50409. /* Writes the data itself. */
  50410. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  50411. 80151de: 687b ldr r3, [r7, #4]
  50412. 80151e0: 461a mov r2, r3
  50413. 80151e2: 68b9 ldr r1, [r7, #8]
  50414. 80151e4: 68f8 ldr r0, [r7, #12]
  50415. 80151e6: f000 f809 bl 80151fc <prvWriteBytesToBuffer>
  50416. 80151ea: 6138 str r0, [r7, #16]
  50417. 80151ec: e001 b.n 80151f2 <prvWriteMessageToBuffer+0x70>
  50418. }
  50419. else
  50420. {
  50421. xReturn = 0;
  50422. 80151ee: 2300 movs r3, #0
  50423. 80151f0: 613b str r3, [r7, #16]
  50424. }
  50425. return xReturn;
  50426. 80151f2: 693b ldr r3, [r7, #16]
  50427. }
  50428. 80151f4: 4618 mov r0, r3
  50429. 80151f6: 3718 adds r7, #24
  50430. 80151f8: 46bd mov sp, r7
  50431. 80151fa: bd80 pop {r7, pc}
  50432. 080151fc <prvWriteBytesToBuffer>:
  50433. return xReturn;
  50434. }
  50435. /*-----------------------------------------------------------*/
  50436. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  50437. {
  50438. 80151fc: b580 push {r7, lr}
  50439. 80151fe: b08a sub sp, #40 @ 0x28
  50440. 8015200: af00 add r7, sp, #0
  50441. 8015202: 60f8 str r0, [r7, #12]
  50442. 8015204: 60b9 str r1, [r7, #8]
  50443. 8015206: 607a str r2, [r7, #4]
  50444. size_t xNextHead, xFirstLength;
  50445. configASSERT( xCount > ( size_t ) 0 );
  50446. 8015208: 687b ldr r3, [r7, #4]
  50447. 801520a: 2b00 cmp r3, #0
  50448. 801520c: d10b bne.n 8015226 <prvWriteBytesToBuffer+0x2a>
  50449. __asm volatile
  50450. 801520e: f04f 0350 mov.w r3, #80 @ 0x50
  50451. 8015212: f383 8811 msr BASEPRI, r3
  50452. 8015216: f3bf 8f6f isb sy
  50453. 801521a: f3bf 8f4f dsb sy
  50454. 801521e: 61fb str r3, [r7, #28]
  50455. }
  50456. 8015220: bf00 nop
  50457. 8015222: bf00 nop
  50458. 8015224: e7fd b.n 8015222 <prvWriteBytesToBuffer+0x26>
  50459. xNextHead = pxStreamBuffer->xHead;
  50460. 8015226: 68fb ldr r3, [r7, #12]
  50461. 8015228: 685b ldr r3, [r3, #4]
  50462. 801522a: 627b str r3, [r7, #36] @ 0x24
  50463. /* Calculate the number of bytes that can be added in the first write -
  50464. which may be less than the total number of bytes that need to be added if
  50465. the buffer will wrap back to the beginning. */
  50466. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  50467. 801522c: 68fb ldr r3, [r7, #12]
  50468. 801522e: 689a ldr r2, [r3, #8]
  50469. 8015230: 6a7b ldr r3, [r7, #36] @ 0x24
  50470. 8015232: 1ad3 subs r3, r2, r3
  50471. 8015234: 687a ldr r2, [r7, #4]
  50472. 8015236: 4293 cmp r3, r2
  50473. 8015238: bf28 it cs
  50474. 801523a: 4613 movcs r3, r2
  50475. 801523c: 623b str r3, [r7, #32]
  50476. /* Write as many bytes as can be written in the first write. */
  50477. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  50478. 801523e: 6a7a ldr r2, [r7, #36] @ 0x24
  50479. 8015240: 6a3b ldr r3, [r7, #32]
  50480. 8015242: 441a add r2, r3
  50481. 8015244: 68fb ldr r3, [r7, #12]
  50482. 8015246: 689b ldr r3, [r3, #8]
  50483. 8015248: 429a cmp r2, r3
  50484. 801524a: d90b bls.n 8015264 <prvWriteBytesToBuffer+0x68>
  50485. __asm volatile
  50486. 801524c: f04f 0350 mov.w r3, #80 @ 0x50
  50487. 8015250: f383 8811 msr BASEPRI, r3
  50488. 8015254: f3bf 8f6f isb sy
  50489. 8015258: f3bf 8f4f dsb sy
  50490. 801525c: 61bb str r3, [r7, #24]
  50491. }
  50492. 801525e: bf00 nop
  50493. 8015260: bf00 nop
  50494. 8015262: e7fd b.n 8015260 <prvWriteBytesToBuffer+0x64>
  50495. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  50496. 8015264: 68fb ldr r3, [r7, #12]
  50497. 8015266: 699a ldr r2, [r3, #24]
  50498. 8015268: 6a7b ldr r3, [r7, #36] @ 0x24
  50499. 801526a: 4413 add r3, r2
  50500. 801526c: 6a3a ldr r2, [r7, #32]
  50501. 801526e: 68b9 ldr r1, [r7, #8]
  50502. 8015270: 4618 mov r0, r3
  50503. 8015272: f002 fd72 bl 8017d5a <memcpy>
  50504. /* If the number of bytes written was less than the number that could be
  50505. written in the first write... */
  50506. if( xCount > xFirstLength )
  50507. 8015276: 687a ldr r2, [r7, #4]
  50508. 8015278: 6a3b ldr r3, [r7, #32]
  50509. 801527a: 429a cmp r2, r3
  50510. 801527c: d91d bls.n 80152ba <prvWriteBytesToBuffer+0xbe>
  50511. {
  50512. /* ...then write the remaining bytes to the start of the buffer. */
  50513. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  50514. 801527e: 687a ldr r2, [r7, #4]
  50515. 8015280: 6a3b ldr r3, [r7, #32]
  50516. 8015282: 1ad2 subs r2, r2, r3
  50517. 8015284: 68fb ldr r3, [r7, #12]
  50518. 8015286: 689b ldr r3, [r3, #8]
  50519. 8015288: 429a cmp r2, r3
  50520. 801528a: d90b bls.n 80152a4 <prvWriteBytesToBuffer+0xa8>
  50521. __asm volatile
  50522. 801528c: f04f 0350 mov.w r3, #80 @ 0x50
  50523. 8015290: f383 8811 msr BASEPRI, r3
  50524. 8015294: f3bf 8f6f isb sy
  50525. 8015298: f3bf 8f4f dsb sy
  50526. 801529c: 617b str r3, [r7, #20]
  50527. }
  50528. 801529e: bf00 nop
  50529. 80152a0: bf00 nop
  50530. 80152a2: e7fd b.n 80152a0 <prvWriteBytesToBuffer+0xa4>
  50531. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  50532. 80152a4: 68fb ldr r3, [r7, #12]
  50533. 80152a6: 6998 ldr r0, [r3, #24]
  50534. 80152a8: 68ba ldr r2, [r7, #8]
  50535. 80152aa: 6a3b ldr r3, [r7, #32]
  50536. 80152ac: 18d1 adds r1, r2, r3
  50537. 80152ae: 687a ldr r2, [r7, #4]
  50538. 80152b0: 6a3b ldr r3, [r7, #32]
  50539. 80152b2: 1ad3 subs r3, r2, r3
  50540. 80152b4: 461a mov r2, r3
  50541. 80152b6: f002 fd50 bl 8017d5a <memcpy>
  50542. else
  50543. {
  50544. mtCOVERAGE_TEST_MARKER();
  50545. }
  50546. xNextHead += xCount;
  50547. 80152ba: 6a7a ldr r2, [r7, #36] @ 0x24
  50548. 80152bc: 687b ldr r3, [r7, #4]
  50549. 80152be: 4413 add r3, r2
  50550. 80152c0: 627b str r3, [r7, #36] @ 0x24
  50551. if( xNextHead >= pxStreamBuffer->xLength )
  50552. 80152c2: 68fb ldr r3, [r7, #12]
  50553. 80152c4: 689b ldr r3, [r3, #8]
  50554. 80152c6: 6a7a ldr r2, [r7, #36] @ 0x24
  50555. 80152c8: 429a cmp r2, r3
  50556. 80152ca: d304 bcc.n 80152d6 <prvWriteBytesToBuffer+0xda>
  50557. {
  50558. xNextHead -= pxStreamBuffer->xLength;
  50559. 80152cc: 68fb ldr r3, [r7, #12]
  50560. 80152ce: 689b ldr r3, [r3, #8]
  50561. 80152d0: 6a7a ldr r2, [r7, #36] @ 0x24
  50562. 80152d2: 1ad3 subs r3, r2, r3
  50563. 80152d4: 627b str r3, [r7, #36] @ 0x24
  50564. else
  50565. {
  50566. mtCOVERAGE_TEST_MARKER();
  50567. }
  50568. pxStreamBuffer->xHead = xNextHead;
  50569. 80152d6: 68fb ldr r3, [r7, #12]
  50570. 80152d8: 6a7a ldr r2, [r7, #36] @ 0x24
  50571. 80152da: 605a str r2, [r3, #4]
  50572. return xCount;
  50573. 80152dc: 687b ldr r3, [r7, #4]
  50574. }
  50575. 80152de: 4618 mov r0, r3
  50576. 80152e0: 3728 adds r7, #40 @ 0x28
  50577. 80152e2: 46bd mov sp, r7
  50578. 80152e4: bd80 pop {r7, pc}
  50579. 080152e6 <prvBytesInBuffer>:
  50580. return xCount;
  50581. }
  50582. /*-----------------------------------------------------------*/
  50583. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  50584. {
  50585. 80152e6: b480 push {r7}
  50586. 80152e8: b085 sub sp, #20
  50587. 80152ea: af00 add r7, sp, #0
  50588. 80152ec: 6078 str r0, [r7, #4]
  50589. /* Returns the distance between xTail and xHead. */
  50590. size_t xCount;
  50591. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  50592. 80152ee: 687b ldr r3, [r7, #4]
  50593. 80152f0: 689a ldr r2, [r3, #8]
  50594. 80152f2: 687b ldr r3, [r7, #4]
  50595. 80152f4: 685b ldr r3, [r3, #4]
  50596. 80152f6: 4413 add r3, r2
  50597. 80152f8: 60fb str r3, [r7, #12]
  50598. xCount -= pxStreamBuffer->xTail;
  50599. 80152fa: 687b ldr r3, [r7, #4]
  50600. 80152fc: 681b ldr r3, [r3, #0]
  50601. 80152fe: 68fa ldr r2, [r7, #12]
  50602. 8015300: 1ad3 subs r3, r2, r3
  50603. 8015302: 60fb str r3, [r7, #12]
  50604. if ( xCount >= pxStreamBuffer->xLength )
  50605. 8015304: 687b ldr r3, [r7, #4]
  50606. 8015306: 689b ldr r3, [r3, #8]
  50607. 8015308: 68fa ldr r2, [r7, #12]
  50608. 801530a: 429a cmp r2, r3
  50609. 801530c: d304 bcc.n 8015318 <prvBytesInBuffer+0x32>
  50610. {
  50611. xCount -= pxStreamBuffer->xLength;
  50612. 801530e: 687b ldr r3, [r7, #4]
  50613. 8015310: 689b ldr r3, [r3, #8]
  50614. 8015312: 68fa ldr r2, [r7, #12]
  50615. 8015314: 1ad3 subs r3, r2, r3
  50616. 8015316: 60fb str r3, [r7, #12]
  50617. else
  50618. {
  50619. mtCOVERAGE_TEST_MARKER();
  50620. }
  50621. return xCount;
  50622. 8015318: 68fb ldr r3, [r7, #12]
  50623. }
  50624. 801531a: 4618 mov r0, r3
  50625. 801531c: 3714 adds r7, #20
  50626. 801531e: 46bd mov sp, r7
  50627. 8015320: f85d 7b04 ldr.w r7, [sp], #4
  50628. 8015324: 4770 bx lr
  50629. 08015326 <xTaskCreateStatic>:
  50630. const uint32_t ulStackDepth,
  50631. void * const pvParameters,
  50632. UBaseType_t uxPriority,
  50633. StackType_t * const puxStackBuffer,
  50634. StaticTask_t * const pxTaskBuffer )
  50635. {
  50636. 8015326: b580 push {r7, lr}
  50637. 8015328: b08e sub sp, #56 @ 0x38
  50638. 801532a: af04 add r7, sp, #16
  50639. 801532c: 60f8 str r0, [r7, #12]
  50640. 801532e: 60b9 str r1, [r7, #8]
  50641. 8015330: 607a str r2, [r7, #4]
  50642. 8015332: 603b str r3, [r7, #0]
  50643. TCB_t *pxNewTCB;
  50644. TaskHandle_t xReturn;
  50645. configASSERT( puxStackBuffer != NULL );
  50646. 8015334: 6b7b ldr r3, [r7, #52] @ 0x34
  50647. 8015336: 2b00 cmp r3, #0
  50648. 8015338: d10b bne.n 8015352 <xTaskCreateStatic+0x2c>
  50649. __asm volatile
  50650. 801533a: f04f 0350 mov.w r3, #80 @ 0x50
  50651. 801533e: f383 8811 msr BASEPRI, r3
  50652. 8015342: f3bf 8f6f isb sy
  50653. 8015346: f3bf 8f4f dsb sy
  50654. 801534a: 623b str r3, [r7, #32]
  50655. }
  50656. 801534c: bf00 nop
  50657. 801534e: bf00 nop
  50658. 8015350: e7fd b.n 801534e <xTaskCreateStatic+0x28>
  50659. configASSERT( pxTaskBuffer != NULL );
  50660. 8015352: 6bbb ldr r3, [r7, #56] @ 0x38
  50661. 8015354: 2b00 cmp r3, #0
  50662. 8015356: d10b bne.n 8015370 <xTaskCreateStatic+0x4a>
  50663. __asm volatile
  50664. 8015358: f04f 0350 mov.w r3, #80 @ 0x50
  50665. 801535c: f383 8811 msr BASEPRI, r3
  50666. 8015360: f3bf 8f6f isb sy
  50667. 8015364: f3bf 8f4f dsb sy
  50668. 8015368: 61fb str r3, [r7, #28]
  50669. }
  50670. 801536a: bf00 nop
  50671. 801536c: bf00 nop
  50672. 801536e: e7fd b.n 801536c <xTaskCreateStatic+0x46>
  50673. #if( configASSERT_DEFINED == 1 )
  50674. {
  50675. /* Sanity check that the size of the structure used to declare a
  50676. variable of type StaticTask_t equals the size of the real task
  50677. structure. */
  50678. volatile size_t xSize = sizeof( StaticTask_t );
  50679. 8015370: 23a8 movs r3, #168 @ 0xa8
  50680. 8015372: 613b str r3, [r7, #16]
  50681. configASSERT( xSize == sizeof( TCB_t ) );
  50682. 8015374: 693b ldr r3, [r7, #16]
  50683. 8015376: 2ba8 cmp r3, #168 @ 0xa8
  50684. 8015378: d00b beq.n 8015392 <xTaskCreateStatic+0x6c>
  50685. __asm volatile
  50686. 801537a: f04f 0350 mov.w r3, #80 @ 0x50
  50687. 801537e: f383 8811 msr BASEPRI, r3
  50688. 8015382: f3bf 8f6f isb sy
  50689. 8015386: f3bf 8f4f dsb sy
  50690. 801538a: 61bb str r3, [r7, #24]
  50691. }
  50692. 801538c: bf00 nop
  50693. 801538e: bf00 nop
  50694. 8015390: e7fd b.n 801538e <xTaskCreateStatic+0x68>
  50695. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  50696. 8015392: 693b ldr r3, [r7, #16]
  50697. }
  50698. #endif /* configASSERT_DEFINED */
  50699. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  50700. 8015394: 6bbb ldr r3, [r7, #56] @ 0x38
  50701. 8015396: 2b00 cmp r3, #0
  50702. 8015398: d01e beq.n 80153d8 <xTaskCreateStatic+0xb2>
  50703. 801539a: 6b7b ldr r3, [r7, #52] @ 0x34
  50704. 801539c: 2b00 cmp r3, #0
  50705. 801539e: d01b beq.n 80153d8 <xTaskCreateStatic+0xb2>
  50706. {
  50707. /* The memory used for the task's TCB and stack are passed into this
  50708. function - use them. */
  50709. pxNewTCB = ( TCB_t * ) pxTaskBuffer; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
  50710. 80153a0: 6bbb ldr r3, [r7, #56] @ 0x38
  50711. 80153a2: 627b str r3, [r7, #36] @ 0x24
  50712. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  50713. 80153a4: 6a7b ldr r3, [r7, #36] @ 0x24
  50714. 80153a6: 6b7a ldr r2, [r7, #52] @ 0x34
  50715. 80153a8: 631a str r2, [r3, #48] @ 0x30
  50716. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  50717. {
  50718. /* Tasks can be created statically or dynamically, so note this
  50719. task was created statically in case the task is later deleted. */
  50720. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  50721. 80153aa: 6a7b ldr r3, [r7, #36] @ 0x24
  50722. 80153ac: 2202 movs r2, #2
  50723. 80153ae: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  50724. }
  50725. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  50726. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  50727. 80153b2: 2300 movs r3, #0
  50728. 80153b4: 9303 str r3, [sp, #12]
  50729. 80153b6: 6a7b ldr r3, [r7, #36] @ 0x24
  50730. 80153b8: 9302 str r3, [sp, #8]
  50731. 80153ba: f107 0314 add.w r3, r7, #20
  50732. 80153be: 9301 str r3, [sp, #4]
  50733. 80153c0: 6b3b ldr r3, [r7, #48] @ 0x30
  50734. 80153c2: 9300 str r3, [sp, #0]
  50735. 80153c4: 683b ldr r3, [r7, #0]
  50736. 80153c6: 687a ldr r2, [r7, #4]
  50737. 80153c8: 68b9 ldr r1, [r7, #8]
  50738. 80153ca: 68f8 ldr r0, [r7, #12]
  50739. 80153cc: f000 f850 bl 8015470 <prvInitialiseNewTask>
  50740. prvAddNewTaskToReadyList( pxNewTCB );
  50741. 80153d0: 6a78 ldr r0, [r7, #36] @ 0x24
  50742. 80153d2: f000 f8f5 bl 80155c0 <prvAddNewTaskToReadyList>
  50743. 80153d6: e001 b.n 80153dc <xTaskCreateStatic+0xb6>
  50744. }
  50745. else
  50746. {
  50747. xReturn = NULL;
  50748. 80153d8: 2300 movs r3, #0
  50749. 80153da: 617b str r3, [r7, #20]
  50750. }
  50751. return xReturn;
  50752. 80153dc: 697b ldr r3, [r7, #20]
  50753. }
  50754. 80153de: 4618 mov r0, r3
  50755. 80153e0: 3728 adds r7, #40 @ 0x28
  50756. 80153e2: 46bd mov sp, r7
  50757. 80153e4: bd80 pop {r7, pc}
  50758. 080153e6 <xTaskCreate>:
  50759. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  50760. const configSTACK_DEPTH_TYPE usStackDepth,
  50761. void * const pvParameters,
  50762. UBaseType_t uxPriority,
  50763. TaskHandle_t * const pxCreatedTask )
  50764. {
  50765. 80153e6: b580 push {r7, lr}
  50766. 80153e8: b08c sub sp, #48 @ 0x30
  50767. 80153ea: af04 add r7, sp, #16
  50768. 80153ec: 60f8 str r0, [r7, #12]
  50769. 80153ee: 60b9 str r1, [r7, #8]
  50770. 80153f0: 603b str r3, [r7, #0]
  50771. 80153f2: 4613 mov r3, r2
  50772. 80153f4: 80fb strh r3, [r7, #6]
  50773. #else /* portSTACK_GROWTH */
  50774. {
  50775. StackType_t *pxStack;
  50776. /* Allocate space for the stack used by the task being created. */
  50777. pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation is the stack. */
  50778. 80153f6: 88fb ldrh r3, [r7, #6]
  50779. 80153f8: 009b lsls r3, r3, #2
  50780. 80153fa: 4618 mov r0, r3
  50781. 80153fc: f002 f8d6 bl 80175ac <pvPortMalloc>
  50782. 8015400: 6178 str r0, [r7, #20]
  50783. if( pxStack != NULL )
  50784. 8015402: 697b ldr r3, [r7, #20]
  50785. 8015404: 2b00 cmp r3, #0
  50786. 8015406: d00e beq.n 8015426 <xTaskCreate+0x40>
  50787. {
  50788. /* Allocate space for the TCB. */
  50789. pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */
  50790. 8015408: 20a8 movs r0, #168 @ 0xa8
  50791. 801540a: f002 f8cf bl 80175ac <pvPortMalloc>
  50792. 801540e: 61f8 str r0, [r7, #28]
  50793. if( pxNewTCB != NULL )
  50794. 8015410: 69fb ldr r3, [r7, #28]
  50795. 8015412: 2b00 cmp r3, #0
  50796. 8015414: d003 beq.n 801541e <xTaskCreate+0x38>
  50797. {
  50798. /* Store the stack location in the TCB. */
  50799. pxNewTCB->pxStack = pxStack;
  50800. 8015416: 69fb ldr r3, [r7, #28]
  50801. 8015418: 697a ldr r2, [r7, #20]
  50802. 801541a: 631a str r2, [r3, #48] @ 0x30
  50803. 801541c: e005 b.n 801542a <xTaskCreate+0x44>
  50804. }
  50805. else
  50806. {
  50807. /* The stack cannot be used as the TCB was not created. Free
  50808. it again. */
  50809. vPortFree( pxStack );
  50810. 801541e: 6978 ldr r0, [r7, #20]
  50811. 8015420: f002 f992 bl 8017748 <vPortFree>
  50812. 8015424: e001 b.n 801542a <xTaskCreate+0x44>
  50813. }
  50814. }
  50815. else
  50816. {
  50817. pxNewTCB = NULL;
  50818. 8015426: 2300 movs r3, #0
  50819. 8015428: 61fb str r3, [r7, #28]
  50820. }
  50821. }
  50822. #endif /* portSTACK_GROWTH */
  50823. if( pxNewTCB != NULL )
  50824. 801542a: 69fb ldr r3, [r7, #28]
  50825. 801542c: 2b00 cmp r3, #0
  50826. 801542e: d017 beq.n 8015460 <xTaskCreate+0x7a>
  50827. {
  50828. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  50829. {
  50830. /* Tasks can be created statically or dynamically, so note this
  50831. task was created dynamically in case it is later deleted. */
  50832. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  50833. 8015430: 69fb ldr r3, [r7, #28]
  50834. 8015432: 2200 movs r2, #0
  50835. 8015434: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  50836. }
  50837. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  50838. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  50839. 8015438: 88fa ldrh r2, [r7, #6]
  50840. 801543a: 2300 movs r3, #0
  50841. 801543c: 9303 str r3, [sp, #12]
  50842. 801543e: 69fb ldr r3, [r7, #28]
  50843. 8015440: 9302 str r3, [sp, #8]
  50844. 8015442: 6afb ldr r3, [r7, #44] @ 0x2c
  50845. 8015444: 9301 str r3, [sp, #4]
  50846. 8015446: 6abb ldr r3, [r7, #40] @ 0x28
  50847. 8015448: 9300 str r3, [sp, #0]
  50848. 801544a: 683b ldr r3, [r7, #0]
  50849. 801544c: 68b9 ldr r1, [r7, #8]
  50850. 801544e: 68f8 ldr r0, [r7, #12]
  50851. 8015450: f000 f80e bl 8015470 <prvInitialiseNewTask>
  50852. prvAddNewTaskToReadyList( pxNewTCB );
  50853. 8015454: 69f8 ldr r0, [r7, #28]
  50854. 8015456: f000 f8b3 bl 80155c0 <prvAddNewTaskToReadyList>
  50855. xReturn = pdPASS;
  50856. 801545a: 2301 movs r3, #1
  50857. 801545c: 61bb str r3, [r7, #24]
  50858. 801545e: e002 b.n 8015466 <xTaskCreate+0x80>
  50859. }
  50860. else
  50861. {
  50862. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  50863. 8015460: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  50864. 8015464: 61bb str r3, [r7, #24]
  50865. }
  50866. return xReturn;
  50867. 8015466: 69bb ldr r3, [r7, #24]
  50868. }
  50869. 8015468: 4618 mov r0, r3
  50870. 801546a: 3720 adds r7, #32
  50871. 801546c: 46bd mov sp, r7
  50872. 801546e: bd80 pop {r7, pc}
  50873. 08015470 <prvInitialiseNewTask>:
  50874. void * const pvParameters,
  50875. UBaseType_t uxPriority,
  50876. TaskHandle_t * const pxCreatedTask,
  50877. TCB_t *pxNewTCB,
  50878. const MemoryRegion_t * const xRegions )
  50879. {
  50880. 8015470: b580 push {r7, lr}
  50881. 8015472: b088 sub sp, #32
  50882. 8015474: af00 add r7, sp, #0
  50883. 8015476: 60f8 str r0, [r7, #12]
  50884. 8015478: 60b9 str r1, [r7, #8]
  50885. 801547a: 607a str r2, [r7, #4]
  50886. 801547c: 603b str r3, [r7, #0]
  50887. /* Avoid dependency on memset() if it is not required. */
  50888. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  50889. {
  50890. /* Fill the stack with a known value to assist debugging. */
  50891. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  50892. 801547e: 6b3b ldr r3, [r7, #48] @ 0x30
  50893. 8015480: 6b18 ldr r0, [r3, #48] @ 0x30
  50894. 8015482: 687b ldr r3, [r7, #4]
  50895. 8015484: 009b lsls r3, r3, #2
  50896. 8015486: 461a mov r2, r3
  50897. 8015488: 21a5 movs r1, #165 @ 0xa5
  50898. 801548a: f002 fb94 bl 8017bb6 <memset>
  50899. grows from high memory to low (as per the 80x86) or vice versa.
  50900. portSTACK_GROWTH is used to make the result positive or negative as required
  50901. by the port. */
  50902. #if( portSTACK_GROWTH < 0 )
  50903. {
  50904. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  50905. 801548e: 6b3b ldr r3, [r7, #48] @ 0x30
  50906. 8015490: 6b1a ldr r2, [r3, #48] @ 0x30
  50907. 8015492: 6879 ldr r1, [r7, #4]
  50908. 8015494: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  50909. 8015498: 440b add r3, r1
  50910. 801549a: 009b lsls r3, r3, #2
  50911. 801549c: 4413 add r3, r2
  50912. 801549e: 61bb str r3, [r7, #24]
  50913. pxTopOfStack = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) ); /*lint !e923 !e9033 !e9078 MISRA exception. Avoiding casts between pointers and integers is not practical. Size differences accounted for using portPOINTER_SIZE_TYPE type. Checked by assert(). */
  50914. 80154a0: 69bb ldr r3, [r7, #24]
  50915. 80154a2: f023 0307 bic.w r3, r3, #7
  50916. 80154a6: 61bb str r3, [r7, #24]
  50917. /* Check the alignment of the calculated top of stack is correct. */
  50918. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  50919. 80154a8: 69bb ldr r3, [r7, #24]
  50920. 80154aa: f003 0307 and.w r3, r3, #7
  50921. 80154ae: 2b00 cmp r3, #0
  50922. 80154b0: d00b beq.n 80154ca <prvInitialiseNewTask+0x5a>
  50923. __asm volatile
  50924. 80154b2: f04f 0350 mov.w r3, #80 @ 0x50
  50925. 80154b6: f383 8811 msr BASEPRI, r3
  50926. 80154ba: f3bf 8f6f isb sy
  50927. 80154be: f3bf 8f4f dsb sy
  50928. 80154c2: 617b str r3, [r7, #20]
  50929. }
  50930. 80154c4: bf00 nop
  50931. 80154c6: bf00 nop
  50932. 80154c8: e7fd b.n 80154c6 <prvInitialiseNewTask+0x56>
  50933. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  50934. }
  50935. #endif /* portSTACK_GROWTH */
  50936. /* Store the task name in the TCB. */
  50937. if( pcName != NULL )
  50938. 80154ca: 68bb ldr r3, [r7, #8]
  50939. 80154cc: 2b00 cmp r3, #0
  50940. 80154ce: d01f beq.n 8015510 <prvInitialiseNewTask+0xa0>
  50941. {
  50942. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  50943. 80154d0: 2300 movs r3, #0
  50944. 80154d2: 61fb str r3, [r7, #28]
  50945. 80154d4: e012 b.n 80154fc <prvInitialiseNewTask+0x8c>
  50946. {
  50947. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  50948. 80154d6: 68ba ldr r2, [r7, #8]
  50949. 80154d8: 69fb ldr r3, [r7, #28]
  50950. 80154da: 4413 add r3, r2
  50951. 80154dc: 7819 ldrb r1, [r3, #0]
  50952. 80154de: 6b3a ldr r2, [r7, #48] @ 0x30
  50953. 80154e0: 69fb ldr r3, [r7, #28]
  50954. 80154e2: 4413 add r3, r2
  50955. 80154e4: 3334 adds r3, #52 @ 0x34
  50956. 80154e6: 460a mov r2, r1
  50957. 80154e8: 701a strb r2, [r3, #0]
  50958. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  50959. configMAX_TASK_NAME_LEN characters just in case the memory after the
  50960. string is not accessible (extremely unlikely). */
  50961. if( pcName[ x ] == ( char ) 0x00 )
  50962. 80154ea: 68ba ldr r2, [r7, #8]
  50963. 80154ec: 69fb ldr r3, [r7, #28]
  50964. 80154ee: 4413 add r3, r2
  50965. 80154f0: 781b ldrb r3, [r3, #0]
  50966. 80154f2: 2b00 cmp r3, #0
  50967. 80154f4: d006 beq.n 8015504 <prvInitialiseNewTask+0x94>
  50968. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  50969. 80154f6: 69fb ldr r3, [r7, #28]
  50970. 80154f8: 3301 adds r3, #1
  50971. 80154fa: 61fb str r3, [r7, #28]
  50972. 80154fc: 69fb ldr r3, [r7, #28]
  50973. 80154fe: 2b0f cmp r3, #15
  50974. 8015500: d9e9 bls.n 80154d6 <prvInitialiseNewTask+0x66>
  50975. 8015502: e000 b.n 8015506 <prvInitialiseNewTask+0x96>
  50976. {
  50977. break;
  50978. 8015504: bf00 nop
  50979. }
  50980. }
  50981. /* Ensure the name string is terminated in the case that the string length
  50982. was greater or equal to configMAX_TASK_NAME_LEN. */
  50983. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  50984. 8015506: 6b3b ldr r3, [r7, #48] @ 0x30
  50985. 8015508: 2200 movs r2, #0
  50986. 801550a: f883 2043 strb.w r2, [r3, #67] @ 0x43
  50987. 801550e: e003 b.n 8015518 <prvInitialiseNewTask+0xa8>
  50988. }
  50989. else
  50990. {
  50991. /* The task has not been given a name, so just ensure there is a NULL
  50992. terminator when it is read out. */
  50993. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  50994. 8015510: 6b3b ldr r3, [r7, #48] @ 0x30
  50995. 8015512: 2200 movs r2, #0
  50996. 8015514: f883 2034 strb.w r2, [r3, #52] @ 0x34
  50997. }
  50998. /* This is used as an array index so must ensure it's not too large. First
  50999. remove the privilege bit if one is present. */
  51000. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  51001. 8015518: 6abb ldr r3, [r7, #40] @ 0x28
  51002. 801551a: 2b37 cmp r3, #55 @ 0x37
  51003. 801551c: d901 bls.n 8015522 <prvInitialiseNewTask+0xb2>
  51004. {
  51005. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  51006. 801551e: 2337 movs r3, #55 @ 0x37
  51007. 8015520: 62bb str r3, [r7, #40] @ 0x28
  51008. else
  51009. {
  51010. mtCOVERAGE_TEST_MARKER();
  51011. }
  51012. pxNewTCB->uxPriority = uxPriority;
  51013. 8015522: 6b3b ldr r3, [r7, #48] @ 0x30
  51014. 8015524: 6aba ldr r2, [r7, #40] @ 0x28
  51015. 8015526: 62da str r2, [r3, #44] @ 0x2c
  51016. #if ( configUSE_MUTEXES == 1 )
  51017. {
  51018. pxNewTCB->uxBasePriority = uxPriority;
  51019. 8015528: 6b3b ldr r3, [r7, #48] @ 0x30
  51020. 801552a: 6aba ldr r2, [r7, #40] @ 0x28
  51021. 801552c: 64da str r2, [r3, #76] @ 0x4c
  51022. pxNewTCB->uxMutexesHeld = 0;
  51023. 801552e: 6b3b ldr r3, [r7, #48] @ 0x30
  51024. 8015530: 2200 movs r2, #0
  51025. 8015532: 651a str r2, [r3, #80] @ 0x50
  51026. }
  51027. #endif /* configUSE_MUTEXES */
  51028. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  51029. 8015534: 6b3b ldr r3, [r7, #48] @ 0x30
  51030. 8015536: 3304 adds r3, #4
  51031. 8015538: 4618 mov r0, r3
  51032. 801553a: f7fe fd09 bl 8013f50 <vListInitialiseItem>
  51033. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  51034. 801553e: 6b3b ldr r3, [r7, #48] @ 0x30
  51035. 8015540: 3318 adds r3, #24
  51036. 8015542: 4618 mov r0, r3
  51037. 8015544: f7fe fd04 bl 8013f50 <vListInitialiseItem>
  51038. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  51039. back to the containing TCB from a generic item in a list. */
  51040. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  51041. 8015548: 6b3b ldr r3, [r7, #48] @ 0x30
  51042. 801554a: 6b3a ldr r2, [r7, #48] @ 0x30
  51043. 801554c: 611a str r2, [r3, #16]
  51044. /* Event lists are always in priority order. */
  51045. listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  51046. 801554e: 6abb ldr r3, [r7, #40] @ 0x28
  51047. 8015550: f1c3 0238 rsb r2, r3, #56 @ 0x38
  51048. 8015554: 6b3b ldr r3, [r7, #48] @ 0x30
  51049. 8015556: 619a str r2, [r3, #24]
  51050. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  51051. 8015558: 6b3b ldr r3, [r7, #48] @ 0x30
  51052. 801555a: 6b3a ldr r2, [r7, #48] @ 0x30
  51053. 801555c: 625a str r2, [r3, #36] @ 0x24
  51054. }
  51055. #endif
  51056. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  51057. {
  51058. pxNewTCB->ulNotifiedValue = 0;
  51059. 801555e: 6b3b ldr r3, [r7, #48] @ 0x30
  51060. 8015560: 2200 movs r2, #0
  51061. 8015562: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  51062. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  51063. 8015566: 6b3b ldr r3, [r7, #48] @ 0x30
  51064. 8015568: 2200 movs r2, #0
  51065. 801556a: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  51066. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  51067. {
  51068. /* Initialise this task's Newlib reent structure.
  51069. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  51070. for additional information. */
  51071. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  51072. 801556e: 6b3b ldr r3, [r7, #48] @ 0x30
  51073. 8015570: 3354 adds r3, #84 @ 0x54
  51074. 8015572: 224c movs r2, #76 @ 0x4c
  51075. 8015574: 2100 movs r1, #0
  51076. 8015576: 4618 mov r0, r3
  51077. 8015578: f002 fb1d bl 8017bb6 <memset>
  51078. 801557c: 6b3b ldr r3, [r7, #48] @ 0x30
  51079. 801557e: 4a0d ldr r2, [pc, #52] @ (80155b4 <prvInitialiseNewTask+0x144>)
  51080. 8015580: 659a str r2, [r3, #88] @ 0x58
  51081. 8015582: 6b3b ldr r3, [r7, #48] @ 0x30
  51082. 8015584: 4a0c ldr r2, [pc, #48] @ (80155b8 <prvInitialiseNewTask+0x148>)
  51083. 8015586: 65da str r2, [r3, #92] @ 0x5c
  51084. 8015588: 6b3b ldr r3, [r7, #48] @ 0x30
  51085. 801558a: 4a0c ldr r2, [pc, #48] @ (80155bc <prvInitialiseNewTask+0x14c>)
  51086. 801558c: 661a str r2, [r3, #96] @ 0x60
  51087. }
  51088. #endif /* portSTACK_GROWTH */
  51089. }
  51090. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  51091. {
  51092. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  51093. 801558e: 683a ldr r2, [r7, #0]
  51094. 8015590: 68f9 ldr r1, [r7, #12]
  51095. 8015592: 69b8 ldr r0, [r7, #24]
  51096. 8015594: f001 fdb8 bl 8017108 <pxPortInitialiseStack>
  51097. 8015598: 4602 mov r2, r0
  51098. 801559a: 6b3b ldr r3, [r7, #48] @ 0x30
  51099. 801559c: 601a str r2, [r3, #0]
  51100. }
  51101. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  51102. }
  51103. #endif /* portUSING_MPU_WRAPPERS */
  51104. if( pxCreatedTask != NULL )
  51105. 801559e: 6afb ldr r3, [r7, #44] @ 0x2c
  51106. 80155a0: 2b00 cmp r3, #0
  51107. 80155a2: d002 beq.n 80155aa <prvInitialiseNewTask+0x13a>
  51108. {
  51109. /* Pass the handle out in an anonymous way. The handle can be used to
  51110. change the created task's priority, delete the created task, etc.*/
  51111. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  51112. 80155a4: 6afb ldr r3, [r7, #44] @ 0x2c
  51113. 80155a6: 6b3a ldr r2, [r7, #48] @ 0x30
  51114. 80155a8: 601a str r2, [r3, #0]
  51115. }
  51116. else
  51117. {
  51118. mtCOVERAGE_TEST_MARKER();
  51119. }
  51120. }
  51121. 80155aa: bf00 nop
  51122. 80155ac: 3720 adds r7, #32
  51123. 80155ae: 46bd mov sp, r7
  51124. 80155b0: bd80 pop {r7, pc}
  51125. 80155b2: bf00 nop
  51126. 80155b4: 24012c94 .word 0x24012c94
  51127. 80155b8: 24012cfc .word 0x24012cfc
  51128. 80155bc: 24012d64 .word 0x24012d64
  51129. 080155c0 <prvAddNewTaskToReadyList>:
  51130. /*-----------------------------------------------------------*/
  51131. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  51132. {
  51133. 80155c0: b580 push {r7, lr}
  51134. 80155c2: b082 sub sp, #8
  51135. 80155c4: af00 add r7, sp, #0
  51136. 80155c6: 6078 str r0, [r7, #4]
  51137. /* Ensure interrupts don't access the task lists while the lists are being
  51138. updated. */
  51139. taskENTER_CRITICAL();
  51140. 80155c8: f001 fece bl 8017368 <vPortEnterCritical>
  51141. {
  51142. uxCurrentNumberOfTasks++;
  51143. 80155cc: 4b2d ldr r3, [pc, #180] @ (8015684 <prvAddNewTaskToReadyList+0xc4>)
  51144. 80155ce: 681b ldr r3, [r3, #0]
  51145. 80155d0: 3301 adds r3, #1
  51146. 80155d2: 4a2c ldr r2, [pc, #176] @ (8015684 <prvAddNewTaskToReadyList+0xc4>)
  51147. 80155d4: 6013 str r3, [r2, #0]
  51148. if( pxCurrentTCB == NULL )
  51149. 80155d6: 4b2c ldr r3, [pc, #176] @ (8015688 <prvAddNewTaskToReadyList+0xc8>)
  51150. 80155d8: 681b ldr r3, [r3, #0]
  51151. 80155da: 2b00 cmp r3, #0
  51152. 80155dc: d109 bne.n 80155f2 <prvAddNewTaskToReadyList+0x32>
  51153. {
  51154. /* There are no other tasks, or all the other tasks are in
  51155. the suspended state - make this the current task. */
  51156. pxCurrentTCB = pxNewTCB;
  51157. 80155de: 4a2a ldr r2, [pc, #168] @ (8015688 <prvAddNewTaskToReadyList+0xc8>)
  51158. 80155e0: 687b ldr r3, [r7, #4]
  51159. 80155e2: 6013 str r3, [r2, #0]
  51160. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  51161. 80155e4: 4b27 ldr r3, [pc, #156] @ (8015684 <prvAddNewTaskToReadyList+0xc4>)
  51162. 80155e6: 681b ldr r3, [r3, #0]
  51163. 80155e8: 2b01 cmp r3, #1
  51164. 80155ea: d110 bne.n 801560e <prvAddNewTaskToReadyList+0x4e>
  51165. {
  51166. /* This is the first task to be created so do the preliminary
  51167. initialisation required. We will not recover if this call
  51168. fails, but we will report the failure. */
  51169. prvInitialiseTaskLists();
  51170. 80155ec: f000 fc64 bl 8015eb8 <prvInitialiseTaskLists>
  51171. 80155f0: e00d b.n 801560e <prvAddNewTaskToReadyList+0x4e>
  51172. else
  51173. {
  51174. /* If the scheduler is not already running, make this task the
  51175. current task if it is the highest priority task to be created
  51176. so far. */
  51177. if( xSchedulerRunning == pdFALSE )
  51178. 80155f2: 4b26 ldr r3, [pc, #152] @ (801568c <prvAddNewTaskToReadyList+0xcc>)
  51179. 80155f4: 681b ldr r3, [r3, #0]
  51180. 80155f6: 2b00 cmp r3, #0
  51181. 80155f8: d109 bne.n 801560e <prvAddNewTaskToReadyList+0x4e>
  51182. {
  51183. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  51184. 80155fa: 4b23 ldr r3, [pc, #140] @ (8015688 <prvAddNewTaskToReadyList+0xc8>)
  51185. 80155fc: 681b ldr r3, [r3, #0]
  51186. 80155fe: 6ada ldr r2, [r3, #44] @ 0x2c
  51187. 8015600: 687b ldr r3, [r7, #4]
  51188. 8015602: 6adb ldr r3, [r3, #44] @ 0x2c
  51189. 8015604: 429a cmp r2, r3
  51190. 8015606: d802 bhi.n 801560e <prvAddNewTaskToReadyList+0x4e>
  51191. {
  51192. pxCurrentTCB = pxNewTCB;
  51193. 8015608: 4a1f ldr r2, [pc, #124] @ (8015688 <prvAddNewTaskToReadyList+0xc8>)
  51194. 801560a: 687b ldr r3, [r7, #4]
  51195. 801560c: 6013 str r3, [r2, #0]
  51196. {
  51197. mtCOVERAGE_TEST_MARKER();
  51198. }
  51199. }
  51200. uxTaskNumber++;
  51201. 801560e: 4b20 ldr r3, [pc, #128] @ (8015690 <prvAddNewTaskToReadyList+0xd0>)
  51202. 8015610: 681b ldr r3, [r3, #0]
  51203. 8015612: 3301 adds r3, #1
  51204. 8015614: 4a1e ldr r2, [pc, #120] @ (8015690 <prvAddNewTaskToReadyList+0xd0>)
  51205. 8015616: 6013 str r3, [r2, #0]
  51206. #if ( configUSE_TRACE_FACILITY == 1 )
  51207. {
  51208. /* Add a counter into the TCB for tracing only. */
  51209. pxNewTCB->uxTCBNumber = uxTaskNumber;
  51210. 8015618: 4b1d ldr r3, [pc, #116] @ (8015690 <prvAddNewTaskToReadyList+0xd0>)
  51211. 801561a: 681a ldr r2, [r3, #0]
  51212. 801561c: 687b ldr r3, [r7, #4]
  51213. 801561e: 645a str r2, [r3, #68] @ 0x44
  51214. }
  51215. #endif /* configUSE_TRACE_FACILITY */
  51216. traceTASK_CREATE( pxNewTCB );
  51217. prvAddTaskToReadyList( pxNewTCB );
  51218. 8015620: 687b ldr r3, [r7, #4]
  51219. 8015622: 6ada ldr r2, [r3, #44] @ 0x2c
  51220. 8015624: 4b1b ldr r3, [pc, #108] @ (8015694 <prvAddNewTaskToReadyList+0xd4>)
  51221. 8015626: 681b ldr r3, [r3, #0]
  51222. 8015628: 429a cmp r2, r3
  51223. 801562a: d903 bls.n 8015634 <prvAddNewTaskToReadyList+0x74>
  51224. 801562c: 687b ldr r3, [r7, #4]
  51225. 801562e: 6adb ldr r3, [r3, #44] @ 0x2c
  51226. 8015630: 4a18 ldr r2, [pc, #96] @ (8015694 <prvAddNewTaskToReadyList+0xd4>)
  51227. 8015632: 6013 str r3, [r2, #0]
  51228. 8015634: 687b ldr r3, [r7, #4]
  51229. 8015636: 6ada ldr r2, [r3, #44] @ 0x2c
  51230. 8015638: 4613 mov r3, r2
  51231. 801563a: 009b lsls r3, r3, #2
  51232. 801563c: 4413 add r3, r2
  51233. 801563e: 009b lsls r3, r3, #2
  51234. 8015640: 4a15 ldr r2, [pc, #84] @ (8015698 <prvAddNewTaskToReadyList+0xd8>)
  51235. 8015642: 441a add r2, r3
  51236. 8015644: 687b ldr r3, [r7, #4]
  51237. 8015646: 3304 adds r3, #4
  51238. 8015648: 4619 mov r1, r3
  51239. 801564a: 4610 mov r0, r2
  51240. 801564c: f7fe fc8d bl 8013f6a <vListInsertEnd>
  51241. portSETUP_TCB( pxNewTCB );
  51242. }
  51243. taskEXIT_CRITICAL();
  51244. 8015650: f001 febc bl 80173cc <vPortExitCritical>
  51245. if( xSchedulerRunning != pdFALSE )
  51246. 8015654: 4b0d ldr r3, [pc, #52] @ (801568c <prvAddNewTaskToReadyList+0xcc>)
  51247. 8015656: 681b ldr r3, [r3, #0]
  51248. 8015658: 2b00 cmp r3, #0
  51249. 801565a: d00e beq.n 801567a <prvAddNewTaskToReadyList+0xba>
  51250. {
  51251. /* If the created task is of a higher priority than the current task
  51252. then it should run now. */
  51253. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  51254. 801565c: 4b0a ldr r3, [pc, #40] @ (8015688 <prvAddNewTaskToReadyList+0xc8>)
  51255. 801565e: 681b ldr r3, [r3, #0]
  51256. 8015660: 6ada ldr r2, [r3, #44] @ 0x2c
  51257. 8015662: 687b ldr r3, [r7, #4]
  51258. 8015664: 6adb ldr r3, [r3, #44] @ 0x2c
  51259. 8015666: 429a cmp r2, r3
  51260. 8015668: d207 bcs.n 801567a <prvAddNewTaskToReadyList+0xba>
  51261. {
  51262. taskYIELD_IF_USING_PREEMPTION();
  51263. 801566a: 4b0c ldr r3, [pc, #48] @ (801569c <prvAddNewTaskToReadyList+0xdc>)
  51264. 801566c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51265. 8015670: 601a str r2, [r3, #0]
  51266. 8015672: f3bf 8f4f dsb sy
  51267. 8015676: f3bf 8f6f isb sy
  51268. }
  51269. else
  51270. {
  51271. mtCOVERAGE_TEST_MARKER();
  51272. }
  51273. }
  51274. 801567a: bf00 nop
  51275. 801567c: 3708 adds r7, #8
  51276. 801567e: 46bd mov sp, r7
  51277. 8015680: bd80 pop {r7, pc}
  51278. 8015682: bf00 nop
  51279. 8015684: 24002b14 .word 0x24002b14
  51280. 8015688: 24002640 .word 0x24002640
  51281. 801568c: 24002b20 .word 0x24002b20
  51282. 8015690: 24002b30 .word 0x24002b30
  51283. 8015694: 24002b1c .word 0x24002b1c
  51284. 8015698: 24002644 .word 0x24002644
  51285. 801569c: e000ed04 .word 0xe000ed04
  51286. 080156a0 <vTaskDelay>:
  51287. /*-----------------------------------------------------------*/
  51288. #if ( INCLUDE_vTaskDelay == 1 )
  51289. void vTaskDelay( const TickType_t xTicksToDelay )
  51290. {
  51291. 80156a0: b580 push {r7, lr}
  51292. 80156a2: b084 sub sp, #16
  51293. 80156a4: af00 add r7, sp, #0
  51294. 80156a6: 6078 str r0, [r7, #4]
  51295. BaseType_t xAlreadyYielded = pdFALSE;
  51296. 80156a8: 2300 movs r3, #0
  51297. 80156aa: 60fb str r3, [r7, #12]
  51298. /* A delay time of zero just forces a reschedule. */
  51299. if( xTicksToDelay > ( TickType_t ) 0U )
  51300. 80156ac: 687b ldr r3, [r7, #4]
  51301. 80156ae: 2b00 cmp r3, #0
  51302. 80156b0: d018 beq.n 80156e4 <vTaskDelay+0x44>
  51303. {
  51304. configASSERT( uxSchedulerSuspended == 0 );
  51305. 80156b2: 4b14 ldr r3, [pc, #80] @ (8015704 <vTaskDelay+0x64>)
  51306. 80156b4: 681b ldr r3, [r3, #0]
  51307. 80156b6: 2b00 cmp r3, #0
  51308. 80156b8: d00b beq.n 80156d2 <vTaskDelay+0x32>
  51309. __asm volatile
  51310. 80156ba: f04f 0350 mov.w r3, #80 @ 0x50
  51311. 80156be: f383 8811 msr BASEPRI, r3
  51312. 80156c2: f3bf 8f6f isb sy
  51313. 80156c6: f3bf 8f4f dsb sy
  51314. 80156ca: 60bb str r3, [r7, #8]
  51315. }
  51316. 80156cc: bf00 nop
  51317. 80156ce: bf00 nop
  51318. 80156d0: e7fd b.n 80156ce <vTaskDelay+0x2e>
  51319. vTaskSuspendAll();
  51320. 80156d2: f000 f88b bl 80157ec <vTaskSuspendAll>
  51321. list or removed from the blocked list until the scheduler
  51322. is resumed.
  51323. This task cannot be in an event list as it is the currently
  51324. executing task. */
  51325. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  51326. 80156d6: 2100 movs r1, #0
  51327. 80156d8: 6878 ldr r0, [r7, #4]
  51328. 80156da: f001 f87d bl 80167d8 <prvAddCurrentTaskToDelayedList>
  51329. }
  51330. xAlreadyYielded = xTaskResumeAll();
  51331. 80156de: f000 f893 bl 8015808 <xTaskResumeAll>
  51332. 80156e2: 60f8 str r0, [r7, #12]
  51333. mtCOVERAGE_TEST_MARKER();
  51334. }
  51335. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  51336. have put ourselves to sleep. */
  51337. if( xAlreadyYielded == pdFALSE )
  51338. 80156e4: 68fb ldr r3, [r7, #12]
  51339. 80156e6: 2b00 cmp r3, #0
  51340. 80156e8: d107 bne.n 80156fa <vTaskDelay+0x5a>
  51341. {
  51342. portYIELD_WITHIN_API();
  51343. 80156ea: 4b07 ldr r3, [pc, #28] @ (8015708 <vTaskDelay+0x68>)
  51344. 80156ec: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51345. 80156f0: 601a str r2, [r3, #0]
  51346. 80156f2: f3bf 8f4f dsb sy
  51347. 80156f6: f3bf 8f6f isb sy
  51348. }
  51349. else
  51350. {
  51351. mtCOVERAGE_TEST_MARKER();
  51352. }
  51353. }
  51354. 80156fa: bf00 nop
  51355. 80156fc: 3710 adds r7, #16
  51356. 80156fe: 46bd mov sp, r7
  51357. 8015700: bd80 pop {r7, pc}
  51358. 8015702: bf00 nop
  51359. 8015704: 24002b3c .word 0x24002b3c
  51360. 8015708: e000ed04 .word 0xe000ed04
  51361. 0801570c <vTaskStartScheduler>:
  51362. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  51363. /*-----------------------------------------------------------*/
  51364. void vTaskStartScheduler( void )
  51365. {
  51366. 801570c: b580 push {r7, lr}
  51367. 801570e: b08a sub sp, #40 @ 0x28
  51368. 8015710: af04 add r7, sp, #16
  51369. BaseType_t xReturn;
  51370. /* Add the idle task at the lowest priority. */
  51371. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  51372. {
  51373. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  51374. 8015712: 2300 movs r3, #0
  51375. 8015714: 60bb str r3, [r7, #8]
  51376. StackType_t *pxIdleTaskStackBuffer = NULL;
  51377. 8015716: 2300 movs r3, #0
  51378. 8015718: 607b str r3, [r7, #4]
  51379. uint32_t ulIdleTaskStackSize;
  51380. /* The Idle task is created using user provided RAM - obtain the
  51381. address of the RAM then create the idle task. */
  51382. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  51383. 801571a: 463a mov r2, r7
  51384. 801571c: 1d39 adds r1, r7, #4
  51385. 801571e: f107 0308 add.w r3, r7, #8
  51386. 8015722: 4618 mov r0, r3
  51387. 8015724: f7fe fbc0 bl 8013ea8 <vApplicationGetIdleTaskMemory>
  51388. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  51389. 8015728: 6839 ldr r1, [r7, #0]
  51390. 801572a: 687b ldr r3, [r7, #4]
  51391. 801572c: 68ba ldr r2, [r7, #8]
  51392. 801572e: 9202 str r2, [sp, #8]
  51393. 8015730: 9301 str r3, [sp, #4]
  51394. 8015732: 2300 movs r3, #0
  51395. 8015734: 9300 str r3, [sp, #0]
  51396. 8015736: 2300 movs r3, #0
  51397. 8015738: 460a mov r2, r1
  51398. 801573a: 4924 ldr r1, [pc, #144] @ (80157cc <vTaskStartScheduler+0xc0>)
  51399. 801573c: 4824 ldr r0, [pc, #144] @ (80157d0 <vTaskStartScheduler+0xc4>)
  51400. 801573e: f7ff fdf2 bl 8015326 <xTaskCreateStatic>
  51401. 8015742: 4603 mov r3, r0
  51402. 8015744: 4a23 ldr r2, [pc, #140] @ (80157d4 <vTaskStartScheduler+0xc8>)
  51403. 8015746: 6013 str r3, [r2, #0]
  51404. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  51405. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  51406. pxIdleTaskStackBuffer,
  51407. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  51408. if( xIdleTaskHandle != NULL )
  51409. 8015748: 4b22 ldr r3, [pc, #136] @ (80157d4 <vTaskStartScheduler+0xc8>)
  51410. 801574a: 681b ldr r3, [r3, #0]
  51411. 801574c: 2b00 cmp r3, #0
  51412. 801574e: d002 beq.n 8015756 <vTaskStartScheduler+0x4a>
  51413. {
  51414. xReturn = pdPASS;
  51415. 8015750: 2301 movs r3, #1
  51416. 8015752: 617b str r3, [r7, #20]
  51417. 8015754: e001 b.n 801575a <vTaskStartScheduler+0x4e>
  51418. }
  51419. else
  51420. {
  51421. xReturn = pdFAIL;
  51422. 8015756: 2300 movs r3, #0
  51423. 8015758: 617b str r3, [r7, #20]
  51424. }
  51425. #endif /* configSUPPORT_STATIC_ALLOCATION */
  51426. #if ( configUSE_TIMERS == 1 )
  51427. {
  51428. if( xReturn == pdPASS )
  51429. 801575a: 697b ldr r3, [r7, #20]
  51430. 801575c: 2b01 cmp r3, #1
  51431. 801575e: d102 bne.n 8015766 <vTaskStartScheduler+0x5a>
  51432. {
  51433. xReturn = xTimerCreateTimerTask();
  51434. 8015760: f001 f88e bl 8016880 <xTimerCreateTimerTask>
  51435. 8015764: 6178 str r0, [r7, #20]
  51436. mtCOVERAGE_TEST_MARKER();
  51437. }
  51438. }
  51439. #endif /* configUSE_TIMERS */
  51440. if( xReturn == pdPASS )
  51441. 8015766: 697b ldr r3, [r7, #20]
  51442. 8015768: 2b01 cmp r3, #1
  51443. 801576a: d11b bne.n 80157a4 <vTaskStartScheduler+0x98>
  51444. __asm volatile
  51445. 801576c: f04f 0350 mov.w r3, #80 @ 0x50
  51446. 8015770: f383 8811 msr BASEPRI, r3
  51447. 8015774: f3bf 8f6f isb sy
  51448. 8015778: f3bf 8f4f dsb sy
  51449. 801577c: 613b str r3, [r7, #16]
  51450. }
  51451. 801577e: bf00 nop
  51452. {
  51453. /* Switch Newlib's _impure_ptr variable to point to the _reent
  51454. structure specific to the task that will run first.
  51455. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  51456. for additional information. */
  51457. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  51458. 8015780: 4b15 ldr r3, [pc, #84] @ (80157d8 <vTaskStartScheduler+0xcc>)
  51459. 8015782: 681b ldr r3, [r3, #0]
  51460. 8015784: 3354 adds r3, #84 @ 0x54
  51461. 8015786: 4a15 ldr r2, [pc, #84] @ (80157dc <vTaskStartScheduler+0xd0>)
  51462. 8015788: 6013 str r3, [r2, #0]
  51463. }
  51464. #endif /* configUSE_NEWLIB_REENTRANT */
  51465. xNextTaskUnblockTime = portMAX_DELAY;
  51466. 801578a: 4b15 ldr r3, [pc, #84] @ (80157e0 <vTaskStartScheduler+0xd4>)
  51467. 801578c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  51468. 8015790: 601a str r2, [r3, #0]
  51469. xSchedulerRunning = pdTRUE;
  51470. 8015792: 4b14 ldr r3, [pc, #80] @ (80157e4 <vTaskStartScheduler+0xd8>)
  51471. 8015794: 2201 movs r2, #1
  51472. 8015796: 601a str r2, [r3, #0]
  51473. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  51474. 8015798: 4b13 ldr r3, [pc, #76] @ (80157e8 <vTaskStartScheduler+0xdc>)
  51475. 801579a: 2200 movs r2, #0
  51476. 801579c: 601a str r2, [r3, #0]
  51477. traceTASK_SWITCHED_IN();
  51478. /* Setting up the timer tick is hardware specific and thus in the
  51479. portable interface. */
  51480. if( xPortStartScheduler() != pdFALSE )
  51481. 801579e: f001 fd3f bl 8017220 <xPortStartScheduler>
  51482. }
  51483. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  51484. meaning xIdleTaskHandle is not used anywhere else. */
  51485. ( void ) xIdleTaskHandle;
  51486. }
  51487. 80157a2: e00f b.n 80157c4 <vTaskStartScheduler+0xb8>
  51488. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  51489. 80157a4: 697b ldr r3, [r7, #20]
  51490. 80157a6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51491. 80157aa: d10b bne.n 80157c4 <vTaskStartScheduler+0xb8>
  51492. __asm volatile
  51493. 80157ac: f04f 0350 mov.w r3, #80 @ 0x50
  51494. 80157b0: f383 8811 msr BASEPRI, r3
  51495. 80157b4: f3bf 8f6f isb sy
  51496. 80157b8: f3bf 8f4f dsb sy
  51497. 80157bc: 60fb str r3, [r7, #12]
  51498. }
  51499. 80157be: bf00 nop
  51500. 80157c0: bf00 nop
  51501. 80157c2: e7fd b.n 80157c0 <vTaskStartScheduler+0xb4>
  51502. }
  51503. 80157c4: bf00 nop
  51504. 80157c6: 3718 adds r7, #24
  51505. 80157c8: 46bd mov sp, r7
  51506. 80157ca: bd80 pop {r7, pc}
  51507. 80157cc: 080189ac .word 0x080189ac
  51508. 80157d0: 08015e89 .word 0x08015e89
  51509. 80157d4: 24002b38 .word 0x24002b38
  51510. 80157d8: 24002640 .word 0x24002640
  51511. 80157dc: 24000054 .word 0x24000054
  51512. 80157e0: 24002b34 .word 0x24002b34
  51513. 80157e4: 24002b20 .word 0x24002b20
  51514. 80157e8: 24002b18 .word 0x24002b18
  51515. 080157ec <vTaskSuspendAll>:
  51516. vPortEndScheduler();
  51517. }
  51518. /*----------------------------------------------------------*/
  51519. void vTaskSuspendAll( void )
  51520. {
  51521. 80157ec: b480 push {r7}
  51522. 80157ee: af00 add r7, sp, #0
  51523. do not otherwise exhibit real time behaviour. */
  51524. portSOFTWARE_BARRIER();
  51525. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  51526. is used to allow calls to vTaskSuspendAll() to nest. */
  51527. ++uxSchedulerSuspended;
  51528. 80157f0: 4b04 ldr r3, [pc, #16] @ (8015804 <vTaskSuspendAll+0x18>)
  51529. 80157f2: 681b ldr r3, [r3, #0]
  51530. 80157f4: 3301 adds r3, #1
  51531. 80157f6: 4a03 ldr r2, [pc, #12] @ (8015804 <vTaskSuspendAll+0x18>)
  51532. 80157f8: 6013 str r3, [r2, #0]
  51533. /* Enforces ordering for ports and optimised compilers that may otherwise place
  51534. the above increment elsewhere. */
  51535. portMEMORY_BARRIER();
  51536. }
  51537. 80157fa: bf00 nop
  51538. 80157fc: 46bd mov sp, r7
  51539. 80157fe: f85d 7b04 ldr.w r7, [sp], #4
  51540. 8015802: 4770 bx lr
  51541. 8015804: 24002b3c .word 0x24002b3c
  51542. 08015808 <xTaskResumeAll>:
  51543. #endif /* configUSE_TICKLESS_IDLE */
  51544. /*----------------------------------------------------------*/
  51545. BaseType_t xTaskResumeAll( void )
  51546. {
  51547. 8015808: b580 push {r7, lr}
  51548. 801580a: b084 sub sp, #16
  51549. 801580c: af00 add r7, sp, #0
  51550. TCB_t *pxTCB = NULL;
  51551. 801580e: 2300 movs r3, #0
  51552. 8015810: 60fb str r3, [r7, #12]
  51553. BaseType_t xAlreadyYielded = pdFALSE;
  51554. 8015812: 2300 movs r3, #0
  51555. 8015814: 60bb str r3, [r7, #8]
  51556. /* If uxSchedulerSuspended is zero then this function does not match a
  51557. previous call to vTaskSuspendAll(). */
  51558. configASSERT( uxSchedulerSuspended );
  51559. 8015816: 4b42 ldr r3, [pc, #264] @ (8015920 <xTaskResumeAll+0x118>)
  51560. 8015818: 681b ldr r3, [r3, #0]
  51561. 801581a: 2b00 cmp r3, #0
  51562. 801581c: d10b bne.n 8015836 <xTaskResumeAll+0x2e>
  51563. __asm volatile
  51564. 801581e: f04f 0350 mov.w r3, #80 @ 0x50
  51565. 8015822: f383 8811 msr BASEPRI, r3
  51566. 8015826: f3bf 8f6f isb sy
  51567. 801582a: f3bf 8f4f dsb sy
  51568. 801582e: 603b str r3, [r7, #0]
  51569. }
  51570. 8015830: bf00 nop
  51571. 8015832: bf00 nop
  51572. 8015834: e7fd b.n 8015832 <xTaskResumeAll+0x2a>
  51573. /* It is possible that an ISR caused a task to be removed from an event
  51574. list while the scheduler was suspended. If this was the case then the
  51575. removed task will have been added to the xPendingReadyList. Once the
  51576. scheduler has been resumed it is safe to move all the pending ready
  51577. tasks from this list into their appropriate ready list. */
  51578. taskENTER_CRITICAL();
  51579. 8015836: f001 fd97 bl 8017368 <vPortEnterCritical>
  51580. {
  51581. --uxSchedulerSuspended;
  51582. 801583a: 4b39 ldr r3, [pc, #228] @ (8015920 <xTaskResumeAll+0x118>)
  51583. 801583c: 681b ldr r3, [r3, #0]
  51584. 801583e: 3b01 subs r3, #1
  51585. 8015840: 4a37 ldr r2, [pc, #220] @ (8015920 <xTaskResumeAll+0x118>)
  51586. 8015842: 6013 str r3, [r2, #0]
  51587. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  51588. 8015844: 4b36 ldr r3, [pc, #216] @ (8015920 <xTaskResumeAll+0x118>)
  51589. 8015846: 681b ldr r3, [r3, #0]
  51590. 8015848: 2b00 cmp r3, #0
  51591. 801584a: d162 bne.n 8015912 <xTaskResumeAll+0x10a>
  51592. {
  51593. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  51594. 801584c: 4b35 ldr r3, [pc, #212] @ (8015924 <xTaskResumeAll+0x11c>)
  51595. 801584e: 681b ldr r3, [r3, #0]
  51596. 8015850: 2b00 cmp r3, #0
  51597. 8015852: d05e beq.n 8015912 <xTaskResumeAll+0x10a>
  51598. {
  51599. /* Move any readied tasks from the pending list into the
  51600. appropriate ready list. */
  51601. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  51602. 8015854: e02f b.n 80158b6 <xTaskResumeAll+0xae>
  51603. {
  51604. pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xPendingReadyList ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  51605. 8015856: 4b34 ldr r3, [pc, #208] @ (8015928 <xTaskResumeAll+0x120>)
  51606. 8015858: 68db ldr r3, [r3, #12]
  51607. 801585a: 68db ldr r3, [r3, #12]
  51608. 801585c: 60fb str r3, [r7, #12]
  51609. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  51610. 801585e: 68fb ldr r3, [r7, #12]
  51611. 8015860: 3318 adds r3, #24
  51612. 8015862: 4618 mov r0, r3
  51613. 8015864: f7fe fbde bl 8014024 <uxListRemove>
  51614. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  51615. 8015868: 68fb ldr r3, [r7, #12]
  51616. 801586a: 3304 adds r3, #4
  51617. 801586c: 4618 mov r0, r3
  51618. 801586e: f7fe fbd9 bl 8014024 <uxListRemove>
  51619. prvAddTaskToReadyList( pxTCB );
  51620. 8015872: 68fb ldr r3, [r7, #12]
  51621. 8015874: 6ada ldr r2, [r3, #44] @ 0x2c
  51622. 8015876: 4b2d ldr r3, [pc, #180] @ (801592c <xTaskResumeAll+0x124>)
  51623. 8015878: 681b ldr r3, [r3, #0]
  51624. 801587a: 429a cmp r2, r3
  51625. 801587c: d903 bls.n 8015886 <xTaskResumeAll+0x7e>
  51626. 801587e: 68fb ldr r3, [r7, #12]
  51627. 8015880: 6adb ldr r3, [r3, #44] @ 0x2c
  51628. 8015882: 4a2a ldr r2, [pc, #168] @ (801592c <xTaskResumeAll+0x124>)
  51629. 8015884: 6013 str r3, [r2, #0]
  51630. 8015886: 68fb ldr r3, [r7, #12]
  51631. 8015888: 6ada ldr r2, [r3, #44] @ 0x2c
  51632. 801588a: 4613 mov r3, r2
  51633. 801588c: 009b lsls r3, r3, #2
  51634. 801588e: 4413 add r3, r2
  51635. 8015890: 009b lsls r3, r3, #2
  51636. 8015892: 4a27 ldr r2, [pc, #156] @ (8015930 <xTaskResumeAll+0x128>)
  51637. 8015894: 441a add r2, r3
  51638. 8015896: 68fb ldr r3, [r7, #12]
  51639. 8015898: 3304 adds r3, #4
  51640. 801589a: 4619 mov r1, r3
  51641. 801589c: 4610 mov r0, r2
  51642. 801589e: f7fe fb64 bl 8013f6a <vListInsertEnd>
  51643. /* If the moved task has a priority higher than the current
  51644. task then a yield must be performed. */
  51645. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  51646. 80158a2: 68fb ldr r3, [r7, #12]
  51647. 80158a4: 6ada ldr r2, [r3, #44] @ 0x2c
  51648. 80158a6: 4b23 ldr r3, [pc, #140] @ (8015934 <xTaskResumeAll+0x12c>)
  51649. 80158a8: 681b ldr r3, [r3, #0]
  51650. 80158aa: 6adb ldr r3, [r3, #44] @ 0x2c
  51651. 80158ac: 429a cmp r2, r3
  51652. 80158ae: d302 bcc.n 80158b6 <xTaskResumeAll+0xae>
  51653. {
  51654. xYieldPending = pdTRUE;
  51655. 80158b0: 4b21 ldr r3, [pc, #132] @ (8015938 <xTaskResumeAll+0x130>)
  51656. 80158b2: 2201 movs r2, #1
  51657. 80158b4: 601a str r2, [r3, #0]
  51658. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  51659. 80158b6: 4b1c ldr r3, [pc, #112] @ (8015928 <xTaskResumeAll+0x120>)
  51660. 80158b8: 681b ldr r3, [r3, #0]
  51661. 80158ba: 2b00 cmp r3, #0
  51662. 80158bc: d1cb bne.n 8015856 <xTaskResumeAll+0x4e>
  51663. {
  51664. mtCOVERAGE_TEST_MARKER();
  51665. }
  51666. }
  51667. if( pxTCB != NULL )
  51668. 80158be: 68fb ldr r3, [r7, #12]
  51669. 80158c0: 2b00 cmp r3, #0
  51670. 80158c2: d001 beq.n 80158c8 <xTaskResumeAll+0xc0>
  51671. which may have prevented the next unblock time from being
  51672. re-calculated, in which case re-calculate it now. Mainly
  51673. important for low power tickless implementations, where
  51674. this can prevent an unnecessary exit from low power
  51675. state. */
  51676. prvResetNextTaskUnblockTime();
  51677. 80158c4: f000 fb9c bl 8016000 <prvResetNextTaskUnblockTime>
  51678. /* If any ticks occurred while the scheduler was suspended then
  51679. they should be processed now. This ensures the tick count does
  51680. not slip, and that any delayed tasks are resumed at the correct
  51681. time. */
  51682. {
  51683. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  51684. 80158c8: 4b1c ldr r3, [pc, #112] @ (801593c <xTaskResumeAll+0x134>)
  51685. 80158ca: 681b ldr r3, [r3, #0]
  51686. 80158cc: 607b str r3, [r7, #4]
  51687. if( xPendedCounts > ( TickType_t ) 0U )
  51688. 80158ce: 687b ldr r3, [r7, #4]
  51689. 80158d0: 2b00 cmp r3, #0
  51690. 80158d2: d010 beq.n 80158f6 <xTaskResumeAll+0xee>
  51691. {
  51692. do
  51693. {
  51694. if( xTaskIncrementTick() != pdFALSE )
  51695. 80158d4: f000 f846 bl 8015964 <xTaskIncrementTick>
  51696. 80158d8: 4603 mov r3, r0
  51697. 80158da: 2b00 cmp r3, #0
  51698. 80158dc: d002 beq.n 80158e4 <xTaskResumeAll+0xdc>
  51699. {
  51700. xYieldPending = pdTRUE;
  51701. 80158de: 4b16 ldr r3, [pc, #88] @ (8015938 <xTaskResumeAll+0x130>)
  51702. 80158e0: 2201 movs r2, #1
  51703. 80158e2: 601a str r2, [r3, #0]
  51704. }
  51705. else
  51706. {
  51707. mtCOVERAGE_TEST_MARKER();
  51708. }
  51709. --xPendedCounts;
  51710. 80158e4: 687b ldr r3, [r7, #4]
  51711. 80158e6: 3b01 subs r3, #1
  51712. 80158e8: 607b str r3, [r7, #4]
  51713. } while( xPendedCounts > ( TickType_t ) 0U );
  51714. 80158ea: 687b ldr r3, [r7, #4]
  51715. 80158ec: 2b00 cmp r3, #0
  51716. 80158ee: d1f1 bne.n 80158d4 <xTaskResumeAll+0xcc>
  51717. xPendedTicks = 0;
  51718. 80158f0: 4b12 ldr r3, [pc, #72] @ (801593c <xTaskResumeAll+0x134>)
  51719. 80158f2: 2200 movs r2, #0
  51720. 80158f4: 601a str r2, [r3, #0]
  51721. {
  51722. mtCOVERAGE_TEST_MARKER();
  51723. }
  51724. }
  51725. if( xYieldPending != pdFALSE )
  51726. 80158f6: 4b10 ldr r3, [pc, #64] @ (8015938 <xTaskResumeAll+0x130>)
  51727. 80158f8: 681b ldr r3, [r3, #0]
  51728. 80158fa: 2b00 cmp r3, #0
  51729. 80158fc: d009 beq.n 8015912 <xTaskResumeAll+0x10a>
  51730. {
  51731. #if( configUSE_PREEMPTION != 0 )
  51732. {
  51733. xAlreadyYielded = pdTRUE;
  51734. 80158fe: 2301 movs r3, #1
  51735. 8015900: 60bb str r3, [r7, #8]
  51736. }
  51737. #endif
  51738. taskYIELD_IF_USING_PREEMPTION();
  51739. 8015902: 4b0f ldr r3, [pc, #60] @ (8015940 <xTaskResumeAll+0x138>)
  51740. 8015904: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51741. 8015908: 601a str r2, [r3, #0]
  51742. 801590a: f3bf 8f4f dsb sy
  51743. 801590e: f3bf 8f6f isb sy
  51744. else
  51745. {
  51746. mtCOVERAGE_TEST_MARKER();
  51747. }
  51748. }
  51749. taskEXIT_CRITICAL();
  51750. 8015912: f001 fd5b bl 80173cc <vPortExitCritical>
  51751. return xAlreadyYielded;
  51752. 8015916: 68bb ldr r3, [r7, #8]
  51753. }
  51754. 8015918: 4618 mov r0, r3
  51755. 801591a: 3710 adds r7, #16
  51756. 801591c: 46bd mov sp, r7
  51757. 801591e: bd80 pop {r7, pc}
  51758. 8015920: 24002b3c .word 0x24002b3c
  51759. 8015924: 24002b14 .word 0x24002b14
  51760. 8015928: 24002ad4 .word 0x24002ad4
  51761. 801592c: 24002b1c .word 0x24002b1c
  51762. 8015930: 24002644 .word 0x24002644
  51763. 8015934: 24002640 .word 0x24002640
  51764. 8015938: 24002b28 .word 0x24002b28
  51765. 801593c: 24002b24 .word 0x24002b24
  51766. 8015940: e000ed04 .word 0xe000ed04
  51767. 08015944 <xTaskGetTickCount>:
  51768. /*-----------------------------------------------------------*/
  51769. TickType_t xTaskGetTickCount( void )
  51770. {
  51771. 8015944: b480 push {r7}
  51772. 8015946: b083 sub sp, #12
  51773. 8015948: af00 add r7, sp, #0
  51774. TickType_t xTicks;
  51775. /* Critical section required if running on a 16 bit processor. */
  51776. portTICK_TYPE_ENTER_CRITICAL();
  51777. {
  51778. xTicks = xTickCount;
  51779. 801594a: 4b05 ldr r3, [pc, #20] @ (8015960 <xTaskGetTickCount+0x1c>)
  51780. 801594c: 681b ldr r3, [r3, #0]
  51781. 801594e: 607b str r3, [r7, #4]
  51782. }
  51783. portTICK_TYPE_EXIT_CRITICAL();
  51784. return xTicks;
  51785. 8015950: 687b ldr r3, [r7, #4]
  51786. }
  51787. 8015952: 4618 mov r0, r3
  51788. 8015954: 370c adds r7, #12
  51789. 8015956: 46bd mov sp, r7
  51790. 8015958: f85d 7b04 ldr.w r7, [sp], #4
  51791. 801595c: 4770 bx lr
  51792. 801595e: bf00 nop
  51793. 8015960: 24002b18 .word 0x24002b18
  51794. 08015964 <xTaskIncrementTick>:
  51795. #endif /* INCLUDE_xTaskAbortDelay */
  51796. /*----------------------------------------------------------*/
  51797. BaseType_t xTaskIncrementTick( void )
  51798. {
  51799. 8015964: b580 push {r7, lr}
  51800. 8015966: b086 sub sp, #24
  51801. 8015968: af00 add r7, sp, #0
  51802. TCB_t * pxTCB;
  51803. TickType_t xItemValue;
  51804. BaseType_t xSwitchRequired = pdFALSE;
  51805. 801596a: 2300 movs r3, #0
  51806. 801596c: 617b str r3, [r7, #20]
  51807. /* Called by the portable layer each time a tick interrupt occurs.
  51808. Increments the tick then checks to see if the new tick value will cause any
  51809. tasks to be unblocked. */
  51810. traceTASK_INCREMENT_TICK( xTickCount );
  51811. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  51812. 801596e: 4b4f ldr r3, [pc, #316] @ (8015aac <xTaskIncrementTick+0x148>)
  51813. 8015970: 681b ldr r3, [r3, #0]
  51814. 8015972: 2b00 cmp r3, #0
  51815. 8015974: f040 8090 bne.w 8015a98 <xTaskIncrementTick+0x134>
  51816. {
  51817. /* Minor optimisation. The tick count cannot change in this
  51818. block. */
  51819. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  51820. 8015978: 4b4d ldr r3, [pc, #308] @ (8015ab0 <xTaskIncrementTick+0x14c>)
  51821. 801597a: 681b ldr r3, [r3, #0]
  51822. 801597c: 3301 adds r3, #1
  51823. 801597e: 613b str r3, [r7, #16]
  51824. /* Increment the RTOS tick, switching the delayed and overflowed
  51825. delayed lists if it wraps to 0. */
  51826. xTickCount = xConstTickCount;
  51827. 8015980: 4a4b ldr r2, [pc, #300] @ (8015ab0 <xTaskIncrementTick+0x14c>)
  51828. 8015982: 693b ldr r3, [r7, #16]
  51829. 8015984: 6013 str r3, [r2, #0]
  51830. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  51831. 8015986: 693b ldr r3, [r7, #16]
  51832. 8015988: 2b00 cmp r3, #0
  51833. 801598a: d121 bne.n 80159d0 <xTaskIncrementTick+0x6c>
  51834. {
  51835. taskSWITCH_DELAYED_LISTS();
  51836. 801598c: 4b49 ldr r3, [pc, #292] @ (8015ab4 <xTaskIncrementTick+0x150>)
  51837. 801598e: 681b ldr r3, [r3, #0]
  51838. 8015990: 681b ldr r3, [r3, #0]
  51839. 8015992: 2b00 cmp r3, #0
  51840. 8015994: d00b beq.n 80159ae <xTaskIncrementTick+0x4a>
  51841. __asm volatile
  51842. 8015996: f04f 0350 mov.w r3, #80 @ 0x50
  51843. 801599a: f383 8811 msr BASEPRI, r3
  51844. 801599e: f3bf 8f6f isb sy
  51845. 80159a2: f3bf 8f4f dsb sy
  51846. 80159a6: 603b str r3, [r7, #0]
  51847. }
  51848. 80159a8: bf00 nop
  51849. 80159aa: bf00 nop
  51850. 80159ac: e7fd b.n 80159aa <xTaskIncrementTick+0x46>
  51851. 80159ae: 4b41 ldr r3, [pc, #260] @ (8015ab4 <xTaskIncrementTick+0x150>)
  51852. 80159b0: 681b ldr r3, [r3, #0]
  51853. 80159b2: 60fb str r3, [r7, #12]
  51854. 80159b4: 4b40 ldr r3, [pc, #256] @ (8015ab8 <xTaskIncrementTick+0x154>)
  51855. 80159b6: 681b ldr r3, [r3, #0]
  51856. 80159b8: 4a3e ldr r2, [pc, #248] @ (8015ab4 <xTaskIncrementTick+0x150>)
  51857. 80159ba: 6013 str r3, [r2, #0]
  51858. 80159bc: 4a3e ldr r2, [pc, #248] @ (8015ab8 <xTaskIncrementTick+0x154>)
  51859. 80159be: 68fb ldr r3, [r7, #12]
  51860. 80159c0: 6013 str r3, [r2, #0]
  51861. 80159c2: 4b3e ldr r3, [pc, #248] @ (8015abc <xTaskIncrementTick+0x158>)
  51862. 80159c4: 681b ldr r3, [r3, #0]
  51863. 80159c6: 3301 adds r3, #1
  51864. 80159c8: 4a3c ldr r2, [pc, #240] @ (8015abc <xTaskIncrementTick+0x158>)
  51865. 80159ca: 6013 str r3, [r2, #0]
  51866. 80159cc: f000 fb18 bl 8016000 <prvResetNextTaskUnblockTime>
  51867. /* See if this tick has made a timeout expire. Tasks are stored in
  51868. the queue in the order of their wake time - meaning once one task
  51869. has been found whose block time has not expired there is no need to
  51870. look any further down the list. */
  51871. if( xConstTickCount >= xNextTaskUnblockTime )
  51872. 80159d0: 4b3b ldr r3, [pc, #236] @ (8015ac0 <xTaskIncrementTick+0x15c>)
  51873. 80159d2: 681b ldr r3, [r3, #0]
  51874. 80159d4: 693a ldr r2, [r7, #16]
  51875. 80159d6: 429a cmp r2, r3
  51876. 80159d8: d349 bcc.n 8015a6e <xTaskIncrementTick+0x10a>
  51877. {
  51878. for( ;; )
  51879. {
  51880. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  51881. 80159da: 4b36 ldr r3, [pc, #216] @ (8015ab4 <xTaskIncrementTick+0x150>)
  51882. 80159dc: 681b ldr r3, [r3, #0]
  51883. 80159de: 681b ldr r3, [r3, #0]
  51884. 80159e0: 2b00 cmp r3, #0
  51885. 80159e2: d104 bne.n 80159ee <xTaskIncrementTick+0x8a>
  51886. /* The delayed list is empty. Set xNextTaskUnblockTime
  51887. to the maximum possible value so it is extremely
  51888. unlikely that the
  51889. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  51890. next time through. */
  51891. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  51892. 80159e4: 4b36 ldr r3, [pc, #216] @ (8015ac0 <xTaskIncrementTick+0x15c>)
  51893. 80159e6: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  51894. 80159ea: 601a str r2, [r3, #0]
  51895. break;
  51896. 80159ec: e03f b.n 8015a6e <xTaskIncrementTick+0x10a>
  51897. {
  51898. /* The delayed list is not empty, get the value of the
  51899. item at the head of the delayed list. This is the time
  51900. at which the task at the head of the delayed list must
  51901. be removed from the Blocked state. */
  51902. pxTCB = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  51903. 80159ee: 4b31 ldr r3, [pc, #196] @ (8015ab4 <xTaskIncrementTick+0x150>)
  51904. 80159f0: 681b ldr r3, [r3, #0]
  51905. 80159f2: 68db ldr r3, [r3, #12]
  51906. 80159f4: 68db ldr r3, [r3, #12]
  51907. 80159f6: 60bb str r3, [r7, #8]
  51908. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  51909. 80159f8: 68bb ldr r3, [r7, #8]
  51910. 80159fa: 685b ldr r3, [r3, #4]
  51911. 80159fc: 607b str r3, [r7, #4]
  51912. if( xConstTickCount < xItemValue )
  51913. 80159fe: 693a ldr r2, [r7, #16]
  51914. 8015a00: 687b ldr r3, [r7, #4]
  51915. 8015a02: 429a cmp r2, r3
  51916. 8015a04: d203 bcs.n 8015a0e <xTaskIncrementTick+0xaa>
  51917. /* It is not time to unblock this item yet, but the
  51918. item value is the time at which the task at the head
  51919. of the blocked list must be removed from the Blocked
  51920. state - so record the item value in
  51921. xNextTaskUnblockTime. */
  51922. xNextTaskUnblockTime = xItemValue;
  51923. 8015a06: 4a2e ldr r2, [pc, #184] @ (8015ac0 <xTaskIncrementTick+0x15c>)
  51924. 8015a08: 687b ldr r3, [r7, #4]
  51925. 8015a0a: 6013 str r3, [r2, #0]
  51926. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  51927. 8015a0c: e02f b.n 8015a6e <xTaskIncrementTick+0x10a>
  51928. {
  51929. mtCOVERAGE_TEST_MARKER();
  51930. }
  51931. /* It is time to remove the item from the Blocked state. */
  51932. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  51933. 8015a0e: 68bb ldr r3, [r7, #8]
  51934. 8015a10: 3304 adds r3, #4
  51935. 8015a12: 4618 mov r0, r3
  51936. 8015a14: f7fe fb06 bl 8014024 <uxListRemove>
  51937. /* Is the task waiting on an event also? If so remove
  51938. it from the event list. */
  51939. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  51940. 8015a18: 68bb ldr r3, [r7, #8]
  51941. 8015a1a: 6a9b ldr r3, [r3, #40] @ 0x28
  51942. 8015a1c: 2b00 cmp r3, #0
  51943. 8015a1e: d004 beq.n 8015a2a <xTaskIncrementTick+0xc6>
  51944. {
  51945. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  51946. 8015a20: 68bb ldr r3, [r7, #8]
  51947. 8015a22: 3318 adds r3, #24
  51948. 8015a24: 4618 mov r0, r3
  51949. 8015a26: f7fe fafd bl 8014024 <uxListRemove>
  51950. mtCOVERAGE_TEST_MARKER();
  51951. }
  51952. /* Place the unblocked task into the appropriate ready
  51953. list. */
  51954. prvAddTaskToReadyList( pxTCB );
  51955. 8015a2a: 68bb ldr r3, [r7, #8]
  51956. 8015a2c: 6ada ldr r2, [r3, #44] @ 0x2c
  51957. 8015a2e: 4b25 ldr r3, [pc, #148] @ (8015ac4 <xTaskIncrementTick+0x160>)
  51958. 8015a30: 681b ldr r3, [r3, #0]
  51959. 8015a32: 429a cmp r2, r3
  51960. 8015a34: d903 bls.n 8015a3e <xTaskIncrementTick+0xda>
  51961. 8015a36: 68bb ldr r3, [r7, #8]
  51962. 8015a38: 6adb ldr r3, [r3, #44] @ 0x2c
  51963. 8015a3a: 4a22 ldr r2, [pc, #136] @ (8015ac4 <xTaskIncrementTick+0x160>)
  51964. 8015a3c: 6013 str r3, [r2, #0]
  51965. 8015a3e: 68bb ldr r3, [r7, #8]
  51966. 8015a40: 6ada ldr r2, [r3, #44] @ 0x2c
  51967. 8015a42: 4613 mov r3, r2
  51968. 8015a44: 009b lsls r3, r3, #2
  51969. 8015a46: 4413 add r3, r2
  51970. 8015a48: 009b lsls r3, r3, #2
  51971. 8015a4a: 4a1f ldr r2, [pc, #124] @ (8015ac8 <xTaskIncrementTick+0x164>)
  51972. 8015a4c: 441a add r2, r3
  51973. 8015a4e: 68bb ldr r3, [r7, #8]
  51974. 8015a50: 3304 adds r3, #4
  51975. 8015a52: 4619 mov r1, r3
  51976. 8015a54: 4610 mov r0, r2
  51977. 8015a56: f7fe fa88 bl 8013f6a <vListInsertEnd>
  51978. {
  51979. /* Preemption is on, but a context switch should
  51980. only be performed if the unblocked task has a
  51981. priority that is equal to or higher than the
  51982. currently executing task. */
  51983. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  51984. 8015a5a: 68bb ldr r3, [r7, #8]
  51985. 8015a5c: 6ada ldr r2, [r3, #44] @ 0x2c
  51986. 8015a5e: 4b1b ldr r3, [pc, #108] @ (8015acc <xTaskIncrementTick+0x168>)
  51987. 8015a60: 681b ldr r3, [r3, #0]
  51988. 8015a62: 6adb ldr r3, [r3, #44] @ 0x2c
  51989. 8015a64: 429a cmp r2, r3
  51990. 8015a66: d3b8 bcc.n 80159da <xTaskIncrementTick+0x76>
  51991. {
  51992. xSwitchRequired = pdTRUE;
  51993. 8015a68: 2301 movs r3, #1
  51994. 8015a6a: 617b str r3, [r7, #20]
  51995. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  51996. 8015a6c: e7b5 b.n 80159da <xTaskIncrementTick+0x76>
  51997. /* Tasks of equal priority to the currently running task will share
  51998. processing time (time slice) if preemption is on, and the application
  51999. writer has not explicitly turned time slicing off. */
  52000. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  52001. {
  52002. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  52003. 8015a6e: 4b17 ldr r3, [pc, #92] @ (8015acc <xTaskIncrementTick+0x168>)
  52004. 8015a70: 681b ldr r3, [r3, #0]
  52005. 8015a72: 6ada ldr r2, [r3, #44] @ 0x2c
  52006. 8015a74: 4914 ldr r1, [pc, #80] @ (8015ac8 <xTaskIncrementTick+0x164>)
  52007. 8015a76: 4613 mov r3, r2
  52008. 8015a78: 009b lsls r3, r3, #2
  52009. 8015a7a: 4413 add r3, r2
  52010. 8015a7c: 009b lsls r3, r3, #2
  52011. 8015a7e: 440b add r3, r1
  52012. 8015a80: 681b ldr r3, [r3, #0]
  52013. 8015a82: 2b01 cmp r3, #1
  52014. 8015a84: d901 bls.n 8015a8a <xTaskIncrementTick+0x126>
  52015. {
  52016. xSwitchRequired = pdTRUE;
  52017. 8015a86: 2301 movs r3, #1
  52018. 8015a88: 617b str r3, [r7, #20]
  52019. }
  52020. #endif /* configUSE_TICK_HOOK */
  52021. #if ( configUSE_PREEMPTION == 1 )
  52022. {
  52023. if( xYieldPending != pdFALSE )
  52024. 8015a8a: 4b11 ldr r3, [pc, #68] @ (8015ad0 <xTaskIncrementTick+0x16c>)
  52025. 8015a8c: 681b ldr r3, [r3, #0]
  52026. 8015a8e: 2b00 cmp r3, #0
  52027. 8015a90: d007 beq.n 8015aa2 <xTaskIncrementTick+0x13e>
  52028. {
  52029. xSwitchRequired = pdTRUE;
  52030. 8015a92: 2301 movs r3, #1
  52031. 8015a94: 617b str r3, [r7, #20]
  52032. 8015a96: e004 b.n 8015aa2 <xTaskIncrementTick+0x13e>
  52033. }
  52034. #endif /* configUSE_PREEMPTION */
  52035. }
  52036. else
  52037. {
  52038. ++xPendedTicks;
  52039. 8015a98: 4b0e ldr r3, [pc, #56] @ (8015ad4 <xTaskIncrementTick+0x170>)
  52040. 8015a9a: 681b ldr r3, [r3, #0]
  52041. 8015a9c: 3301 adds r3, #1
  52042. 8015a9e: 4a0d ldr r2, [pc, #52] @ (8015ad4 <xTaskIncrementTick+0x170>)
  52043. 8015aa0: 6013 str r3, [r2, #0]
  52044. vApplicationTickHook();
  52045. }
  52046. #endif
  52047. }
  52048. return xSwitchRequired;
  52049. 8015aa2: 697b ldr r3, [r7, #20]
  52050. }
  52051. 8015aa4: 4618 mov r0, r3
  52052. 8015aa6: 3718 adds r7, #24
  52053. 8015aa8: 46bd mov sp, r7
  52054. 8015aaa: bd80 pop {r7, pc}
  52055. 8015aac: 24002b3c .word 0x24002b3c
  52056. 8015ab0: 24002b18 .word 0x24002b18
  52057. 8015ab4: 24002acc .word 0x24002acc
  52058. 8015ab8: 24002ad0 .word 0x24002ad0
  52059. 8015abc: 24002b2c .word 0x24002b2c
  52060. 8015ac0: 24002b34 .word 0x24002b34
  52061. 8015ac4: 24002b1c .word 0x24002b1c
  52062. 8015ac8: 24002644 .word 0x24002644
  52063. 8015acc: 24002640 .word 0x24002640
  52064. 8015ad0: 24002b28 .word 0x24002b28
  52065. 8015ad4: 24002b24 .word 0x24002b24
  52066. 08015ad8 <vTaskSwitchContext>:
  52067. #endif /* configUSE_APPLICATION_TASK_TAG */
  52068. /*-----------------------------------------------------------*/
  52069. void vTaskSwitchContext( void )
  52070. {
  52071. 8015ad8: b580 push {r7, lr}
  52072. 8015ada: b084 sub sp, #16
  52073. 8015adc: af00 add r7, sp, #0
  52074. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  52075. 8015ade: 4b32 ldr r3, [pc, #200] @ (8015ba8 <vTaskSwitchContext+0xd0>)
  52076. 8015ae0: 681b ldr r3, [r3, #0]
  52077. 8015ae2: 2b00 cmp r3, #0
  52078. 8015ae4: d003 beq.n 8015aee <vTaskSwitchContext+0x16>
  52079. {
  52080. /* The scheduler is currently suspended - do not allow a context
  52081. switch. */
  52082. xYieldPending = pdTRUE;
  52083. 8015ae6: 4b31 ldr r3, [pc, #196] @ (8015bac <vTaskSwitchContext+0xd4>)
  52084. 8015ae8: 2201 movs r2, #1
  52085. 8015aea: 601a str r2, [r3, #0]
  52086. for additional information. */
  52087. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52088. }
  52089. #endif /* configUSE_NEWLIB_REENTRANT */
  52090. }
  52091. }
  52092. 8015aec: e058 b.n 8015ba0 <vTaskSwitchContext+0xc8>
  52093. xYieldPending = pdFALSE;
  52094. 8015aee: 4b2f ldr r3, [pc, #188] @ (8015bac <vTaskSwitchContext+0xd4>)
  52095. 8015af0: 2200 movs r2, #0
  52096. 8015af2: 601a str r2, [r3, #0]
  52097. taskCHECK_FOR_STACK_OVERFLOW();
  52098. 8015af4: 4b2e ldr r3, [pc, #184] @ (8015bb0 <vTaskSwitchContext+0xd8>)
  52099. 8015af6: 681b ldr r3, [r3, #0]
  52100. 8015af8: 681a ldr r2, [r3, #0]
  52101. 8015afa: 4b2d ldr r3, [pc, #180] @ (8015bb0 <vTaskSwitchContext+0xd8>)
  52102. 8015afc: 681b ldr r3, [r3, #0]
  52103. 8015afe: 6b1b ldr r3, [r3, #48] @ 0x30
  52104. 8015b00: 429a cmp r2, r3
  52105. 8015b02: d808 bhi.n 8015b16 <vTaskSwitchContext+0x3e>
  52106. 8015b04: 4b2a ldr r3, [pc, #168] @ (8015bb0 <vTaskSwitchContext+0xd8>)
  52107. 8015b06: 681a ldr r2, [r3, #0]
  52108. 8015b08: 4b29 ldr r3, [pc, #164] @ (8015bb0 <vTaskSwitchContext+0xd8>)
  52109. 8015b0a: 681b ldr r3, [r3, #0]
  52110. 8015b0c: 3334 adds r3, #52 @ 0x34
  52111. 8015b0e: 4619 mov r1, r3
  52112. 8015b10: 4610 mov r0, r2
  52113. 8015b12: f7ea fdad bl 8000670 <vApplicationStackOverflowHook>
  52114. taskSELECT_HIGHEST_PRIORITY_TASK(); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  52115. 8015b16: 4b27 ldr r3, [pc, #156] @ (8015bb4 <vTaskSwitchContext+0xdc>)
  52116. 8015b18: 681b ldr r3, [r3, #0]
  52117. 8015b1a: 60fb str r3, [r7, #12]
  52118. 8015b1c: e011 b.n 8015b42 <vTaskSwitchContext+0x6a>
  52119. 8015b1e: 68fb ldr r3, [r7, #12]
  52120. 8015b20: 2b00 cmp r3, #0
  52121. 8015b22: d10b bne.n 8015b3c <vTaskSwitchContext+0x64>
  52122. __asm volatile
  52123. 8015b24: f04f 0350 mov.w r3, #80 @ 0x50
  52124. 8015b28: f383 8811 msr BASEPRI, r3
  52125. 8015b2c: f3bf 8f6f isb sy
  52126. 8015b30: f3bf 8f4f dsb sy
  52127. 8015b34: 607b str r3, [r7, #4]
  52128. }
  52129. 8015b36: bf00 nop
  52130. 8015b38: bf00 nop
  52131. 8015b3a: e7fd b.n 8015b38 <vTaskSwitchContext+0x60>
  52132. 8015b3c: 68fb ldr r3, [r7, #12]
  52133. 8015b3e: 3b01 subs r3, #1
  52134. 8015b40: 60fb str r3, [r7, #12]
  52135. 8015b42: 491d ldr r1, [pc, #116] @ (8015bb8 <vTaskSwitchContext+0xe0>)
  52136. 8015b44: 68fa ldr r2, [r7, #12]
  52137. 8015b46: 4613 mov r3, r2
  52138. 8015b48: 009b lsls r3, r3, #2
  52139. 8015b4a: 4413 add r3, r2
  52140. 8015b4c: 009b lsls r3, r3, #2
  52141. 8015b4e: 440b add r3, r1
  52142. 8015b50: 681b ldr r3, [r3, #0]
  52143. 8015b52: 2b00 cmp r3, #0
  52144. 8015b54: d0e3 beq.n 8015b1e <vTaskSwitchContext+0x46>
  52145. 8015b56: 68fa ldr r2, [r7, #12]
  52146. 8015b58: 4613 mov r3, r2
  52147. 8015b5a: 009b lsls r3, r3, #2
  52148. 8015b5c: 4413 add r3, r2
  52149. 8015b5e: 009b lsls r3, r3, #2
  52150. 8015b60: 4a15 ldr r2, [pc, #84] @ (8015bb8 <vTaskSwitchContext+0xe0>)
  52151. 8015b62: 4413 add r3, r2
  52152. 8015b64: 60bb str r3, [r7, #8]
  52153. 8015b66: 68bb ldr r3, [r7, #8]
  52154. 8015b68: 685b ldr r3, [r3, #4]
  52155. 8015b6a: 685a ldr r2, [r3, #4]
  52156. 8015b6c: 68bb ldr r3, [r7, #8]
  52157. 8015b6e: 605a str r2, [r3, #4]
  52158. 8015b70: 68bb ldr r3, [r7, #8]
  52159. 8015b72: 685a ldr r2, [r3, #4]
  52160. 8015b74: 68bb ldr r3, [r7, #8]
  52161. 8015b76: 3308 adds r3, #8
  52162. 8015b78: 429a cmp r2, r3
  52163. 8015b7a: d104 bne.n 8015b86 <vTaskSwitchContext+0xae>
  52164. 8015b7c: 68bb ldr r3, [r7, #8]
  52165. 8015b7e: 685b ldr r3, [r3, #4]
  52166. 8015b80: 685a ldr r2, [r3, #4]
  52167. 8015b82: 68bb ldr r3, [r7, #8]
  52168. 8015b84: 605a str r2, [r3, #4]
  52169. 8015b86: 68bb ldr r3, [r7, #8]
  52170. 8015b88: 685b ldr r3, [r3, #4]
  52171. 8015b8a: 68db ldr r3, [r3, #12]
  52172. 8015b8c: 4a08 ldr r2, [pc, #32] @ (8015bb0 <vTaskSwitchContext+0xd8>)
  52173. 8015b8e: 6013 str r3, [r2, #0]
  52174. 8015b90: 4a08 ldr r2, [pc, #32] @ (8015bb4 <vTaskSwitchContext+0xdc>)
  52175. 8015b92: 68fb ldr r3, [r7, #12]
  52176. 8015b94: 6013 str r3, [r2, #0]
  52177. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52178. 8015b96: 4b06 ldr r3, [pc, #24] @ (8015bb0 <vTaskSwitchContext+0xd8>)
  52179. 8015b98: 681b ldr r3, [r3, #0]
  52180. 8015b9a: 3354 adds r3, #84 @ 0x54
  52181. 8015b9c: 4a07 ldr r2, [pc, #28] @ (8015bbc <vTaskSwitchContext+0xe4>)
  52182. 8015b9e: 6013 str r3, [r2, #0]
  52183. }
  52184. 8015ba0: bf00 nop
  52185. 8015ba2: 3710 adds r7, #16
  52186. 8015ba4: 46bd mov sp, r7
  52187. 8015ba6: bd80 pop {r7, pc}
  52188. 8015ba8: 24002b3c .word 0x24002b3c
  52189. 8015bac: 24002b28 .word 0x24002b28
  52190. 8015bb0: 24002640 .word 0x24002640
  52191. 8015bb4: 24002b1c .word 0x24002b1c
  52192. 8015bb8: 24002644 .word 0x24002644
  52193. 8015bbc: 24000054 .word 0x24000054
  52194. 08015bc0 <vTaskPlaceOnEventList>:
  52195. /*-----------------------------------------------------------*/
  52196. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  52197. {
  52198. 8015bc0: b580 push {r7, lr}
  52199. 8015bc2: b084 sub sp, #16
  52200. 8015bc4: af00 add r7, sp, #0
  52201. 8015bc6: 6078 str r0, [r7, #4]
  52202. 8015bc8: 6039 str r1, [r7, #0]
  52203. configASSERT( pxEventList );
  52204. 8015bca: 687b ldr r3, [r7, #4]
  52205. 8015bcc: 2b00 cmp r3, #0
  52206. 8015bce: d10b bne.n 8015be8 <vTaskPlaceOnEventList+0x28>
  52207. __asm volatile
  52208. 8015bd0: f04f 0350 mov.w r3, #80 @ 0x50
  52209. 8015bd4: f383 8811 msr BASEPRI, r3
  52210. 8015bd8: f3bf 8f6f isb sy
  52211. 8015bdc: f3bf 8f4f dsb sy
  52212. 8015be0: 60fb str r3, [r7, #12]
  52213. }
  52214. 8015be2: bf00 nop
  52215. 8015be4: bf00 nop
  52216. 8015be6: e7fd b.n 8015be4 <vTaskPlaceOnEventList+0x24>
  52217. /* Place the event list item of the TCB in the appropriate event list.
  52218. This is placed in the list in priority order so the highest priority task
  52219. is the first to be woken by the event. The queue that contains the event
  52220. list is locked, preventing simultaneous access from interrupts. */
  52221. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  52222. 8015be8: 4b07 ldr r3, [pc, #28] @ (8015c08 <vTaskPlaceOnEventList+0x48>)
  52223. 8015bea: 681b ldr r3, [r3, #0]
  52224. 8015bec: 3318 adds r3, #24
  52225. 8015bee: 4619 mov r1, r3
  52226. 8015bf0: 6878 ldr r0, [r7, #4]
  52227. 8015bf2: f7fe f9de bl 8013fb2 <vListInsert>
  52228. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  52229. 8015bf6: 2101 movs r1, #1
  52230. 8015bf8: 6838 ldr r0, [r7, #0]
  52231. 8015bfa: f000 fded bl 80167d8 <prvAddCurrentTaskToDelayedList>
  52232. }
  52233. 8015bfe: bf00 nop
  52234. 8015c00: 3710 adds r7, #16
  52235. 8015c02: 46bd mov sp, r7
  52236. 8015c04: bd80 pop {r7, pc}
  52237. 8015c06: bf00 nop
  52238. 8015c08: 24002640 .word 0x24002640
  52239. 08015c0c <vTaskPlaceOnEventListRestricted>:
  52240. /*-----------------------------------------------------------*/
  52241. #if( configUSE_TIMERS == 1 )
  52242. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  52243. {
  52244. 8015c0c: b580 push {r7, lr}
  52245. 8015c0e: b086 sub sp, #24
  52246. 8015c10: af00 add r7, sp, #0
  52247. 8015c12: 60f8 str r0, [r7, #12]
  52248. 8015c14: 60b9 str r1, [r7, #8]
  52249. 8015c16: 607a str r2, [r7, #4]
  52250. configASSERT( pxEventList );
  52251. 8015c18: 68fb ldr r3, [r7, #12]
  52252. 8015c1a: 2b00 cmp r3, #0
  52253. 8015c1c: d10b bne.n 8015c36 <vTaskPlaceOnEventListRestricted+0x2a>
  52254. __asm volatile
  52255. 8015c1e: f04f 0350 mov.w r3, #80 @ 0x50
  52256. 8015c22: f383 8811 msr BASEPRI, r3
  52257. 8015c26: f3bf 8f6f isb sy
  52258. 8015c2a: f3bf 8f4f dsb sy
  52259. 8015c2e: 617b str r3, [r7, #20]
  52260. }
  52261. 8015c30: bf00 nop
  52262. 8015c32: bf00 nop
  52263. 8015c34: e7fd b.n 8015c32 <vTaskPlaceOnEventListRestricted+0x26>
  52264. /* Place the event list item of the TCB in the appropriate event list.
  52265. In this case it is assume that this is the only task that is going to
  52266. be waiting on this event list, so the faster vListInsertEnd() function
  52267. can be used in place of vListInsert. */
  52268. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  52269. 8015c36: 4b0a ldr r3, [pc, #40] @ (8015c60 <vTaskPlaceOnEventListRestricted+0x54>)
  52270. 8015c38: 681b ldr r3, [r3, #0]
  52271. 8015c3a: 3318 adds r3, #24
  52272. 8015c3c: 4619 mov r1, r3
  52273. 8015c3e: 68f8 ldr r0, [r7, #12]
  52274. 8015c40: f7fe f993 bl 8013f6a <vListInsertEnd>
  52275. /* If the task should block indefinitely then set the block time to a
  52276. value that will be recognised as an indefinite delay inside the
  52277. prvAddCurrentTaskToDelayedList() function. */
  52278. if( xWaitIndefinitely != pdFALSE )
  52279. 8015c44: 687b ldr r3, [r7, #4]
  52280. 8015c46: 2b00 cmp r3, #0
  52281. 8015c48: d002 beq.n 8015c50 <vTaskPlaceOnEventListRestricted+0x44>
  52282. {
  52283. xTicksToWait = portMAX_DELAY;
  52284. 8015c4a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  52285. 8015c4e: 60bb str r3, [r7, #8]
  52286. }
  52287. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  52288. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  52289. 8015c50: 6879 ldr r1, [r7, #4]
  52290. 8015c52: 68b8 ldr r0, [r7, #8]
  52291. 8015c54: f000 fdc0 bl 80167d8 <prvAddCurrentTaskToDelayedList>
  52292. }
  52293. 8015c58: bf00 nop
  52294. 8015c5a: 3718 adds r7, #24
  52295. 8015c5c: 46bd mov sp, r7
  52296. 8015c5e: bd80 pop {r7, pc}
  52297. 8015c60: 24002640 .word 0x24002640
  52298. 08015c64 <xTaskRemoveFromEventList>:
  52299. #endif /* configUSE_TIMERS */
  52300. /*-----------------------------------------------------------*/
  52301. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  52302. {
  52303. 8015c64: b580 push {r7, lr}
  52304. 8015c66: b086 sub sp, #24
  52305. 8015c68: af00 add r7, sp, #0
  52306. 8015c6a: 6078 str r0, [r7, #4]
  52307. get called - the lock count on the queue will get modified instead. This
  52308. means exclusive access to the event list is guaranteed here.
  52309. This function assumes that a check has already been made to ensure that
  52310. pxEventList is not empty. */
  52311. pxUnblockedTCB = listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  52312. 8015c6c: 687b ldr r3, [r7, #4]
  52313. 8015c6e: 68db ldr r3, [r3, #12]
  52314. 8015c70: 68db ldr r3, [r3, #12]
  52315. 8015c72: 613b str r3, [r7, #16]
  52316. configASSERT( pxUnblockedTCB );
  52317. 8015c74: 693b ldr r3, [r7, #16]
  52318. 8015c76: 2b00 cmp r3, #0
  52319. 8015c78: d10b bne.n 8015c92 <xTaskRemoveFromEventList+0x2e>
  52320. __asm volatile
  52321. 8015c7a: f04f 0350 mov.w r3, #80 @ 0x50
  52322. 8015c7e: f383 8811 msr BASEPRI, r3
  52323. 8015c82: f3bf 8f6f isb sy
  52324. 8015c86: f3bf 8f4f dsb sy
  52325. 8015c8a: 60fb str r3, [r7, #12]
  52326. }
  52327. 8015c8c: bf00 nop
  52328. 8015c8e: bf00 nop
  52329. 8015c90: e7fd b.n 8015c8e <xTaskRemoveFromEventList+0x2a>
  52330. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  52331. 8015c92: 693b ldr r3, [r7, #16]
  52332. 8015c94: 3318 adds r3, #24
  52333. 8015c96: 4618 mov r0, r3
  52334. 8015c98: f7fe f9c4 bl 8014024 <uxListRemove>
  52335. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52336. 8015c9c: 4b1d ldr r3, [pc, #116] @ (8015d14 <xTaskRemoveFromEventList+0xb0>)
  52337. 8015c9e: 681b ldr r3, [r3, #0]
  52338. 8015ca0: 2b00 cmp r3, #0
  52339. 8015ca2: d11d bne.n 8015ce0 <xTaskRemoveFromEventList+0x7c>
  52340. {
  52341. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  52342. 8015ca4: 693b ldr r3, [r7, #16]
  52343. 8015ca6: 3304 adds r3, #4
  52344. 8015ca8: 4618 mov r0, r3
  52345. 8015caa: f7fe f9bb bl 8014024 <uxListRemove>
  52346. prvAddTaskToReadyList( pxUnblockedTCB );
  52347. 8015cae: 693b ldr r3, [r7, #16]
  52348. 8015cb0: 6ada ldr r2, [r3, #44] @ 0x2c
  52349. 8015cb2: 4b19 ldr r3, [pc, #100] @ (8015d18 <xTaskRemoveFromEventList+0xb4>)
  52350. 8015cb4: 681b ldr r3, [r3, #0]
  52351. 8015cb6: 429a cmp r2, r3
  52352. 8015cb8: d903 bls.n 8015cc2 <xTaskRemoveFromEventList+0x5e>
  52353. 8015cba: 693b ldr r3, [r7, #16]
  52354. 8015cbc: 6adb ldr r3, [r3, #44] @ 0x2c
  52355. 8015cbe: 4a16 ldr r2, [pc, #88] @ (8015d18 <xTaskRemoveFromEventList+0xb4>)
  52356. 8015cc0: 6013 str r3, [r2, #0]
  52357. 8015cc2: 693b ldr r3, [r7, #16]
  52358. 8015cc4: 6ada ldr r2, [r3, #44] @ 0x2c
  52359. 8015cc6: 4613 mov r3, r2
  52360. 8015cc8: 009b lsls r3, r3, #2
  52361. 8015cca: 4413 add r3, r2
  52362. 8015ccc: 009b lsls r3, r3, #2
  52363. 8015cce: 4a13 ldr r2, [pc, #76] @ (8015d1c <xTaskRemoveFromEventList+0xb8>)
  52364. 8015cd0: 441a add r2, r3
  52365. 8015cd2: 693b ldr r3, [r7, #16]
  52366. 8015cd4: 3304 adds r3, #4
  52367. 8015cd6: 4619 mov r1, r3
  52368. 8015cd8: 4610 mov r0, r2
  52369. 8015cda: f7fe f946 bl 8013f6a <vListInsertEnd>
  52370. 8015cde: e005 b.n 8015cec <xTaskRemoveFromEventList+0x88>
  52371. }
  52372. else
  52373. {
  52374. /* The delayed and ready lists cannot be accessed, so hold this task
  52375. pending until the scheduler is resumed. */
  52376. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  52377. 8015ce0: 693b ldr r3, [r7, #16]
  52378. 8015ce2: 3318 adds r3, #24
  52379. 8015ce4: 4619 mov r1, r3
  52380. 8015ce6: 480e ldr r0, [pc, #56] @ (8015d20 <xTaskRemoveFromEventList+0xbc>)
  52381. 8015ce8: f7fe f93f bl 8013f6a <vListInsertEnd>
  52382. }
  52383. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  52384. 8015cec: 693b ldr r3, [r7, #16]
  52385. 8015cee: 6ada ldr r2, [r3, #44] @ 0x2c
  52386. 8015cf0: 4b0c ldr r3, [pc, #48] @ (8015d24 <xTaskRemoveFromEventList+0xc0>)
  52387. 8015cf2: 681b ldr r3, [r3, #0]
  52388. 8015cf4: 6adb ldr r3, [r3, #44] @ 0x2c
  52389. 8015cf6: 429a cmp r2, r3
  52390. 8015cf8: d905 bls.n 8015d06 <xTaskRemoveFromEventList+0xa2>
  52391. {
  52392. /* Return true if the task removed from the event list has a higher
  52393. priority than the calling task. This allows the calling task to know if
  52394. it should force a context switch now. */
  52395. xReturn = pdTRUE;
  52396. 8015cfa: 2301 movs r3, #1
  52397. 8015cfc: 617b str r3, [r7, #20]
  52398. /* Mark that a yield is pending in case the user is not using the
  52399. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  52400. xYieldPending = pdTRUE;
  52401. 8015cfe: 4b0a ldr r3, [pc, #40] @ (8015d28 <xTaskRemoveFromEventList+0xc4>)
  52402. 8015d00: 2201 movs r2, #1
  52403. 8015d02: 601a str r2, [r3, #0]
  52404. 8015d04: e001 b.n 8015d0a <xTaskRemoveFromEventList+0xa6>
  52405. }
  52406. else
  52407. {
  52408. xReturn = pdFALSE;
  52409. 8015d06: 2300 movs r3, #0
  52410. 8015d08: 617b str r3, [r7, #20]
  52411. }
  52412. return xReturn;
  52413. 8015d0a: 697b ldr r3, [r7, #20]
  52414. }
  52415. 8015d0c: 4618 mov r0, r3
  52416. 8015d0e: 3718 adds r7, #24
  52417. 8015d10: 46bd mov sp, r7
  52418. 8015d12: bd80 pop {r7, pc}
  52419. 8015d14: 24002b3c .word 0x24002b3c
  52420. 8015d18: 24002b1c .word 0x24002b1c
  52421. 8015d1c: 24002644 .word 0x24002644
  52422. 8015d20: 24002ad4 .word 0x24002ad4
  52423. 8015d24: 24002640 .word 0x24002640
  52424. 8015d28: 24002b28 .word 0x24002b28
  52425. 08015d2c <vTaskSetTimeOutState>:
  52426. }
  52427. }
  52428. /*-----------------------------------------------------------*/
  52429. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  52430. {
  52431. 8015d2c: b580 push {r7, lr}
  52432. 8015d2e: b084 sub sp, #16
  52433. 8015d30: af00 add r7, sp, #0
  52434. 8015d32: 6078 str r0, [r7, #4]
  52435. configASSERT( pxTimeOut );
  52436. 8015d34: 687b ldr r3, [r7, #4]
  52437. 8015d36: 2b00 cmp r3, #0
  52438. 8015d38: d10b bne.n 8015d52 <vTaskSetTimeOutState+0x26>
  52439. __asm volatile
  52440. 8015d3a: f04f 0350 mov.w r3, #80 @ 0x50
  52441. 8015d3e: f383 8811 msr BASEPRI, r3
  52442. 8015d42: f3bf 8f6f isb sy
  52443. 8015d46: f3bf 8f4f dsb sy
  52444. 8015d4a: 60fb str r3, [r7, #12]
  52445. }
  52446. 8015d4c: bf00 nop
  52447. 8015d4e: bf00 nop
  52448. 8015d50: e7fd b.n 8015d4e <vTaskSetTimeOutState+0x22>
  52449. taskENTER_CRITICAL();
  52450. 8015d52: f001 fb09 bl 8017368 <vPortEnterCritical>
  52451. {
  52452. pxTimeOut->xOverflowCount = xNumOfOverflows;
  52453. 8015d56: 4b07 ldr r3, [pc, #28] @ (8015d74 <vTaskSetTimeOutState+0x48>)
  52454. 8015d58: 681a ldr r2, [r3, #0]
  52455. 8015d5a: 687b ldr r3, [r7, #4]
  52456. 8015d5c: 601a str r2, [r3, #0]
  52457. pxTimeOut->xTimeOnEntering = xTickCount;
  52458. 8015d5e: 4b06 ldr r3, [pc, #24] @ (8015d78 <vTaskSetTimeOutState+0x4c>)
  52459. 8015d60: 681a ldr r2, [r3, #0]
  52460. 8015d62: 687b ldr r3, [r7, #4]
  52461. 8015d64: 605a str r2, [r3, #4]
  52462. }
  52463. taskEXIT_CRITICAL();
  52464. 8015d66: f001 fb31 bl 80173cc <vPortExitCritical>
  52465. }
  52466. 8015d6a: bf00 nop
  52467. 8015d6c: 3710 adds r7, #16
  52468. 8015d6e: 46bd mov sp, r7
  52469. 8015d70: bd80 pop {r7, pc}
  52470. 8015d72: bf00 nop
  52471. 8015d74: 24002b2c .word 0x24002b2c
  52472. 8015d78: 24002b18 .word 0x24002b18
  52473. 08015d7c <vTaskInternalSetTimeOutState>:
  52474. /*-----------------------------------------------------------*/
  52475. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  52476. {
  52477. 8015d7c: b480 push {r7}
  52478. 8015d7e: b083 sub sp, #12
  52479. 8015d80: af00 add r7, sp, #0
  52480. 8015d82: 6078 str r0, [r7, #4]
  52481. /* For internal use only as it does not use a critical section. */
  52482. pxTimeOut->xOverflowCount = xNumOfOverflows;
  52483. 8015d84: 4b06 ldr r3, [pc, #24] @ (8015da0 <vTaskInternalSetTimeOutState+0x24>)
  52484. 8015d86: 681a ldr r2, [r3, #0]
  52485. 8015d88: 687b ldr r3, [r7, #4]
  52486. 8015d8a: 601a str r2, [r3, #0]
  52487. pxTimeOut->xTimeOnEntering = xTickCount;
  52488. 8015d8c: 4b05 ldr r3, [pc, #20] @ (8015da4 <vTaskInternalSetTimeOutState+0x28>)
  52489. 8015d8e: 681a ldr r2, [r3, #0]
  52490. 8015d90: 687b ldr r3, [r7, #4]
  52491. 8015d92: 605a str r2, [r3, #4]
  52492. }
  52493. 8015d94: bf00 nop
  52494. 8015d96: 370c adds r7, #12
  52495. 8015d98: 46bd mov sp, r7
  52496. 8015d9a: f85d 7b04 ldr.w r7, [sp], #4
  52497. 8015d9e: 4770 bx lr
  52498. 8015da0: 24002b2c .word 0x24002b2c
  52499. 8015da4: 24002b18 .word 0x24002b18
  52500. 08015da8 <xTaskCheckForTimeOut>:
  52501. /*-----------------------------------------------------------*/
  52502. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  52503. {
  52504. 8015da8: b580 push {r7, lr}
  52505. 8015daa: b088 sub sp, #32
  52506. 8015dac: af00 add r7, sp, #0
  52507. 8015dae: 6078 str r0, [r7, #4]
  52508. 8015db0: 6039 str r1, [r7, #0]
  52509. BaseType_t xReturn;
  52510. configASSERT( pxTimeOut );
  52511. 8015db2: 687b ldr r3, [r7, #4]
  52512. 8015db4: 2b00 cmp r3, #0
  52513. 8015db6: d10b bne.n 8015dd0 <xTaskCheckForTimeOut+0x28>
  52514. __asm volatile
  52515. 8015db8: f04f 0350 mov.w r3, #80 @ 0x50
  52516. 8015dbc: f383 8811 msr BASEPRI, r3
  52517. 8015dc0: f3bf 8f6f isb sy
  52518. 8015dc4: f3bf 8f4f dsb sy
  52519. 8015dc8: 613b str r3, [r7, #16]
  52520. }
  52521. 8015dca: bf00 nop
  52522. 8015dcc: bf00 nop
  52523. 8015dce: e7fd b.n 8015dcc <xTaskCheckForTimeOut+0x24>
  52524. configASSERT( pxTicksToWait );
  52525. 8015dd0: 683b ldr r3, [r7, #0]
  52526. 8015dd2: 2b00 cmp r3, #0
  52527. 8015dd4: d10b bne.n 8015dee <xTaskCheckForTimeOut+0x46>
  52528. __asm volatile
  52529. 8015dd6: f04f 0350 mov.w r3, #80 @ 0x50
  52530. 8015dda: f383 8811 msr BASEPRI, r3
  52531. 8015dde: f3bf 8f6f isb sy
  52532. 8015de2: f3bf 8f4f dsb sy
  52533. 8015de6: 60fb str r3, [r7, #12]
  52534. }
  52535. 8015de8: bf00 nop
  52536. 8015dea: bf00 nop
  52537. 8015dec: e7fd b.n 8015dea <xTaskCheckForTimeOut+0x42>
  52538. taskENTER_CRITICAL();
  52539. 8015dee: f001 fabb bl 8017368 <vPortEnterCritical>
  52540. {
  52541. /* Minor optimisation. The tick count cannot change in this block. */
  52542. const TickType_t xConstTickCount = xTickCount;
  52543. 8015df2: 4b1d ldr r3, [pc, #116] @ (8015e68 <xTaskCheckForTimeOut+0xc0>)
  52544. 8015df4: 681b ldr r3, [r3, #0]
  52545. 8015df6: 61bb str r3, [r7, #24]
  52546. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  52547. 8015df8: 687b ldr r3, [r7, #4]
  52548. 8015dfa: 685b ldr r3, [r3, #4]
  52549. 8015dfc: 69ba ldr r2, [r7, #24]
  52550. 8015dfe: 1ad3 subs r3, r2, r3
  52551. 8015e00: 617b str r3, [r7, #20]
  52552. }
  52553. else
  52554. #endif
  52555. #if ( INCLUDE_vTaskSuspend == 1 )
  52556. if( *pxTicksToWait == portMAX_DELAY )
  52557. 8015e02: 683b ldr r3, [r7, #0]
  52558. 8015e04: 681b ldr r3, [r3, #0]
  52559. 8015e06: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  52560. 8015e0a: d102 bne.n 8015e12 <xTaskCheckForTimeOut+0x6a>
  52561. {
  52562. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  52563. specified is the maximum block time then the task should block
  52564. indefinitely, and therefore never time out. */
  52565. xReturn = pdFALSE;
  52566. 8015e0c: 2300 movs r3, #0
  52567. 8015e0e: 61fb str r3, [r7, #28]
  52568. 8015e10: e023 b.n 8015e5a <xTaskCheckForTimeOut+0xb2>
  52569. }
  52570. else
  52571. #endif
  52572. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  52573. 8015e12: 687b ldr r3, [r7, #4]
  52574. 8015e14: 681a ldr r2, [r3, #0]
  52575. 8015e16: 4b15 ldr r3, [pc, #84] @ (8015e6c <xTaskCheckForTimeOut+0xc4>)
  52576. 8015e18: 681b ldr r3, [r3, #0]
  52577. 8015e1a: 429a cmp r2, r3
  52578. 8015e1c: d007 beq.n 8015e2e <xTaskCheckForTimeOut+0x86>
  52579. 8015e1e: 687b ldr r3, [r7, #4]
  52580. 8015e20: 685b ldr r3, [r3, #4]
  52581. 8015e22: 69ba ldr r2, [r7, #24]
  52582. 8015e24: 429a cmp r2, r3
  52583. 8015e26: d302 bcc.n 8015e2e <xTaskCheckForTimeOut+0x86>
  52584. /* The tick count is greater than the time at which
  52585. vTaskSetTimeout() was called, but has also overflowed since
  52586. vTaskSetTimeOut() was called. It must have wrapped all the way
  52587. around and gone past again. This passed since vTaskSetTimeout()
  52588. was called. */
  52589. xReturn = pdTRUE;
  52590. 8015e28: 2301 movs r3, #1
  52591. 8015e2a: 61fb str r3, [r7, #28]
  52592. 8015e2c: e015 b.n 8015e5a <xTaskCheckForTimeOut+0xb2>
  52593. }
  52594. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  52595. 8015e2e: 683b ldr r3, [r7, #0]
  52596. 8015e30: 681b ldr r3, [r3, #0]
  52597. 8015e32: 697a ldr r2, [r7, #20]
  52598. 8015e34: 429a cmp r2, r3
  52599. 8015e36: d20b bcs.n 8015e50 <xTaskCheckForTimeOut+0xa8>
  52600. {
  52601. /* Not a genuine timeout. Adjust parameters for time remaining. */
  52602. *pxTicksToWait -= xElapsedTime;
  52603. 8015e38: 683b ldr r3, [r7, #0]
  52604. 8015e3a: 681a ldr r2, [r3, #0]
  52605. 8015e3c: 697b ldr r3, [r7, #20]
  52606. 8015e3e: 1ad2 subs r2, r2, r3
  52607. 8015e40: 683b ldr r3, [r7, #0]
  52608. 8015e42: 601a str r2, [r3, #0]
  52609. vTaskInternalSetTimeOutState( pxTimeOut );
  52610. 8015e44: 6878 ldr r0, [r7, #4]
  52611. 8015e46: f7ff ff99 bl 8015d7c <vTaskInternalSetTimeOutState>
  52612. xReturn = pdFALSE;
  52613. 8015e4a: 2300 movs r3, #0
  52614. 8015e4c: 61fb str r3, [r7, #28]
  52615. 8015e4e: e004 b.n 8015e5a <xTaskCheckForTimeOut+0xb2>
  52616. }
  52617. else
  52618. {
  52619. *pxTicksToWait = 0;
  52620. 8015e50: 683b ldr r3, [r7, #0]
  52621. 8015e52: 2200 movs r2, #0
  52622. 8015e54: 601a str r2, [r3, #0]
  52623. xReturn = pdTRUE;
  52624. 8015e56: 2301 movs r3, #1
  52625. 8015e58: 61fb str r3, [r7, #28]
  52626. }
  52627. }
  52628. taskEXIT_CRITICAL();
  52629. 8015e5a: f001 fab7 bl 80173cc <vPortExitCritical>
  52630. return xReturn;
  52631. 8015e5e: 69fb ldr r3, [r7, #28]
  52632. }
  52633. 8015e60: 4618 mov r0, r3
  52634. 8015e62: 3720 adds r7, #32
  52635. 8015e64: 46bd mov sp, r7
  52636. 8015e66: bd80 pop {r7, pc}
  52637. 8015e68: 24002b18 .word 0x24002b18
  52638. 8015e6c: 24002b2c .word 0x24002b2c
  52639. 08015e70 <vTaskMissedYield>:
  52640. /*-----------------------------------------------------------*/
  52641. void vTaskMissedYield( void )
  52642. {
  52643. 8015e70: b480 push {r7}
  52644. 8015e72: af00 add r7, sp, #0
  52645. xYieldPending = pdTRUE;
  52646. 8015e74: 4b03 ldr r3, [pc, #12] @ (8015e84 <vTaskMissedYield+0x14>)
  52647. 8015e76: 2201 movs r2, #1
  52648. 8015e78: 601a str r2, [r3, #0]
  52649. }
  52650. 8015e7a: bf00 nop
  52651. 8015e7c: 46bd mov sp, r7
  52652. 8015e7e: f85d 7b04 ldr.w r7, [sp], #4
  52653. 8015e82: 4770 bx lr
  52654. 8015e84: 24002b28 .word 0x24002b28
  52655. 08015e88 <prvIdleTask>:
  52656. *
  52657. * void prvIdleTask( void *pvParameters );
  52658. *
  52659. */
  52660. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  52661. {
  52662. 8015e88: b580 push {r7, lr}
  52663. 8015e8a: b082 sub sp, #8
  52664. 8015e8c: af00 add r7, sp, #0
  52665. 8015e8e: 6078 str r0, [r7, #4]
  52666. for( ;; )
  52667. {
  52668. /* See if any tasks have deleted themselves - if so then the idle task
  52669. is responsible for freeing the deleted task's TCB and stack. */
  52670. prvCheckTasksWaitingTermination();
  52671. 8015e90: f000 f852 bl 8015f38 <prvCheckTasksWaitingTermination>
  52672. A critical region is not required here as we are just reading from
  52673. the list, and an occasional incorrect value will not matter. If
  52674. the ready list at the idle priority contains more than one task
  52675. then a task other than the idle task is ready to execute. */
  52676. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  52677. 8015e94: 4b06 ldr r3, [pc, #24] @ (8015eb0 <prvIdleTask+0x28>)
  52678. 8015e96: 681b ldr r3, [r3, #0]
  52679. 8015e98: 2b01 cmp r3, #1
  52680. 8015e9a: d9f9 bls.n 8015e90 <prvIdleTask+0x8>
  52681. {
  52682. taskYIELD();
  52683. 8015e9c: 4b05 ldr r3, [pc, #20] @ (8015eb4 <prvIdleTask+0x2c>)
  52684. 8015e9e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52685. 8015ea2: 601a str r2, [r3, #0]
  52686. 8015ea4: f3bf 8f4f dsb sy
  52687. 8015ea8: f3bf 8f6f isb sy
  52688. prvCheckTasksWaitingTermination();
  52689. 8015eac: e7f0 b.n 8015e90 <prvIdleTask+0x8>
  52690. 8015eae: bf00 nop
  52691. 8015eb0: 24002644 .word 0x24002644
  52692. 8015eb4: e000ed04 .word 0xe000ed04
  52693. 08015eb8 <prvInitialiseTaskLists>:
  52694. #endif /* portUSING_MPU_WRAPPERS */
  52695. /*-----------------------------------------------------------*/
  52696. static void prvInitialiseTaskLists( void )
  52697. {
  52698. 8015eb8: b580 push {r7, lr}
  52699. 8015eba: b082 sub sp, #8
  52700. 8015ebc: af00 add r7, sp, #0
  52701. UBaseType_t uxPriority;
  52702. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  52703. 8015ebe: 2300 movs r3, #0
  52704. 8015ec0: 607b str r3, [r7, #4]
  52705. 8015ec2: e00c b.n 8015ede <prvInitialiseTaskLists+0x26>
  52706. {
  52707. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  52708. 8015ec4: 687a ldr r2, [r7, #4]
  52709. 8015ec6: 4613 mov r3, r2
  52710. 8015ec8: 009b lsls r3, r3, #2
  52711. 8015eca: 4413 add r3, r2
  52712. 8015ecc: 009b lsls r3, r3, #2
  52713. 8015ece: 4a12 ldr r2, [pc, #72] @ (8015f18 <prvInitialiseTaskLists+0x60>)
  52714. 8015ed0: 4413 add r3, r2
  52715. 8015ed2: 4618 mov r0, r3
  52716. 8015ed4: f7fe f81c bl 8013f10 <vListInitialise>
  52717. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  52718. 8015ed8: 687b ldr r3, [r7, #4]
  52719. 8015eda: 3301 adds r3, #1
  52720. 8015edc: 607b str r3, [r7, #4]
  52721. 8015ede: 687b ldr r3, [r7, #4]
  52722. 8015ee0: 2b37 cmp r3, #55 @ 0x37
  52723. 8015ee2: d9ef bls.n 8015ec4 <prvInitialiseTaskLists+0xc>
  52724. }
  52725. vListInitialise( &xDelayedTaskList1 );
  52726. 8015ee4: 480d ldr r0, [pc, #52] @ (8015f1c <prvInitialiseTaskLists+0x64>)
  52727. 8015ee6: f7fe f813 bl 8013f10 <vListInitialise>
  52728. vListInitialise( &xDelayedTaskList2 );
  52729. 8015eea: 480d ldr r0, [pc, #52] @ (8015f20 <prvInitialiseTaskLists+0x68>)
  52730. 8015eec: f7fe f810 bl 8013f10 <vListInitialise>
  52731. vListInitialise( &xPendingReadyList );
  52732. 8015ef0: 480c ldr r0, [pc, #48] @ (8015f24 <prvInitialiseTaskLists+0x6c>)
  52733. 8015ef2: f7fe f80d bl 8013f10 <vListInitialise>
  52734. #if ( INCLUDE_vTaskDelete == 1 )
  52735. {
  52736. vListInitialise( &xTasksWaitingTermination );
  52737. 8015ef6: 480c ldr r0, [pc, #48] @ (8015f28 <prvInitialiseTaskLists+0x70>)
  52738. 8015ef8: f7fe f80a bl 8013f10 <vListInitialise>
  52739. }
  52740. #endif /* INCLUDE_vTaskDelete */
  52741. #if ( INCLUDE_vTaskSuspend == 1 )
  52742. {
  52743. vListInitialise( &xSuspendedTaskList );
  52744. 8015efc: 480b ldr r0, [pc, #44] @ (8015f2c <prvInitialiseTaskLists+0x74>)
  52745. 8015efe: f7fe f807 bl 8013f10 <vListInitialise>
  52746. }
  52747. #endif /* INCLUDE_vTaskSuspend */
  52748. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  52749. using list2. */
  52750. pxDelayedTaskList = &xDelayedTaskList1;
  52751. 8015f02: 4b0b ldr r3, [pc, #44] @ (8015f30 <prvInitialiseTaskLists+0x78>)
  52752. 8015f04: 4a05 ldr r2, [pc, #20] @ (8015f1c <prvInitialiseTaskLists+0x64>)
  52753. 8015f06: 601a str r2, [r3, #0]
  52754. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  52755. 8015f08: 4b0a ldr r3, [pc, #40] @ (8015f34 <prvInitialiseTaskLists+0x7c>)
  52756. 8015f0a: 4a05 ldr r2, [pc, #20] @ (8015f20 <prvInitialiseTaskLists+0x68>)
  52757. 8015f0c: 601a str r2, [r3, #0]
  52758. }
  52759. 8015f0e: bf00 nop
  52760. 8015f10: 3708 adds r7, #8
  52761. 8015f12: 46bd mov sp, r7
  52762. 8015f14: bd80 pop {r7, pc}
  52763. 8015f16: bf00 nop
  52764. 8015f18: 24002644 .word 0x24002644
  52765. 8015f1c: 24002aa4 .word 0x24002aa4
  52766. 8015f20: 24002ab8 .word 0x24002ab8
  52767. 8015f24: 24002ad4 .word 0x24002ad4
  52768. 8015f28: 24002ae8 .word 0x24002ae8
  52769. 8015f2c: 24002b00 .word 0x24002b00
  52770. 8015f30: 24002acc .word 0x24002acc
  52771. 8015f34: 24002ad0 .word 0x24002ad0
  52772. 08015f38 <prvCheckTasksWaitingTermination>:
  52773. /*-----------------------------------------------------------*/
  52774. static void prvCheckTasksWaitingTermination( void )
  52775. {
  52776. 8015f38: b580 push {r7, lr}
  52777. 8015f3a: b082 sub sp, #8
  52778. 8015f3c: af00 add r7, sp, #0
  52779. {
  52780. TCB_t *pxTCB;
  52781. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  52782. being called too often in the idle task. */
  52783. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  52784. 8015f3e: e019 b.n 8015f74 <prvCheckTasksWaitingTermination+0x3c>
  52785. {
  52786. taskENTER_CRITICAL();
  52787. 8015f40: f001 fa12 bl 8017368 <vPortEnterCritical>
  52788. {
  52789. pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xTasksWaitingTermination ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  52790. 8015f44: 4b10 ldr r3, [pc, #64] @ (8015f88 <prvCheckTasksWaitingTermination+0x50>)
  52791. 8015f46: 68db ldr r3, [r3, #12]
  52792. 8015f48: 68db ldr r3, [r3, #12]
  52793. 8015f4a: 607b str r3, [r7, #4]
  52794. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  52795. 8015f4c: 687b ldr r3, [r7, #4]
  52796. 8015f4e: 3304 adds r3, #4
  52797. 8015f50: 4618 mov r0, r3
  52798. 8015f52: f7fe f867 bl 8014024 <uxListRemove>
  52799. --uxCurrentNumberOfTasks;
  52800. 8015f56: 4b0d ldr r3, [pc, #52] @ (8015f8c <prvCheckTasksWaitingTermination+0x54>)
  52801. 8015f58: 681b ldr r3, [r3, #0]
  52802. 8015f5a: 3b01 subs r3, #1
  52803. 8015f5c: 4a0b ldr r2, [pc, #44] @ (8015f8c <prvCheckTasksWaitingTermination+0x54>)
  52804. 8015f5e: 6013 str r3, [r2, #0]
  52805. --uxDeletedTasksWaitingCleanUp;
  52806. 8015f60: 4b0b ldr r3, [pc, #44] @ (8015f90 <prvCheckTasksWaitingTermination+0x58>)
  52807. 8015f62: 681b ldr r3, [r3, #0]
  52808. 8015f64: 3b01 subs r3, #1
  52809. 8015f66: 4a0a ldr r2, [pc, #40] @ (8015f90 <prvCheckTasksWaitingTermination+0x58>)
  52810. 8015f68: 6013 str r3, [r2, #0]
  52811. }
  52812. taskEXIT_CRITICAL();
  52813. 8015f6a: f001 fa2f bl 80173cc <vPortExitCritical>
  52814. prvDeleteTCB( pxTCB );
  52815. 8015f6e: 6878 ldr r0, [r7, #4]
  52816. 8015f70: f000 f810 bl 8015f94 <prvDeleteTCB>
  52817. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  52818. 8015f74: 4b06 ldr r3, [pc, #24] @ (8015f90 <prvCheckTasksWaitingTermination+0x58>)
  52819. 8015f76: 681b ldr r3, [r3, #0]
  52820. 8015f78: 2b00 cmp r3, #0
  52821. 8015f7a: d1e1 bne.n 8015f40 <prvCheckTasksWaitingTermination+0x8>
  52822. }
  52823. }
  52824. #endif /* INCLUDE_vTaskDelete */
  52825. }
  52826. 8015f7c: bf00 nop
  52827. 8015f7e: bf00 nop
  52828. 8015f80: 3708 adds r7, #8
  52829. 8015f82: 46bd mov sp, r7
  52830. 8015f84: bd80 pop {r7, pc}
  52831. 8015f86: bf00 nop
  52832. 8015f88: 24002ae8 .word 0x24002ae8
  52833. 8015f8c: 24002b14 .word 0x24002b14
  52834. 8015f90: 24002afc .word 0x24002afc
  52835. 08015f94 <prvDeleteTCB>:
  52836. /*-----------------------------------------------------------*/
  52837. #if ( INCLUDE_vTaskDelete == 1 )
  52838. static void prvDeleteTCB( TCB_t *pxTCB )
  52839. {
  52840. 8015f94: b580 push {r7, lr}
  52841. 8015f96: b084 sub sp, #16
  52842. 8015f98: af00 add r7, sp, #0
  52843. 8015f9a: 6078 str r0, [r7, #4]
  52844. to the task to free any memory allocated at the application level.
  52845. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52846. for additional information. */
  52847. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  52848. {
  52849. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  52850. 8015f9c: 687b ldr r3, [r7, #4]
  52851. 8015f9e: 3354 adds r3, #84 @ 0x54
  52852. 8015fa0: 4618 mov r0, r3
  52853. 8015fa2: f001 fe21 bl 8017be8 <_reclaim_reent>
  52854. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  52855. {
  52856. /* The task could have been allocated statically or dynamically, so
  52857. check what was statically allocated before trying to free the
  52858. memory. */
  52859. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  52860. 8015fa6: 687b ldr r3, [r7, #4]
  52861. 8015fa8: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  52862. 8015fac: 2b00 cmp r3, #0
  52863. 8015fae: d108 bne.n 8015fc2 <prvDeleteTCB+0x2e>
  52864. {
  52865. /* Both the stack and TCB were allocated dynamically, so both
  52866. must be freed. */
  52867. vPortFree( pxTCB->pxStack );
  52868. 8015fb0: 687b ldr r3, [r7, #4]
  52869. 8015fb2: 6b1b ldr r3, [r3, #48] @ 0x30
  52870. 8015fb4: 4618 mov r0, r3
  52871. 8015fb6: f001 fbc7 bl 8017748 <vPortFree>
  52872. vPortFree( pxTCB );
  52873. 8015fba: 6878 ldr r0, [r7, #4]
  52874. 8015fbc: f001 fbc4 bl 8017748 <vPortFree>
  52875. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  52876. mtCOVERAGE_TEST_MARKER();
  52877. }
  52878. }
  52879. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  52880. }
  52881. 8015fc0: e019 b.n 8015ff6 <prvDeleteTCB+0x62>
  52882. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  52883. 8015fc2: 687b ldr r3, [r7, #4]
  52884. 8015fc4: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  52885. 8015fc8: 2b01 cmp r3, #1
  52886. 8015fca: d103 bne.n 8015fd4 <prvDeleteTCB+0x40>
  52887. vPortFree( pxTCB );
  52888. 8015fcc: 6878 ldr r0, [r7, #4]
  52889. 8015fce: f001 fbbb bl 8017748 <vPortFree>
  52890. }
  52891. 8015fd2: e010 b.n 8015ff6 <prvDeleteTCB+0x62>
  52892. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  52893. 8015fd4: 687b ldr r3, [r7, #4]
  52894. 8015fd6: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  52895. 8015fda: 2b02 cmp r3, #2
  52896. 8015fdc: d00b beq.n 8015ff6 <prvDeleteTCB+0x62>
  52897. __asm volatile
  52898. 8015fde: f04f 0350 mov.w r3, #80 @ 0x50
  52899. 8015fe2: f383 8811 msr BASEPRI, r3
  52900. 8015fe6: f3bf 8f6f isb sy
  52901. 8015fea: f3bf 8f4f dsb sy
  52902. 8015fee: 60fb str r3, [r7, #12]
  52903. }
  52904. 8015ff0: bf00 nop
  52905. 8015ff2: bf00 nop
  52906. 8015ff4: e7fd b.n 8015ff2 <prvDeleteTCB+0x5e>
  52907. }
  52908. 8015ff6: bf00 nop
  52909. 8015ff8: 3710 adds r7, #16
  52910. 8015ffa: 46bd mov sp, r7
  52911. 8015ffc: bd80 pop {r7, pc}
  52912. ...
  52913. 08016000 <prvResetNextTaskUnblockTime>:
  52914. #endif /* INCLUDE_vTaskDelete */
  52915. /*-----------------------------------------------------------*/
  52916. static void prvResetNextTaskUnblockTime( void )
  52917. {
  52918. 8016000: b480 push {r7}
  52919. 8016002: b083 sub sp, #12
  52920. 8016004: af00 add r7, sp, #0
  52921. TCB_t *pxTCB;
  52922. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  52923. 8016006: 4b0c ldr r3, [pc, #48] @ (8016038 <prvResetNextTaskUnblockTime+0x38>)
  52924. 8016008: 681b ldr r3, [r3, #0]
  52925. 801600a: 681b ldr r3, [r3, #0]
  52926. 801600c: 2b00 cmp r3, #0
  52927. 801600e: d104 bne.n 801601a <prvResetNextTaskUnblockTime+0x1a>
  52928. {
  52929. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  52930. the maximum possible value so it is extremely unlikely that the
  52931. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  52932. there is an item in the delayed list. */
  52933. xNextTaskUnblockTime = portMAX_DELAY;
  52934. 8016010: 4b0a ldr r3, [pc, #40] @ (801603c <prvResetNextTaskUnblockTime+0x3c>)
  52935. 8016012: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  52936. 8016016: 601a str r2, [r3, #0]
  52937. which the task at the head of the delayed list should be removed
  52938. from the Blocked state. */
  52939. ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  52940. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  52941. }
  52942. }
  52943. 8016018: e008 b.n 801602c <prvResetNextTaskUnblockTime+0x2c>
  52944. ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  52945. 801601a: 4b07 ldr r3, [pc, #28] @ (8016038 <prvResetNextTaskUnblockTime+0x38>)
  52946. 801601c: 681b ldr r3, [r3, #0]
  52947. 801601e: 68db ldr r3, [r3, #12]
  52948. 8016020: 68db ldr r3, [r3, #12]
  52949. 8016022: 607b str r3, [r7, #4]
  52950. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  52951. 8016024: 687b ldr r3, [r7, #4]
  52952. 8016026: 685b ldr r3, [r3, #4]
  52953. 8016028: 4a04 ldr r2, [pc, #16] @ (801603c <prvResetNextTaskUnblockTime+0x3c>)
  52954. 801602a: 6013 str r3, [r2, #0]
  52955. }
  52956. 801602c: bf00 nop
  52957. 801602e: 370c adds r7, #12
  52958. 8016030: 46bd mov sp, r7
  52959. 8016032: f85d 7b04 ldr.w r7, [sp], #4
  52960. 8016036: 4770 bx lr
  52961. 8016038: 24002acc .word 0x24002acc
  52962. 801603c: 24002b34 .word 0x24002b34
  52963. 08016040 <xTaskGetCurrentTaskHandle>:
  52964. /*-----------------------------------------------------------*/
  52965. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  52966. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  52967. {
  52968. 8016040: b480 push {r7}
  52969. 8016042: b083 sub sp, #12
  52970. 8016044: af00 add r7, sp, #0
  52971. TaskHandle_t xReturn;
  52972. /* A critical section is not required as this is not called from
  52973. an interrupt and the current TCB will always be the same for any
  52974. individual execution thread. */
  52975. xReturn = pxCurrentTCB;
  52976. 8016046: 4b05 ldr r3, [pc, #20] @ (801605c <xTaskGetCurrentTaskHandle+0x1c>)
  52977. 8016048: 681b ldr r3, [r3, #0]
  52978. 801604a: 607b str r3, [r7, #4]
  52979. return xReturn;
  52980. 801604c: 687b ldr r3, [r7, #4]
  52981. }
  52982. 801604e: 4618 mov r0, r3
  52983. 8016050: 370c adds r7, #12
  52984. 8016052: 46bd mov sp, r7
  52985. 8016054: f85d 7b04 ldr.w r7, [sp], #4
  52986. 8016058: 4770 bx lr
  52987. 801605a: bf00 nop
  52988. 801605c: 24002640 .word 0x24002640
  52989. 08016060 <xTaskGetSchedulerState>:
  52990. /*-----------------------------------------------------------*/
  52991. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  52992. BaseType_t xTaskGetSchedulerState( void )
  52993. {
  52994. 8016060: b480 push {r7}
  52995. 8016062: b083 sub sp, #12
  52996. 8016064: af00 add r7, sp, #0
  52997. BaseType_t xReturn;
  52998. if( xSchedulerRunning == pdFALSE )
  52999. 8016066: 4b0b ldr r3, [pc, #44] @ (8016094 <xTaskGetSchedulerState+0x34>)
  53000. 8016068: 681b ldr r3, [r3, #0]
  53001. 801606a: 2b00 cmp r3, #0
  53002. 801606c: d102 bne.n 8016074 <xTaskGetSchedulerState+0x14>
  53003. {
  53004. xReturn = taskSCHEDULER_NOT_STARTED;
  53005. 801606e: 2301 movs r3, #1
  53006. 8016070: 607b str r3, [r7, #4]
  53007. 8016072: e008 b.n 8016086 <xTaskGetSchedulerState+0x26>
  53008. }
  53009. else
  53010. {
  53011. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53012. 8016074: 4b08 ldr r3, [pc, #32] @ (8016098 <xTaskGetSchedulerState+0x38>)
  53013. 8016076: 681b ldr r3, [r3, #0]
  53014. 8016078: 2b00 cmp r3, #0
  53015. 801607a: d102 bne.n 8016082 <xTaskGetSchedulerState+0x22>
  53016. {
  53017. xReturn = taskSCHEDULER_RUNNING;
  53018. 801607c: 2302 movs r3, #2
  53019. 801607e: 607b str r3, [r7, #4]
  53020. 8016080: e001 b.n 8016086 <xTaskGetSchedulerState+0x26>
  53021. }
  53022. else
  53023. {
  53024. xReturn = taskSCHEDULER_SUSPENDED;
  53025. 8016082: 2300 movs r3, #0
  53026. 8016084: 607b str r3, [r7, #4]
  53027. }
  53028. }
  53029. return xReturn;
  53030. 8016086: 687b ldr r3, [r7, #4]
  53031. }
  53032. 8016088: 4618 mov r0, r3
  53033. 801608a: 370c adds r7, #12
  53034. 801608c: 46bd mov sp, r7
  53035. 801608e: f85d 7b04 ldr.w r7, [sp], #4
  53036. 8016092: 4770 bx lr
  53037. 8016094: 24002b20 .word 0x24002b20
  53038. 8016098: 24002b3c .word 0x24002b3c
  53039. 0801609c <xTaskPriorityInherit>:
  53040. /*-----------------------------------------------------------*/
  53041. #if ( configUSE_MUTEXES == 1 )
  53042. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  53043. {
  53044. 801609c: b580 push {r7, lr}
  53045. 801609e: b084 sub sp, #16
  53046. 80160a0: af00 add r7, sp, #0
  53047. 80160a2: 6078 str r0, [r7, #4]
  53048. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  53049. 80160a4: 687b ldr r3, [r7, #4]
  53050. 80160a6: 60bb str r3, [r7, #8]
  53051. BaseType_t xReturn = pdFALSE;
  53052. 80160a8: 2300 movs r3, #0
  53053. 80160aa: 60fb str r3, [r7, #12]
  53054. /* If the mutex was given back by an interrupt while the queue was
  53055. locked then the mutex holder might now be NULL. _RB_ Is this still
  53056. needed as interrupts can no longer use mutexes? */
  53057. if( pxMutexHolder != NULL )
  53058. 80160ac: 687b ldr r3, [r7, #4]
  53059. 80160ae: 2b00 cmp r3, #0
  53060. 80160b0: d051 beq.n 8016156 <xTaskPriorityInherit+0xba>
  53061. {
  53062. /* If the holder of the mutex has a priority below the priority of
  53063. the task attempting to obtain the mutex then it will temporarily
  53064. inherit the priority of the task attempting to obtain the mutex. */
  53065. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  53066. 80160b2: 68bb ldr r3, [r7, #8]
  53067. 80160b4: 6ada ldr r2, [r3, #44] @ 0x2c
  53068. 80160b6: 4b2a ldr r3, [pc, #168] @ (8016160 <xTaskPriorityInherit+0xc4>)
  53069. 80160b8: 681b ldr r3, [r3, #0]
  53070. 80160ba: 6adb ldr r3, [r3, #44] @ 0x2c
  53071. 80160bc: 429a cmp r2, r3
  53072. 80160be: d241 bcs.n 8016144 <xTaskPriorityInherit+0xa8>
  53073. {
  53074. /* Adjust the mutex holder state to account for its new
  53075. priority. Only reset the event list item value if the value is
  53076. not being used for anything else. */
  53077. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  53078. 80160c0: 68bb ldr r3, [r7, #8]
  53079. 80160c2: 699b ldr r3, [r3, #24]
  53080. 80160c4: 2b00 cmp r3, #0
  53081. 80160c6: db06 blt.n 80160d6 <xTaskPriorityInherit+0x3a>
  53082. {
  53083. listSET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  53084. 80160c8: 4b25 ldr r3, [pc, #148] @ (8016160 <xTaskPriorityInherit+0xc4>)
  53085. 80160ca: 681b ldr r3, [r3, #0]
  53086. 80160cc: 6adb ldr r3, [r3, #44] @ 0x2c
  53087. 80160ce: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53088. 80160d2: 68bb ldr r3, [r7, #8]
  53089. 80160d4: 619a str r2, [r3, #24]
  53090. mtCOVERAGE_TEST_MARKER();
  53091. }
  53092. /* If the task being modified is in the ready state it will need
  53093. to be moved into a new list. */
  53094. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  53095. 80160d6: 68bb ldr r3, [r7, #8]
  53096. 80160d8: 6959 ldr r1, [r3, #20]
  53097. 80160da: 68bb ldr r3, [r7, #8]
  53098. 80160dc: 6ada ldr r2, [r3, #44] @ 0x2c
  53099. 80160de: 4613 mov r3, r2
  53100. 80160e0: 009b lsls r3, r3, #2
  53101. 80160e2: 4413 add r3, r2
  53102. 80160e4: 009b lsls r3, r3, #2
  53103. 80160e6: 4a1f ldr r2, [pc, #124] @ (8016164 <xTaskPriorityInherit+0xc8>)
  53104. 80160e8: 4413 add r3, r2
  53105. 80160ea: 4299 cmp r1, r3
  53106. 80160ec: d122 bne.n 8016134 <xTaskPriorityInherit+0x98>
  53107. {
  53108. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53109. 80160ee: 68bb ldr r3, [r7, #8]
  53110. 80160f0: 3304 adds r3, #4
  53111. 80160f2: 4618 mov r0, r3
  53112. 80160f4: f7fd ff96 bl 8014024 <uxListRemove>
  53113. {
  53114. mtCOVERAGE_TEST_MARKER();
  53115. }
  53116. /* Inherit the priority before being moved into the new list. */
  53117. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  53118. 80160f8: 4b19 ldr r3, [pc, #100] @ (8016160 <xTaskPriorityInherit+0xc4>)
  53119. 80160fa: 681b ldr r3, [r3, #0]
  53120. 80160fc: 6ada ldr r2, [r3, #44] @ 0x2c
  53121. 80160fe: 68bb ldr r3, [r7, #8]
  53122. 8016100: 62da str r2, [r3, #44] @ 0x2c
  53123. prvAddTaskToReadyList( pxMutexHolderTCB );
  53124. 8016102: 68bb ldr r3, [r7, #8]
  53125. 8016104: 6ada ldr r2, [r3, #44] @ 0x2c
  53126. 8016106: 4b18 ldr r3, [pc, #96] @ (8016168 <xTaskPriorityInherit+0xcc>)
  53127. 8016108: 681b ldr r3, [r3, #0]
  53128. 801610a: 429a cmp r2, r3
  53129. 801610c: d903 bls.n 8016116 <xTaskPriorityInherit+0x7a>
  53130. 801610e: 68bb ldr r3, [r7, #8]
  53131. 8016110: 6adb ldr r3, [r3, #44] @ 0x2c
  53132. 8016112: 4a15 ldr r2, [pc, #84] @ (8016168 <xTaskPriorityInherit+0xcc>)
  53133. 8016114: 6013 str r3, [r2, #0]
  53134. 8016116: 68bb ldr r3, [r7, #8]
  53135. 8016118: 6ada ldr r2, [r3, #44] @ 0x2c
  53136. 801611a: 4613 mov r3, r2
  53137. 801611c: 009b lsls r3, r3, #2
  53138. 801611e: 4413 add r3, r2
  53139. 8016120: 009b lsls r3, r3, #2
  53140. 8016122: 4a10 ldr r2, [pc, #64] @ (8016164 <xTaskPriorityInherit+0xc8>)
  53141. 8016124: 441a add r2, r3
  53142. 8016126: 68bb ldr r3, [r7, #8]
  53143. 8016128: 3304 adds r3, #4
  53144. 801612a: 4619 mov r1, r3
  53145. 801612c: 4610 mov r0, r2
  53146. 801612e: f7fd ff1c bl 8013f6a <vListInsertEnd>
  53147. 8016132: e004 b.n 801613e <xTaskPriorityInherit+0xa2>
  53148. }
  53149. else
  53150. {
  53151. /* Just inherit the priority. */
  53152. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  53153. 8016134: 4b0a ldr r3, [pc, #40] @ (8016160 <xTaskPriorityInherit+0xc4>)
  53154. 8016136: 681b ldr r3, [r3, #0]
  53155. 8016138: 6ada ldr r2, [r3, #44] @ 0x2c
  53156. 801613a: 68bb ldr r3, [r7, #8]
  53157. 801613c: 62da str r2, [r3, #44] @ 0x2c
  53158. }
  53159. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  53160. /* Inheritance occurred. */
  53161. xReturn = pdTRUE;
  53162. 801613e: 2301 movs r3, #1
  53163. 8016140: 60fb str r3, [r7, #12]
  53164. 8016142: e008 b.n 8016156 <xTaskPriorityInherit+0xba>
  53165. }
  53166. else
  53167. {
  53168. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  53169. 8016144: 68bb ldr r3, [r7, #8]
  53170. 8016146: 6cda ldr r2, [r3, #76] @ 0x4c
  53171. 8016148: 4b05 ldr r3, [pc, #20] @ (8016160 <xTaskPriorityInherit+0xc4>)
  53172. 801614a: 681b ldr r3, [r3, #0]
  53173. 801614c: 6adb ldr r3, [r3, #44] @ 0x2c
  53174. 801614e: 429a cmp r2, r3
  53175. 8016150: d201 bcs.n 8016156 <xTaskPriorityInherit+0xba>
  53176. current priority of the mutex holder is not lower than the
  53177. priority of the task attempting to take the mutex.
  53178. Therefore the mutex holder must have already inherited a
  53179. priority, but inheritance would have occurred if that had
  53180. not been the case. */
  53181. xReturn = pdTRUE;
  53182. 8016152: 2301 movs r3, #1
  53183. 8016154: 60fb str r3, [r7, #12]
  53184. else
  53185. {
  53186. mtCOVERAGE_TEST_MARKER();
  53187. }
  53188. return xReturn;
  53189. 8016156: 68fb ldr r3, [r7, #12]
  53190. }
  53191. 8016158: 4618 mov r0, r3
  53192. 801615a: 3710 adds r7, #16
  53193. 801615c: 46bd mov sp, r7
  53194. 801615e: bd80 pop {r7, pc}
  53195. 8016160: 24002640 .word 0x24002640
  53196. 8016164: 24002644 .word 0x24002644
  53197. 8016168: 24002b1c .word 0x24002b1c
  53198. 0801616c <xTaskPriorityDisinherit>:
  53199. /*-----------------------------------------------------------*/
  53200. #if ( configUSE_MUTEXES == 1 )
  53201. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  53202. {
  53203. 801616c: b580 push {r7, lr}
  53204. 801616e: b086 sub sp, #24
  53205. 8016170: af00 add r7, sp, #0
  53206. 8016172: 6078 str r0, [r7, #4]
  53207. TCB_t * const pxTCB = pxMutexHolder;
  53208. 8016174: 687b ldr r3, [r7, #4]
  53209. 8016176: 613b str r3, [r7, #16]
  53210. BaseType_t xReturn = pdFALSE;
  53211. 8016178: 2300 movs r3, #0
  53212. 801617a: 617b str r3, [r7, #20]
  53213. if( pxMutexHolder != NULL )
  53214. 801617c: 687b ldr r3, [r7, #4]
  53215. 801617e: 2b00 cmp r3, #0
  53216. 8016180: d058 beq.n 8016234 <xTaskPriorityDisinherit+0xc8>
  53217. {
  53218. /* A task can only have an inherited priority if it holds the mutex.
  53219. If the mutex is held by a task then it cannot be given from an
  53220. interrupt, and if a mutex is given by the holding task then it must
  53221. be the running state task. */
  53222. configASSERT( pxTCB == pxCurrentTCB );
  53223. 8016182: 4b2f ldr r3, [pc, #188] @ (8016240 <xTaskPriorityDisinherit+0xd4>)
  53224. 8016184: 681b ldr r3, [r3, #0]
  53225. 8016186: 693a ldr r2, [r7, #16]
  53226. 8016188: 429a cmp r2, r3
  53227. 801618a: d00b beq.n 80161a4 <xTaskPriorityDisinherit+0x38>
  53228. __asm volatile
  53229. 801618c: f04f 0350 mov.w r3, #80 @ 0x50
  53230. 8016190: f383 8811 msr BASEPRI, r3
  53231. 8016194: f3bf 8f6f isb sy
  53232. 8016198: f3bf 8f4f dsb sy
  53233. 801619c: 60fb str r3, [r7, #12]
  53234. }
  53235. 801619e: bf00 nop
  53236. 80161a0: bf00 nop
  53237. 80161a2: e7fd b.n 80161a0 <xTaskPriorityDisinherit+0x34>
  53238. configASSERT( pxTCB->uxMutexesHeld );
  53239. 80161a4: 693b ldr r3, [r7, #16]
  53240. 80161a6: 6d1b ldr r3, [r3, #80] @ 0x50
  53241. 80161a8: 2b00 cmp r3, #0
  53242. 80161aa: d10b bne.n 80161c4 <xTaskPriorityDisinherit+0x58>
  53243. __asm volatile
  53244. 80161ac: f04f 0350 mov.w r3, #80 @ 0x50
  53245. 80161b0: f383 8811 msr BASEPRI, r3
  53246. 80161b4: f3bf 8f6f isb sy
  53247. 80161b8: f3bf 8f4f dsb sy
  53248. 80161bc: 60bb str r3, [r7, #8]
  53249. }
  53250. 80161be: bf00 nop
  53251. 80161c0: bf00 nop
  53252. 80161c2: e7fd b.n 80161c0 <xTaskPriorityDisinherit+0x54>
  53253. ( pxTCB->uxMutexesHeld )--;
  53254. 80161c4: 693b ldr r3, [r7, #16]
  53255. 80161c6: 6d1b ldr r3, [r3, #80] @ 0x50
  53256. 80161c8: 1e5a subs r2, r3, #1
  53257. 80161ca: 693b ldr r3, [r7, #16]
  53258. 80161cc: 651a str r2, [r3, #80] @ 0x50
  53259. /* Has the holder of the mutex inherited the priority of another
  53260. task? */
  53261. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  53262. 80161ce: 693b ldr r3, [r7, #16]
  53263. 80161d0: 6ada ldr r2, [r3, #44] @ 0x2c
  53264. 80161d2: 693b ldr r3, [r7, #16]
  53265. 80161d4: 6cdb ldr r3, [r3, #76] @ 0x4c
  53266. 80161d6: 429a cmp r2, r3
  53267. 80161d8: d02c beq.n 8016234 <xTaskPriorityDisinherit+0xc8>
  53268. {
  53269. /* Only disinherit if no other mutexes are held. */
  53270. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  53271. 80161da: 693b ldr r3, [r7, #16]
  53272. 80161dc: 6d1b ldr r3, [r3, #80] @ 0x50
  53273. 80161de: 2b00 cmp r3, #0
  53274. 80161e0: d128 bne.n 8016234 <xTaskPriorityDisinherit+0xc8>
  53275. /* A task can only have an inherited priority if it holds
  53276. the mutex. If the mutex is held by a task then it cannot be
  53277. given from an interrupt, and if a mutex is given by the
  53278. holding task then it must be the running state task. Remove
  53279. the holding task from the ready/delayed list. */
  53280. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53281. 80161e2: 693b ldr r3, [r7, #16]
  53282. 80161e4: 3304 adds r3, #4
  53283. 80161e6: 4618 mov r0, r3
  53284. 80161e8: f7fd ff1c bl 8014024 <uxListRemove>
  53285. }
  53286. /* Disinherit the priority before adding the task into the
  53287. new ready list. */
  53288. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  53289. pxTCB->uxPriority = pxTCB->uxBasePriority;
  53290. 80161ec: 693b ldr r3, [r7, #16]
  53291. 80161ee: 6cda ldr r2, [r3, #76] @ 0x4c
  53292. 80161f0: 693b ldr r3, [r7, #16]
  53293. 80161f2: 62da str r2, [r3, #44] @ 0x2c
  53294. /* Reset the event list item value. It cannot be in use for
  53295. any other purpose if this task is running, and it must be
  53296. running to give back the mutex. */
  53297. listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  53298. 80161f4: 693b ldr r3, [r7, #16]
  53299. 80161f6: 6adb ldr r3, [r3, #44] @ 0x2c
  53300. 80161f8: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53301. 80161fc: 693b ldr r3, [r7, #16]
  53302. 80161fe: 619a str r2, [r3, #24]
  53303. prvAddTaskToReadyList( pxTCB );
  53304. 8016200: 693b ldr r3, [r7, #16]
  53305. 8016202: 6ada ldr r2, [r3, #44] @ 0x2c
  53306. 8016204: 4b0f ldr r3, [pc, #60] @ (8016244 <xTaskPriorityDisinherit+0xd8>)
  53307. 8016206: 681b ldr r3, [r3, #0]
  53308. 8016208: 429a cmp r2, r3
  53309. 801620a: d903 bls.n 8016214 <xTaskPriorityDisinherit+0xa8>
  53310. 801620c: 693b ldr r3, [r7, #16]
  53311. 801620e: 6adb ldr r3, [r3, #44] @ 0x2c
  53312. 8016210: 4a0c ldr r2, [pc, #48] @ (8016244 <xTaskPriorityDisinherit+0xd8>)
  53313. 8016212: 6013 str r3, [r2, #0]
  53314. 8016214: 693b ldr r3, [r7, #16]
  53315. 8016216: 6ada ldr r2, [r3, #44] @ 0x2c
  53316. 8016218: 4613 mov r3, r2
  53317. 801621a: 009b lsls r3, r3, #2
  53318. 801621c: 4413 add r3, r2
  53319. 801621e: 009b lsls r3, r3, #2
  53320. 8016220: 4a09 ldr r2, [pc, #36] @ (8016248 <xTaskPriorityDisinherit+0xdc>)
  53321. 8016222: 441a add r2, r3
  53322. 8016224: 693b ldr r3, [r7, #16]
  53323. 8016226: 3304 adds r3, #4
  53324. 8016228: 4619 mov r1, r3
  53325. 801622a: 4610 mov r0, r2
  53326. 801622c: f7fd fe9d bl 8013f6a <vListInsertEnd>
  53327. in an order different to that in which they were taken.
  53328. If a context switch did not occur when the first mutex was
  53329. returned, even if a task was waiting on it, then a context
  53330. switch should occur when the last mutex is returned whether
  53331. a task is waiting on it or not. */
  53332. xReturn = pdTRUE;
  53333. 8016230: 2301 movs r3, #1
  53334. 8016232: 617b str r3, [r7, #20]
  53335. else
  53336. {
  53337. mtCOVERAGE_TEST_MARKER();
  53338. }
  53339. return xReturn;
  53340. 8016234: 697b ldr r3, [r7, #20]
  53341. }
  53342. 8016236: 4618 mov r0, r3
  53343. 8016238: 3718 adds r7, #24
  53344. 801623a: 46bd mov sp, r7
  53345. 801623c: bd80 pop {r7, pc}
  53346. 801623e: bf00 nop
  53347. 8016240: 24002640 .word 0x24002640
  53348. 8016244: 24002b1c .word 0x24002b1c
  53349. 8016248: 24002644 .word 0x24002644
  53350. 0801624c <vTaskPriorityDisinheritAfterTimeout>:
  53351. /*-----------------------------------------------------------*/
  53352. #if ( configUSE_MUTEXES == 1 )
  53353. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  53354. {
  53355. 801624c: b580 push {r7, lr}
  53356. 801624e: b088 sub sp, #32
  53357. 8016250: af00 add r7, sp, #0
  53358. 8016252: 6078 str r0, [r7, #4]
  53359. 8016254: 6039 str r1, [r7, #0]
  53360. TCB_t * const pxTCB = pxMutexHolder;
  53361. 8016256: 687b ldr r3, [r7, #4]
  53362. 8016258: 61bb str r3, [r7, #24]
  53363. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  53364. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  53365. 801625a: 2301 movs r3, #1
  53366. 801625c: 617b str r3, [r7, #20]
  53367. if( pxMutexHolder != NULL )
  53368. 801625e: 687b ldr r3, [r7, #4]
  53369. 8016260: 2b00 cmp r3, #0
  53370. 8016262: d06c beq.n 801633e <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53371. {
  53372. /* If pxMutexHolder is not NULL then the holder must hold at least
  53373. one mutex. */
  53374. configASSERT( pxTCB->uxMutexesHeld );
  53375. 8016264: 69bb ldr r3, [r7, #24]
  53376. 8016266: 6d1b ldr r3, [r3, #80] @ 0x50
  53377. 8016268: 2b00 cmp r3, #0
  53378. 801626a: d10b bne.n 8016284 <vTaskPriorityDisinheritAfterTimeout+0x38>
  53379. __asm volatile
  53380. 801626c: f04f 0350 mov.w r3, #80 @ 0x50
  53381. 8016270: f383 8811 msr BASEPRI, r3
  53382. 8016274: f3bf 8f6f isb sy
  53383. 8016278: f3bf 8f4f dsb sy
  53384. 801627c: 60fb str r3, [r7, #12]
  53385. }
  53386. 801627e: bf00 nop
  53387. 8016280: bf00 nop
  53388. 8016282: e7fd b.n 8016280 <vTaskPriorityDisinheritAfterTimeout+0x34>
  53389. /* Determine the priority to which the priority of the task that
  53390. holds the mutex should be set. This will be the greater of the
  53391. holding task's base priority and the priority of the highest
  53392. priority task that is waiting to obtain the mutex. */
  53393. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  53394. 8016284: 69bb ldr r3, [r7, #24]
  53395. 8016286: 6cdb ldr r3, [r3, #76] @ 0x4c
  53396. 8016288: 683a ldr r2, [r7, #0]
  53397. 801628a: 429a cmp r2, r3
  53398. 801628c: d902 bls.n 8016294 <vTaskPriorityDisinheritAfterTimeout+0x48>
  53399. {
  53400. uxPriorityToUse = uxHighestPriorityWaitingTask;
  53401. 801628e: 683b ldr r3, [r7, #0]
  53402. 8016290: 61fb str r3, [r7, #28]
  53403. 8016292: e002 b.n 801629a <vTaskPriorityDisinheritAfterTimeout+0x4e>
  53404. }
  53405. else
  53406. {
  53407. uxPriorityToUse = pxTCB->uxBasePriority;
  53408. 8016294: 69bb ldr r3, [r7, #24]
  53409. 8016296: 6cdb ldr r3, [r3, #76] @ 0x4c
  53410. 8016298: 61fb str r3, [r7, #28]
  53411. }
  53412. /* Does the priority need to change? */
  53413. if( pxTCB->uxPriority != uxPriorityToUse )
  53414. 801629a: 69bb ldr r3, [r7, #24]
  53415. 801629c: 6adb ldr r3, [r3, #44] @ 0x2c
  53416. 801629e: 69fa ldr r2, [r7, #28]
  53417. 80162a0: 429a cmp r2, r3
  53418. 80162a2: d04c beq.n 801633e <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53419. {
  53420. /* Only disinherit if no other mutexes are held. This is a
  53421. simplification in the priority inheritance implementation. If
  53422. the task that holds the mutex is also holding other mutexes then
  53423. the other mutexes may have caused the priority inheritance. */
  53424. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  53425. 80162a4: 69bb ldr r3, [r7, #24]
  53426. 80162a6: 6d1b ldr r3, [r3, #80] @ 0x50
  53427. 80162a8: 697a ldr r2, [r7, #20]
  53428. 80162aa: 429a cmp r2, r3
  53429. 80162ac: d147 bne.n 801633e <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53430. {
  53431. /* If a task has timed out because it already holds the
  53432. mutex it was trying to obtain then it cannot of inherited
  53433. its own priority. */
  53434. configASSERT( pxTCB != pxCurrentTCB );
  53435. 80162ae: 4b26 ldr r3, [pc, #152] @ (8016348 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  53436. 80162b0: 681b ldr r3, [r3, #0]
  53437. 80162b2: 69ba ldr r2, [r7, #24]
  53438. 80162b4: 429a cmp r2, r3
  53439. 80162b6: d10b bne.n 80162d0 <vTaskPriorityDisinheritAfterTimeout+0x84>
  53440. __asm volatile
  53441. 80162b8: f04f 0350 mov.w r3, #80 @ 0x50
  53442. 80162bc: f383 8811 msr BASEPRI, r3
  53443. 80162c0: f3bf 8f6f isb sy
  53444. 80162c4: f3bf 8f4f dsb sy
  53445. 80162c8: 60bb str r3, [r7, #8]
  53446. }
  53447. 80162ca: bf00 nop
  53448. 80162cc: bf00 nop
  53449. 80162ce: e7fd b.n 80162cc <vTaskPriorityDisinheritAfterTimeout+0x80>
  53450. /* Disinherit the priority, remembering the previous
  53451. priority to facilitate determining the subject task's
  53452. state. */
  53453. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  53454. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  53455. 80162d0: 69bb ldr r3, [r7, #24]
  53456. 80162d2: 6adb ldr r3, [r3, #44] @ 0x2c
  53457. 80162d4: 613b str r3, [r7, #16]
  53458. pxTCB->uxPriority = uxPriorityToUse;
  53459. 80162d6: 69bb ldr r3, [r7, #24]
  53460. 80162d8: 69fa ldr r2, [r7, #28]
  53461. 80162da: 62da str r2, [r3, #44] @ 0x2c
  53462. /* Only reset the event list item value if the value is not
  53463. being used for anything else. */
  53464. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  53465. 80162dc: 69bb ldr r3, [r7, #24]
  53466. 80162de: 699b ldr r3, [r3, #24]
  53467. 80162e0: 2b00 cmp r3, #0
  53468. 80162e2: db04 blt.n 80162ee <vTaskPriorityDisinheritAfterTimeout+0xa2>
  53469. {
  53470. listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriorityToUse ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  53471. 80162e4: 69fb ldr r3, [r7, #28]
  53472. 80162e6: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53473. 80162ea: 69bb ldr r3, [r7, #24]
  53474. 80162ec: 619a str r2, [r3, #24]
  53475. then the task that holds the mutex could be in either the
  53476. Ready, Blocked or Suspended states. Only remove the task
  53477. from its current state list if it is in the Ready state as
  53478. the task's priority is going to change and there is one
  53479. Ready list per priority. */
  53480. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  53481. 80162ee: 69bb ldr r3, [r7, #24]
  53482. 80162f0: 6959 ldr r1, [r3, #20]
  53483. 80162f2: 693a ldr r2, [r7, #16]
  53484. 80162f4: 4613 mov r3, r2
  53485. 80162f6: 009b lsls r3, r3, #2
  53486. 80162f8: 4413 add r3, r2
  53487. 80162fa: 009b lsls r3, r3, #2
  53488. 80162fc: 4a13 ldr r2, [pc, #76] @ (801634c <vTaskPriorityDisinheritAfterTimeout+0x100>)
  53489. 80162fe: 4413 add r3, r2
  53490. 8016300: 4299 cmp r1, r3
  53491. 8016302: d11c bne.n 801633e <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53492. {
  53493. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53494. 8016304: 69bb ldr r3, [r7, #24]
  53495. 8016306: 3304 adds r3, #4
  53496. 8016308: 4618 mov r0, r3
  53497. 801630a: f7fd fe8b bl 8014024 <uxListRemove>
  53498. else
  53499. {
  53500. mtCOVERAGE_TEST_MARKER();
  53501. }
  53502. prvAddTaskToReadyList( pxTCB );
  53503. 801630e: 69bb ldr r3, [r7, #24]
  53504. 8016310: 6ada ldr r2, [r3, #44] @ 0x2c
  53505. 8016312: 4b0f ldr r3, [pc, #60] @ (8016350 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  53506. 8016314: 681b ldr r3, [r3, #0]
  53507. 8016316: 429a cmp r2, r3
  53508. 8016318: d903 bls.n 8016322 <vTaskPriorityDisinheritAfterTimeout+0xd6>
  53509. 801631a: 69bb ldr r3, [r7, #24]
  53510. 801631c: 6adb ldr r3, [r3, #44] @ 0x2c
  53511. 801631e: 4a0c ldr r2, [pc, #48] @ (8016350 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  53512. 8016320: 6013 str r3, [r2, #0]
  53513. 8016322: 69bb ldr r3, [r7, #24]
  53514. 8016324: 6ada ldr r2, [r3, #44] @ 0x2c
  53515. 8016326: 4613 mov r3, r2
  53516. 8016328: 009b lsls r3, r3, #2
  53517. 801632a: 4413 add r3, r2
  53518. 801632c: 009b lsls r3, r3, #2
  53519. 801632e: 4a07 ldr r2, [pc, #28] @ (801634c <vTaskPriorityDisinheritAfterTimeout+0x100>)
  53520. 8016330: 441a add r2, r3
  53521. 8016332: 69bb ldr r3, [r7, #24]
  53522. 8016334: 3304 adds r3, #4
  53523. 8016336: 4619 mov r1, r3
  53524. 8016338: 4610 mov r0, r2
  53525. 801633a: f7fd fe16 bl 8013f6a <vListInsertEnd>
  53526. }
  53527. else
  53528. {
  53529. mtCOVERAGE_TEST_MARKER();
  53530. }
  53531. }
  53532. 801633e: bf00 nop
  53533. 8016340: 3720 adds r7, #32
  53534. 8016342: 46bd mov sp, r7
  53535. 8016344: bd80 pop {r7, pc}
  53536. 8016346: bf00 nop
  53537. 8016348: 24002640 .word 0x24002640
  53538. 801634c: 24002644 .word 0x24002644
  53539. 8016350: 24002b1c .word 0x24002b1c
  53540. 08016354 <pvTaskIncrementMutexHeldCount>:
  53541. /*-----------------------------------------------------------*/
  53542. #if ( configUSE_MUTEXES == 1 )
  53543. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  53544. {
  53545. 8016354: b480 push {r7}
  53546. 8016356: af00 add r7, sp, #0
  53547. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  53548. then pxCurrentTCB will be NULL. */
  53549. if( pxCurrentTCB != NULL )
  53550. 8016358: 4b07 ldr r3, [pc, #28] @ (8016378 <pvTaskIncrementMutexHeldCount+0x24>)
  53551. 801635a: 681b ldr r3, [r3, #0]
  53552. 801635c: 2b00 cmp r3, #0
  53553. 801635e: d004 beq.n 801636a <pvTaskIncrementMutexHeldCount+0x16>
  53554. {
  53555. ( pxCurrentTCB->uxMutexesHeld )++;
  53556. 8016360: 4b05 ldr r3, [pc, #20] @ (8016378 <pvTaskIncrementMutexHeldCount+0x24>)
  53557. 8016362: 681b ldr r3, [r3, #0]
  53558. 8016364: 6d1a ldr r2, [r3, #80] @ 0x50
  53559. 8016366: 3201 adds r2, #1
  53560. 8016368: 651a str r2, [r3, #80] @ 0x50
  53561. }
  53562. return pxCurrentTCB;
  53563. 801636a: 4b03 ldr r3, [pc, #12] @ (8016378 <pvTaskIncrementMutexHeldCount+0x24>)
  53564. 801636c: 681b ldr r3, [r3, #0]
  53565. }
  53566. 801636e: 4618 mov r0, r3
  53567. 8016370: 46bd mov sp, r7
  53568. 8016372: f85d 7b04 ldr.w r7, [sp], #4
  53569. 8016376: 4770 bx lr
  53570. 8016378: 24002640 .word 0x24002640
  53571. 0801637c <xTaskNotifyWait>:
  53572. /*-----------------------------------------------------------*/
  53573. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  53574. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  53575. {
  53576. 801637c: b580 push {r7, lr}
  53577. 801637e: b086 sub sp, #24
  53578. 8016380: af00 add r7, sp, #0
  53579. 8016382: 60f8 str r0, [r7, #12]
  53580. 8016384: 60b9 str r1, [r7, #8]
  53581. 8016386: 607a str r2, [r7, #4]
  53582. 8016388: 603b str r3, [r7, #0]
  53583. BaseType_t xReturn;
  53584. taskENTER_CRITICAL();
  53585. 801638a: f000 ffed bl 8017368 <vPortEnterCritical>
  53586. {
  53587. /* Only block if a notification is not already pending. */
  53588. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  53589. 801638e: 4b29 ldr r3, [pc, #164] @ (8016434 <xTaskNotifyWait+0xb8>)
  53590. 8016390: 681b ldr r3, [r3, #0]
  53591. 8016392: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53592. 8016396: b2db uxtb r3, r3
  53593. 8016398: 2b02 cmp r3, #2
  53594. 801639a: d01c beq.n 80163d6 <xTaskNotifyWait+0x5a>
  53595. {
  53596. /* Clear bits in the task's notification value as bits may get
  53597. set by the notifying task or interrupt. This can be used to
  53598. clear the value to zero. */
  53599. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  53600. 801639c: 4b25 ldr r3, [pc, #148] @ (8016434 <xTaskNotifyWait+0xb8>)
  53601. 801639e: 681b ldr r3, [r3, #0]
  53602. 80163a0: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  53603. 80163a4: 68fa ldr r2, [r7, #12]
  53604. 80163a6: 43d2 mvns r2, r2
  53605. 80163a8: 400a ands r2, r1
  53606. 80163aa: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53607. /* Mark this task as waiting for a notification. */
  53608. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  53609. 80163ae: 4b21 ldr r3, [pc, #132] @ (8016434 <xTaskNotifyWait+0xb8>)
  53610. 80163b0: 681b ldr r3, [r3, #0]
  53611. 80163b2: 2201 movs r2, #1
  53612. 80163b4: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53613. if( xTicksToWait > ( TickType_t ) 0 )
  53614. 80163b8: 683b ldr r3, [r7, #0]
  53615. 80163ba: 2b00 cmp r3, #0
  53616. 80163bc: d00b beq.n 80163d6 <xTaskNotifyWait+0x5a>
  53617. {
  53618. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  53619. 80163be: 2101 movs r1, #1
  53620. 80163c0: 6838 ldr r0, [r7, #0]
  53621. 80163c2: f000 fa09 bl 80167d8 <prvAddCurrentTaskToDelayedList>
  53622. /* All ports are written to allow a yield in a critical
  53623. section (some will yield immediately, others wait until the
  53624. critical section exits) - but it is not something that
  53625. application code should ever do. */
  53626. portYIELD_WITHIN_API();
  53627. 80163c6: 4b1c ldr r3, [pc, #112] @ (8016438 <xTaskNotifyWait+0xbc>)
  53628. 80163c8: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53629. 80163cc: 601a str r2, [r3, #0]
  53630. 80163ce: f3bf 8f4f dsb sy
  53631. 80163d2: f3bf 8f6f isb sy
  53632. else
  53633. {
  53634. mtCOVERAGE_TEST_MARKER();
  53635. }
  53636. }
  53637. taskEXIT_CRITICAL();
  53638. 80163d6: f000 fff9 bl 80173cc <vPortExitCritical>
  53639. taskENTER_CRITICAL();
  53640. 80163da: f000 ffc5 bl 8017368 <vPortEnterCritical>
  53641. {
  53642. traceTASK_NOTIFY_WAIT();
  53643. if( pulNotificationValue != NULL )
  53644. 80163de: 687b ldr r3, [r7, #4]
  53645. 80163e0: 2b00 cmp r3, #0
  53646. 80163e2: d005 beq.n 80163f0 <xTaskNotifyWait+0x74>
  53647. {
  53648. /* Output the current notification value, which may or may not
  53649. have changed. */
  53650. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  53651. 80163e4: 4b13 ldr r3, [pc, #76] @ (8016434 <xTaskNotifyWait+0xb8>)
  53652. 80163e6: 681b ldr r3, [r3, #0]
  53653. 80163e8: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  53654. 80163ec: 687b ldr r3, [r7, #4]
  53655. 80163ee: 601a str r2, [r3, #0]
  53656. /* If ucNotifyValue is set then either the task never entered the
  53657. blocked state (because a notification was already pending) or the
  53658. task unblocked because of a notification. Otherwise the task
  53659. unblocked because of a timeout. */
  53660. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  53661. 80163f0: 4b10 ldr r3, [pc, #64] @ (8016434 <xTaskNotifyWait+0xb8>)
  53662. 80163f2: 681b ldr r3, [r3, #0]
  53663. 80163f4: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53664. 80163f8: b2db uxtb r3, r3
  53665. 80163fa: 2b02 cmp r3, #2
  53666. 80163fc: d002 beq.n 8016404 <xTaskNotifyWait+0x88>
  53667. {
  53668. /* A notification was not received. */
  53669. xReturn = pdFALSE;
  53670. 80163fe: 2300 movs r3, #0
  53671. 8016400: 617b str r3, [r7, #20]
  53672. 8016402: e00a b.n 801641a <xTaskNotifyWait+0x9e>
  53673. }
  53674. else
  53675. {
  53676. /* A notification was already pending or a notification was
  53677. received while the task was waiting. */
  53678. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  53679. 8016404: 4b0b ldr r3, [pc, #44] @ (8016434 <xTaskNotifyWait+0xb8>)
  53680. 8016406: 681b ldr r3, [r3, #0]
  53681. 8016408: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  53682. 801640c: 68ba ldr r2, [r7, #8]
  53683. 801640e: 43d2 mvns r2, r2
  53684. 8016410: 400a ands r2, r1
  53685. 8016412: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53686. xReturn = pdTRUE;
  53687. 8016416: 2301 movs r3, #1
  53688. 8016418: 617b str r3, [r7, #20]
  53689. }
  53690. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  53691. 801641a: 4b06 ldr r3, [pc, #24] @ (8016434 <xTaskNotifyWait+0xb8>)
  53692. 801641c: 681b ldr r3, [r3, #0]
  53693. 801641e: 2200 movs r2, #0
  53694. 8016420: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53695. }
  53696. taskEXIT_CRITICAL();
  53697. 8016424: f000 ffd2 bl 80173cc <vPortExitCritical>
  53698. return xReturn;
  53699. 8016428: 697b ldr r3, [r7, #20]
  53700. }
  53701. 801642a: 4618 mov r0, r3
  53702. 801642c: 3718 adds r7, #24
  53703. 801642e: 46bd mov sp, r7
  53704. 8016430: bd80 pop {r7, pc}
  53705. 8016432: bf00 nop
  53706. 8016434: 24002640 .word 0x24002640
  53707. 8016438: e000ed04 .word 0xe000ed04
  53708. 0801643c <xTaskGenericNotify>:
  53709. /*-----------------------------------------------------------*/
  53710. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  53711. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  53712. {
  53713. 801643c: b580 push {r7, lr}
  53714. 801643e: b08a sub sp, #40 @ 0x28
  53715. 8016440: af00 add r7, sp, #0
  53716. 8016442: 60f8 str r0, [r7, #12]
  53717. 8016444: 60b9 str r1, [r7, #8]
  53718. 8016446: 603b str r3, [r7, #0]
  53719. 8016448: 4613 mov r3, r2
  53720. 801644a: 71fb strb r3, [r7, #7]
  53721. TCB_t * pxTCB;
  53722. BaseType_t xReturn = pdPASS;
  53723. 801644c: 2301 movs r3, #1
  53724. 801644e: 627b str r3, [r7, #36] @ 0x24
  53725. uint8_t ucOriginalNotifyState;
  53726. configASSERT( xTaskToNotify );
  53727. 8016450: 68fb ldr r3, [r7, #12]
  53728. 8016452: 2b00 cmp r3, #0
  53729. 8016454: d10b bne.n 801646e <xTaskGenericNotify+0x32>
  53730. __asm volatile
  53731. 8016456: f04f 0350 mov.w r3, #80 @ 0x50
  53732. 801645a: f383 8811 msr BASEPRI, r3
  53733. 801645e: f3bf 8f6f isb sy
  53734. 8016462: f3bf 8f4f dsb sy
  53735. 8016466: 61bb str r3, [r7, #24]
  53736. }
  53737. 8016468: bf00 nop
  53738. 801646a: bf00 nop
  53739. 801646c: e7fd b.n 801646a <xTaskGenericNotify+0x2e>
  53740. pxTCB = xTaskToNotify;
  53741. 801646e: 68fb ldr r3, [r7, #12]
  53742. 8016470: 623b str r3, [r7, #32]
  53743. taskENTER_CRITICAL();
  53744. 8016472: f000 ff79 bl 8017368 <vPortEnterCritical>
  53745. {
  53746. if( pulPreviousNotificationValue != NULL )
  53747. 8016476: 683b ldr r3, [r7, #0]
  53748. 8016478: 2b00 cmp r3, #0
  53749. 801647a: d004 beq.n 8016486 <xTaskGenericNotify+0x4a>
  53750. {
  53751. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  53752. 801647c: 6a3b ldr r3, [r7, #32]
  53753. 801647e: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  53754. 8016482: 683b ldr r3, [r7, #0]
  53755. 8016484: 601a str r2, [r3, #0]
  53756. }
  53757. ucOriginalNotifyState = pxTCB->ucNotifyState;
  53758. 8016486: 6a3b ldr r3, [r7, #32]
  53759. 8016488: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53760. 801648c: 77fb strb r3, [r7, #31]
  53761. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  53762. 801648e: 6a3b ldr r3, [r7, #32]
  53763. 8016490: 2202 movs r2, #2
  53764. 8016492: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53765. switch( eAction )
  53766. 8016496: 79fb ldrb r3, [r7, #7]
  53767. 8016498: 2b04 cmp r3, #4
  53768. 801649a: d82e bhi.n 80164fa <xTaskGenericNotify+0xbe>
  53769. 801649c: a201 add r2, pc, #4 @ (adr r2, 80164a4 <xTaskGenericNotify+0x68>)
  53770. 801649e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  53771. 80164a2: bf00 nop
  53772. 80164a4: 0801651f .word 0x0801651f
  53773. 80164a8: 080164b9 .word 0x080164b9
  53774. 80164ac: 080164cb .word 0x080164cb
  53775. 80164b0: 080164db .word 0x080164db
  53776. 80164b4: 080164e5 .word 0x080164e5
  53777. {
  53778. case eSetBits :
  53779. pxTCB->ulNotifiedValue |= ulValue;
  53780. 80164b8: 6a3b ldr r3, [r7, #32]
  53781. 80164ba: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  53782. 80164be: 68bb ldr r3, [r7, #8]
  53783. 80164c0: 431a orrs r2, r3
  53784. 80164c2: 6a3b ldr r3, [r7, #32]
  53785. 80164c4: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53786. break;
  53787. 80164c8: e02c b.n 8016524 <xTaskGenericNotify+0xe8>
  53788. case eIncrement :
  53789. ( pxTCB->ulNotifiedValue )++;
  53790. 80164ca: 6a3b ldr r3, [r7, #32]
  53791. 80164cc: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  53792. 80164d0: 1c5a adds r2, r3, #1
  53793. 80164d2: 6a3b ldr r3, [r7, #32]
  53794. 80164d4: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53795. break;
  53796. 80164d8: e024 b.n 8016524 <xTaskGenericNotify+0xe8>
  53797. case eSetValueWithOverwrite :
  53798. pxTCB->ulNotifiedValue = ulValue;
  53799. 80164da: 6a3b ldr r3, [r7, #32]
  53800. 80164dc: 68ba ldr r2, [r7, #8]
  53801. 80164de: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53802. break;
  53803. 80164e2: e01f b.n 8016524 <xTaskGenericNotify+0xe8>
  53804. case eSetValueWithoutOverwrite :
  53805. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  53806. 80164e4: 7ffb ldrb r3, [r7, #31]
  53807. 80164e6: 2b02 cmp r3, #2
  53808. 80164e8: d004 beq.n 80164f4 <xTaskGenericNotify+0xb8>
  53809. {
  53810. pxTCB->ulNotifiedValue = ulValue;
  53811. 80164ea: 6a3b ldr r3, [r7, #32]
  53812. 80164ec: 68ba ldr r2, [r7, #8]
  53813. 80164ee: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53814. else
  53815. {
  53816. /* The value could not be written to the task. */
  53817. xReturn = pdFAIL;
  53818. }
  53819. break;
  53820. 80164f2: e017 b.n 8016524 <xTaskGenericNotify+0xe8>
  53821. xReturn = pdFAIL;
  53822. 80164f4: 2300 movs r3, #0
  53823. 80164f6: 627b str r3, [r7, #36] @ 0x24
  53824. break;
  53825. 80164f8: e014 b.n 8016524 <xTaskGenericNotify+0xe8>
  53826. default:
  53827. /* Should not get here if all enums are handled.
  53828. Artificially force an assert by testing a value the
  53829. compiler can't assume is const. */
  53830. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  53831. 80164fa: 6a3b ldr r3, [r7, #32]
  53832. 80164fc: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  53833. 8016500: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53834. 8016504: d00d beq.n 8016522 <xTaskGenericNotify+0xe6>
  53835. __asm volatile
  53836. 8016506: f04f 0350 mov.w r3, #80 @ 0x50
  53837. 801650a: f383 8811 msr BASEPRI, r3
  53838. 801650e: f3bf 8f6f isb sy
  53839. 8016512: f3bf 8f4f dsb sy
  53840. 8016516: 617b str r3, [r7, #20]
  53841. }
  53842. 8016518: bf00 nop
  53843. 801651a: bf00 nop
  53844. 801651c: e7fd b.n 801651a <xTaskGenericNotify+0xde>
  53845. break;
  53846. 801651e: bf00 nop
  53847. 8016520: e000 b.n 8016524 <xTaskGenericNotify+0xe8>
  53848. break;
  53849. 8016522: bf00 nop
  53850. traceTASK_NOTIFY();
  53851. /* If the task is in the blocked state specifically to wait for a
  53852. notification then unblock it now. */
  53853. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  53854. 8016524: 7ffb ldrb r3, [r7, #31]
  53855. 8016526: 2b01 cmp r3, #1
  53856. 8016528: d13b bne.n 80165a2 <xTaskGenericNotify+0x166>
  53857. {
  53858. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  53859. 801652a: 6a3b ldr r3, [r7, #32]
  53860. 801652c: 3304 adds r3, #4
  53861. 801652e: 4618 mov r0, r3
  53862. 8016530: f7fd fd78 bl 8014024 <uxListRemove>
  53863. prvAddTaskToReadyList( pxTCB );
  53864. 8016534: 6a3b ldr r3, [r7, #32]
  53865. 8016536: 6ada ldr r2, [r3, #44] @ 0x2c
  53866. 8016538: 4b1d ldr r3, [pc, #116] @ (80165b0 <xTaskGenericNotify+0x174>)
  53867. 801653a: 681b ldr r3, [r3, #0]
  53868. 801653c: 429a cmp r2, r3
  53869. 801653e: d903 bls.n 8016548 <xTaskGenericNotify+0x10c>
  53870. 8016540: 6a3b ldr r3, [r7, #32]
  53871. 8016542: 6adb ldr r3, [r3, #44] @ 0x2c
  53872. 8016544: 4a1a ldr r2, [pc, #104] @ (80165b0 <xTaskGenericNotify+0x174>)
  53873. 8016546: 6013 str r3, [r2, #0]
  53874. 8016548: 6a3b ldr r3, [r7, #32]
  53875. 801654a: 6ada ldr r2, [r3, #44] @ 0x2c
  53876. 801654c: 4613 mov r3, r2
  53877. 801654e: 009b lsls r3, r3, #2
  53878. 8016550: 4413 add r3, r2
  53879. 8016552: 009b lsls r3, r3, #2
  53880. 8016554: 4a17 ldr r2, [pc, #92] @ (80165b4 <xTaskGenericNotify+0x178>)
  53881. 8016556: 441a add r2, r3
  53882. 8016558: 6a3b ldr r3, [r7, #32]
  53883. 801655a: 3304 adds r3, #4
  53884. 801655c: 4619 mov r1, r3
  53885. 801655e: 4610 mov r0, r2
  53886. 8016560: f7fd fd03 bl 8013f6a <vListInsertEnd>
  53887. /* The task should not have been on an event list. */
  53888. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  53889. 8016564: 6a3b ldr r3, [r7, #32]
  53890. 8016566: 6a9b ldr r3, [r3, #40] @ 0x28
  53891. 8016568: 2b00 cmp r3, #0
  53892. 801656a: d00b beq.n 8016584 <xTaskGenericNotify+0x148>
  53893. __asm volatile
  53894. 801656c: f04f 0350 mov.w r3, #80 @ 0x50
  53895. 8016570: f383 8811 msr BASEPRI, r3
  53896. 8016574: f3bf 8f6f isb sy
  53897. 8016578: f3bf 8f4f dsb sy
  53898. 801657c: 613b str r3, [r7, #16]
  53899. }
  53900. 801657e: bf00 nop
  53901. 8016580: bf00 nop
  53902. 8016582: e7fd b.n 8016580 <xTaskGenericNotify+0x144>
  53903. earliest possible time. */
  53904. prvResetNextTaskUnblockTime();
  53905. }
  53906. #endif
  53907. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  53908. 8016584: 6a3b ldr r3, [r7, #32]
  53909. 8016586: 6ada ldr r2, [r3, #44] @ 0x2c
  53910. 8016588: 4b0b ldr r3, [pc, #44] @ (80165b8 <xTaskGenericNotify+0x17c>)
  53911. 801658a: 681b ldr r3, [r3, #0]
  53912. 801658c: 6adb ldr r3, [r3, #44] @ 0x2c
  53913. 801658e: 429a cmp r2, r3
  53914. 8016590: d907 bls.n 80165a2 <xTaskGenericNotify+0x166>
  53915. {
  53916. /* The notified task has a priority above the currently
  53917. executing task so a yield is required. */
  53918. taskYIELD_IF_USING_PREEMPTION();
  53919. 8016592: 4b0a ldr r3, [pc, #40] @ (80165bc <xTaskGenericNotify+0x180>)
  53920. 8016594: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53921. 8016598: 601a str r2, [r3, #0]
  53922. 801659a: f3bf 8f4f dsb sy
  53923. 801659e: f3bf 8f6f isb sy
  53924. else
  53925. {
  53926. mtCOVERAGE_TEST_MARKER();
  53927. }
  53928. }
  53929. taskEXIT_CRITICAL();
  53930. 80165a2: f000 ff13 bl 80173cc <vPortExitCritical>
  53931. return xReturn;
  53932. 80165a6: 6a7b ldr r3, [r7, #36] @ 0x24
  53933. }
  53934. 80165a8: 4618 mov r0, r3
  53935. 80165aa: 3728 adds r7, #40 @ 0x28
  53936. 80165ac: 46bd mov sp, r7
  53937. 80165ae: bd80 pop {r7, pc}
  53938. 80165b0: 24002b1c .word 0x24002b1c
  53939. 80165b4: 24002644 .word 0x24002644
  53940. 80165b8: 24002640 .word 0x24002640
  53941. 80165bc: e000ed04 .word 0xe000ed04
  53942. 080165c0 <xTaskGenericNotifyFromISR>:
  53943. /*-----------------------------------------------------------*/
  53944. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  53945. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  53946. {
  53947. 80165c0: b580 push {r7, lr}
  53948. 80165c2: b08e sub sp, #56 @ 0x38
  53949. 80165c4: af00 add r7, sp, #0
  53950. 80165c6: 60f8 str r0, [r7, #12]
  53951. 80165c8: 60b9 str r1, [r7, #8]
  53952. 80165ca: 603b str r3, [r7, #0]
  53953. 80165cc: 4613 mov r3, r2
  53954. 80165ce: 71fb strb r3, [r7, #7]
  53955. TCB_t * pxTCB;
  53956. uint8_t ucOriginalNotifyState;
  53957. BaseType_t xReturn = pdPASS;
  53958. 80165d0: 2301 movs r3, #1
  53959. 80165d2: 637b str r3, [r7, #52] @ 0x34
  53960. UBaseType_t uxSavedInterruptStatus;
  53961. configASSERT( xTaskToNotify );
  53962. 80165d4: 68fb ldr r3, [r7, #12]
  53963. 80165d6: 2b00 cmp r3, #0
  53964. 80165d8: d10b bne.n 80165f2 <xTaskGenericNotifyFromISR+0x32>
  53965. __asm volatile
  53966. 80165da: f04f 0350 mov.w r3, #80 @ 0x50
  53967. 80165de: f383 8811 msr BASEPRI, r3
  53968. 80165e2: f3bf 8f6f isb sy
  53969. 80165e6: f3bf 8f4f dsb sy
  53970. 80165ea: 627b str r3, [r7, #36] @ 0x24
  53971. }
  53972. 80165ec: bf00 nop
  53973. 80165ee: bf00 nop
  53974. 80165f0: e7fd b.n 80165ee <xTaskGenericNotifyFromISR+0x2e>
  53975. below the maximum system call interrupt priority. FreeRTOS maintains a
  53976. separate interrupt safe API to ensure interrupt entry is as fast and as
  53977. simple as possible. More information (albeit Cortex-M specific) is
  53978. provided on the following link:
  53979. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  53980. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  53981. 80165f2: f000 ff99 bl 8017528 <vPortValidateInterruptPriority>
  53982. pxTCB = xTaskToNotify;
  53983. 80165f6: 68fb ldr r3, [r7, #12]
  53984. 80165f8: 633b str r3, [r7, #48] @ 0x30
  53985. __asm volatile
  53986. 80165fa: f3ef 8211 mrs r2, BASEPRI
  53987. 80165fe: f04f 0350 mov.w r3, #80 @ 0x50
  53988. 8016602: f383 8811 msr BASEPRI, r3
  53989. 8016606: f3bf 8f6f isb sy
  53990. 801660a: f3bf 8f4f dsb sy
  53991. 801660e: 623a str r2, [r7, #32]
  53992. 8016610: 61fb str r3, [r7, #28]
  53993. return ulOriginalBASEPRI;
  53994. 8016612: 6a3b ldr r3, [r7, #32]
  53995. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  53996. 8016614: 62fb str r3, [r7, #44] @ 0x2c
  53997. {
  53998. if( pulPreviousNotificationValue != NULL )
  53999. 8016616: 683b ldr r3, [r7, #0]
  54000. 8016618: 2b00 cmp r3, #0
  54001. 801661a: d004 beq.n 8016626 <xTaskGenericNotifyFromISR+0x66>
  54002. {
  54003. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  54004. 801661c: 6b3b ldr r3, [r7, #48] @ 0x30
  54005. 801661e: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54006. 8016622: 683b ldr r3, [r7, #0]
  54007. 8016624: 601a str r2, [r3, #0]
  54008. }
  54009. ucOriginalNotifyState = pxTCB->ucNotifyState;
  54010. 8016626: 6b3b ldr r3, [r7, #48] @ 0x30
  54011. 8016628: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54012. 801662c: f887 302b strb.w r3, [r7, #43] @ 0x2b
  54013. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  54014. 8016630: 6b3b ldr r3, [r7, #48] @ 0x30
  54015. 8016632: 2202 movs r2, #2
  54016. 8016634: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54017. switch( eAction )
  54018. 8016638: 79fb ldrb r3, [r7, #7]
  54019. 801663a: 2b04 cmp r3, #4
  54020. 801663c: d82e bhi.n 801669c <xTaskGenericNotifyFromISR+0xdc>
  54021. 801663e: a201 add r2, pc, #4 @ (adr r2, 8016644 <xTaskGenericNotifyFromISR+0x84>)
  54022. 8016640: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  54023. 8016644: 080166c1 .word 0x080166c1
  54024. 8016648: 08016659 .word 0x08016659
  54025. 801664c: 0801666b .word 0x0801666b
  54026. 8016650: 0801667b .word 0x0801667b
  54027. 8016654: 08016685 .word 0x08016685
  54028. {
  54029. case eSetBits :
  54030. pxTCB->ulNotifiedValue |= ulValue;
  54031. 8016658: 6b3b ldr r3, [r7, #48] @ 0x30
  54032. 801665a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54033. 801665e: 68bb ldr r3, [r7, #8]
  54034. 8016660: 431a orrs r2, r3
  54035. 8016662: 6b3b ldr r3, [r7, #48] @ 0x30
  54036. 8016664: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54037. break;
  54038. 8016668: e02d b.n 80166c6 <xTaskGenericNotifyFromISR+0x106>
  54039. case eIncrement :
  54040. ( pxTCB->ulNotifiedValue )++;
  54041. 801666a: 6b3b ldr r3, [r7, #48] @ 0x30
  54042. 801666c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54043. 8016670: 1c5a adds r2, r3, #1
  54044. 8016672: 6b3b ldr r3, [r7, #48] @ 0x30
  54045. 8016674: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54046. break;
  54047. 8016678: e025 b.n 80166c6 <xTaskGenericNotifyFromISR+0x106>
  54048. case eSetValueWithOverwrite :
  54049. pxTCB->ulNotifiedValue = ulValue;
  54050. 801667a: 6b3b ldr r3, [r7, #48] @ 0x30
  54051. 801667c: 68ba ldr r2, [r7, #8]
  54052. 801667e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54053. break;
  54054. 8016682: e020 b.n 80166c6 <xTaskGenericNotifyFromISR+0x106>
  54055. case eSetValueWithoutOverwrite :
  54056. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  54057. 8016684: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  54058. 8016688: 2b02 cmp r3, #2
  54059. 801668a: d004 beq.n 8016696 <xTaskGenericNotifyFromISR+0xd6>
  54060. {
  54061. pxTCB->ulNotifiedValue = ulValue;
  54062. 801668c: 6b3b ldr r3, [r7, #48] @ 0x30
  54063. 801668e: 68ba ldr r2, [r7, #8]
  54064. 8016690: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54065. else
  54066. {
  54067. /* The value could not be written to the task. */
  54068. xReturn = pdFAIL;
  54069. }
  54070. break;
  54071. 8016694: e017 b.n 80166c6 <xTaskGenericNotifyFromISR+0x106>
  54072. xReturn = pdFAIL;
  54073. 8016696: 2300 movs r3, #0
  54074. 8016698: 637b str r3, [r7, #52] @ 0x34
  54075. break;
  54076. 801669a: e014 b.n 80166c6 <xTaskGenericNotifyFromISR+0x106>
  54077. default:
  54078. /* Should not get here if all enums are handled.
  54079. Artificially force an assert by testing a value the
  54080. compiler can't assume is const. */
  54081. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  54082. 801669c: 6b3b ldr r3, [r7, #48] @ 0x30
  54083. 801669e: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54084. 80166a2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54085. 80166a6: d00d beq.n 80166c4 <xTaskGenericNotifyFromISR+0x104>
  54086. __asm volatile
  54087. 80166a8: f04f 0350 mov.w r3, #80 @ 0x50
  54088. 80166ac: f383 8811 msr BASEPRI, r3
  54089. 80166b0: f3bf 8f6f isb sy
  54090. 80166b4: f3bf 8f4f dsb sy
  54091. 80166b8: 61bb str r3, [r7, #24]
  54092. }
  54093. 80166ba: bf00 nop
  54094. 80166bc: bf00 nop
  54095. 80166be: e7fd b.n 80166bc <xTaskGenericNotifyFromISR+0xfc>
  54096. break;
  54097. 80166c0: bf00 nop
  54098. 80166c2: e000 b.n 80166c6 <xTaskGenericNotifyFromISR+0x106>
  54099. break;
  54100. 80166c4: bf00 nop
  54101. traceTASK_NOTIFY_FROM_ISR();
  54102. /* If the task is in the blocked state specifically to wait for a
  54103. notification then unblock it now. */
  54104. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  54105. 80166c6: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  54106. 80166ca: 2b01 cmp r3, #1
  54107. 80166cc: d147 bne.n 801675e <xTaskGenericNotifyFromISR+0x19e>
  54108. {
  54109. /* The task should not have been on an event list. */
  54110. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  54111. 80166ce: 6b3b ldr r3, [r7, #48] @ 0x30
  54112. 80166d0: 6a9b ldr r3, [r3, #40] @ 0x28
  54113. 80166d2: 2b00 cmp r3, #0
  54114. 80166d4: d00b beq.n 80166ee <xTaskGenericNotifyFromISR+0x12e>
  54115. __asm volatile
  54116. 80166d6: f04f 0350 mov.w r3, #80 @ 0x50
  54117. 80166da: f383 8811 msr BASEPRI, r3
  54118. 80166de: f3bf 8f6f isb sy
  54119. 80166e2: f3bf 8f4f dsb sy
  54120. 80166e6: 617b str r3, [r7, #20]
  54121. }
  54122. 80166e8: bf00 nop
  54123. 80166ea: bf00 nop
  54124. 80166ec: e7fd b.n 80166ea <xTaskGenericNotifyFromISR+0x12a>
  54125. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  54126. 80166ee: 4b21 ldr r3, [pc, #132] @ (8016774 <xTaskGenericNotifyFromISR+0x1b4>)
  54127. 80166f0: 681b ldr r3, [r3, #0]
  54128. 80166f2: 2b00 cmp r3, #0
  54129. 80166f4: d11d bne.n 8016732 <xTaskGenericNotifyFromISR+0x172>
  54130. {
  54131. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  54132. 80166f6: 6b3b ldr r3, [r7, #48] @ 0x30
  54133. 80166f8: 3304 adds r3, #4
  54134. 80166fa: 4618 mov r0, r3
  54135. 80166fc: f7fd fc92 bl 8014024 <uxListRemove>
  54136. prvAddTaskToReadyList( pxTCB );
  54137. 8016700: 6b3b ldr r3, [r7, #48] @ 0x30
  54138. 8016702: 6ada ldr r2, [r3, #44] @ 0x2c
  54139. 8016704: 4b1c ldr r3, [pc, #112] @ (8016778 <xTaskGenericNotifyFromISR+0x1b8>)
  54140. 8016706: 681b ldr r3, [r3, #0]
  54141. 8016708: 429a cmp r2, r3
  54142. 801670a: d903 bls.n 8016714 <xTaskGenericNotifyFromISR+0x154>
  54143. 801670c: 6b3b ldr r3, [r7, #48] @ 0x30
  54144. 801670e: 6adb ldr r3, [r3, #44] @ 0x2c
  54145. 8016710: 4a19 ldr r2, [pc, #100] @ (8016778 <xTaskGenericNotifyFromISR+0x1b8>)
  54146. 8016712: 6013 str r3, [r2, #0]
  54147. 8016714: 6b3b ldr r3, [r7, #48] @ 0x30
  54148. 8016716: 6ada ldr r2, [r3, #44] @ 0x2c
  54149. 8016718: 4613 mov r3, r2
  54150. 801671a: 009b lsls r3, r3, #2
  54151. 801671c: 4413 add r3, r2
  54152. 801671e: 009b lsls r3, r3, #2
  54153. 8016720: 4a16 ldr r2, [pc, #88] @ (801677c <xTaskGenericNotifyFromISR+0x1bc>)
  54154. 8016722: 441a add r2, r3
  54155. 8016724: 6b3b ldr r3, [r7, #48] @ 0x30
  54156. 8016726: 3304 adds r3, #4
  54157. 8016728: 4619 mov r1, r3
  54158. 801672a: 4610 mov r0, r2
  54159. 801672c: f7fd fc1d bl 8013f6a <vListInsertEnd>
  54160. 8016730: e005 b.n 801673e <xTaskGenericNotifyFromISR+0x17e>
  54161. }
  54162. else
  54163. {
  54164. /* The delayed and ready lists cannot be accessed, so hold
  54165. this task pending until the scheduler is resumed. */
  54166. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  54167. 8016732: 6b3b ldr r3, [r7, #48] @ 0x30
  54168. 8016734: 3318 adds r3, #24
  54169. 8016736: 4619 mov r1, r3
  54170. 8016738: 4811 ldr r0, [pc, #68] @ (8016780 <xTaskGenericNotifyFromISR+0x1c0>)
  54171. 801673a: f7fd fc16 bl 8013f6a <vListInsertEnd>
  54172. }
  54173. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  54174. 801673e: 6b3b ldr r3, [r7, #48] @ 0x30
  54175. 8016740: 6ada ldr r2, [r3, #44] @ 0x2c
  54176. 8016742: 4b10 ldr r3, [pc, #64] @ (8016784 <xTaskGenericNotifyFromISR+0x1c4>)
  54177. 8016744: 681b ldr r3, [r3, #0]
  54178. 8016746: 6adb ldr r3, [r3, #44] @ 0x2c
  54179. 8016748: 429a cmp r2, r3
  54180. 801674a: d908 bls.n 801675e <xTaskGenericNotifyFromISR+0x19e>
  54181. {
  54182. /* The notified task has a priority above the currently
  54183. executing task so a yield is required. */
  54184. if( pxHigherPriorityTaskWoken != NULL )
  54185. 801674c: 6c3b ldr r3, [r7, #64] @ 0x40
  54186. 801674e: 2b00 cmp r3, #0
  54187. 8016750: d002 beq.n 8016758 <xTaskGenericNotifyFromISR+0x198>
  54188. {
  54189. *pxHigherPriorityTaskWoken = pdTRUE;
  54190. 8016752: 6c3b ldr r3, [r7, #64] @ 0x40
  54191. 8016754: 2201 movs r2, #1
  54192. 8016756: 601a str r2, [r3, #0]
  54193. }
  54194. /* Mark that a yield is pending in case the user is not
  54195. using the "xHigherPriorityTaskWoken" parameter to an ISR
  54196. safe FreeRTOS function. */
  54197. xYieldPending = pdTRUE;
  54198. 8016758: 4b0b ldr r3, [pc, #44] @ (8016788 <xTaskGenericNotifyFromISR+0x1c8>)
  54199. 801675a: 2201 movs r2, #1
  54200. 801675c: 601a str r2, [r3, #0]
  54201. 801675e: 6afb ldr r3, [r7, #44] @ 0x2c
  54202. 8016760: 613b str r3, [r7, #16]
  54203. __asm volatile
  54204. 8016762: 693b ldr r3, [r7, #16]
  54205. 8016764: f383 8811 msr BASEPRI, r3
  54206. }
  54207. 8016768: bf00 nop
  54208. }
  54209. }
  54210. }
  54211. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  54212. return xReturn;
  54213. 801676a: 6b7b ldr r3, [r7, #52] @ 0x34
  54214. }
  54215. 801676c: 4618 mov r0, r3
  54216. 801676e: 3738 adds r7, #56 @ 0x38
  54217. 8016770: 46bd mov sp, r7
  54218. 8016772: bd80 pop {r7, pc}
  54219. 8016774: 24002b3c .word 0x24002b3c
  54220. 8016778: 24002b1c .word 0x24002b1c
  54221. 801677c: 24002644 .word 0x24002644
  54222. 8016780: 24002ad4 .word 0x24002ad4
  54223. 8016784: 24002640 .word 0x24002640
  54224. 8016788: 24002b28 .word 0x24002b28
  54225. 0801678c <xTaskNotifyStateClear>:
  54226. /*-----------------------------------------------------------*/
  54227. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54228. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  54229. {
  54230. 801678c: b580 push {r7, lr}
  54231. 801678e: b084 sub sp, #16
  54232. 8016790: af00 add r7, sp, #0
  54233. 8016792: 6078 str r0, [r7, #4]
  54234. TCB_t *pxTCB;
  54235. BaseType_t xReturn;
  54236. /* If null is passed in here then it is the calling task that is having
  54237. its notification state cleared. */
  54238. pxTCB = prvGetTCBFromHandle( xTask );
  54239. 8016794: 687b ldr r3, [r7, #4]
  54240. 8016796: 2b00 cmp r3, #0
  54241. 8016798: d102 bne.n 80167a0 <xTaskNotifyStateClear+0x14>
  54242. 801679a: 4b0e ldr r3, [pc, #56] @ (80167d4 <xTaskNotifyStateClear+0x48>)
  54243. 801679c: 681b ldr r3, [r3, #0]
  54244. 801679e: e000 b.n 80167a2 <xTaskNotifyStateClear+0x16>
  54245. 80167a0: 687b ldr r3, [r7, #4]
  54246. 80167a2: 60bb str r3, [r7, #8]
  54247. taskENTER_CRITICAL();
  54248. 80167a4: f000 fde0 bl 8017368 <vPortEnterCritical>
  54249. {
  54250. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  54251. 80167a8: 68bb ldr r3, [r7, #8]
  54252. 80167aa: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54253. 80167ae: b2db uxtb r3, r3
  54254. 80167b0: 2b02 cmp r3, #2
  54255. 80167b2: d106 bne.n 80167c2 <xTaskNotifyStateClear+0x36>
  54256. {
  54257. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  54258. 80167b4: 68bb ldr r3, [r7, #8]
  54259. 80167b6: 2200 movs r2, #0
  54260. 80167b8: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54261. xReturn = pdPASS;
  54262. 80167bc: 2301 movs r3, #1
  54263. 80167be: 60fb str r3, [r7, #12]
  54264. 80167c0: e001 b.n 80167c6 <xTaskNotifyStateClear+0x3a>
  54265. }
  54266. else
  54267. {
  54268. xReturn = pdFAIL;
  54269. 80167c2: 2300 movs r3, #0
  54270. 80167c4: 60fb str r3, [r7, #12]
  54271. }
  54272. }
  54273. taskEXIT_CRITICAL();
  54274. 80167c6: f000 fe01 bl 80173cc <vPortExitCritical>
  54275. return xReturn;
  54276. 80167ca: 68fb ldr r3, [r7, #12]
  54277. }
  54278. 80167cc: 4618 mov r0, r3
  54279. 80167ce: 3710 adds r7, #16
  54280. 80167d0: 46bd mov sp, r7
  54281. 80167d2: bd80 pop {r7, pc}
  54282. 80167d4: 24002640 .word 0x24002640
  54283. 080167d8 <prvAddCurrentTaskToDelayedList>:
  54284. #endif
  54285. /*-----------------------------------------------------------*/
  54286. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  54287. {
  54288. 80167d8: b580 push {r7, lr}
  54289. 80167da: b084 sub sp, #16
  54290. 80167dc: af00 add r7, sp, #0
  54291. 80167de: 6078 str r0, [r7, #4]
  54292. 80167e0: 6039 str r1, [r7, #0]
  54293. TickType_t xTimeToWake;
  54294. const TickType_t xConstTickCount = xTickCount;
  54295. 80167e2: 4b21 ldr r3, [pc, #132] @ (8016868 <prvAddCurrentTaskToDelayedList+0x90>)
  54296. 80167e4: 681b ldr r3, [r3, #0]
  54297. 80167e6: 60fb str r3, [r7, #12]
  54298. }
  54299. #endif
  54300. /* Remove the task from the ready list before adding it to the blocked list
  54301. as the same list item is used for both lists. */
  54302. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54303. 80167e8: 4b20 ldr r3, [pc, #128] @ (801686c <prvAddCurrentTaskToDelayedList+0x94>)
  54304. 80167ea: 681b ldr r3, [r3, #0]
  54305. 80167ec: 3304 adds r3, #4
  54306. 80167ee: 4618 mov r0, r3
  54307. 80167f0: f7fd fc18 bl 8014024 <uxListRemove>
  54308. mtCOVERAGE_TEST_MARKER();
  54309. }
  54310. #if ( INCLUDE_vTaskSuspend == 1 )
  54311. {
  54312. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  54313. 80167f4: 687b ldr r3, [r7, #4]
  54314. 80167f6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54315. 80167fa: d10a bne.n 8016812 <prvAddCurrentTaskToDelayedList+0x3a>
  54316. 80167fc: 683b ldr r3, [r7, #0]
  54317. 80167fe: 2b00 cmp r3, #0
  54318. 8016800: d007 beq.n 8016812 <prvAddCurrentTaskToDelayedList+0x3a>
  54319. {
  54320. /* Add the task to the suspended task list instead of a delayed task
  54321. list to ensure it is not woken by a timing event. It will block
  54322. indefinitely. */
  54323. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54324. 8016802: 4b1a ldr r3, [pc, #104] @ (801686c <prvAddCurrentTaskToDelayedList+0x94>)
  54325. 8016804: 681b ldr r3, [r3, #0]
  54326. 8016806: 3304 adds r3, #4
  54327. 8016808: 4619 mov r1, r3
  54328. 801680a: 4819 ldr r0, [pc, #100] @ (8016870 <prvAddCurrentTaskToDelayedList+0x98>)
  54329. 801680c: f7fd fbad bl 8013f6a <vListInsertEnd>
  54330. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  54331. ( void ) xCanBlockIndefinitely;
  54332. }
  54333. #endif /* INCLUDE_vTaskSuspend */
  54334. }
  54335. 8016810: e026 b.n 8016860 <prvAddCurrentTaskToDelayedList+0x88>
  54336. xTimeToWake = xConstTickCount + xTicksToWait;
  54337. 8016812: 68fa ldr r2, [r7, #12]
  54338. 8016814: 687b ldr r3, [r7, #4]
  54339. 8016816: 4413 add r3, r2
  54340. 8016818: 60bb str r3, [r7, #8]
  54341. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  54342. 801681a: 4b14 ldr r3, [pc, #80] @ (801686c <prvAddCurrentTaskToDelayedList+0x94>)
  54343. 801681c: 681b ldr r3, [r3, #0]
  54344. 801681e: 68ba ldr r2, [r7, #8]
  54345. 8016820: 605a str r2, [r3, #4]
  54346. if( xTimeToWake < xConstTickCount )
  54347. 8016822: 68ba ldr r2, [r7, #8]
  54348. 8016824: 68fb ldr r3, [r7, #12]
  54349. 8016826: 429a cmp r2, r3
  54350. 8016828: d209 bcs.n 801683e <prvAddCurrentTaskToDelayedList+0x66>
  54351. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54352. 801682a: 4b12 ldr r3, [pc, #72] @ (8016874 <prvAddCurrentTaskToDelayedList+0x9c>)
  54353. 801682c: 681a ldr r2, [r3, #0]
  54354. 801682e: 4b0f ldr r3, [pc, #60] @ (801686c <prvAddCurrentTaskToDelayedList+0x94>)
  54355. 8016830: 681b ldr r3, [r3, #0]
  54356. 8016832: 3304 adds r3, #4
  54357. 8016834: 4619 mov r1, r3
  54358. 8016836: 4610 mov r0, r2
  54359. 8016838: f7fd fbbb bl 8013fb2 <vListInsert>
  54360. }
  54361. 801683c: e010 b.n 8016860 <prvAddCurrentTaskToDelayedList+0x88>
  54362. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54363. 801683e: 4b0e ldr r3, [pc, #56] @ (8016878 <prvAddCurrentTaskToDelayedList+0xa0>)
  54364. 8016840: 681a ldr r2, [r3, #0]
  54365. 8016842: 4b0a ldr r3, [pc, #40] @ (801686c <prvAddCurrentTaskToDelayedList+0x94>)
  54366. 8016844: 681b ldr r3, [r3, #0]
  54367. 8016846: 3304 adds r3, #4
  54368. 8016848: 4619 mov r1, r3
  54369. 801684a: 4610 mov r0, r2
  54370. 801684c: f7fd fbb1 bl 8013fb2 <vListInsert>
  54371. if( xTimeToWake < xNextTaskUnblockTime )
  54372. 8016850: 4b0a ldr r3, [pc, #40] @ (801687c <prvAddCurrentTaskToDelayedList+0xa4>)
  54373. 8016852: 681b ldr r3, [r3, #0]
  54374. 8016854: 68ba ldr r2, [r7, #8]
  54375. 8016856: 429a cmp r2, r3
  54376. 8016858: d202 bcs.n 8016860 <prvAddCurrentTaskToDelayedList+0x88>
  54377. xNextTaskUnblockTime = xTimeToWake;
  54378. 801685a: 4a08 ldr r2, [pc, #32] @ (801687c <prvAddCurrentTaskToDelayedList+0xa4>)
  54379. 801685c: 68bb ldr r3, [r7, #8]
  54380. 801685e: 6013 str r3, [r2, #0]
  54381. }
  54382. 8016860: bf00 nop
  54383. 8016862: 3710 adds r7, #16
  54384. 8016864: 46bd mov sp, r7
  54385. 8016866: bd80 pop {r7, pc}
  54386. 8016868: 24002b18 .word 0x24002b18
  54387. 801686c: 24002640 .word 0x24002640
  54388. 8016870: 24002b00 .word 0x24002b00
  54389. 8016874: 24002ad0 .word 0x24002ad0
  54390. 8016878: 24002acc .word 0x24002acc
  54391. 801687c: 24002b34 .word 0x24002b34
  54392. 08016880 <xTimerCreateTimerTask>:
  54393. TimerCallbackFunction_t pxCallbackFunction,
  54394. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  54395. /*-----------------------------------------------------------*/
  54396. BaseType_t xTimerCreateTimerTask( void )
  54397. {
  54398. 8016880: b580 push {r7, lr}
  54399. 8016882: b08a sub sp, #40 @ 0x28
  54400. 8016884: af04 add r7, sp, #16
  54401. BaseType_t xReturn = pdFAIL;
  54402. 8016886: 2300 movs r3, #0
  54403. 8016888: 617b str r3, [r7, #20]
  54404. /* This function is called when the scheduler is started if
  54405. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  54406. timer service task has been created/initialised. If timers have already
  54407. been created then the initialisation will already have been performed. */
  54408. prvCheckForValidListAndQueue();
  54409. 801688a: f000 fbb1 bl 8016ff0 <prvCheckForValidListAndQueue>
  54410. if( xTimerQueue != NULL )
  54411. 801688e: 4b1d ldr r3, [pc, #116] @ (8016904 <xTimerCreateTimerTask+0x84>)
  54412. 8016890: 681b ldr r3, [r3, #0]
  54413. 8016892: 2b00 cmp r3, #0
  54414. 8016894: d021 beq.n 80168da <xTimerCreateTimerTask+0x5a>
  54415. {
  54416. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  54417. {
  54418. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  54419. 8016896: 2300 movs r3, #0
  54420. 8016898: 60fb str r3, [r7, #12]
  54421. StackType_t *pxTimerTaskStackBuffer = NULL;
  54422. 801689a: 2300 movs r3, #0
  54423. 801689c: 60bb str r3, [r7, #8]
  54424. uint32_t ulTimerTaskStackSize;
  54425. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  54426. 801689e: 1d3a adds r2, r7, #4
  54427. 80168a0: f107 0108 add.w r1, r7, #8
  54428. 80168a4: f107 030c add.w r3, r7, #12
  54429. 80168a8: 4618 mov r0, r3
  54430. 80168aa: f7fd fb17 bl 8013edc <vApplicationGetTimerTaskMemory>
  54431. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  54432. 80168ae: 6879 ldr r1, [r7, #4]
  54433. 80168b0: 68bb ldr r3, [r7, #8]
  54434. 80168b2: 68fa ldr r2, [r7, #12]
  54435. 80168b4: 9202 str r2, [sp, #8]
  54436. 80168b6: 9301 str r3, [sp, #4]
  54437. 80168b8: 2302 movs r3, #2
  54438. 80168ba: 9300 str r3, [sp, #0]
  54439. 80168bc: 2300 movs r3, #0
  54440. 80168be: 460a mov r2, r1
  54441. 80168c0: 4911 ldr r1, [pc, #68] @ (8016908 <xTimerCreateTimerTask+0x88>)
  54442. 80168c2: 4812 ldr r0, [pc, #72] @ (801690c <xTimerCreateTimerTask+0x8c>)
  54443. 80168c4: f7fe fd2f bl 8015326 <xTaskCreateStatic>
  54444. 80168c8: 4603 mov r3, r0
  54445. 80168ca: 4a11 ldr r2, [pc, #68] @ (8016910 <xTimerCreateTimerTask+0x90>)
  54446. 80168cc: 6013 str r3, [r2, #0]
  54447. NULL,
  54448. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  54449. pxTimerTaskStackBuffer,
  54450. pxTimerTaskTCBBuffer );
  54451. if( xTimerTaskHandle != NULL )
  54452. 80168ce: 4b10 ldr r3, [pc, #64] @ (8016910 <xTimerCreateTimerTask+0x90>)
  54453. 80168d0: 681b ldr r3, [r3, #0]
  54454. 80168d2: 2b00 cmp r3, #0
  54455. 80168d4: d001 beq.n 80168da <xTimerCreateTimerTask+0x5a>
  54456. {
  54457. xReturn = pdPASS;
  54458. 80168d6: 2301 movs r3, #1
  54459. 80168d8: 617b str r3, [r7, #20]
  54460. else
  54461. {
  54462. mtCOVERAGE_TEST_MARKER();
  54463. }
  54464. configASSERT( xReturn );
  54465. 80168da: 697b ldr r3, [r7, #20]
  54466. 80168dc: 2b00 cmp r3, #0
  54467. 80168de: d10b bne.n 80168f8 <xTimerCreateTimerTask+0x78>
  54468. __asm volatile
  54469. 80168e0: f04f 0350 mov.w r3, #80 @ 0x50
  54470. 80168e4: f383 8811 msr BASEPRI, r3
  54471. 80168e8: f3bf 8f6f isb sy
  54472. 80168ec: f3bf 8f4f dsb sy
  54473. 80168f0: 613b str r3, [r7, #16]
  54474. }
  54475. 80168f2: bf00 nop
  54476. 80168f4: bf00 nop
  54477. 80168f6: e7fd b.n 80168f4 <xTimerCreateTimerTask+0x74>
  54478. return xReturn;
  54479. 80168f8: 697b ldr r3, [r7, #20]
  54480. }
  54481. 80168fa: 4618 mov r0, r3
  54482. 80168fc: 3718 adds r7, #24
  54483. 80168fe: 46bd mov sp, r7
  54484. 8016900: bd80 pop {r7, pc}
  54485. 8016902: bf00 nop
  54486. 8016904: 24002b70 .word 0x24002b70
  54487. 8016908: 080189b4 .word 0x080189b4
  54488. 801690c: 08016b89 .word 0x08016b89
  54489. 8016910: 24002b74 .word 0x24002b74
  54490. 08016914 <xTimerCreate>:
  54491. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  54492. const TickType_t xTimerPeriodInTicks,
  54493. const UBaseType_t uxAutoReload,
  54494. void * const pvTimerID,
  54495. TimerCallbackFunction_t pxCallbackFunction )
  54496. {
  54497. 8016914: b580 push {r7, lr}
  54498. 8016916: b088 sub sp, #32
  54499. 8016918: af02 add r7, sp, #8
  54500. 801691a: 60f8 str r0, [r7, #12]
  54501. 801691c: 60b9 str r1, [r7, #8]
  54502. 801691e: 607a str r2, [r7, #4]
  54503. 8016920: 603b str r3, [r7, #0]
  54504. Timer_t *pxNewTimer;
  54505. pxNewTimer = ( Timer_t * ) pvPortMalloc( sizeof( Timer_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of Timer_t is always a pointer to the timer's mame. */
  54506. 8016922: 202c movs r0, #44 @ 0x2c
  54507. 8016924: f000 fe42 bl 80175ac <pvPortMalloc>
  54508. 8016928: 6178 str r0, [r7, #20]
  54509. if( pxNewTimer != NULL )
  54510. 801692a: 697b ldr r3, [r7, #20]
  54511. 801692c: 2b00 cmp r3, #0
  54512. 801692e: d00d beq.n 801694c <xTimerCreate+0x38>
  54513. {
  54514. /* Status is thus far zero as the timer is not created statically
  54515. and has not been started. The auto-reload bit may get set in
  54516. prvInitialiseNewTimer. */
  54517. pxNewTimer->ucStatus = 0x00;
  54518. 8016930: 697b ldr r3, [r7, #20]
  54519. 8016932: 2200 movs r2, #0
  54520. 8016934: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54521. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  54522. 8016938: 697b ldr r3, [r7, #20]
  54523. 801693a: 9301 str r3, [sp, #4]
  54524. 801693c: 6a3b ldr r3, [r7, #32]
  54525. 801693e: 9300 str r3, [sp, #0]
  54526. 8016940: 683b ldr r3, [r7, #0]
  54527. 8016942: 687a ldr r2, [r7, #4]
  54528. 8016944: 68b9 ldr r1, [r7, #8]
  54529. 8016946: 68f8 ldr r0, [r7, #12]
  54530. 8016948: f000 f845 bl 80169d6 <prvInitialiseNewTimer>
  54531. }
  54532. return pxNewTimer;
  54533. 801694c: 697b ldr r3, [r7, #20]
  54534. }
  54535. 801694e: 4618 mov r0, r3
  54536. 8016950: 3718 adds r7, #24
  54537. 8016952: 46bd mov sp, r7
  54538. 8016954: bd80 pop {r7, pc}
  54539. 08016956 <xTimerCreateStatic>:
  54540. const TickType_t xTimerPeriodInTicks,
  54541. const UBaseType_t uxAutoReload,
  54542. void * const pvTimerID,
  54543. TimerCallbackFunction_t pxCallbackFunction,
  54544. StaticTimer_t *pxTimerBuffer )
  54545. {
  54546. 8016956: b580 push {r7, lr}
  54547. 8016958: b08a sub sp, #40 @ 0x28
  54548. 801695a: af02 add r7, sp, #8
  54549. 801695c: 60f8 str r0, [r7, #12]
  54550. 801695e: 60b9 str r1, [r7, #8]
  54551. 8016960: 607a str r2, [r7, #4]
  54552. 8016962: 603b str r3, [r7, #0]
  54553. #if( configASSERT_DEFINED == 1 )
  54554. {
  54555. /* Sanity check that the size of the structure used to declare a
  54556. variable of type StaticTimer_t equals the size of the real timer
  54557. structure. */
  54558. volatile size_t xSize = sizeof( StaticTimer_t );
  54559. 8016964: 232c movs r3, #44 @ 0x2c
  54560. 8016966: 613b str r3, [r7, #16]
  54561. configASSERT( xSize == sizeof( Timer_t ) );
  54562. 8016968: 693b ldr r3, [r7, #16]
  54563. 801696a: 2b2c cmp r3, #44 @ 0x2c
  54564. 801696c: d00b beq.n 8016986 <xTimerCreateStatic+0x30>
  54565. __asm volatile
  54566. 801696e: f04f 0350 mov.w r3, #80 @ 0x50
  54567. 8016972: f383 8811 msr BASEPRI, r3
  54568. 8016976: f3bf 8f6f isb sy
  54569. 801697a: f3bf 8f4f dsb sy
  54570. 801697e: 61bb str r3, [r7, #24]
  54571. }
  54572. 8016980: bf00 nop
  54573. 8016982: bf00 nop
  54574. 8016984: e7fd b.n 8016982 <xTimerCreateStatic+0x2c>
  54575. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  54576. 8016986: 693b ldr r3, [r7, #16]
  54577. }
  54578. #endif /* configASSERT_DEFINED */
  54579. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  54580. configASSERT( pxTimerBuffer );
  54581. 8016988: 6afb ldr r3, [r7, #44] @ 0x2c
  54582. 801698a: 2b00 cmp r3, #0
  54583. 801698c: d10b bne.n 80169a6 <xTimerCreateStatic+0x50>
  54584. __asm volatile
  54585. 801698e: f04f 0350 mov.w r3, #80 @ 0x50
  54586. 8016992: f383 8811 msr BASEPRI, r3
  54587. 8016996: f3bf 8f6f isb sy
  54588. 801699a: f3bf 8f4f dsb sy
  54589. 801699e: 617b str r3, [r7, #20]
  54590. }
  54591. 80169a0: bf00 nop
  54592. 80169a2: bf00 nop
  54593. 80169a4: e7fd b.n 80169a2 <xTimerCreateStatic+0x4c>
  54594. pxNewTimer = ( Timer_t * ) pxTimerBuffer; /*lint !e740 !e9087 StaticTimer_t is a pointer to a Timer_t, so guaranteed to be aligned and sized correctly (checked by an assert()), so this is safe. */
  54595. 80169a6: 6afb ldr r3, [r7, #44] @ 0x2c
  54596. 80169a8: 61fb str r3, [r7, #28]
  54597. if( pxNewTimer != NULL )
  54598. 80169aa: 69fb ldr r3, [r7, #28]
  54599. 80169ac: 2b00 cmp r3, #0
  54600. 80169ae: d00d beq.n 80169cc <xTimerCreateStatic+0x76>
  54601. {
  54602. /* Timers can be created statically or dynamically so note this
  54603. timer was created statically in case it is later deleted. The
  54604. auto-reload bit may get set in prvInitialiseNewTimer(). */
  54605. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  54606. 80169b0: 69fb ldr r3, [r7, #28]
  54607. 80169b2: 2202 movs r2, #2
  54608. 80169b4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54609. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  54610. 80169b8: 69fb ldr r3, [r7, #28]
  54611. 80169ba: 9301 str r3, [sp, #4]
  54612. 80169bc: 6abb ldr r3, [r7, #40] @ 0x28
  54613. 80169be: 9300 str r3, [sp, #0]
  54614. 80169c0: 683b ldr r3, [r7, #0]
  54615. 80169c2: 687a ldr r2, [r7, #4]
  54616. 80169c4: 68b9 ldr r1, [r7, #8]
  54617. 80169c6: 68f8 ldr r0, [r7, #12]
  54618. 80169c8: f000 f805 bl 80169d6 <prvInitialiseNewTimer>
  54619. }
  54620. return pxNewTimer;
  54621. 80169cc: 69fb ldr r3, [r7, #28]
  54622. }
  54623. 80169ce: 4618 mov r0, r3
  54624. 80169d0: 3720 adds r7, #32
  54625. 80169d2: 46bd mov sp, r7
  54626. 80169d4: bd80 pop {r7, pc}
  54627. 080169d6 <prvInitialiseNewTimer>:
  54628. const TickType_t xTimerPeriodInTicks,
  54629. const UBaseType_t uxAutoReload,
  54630. void * const pvTimerID,
  54631. TimerCallbackFunction_t pxCallbackFunction,
  54632. Timer_t *pxNewTimer )
  54633. {
  54634. 80169d6: b580 push {r7, lr}
  54635. 80169d8: b086 sub sp, #24
  54636. 80169da: af00 add r7, sp, #0
  54637. 80169dc: 60f8 str r0, [r7, #12]
  54638. 80169de: 60b9 str r1, [r7, #8]
  54639. 80169e0: 607a str r2, [r7, #4]
  54640. 80169e2: 603b str r3, [r7, #0]
  54641. /* 0 is not a valid value for xTimerPeriodInTicks. */
  54642. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  54643. 80169e4: 68bb ldr r3, [r7, #8]
  54644. 80169e6: 2b00 cmp r3, #0
  54645. 80169e8: d10b bne.n 8016a02 <prvInitialiseNewTimer+0x2c>
  54646. __asm volatile
  54647. 80169ea: f04f 0350 mov.w r3, #80 @ 0x50
  54648. 80169ee: f383 8811 msr BASEPRI, r3
  54649. 80169f2: f3bf 8f6f isb sy
  54650. 80169f6: f3bf 8f4f dsb sy
  54651. 80169fa: 617b str r3, [r7, #20]
  54652. }
  54653. 80169fc: bf00 nop
  54654. 80169fe: bf00 nop
  54655. 8016a00: e7fd b.n 80169fe <prvInitialiseNewTimer+0x28>
  54656. if( pxNewTimer != NULL )
  54657. 8016a02: 6a7b ldr r3, [r7, #36] @ 0x24
  54658. 8016a04: 2b00 cmp r3, #0
  54659. 8016a06: d01e beq.n 8016a46 <prvInitialiseNewTimer+0x70>
  54660. {
  54661. /* Ensure the infrastructure used by the timer service task has been
  54662. created/initialised. */
  54663. prvCheckForValidListAndQueue();
  54664. 8016a08: f000 faf2 bl 8016ff0 <prvCheckForValidListAndQueue>
  54665. /* Initialise the timer structure members using the function
  54666. parameters. */
  54667. pxNewTimer->pcTimerName = pcTimerName;
  54668. 8016a0c: 6a7b ldr r3, [r7, #36] @ 0x24
  54669. 8016a0e: 68fa ldr r2, [r7, #12]
  54670. 8016a10: 601a str r2, [r3, #0]
  54671. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  54672. 8016a12: 6a7b ldr r3, [r7, #36] @ 0x24
  54673. 8016a14: 68ba ldr r2, [r7, #8]
  54674. 8016a16: 619a str r2, [r3, #24]
  54675. pxNewTimer->pvTimerID = pvTimerID;
  54676. 8016a18: 6a7b ldr r3, [r7, #36] @ 0x24
  54677. 8016a1a: 683a ldr r2, [r7, #0]
  54678. 8016a1c: 61da str r2, [r3, #28]
  54679. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  54680. 8016a1e: 6a7b ldr r3, [r7, #36] @ 0x24
  54681. 8016a20: 6a3a ldr r2, [r7, #32]
  54682. 8016a22: 621a str r2, [r3, #32]
  54683. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  54684. 8016a24: 6a7b ldr r3, [r7, #36] @ 0x24
  54685. 8016a26: 3304 adds r3, #4
  54686. 8016a28: 4618 mov r0, r3
  54687. 8016a2a: f7fd fa91 bl 8013f50 <vListInitialiseItem>
  54688. if( uxAutoReload != pdFALSE )
  54689. 8016a2e: 687b ldr r3, [r7, #4]
  54690. 8016a30: 2b00 cmp r3, #0
  54691. 8016a32: d008 beq.n 8016a46 <prvInitialiseNewTimer+0x70>
  54692. {
  54693. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  54694. 8016a34: 6a7b ldr r3, [r7, #36] @ 0x24
  54695. 8016a36: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54696. 8016a3a: f043 0304 orr.w r3, r3, #4
  54697. 8016a3e: b2da uxtb r2, r3
  54698. 8016a40: 6a7b ldr r3, [r7, #36] @ 0x24
  54699. 8016a42: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54700. }
  54701. traceTIMER_CREATE( pxNewTimer );
  54702. }
  54703. }
  54704. 8016a46: bf00 nop
  54705. 8016a48: 3718 adds r7, #24
  54706. 8016a4a: 46bd mov sp, r7
  54707. 8016a4c: bd80 pop {r7, pc}
  54708. ...
  54709. 08016a50 <xTimerGenericCommand>:
  54710. /*-----------------------------------------------------------*/
  54711. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  54712. {
  54713. 8016a50: b580 push {r7, lr}
  54714. 8016a52: b08a sub sp, #40 @ 0x28
  54715. 8016a54: af00 add r7, sp, #0
  54716. 8016a56: 60f8 str r0, [r7, #12]
  54717. 8016a58: 60b9 str r1, [r7, #8]
  54718. 8016a5a: 607a str r2, [r7, #4]
  54719. 8016a5c: 603b str r3, [r7, #0]
  54720. BaseType_t xReturn = pdFAIL;
  54721. 8016a5e: 2300 movs r3, #0
  54722. 8016a60: 627b str r3, [r7, #36] @ 0x24
  54723. DaemonTaskMessage_t xMessage;
  54724. configASSERT( xTimer );
  54725. 8016a62: 68fb ldr r3, [r7, #12]
  54726. 8016a64: 2b00 cmp r3, #0
  54727. 8016a66: d10b bne.n 8016a80 <xTimerGenericCommand+0x30>
  54728. __asm volatile
  54729. 8016a68: f04f 0350 mov.w r3, #80 @ 0x50
  54730. 8016a6c: f383 8811 msr BASEPRI, r3
  54731. 8016a70: f3bf 8f6f isb sy
  54732. 8016a74: f3bf 8f4f dsb sy
  54733. 8016a78: 623b str r3, [r7, #32]
  54734. }
  54735. 8016a7a: bf00 nop
  54736. 8016a7c: bf00 nop
  54737. 8016a7e: e7fd b.n 8016a7c <xTimerGenericCommand+0x2c>
  54738. /* Send a message to the timer service task to perform a particular action
  54739. on a particular timer definition. */
  54740. if( xTimerQueue != NULL )
  54741. 8016a80: 4b19 ldr r3, [pc, #100] @ (8016ae8 <xTimerGenericCommand+0x98>)
  54742. 8016a82: 681b ldr r3, [r3, #0]
  54743. 8016a84: 2b00 cmp r3, #0
  54744. 8016a86: d02a beq.n 8016ade <xTimerGenericCommand+0x8e>
  54745. {
  54746. /* Send a command to the timer service task to start the xTimer timer. */
  54747. xMessage.xMessageID = xCommandID;
  54748. 8016a88: 68bb ldr r3, [r7, #8]
  54749. 8016a8a: 613b str r3, [r7, #16]
  54750. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  54751. 8016a8c: 687b ldr r3, [r7, #4]
  54752. 8016a8e: 617b str r3, [r7, #20]
  54753. xMessage.u.xTimerParameters.pxTimer = xTimer;
  54754. 8016a90: 68fb ldr r3, [r7, #12]
  54755. 8016a92: 61bb str r3, [r7, #24]
  54756. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  54757. 8016a94: 68bb ldr r3, [r7, #8]
  54758. 8016a96: 2b05 cmp r3, #5
  54759. 8016a98: dc18 bgt.n 8016acc <xTimerGenericCommand+0x7c>
  54760. {
  54761. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  54762. 8016a9a: f7ff fae1 bl 8016060 <xTaskGetSchedulerState>
  54763. 8016a9e: 4603 mov r3, r0
  54764. 8016aa0: 2b02 cmp r3, #2
  54765. 8016aa2: d109 bne.n 8016ab8 <xTimerGenericCommand+0x68>
  54766. {
  54767. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  54768. 8016aa4: 4b10 ldr r3, [pc, #64] @ (8016ae8 <xTimerGenericCommand+0x98>)
  54769. 8016aa6: 6818 ldr r0, [r3, #0]
  54770. 8016aa8: f107 0110 add.w r1, r7, #16
  54771. 8016aac: 2300 movs r3, #0
  54772. 8016aae: 6b3a ldr r2, [r7, #48] @ 0x30
  54773. 8016ab0: f7fd fce0 bl 8014474 <xQueueGenericSend>
  54774. 8016ab4: 6278 str r0, [r7, #36] @ 0x24
  54775. 8016ab6: e012 b.n 8016ade <xTimerGenericCommand+0x8e>
  54776. }
  54777. else
  54778. {
  54779. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  54780. 8016ab8: 4b0b ldr r3, [pc, #44] @ (8016ae8 <xTimerGenericCommand+0x98>)
  54781. 8016aba: 6818 ldr r0, [r3, #0]
  54782. 8016abc: f107 0110 add.w r1, r7, #16
  54783. 8016ac0: 2300 movs r3, #0
  54784. 8016ac2: 2200 movs r2, #0
  54785. 8016ac4: f7fd fcd6 bl 8014474 <xQueueGenericSend>
  54786. 8016ac8: 6278 str r0, [r7, #36] @ 0x24
  54787. 8016aca: e008 b.n 8016ade <xTimerGenericCommand+0x8e>
  54788. }
  54789. }
  54790. else
  54791. {
  54792. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  54793. 8016acc: 4b06 ldr r3, [pc, #24] @ (8016ae8 <xTimerGenericCommand+0x98>)
  54794. 8016ace: 6818 ldr r0, [r3, #0]
  54795. 8016ad0: f107 0110 add.w r1, r7, #16
  54796. 8016ad4: 2300 movs r3, #0
  54797. 8016ad6: 683a ldr r2, [r7, #0]
  54798. 8016ad8: f7fd fdce bl 8014678 <xQueueGenericSendFromISR>
  54799. 8016adc: 6278 str r0, [r7, #36] @ 0x24
  54800. else
  54801. {
  54802. mtCOVERAGE_TEST_MARKER();
  54803. }
  54804. return xReturn;
  54805. 8016ade: 6a7b ldr r3, [r7, #36] @ 0x24
  54806. }
  54807. 8016ae0: 4618 mov r0, r3
  54808. 8016ae2: 3728 adds r7, #40 @ 0x28
  54809. 8016ae4: 46bd mov sp, r7
  54810. 8016ae6: bd80 pop {r7, pc}
  54811. 8016ae8: 24002b70 .word 0x24002b70
  54812. 08016aec <prvProcessExpiredTimer>:
  54813. return pxTimer->pcTimerName;
  54814. }
  54815. /*-----------------------------------------------------------*/
  54816. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  54817. {
  54818. 8016aec: b580 push {r7, lr}
  54819. 8016aee: b088 sub sp, #32
  54820. 8016af0: af02 add r7, sp, #8
  54821. 8016af2: 6078 str r0, [r7, #4]
  54822. 8016af4: 6039 str r1, [r7, #0]
  54823. BaseType_t xResult;
  54824. Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  54825. 8016af6: 4b23 ldr r3, [pc, #140] @ (8016b84 <prvProcessExpiredTimer+0x98>)
  54826. 8016af8: 681b ldr r3, [r3, #0]
  54827. 8016afa: 68db ldr r3, [r3, #12]
  54828. 8016afc: 68db ldr r3, [r3, #12]
  54829. 8016afe: 617b str r3, [r7, #20]
  54830. /* Remove the timer from the list of active timers. A check has already
  54831. been performed to ensure the list is not empty. */
  54832. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  54833. 8016b00: 697b ldr r3, [r7, #20]
  54834. 8016b02: 3304 adds r3, #4
  54835. 8016b04: 4618 mov r0, r3
  54836. 8016b06: f7fd fa8d bl 8014024 <uxListRemove>
  54837. traceTIMER_EXPIRED( pxTimer );
  54838. /* If the timer is an auto-reload timer then calculate the next
  54839. expiry time and re-insert the timer in the list of active timers. */
  54840. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  54841. 8016b0a: 697b ldr r3, [r7, #20]
  54842. 8016b0c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54843. 8016b10: f003 0304 and.w r3, r3, #4
  54844. 8016b14: 2b00 cmp r3, #0
  54845. 8016b16: d023 beq.n 8016b60 <prvProcessExpiredTimer+0x74>
  54846. {
  54847. /* The timer is inserted into a list using a time relative to anything
  54848. other than the current time. It will therefore be inserted into the
  54849. correct list relative to the time this task thinks it is now. */
  54850. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  54851. 8016b18: 697b ldr r3, [r7, #20]
  54852. 8016b1a: 699a ldr r2, [r3, #24]
  54853. 8016b1c: 687b ldr r3, [r7, #4]
  54854. 8016b1e: 18d1 adds r1, r2, r3
  54855. 8016b20: 687b ldr r3, [r7, #4]
  54856. 8016b22: 683a ldr r2, [r7, #0]
  54857. 8016b24: 6978 ldr r0, [r7, #20]
  54858. 8016b26: f000 f8d5 bl 8016cd4 <prvInsertTimerInActiveList>
  54859. 8016b2a: 4603 mov r3, r0
  54860. 8016b2c: 2b00 cmp r3, #0
  54861. 8016b2e: d020 beq.n 8016b72 <prvProcessExpiredTimer+0x86>
  54862. {
  54863. /* The timer expired before it was added to the active timer
  54864. list. Reload it now. */
  54865. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  54866. 8016b30: 2300 movs r3, #0
  54867. 8016b32: 9300 str r3, [sp, #0]
  54868. 8016b34: 2300 movs r3, #0
  54869. 8016b36: 687a ldr r2, [r7, #4]
  54870. 8016b38: 2100 movs r1, #0
  54871. 8016b3a: 6978 ldr r0, [r7, #20]
  54872. 8016b3c: f7ff ff88 bl 8016a50 <xTimerGenericCommand>
  54873. 8016b40: 6138 str r0, [r7, #16]
  54874. configASSERT( xResult );
  54875. 8016b42: 693b ldr r3, [r7, #16]
  54876. 8016b44: 2b00 cmp r3, #0
  54877. 8016b46: d114 bne.n 8016b72 <prvProcessExpiredTimer+0x86>
  54878. __asm volatile
  54879. 8016b48: f04f 0350 mov.w r3, #80 @ 0x50
  54880. 8016b4c: f383 8811 msr BASEPRI, r3
  54881. 8016b50: f3bf 8f6f isb sy
  54882. 8016b54: f3bf 8f4f dsb sy
  54883. 8016b58: 60fb str r3, [r7, #12]
  54884. }
  54885. 8016b5a: bf00 nop
  54886. 8016b5c: bf00 nop
  54887. 8016b5e: e7fd b.n 8016b5c <prvProcessExpiredTimer+0x70>
  54888. mtCOVERAGE_TEST_MARKER();
  54889. }
  54890. }
  54891. else
  54892. {
  54893. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  54894. 8016b60: 697b ldr r3, [r7, #20]
  54895. 8016b62: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54896. 8016b66: f023 0301 bic.w r3, r3, #1
  54897. 8016b6a: b2da uxtb r2, r3
  54898. 8016b6c: 697b ldr r3, [r7, #20]
  54899. 8016b6e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54900. mtCOVERAGE_TEST_MARKER();
  54901. }
  54902. /* Call the timer callback. */
  54903. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  54904. 8016b72: 697b ldr r3, [r7, #20]
  54905. 8016b74: 6a1b ldr r3, [r3, #32]
  54906. 8016b76: 6978 ldr r0, [r7, #20]
  54907. 8016b78: 4798 blx r3
  54908. }
  54909. 8016b7a: bf00 nop
  54910. 8016b7c: 3718 adds r7, #24
  54911. 8016b7e: 46bd mov sp, r7
  54912. 8016b80: bd80 pop {r7, pc}
  54913. 8016b82: bf00 nop
  54914. 8016b84: 24002b68 .word 0x24002b68
  54915. 08016b88 <prvTimerTask>:
  54916. /*-----------------------------------------------------------*/
  54917. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  54918. {
  54919. 8016b88: b580 push {r7, lr}
  54920. 8016b8a: b084 sub sp, #16
  54921. 8016b8c: af00 add r7, sp, #0
  54922. 8016b8e: 6078 str r0, [r7, #4]
  54923. for( ;; )
  54924. {
  54925. /* Query the timers list to see if it contains any timers, and if so,
  54926. obtain the time at which the next timer will expire. */
  54927. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  54928. 8016b90: f107 0308 add.w r3, r7, #8
  54929. 8016b94: 4618 mov r0, r3
  54930. 8016b96: f000 f859 bl 8016c4c <prvGetNextExpireTime>
  54931. 8016b9a: 60f8 str r0, [r7, #12]
  54932. /* If a timer has expired, process it. Otherwise, block this task
  54933. until either a timer does expire, or a command is received. */
  54934. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  54935. 8016b9c: 68bb ldr r3, [r7, #8]
  54936. 8016b9e: 4619 mov r1, r3
  54937. 8016ba0: 68f8 ldr r0, [r7, #12]
  54938. 8016ba2: f000 f805 bl 8016bb0 <prvProcessTimerOrBlockTask>
  54939. /* Empty the command queue. */
  54940. prvProcessReceivedCommands();
  54941. 8016ba6: f000 f8d7 bl 8016d58 <prvProcessReceivedCommands>
  54942. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  54943. 8016baa: bf00 nop
  54944. 8016bac: e7f0 b.n 8016b90 <prvTimerTask+0x8>
  54945. ...
  54946. 08016bb0 <prvProcessTimerOrBlockTask>:
  54947. }
  54948. }
  54949. /*-----------------------------------------------------------*/
  54950. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  54951. {
  54952. 8016bb0: b580 push {r7, lr}
  54953. 8016bb2: b084 sub sp, #16
  54954. 8016bb4: af00 add r7, sp, #0
  54955. 8016bb6: 6078 str r0, [r7, #4]
  54956. 8016bb8: 6039 str r1, [r7, #0]
  54957. TickType_t xTimeNow;
  54958. BaseType_t xTimerListsWereSwitched;
  54959. vTaskSuspendAll();
  54960. 8016bba: f7fe fe17 bl 80157ec <vTaskSuspendAll>
  54961. /* Obtain the time now to make an assessment as to whether the timer
  54962. has expired or not. If obtaining the time causes the lists to switch
  54963. then don't process this timer as any timers that remained in the list
  54964. when the lists were switched will have been processed within the
  54965. prvSampleTimeNow() function. */
  54966. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  54967. 8016bbe: f107 0308 add.w r3, r7, #8
  54968. 8016bc2: 4618 mov r0, r3
  54969. 8016bc4: f000 f866 bl 8016c94 <prvSampleTimeNow>
  54970. 8016bc8: 60f8 str r0, [r7, #12]
  54971. if( xTimerListsWereSwitched == pdFALSE )
  54972. 8016bca: 68bb ldr r3, [r7, #8]
  54973. 8016bcc: 2b00 cmp r3, #0
  54974. 8016bce: d130 bne.n 8016c32 <prvProcessTimerOrBlockTask+0x82>
  54975. {
  54976. /* The tick count has not overflowed, has the timer expired? */
  54977. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  54978. 8016bd0: 683b ldr r3, [r7, #0]
  54979. 8016bd2: 2b00 cmp r3, #0
  54980. 8016bd4: d10a bne.n 8016bec <prvProcessTimerOrBlockTask+0x3c>
  54981. 8016bd6: 687a ldr r2, [r7, #4]
  54982. 8016bd8: 68fb ldr r3, [r7, #12]
  54983. 8016bda: 429a cmp r2, r3
  54984. 8016bdc: d806 bhi.n 8016bec <prvProcessTimerOrBlockTask+0x3c>
  54985. {
  54986. ( void ) xTaskResumeAll();
  54987. 8016bde: f7fe fe13 bl 8015808 <xTaskResumeAll>
  54988. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  54989. 8016be2: 68f9 ldr r1, [r7, #12]
  54990. 8016be4: 6878 ldr r0, [r7, #4]
  54991. 8016be6: f7ff ff81 bl 8016aec <prvProcessExpiredTimer>
  54992. else
  54993. {
  54994. ( void ) xTaskResumeAll();
  54995. }
  54996. }
  54997. }
  54998. 8016bea: e024 b.n 8016c36 <prvProcessTimerOrBlockTask+0x86>
  54999. if( xListWasEmpty != pdFALSE )
  55000. 8016bec: 683b ldr r3, [r7, #0]
  55001. 8016bee: 2b00 cmp r3, #0
  55002. 8016bf0: d008 beq.n 8016c04 <prvProcessTimerOrBlockTask+0x54>
  55003. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  55004. 8016bf2: 4b13 ldr r3, [pc, #76] @ (8016c40 <prvProcessTimerOrBlockTask+0x90>)
  55005. 8016bf4: 681b ldr r3, [r3, #0]
  55006. 8016bf6: 681b ldr r3, [r3, #0]
  55007. 8016bf8: 2b00 cmp r3, #0
  55008. 8016bfa: d101 bne.n 8016c00 <prvProcessTimerOrBlockTask+0x50>
  55009. 8016bfc: 2301 movs r3, #1
  55010. 8016bfe: e000 b.n 8016c02 <prvProcessTimerOrBlockTask+0x52>
  55011. 8016c00: 2300 movs r3, #0
  55012. 8016c02: 603b str r3, [r7, #0]
  55013. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  55014. 8016c04: 4b0f ldr r3, [pc, #60] @ (8016c44 <prvProcessTimerOrBlockTask+0x94>)
  55015. 8016c06: 6818 ldr r0, [r3, #0]
  55016. 8016c08: 687a ldr r2, [r7, #4]
  55017. 8016c0a: 68fb ldr r3, [r7, #12]
  55018. 8016c0c: 1ad3 subs r3, r2, r3
  55019. 8016c0e: 683a ldr r2, [r7, #0]
  55020. 8016c10: 4619 mov r1, r3
  55021. 8016c12: f7fe f995 bl 8014f40 <vQueueWaitForMessageRestricted>
  55022. if( xTaskResumeAll() == pdFALSE )
  55023. 8016c16: f7fe fdf7 bl 8015808 <xTaskResumeAll>
  55024. 8016c1a: 4603 mov r3, r0
  55025. 8016c1c: 2b00 cmp r3, #0
  55026. 8016c1e: d10a bne.n 8016c36 <prvProcessTimerOrBlockTask+0x86>
  55027. portYIELD_WITHIN_API();
  55028. 8016c20: 4b09 ldr r3, [pc, #36] @ (8016c48 <prvProcessTimerOrBlockTask+0x98>)
  55029. 8016c22: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  55030. 8016c26: 601a str r2, [r3, #0]
  55031. 8016c28: f3bf 8f4f dsb sy
  55032. 8016c2c: f3bf 8f6f isb sy
  55033. }
  55034. 8016c30: e001 b.n 8016c36 <prvProcessTimerOrBlockTask+0x86>
  55035. ( void ) xTaskResumeAll();
  55036. 8016c32: f7fe fde9 bl 8015808 <xTaskResumeAll>
  55037. }
  55038. 8016c36: bf00 nop
  55039. 8016c38: 3710 adds r7, #16
  55040. 8016c3a: 46bd mov sp, r7
  55041. 8016c3c: bd80 pop {r7, pc}
  55042. 8016c3e: bf00 nop
  55043. 8016c40: 24002b6c .word 0x24002b6c
  55044. 8016c44: 24002b70 .word 0x24002b70
  55045. 8016c48: e000ed04 .word 0xe000ed04
  55046. 08016c4c <prvGetNextExpireTime>:
  55047. /*-----------------------------------------------------------*/
  55048. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  55049. {
  55050. 8016c4c: b480 push {r7}
  55051. 8016c4e: b085 sub sp, #20
  55052. 8016c50: af00 add r7, sp, #0
  55053. 8016c52: 6078 str r0, [r7, #4]
  55054. the timer with the nearest expiry time will expire. If there are no
  55055. active timers then just set the next expire time to 0. That will cause
  55056. this task to unblock when the tick count overflows, at which point the
  55057. timer lists will be switched and the next expiry time can be
  55058. re-assessed. */
  55059. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  55060. 8016c54: 4b0e ldr r3, [pc, #56] @ (8016c90 <prvGetNextExpireTime+0x44>)
  55061. 8016c56: 681b ldr r3, [r3, #0]
  55062. 8016c58: 681b ldr r3, [r3, #0]
  55063. 8016c5a: 2b00 cmp r3, #0
  55064. 8016c5c: d101 bne.n 8016c62 <prvGetNextExpireTime+0x16>
  55065. 8016c5e: 2201 movs r2, #1
  55066. 8016c60: e000 b.n 8016c64 <prvGetNextExpireTime+0x18>
  55067. 8016c62: 2200 movs r2, #0
  55068. 8016c64: 687b ldr r3, [r7, #4]
  55069. 8016c66: 601a str r2, [r3, #0]
  55070. if( *pxListWasEmpty == pdFALSE )
  55071. 8016c68: 687b ldr r3, [r7, #4]
  55072. 8016c6a: 681b ldr r3, [r3, #0]
  55073. 8016c6c: 2b00 cmp r3, #0
  55074. 8016c6e: d105 bne.n 8016c7c <prvGetNextExpireTime+0x30>
  55075. {
  55076. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  55077. 8016c70: 4b07 ldr r3, [pc, #28] @ (8016c90 <prvGetNextExpireTime+0x44>)
  55078. 8016c72: 681b ldr r3, [r3, #0]
  55079. 8016c74: 68db ldr r3, [r3, #12]
  55080. 8016c76: 681b ldr r3, [r3, #0]
  55081. 8016c78: 60fb str r3, [r7, #12]
  55082. 8016c7a: e001 b.n 8016c80 <prvGetNextExpireTime+0x34>
  55083. }
  55084. else
  55085. {
  55086. /* Ensure the task unblocks when the tick count rolls over. */
  55087. xNextExpireTime = ( TickType_t ) 0U;
  55088. 8016c7c: 2300 movs r3, #0
  55089. 8016c7e: 60fb str r3, [r7, #12]
  55090. }
  55091. return xNextExpireTime;
  55092. 8016c80: 68fb ldr r3, [r7, #12]
  55093. }
  55094. 8016c82: 4618 mov r0, r3
  55095. 8016c84: 3714 adds r7, #20
  55096. 8016c86: 46bd mov sp, r7
  55097. 8016c88: f85d 7b04 ldr.w r7, [sp], #4
  55098. 8016c8c: 4770 bx lr
  55099. 8016c8e: bf00 nop
  55100. 8016c90: 24002b68 .word 0x24002b68
  55101. 08016c94 <prvSampleTimeNow>:
  55102. /*-----------------------------------------------------------*/
  55103. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  55104. {
  55105. 8016c94: b580 push {r7, lr}
  55106. 8016c96: b084 sub sp, #16
  55107. 8016c98: af00 add r7, sp, #0
  55108. 8016c9a: 6078 str r0, [r7, #4]
  55109. TickType_t xTimeNow;
  55110. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  55111. xTimeNow = xTaskGetTickCount();
  55112. 8016c9c: f7fe fe52 bl 8015944 <xTaskGetTickCount>
  55113. 8016ca0: 60f8 str r0, [r7, #12]
  55114. if( xTimeNow < xLastTime )
  55115. 8016ca2: 4b0b ldr r3, [pc, #44] @ (8016cd0 <prvSampleTimeNow+0x3c>)
  55116. 8016ca4: 681b ldr r3, [r3, #0]
  55117. 8016ca6: 68fa ldr r2, [r7, #12]
  55118. 8016ca8: 429a cmp r2, r3
  55119. 8016caa: d205 bcs.n 8016cb8 <prvSampleTimeNow+0x24>
  55120. {
  55121. prvSwitchTimerLists();
  55122. 8016cac: f000 f93a bl 8016f24 <prvSwitchTimerLists>
  55123. *pxTimerListsWereSwitched = pdTRUE;
  55124. 8016cb0: 687b ldr r3, [r7, #4]
  55125. 8016cb2: 2201 movs r2, #1
  55126. 8016cb4: 601a str r2, [r3, #0]
  55127. 8016cb6: e002 b.n 8016cbe <prvSampleTimeNow+0x2a>
  55128. }
  55129. else
  55130. {
  55131. *pxTimerListsWereSwitched = pdFALSE;
  55132. 8016cb8: 687b ldr r3, [r7, #4]
  55133. 8016cba: 2200 movs r2, #0
  55134. 8016cbc: 601a str r2, [r3, #0]
  55135. }
  55136. xLastTime = xTimeNow;
  55137. 8016cbe: 4a04 ldr r2, [pc, #16] @ (8016cd0 <prvSampleTimeNow+0x3c>)
  55138. 8016cc0: 68fb ldr r3, [r7, #12]
  55139. 8016cc2: 6013 str r3, [r2, #0]
  55140. return xTimeNow;
  55141. 8016cc4: 68fb ldr r3, [r7, #12]
  55142. }
  55143. 8016cc6: 4618 mov r0, r3
  55144. 8016cc8: 3710 adds r7, #16
  55145. 8016cca: 46bd mov sp, r7
  55146. 8016ccc: bd80 pop {r7, pc}
  55147. 8016cce: bf00 nop
  55148. 8016cd0: 24002b78 .word 0x24002b78
  55149. 08016cd4 <prvInsertTimerInActiveList>:
  55150. /*-----------------------------------------------------------*/
  55151. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  55152. {
  55153. 8016cd4: b580 push {r7, lr}
  55154. 8016cd6: b086 sub sp, #24
  55155. 8016cd8: af00 add r7, sp, #0
  55156. 8016cda: 60f8 str r0, [r7, #12]
  55157. 8016cdc: 60b9 str r1, [r7, #8]
  55158. 8016cde: 607a str r2, [r7, #4]
  55159. 8016ce0: 603b str r3, [r7, #0]
  55160. BaseType_t xProcessTimerNow = pdFALSE;
  55161. 8016ce2: 2300 movs r3, #0
  55162. 8016ce4: 617b str r3, [r7, #20]
  55163. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  55164. 8016ce6: 68fb ldr r3, [r7, #12]
  55165. 8016ce8: 68ba ldr r2, [r7, #8]
  55166. 8016cea: 605a str r2, [r3, #4]
  55167. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  55168. 8016cec: 68fb ldr r3, [r7, #12]
  55169. 8016cee: 68fa ldr r2, [r7, #12]
  55170. 8016cf0: 611a str r2, [r3, #16]
  55171. if( xNextExpiryTime <= xTimeNow )
  55172. 8016cf2: 68ba ldr r2, [r7, #8]
  55173. 8016cf4: 687b ldr r3, [r7, #4]
  55174. 8016cf6: 429a cmp r2, r3
  55175. 8016cf8: d812 bhi.n 8016d20 <prvInsertTimerInActiveList+0x4c>
  55176. {
  55177. /* Has the expiry time elapsed between the command to start/reset a
  55178. timer was issued, and the time the command was processed? */
  55179. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  55180. 8016cfa: 687a ldr r2, [r7, #4]
  55181. 8016cfc: 683b ldr r3, [r7, #0]
  55182. 8016cfe: 1ad2 subs r2, r2, r3
  55183. 8016d00: 68fb ldr r3, [r7, #12]
  55184. 8016d02: 699b ldr r3, [r3, #24]
  55185. 8016d04: 429a cmp r2, r3
  55186. 8016d06: d302 bcc.n 8016d0e <prvInsertTimerInActiveList+0x3a>
  55187. {
  55188. /* The time between a command being issued and the command being
  55189. processed actually exceeds the timers period. */
  55190. xProcessTimerNow = pdTRUE;
  55191. 8016d08: 2301 movs r3, #1
  55192. 8016d0a: 617b str r3, [r7, #20]
  55193. 8016d0c: e01b b.n 8016d46 <prvInsertTimerInActiveList+0x72>
  55194. }
  55195. else
  55196. {
  55197. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  55198. 8016d0e: 4b10 ldr r3, [pc, #64] @ (8016d50 <prvInsertTimerInActiveList+0x7c>)
  55199. 8016d10: 681a ldr r2, [r3, #0]
  55200. 8016d12: 68fb ldr r3, [r7, #12]
  55201. 8016d14: 3304 adds r3, #4
  55202. 8016d16: 4619 mov r1, r3
  55203. 8016d18: 4610 mov r0, r2
  55204. 8016d1a: f7fd f94a bl 8013fb2 <vListInsert>
  55205. 8016d1e: e012 b.n 8016d46 <prvInsertTimerInActiveList+0x72>
  55206. }
  55207. }
  55208. else
  55209. {
  55210. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  55211. 8016d20: 687a ldr r2, [r7, #4]
  55212. 8016d22: 683b ldr r3, [r7, #0]
  55213. 8016d24: 429a cmp r2, r3
  55214. 8016d26: d206 bcs.n 8016d36 <prvInsertTimerInActiveList+0x62>
  55215. 8016d28: 68ba ldr r2, [r7, #8]
  55216. 8016d2a: 683b ldr r3, [r7, #0]
  55217. 8016d2c: 429a cmp r2, r3
  55218. 8016d2e: d302 bcc.n 8016d36 <prvInsertTimerInActiveList+0x62>
  55219. {
  55220. /* If, since the command was issued, the tick count has overflowed
  55221. but the expiry time has not, then the timer must have already passed
  55222. its expiry time and should be processed immediately. */
  55223. xProcessTimerNow = pdTRUE;
  55224. 8016d30: 2301 movs r3, #1
  55225. 8016d32: 617b str r3, [r7, #20]
  55226. 8016d34: e007 b.n 8016d46 <prvInsertTimerInActiveList+0x72>
  55227. }
  55228. else
  55229. {
  55230. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  55231. 8016d36: 4b07 ldr r3, [pc, #28] @ (8016d54 <prvInsertTimerInActiveList+0x80>)
  55232. 8016d38: 681a ldr r2, [r3, #0]
  55233. 8016d3a: 68fb ldr r3, [r7, #12]
  55234. 8016d3c: 3304 adds r3, #4
  55235. 8016d3e: 4619 mov r1, r3
  55236. 8016d40: 4610 mov r0, r2
  55237. 8016d42: f7fd f936 bl 8013fb2 <vListInsert>
  55238. }
  55239. }
  55240. return xProcessTimerNow;
  55241. 8016d46: 697b ldr r3, [r7, #20]
  55242. }
  55243. 8016d48: 4618 mov r0, r3
  55244. 8016d4a: 3718 adds r7, #24
  55245. 8016d4c: 46bd mov sp, r7
  55246. 8016d4e: bd80 pop {r7, pc}
  55247. 8016d50: 24002b6c .word 0x24002b6c
  55248. 8016d54: 24002b68 .word 0x24002b68
  55249. 08016d58 <prvProcessReceivedCommands>:
  55250. /*-----------------------------------------------------------*/
  55251. static void prvProcessReceivedCommands( void )
  55252. {
  55253. 8016d58: b580 push {r7, lr}
  55254. 8016d5a: b08e sub sp, #56 @ 0x38
  55255. 8016d5c: af02 add r7, sp, #8
  55256. DaemonTaskMessage_t xMessage;
  55257. Timer_t *pxTimer;
  55258. BaseType_t xTimerListsWereSwitched, xResult;
  55259. TickType_t xTimeNow;
  55260. while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
  55261. 8016d5e: e0ce b.n 8016efe <prvProcessReceivedCommands+0x1a6>
  55262. {
  55263. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  55264. {
  55265. /* Negative commands are pended function calls rather than timer
  55266. commands. */
  55267. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  55268. 8016d60: 687b ldr r3, [r7, #4]
  55269. 8016d62: 2b00 cmp r3, #0
  55270. 8016d64: da19 bge.n 8016d9a <prvProcessReceivedCommands+0x42>
  55271. {
  55272. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  55273. 8016d66: 1d3b adds r3, r7, #4
  55274. 8016d68: 3304 adds r3, #4
  55275. 8016d6a: 62fb str r3, [r7, #44] @ 0x2c
  55276. /* The timer uses the xCallbackParameters member to request a
  55277. callback be executed. Check the callback is not NULL. */
  55278. configASSERT( pxCallback );
  55279. 8016d6c: 6afb ldr r3, [r7, #44] @ 0x2c
  55280. 8016d6e: 2b00 cmp r3, #0
  55281. 8016d70: d10b bne.n 8016d8a <prvProcessReceivedCommands+0x32>
  55282. __asm volatile
  55283. 8016d72: f04f 0350 mov.w r3, #80 @ 0x50
  55284. 8016d76: f383 8811 msr BASEPRI, r3
  55285. 8016d7a: f3bf 8f6f isb sy
  55286. 8016d7e: f3bf 8f4f dsb sy
  55287. 8016d82: 61fb str r3, [r7, #28]
  55288. }
  55289. 8016d84: bf00 nop
  55290. 8016d86: bf00 nop
  55291. 8016d88: e7fd b.n 8016d86 <prvProcessReceivedCommands+0x2e>
  55292. /* Call the function. */
  55293. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  55294. 8016d8a: 6afb ldr r3, [r7, #44] @ 0x2c
  55295. 8016d8c: 681b ldr r3, [r3, #0]
  55296. 8016d8e: 6afa ldr r2, [r7, #44] @ 0x2c
  55297. 8016d90: 6850 ldr r0, [r2, #4]
  55298. 8016d92: 6afa ldr r2, [r7, #44] @ 0x2c
  55299. 8016d94: 6892 ldr r2, [r2, #8]
  55300. 8016d96: 4611 mov r1, r2
  55301. 8016d98: 4798 blx r3
  55302. }
  55303. #endif /* INCLUDE_xTimerPendFunctionCall */
  55304. /* Commands that are positive are timer commands rather than pended
  55305. function calls. */
  55306. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  55307. 8016d9a: 687b ldr r3, [r7, #4]
  55308. 8016d9c: 2b00 cmp r3, #0
  55309. 8016d9e: f2c0 80ae blt.w 8016efe <prvProcessReceivedCommands+0x1a6>
  55310. {
  55311. /* The messages uses the xTimerParameters member to work on a
  55312. software timer. */
  55313. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  55314. 8016da2: 68fb ldr r3, [r7, #12]
  55315. 8016da4: 62bb str r3, [r7, #40] @ 0x28
  55316. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  55317. 8016da6: 6abb ldr r3, [r7, #40] @ 0x28
  55318. 8016da8: 695b ldr r3, [r3, #20]
  55319. 8016daa: 2b00 cmp r3, #0
  55320. 8016dac: d004 beq.n 8016db8 <prvProcessReceivedCommands+0x60>
  55321. {
  55322. /* The timer is in a list, remove it. */
  55323. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55324. 8016dae: 6abb ldr r3, [r7, #40] @ 0x28
  55325. 8016db0: 3304 adds r3, #4
  55326. 8016db2: 4618 mov r0, r3
  55327. 8016db4: f7fd f936 bl 8014024 <uxListRemove>
  55328. it must be present in the function call. prvSampleTimeNow() must be
  55329. called after the message is received from xTimerQueue so there is no
  55330. possibility of a higher priority task adding a message to the message
  55331. queue with a time that is ahead of the timer daemon task (because it
  55332. pre-empted the timer daemon task after the xTimeNow value was set). */
  55333. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  55334. 8016db8: 463b mov r3, r7
  55335. 8016dba: 4618 mov r0, r3
  55336. 8016dbc: f7ff ff6a bl 8016c94 <prvSampleTimeNow>
  55337. 8016dc0: 6278 str r0, [r7, #36] @ 0x24
  55338. switch( xMessage.xMessageID )
  55339. 8016dc2: 687b ldr r3, [r7, #4]
  55340. 8016dc4: 2b09 cmp r3, #9
  55341. 8016dc6: f200 8097 bhi.w 8016ef8 <prvProcessReceivedCommands+0x1a0>
  55342. 8016dca: a201 add r2, pc, #4 @ (adr r2, 8016dd0 <prvProcessReceivedCommands+0x78>)
  55343. 8016dcc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55344. 8016dd0: 08016df9 .word 0x08016df9
  55345. 8016dd4: 08016df9 .word 0x08016df9
  55346. 8016dd8: 08016df9 .word 0x08016df9
  55347. 8016ddc: 08016e6f .word 0x08016e6f
  55348. 8016de0: 08016e83 .word 0x08016e83
  55349. 8016de4: 08016ecf .word 0x08016ecf
  55350. 8016de8: 08016df9 .word 0x08016df9
  55351. 8016dec: 08016df9 .word 0x08016df9
  55352. 8016df0: 08016e6f .word 0x08016e6f
  55353. 8016df4: 08016e83 .word 0x08016e83
  55354. case tmrCOMMAND_START_FROM_ISR :
  55355. case tmrCOMMAND_RESET :
  55356. case tmrCOMMAND_RESET_FROM_ISR :
  55357. case tmrCOMMAND_START_DONT_TRACE :
  55358. /* Start or restart a timer. */
  55359. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  55360. 8016df8: 6abb ldr r3, [r7, #40] @ 0x28
  55361. 8016dfa: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55362. 8016dfe: f043 0301 orr.w r3, r3, #1
  55363. 8016e02: b2da uxtb r2, r3
  55364. 8016e04: 6abb ldr r3, [r7, #40] @ 0x28
  55365. 8016e06: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55366. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  55367. 8016e0a: 68ba ldr r2, [r7, #8]
  55368. 8016e0c: 6abb ldr r3, [r7, #40] @ 0x28
  55369. 8016e0e: 699b ldr r3, [r3, #24]
  55370. 8016e10: 18d1 adds r1, r2, r3
  55371. 8016e12: 68bb ldr r3, [r7, #8]
  55372. 8016e14: 6a7a ldr r2, [r7, #36] @ 0x24
  55373. 8016e16: 6ab8 ldr r0, [r7, #40] @ 0x28
  55374. 8016e18: f7ff ff5c bl 8016cd4 <prvInsertTimerInActiveList>
  55375. 8016e1c: 4603 mov r3, r0
  55376. 8016e1e: 2b00 cmp r3, #0
  55377. 8016e20: d06c beq.n 8016efc <prvProcessReceivedCommands+0x1a4>
  55378. {
  55379. /* The timer expired before it was added to the active
  55380. timer list. Process it now. */
  55381. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55382. 8016e22: 6abb ldr r3, [r7, #40] @ 0x28
  55383. 8016e24: 6a1b ldr r3, [r3, #32]
  55384. 8016e26: 6ab8 ldr r0, [r7, #40] @ 0x28
  55385. 8016e28: 4798 blx r3
  55386. traceTIMER_EXPIRED( pxTimer );
  55387. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55388. 8016e2a: 6abb ldr r3, [r7, #40] @ 0x28
  55389. 8016e2c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55390. 8016e30: f003 0304 and.w r3, r3, #4
  55391. 8016e34: 2b00 cmp r3, #0
  55392. 8016e36: d061 beq.n 8016efc <prvProcessReceivedCommands+0x1a4>
  55393. {
  55394. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  55395. 8016e38: 68ba ldr r2, [r7, #8]
  55396. 8016e3a: 6abb ldr r3, [r7, #40] @ 0x28
  55397. 8016e3c: 699b ldr r3, [r3, #24]
  55398. 8016e3e: 441a add r2, r3
  55399. 8016e40: 2300 movs r3, #0
  55400. 8016e42: 9300 str r3, [sp, #0]
  55401. 8016e44: 2300 movs r3, #0
  55402. 8016e46: 2100 movs r1, #0
  55403. 8016e48: 6ab8 ldr r0, [r7, #40] @ 0x28
  55404. 8016e4a: f7ff fe01 bl 8016a50 <xTimerGenericCommand>
  55405. 8016e4e: 6238 str r0, [r7, #32]
  55406. configASSERT( xResult );
  55407. 8016e50: 6a3b ldr r3, [r7, #32]
  55408. 8016e52: 2b00 cmp r3, #0
  55409. 8016e54: d152 bne.n 8016efc <prvProcessReceivedCommands+0x1a4>
  55410. __asm volatile
  55411. 8016e56: f04f 0350 mov.w r3, #80 @ 0x50
  55412. 8016e5a: f383 8811 msr BASEPRI, r3
  55413. 8016e5e: f3bf 8f6f isb sy
  55414. 8016e62: f3bf 8f4f dsb sy
  55415. 8016e66: 61bb str r3, [r7, #24]
  55416. }
  55417. 8016e68: bf00 nop
  55418. 8016e6a: bf00 nop
  55419. 8016e6c: e7fd b.n 8016e6a <prvProcessReceivedCommands+0x112>
  55420. break;
  55421. case tmrCOMMAND_STOP :
  55422. case tmrCOMMAND_STOP_FROM_ISR :
  55423. /* The timer has already been removed from the active list. */
  55424. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55425. 8016e6e: 6abb ldr r3, [r7, #40] @ 0x28
  55426. 8016e70: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55427. 8016e74: f023 0301 bic.w r3, r3, #1
  55428. 8016e78: b2da uxtb r2, r3
  55429. 8016e7a: 6abb ldr r3, [r7, #40] @ 0x28
  55430. 8016e7c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55431. break;
  55432. 8016e80: e03d b.n 8016efe <prvProcessReceivedCommands+0x1a6>
  55433. case tmrCOMMAND_CHANGE_PERIOD :
  55434. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  55435. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  55436. 8016e82: 6abb ldr r3, [r7, #40] @ 0x28
  55437. 8016e84: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55438. 8016e88: f043 0301 orr.w r3, r3, #1
  55439. 8016e8c: b2da uxtb r2, r3
  55440. 8016e8e: 6abb ldr r3, [r7, #40] @ 0x28
  55441. 8016e90: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55442. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  55443. 8016e94: 68ba ldr r2, [r7, #8]
  55444. 8016e96: 6abb ldr r3, [r7, #40] @ 0x28
  55445. 8016e98: 619a str r2, [r3, #24]
  55446. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  55447. 8016e9a: 6abb ldr r3, [r7, #40] @ 0x28
  55448. 8016e9c: 699b ldr r3, [r3, #24]
  55449. 8016e9e: 2b00 cmp r3, #0
  55450. 8016ea0: d10b bne.n 8016eba <prvProcessReceivedCommands+0x162>
  55451. __asm volatile
  55452. 8016ea2: f04f 0350 mov.w r3, #80 @ 0x50
  55453. 8016ea6: f383 8811 msr BASEPRI, r3
  55454. 8016eaa: f3bf 8f6f isb sy
  55455. 8016eae: f3bf 8f4f dsb sy
  55456. 8016eb2: 617b str r3, [r7, #20]
  55457. }
  55458. 8016eb4: bf00 nop
  55459. 8016eb6: bf00 nop
  55460. 8016eb8: e7fd b.n 8016eb6 <prvProcessReceivedCommands+0x15e>
  55461. be longer or shorter than the old one. The command time is
  55462. therefore set to the current time, and as the period cannot
  55463. be zero the next expiry time can only be in the future,
  55464. meaning (unlike for the xTimerStart() case above) there is
  55465. no fail case that needs to be handled here. */
  55466. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  55467. 8016eba: 6abb ldr r3, [r7, #40] @ 0x28
  55468. 8016ebc: 699a ldr r2, [r3, #24]
  55469. 8016ebe: 6a7b ldr r3, [r7, #36] @ 0x24
  55470. 8016ec0: 18d1 adds r1, r2, r3
  55471. 8016ec2: 6a7b ldr r3, [r7, #36] @ 0x24
  55472. 8016ec4: 6a7a ldr r2, [r7, #36] @ 0x24
  55473. 8016ec6: 6ab8 ldr r0, [r7, #40] @ 0x28
  55474. 8016ec8: f7ff ff04 bl 8016cd4 <prvInsertTimerInActiveList>
  55475. break;
  55476. 8016ecc: e017 b.n 8016efe <prvProcessReceivedCommands+0x1a6>
  55477. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  55478. {
  55479. /* The timer has already been removed from the active list,
  55480. just free up the memory if the memory was dynamically
  55481. allocated. */
  55482. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  55483. 8016ece: 6abb ldr r3, [r7, #40] @ 0x28
  55484. 8016ed0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55485. 8016ed4: f003 0302 and.w r3, r3, #2
  55486. 8016ed8: 2b00 cmp r3, #0
  55487. 8016eda: d103 bne.n 8016ee4 <prvProcessReceivedCommands+0x18c>
  55488. {
  55489. vPortFree( pxTimer );
  55490. 8016edc: 6ab8 ldr r0, [r7, #40] @ 0x28
  55491. 8016ede: f000 fc33 bl 8017748 <vPortFree>
  55492. no need to free the memory - just mark the timer as
  55493. "not active". */
  55494. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55495. }
  55496. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  55497. break;
  55498. 8016ee2: e00c b.n 8016efe <prvProcessReceivedCommands+0x1a6>
  55499. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55500. 8016ee4: 6abb ldr r3, [r7, #40] @ 0x28
  55501. 8016ee6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55502. 8016eea: f023 0301 bic.w r3, r3, #1
  55503. 8016eee: b2da uxtb r2, r3
  55504. 8016ef0: 6abb ldr r3, [r7, #40] @ 0x28
  55505. 8016ef2: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55506. break;
  55507. 8016ef6: e002 b.n 8016efe <prvProcessReceivedCommands+0x1a6>
  55508. default :
  55509. /* Don't expect to get here. */
  55510. break;
  55511. 8016ef8: bf00 nop
  55512. 8016efa: e000 b.n 8016efe <prvProcessReceivedCommands+0x1a6>
  55513. break;
  55514. 8016efc: bf00 nop
  55515. while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
  55516. 8016efe: 4b08 ldr r3, [pc, #32] @ (8016f20 <prvProcessReceivedCommands+0x1c8>)
  55517. 8016f00: 681b ldr r3, [r3, #0]
  55518. 8016f02: 1d39 adds r1, r7, #4
  55519. 8016f04: 2200 movs r2, #0
  55520. 8016f06: 4618 mov r0, r3
  55521. 8016f08: f7fd fc54 bl 80147b4 <xQueueReceive>
  55522. 8016f0c: 4603 mov r3, r0
  55523. 8016f0e: 2b00 cmp r3, #0
  55524. 8016f10: f47f af26 bne.w 8016d60 <prvProcessReceivedCommands+0x8>
  55525. }
  55526. }
  55527. }
  55528. }
  55529. 8016f14: bf00 nop
  55530. 8016f16: bf00 nop
  55531. 8016f18: 3730 adds r7, #48 @ 0x30
  55532. 8016f1a: 46bd mov sp, r7
  55533. 8016f1c: bd80 pop {r7, pc}
  55534. 8016f1e: bf00 nop
  55535. 8016f20: 24002b70 .word 0x24002b70
  55536. 08016f24 <prvSwitchTimerLists>:
  55537. /*-----------------------------------------------------------*/
  55538. static void prvSwitchTimerLists( void )
  55539. {
  55540. 8016f24: b580 push {r7, lr}
  55541. 8016f26: b088 sub sp, #32
  55542. 8016f28: af02 add r7, sp, #8
  55543. /* The tick count has overflowed. The timer lists must be switched.
  55544. If there are any timers still referenced from the current timer list
  55545. then they must have expired and should be processed before the lists
  55546. are switched. */
  55547. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  55548. 8016f2a: e049 b.n 8016fc0 <prvSwitchTimerLists+0x9c>
  55549. {
  55550. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  55551. 8016f2c: 4b2e ldr r3, [pc, #184] @ (8016fe8 <prvSwitchTimerLists+0xc4>)
  55552. 8016f2e: 681b ldr r3, [r3, #0]
  55553. 8016f30: 68db ldr r3, [r3, #12]
  55554. 8016f32: 681b ldr r3, [r3, #0]
  55555. 8016f34: 613b str r3, [r7, #16]
  55556. /* Remove the timer from the list. */
  55557. pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  55558. 8016f36: 4b2c ldr r3, [pc, #176] @ (8016fe8 <prvSwitchTimerLists+0xc4>)
  55559. 8016f38: 681b ldr r3, [r3, #0]
  55560. 8016f3a: 68db ldr r3, [r3, #12]
  55561. 8016f3c: 68db ldr r3, [r3, #12]
  55562. 8016f3e: 60fb str r3, [r7, #12]
  55563. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55564. 8016f40: 68fb ldr r3, [r7, #12]
  55565. 8016f42: 3304 adds r3, #4
  55566. 8016f44: 4618 mov r0, r3
  55567. 8016f46: f7fd f86d bl 8014024 <uxListRemove>
  55568. traceTIMER_EXPIRED( pxTimer );
  55569. /* Execute its callback, then send a command to restart the timer if
  55570. it is an auto-reload timer. It cannot be restarted here as the lists
  55571. have not yet been switched. */
  55572. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55573. 8016f4a: 68fb ldr r3, [r7, #12]
  55574. 8016f4c: 6a1b ldr r3, [r3, #32]
  55575. 8016f4e: 68f8 ldr r0, [r7, #12]
  55576. 8016f50: 4798 blx r3
  55577. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55578. 8016f52: 68fb ldr r3, [r7, #12]
  55579. 8016f54: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55580. 8016f58: f003 0304 and.w r3, r3, #4
  55581. 8016f5c: 2b00 cmp r3, #0
  55582. 8016f5e: d02f beq.n 8016fc0 <prvSwitchTimerLists+0x9c>
  55583. the timer going into the same timer list then it has already expired
  55584. and the timer should be re-inserted into the current list so it is
  55585. processed again within this loop. Otherwise a command should be sent
  55586. to restart the timer to ensure it is only inserted into a list after
  55587. the lists have been swapped. */
  55588. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  55589. 8016f60: 68fb ldr r3, [r7, #12]
  55590. 8016f62: 699b ldr r3, [r3, #24]
  55591. 8016f64: 693a ldr r2, [r7, #16]
  55592. 8016f66: 4413 add r3, r2
  55593. 8016f68: 60bb str r3, [r7, #8]
  55594. if( xReloadTime > xNextExpireTime )
  55595. 8016f6a: 68ba ldr r2, [r7, #8]
  55596. 8016f6c: 693b ldr r3, [r7, #16]
  55597. 8016f6e: 429a cmp r2, r3
  55598. 8016f70: d90e bls.n 8016f90 <prvSwitchTimerLists+0x6c>
  55599. {
  55600. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  55601. 8016f72: 68fb ldr r3, [r7, #12]
  55602. 8016f74: 68ba ldr r2, [r7, #8]
  55603. 8016f76: 605a str r2, [r3, #4]
  55604. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  55605. 8016f78: 68fb ldr r3, [r7, #12]
  55606. 8016f7a: 68fa ldr r2, [r7, #12]
  55607. 8016f7c: 611a str r2, [r3, #16]
  55608. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  55609. 8016f7e: 4b1a ldr r3, [pc, #104] @ (8016fe8 <prvSwitchTimerLists+0xc4>)
  55610. 8016f80: 681a ldr r2, [r3, #0]
  55611. 8016f82: 68fb ldr r3, [r7, #12]
  55612. 8016f84: 3304 adds r3, #4
  55613. 8016f86: 4619 mov r1, r3
  55614. 8016f88: 4610 mov r0, r2
  55615. 8016f8a: f7fd f812 bl 8013fb2 <vListInsert>
  55616. 8016f8e: e017 b.n 8016fc0 <prvSwitchTimerLists+0x9c>
  55617. }
  55618. else
  55619. {
  55620. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  55621. 8016f90: 2300 movs r3, #0
  55622. 8016f92: 9300 str r3, [sp, #0]
  55623. 8016f94: 2300 movs r3, #0
  55624. 8016f96: 693a ldr r2, [r7, #16]
  55625. 8016f98: 2100 movs r1, #0
  55626. 8016f9a: 68f8 ldr r0, [r7, #12]
  55627. 8016f9c: f7ff fd58 bl 8016a50 <xTimerGenericCommand>
  55628. 8016fa0: 6078 str r0, [r7, #4]
  55629. configASSERT( xResult );
  55630. 8016fa2: 687b ldr r3, [r7, #4]
  55631. 8016fa4: 2b00 cmp r3, #0
  55632. 8016fa6: d10b bne.n 8016fc0 <prvSwitchTimerLists+0x9c>
  55633. __asm volatile
  55634. 8016fa8: f04f 0350 mov.w r3, #80 @ 0x50
  55635. 8016fac: f383 8811 msr BASEPRI, r3
  55636. 8016fb0: f3bf 8f6f isb sy
  55637. 8016fb4: f3bf 8f4f dsb sy
  55638. 8016fb8: 603b str r3, [r7, #0]
  55639. }
  55640. 8016fba: bf00 nop
  55641. 8016fbc: bf00 nop
  55642. 8016fbe: e7fd b.n 8016fbc <prvSwitchTimerLists+0x98>
  55643. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  55644. 8016fc0: 4b09 ldr r3, [pc, #36] @ (8016fe8 <prvSwitchTimerLists+0xc4>)
  55645. 8016fc2: 681b ldr r3, [r3, #0]
  55646. 8016fc4: 681b ldr r3, [r3, #0]
  55647. 8016fc6: 2b00 cmp r3, #0
  55648. 8016fc8: d1b0 bne.n 8016f2c <prvSwitchTimerLists+0x8>
  55649. {
  55650. mtCOVERAGE_TEST_MARKER();
  55651. }
  55652. }
  55653. pxTemp = pxCurrentTimerList;
  55654. 8016fca: 4b07 ldr r3, [pc, #28] @ (8016fe8 <prvSwitchTimerLists+0xc4>)
  55655. 8016fcc: 681b ldr r3, [r3, #0]
  55656. 8016fce: 617b str r3, [r7, #20]
  55657. pxCurrentTimerList = pxOverflowTimerList;
  55658. 8016fd0: 4b06 ldr r3, [pc, #24] @ (8016fec <prvSwitchTimerLists+0xc8>)
  55659. 8016fd2: 681b ldr r3, [r3, #0]
  55660. 8016fd4: 4a04 ldr r2, [pc, #16] @ (8016fe8 <prvSwitchTimerLists+0xc4>)
  55661. 8016fd6: 6013 str r3, [r2, #0]
  55662. pxOverflowTimerList = pxTemp;
  55663. 8016fd8: 4a04 ldr r2, [pc, #16] @ (8016fec <prvSwitchTimerLists+0xc8>)
  55664. 8016fda: 697b ldr r3, [r7, #20]
  55665. 8016fdc: 6013 str r3, [r2, #0]
  55666. }
  55667. 8016fde: bf00 nop
  55668. 8016fe0: 3718 adds r7, #24
  55669. 8016fe2: 46bd mov sp, r7
  55670. 8016fe4: bd80 pop {r7, pc}
  55671. 8016fe6: bf00 nop
  55672. 8016fe8: 24002b68 .word 0x24002b68
  55673. 8016fec: 24002b6c .word 0x24002b6c
  55674. 08016ff0 <prvCheckForValidListAndQueue>:
  55675. /*-----------------------------------------------------------*/
  55676. static void prvCheckForValidListAndQueue( void )
  55677. {
  55678. 8016ff0: b580 push {r7, lr}
  55679. 8016ff2: b082 sub sp, #8
  55680. 8016ff4: af02 add r7, sp, #8
  55681. /* Check that the list from which active timers are referenced, and the
  55682. queue used to communicate with the timer service, have been
  55683. initialised. */
  55684. taskENTER_CRITICAL();
  55685. 8016ff6: f000 f9b7 bl 8017368 <vPortEnterCritical>
  55686. {
  55687. if( xTimerQueue == NULL )
  55688. 8016ffa: 4b15 ldr r3, [pc, #84] @ (8017050 <prvCheckForValidListAndQueue+0x60>)
  55689. 8016ffc: 681b ldr r3, [r3, #0]
  55690. 8016ffe: 2b00 cmp r3, #0
  55691. 8017000: d120 bne.n 8017044 <prvCheckForValidListAndQueue+0x54>
  55692. {
  55693. vListInitialise( &xActiveTimerList1 );
  55694. 8017002: 4814 ldr r0, [pc, #80] @ (8017054 <prvCheckForValidListAndQueue+0x64>)
  55695. 8017004: f7fc ff84 bl 8013f10 <vListInitialise>
  55696. vListInitialise( &xActiveTimerList2 );
  55697. 8017008: 4813 ldr r0, [pc, #76] @ (8017058 <prvCheckForValidListAndQueue+0x68>)
  55698. 801700a: f7fc ff81 bl 8013f10 <vListInitialise>
  55699. pxCurrentTimerList = &xActiveTimerList1;
  55700. 801700e: 4b13 ldr r3, [pc, #76] @ (801705c <prvCheckForValidListAndQueue+0x6c>)
  55701. 8017010: 4a10 ldr r2, [pc, #64] @ (8017054 <prvCheckForValidListAndQueue+0x64>)
  55702. 8017012: 601a str r2, [r3, #0]
  55703. pxOverflowTimerList = &xActiveTimerList2;
  55704. 8017014: 4b12 ldr r3, [pc, #72] @ (8017060 <prvCheckForValidListAndQueue+0x70>)
  55705. 8017016: 4a10 ldr r2, [pc, #64] @ (8017058 <prvCheckForValidListAndQueue+0x68>)
  55706. 8017018: 601a str r2, [r3, #0]
  55707. /* The timer queue is allocated statically in case
  55708. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  55709. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  55710. static uint8_t ucStaticTimerQueueStorage[ ( size_t ) configTIMER_QUEUE_LENGTH * sizeof( DaemonTaskMessage_t ) ]; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  55711. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  55712. 801701a: 2300 movs r3, #0
  55713. 801701c: 9300 str r3, [sp, #0]
  55714. 801701e: 4b11 ldr r3, [pc, #68] @ (8017064 <prvCheckForValidListAndQueue+0x74>)
  55715. 8017020: 4a11 ldr r2, [pc, #68] @ (8017068 <prvCheckForValidListAndQueue+0x78>)
  55716. 8017022: 2110 movs r1, #16
  55717. 8017024: 200a movs r0, #10
  55718. 8017026: f7fd f891 bl 801414c <xQueueGenericCreateStatic>
  55719. 801702a: 4603 mov r3, r0
  55720. 801702c: 4a08 ldr r2, [pc, #32] @ (8017050 <prvCheckForValidListAndQueue+0x60>)
  55721. 801702e: 6013 str r3, [r2, #0]
  55722. }
  55723. #endif
  55724. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  55725. {
  55726. if( xTimerQueue != NULL )
  55727. 8017030: 4b07 ldr r3, [pc, #28] @ (8017050 <prvCheckForValidListAndQueue+0x60>)
  55728. 8017032: 681b ldr r3, [r3, #0]
  55729. 8017034: 2b00 cmp r3, #0
  55730. 8017036: d005 beq.n 8017044 <prvCheckForValidListAndQueue+0x54>
  55731. {
  55732. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  55733. 8017038: 4b05 ldr r3, [pc, #20] @ (8017050 <prvCheckForValidListAndQueue+0x60>)
  55734. 801703a: 681b ldr r3, [r3, #0]
  55735. 801703c: 490b ldr r1, [pc, #44] @ (801706c <prvCheckForValidListAndQueue+0x7c>)
  55736. 801703e: 4618 mov r0, r3
  55737. 8017040: f7fd ff54 bl 8014eec <vQueueAddToRegistry>
  55738. else
  55739. {
  55740. mtCOVERAGE_TEST_MARKER();
  55741. }
  55742. }
  55743. taskEXIT_CRITICAL();
  55744. 8017044: f000 f9c2 bl 80173cc <vPortExitCritical>
  55745. }
  55746. 8017048: bf00 nop
  55747. 801704a: 46bd mov sp, r7
  55748. 801704c: bd80 pop {r7, pc}
  55749. 801704e: bf00 nop
  55750. 8017050: 24002b70 .word 0x24002b70
  55751. 8017054: 24002b40 .word 0x24002b40
  55752. 8017058: 24002b54 .word 0x24002b54
  55753. 801705c: 24002b68 .word 0x24002b68
  55754. 8017060: 24002b6c .word 0x24002b6c
  55755. 8017064: 24002c1c .word 0x24002c1c
  55756. 8017068: 24002b7c .word 0x24002b7c
  55757. 801706c: 080189bc .word 0x080189bc
  55758. 08017070 <xTimerIsTimerActive>:
  55759. /*-----------------------------------------------------------*/
  55760. BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
  55761. {
  55762. 8017070: b580 push {r7, lr}
  55763. 8017072: b086 sub sp, #24
  55764. 8017074: af00 add r7, sp, #0
  55765. 8017076: 6078 str r0, [r7, #4]
  55766. BaseType_t xReturn;
  55767. Timer_t *pxTimer = xTimer;
  55768. 8017078: 687b ldr r3, [r7, #4]
  55769. 801707a: 613b str r3, [r7, #16]
  55770. configASSERT( xTimer );
  55771. 801707c: 687b ldr r3, [r7, #4]
  55772. 801707e: 2b00 cmp r3, #0
  55773. 8017080: d10b bne.n 801709a <xTimerIsTimerActive+0x2a>
  55774. __asm volatile
  55775. 8017082: f04f 0350 mov.w r3, #80 @ 0x50
  55776. 8017086: f383 8811 msr BASEPRI, r3
  55777. 801708a: f3bf 8f6f isb sy
  55778. 801708e: f3bf 8f4f dsb sy
  55779. 8017092: 60fb str r3, [r7, #12]
  55780. }
  55781. 8017094: bf00 nop
  55782. 8017096: bf00 nop
  55783. 8017098: e7fd b.n 8017096 <xTimerIsTimerActive+0x26>
  55784. /* Is the timer in the list of active timers? */
  55785. taskENTER_CRITICAL();
  55786. 801709a: f000 f965 bl 8017368 <vPortEnterCritical>
  55787. {
  55788. if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
  55789. 801709e: 693b ldr r3, [r7, #16]
  55790. 80170a0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55791. 80170a4: f003 0301 and.w r3, r3, #1
  55792. 80170a8: 2b00 cmp r3, #0
  55793. 80170aa: d102 bne.n 80170b2 <xTimerIsTimerActive+0x42>
  55794. {
  55795. xReturn = pdFALSE;
  55796. 80170ac: 2300 movs r3, #0
  55797. 80170ae: 617b str r3, [r7, #20]
  55798. 80170b0: e001 b.n 80170b6 <xTimerIsTimerActive+0x46>
  55799. }
  55800. else
  55801. {
  55802. xReturn = pdTRUE;
  55803. 80170b2: 2301 movs r3, #1
  55804. 80170b4: 617b str r3, [r7, #20]
  55805. }
  55806. }
  55807. taskEXIT_CRITICAL();
  55808. 80170b6: f000 f989 bl 80173cc <vPortExitCritical>
  55809. return xReturn;
  55810. 80170ba: 697b ldr r3, [r7, #20]
  55811. } /*lint !e818 Can't be pointer to const due to the typedef. */
  55812. 80170bc: 4618 mov r0, r3
  55813. 80170be: 3718 adds r7, #24
  55814. 80170c0: 46bd mov sp, r7
  55815. 80170c2: bd80 pop {r7, pc}
  55816. 080170c4 <pvTimerGetTimerID>:
  55817. /*-----------------------------------------------------------*/
  55818. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  55819. {
  55820. 80170c4: b580 push {r7, lr}
  55821. 80170c6: b086 sub sp, #24
  55822. 80170c8: af00 add r7, sp, #0
  55823. 80170ca: 6078 str r0, [r7, #4]
  55824. Timer_t * const pxTimer = xTimer;
  55825. 80170cc: 687b ldr r3, [r7, #4]
  55826. 80170ce: 617b str r3, [r7, #20]
  55827. void *pvReturn;
  55828. configASSERT( xTimer );
  55829. 80170d0: 687b ldr r3, [r7, #4]
  55830. 80170d2: 2b00 cmp r3, #0
  55831. 80170d4: d10b bne.n 80170ee <pvTimerGetTimerID+0x2a>
  55832. __asm volatile
  55833. 80170d6: f04f 0350 mov.w r3, #80 @ 0x50
  55834. 80170da: f383 8811 msr BASEPRI, r3
  55835. 80170de: f3bf 8f6f isb sy
  55836. 80170e2: f3bf 8f4f dsb sy
  55837. 80170e6: 60fb str r3, [r7, #12]
  55838. }
  55839. 80170e8: bf00 nop
  55840. 80170ea: bf00 nop
  55841. 80170ec: e7fd b.n 80170ea <pvTimerGetTimerID+0x26>
  55842. taskENTER_CRITICAL();
  55843. 80170ee: f000 f93b bl 8017368 <vPortEnterCritical>
  55844. {
  55845. pvReturn = pxTimer->pvTimerID;
  55846. 80170f2: 697b ldr r3, [r7, #20]
  55847. 80170f4: 69db ldr r3, [r3, #28]
  55848. 80170f6: 613b str r3, [r7, #16]
  55849. }
  55850. taskEXIT_CRITICAL();
  55851. 80170f8: f000 f968 bl 80173cc <vPortExitCritical>
  55852. return pvReturn;
  55853. 80170fc: 693b ldr r3, [r7, #16]
  55854. }
  55855. 80170fe: 4618 mov r0, r3
  55856. 8017100: 3718 adds r7, #24
  55857. 8017102: 46bd mov sp, r7
  55858. 8017104: bd80 pop {r7, pc}
  55859. ...
  55860. 08017108 <pxPortInitialiseStack>:
  55861. /*
  55862. * See header file for description.
  55863. */
  55864. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  55865. {
  55866. 8017108: b480 push {r7}
  55867. 801710a: b085 sub sp, #20
  55868. 801710c: af00 add r7, sp, #0
  55869. 801710e: 60f8 str r0, [r7, #12]
  55870. 8017110: 60b9 str r1, [r7, #8]
  55871. 8017112: 607a str r2, [r7, #4]
  55872. /* Simulate the stack frame as it would be created by a context switch
  55873. interrupt. */
  55874. /* Offset added to account for the way the MCU uses the stack on entry/exit
  55875. of interrupts, and to ensure alignment. */
  55876. pxTopOfStack--;
  55877. 8017114: 68fb ldr r3, [r7, #12]
  55878. 8017116: 3b04 subs r3, #4
  55879. 8017118: 60fb str r3, [r7, #12]
  55880. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  55881. 801711a: 68fb ldr r3, [r7, #12]
  55882. 801711c: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  55883. 8017120: 601a str r2, [r3, #0]
  55884. pxTopOfStack--;
  55885. 8017122: 68fb ldr r3, [r7, #12]
  55886. 8017124: 3b04 subs r3, #4
  55887. 8017126: 60fb str r3, [r7, #12]
  55888. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  55889. 8017128: 68bb ldr r3, [r7, #8]
  55890. 801712a: f023 0201 bic.w r2, r3, #1
  55891. 801712e: 68fb ldr r3, [r7, #12]
  55892. 8017130: 601a str r2, [r3, #0]
  55893. pxTopOfStack--;
  55894. 8017132: 68fb ldr r3, [r7, #12]
  55895. 8017134: 3b04 subs r3, #4
  55896. 8017136: 60fb str r3, [r7, #12]
  55897. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  55898. 8017138: 4a0c ldr r2, [pc, #48] @ (801716c <pxPortInitialiseStack+0x64>)
  55899. 801713a: 68fb ldr r3, [r7, #12]
  55900. 801713c: 601a str r2, [r3, #0]
  55901. /* Save code space by skipping register initialisation. */
  55902. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  55903. 801713e: 68fb ldr r3, [r7, #12]
  55904. 8017140: 3b14 subs r3, #20
  55905. 8017142: 60fb str r3, [r7, #12]
  55906. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  55907. 8017144: 687a ldr r2, [r7, #4]
  55908. 8017146: 68fb ldr r3, [r7, #12]
  55909. 8017148: 601a str r2, [r3, #0]
  55910. /* A save method is being used that requires each task to maintain its
  55911. own exec return value. */
  55912. pxTopOfStack--;
  55913. 801714a: 68fb ldr r3, [r7, #12]
  55914. 801714c: 3b04 subs r3, #4
  55915. 801714e: 60fb str r3, [r7, #12]
  55916. *pxTopOfStack = portINITIAL_EXC_RETURN;
  55917. 8017150: 68fb ldr r3, [r7, #12]
  55918. 8017152: f06f 0202 mvn.w r2, #2
  55919. 8017156: 601a str r2, [r3, #0]
  55920. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  55921. 8017158: 68fb ldr r3, [r7, #12]
  55922. 801715a: 3b20 subs r3, #32
  55923. 801715c: 60fb str r3, [r7, #12]
  55924. return pxTopOfStack;
  55925. 801715e: 68fb ldr r3, [r7, #12]
  55926. }
  55927. 8017160: 4618 mov r0, r3
  55928. 8017162: 3714 adds r7, #20
  55929. 8017164: 46bd mov sp, r7
  55930. 8017166: f85d 7b04 ldr.w r7, [sp], #4
  55931. 801716a: 4770 bx lr
  55932. 801716c: 08017171 .word 0x08017171
  55933. 08017170 <prvTaskExitError>:
  55934. /*-----------------------------------------------------------*/
  55935. static void prvTaskExitError( void )
  55936. {
  55937. 8017170: b480 push {r7}
  55938. 8017172: b085 sub sp, #20
  55939. 8017174: af00 add r7, sp, #0
  55940. volatile uint32_t ulDummy = 0;
  55941. 8017176: 2300 movs r3, #0
  55942. 8017178: 607b str r3, [r7, #4]
  55943. its caller as there is nothing to return to. If a task wants to exit it
  55944. should instead call vTaskDelete( NULL ).
  55945. Artificially force an assert() to be triggered if configASSERT() is
  55946. defined, then stop here so application writers can catch the error. */
  55947. configASSERT( uxCriticalNesting == ~0UL );
  55948. 801717a: 4b13 ldr r3, [pc, #76] @ (80171c8 <prvTaskExitError+0x58>)
  55949. 801717c: 681b ldr r3, [r3, #0]
  55950. 801717e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55951. 8017182: d00b beq.n 801719c <prvTaskExitError+0x2c>
  55952. __asm volatile
  55953. 8017184: f04f 0350 mov.w r3, #80 @ 0x50
  55954. 8017188: f383 8811 msr BASEPRI, r3
  55955. 801718c: f3bf 8f6f isb sy
  55956. 8017190: f3bf 8f4f dsb sy
  55957. 8017194: 60fb str r3, [r7, #12]
  55958. }
  55959. 8017196: bf00 nop
  55960. 8017198: bf00 nop
  55961. 801719a: e7fd b.n 8017198 <prvTaskExitError+0x28>
  55962. __asm volatile
  55963. 801719c: f04f 0350 mov.w r3, #80 @ 0x50
  55964. 80171a0: f383 8811 msr BASEPRI, r3
  55965. 80171a4: f3bf 8f6f isb sy
  55966. 80171a8: f3bf 8f4f dsb sy
  55967. 80171ac: 60bb str r3, [r7, #8]
  55968. }
  55969. 80171ae: bf00 nop
  55970. portDISABLE_INTERRUPTS();
  55971. while( ulDummy == 0 )
  55972. 80171b0: bf00 nop
  55973. 80171b2: 687b ldr r3, [r7, #4]
  55974. 80171b4: 2b00 cmp r3, #0
  55975. 80171b6: d0fc beq.n 80171b2 <prvTaskExitError+0x42>
  55976. about code appearing after this function is called - making ulDummy
  55977. volatile makes the compiler think the function could return and
  55978. therefore not output an 'unreachable code' warning for code that appears
  55979. after it. */
  55980. }
  55981. }
  55982. 80171b8: bf00 nop
  55983. 80171ba: bf00 nop
  55984. 80171bc: 3714 adds r7, #20
  55985. 80171be: 46bd mov sp, r7
  55986. 80171c0: f85d 7b04 ldr.w r7, [sp], #4
  55987. 80171c4: 4770 bx lr
  55988. 80171c6: bf00 nop
  55989. 80171c8: 24000044 .word 0x24000044
  55990. 80171cc: 00000000 .word 0x00000000
  55991. 080171d0 <SVC_Handler>:
  55992. /*-----------------------------------------------------------*/
  55993. void vPortSVCHandler( void )
  55994. {
  55995. __asm volatile (
  55996. 80171d0: 4b07 ldr r3, [pc, #28] @ (80171f0 <pxCurrentTCBConst2>)
  55997. 80171d2: 6819 ldr r1, [r3, #0]
  55998. 80171d4: 6808 ldr r0, [r1, #0]
  55999. 80171d6: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56000. 80171da: f380 8809 msr PSP, r0
  56001. 80171de: f3bf 8f6f isb sy
  56002. 80171e2: f04f 0000 mov.w r0, #0
  56003. 80171e6: f380 8811 msr BASEPRI, r0
  56004. 80171ea: 4770 bx lr
  56005. 80171ec: f3af 8000 nop.w
  56006. 080171f0 <pxCurrentTCBConst2>:
  56007. 80171f0: 24002640 .word 0x24002640
  56008. " bx r14 \n"
  56009. " \n"
  56010. " .align 4 \n"
  56011. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  56012. );
  56013. }
  56014. 80171f4: bf00 nop
  56015. 80171f6: bf00 nop
  56016. 080171f8 <prvPortStartFirstTask>:
  56017. {
  56018. /* Start the first task. This also clears the bit that indicates the FPU is
  56019. in use in case the FPU was used before the scheduler was started - which
  56020. would otherwise result in the unnecessary leaving of space in the SVC stack
  56021. for lazy saving of FPU registers. */
  56022. __asm volatile(
  56023. 80171f8: 4808 ldr r0, [pc, #32] @ (801721c <prvPortStartFirstTask+0x24>)
  56024. 80171fa: 6800 ldr r0, [r0, #0]
  56025. 80171fc: 6800 ldr r0, [r0, #0]
  56026. 80171fe: f380 8808 msr MSP, r0
  56027. 8017202: f04f 0000 mov.w r0, #0
  56028. 8017206: f380 8814 msr CONTROL, r0
  56029. 801720a: b662 cpsie i
  56030. 801720c: b661 cpsie f
  56031. 801720e: f3bf 8f4f dsb sy
  56032. 8017212: f3bf 8f6f isb sy
  56033. 8017216: df00 svc 0
  56034. 8017218: bf00 nop
  56035. " dsb \n"
  56036. " isb \n"
  56037. " svc 0 \n" /* System call to start first task. */
  56038. " nop \n"
  56039. );
  56040. }
  56041. 801721a: bf00 nop
  56042. 801721c: e000ed08 .word 0xe000ed08
  56043. 08017220 <xPortStartScheduler>:
  56044. /*
  56045. * See header file for description.
  56046. */
  56047. BaseType_t xPortStartScheduler( void )
  56048. {
  56049. 8017220: b580 push {r7, lr}
  56050. 8017222: b086 sub sp, #24
  56051. 8017224: af00 add r7, sp, #0
  56052. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  56053. /* This port can be used on all revisions of the Cortex-M7 core other than
  56054. the r0p1 parts. r0p1 parts should use the port from the
  56055. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  56056. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  56057. 8017226: 4b47 ldr r3, [pc, #284] @ (8017344 <xPortStartScheduler+0x124>)
  56058. 8017228: 681b ldr r3, [r3, #0]
  56059. 801722a: 4a47 ldr r2, [pc, #284] @ (8017348 <xPortStartScheduler+0x128>)
  56060. 801722c: 4293 cmp r3, r2
  56061. 801722e: d10b bne.n 8017248 <xPortStartScheduler+0x28>
  56062. __asm volatile
  56063. 8017230: f04f 0350 mov.w r3, #80 @ 0x50
  56064. 8017234: f383 8811 msr BASEPRI, r3
  56065. 8017238: f3bf 8f6f isb sy
  56066. 801723c: f3bf 8f4f dsb sy
  56067. 8017240: 613b str r3, [r7, #16]
  56068. }
  56069. 8017242: bf00 nop
  56070. 8017244: bf00 nop
  56071. 8017246: e7fd b.n 8017244 <xPortStartScheduler+0x24>
  56072. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  56073. 8017248: 4b3e ldr r3, [pc, #248] @ (8017344 <xPortStartScheduler+0x124>)
  56074. 801724a: 681b ldr r3, [r3, #0]
  56075. 801724c: 4a3f ldr r2, [pc, #252] @ (801734c <xPortStartScheduler+0x12c>)
  56076. 801724e: 4293 cmp r3, r2
  56077. 8017250: d10b bne.n 801726a <xPortStartScheduler+0x4a>
  56078. __asm volatile
  56079. 8017252: f04f 0350 mov.w r3, #80 @ 0x50
  56080. 8017256: f383 8811 msr BASEPRI, r3
  56081. 801725a: f3bf 8f6f isb sy
  56082. 801725e: f3bf 8f4f dsb sy
  56083. 8017262: 60fb str r3, [r7, #12]
  56084. }
  56085. 8017264: bf00 nop
  56086. 8017266: bf00 nop
  56087. 8017268: e7fd b.n 8017266 <xPortStartScheduler+0x46>
  56088. #if( configASSERT_DEFINED == 1 )
  56089. {
  56090. volatile uint32_t ulOriginalPriority;
  56091. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  56092. 801726a: 4b39 ldr r3, [pc, #228] @ (8017350 <xPortStartScheduler+0x130>)
  56093. 801726c: 617b str r3, [r7, #20]
  56094. functions can be called. ISR safe functions are those that end in
  56095. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  56096. ensure interrupt entry is as fast and simple as possible.
  56097. Save the interrupt priority value that is about to be clobbered. */
  56098. ulOriginalPriority = *pucFirstUserPriorityRegister;
  56099. 801726e: 697b ldr r3, [r7, #20]
  56100. 8017270: 781b ldrb r3, [r3, #0]
  56101. 8017272: b2db uxtb r3, r3
  56102. 8017274: 607b str r3, [r7, #4]
  56103. /* Determine the number of priority bits available. First write to all
  56104. possible bits. */
  56105. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  56106. 8017276: 697b ldr r3, [r7, #20]
  56107. 8017278: 22ff movs r2, #255 @ 0xff
  56108. 801727a: 701a strb r2, [r3, #0]
  56109. /* Read the value back to see how many bits stuck. */
  56110. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  56111. 801727c: 697b ldr r3, [r7, #20]
  56112. 801727e: 781b ldrb r3, [r3, #0]
  56113. 8017280: b2db uxtb r3, r3
  56114. 8017282: 70fb strb r3, [r7, #3]
  56115. /* Use the same mask on the maximum system call priority. */
  56116. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  56117. 8017284: 78fb ldrb r3, [r7, #3]
  56118. 8017286: b2db uxtb r3, r3
  56119. 8017288: f003 0350 and.w r3, r3, #80 @ 0x50
  56120. 801728c: b2da uxtb r2, r3
  56121. 801728e: 4b31 ldr r3, [pc, #196] @ (8017354 <xPortStartScheduler+0x134>)
  56122. 8017290: 701a strb r2, [r3, #0]
  56123. /* Calculate the maximum acceptable priority group value for the number
  56124. of bits read back. */
  56125. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  56126. 8017292: 4b31 ldr r3, [pc, #196] @ (8017358 <xPortStartScheduler+0x138>)
  56127. 8017294: 2207 movs r2, #7
  56128. 8017296: 601a str r2, [r3, #0]
  56129. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  56130. 8017298: e009 b.n 80172ae <xPortStartScheduler+0x8e>
  56131. {
  56132. ulMaxPRIGROUPValue--;
  56133. 801729a: 4b2f ldr r3, [pc, #188] @ (8017358 <xPortStartScheduler+0x138>)
  56134. 801729c: 681b ldr r3, [r3, #0]
  56135. 801729e: 3b01 subs r3, #1
  56136. 80172a0: 4a2d ldr r2, [pc, #180] @ (8017358 <xPortStartScheduler+0x138>)
  56137. 80172a2: 6013 str r3, [r2, #0]
  56138. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  56139. 80172a4: 78fb ldrb r3, [r7, #3]
  56140. 80172a6: b2db uxtb r3, r3
  56141. 80172a8: 005b lsls r3, r3, #1
  56142. 80172aa: b2db uxtb r3, r3
  56143. 80172ac: 70fb strb r3, [r7, #3]
  56144. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  56145. 80172ae: 78fb ldrb r3, [r7, #3]
  56146. 80172b0: b2db uxtb r3, r3
  56147. 80172b2: f003 0380 and.w r3, r3, #128 @ 0x80
  56148. 80172b6: 2b80 cmp r3, #128 @ 0x80
  56149. 80172b8: d0ef beq.n 801729a <xPortStartScheduler+0x7a>
  56150. #ifdef configPRIO_BITS
  56151. {
  56152. /* Check the FreeRTOS configuration that defines the number of
  56153. priority bits matches the number of priority bits actually queried
  56154. from the hardware. */
  56155. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  56156. 80172ba: 4b27 ldr r3, [pc, #156] @ (8017358 <xPortStartScheduler+0x138>)
  56157. 80172bc: 681b ldr r3, [r3, #0]
  56158. 80172be: f1c3 0307 rsb r3, r3, #7
  56159. 80172c2: 2b04 cmp r3, #4
  56160. 80172c4: d00b beq.n 80172de <xPortStartScheduler+0xbe>
  56161. __asm volatile
  56162. 80172c6: f04f 0350 mov.w r3, #80 @ 0x50
  56163. 80172ca: f383 8811 msr BASEPRI, r3
  56164. 80172ce: f3bf 8f6f isb sy
  56165. 80172d2: f3bf 8f4f dsb sy
  56166. 80172d6: 60bb str r3, [r7, #8]
  56167. }
  56168. 80172d8: bf00 nop
  56169. 80172da: bf00 nop
  56170. 80172dc: e7fd b.n 80172da <xPortStartScheduler+0xba>
  56171. }
  56172. #endif
  56173. /* Shift the priority group value back to its position within the AIRCR
  56174. register. */
  56175. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  56176. 80172de: 4b1e ldr r3, [pc, #120] @ (8017358 <xPortStartScheduler+0x138>)
  56177. 80172e0: 681b ldr r3, [r3, #0]
  56178. 80172e2: 021b lsls r3, r3, #8
  56179. 80172e4: 4a1c ldr r2, [pc, #112] @ (8017358 <xPortStartScheduler+0x138>)
  56180. 80172e6: 6013 str r3, [r2, #0]
  56181. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  56182. 80172e8: 4b1b ldr r3, [pc, #108] @ (8017358 <xPortStartScheduler+0x138>)
  56183. 80172ea: 681b ldr r3, [r3, #0]
  56184. 80172ec: f403 63e0 and.w r3, r3, #1792 @ 0x700
  56185. 80172f0: 4a19 ldr r2, [pc, #100] @ (8017358 <xPortStartScheduler+0x138>)
  56186. 80172f2: 6013 str r3, [r2, #0]
  56187. /* Restore the clobbered interrupt priority register to its original
  56188. value. */
  56189. *pucFirstUserPriorityRegister = ulOriginalPriority;
  56190. 80172f4: 687b ldr r3, [r7, #4]
  56191. 80172f6: b2da uxtb r2, r3
  56192. 80172f8: 697b ldr r3, [r7, #20]
  56193. 80172fa: 701a strb r2, [r3, #0]
  56194. }
  56195. #endif /* conifgASSERT_DEFINED */
  56196. /* Make PendSV and SysTick the lowest priority interrupts. */
  56197. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  56198. 80172fc: 4b17 ldr r3, [pc, #92] @ (801735c <xPortStartScheduler+0x13c>)
  56199. 80172fe: 681b ldr r3, [r3, #0]
  56200. 8017300: 4a16 ldr r2, [pc, #88] @ (801735c <xPortStartScheduler+0x13c>)
  56201. 8017302: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  56202. 8017306: 6013 str r3, [r2, #0]
  56203. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  56204. 8017308: 4b14 ldr r3, [pc, #80] @ (801735c <xPortStartScheduler+0x13c>)
  56205. 801730a: 681b ldr r3, [r3, #0]
  56206. 801730c: 4a13 ldr r2, [pc, #76] @ (801735c <xPortStartScheduler+0x13c>)
  56207. 801730e: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  56208. 8017312: 6013 str r3, [r2, #0]
  56209. /* Start the timer that generates the tick ISR. Interrupts are disabled
  56210. here already. */
  56211. vPortSetupTimerInterrupt();
  56212. 8017314: f000 f8da bl 80174cc <vPortSetupTimerInterrupt>
  56213. /* Initialise the critical nesting count ready for the first task. */
  56214. uxCriticalNesting = 0;
  56215. 8017318: 4b11 ldr r3, [pc, #68] @ (8017360 <xPortStartScheduler+0x140>)
  56216. 801731a: 2200 movs r2, #0
  56217. 801731c: 601a str r2, [r3, #0]
  56218. /* Ensure the VFP is enabled - it should be anyway. */
  56219. vPortEnableVFP();
  56220. 801731e: f000 f8f9 bl 8017514 <vPortEnableVFP>
  56221. /* Lazy save always. */
  56222. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  56223. 8017322: 4b10 ldr r3, [pc, #64] @ (8017364 <xPortStartScheduler+0x144>)
  56224. 8017324: 681b ldr r3, [r3, #0]
  56225. 8017326: 4a0f ldr r2, [pc, #60] @ (8017364 <xPortStartScheduler+0x144>)
  56226. 8017328: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  56227. 801732c: 6013 str r3, [r2, #0]
  56228. /* Start the first task. */
  56229. prvPortStartFirstTask();
  56230. 801732e: f7ff ff63 bl 80171f8 <prvPortStartFirstTask>
  56231. exit error function to prevent compiler warnings about a static function
  56232. not being called in the case that the application writer overrides this
  56233. functionality by defining configTASK_RETURN_ADDRESS. Call
  56234. vTaskSwitchContext() so link time optimisation does not remove the
  56235. symbol. */
  56236. vTaskSwitchContext();
  56237. 8017332: f7fe fbd1 bl 8015ad8 <vTaskSwitchContext>
  56238. prvTaskExitError();
  56239. 8017336: f7ff ff1b bl 8017170 <prvTaskExitError>
  56240. /* Should not get here! */
  56241. return 0;
  56242. 801733a: 2300 movs r3, #0
  56243. }
  56244. 801733c: 4618 mov r0, r3
  56245. 801733e: 3718 adds r7, #24
  56246. 8017340: 46bd mov sp, r7
  56247. 8017342: bd80 pop {r7, pc}
  56248. 8017344: e000ed00 .word 0xe000ed00
  56249. 8017348: 410fc271 .word 0x410fc271
  56250. 801734c: 410fc270 .word 0x410fc270
  56251. 8017350: e000e400 .word 0xe000e400
  56252. 8017354: 24002c6c .word 0x24002c6c
  56253. 8017358: 24002c70 .word 0x24002c70
  56254. 801735c: e000ed20 .word 0xe000ed20
  56255. 8017360: 24000044 .word 0x24000044
  56256. 8017364: e000ef34 .word 0xe000ef34
  56257. 08017368 <vPortEnterCritical>:
  56258. configASSERT( uxCriticalNesting == 1000UL );
  56259. }
  56260. /*-----------------------------------------------------------*/
  56261. void vPortEnterCritical( void )
  56262. {
  56263. 8017368: b480 push {r7}
  56264. 801736a: b083 sub sp, #12
  56265. 801736c: af00 add r7, sp, #0
  56266. __asm volatile
  56267. 801736e: f04f 0350 mov.w r3, #80 @ 0x50
  56268. 8017372: f383 8811 msr BASEPRI, r3
  56269. 8017376: f3bf 8f6f isb sy
  56270. 801737a: f3bf 8f4f dsb sy
  56271. 801737e: 607b str r3, [r7, #4]
  56272. }
  56273. 8017380: bf00 nop
  56274. portDISABLE_INTERRUPTS();
  56275. uxCriticalNesting++;
  56276. 8017382: 4b10 ldr r3, [pc, #64] @ (80173c4 <vPortEnterCritical+0x5c>)
  56277. 8017384: 681b ldr r3, [r3, #0]
  56278. 8017386: 3301 adds r3, #1
  56279. 8017388: 4a0e ldr r2, [pc, #56] @ (80173c4 <vPortEnterCritical+0x5c>)
  56280. 801738a: 6013 str r3, [r2, #0]
  56281. /* This is not the interrupt safe version of the enter critical function so
  56282. assert() if it is being called from an interrupt context. Only API
  56283. functions that end in "FromISR" can be used in an interrupt. Only assert if
  56284. the critical nesting count is 1 to protect against recursive calls if the
  56285. assert function also uses a critical section. */
  56286. if( uxCriticalNesting == 1 )
  56287. 801738c: 4b0d ldr r3, [pc, #52] @ (80173c4 <vPortEnterCritical+0x5c>)
  56288. 801738e: 681b ldr r3, [r3, #0]
  56289. 8017390: 2b01 cmp r3, #1
  56290. 8017392: d110 bne.n 80173b6 <vPortEnterCritical+0x4e>
  56291. {
  56292. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  56293. 8017394: 4b0c ldr r3, [pc, #48] @ (80173c8 <vPortEnterCritical+0x60>)
  56294. 8017396: 681b ldr r3, [r3, #0]
  56295. 8017398: b2db uxtb r3, r3
  56296. 801739a: 2b00 cmp r3, #0
  56297. 801739c: d00b beq.n 80173b6 <vPortEnterCritical+0x4e>
  56298. __asm volatile
  56299. 801739e: f04f 0350 mov.w r3, #80 @ 0x50
  56300. 80173a2: f383 8811 msr BASEPRI, r3
  56301. 80173a6: f3bf 8f6f isb sy
  56302. 80173aa: f3bf 8f4f dsb sy
  56303. 80173ae: 603b str r3, [r7, #0]
  56304. }
  56305. 80173b0: bf00 nop
  56306. 80173b2: bf00 nop
  56307. 80173b4: e7fd b.n 80173b2 <vPortEnterCritical+0x4a>
  56308. }
  56309. }
  56310. 80173b6: bf00 nop
  56311. 80173b8: 370c adds r7, #12
  56312. 80173ba: 46bd mov sp, r7
  56313. 80173bc: f85d 7b04 ldr.w r7, [sp], #4
  56314. 80173c0: 4770 bx lr
  56315. 80173c2: bf00 nop
  56316. 80173c4: 24000044 .word 0x24000044
  56317. 80173c8: e000ed04 .word 0xe000ed04
  56318. 080173cc <vPortExitCritical>:
  56319. /*-----------------------------------------------------------*/
  56320. void vPortExitCritical( void )
  56321. {
  56322. 80173cc: b480 push {r7}
  56323. 80173ce: b083 sub sp, #12
  56324. 80173d0: af00 add r7, sp, #0
  56325. configASSERT( uxCriticalNesting );
  56326. 80173d2: 4b12 ldr r3, [pc, #72] @ (801741c <vPortExitCritical+0x50>)
  56327. 80173d4: 681b ldr r3, [r3, #0]
  56328. 80173d6: 2b00 cmp r3, #0
  56329. 80173d8: d10b bne.n 80173f2 <vPortExitCritical+0x26>
  56330. __asm volatile
  56331. 80173da: f04f 0350 mov.w r3, #80 @ 0x50
  56332. 80173de: f383 8811 msr BASEPRI, r3
  56333. 80173e2: f3bf 8f6f isb sy
  56334. 80173e6: f3bf 8f4f dsb sy
  56335. 80173ea: 607b str r3, [r7, #4]
  56336. }
  56337. 80173ec: bf00 nop
  56338. 80173ee: bf00 nop
  56339. 80173f0: e7fd b.n 80173ee <vPortExitCritical+0x22>
  56340. uxCriticalNesting--;
  56341. 80173f2: 4b0a ldr r3, [pc, #40] @ (801741c <vPortExitCritical+0x50>)
  56342. 80173f4: 681b ldr r3, [r3, #0]
  56343. 80173f6: 3b01 subs r3, #1
  56344. 80173f8: 4a08 ldr r2, [pc, #32] @ (801741c <vPortExitCritical+0x50>)
  56345. 80173fa: 6013 str r3, [r2, #0]
  56346. if( uxCriticalNesting == 0 )
  56347. 80173fc: 4b07 ldr r3, [pc, #28] @ (801741c <vPortExitCritical+0x50>)
  56348. 80173fe: 681b ldr r3, [r3, #0]
  56349. 8017400: 2b00 cmp r3, #0
  56350. 8017402: d105 bne.n 8017410 <vPortExitCritical+0x44>
  56351. 8017404: 2300 movs r3, #0
  56352. 8017406: 603b str r3, [r7, #0]
  56353. __asm volatile
  56354. 8017408: 683b ldr r3, [r7, #0]
  56355. 801740a: f383 8811 msr BASEPRI, r3
  56356. }
  56357. 801740e: bf00 nop
  56358. {
  56359. portENABLE_INTERRUPTS();
  56360. }
  56361. }
  56362. 8017410: bf00 nop
  56363. 8017412: 370c adds r7, #12
  56364. 8017414: 46bd mov sp, r7
  56365. 8017416: f85d 7b04 ldr.w r7, [sp], #4
  56366. 801741a: 4770 bx lr
  56367. 801741c: 24000044 .word 0x24000044
  56368. 08017420 <PendSV_Handler>:
  56369. void xPortPendSVHandler( void )
  56370. {
  56371. /* This is a naked function. */
  56372. __asm volatile
  56373. 8017420: f3ef 8009 mrs r0, PSP
  56374. 8017424: f3bf 8f6f isb sy
  56375. 8017428: 4b15 ldr r3, [pc, #84] @ (8017480 <pxCurrentTCBConst>)
  56376. 801742a: 681a ldr r2, [r3, #0]
  56377. 801742c: f01e 0f10 tst.w lr, #16
  56378. 8017430: bf08 it eq
  56379. 8017432: ed20 8a10 vstmdbeq r0!, {s16-s31}
  56380. 8017436: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56381. 801743a: 6010 str r0, [r2, #0]
  56382. 801743c: e92d 0009 stmdb sp!, {r0, r3}
  56383. 8017440: f04f 0050 mov.w r0, #80 @ 0x50
  56384. 8017444: f380 8811 msr BASEPRI, r0
  56385. 8017448: f3bf 8f4f dsb sy
  56386. 801744c: f3bf 8f6f isb sy
  56387. 8017450: f7fe fb42 bl 8015ad8 <vTaskSwitchContext>
  56388. 8017454: f04f 0000 mov.w r0, #0
  56389. 8017458: f380 8811 msr BASEPRI, r0
  56390. 801745c: bc09 pop {r0, r3}
  56391. 801745e: 6819 ldr r1, [r3, #0]
  56392. 8017460: 6808 ldr r0, [r1, #0]
  56393. 8017462: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56394. 8017466: f01e 0f10 tst.w lr, #16
  56395. 801746a: bf08 it eq
  56396. 801746c: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  56397. 8017470: f380 8809 msr PSP, r0
  56398. 8017474: f3bf 8f6f isb sy
  56399. 8017478: 4770 bx lr
  56400. 801747a: bf00 nop
  56401. 801747c: f3af 8000 nop.w
  56402. 08017480 <pxCurrentTCBConst>:
  56403. 8017480: 24002640 .word 0x24002640
  56404. " \n"
  56405. " .align 4 \n"
  56406. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  56407. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  56408. );
  56409. }
  56410. 8017484: bf00 nop
  56411. 8017486: bf00 nop
  56412. 08017488 <xPortSysTickHandler>:
  56413. /*-----------------------------------------------------------*/
  56414. void xPortSysTickHandler( void )
  56415. {
  56416. 8017488: b580 push {r7, lr}
  56417. 801748a: b082 sub sp, #8
  56418. 801748c: af00 add r7, sp, #0
  56419. __asm volatile
  56420. 801748e: f04f 0350 mov.w r3, #80 @ 0x50
  56421. 8017492: f383 8811 msr BASEPRI, r3
  56422. 8017496: f3bf 8f6f isb sy
  56423. 801749a: f3bf 8f4f dsb sy
  56424. 801749e: 607b str r3, [r7, #4]
  56425. }
  56426. 80174a0: bf00 nop
  56427. save and then restore the interrupt mask value as its value is already
  56428. known. */
  56429. portDISABLE_INTERRUPTS();
  56430. {
  56431. /* Increment the RTOS tick. */
  56432. if( xTaskIncrementTick() != pdFALSE )
  56433. 80174a2: f7fe fa5f bl 8015964 <xTaskIncrementTick>
  56434. 80174a6: 4603 mov r3, r0
  56435. 80174a8: 2b00 cmp r3, #0
  56436. 80174aa: d003 beq.n 80174b4 <xPortSysTickHandler+0x2c>
  56437. {
  56438. /* A context switch is required. Context switching is performed in
  56439. the PendSV interrupt. Pend the PendSV interrupt. */
  56440. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  56441. 80174ac: 4b06 ldr r3, [pc, #24] @ (80174c8 <xPortSysTickHandler+0x40>)
  56442. 80174ae: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  56443. 80174b2: 601a str r2, [r3, #0]
  56444. 80174b4: 2300 movs r3, #0
  56445. 80174b6: 603b str r3, [r7, #0]
  56446. __asm volatile
  56447. 80174b8: 683b ldr r3, [r7, #0]
  56448. 80174ba: f383 8811 msr BASEPRI, r3
  56449. }
  56450. 80174be: bf00 nop
  56451. }
  56452. }
  56453. portENABLE_INTERRUPTS();
  56454. }
  56455. 80174c0: bf00 nop
  56456. 80174c2: 3708 adds r7, #8
  56457. 80174c4: 46bd mov sp, r7
  56458. 80174c6: bd80 pop {r7, pc}
  56459. 80174c8: e000ed04 .word 0xe000ed04
  56460. 080174cc <vPortSetupTimerInterrupt>:
  56461. /*
  56462. * Setup the systick timer to generate the tick interrupts at the required
  56463. * frequency.
  56464. */
  56465. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  56466. {
  56467. 80174cc: b480 push {r7}
  56468. 80174ce: af00 add r7, sp, #0
  56469. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  56470. }
  56471. #endif /* configUSE_TICKLESS_IDLE */
  56472. /* Stop and clear the SysTick. */
  56473. portNVIC_SYSTICK_CTRL_REG = 0UL;
  56474. 80174d0: 4b0b ldr r3, [pc, #44] @ (8017500 <vPortSetupTimerInterrupt+0x34>)
  56475. 80174d2: 2200 movs r2, #0
  56476. 80174d4: 601a str r2, [r3, #0]
  56477. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  56478. 80174d6: 4b0b ldr r3, [pc, #44] @ (8017504 <vPortSetupTimerInterrupt+0x38>)
  56479. 80174d8: 2200 movs r2, #0
  56480. 80174da: 601a str r2, [r3, #0]
  56481. /* Configure SysTick to interrupt at the requested rate. */
  56482. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  56483. 80174dc: 4b0a ldr r3, [pc, #40] @ (8017508 <vPortSetupTimerInterrupt+0x3c>)
  56484. 80174de: 681b ldr r3, [r3, #0]
  56485. 80174e0: 4a0a ldr r2, [pc, #40] @ (801750c <vPortSetupTimerInterrupt+0x40>)
  56486. 80174e2: fba2 2303 umull r2, r3, r2, r3
  56487. 80174e6: 099b lsrs r3, r3, #6
  56488. 80174e8: 4a09 ldr r2, [pc, #36] @ (8017510 <vPortSetupTimerInterrupt+0x44>)
  56489. 80174ea: 3b01 subs r3, #1
  56490. 80174ec: 6013 str r3, [r2, #0]
  56491. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  56492. 80174ee: 4b04 ldr r3, [pc, #16] @ (8017500 <vPortSetupTimerInterrupt+0x34>)
  56493. 80174f0: 2207 movs r2, #7
  56494. 80174f2: 601a str r2, [r3, #0]
  56495. }
  56496. 80174f4: bf00 nop
  56497. 80174f6: 46bd mov sp, r7
  56498. 80174f8: f85d 7b04 ldr.w r7, [sp], #4
  56499. 80174fc: 4770 bx lr
  56500. 80174fe: bf00 nop
  56501. 8017500: e000e010 .word 0xe000e010
  56502. 8017504: e000e018 .word 0xe000e018
  56503. 8017508: 24000034 .word 0x24000034
  56504. 801750c: 10624dd3 .word 0x10624dd3
  56505. 8017510: e000e014 .word 0xe000e014
  56506. 08017514 <vPortEnableVFP>:
  56507. /*-----------------------------------------------------------*/
  56508. /* This is a naked function. */
  56509. static void vPortEnableVFP( void )
  56510. {
  56511. __asm volatile
  56512. 8017514: f8df 000c ldr.w r0, [pc, #12] @ 8017524 <vPortEnableVFP+0x10>
  56513. 8017518: 6801 ldr r1, [r0, #0]
  56514. 801751a: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  56515. 801751e: 6001 str r1, [r0, #0]
  56516. 8017520: 4770 bx lr
  56517. " \n"
  56518. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  56519. " str r1, [r0] \n"
  56520. " bx r14 "
  56521. );
  56522. }
  56523. 8017522: bf00 nop
  56524. 8017524: e000ed88 .word 0xe000ed88
  56525. 08017528 <vPortValidateInterruptPriority>:
  56526. /*-----------------------------------------------------------*/
  56527. #if( configASSERT_DEFINED == 1 )
  56528. void vPortValidateInterruptPriority( void )
  56529. {
  56530. 8017528: b480 push {r7}
  56531. 801752a: b085 sub sp, #20
  56532. 801752c: af00 add r7, sp, #0
  56533. uint32_t ulCurrentInterrupt;
  56534. uint8_t ucCurrentPriority;
  56535. /* Obtain the number of the currently executing interrupt. */
  56536. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  56537. 801752e: f3ef 8305 mrs r3, IPSR
  56538. 8017532: 60fb str r3, [r7, #12]
  56539. /* Is the interrupt number a user defined interrupt? */
  56540. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  56541. 8017534: 68fb ldr r3, [r7, #12]
  56542. 8017536: 2b0f cmp r3, #15
  56543. 8017538: d915 bls.n 8017566 <vPortValidateInterruptPriority+0x3e>
  56544. {
  56545. /* Look up the interrupt's priority. */
  56546. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  56547. 801753a: 4a18 ldr r2, [pc, #96] @ (801759c <vPortValidateInterruptPriority+0x74>)
  56548. 801753c: 68fb ldr r3, [r7, #12]
  56549. 801753e: 4413 add r3, r2
  56550. 8017540: 781b ldrb r3, [r3, #0]
  56551. 8017542: 72fb strb r3, [r7, #11]
  56552. interrupt entry is as fast and simple as possible.
  56553. The following links provide detailed information:
  56554. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  56555. http://www.freertos.org/FAQHelp.html */
  56556. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  56557. 8017544: 4b16 ldr r3, [pc, #88] @ (80175a0 <vPortValidateInterruptPriority+0x78>)
  56558. 8017546: 781b ldrb r3, [r3, #0]
  56559. 8017548: 7afa ldrb r2, [r7, #11]
  56560. 801754a: 429a cmp r2, r3
  56561. 801754c: d20b bcs.n 8017566 <vPortValidateInterruptPriority+0x3e>
  56562. __asm volatile
  56563. 801754e: f04f 0350 mov.w r3, #80 @ 0x50
  56564. 8017552: f383 8811 msr BASEPRI, r3
  56565. 8017556: f3bf 8f6f isb sy
  56566. 801755a: f3bf 8f4f dsb sy
  56567. 801755e: 607b str r3, [r7, #4]
  56568. }
  56569. 8017560: bf00 nop
  56570. 8017562: bf00 nop
  56571. 8017564: e7fd b.n 8017562 <vPortValidateInterruptPriority+0x3a>
  56572. configuration then the correct setting can be achieved on all Cortex-M
  56573. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  56574. scheduler. Note however that some vendor specific peripheral libraries
  56575. assume a non-zero priority group setting, in which cases using a value
  56576. of zero will result in unpredictable behaviour. */
  56577. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  56578. 8017566: 4b0f ldr r3, [pc, #60] @ (80175a4 <vPortValidateInterruptPriority+0x7c>)
  56579. 8017568: 681b ldr r3, [r3, #0]
  56580. 801756a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  56581. 801756e: 4b0e ldr r3, [pc, #56] @ (80175a8 <vPortValidateInterruptPriority+0x80>)
  56582. 8017570: 681b ldr r3, [r3, #0]
  56583. 8017572: 429a cmp r2, r3
  56584. 8017574: d90b bls.n 801758e <vPortValidateInterruptPriority+0x66>
  56585. __asm volatile
  56586. 8017576: f04f 0350 mov.w r3, #80 @ 0x50
  56587. 801757a: f383 8811 msr BASEPRI, r3
  56588. 801757e: f3bf 8f6f isb sy
  56589. 8017582: f3bf 8f4f dsb sy
  56590. 8017586: 603b str r3, [r7, #0]
  56591. }
  56592. 8017588: bf00 nop
  56593. 801758a: bf00 nop
  56594. 801758c: e7fd b.n 801758a <vPortValidateInterruptPriority+0x62>
  56595. }
  56596. 801758e: bf00 nop
  56597. 8017590: 3714 adds r7, #20
  56598. 8017592: 46bd mov sp, r7
  56599. 8017594: f85d 7b04 ldr.w r7, [sp], #4
  56600. 8017598: 4770 bx lr
  56601. 801759a: bf00 nop
  56602. 801759c: e000e3f0 .word 0xe000e3f0
  56603. 80175a0: 24002c6c .word 0x24002c6c
  56604. 80175a4: e000ed0c .word 0xe000ed0c
  56605. 80175a8: 24002c70 .word 0x24002c70
  56606. 080175ac <pvPortMalloc>:
  56607. static size_t xBlockAllocatedBit = 0;
  56608. /*-----------------------------------------------------------*/
  56609. void *pvPortMalloc( size_t xWantedSize )
  56610. {
  56611. 80175ac: b580 push {r7, lr}
  56612. 80175ae: b08a sub sp, #40 @ 0x28
  56613. 80175b0: af00 add r7, sp, #0
  56614. 80175b2: 6078 str r0, [r7, #4]
  56615. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  56616. void *pvReturn = NULL;
  56617. 80175b4: 2300 movs r3, #0
  56618. 80175b6: 61fb str r3, [r7, #28]
  56619. vTaskSuspendAll();
  56620. 80175b8: f7fe f918 bl 80157ec <vTaskSuspendAll>
  56621. {
  56622. /* If this is the first call to malloc then the heap will require
  56623. initialisation to setup the list of free blocks. */
  56624. if( pxEnd == NULL )
  56625. 80175bc: 4b5c ldr r3, [pc, #368] @ (8017730 <pvPortMalloc+0x184>)
  56626. 80175be: 681b ldr r3, [r3, #0]
  56627. 80175c0: 2b00 cmp r3, #0
  56628. 80175c2: d101 bne.n 80175c8 <pvPortMalloc+0x1c>
  56629. {
  56630. prvHeapInit();
  56631. 80175c4: f000 f924 bl 8017810 <prvHeapInit>
  56632. /* Check the requested block size is not so large that the top bit is
  56633. set. The top bit of the block size member of the BlockLink_t structure
  56634. is used to determine who owns the block - the application or the
  56635. kernel, so it must be free. */
  56636. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  56637. 80175c8: 4b5a ldr r3, [pc, #360] @ (8017734 <pvPortMalloc+0x188>)
  56638. 80175ca: 681a ldr r2, [r3, #0]
  56639. 80175cc: 687b ldr r3, [r7, #4]
  56640. 80175ce: 4013 ands r3, r2
  56641. 80175d0: 2b00 cmp r3, #0
  56642. 80175d2: f040 8095 bne.w 8017700 <pvPortMalloc+0x154>
  56643. {
  56644. /* The wanted size is increased so it can contain a BlockLink_t
  56645. structure in addition to the requested amount of bytes. */
  56646. if( xWantedSize > 0 )
  56647. 80175d6: 687b ldr r3, [r7, #4]
  56648. 80175d8: 2b00 cmp r3, #0
  56649. 80175da: d01e beq.n 801761a <pvPortMalloc+0x6e>
  56650. {
  56651. xWantedSize += xHeapStructSize;
  56652. 80175dc: 2208 movs r2, #8
  56653. 80175de: 687b ldr r3, [r7, #4]
  56654. 80175e0: 4413 add r3, r2
  56655. 80175e2: 607b str r3, [r7, #4]
  56656. /* Ensure that blocks are always aligned to the required number
  56657. of bytes. */
  56658. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  56659. 80175e4: 687b ldr r3, [r7, #4]
  56660. 80175e6: f003 0307 and.w r3, r3, #7
  56661. 80175ea: 2b00 cmp r3, #0
  56662. 80175ec: d015 beq.n 801761a <pvPortMalloc+0x6e>
  56663. {
  56664. /* Byte alignment required. */
  56665. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  56666. 80175ee: 687b ldr r3, [r7, #4]
  56667. 80175f0: f023 0307 bic.w r3, r3, #7
  56668. 80175f4: 3308 adds r3, #8
  56669. 80175f6: 607b str r3, [r7, #4]
  56670. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  56671. 80175f8: 687b ldr r3, [r7, #4]
  56672. 80175fa: f003 0307 and.w r3, r3, #7
  56673. 80175fe: 2b00 cmp r3, #0
  56674. 8017600: d00b beq.n 801761a <pvPortMalloc+0x6e>
  56675. __asm volatile
  56676. 8017602: f04f 0350 mov.w r3, #80 @ 0x50
  56677. 8017606: f383 8811 msr BASEPRI, r3
  56678. 801760a: f3bf 8f6f isb sy
  56679. 801760e: f3bf 8f4f dsb sy
  56680. 8017612: 617b str r3, [r7, #20]
  56681. }
  56682. 8017614: bf00 nop
  56683. 8017616: bf00 nop
  56684. 8017618: e7fd b.n 8017616 <pvPortMalloc+0x6a>
  56685. else
  56686. {
  56687. mtCOVERAGE_TEST_MARKER();
  56688. }
  56689. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  56690. 801761a: 687b ldr r3, [r7, #4]
  56691. 801761c: 2b00 cmp r3, #0
  56692. 801761e: d06f beq.n 8017700 <pvPortMalloc+0x154>
  56693. 8017620: 4b45 ldr r3, [pc, #276] @ (8017738 <pvPortMalloc+0x18c>)
  56694. 8017622: 681b ldr r3, [r3, #0]
  56695. 8017624: 687a ldr r2, [r7, #4]
  56696. 8017626: 429a cmp r2, r3
  56697. 8017628: d86a bhi.n 8017700 <pvPortMalloc+0x154>
  56698. {
  56699. /* Traverse the list from the start (lowest address) block until
  56700. one of adequate size is found. */
  56701. pxPreviousBlock = &xStart;
  56702. 801762a: 4b44 ldr r3, [pc, #272] @ (801773c <pvPortMalloc+0x190>)
  56703. 801762c: 623b str r3, [r7, #32]
  56704. pxBlock = xStart.pxNextFreeBlock;
  56705. 801762e: 4b43 ldr r3, [pc, #268] @ (801773c <pvPortMalloc+0x190>)
  56706. 8017630: 681b ldr r3, [r3, #0]
  56707. 8017632: 627b str r3, [r7, #36] @ 0x24
  56708. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  56709. 8017634: e004 b.n 8017640 <pvPortMalloc+0x94>
  56710. {
  56711. pxPreviousBlock = pxBlock;
  56712. 8017636: 6a7b ldr r3, [r7, #36] @ 0x24
  56713. 8017638: 623b str r3, [r7, #32]
  56714. pxBlock = pxBlock->pxNextFreeBlock;
  56715. 801763a: 6a7b ldr r3, [r7, #36] @ 0x24
  56716. 801763c: 681b ldr r3, [r3, #0]
  56717. 801763e: 627b str r3, [r7, #36] @ 0x24
  56718. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  56719. 8017640: 6a7b ldr r3, [r7, #36] @ 0x24
  56720. 8017642: 685b ldr r3, [r3, #4]
  56721. 8017644: 687a ldr r2, [r7, #4]
  56722. 8017646: 429a cmp r2, r3
  56723. 8017648: d903 bls.n 8017652 <pvPortMalloc+0xa6>
  56724. 801764a: 6a7b ldr r3, [r7, #36] @ 0x24
  56725. 801764c: 681b ldr r3, [r3, #0]
  56726. 801764e: 2b00 cmp r3, #0
  56727. 8017650: d1f1 bne.n 8017636 <pvPortMalloc+0x8a>
  56728. }
  56729. /* If the end marker was reached then a block of adequate size
  56730. was not found. */
  56731. if( pxBlock != pxEnd )
  56732. 8017652: 4b37 ldr r3, [pc, #220] @ (8017730 <pvPortMalloc+0x184>)
  56733. 8017654: 681b ldr r3, [r3, #0]
  56734. 8017656: 6a7a ldr r2, [r7, #36] @ 0x24
  56735. 8017658: 429a cmp r2, r3
  56736. 801765a: d051 beq.n 8017700 <pvPortMalloc+0x154>
  56737. {
  56738. /* Return the memory space pointed to - jumping over the
  56739. BlockLink_t structure at its start. */
  56740. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  56741. 801765c: 6a3b ldr r3, [r7, #32]
  56742. 801765e: 681b ldr r3, [r3, #0]
  56743. 8017660: 2208 movs r2, #8
  56744. 8017662: 4413 add r3, r2
  56745. 8017664: 61fb str r3, [r7, #28]
  56746. /* This block is being returned for use so must be taken out
  56747. of the list of free blocks. */
  56748. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  56749. 8017666: 6a7b ldr r3, [r7, #36] @ 0x24
  56750. 8017668: 681a ldr r2, [r3, #0]
  56751. 801766a: 6a3b ldr r3, [r7, #32]
  56752. 801766c: 601a str r2, [r3, #0]
  56753. /* If the block is larger than required it can be split into
  56754. two. */
  56755. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  56756. 801766e: 6a7b ldr r3, [r7, #36] @ 0x24
  56757. 8017670: 685a ldr r2, [r3, #4]
  56758. 8017672: 687b ldr r3, [r7, #4]
  56759. 8017674: 1ad2 subs r2, r2, r3
  56760. 8017676: 2308 movs r3, #8
  56761. 8017678: 005b lsls r3, r3, #1
  56762. 801767a: 429a cmp r2, r3
  56763. 801767c: d920 bls.n 80176c0 <pvPortMalloc+0x114>
  56764. {
  56765. /* This block is to be split into two. Create a new
  56766. block following the number of bytes requested. The void
  56767. cast is used to prevent byte alignment warnings from the
  56768. compiler. */
  56769. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  56770. 801767e: 6a7a ldr r2, [r7, #36] @ 0x24
  56771. 8017680: 687b ldr r3, [r7, #4]
  56772. 8017682: 4413 add r3, r2
  56773. 8017684: 61bb str r3, [r7, #24]
  56774. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  56775. 8017686: 69bb ldr r3, [r7, #24]
  56776. 8017688: f003 0307 and.w r3, r3, #7
  56777. 801768c: 2b00 cmp r3, #0
  56778. 801768e: d00b beq.n 80176a8 <pvPortMalloc+0xfc>
  56779. __asm volatile
  56780. 8017690: f04f 0350 mov.w r3, #80 @ 0x50
  56781. 8017694: f383 8811 msr BASEPRI, r3
  56782. 8017698: f3bf 8f6f isb sy
  56783. 801769c: f3bf 8f4f dsb sy
  56784. 80176a0: 613b str r3, [r7, #16]
  56785. }
  56786. 80176a2: bf00 nop
  56787. 80176a4: bf00 nop
  56788. 80176a6: e7fd b.n 80176a4 <pvPortMalloc+0xf8>
  56789. /* Calculate the sizes of two blocks split from the
  56790. single block. */
  56791. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  56792. 80176a8: 6a7b ldr r3, [r7, #36] @ 0x24
  56793. 80176aa: 685a ldr r2, [r3, #4]
  56794. 80176ac: 687b ldr r3, [r7, #4]
  56795. 80176ae: 1ad2 subs r2, r2, r3
  56796. 80176b0: 69bb ldr r3, [r7, #24]
  56797. 80176b2: 605a str r2, [r3, #4]
  56798. pxBlock->xBlockSize = xWantedSize;
  56799. 80176b4: 6a7b ldr r3, [r7, #36] @ 0x24
  56800. 80176b6: 687a ldr r2, [r7, #4]
  56801. 80176b8: 605a str r2, [r3, #4]
  56802. /* Insert the new block into the list of free blocks. */
  56803. prvInsertBlockIntoFreeList( pxNewBlockLink );
  56804. 80176ba: 69b8 ldr r0, [r7, #24]
  56805. 80176bc: f000 f90a bl 80178d4 <prvInsertBlockIntoFreeList>
  56806. else
  56807. {
  56808. mtCOVERAGE_TEST_MARKER();
  56809. }
  56810. xFreeBytesRemaining -= pxBlock->xBlockSize;
  56811. 80176c0: 4b1d ldr r3, [pc, #116] @ (8017738 <pvPortMalloc+0x18c>)
  56812. 80176c2: 681a ldr r2, [r3, #0]
  56813. 80176c4: 6a7b ldr r3, [r7, #36] @ 0x24
  56814. 80176c6: 685b ldr r3, [r3, #4]
  56815. 80176c8: 1ad3 subs r3, r2, r3
  56816. 80176ca: 4a1b ldr r2, [pc, #108] @ (8017738 <pvPortMalloc+0x18c>)
  56817. 80176cc: 6013 str r3, [r2, #0]
  56818. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  56819. 80176ce: 4b1a ldr r3, [pc, #104] @ (8017738 <pvPortMalloc+0x18c>)
  56820. 80176d0: 681a ldr r2, [r3, #0]
  56821. 80176d2: 4b1b ldr r3, [pc, #108] @ (8017740 <pvPortMalloc+0x194>)
  56822. 80176d4: 681b ldr r3, [r3, #0]
  56823. 80176d6: 429a cmp r2, r3
  56824. 80176d8: d203 bcs.n 80176e2 <pvPortMalloc+0x136>
  56825. {
  56826. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  56827. 80176da: 4b17 ldr r3, [pc, #92] @ (8017738 <pvPortMalloc+0x18c>)
  56828. 80176dc: 681b ldr r3, [r3, #0]
  56829. 80176de: 4a18 ldr r2, [pc, #96] @ (8017740 <pvPortMalloc+0x194>)
  56830. 80176e0: 6013 str r3, [r2, #0]
  56831. mtCOVERAGE_TEST_MARKER();
  56832. }
  56833. /* The block is being returned - it is allocated and owned
  56834. by the application and has no "next" block. */
  56835. pxBlock->xBlockSize |= xBlockAllocatedBit;
  56836. 80176e2: 6a7b ldr r3, [r7, #36] @ 0x24
  56837. 80176e4: 685a ldr r2, [r3, #4]
  56838. 80176e6: 4b13 ldr r3, [pc, #76] @ (8017734 <pvPortMalloc+0x188>)
  56839. 80176e8: 681b ldr r3, [r3, #0]
  56840. 80176ea: 431a orrs r2, r3
  56841. 80176ec: 6a7b ldr r3, [r7, #36] @ 0x24
  56842. 80176ee: 605a str r2, [r3, #4]
  56843. pxBlock->pxNextFreeBlock = NULL;
  56844. 80176f0: 6a7b ldr r3, [r7, #36] @ 0x24
  56845. 80176f2: 2200 movs r2, #0
  56846. 80176f4: 601a str r2, [r3, #0]
  56847. xNumberOfSuccessfulAllocations++;
  56848. 80176f6: 4b13 ldr r3, [pc, #76] @ (8017744 <pvPortMalloc+0x198>)
  56849. 80176f8: 681b ldr r3, [r3, #0]
  56850. 80176fa: 3301 adds r3, #1
  56851. 80176fc: 4a11 ldr r2, [pc, #68] @ (8017744 <pvPortMalloc+0x198>)
  56852. 80176fe: 6013 str r3, [r2, #0]
  56853. mtCOVERAGE_TEST_MARKER();
  56854. }
  56855. traceMALLOC( pvReturn, xWantedSize );
  56856. }
  56857. ( void ) xTaskResumeAll();
  56858. 8017700: f7fe f882 bl 8015808 <xTaskResumeAll>
  56859. mtCOVERAGE_TEST_MARKER();
  56860. }
  56861. }
  56862. #endif
  56863. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  56864. 8017704: 69fb ldr r3, [r7, #28]
  56865. 8017706: f003 0307 and.w r3, r3, #7
  56866. 801770a: 2b00 cmp r3, #0
  56867. 801770c: d00b beq.n 8017726 <pvPortMalloc+0x17a>
  56868. __asm volatile
  56869. 801770e: f04f 0350 mov.w r3, #80 @ 0x50
  56870. 8017712: f383 8811 msr BASEPRI, r3
  56871. 8017716: f3bf 8f6f isb sy
  56872. 801771a: f3bf 8f4f dsb sy
  56873. 801771e: 60fb str r3, [r7, #12]
  56874. }
  56875. 8017720: bf00 nop
  56876. 8017722: bf00 nop
  56877. 8017724: e7fd b.n 8017722 <pvPortMalloc+0x176>
  56878. return pvReturn;
  56879. 8017726: 69fb ldr r3, [r7, #28]
  56880. }
  56881. 8017728: 4618 mov r0, r3
  56882. 801772a: 3728 adds r7, #40 @ 0x28
  56883. 801772c: 46bd mov sp, r7
  56884. 801772e: bd80 pop {r7, pc}
  56885. 8017730: 24012c7c .word 0x24012c7c
  56886. 8017734: 24012c90 .word 0x24012c90
  56887. 8017738: 24012c80 .word 0x24012c80
  56888. 801773c: 24012c74 .word 0x24012c74
  56889. 8017740: 24012c84 .word 0x24012c84
  56890. 8017744: 24012c88 .word 0x24012c88
  56891. 08017748 <vPortFree>:
  56892. /*-----------------------------------------------------------*/
  56893. void vPortFree( void *pv )
  56894. {
  56895. 8017748: b580 push {r7, lr}
  56896. 801774a: b086 sub sp, #24
  56897. 801774c: af00 add r7, sp, #0
  56898. 801774e: 6078 str r0, [r7, #4]
  56899. uint8_t *puc = ( uint8_t * ) pv;
  56900. 8017750: 687b ldr r3, [r7, #4]
  56901. 8017752: 617b str r3, [r7, #20]
  56902. BlockLink_t *pxLink;
  56903. if( pv != NULL )
  56904. 8017754: 687b ldr r3, [r7, #4]
  56905. 8017756: 2b00 cmp r3, #0
  56906. 8017758: d04f beq.n 80177fa <vPortFree+0xb2>
  56907. {
  56908. /* The memory being freed will have an BlockLink_t structure immediately
  56909. before it. */
  56910. puc -= xHeapStructSize;
  56911. 801775a: 2308 movs r3, #8
  56912. 801775c: 425b negs r3, r3
  56913. 801775e: 697a ldr r2, [r7, #20]
  56914. 8017760: 4413 add r3, r2
  56915. 8017762: 617b str r3, [r7, #20]
  56916. /* This casting is to keep the compiler from issuing warnings. */
  56917. pxLink = ( void * ) puc;
  56918. 8017764: 697b ldr r3, [r7, #20]
  56919. 8017766: 613b str r3, [r7, #16]
  56920. /* Check the block is actually allocated. */
  56921. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  56922. 8017768: 693b ldr r3, [r7, #16]
  56923. 801776a: 685a ldr r2, [r3, #4]
  56924. 801776c: 4b25 ldr r3, [pc, #148] @ (8017804 <vPortFree+0xbc>)
  56925. 801776e: 681b ldr r3, [r3, #0]
  56926. 8017770: 4013 ands r3, r2
  56927. 8017772: 2b00 cmp r3, #0
  56928. 8017774: d10b bne.n 801778e <vPortFree+0x46>
  56929. __asm volatile
  56930. 8017776: f04f 0350 mov.w r3, #80 @ 0x50
  56931. 801777a: f383 8811 msr BASEPRI, r3
  56932. 801777e: f3bf 8f6f isb sy
  56933. 8017782: f3bf 8f4f dsb sy
  56934. 8017786: 60fb str r3, [r7, #12]
  56935. }
  56936. 8017788: bf00 nop
  56937. 801778a: bf00 nop
  56938. 801778c: e7fd b.n 801778a <vPortFree+0x42>
  56939. configASSERT( pxLink->pxNextFreeBlock == NULL );
  56940. 801778e: 693b ldr r3, [r7, #16]
  56941. 8017790: 681b ldr r3, [r3, #0]
  56942. 8017792: 2b00 cmp r3, #0
  56943. 8017794: d00b beq.n 80177ae <vPortFree+0x66>
  56944. __asm volatile
  56945. 8017796: f04f 0350 mov.w r3, #80 @ 0x50
  56946. 801779a: f383 8811 msr BASEPRI, r3
  56947. 801779e: f3bf 8f6f isb sy
  56948. 80177a2: f3bf 8f4f dsb sy
  56949. 80177a6: 60bb str r3, [r7, #8]
  56950. }
  56951. 80177a8: bf00 nop
  56952. 80177aa: bf00 nop
  56953. 80177ac: e7fd b.n 80177aa <vPortFree+0x62>
  56954. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  56955. 80177ae: 693b ldr r3, [r7, #16]
  56956. 80177b0: 685a ldr r2, [r3, #4]
  56957. 80177b2: 4b14 ldr r3, [pc, #80] @ (8017804 <vPortFree+0xbc>)
  56958. 80177b4: 681b ldr r3, [r3, #0]
  56959. 80177b6: 4013 ands r3, r2
  56960. 80177b8: 2b00 cmp r3, #0
  56961. 80177ba: d01e beq.n 80177fa <vPortFree+0xb2>
  56962. {
  56963. if( pxLink->pxNextFreeBlock == NULL )
  56964. 80177bc: 693b ldr r3, [r7, #16]
  56965. 80177be: 681b ldr r3, [r3, #0]
  56966. 80177c0: 2b00 cmp r3, #0
  56967. 80177c2: d11a bne.n 80177fa <vPortFree+0xb2>
  56968. {
  56969. /* The block is being returned to the heap - it is no longer
  56970. allocated. */
  56971. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  56972. 80177c4: 693b ldr r3, [r7, #16]
  56973. 80177c6: 685a ldr r2, [r3, #4]
  56974. 80177c8: 4b0e ldr r3, [pc, #56] @ (8017804 <vPortFree+0xbc>)
  56975. 80177ca: 681b ldr r3, [r3, #0]
  56976. 80177cc: 43db mvns r3, r3
  56977. 80177ce: 401a ands r2, r3
  56978. 80177d0: 693b ldr r3, [r7, #16]
  56979. 80177d2: 605a str r2, [r3, #4]
  56980. vTaskSuspendAll();
  56981. 80177d4: f7fe f80a bl 80157ec <vTaskSuspendAll>
  56982. {
  56983. /* Add this block to the list of free blocks. */
  56984. xFreeBytesRemaining += pxLink->xBlockSize;
  56985. 80177d8: 693b ldr r3, [r7, #16]
  56986. 80177da: 685a ldr r2, [r3, #4]
  56987. 80177dc: 4b0a ldr r3, [pc, #40] @ (8017808 <vPortFree+0xc0>)
  56988. 80177de: 681b ldr r3, [r3, #0]
  56989. 80177e0: 4413 add r3, r2
  56990. 80177e2: 4a09 ldr r2, [pc, #36] @ (8017808 <vPortFree+0xc0>)
  56991. 80177e4: 6013 str r3, [r2, #0]
  56992. traceFREE( pv, pxLink->xBlockSize );
  56993. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  56994. 80177e6: 6938 ldr r0, [r7, #16]
  56995. 80177e8: f000 f874 bl 80178d4 <prvInsertBlockIntoFreeList>
  56996. xNumberOfSuccessfulFrees++;
  56997. 80177ec: 4b07 ldr r3, [pc, #28] @ (801780c <vPortFree+0xc4>)
  56998. 80177ee: 681b ldr r3, [r3, #0]
  56999. 80177f0: 3301 adds r3, #1
  57000. 80177f2: 4a06 ldr r2, [pc, #24] @ (801780c <vPortFree+0xc4>)
  57001. 80177f4: 6013 str r3, [r2, #0]
  57002. }
  57003. ( void ) xTaskResumeAll();
  57004. 80177f6: f7fe f807 bl 8015808 <xTaskResumeAll>
  57005. else
  57006. {
  57007. mtCOVERAGE_TEST_MARKER();
  57008. }
  57009. }
  57010. }
  57011. 80177fa: bf00 nop
  57012. 80177fc: 3718 adds r7, #24
  57013. 80177fe: 46bd mov sp, r7
  57014. 8017800: bd80 pop {r7, pc}
  57015. 8017802: bf00 nop
  57016. 8017804: 24012c90 .word 0x24012c90
  57017. 8017808: 24012c80 .word 0x24012c80
  57018. 801780c: 24012c8c .word 0x24012c8c
  57019. 08017810 <prvHeapInit>:
  57020. /* This just exists to keep the linker quiet. */
  57021. }
  57022. /*-----------------------------------------------------------*/
  57023. static void prvHeapInit( void )
  57024. {
  57025. 8017810: b480 push {r7}
  57026. 8017812: b085 sub sp, #20
  57027. 8017814: af00 add r7, sp, #0
  57028. BlockLink_t *pxFirstFreeBlock;
  57029. uint8_t *pucAlignedHeap;
  57030. size_t uxAddress;
  57031. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  57032. 8017816: f44f 3380 mov.w r3, #65536 @ 0x10000
  57033. 801781a: 60bb str r3, [r7, #8]
  57034. /* Ensure the heap starts on a correctly aligned boundary. */
  57035. uxAddress = ( size_t ) ucHeap;
  57036. 801781c: 4b27 ldr r3, [pc, #156] @ (80178bc <prvHeapInit+0xac>)
  57037. 801781e: 60fb str r3, [r7, #12]
  57038. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  57039. 8017820: 68fb ldr r3, [r7, #12]
  57040. 8017822: f003 0307 and.w r3, r3, #7
  57041. 8017826: 2b00 cmp r3, #0
  57042. 8017828: d00c beq.n 8017844 <prvHeapInit+0x34>
  57043. {
  57044. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  57045. 801782a: 68fb ldr r3, [r7, #12]
  57046. 801782c: 3307 adds r3, #7
  57047. 801782e: 60fb str r3, [r7, #12]
  57048. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  57049. 8017830: 68fb ldr r3, [r7, #12]
  57050. 8017832: f023 0307 bic.w r3, r3, #7
  57051. 8017836: 60fb str r3, [r7, #12]
  57052. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  57053. 8017838: 68ba ldr r2, [r7, #8]
  57054. 801783a: 68fb ldr r3, [r7, #12]
  57055. 801783c: 1ad3 subs r3, r2, r3
  57056. 801783e: 4a1f ldr r2, [pc, #124] @ (80178bc <prvHeapInit+0xac>)
  57057. 8017840: 4413 add r3, r2
  57058. 8017842: 60bb str r3, [r7, #8]
  57059. }
  57060. pucAlignedHeap = ( uint8_t * ) uxAddress;
  57061. 8017844: 68fb ldr r3, [r7, #12]
  57062. 8017846: 607b str r3, [r7, #4]
  57063. /* xStart is used to hold a pointer to the first item in the list of free
  57064. blocks. The void cast is used to prevent compiler warnings. */
  57065. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  57066. 8017848: 4a1d ldr r2, [pc, #116] @ (80178c0 <prvHeapInit+0xb0>)
  57067. 801784a: 687b ldr r3, [r7, #4]
  57068. 801784c: 6013 str r3, [r2, #0]
  57069. xStart.xBlockSize = ( size_t ) 0;
  57070. 801784e: 4b1c ldr r3, [pc, #112] @ (80178c0 <prvHeapInit+0xb0>)
  57071. 8017850: 2200 movs r2, #0
  57072. 8017852: 605a str r2, [r3, #4]
  57073. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  57074. at the end of the heap space. */
  57075. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  57076. 8017854: 687b ldr r3, [r7, #4]
  57077. 8017856: 68ba ldr r2, [r7, #8]
  57078. 8017858: 4413 add r3, r2
  57079. 801785a: 60fb str r3, [r7, #12]
  57080. uxAddress -= xHeapStructSize;
  57081. 801785c: 2208 movs r2, #8
  57082. 801785e: 68fb ldr r3, [r7, #12]
  57083. 8017860: 1a9b subs r3, r3, r2
  57084. 8017862: 60fb str r3, [r7, #12]
  57085. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  57086. 8017864: 68fb ldr r3, [r7, #12]
  57087. 8017866: f023 0307 bic.w r3, r3, #7
  57088. 801786a: 60fb str r3, [r7, #12]
  57089. pxEnd = ( void * ) uxAddress;
  57090. 801786c: 68fb ldr r3, [r7, #12]
  57091. 801786e: 4a15 ldr r2, [pc, #84] @ (80178c4 <prvHeapInit+0xb4>)
  57092. 8017870: 6013 str r3, [r2, #0]
  57093. pxEnd->xBlockSize = 0;
  57094. 8017872: 4b14 ldr r3, [pc, #80] @ (80178c4 <prvHeapInit+0xb4>)
  57095. 8017874: 681b ldr r3, [r3, #0]
  57096. 8017876: 2200 movs r2, #0
  57097. 8017878: 605a str r2, [r3, #4]
  57098. pxEnd->pxNextFreeBlock = NULL;
  57099. 801787a: 4b12 ldr r3, [pc, #72] @ (80178c4 <prvHeapInit+0xb4>)
  57100. 801787c: 681b ldr r3, [r3, #0]
  57101. 801787e: 2200 movs r2, #0
  57102. 8017880: 601a str r2, [r3, #0]
  57103. /* To start with there is a single free block that is sized to take up the
  57104. entire heap space, minus the space taken by pxEnd. */
  57105. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  57106. 8017882: 687b ldr r3, [r7, #4]
  57107. 8017884: 603b str r3, [r7, #0]
  57108. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  57109. 8017886: 683b ldr r3, [r7, #0]
  57110. 8017888: 68fa ldr r2, [r7, #12]
  57111. 801788a: 1ad2 subs r2, r2, r3
  57112. 801788c: 683b ldr r3, [r7, #0]
  57113. 801788e: 605a str r2, [r3, #4]
  57114. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  57115. 8017890: 4b0c ldr r3, [pc, #48] @ (80178c4 <prvHeapInit+0xb4>)
  57116. 8017892: 681a ldr r2, [r3, #0]
  57117. 8017894: 683b ldr r3, [r7, #0]
  57118. 8017896: 601a str r2, [r3, #0]
  57119. /* Only one block exists - and it covers the entire usable heap space. */
  57120. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  57121. 8017898: 683b ldr r3, [r7, #0]
  57122. 801789a: 685b ldr r3, [r3, #4]
  57123. 801789c: 4a0a ldr r2, [pc, #40] @ (80178c8 <prvHeapInit+0xb8>)
  57124. 801789e: 6013 str r3, [r2, #0]
  57125. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  57126. 80178a0: 683b ldr r3, [r7, #0]
  57127. 80178a2: 685b ldr r3, [r3, #4]
  57128. 80178a4: 4a09 ldr r2, [pc, #36] @ (80178cc <prvHeapInit+0xbc>)
  57129. 80178a6: 6013 str r3, [r2, #0]
  57130. /* Work out the position of the top bit in a size_t variable. */
  57131. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  57132. 80178a8: 4b09 ldr r3, [pc, #36] @ (80178d0 <prvHeapInit+0xc0>)
  57133. 80178aa: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  57134. 80178ae: 601a str r2, [r3, #0]
  57135. }
  57136. 80178b0: bf00 nop
  57137. 80178b2: 3714 adds r7, #20
  57138. 80178b4: 46bd mov sp, r7
  57139. 80178b6: f85d 7b04 ldr.w r7, [sp], #4
  57140. 80178ba: 4770 bx lr
  57141. 80178bc: 24002c74 .word 0x24002c74
  57142. 80178c0: 24012c74 .word 0x24012c74
  57143. 80178c4: 24012c7c .word 0x24012c7c
  57144. 80178c8: 24012c84 .word 0x24012c84
  57145. 80178cc: 24012c80 .word 0x24012c80
  57146. 80178d0: 24012c90 .word 0x24012c90
  57147. 080178d4 <prvInsertBlockIntoFreeList>:
  57148. /*-----------------------------------------------------------*/
  57149. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  57150. {
  57151. 80178d4: b480 push {r7}
  57152. 80178d6: b085 sub sp, #20
  57153. 80178d8: af00 add r7, sp, #0
  57154. 80178da: 6078 str r0, [r7, #4]
  57155. BlockLink_t *pxIterator;
  57156. uint8_t *puc;
  57157. /* Iterate through the list until a block is found that has a higher address
  57158. than the block being inserted. */
  57159. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  57160. 80178dc: 4b28 ldr r3, [pc, #160] @ (8017980 <prvInsertBlockIntoFreeList+0xac>)
  57161. 80178de: 60fb str r3, [r7, #12]
  57162. 80178e0: e002 b.n 80178e8 <prvInsertBlockIntoFreeList+0x14>
  57163. 80178e2: 68fb ldr r3, [r7, #12]
  57164. 80178e4: 681b ldr r3, [r3, #0]
  57165. 80178e6: 60fb str r3, [r7, #12]
  57166. 80178e8: 68fb ldr r3, [r7, #12]
  57167. 80178ea: 681b ldr r3, [r3, #0]
  57168. 80178ec: 687a ldr r2, [r7, #4]
  57169. 80178ee: 429a cmp r2, r3
  57170. 80178f0: d8f7 bhi.n 80178e2 <prvInsertBlockIntoFreeList+0xe>
  57171. /* Nothing to do here, just iterate to the right position. */
  57172. }
  57173. /* Do the block being inserted, and the block it is being inserted after
  57174. make a contiguous block of memory? */
  57175. puc = ( uint8_t * ) pxIterator;
  57176. 80178f2: 68fb ldr r3, [r7, #12]
  57177. 80178f4: 60bb str r3, [r7, #8]
  57178. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  57179. 80178f6: 68fb ldr r3, [r7, #12]
  57180. 80178f8: 685b ldr r3, [r3, #4]
  57181. 80178fa: 68ba ldr r2, [r7, #8]
  57182. 80178fc: 4413 add r3, r2
  57183. 80178fe: 687a ldr r2, [r7, #4]
  57184. 8017900: 429a cmp r2, r3
  57185. 8017902: d108 bne.n 8017916 <prvInsertBlockIntoFreeList+0x42>
  57186. {
  57187. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  57188. 8017904: 68fb ldr r3, [r7, #12]
  57189. 8017906: 685a ldr r2, [r3, #4]
  57190. 8017908: 687b ldr r3, [r7, #4]
  57191. 801790a: 685b ldr r3, [r3, #4]
  57192. 801790c: 441a add r2, r3
  57193. 801790e: 68fb ldr r3, [r7, #12]
  57194. 8017910: 605a str r2, [r3, #4]
  57195. pxBlockToInsert = pxIterator;
  57196. 8017912: 68fb ldr r3, [r7, #12]
  57197. 8017914: 607b str r3, [r7, #4]
  57198. mtCOVERAGE_TEST_MARKER();
  57199. }
  57200. /* Do the block being inserted, and the block it is being inserted before
  57201. make a contiguous block of memory? */
  57202. puc = ( uint8_t * ) pxBlockToInsert;
  57203. 8017916: 687b ldr r3, [r7, #4]
  57204. 8017918: 60bb str r3, [r7, #8]
  57205. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  57206. 801791a: 687b ldr r3, [r7, #4]
  57207. 801791c: 685b ldr r3, [r3, #4]
  57208. 801791e: 68ba ldr r2, [r7, #8]
  57209. 8017920: 441a add r2, r3
  57210. 8017922: 68fb ldr r3, [r7, #12]
  57211. 8017924: 681b ldr r3, [r3, #0]
  57212. 8017926: 429a cmp r2, r3
  57213. 8017928: d118 bne.n 801795c <prvInsertBlockIntoFreeList+0x88>
  57214. {
  57215. if( pxIterator->pxNextFreeBlock != pxEnd )
  57216. 801792a: 68fb ldr r3, [r7, #12]
  57217. 801792c: 681a ldr r2, [r3, #0]
  57218. 801792e: 4b15 ldr r3, [pc, #84] @ (8017984 <prvInsertBlockIntoFreeList+0xb0>)
  57219. 8017930: 681b ldr r3, [r3, #0]
  57220. 8017932: 429a cmp r2, r3
  57221. 8017934: d00d beq.n 8017952 <prvInsertBlockIntoFreeList+0x7e>
  57222. {
  57223. /* Form one big block from the two blocks. */
  57224. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  57225. 8017936: 687b ldr r3, [r7, #4]
  57226. 8017938: 685a ldr r2, [r3, #4]
  57227. 801793a: 68fb ldr r3, [r7, #12]
  57228. 801793c: 681b ldr r3, [r3, #0]
  57229. 801793e: 685b ldr r3, [r3, #4]
  57230. 8017940: 441a add r2, r3
  57231. 8017942: 687b ldr r3, [r7, #4]
  57232. 8017944: 605a str r2, [r3, #4]
  57233. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  57234. 8017946: 68fb ldr r3, [r7, #12]
  57235. 8017948: 681b ldr r3, [r3, #0]
  57236. 801794a: 681a ldr r2, [r3, #0]
  57237. 801794c: 687b ldr r3, [r7, #4]
  57238. 801794e: 601a str r2, [r3, #0]
  57239. 8017950: e008 b.n 8017964 <prvInsertBlockIntoFreeList+0x90>
  57240. }
  57241. else
  57242. {
  57243. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  57244. 8017952: 4b0c ldr r3, [pc, #48] @ (8017984 <prvInsertBlockIntoFreeList+0xb0>)
  57245. 8017954: 681a ldr r2, [r3, #0]
  57246. 8017956: 687b ldr r3, [r7, #4]
  57247. 8017958: 601a str r2, [r3, #0]
  57248. 801795a: e003 b.n 8017964 <prvInsertBlockIntoFreeList+0x90>
  57249. }
  57250. }
  57251. else
  57252. {
  57253. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  57254. 801795c: 68fb ldr r3, [r7, #12]
  57255. 801795e: 681a ldr r2, [r3, #0]
  57256. 8017960: 687b ldr r3, [r7, #4]
  57257. 8017962: 601a str r2, [r3, #0]
  57258. /* If the block being inserted plugged a gab, so was merged with the block
  57259. before and the block after, then it's pxNextFreeBlock pointer will have
  57260. already been set, and should not be set here as that would make it point
  57261. to itself. */
  57262. if( pxIterator != pxBlockToInsert )
  57263. 8017964: 68fa ldr r2, [r7, #12]
  57264. 8017966: 687b ldr r3, [r7, #4]
  57265. 8017968: 429a cmp r2, r3
  57266. 801796a: d002 beq.n 8017972 <prvInsertBlockIntoFreeList+0x9e>
  57267. {
  57268. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  57269. 801796c: 68fb ldr r3, [r7, #12]
  57270. 801796e: 687a ldr r2, [r7, #4]
  57271. 8017970: 601a str r2, [r3, #0]
  57272. }
  57273. else
  57274. {
  57275. mtCOVERAGE_TEST_MARKER();
  57276. }
  57277. }
  57278. 8017972: bf00 nop
  57279. 8017974: 3714 adds r7, #20
  57280. 8017976: 46bd mov sp, r7
  57281. 8017978: f85d 7b04 ldr.w r7, [sp], #4
  57282. 801797c: 4770 bx lr
  57283. 801797e: bf00 nop
  57284. 8017980: 24012c74 .word 0x24012c74
  57285. 8017984: 24012c7c .word 0x24012c7c
  57286. 08017988 <std>:
  57287. 8017988: 2300 movs r3, #0
  57288. 801798a: b510 push {r4, lr}
  57289. 801798c: 4604 mov r4, r0
  57290. 801798e: e9c0 3300 strd r3, r3, [r0]
  57291. 8017992: e9c0 3304 strd r3, r3, [r0, #16]
  57292. 8017996: 6083 str r3, [r0, #8]
  57293. 8017998: 8181 strh r1, [r0, #12]
  57294. 801799a: 6643 str r3, [r0, #100] @ 0x64
  57295. 801799c: 81c2 strh r2, [r0, #14]
  57296. 801799e: 6183 str r3, [r0, #24]
  57297. 80179a0: 4619 mov r1, r3
  57298. 80179a2: 2208 movs r2, #8
  57299. 80179a4: 305c adds r0, #92 @ 0x5c
  57300. 80179a6: f000 f906 bl 8017bb6 <memset>
  57301. 80179aa: 4b0d ldr r3, [pc, #52] @ (80179e0 <std+0x58>)
  57302. 80179ac: 6263 str r3, [r4, #36] @ 0x24
  57303. 80179ae: 4b0d ldr r3, [pc, #52] @ (80179e4 <std+0x5c>)
  57304. 80179b0: 62a3 str r3, [r4, #40] @ 0x28
  57305. 80179b2: 4b0d ldr r3, [pc, #52] @ (80179e8 <std+0x60>)
  57306. 80179b4: 62e3 str r3, [r4, #44] @ 0x2c
  57307. 80179b6: 4b0d ldr r3, [pc, #52] @ (80179ec <std+0x64>)
  57308. 80179b8: 6323 str r3, [r4, #48] @ 0x30
  57309. 80179ba: 4b0d ldr r3, [pc, #52] @ (80179f0 <std+0x68>)
  57310. 80179bc: 6224 str r4, [r4, #32]
  57311. 80179be: 429c cmp r4, r3
  57312. 80179c0: d006 beq.n 80179d0 <std+0x48>
  57313. 80179c2: f103 0268 add.w r2, r3, #104 @ 0x68
  57314. 80179c6: 4294 cmp r4, r2
  57315. 80179c8: d002 beq.n 80179d0 <std+0x48>
  57316. 80179ca: 33d0 adds r3, #208 @ 0xd0
  57317. 80179cc: 429c cmp r4, r3
  57318. 80179ce: d105 bne.n 80179dc <std+0x54>
  57319. 80179d0: f104 0058 add.w r0, r4, #88 @ 0x58
  57320. 80179d4: e8bd 4010 ldmia.w sp!, {r4, lr}
  57321. 80179d8: f000 b9bc b.w 8017d54 <__retarget_lock_init_recursive>
  57322. 80179dc: bd10 pop {r4, pc}
  57323. 80179de: bf00 nop
  57324. 80179e0: 08017b31 .word 0x08017b31
  57325. 80179e4: 08017b53 .word 0x08017b53
  57326. 80179e8: 08017b8b .word 0x08017b8b
  57327. 80179ec: 08017baf .word 0x08017baf
  57328. 80179f0: 24012c94 .word 0x24012c94
  57329. 080179f4 <stdio_exit_handler>:
  57330. 80179f4: 4a02 ldr r2, [pc, #8] @ (8017a00 <stdio_exit_handler+0xc>)
  57331. 80179f6: 4903 ldr r1, [pc, #12] @ (8017a04 <stdio_exit_handler+0x10>)
  57332. 80179f8: 4803 ldr r0, [pc, #12] @ (8017a08 <stdio_exit_handler+0x14>)
  57333. 80179fa: f000 b869 b.w 8017ad0 <_fwalk_sglue>
  57334. 80179fe: bf00 nop
  57335. 8017a00: 24000048 .word 0x24000048
  57336. 8017a04: 08018611 .word 0x08018611
  57337. 8017a08: 24000058 .word 0x24000058
  57338. 08017a0c <cleanup_stdio>:
  57339. 8017a0c: 6841 ldr r1, [r0, #4]
  57340. 8017a0e: 4b0c ldr r3, [pc, #48] @ (8017a40 <cleanup_stdio+0x34>)
  57341. 8017a10: 4299 cmp r1, r3
  57342. 8017a12: b510 push {r4, lr}
  57343. 8017a14: 4604 mov r4, r0
  57344. 8017a16: d001 beq.n 8017a1c <cleanup_stdio+0x10>
  57345. 8017a18: f000 fdfa bl 8018610 <_fflush_r>
  57346. 8017a1c: 68a1 ldr r1, [r4, #8]
  57347. 8017a1e: 4b09 ldr r3, [pc, #36] @ (8017a44 <cleanup_stdio+0x38>)
  57348. 8017a20: 4299 cmp r1, r3
  57349. 8017a22: d002 beq.n 8017a2a <cleanup_stdio+0x1e>
  57350. 8017a24: 4620 mov r0, r4
  57351. 8017a26: f000 fdf3 bl 8018610 <_fflush_r>
  57352. 8017a2a: 68e1 ldr r1, [r4, #12]
  57353. 8017a2c: 4b06 ldr r3, [pc, #24] @ (8017a48 <cleanup_stdio+0x3c>)
  57354. 8017a2e: 4299 cmp r1, r3
  57355. 8017a30: d004 beq.n 8017a3c <cleanup_stdio+0x30>
  57356. 8017a32: 4620 mov r0, r4
  57357. 8017a34: e8bd 4010 ldmia.w sp!, {r4, lr}
  57358. 8017a38: f000 bdea b.w 8018610 <_fflush_r>
  57359. 8017a3c: bd10 pop {r4, pc}
  57360. 8017a3e: bf00 nop
  57361. 8017a40: 24012c94 .word 0x24012c94
  57362. 8017a44: 24012cfc .word 0x24012cfc
  57363. 8017a48: 24012d64 .word 0x24012d64
  57364. 08017a4c <global_stdio_init.part.0>:
  57365. 8017a4c: b510 push {r4, lr}
  57366. 8017a4e: 4b0b ldr r3, [pc, #44] @ (8017a7c <global_stdio_init.part.0+0x30>)
  57367. 8017a50: 4c0b ldr r4, [pc, #44] @ (8017a80 <global_stdio_init.part.0+0x34>)
  57368. 8017a52: 4a0c ldr r2, [pc, #48] @ (8017a84 <global_stdio_init.part.0+0x38>)
  57369. 8017a54: 601a str r2, [r3, #0]
  57370. 8017a56: 4620 mov r0, r4
  57371. 8017a58: 2200 movs r2, #0
  57372. 8017a5a: 2104 movs r1, #4
  57373. 8017a5c: f7ff ff94 bl 8017988 <std>
  57374. 8017a60: f104 0068 add.w r0, r4, #104 @ 0x68
  57375. 8017a64: 2201 movs r2, #1
  57376. 8017a66: 2109 movs r1, #9
  57377. 8017a68: f7ff ff8e bl 8017988 <std>
  57378. 8017a6c: f104 00d0 add.w r0, r4, #208 @ 0xd0
  57379. 8017a70: 2202 movs r2, #2
  57380. 8017a72: e8bd 4010 ldmia.w sp!, {r4, lr}
  57381. 8017a76: 2112 movs r1, #18
  57382. 8017a78: f7ff bf86 b.w 8017988 <std>
  57383. 8017a7c: 24012dcc .word 0x24012dcc
  57384. 8017a80: 24012c94 .word 0x24012c94
  57385. 8017a84: 080179f5 .word 0x080179f5
  57386. 08017a88 <__sfp_lock_acquire>:
  57387. 8017a88: 4801 ldr r0, [pc, #4] @ (8017a90 <__sfp_lock_acquire+0x8>)
  57388. 8017a8a: f000 b964 b.w 8017d56 <__retarget_lock_acquire_recursive>
  57389. 8017a8e: bf00 nop
  57390. 8017a90: 24012dd5 .word 0x24012dd5
  57391. 08017a94 <__sfp_lock_release>:
  57392. 8017a94: 4801 ldr r0, [pc, #4] @ (8017a9c <__sfp_lock_release+0x8>)
  57393. 8017a96: f000 b95f b.w 8017d58 <__retarget_lock_release_recursive>
  57394. 8017a9a: bf00 nop
  57395. 8017a9c: 24012dd5 .word 0x24012dd5
  57396. 08017aa0 <__sinit>:
  57397. 8017aa0: b510 push {r4, lr}
  57398. 8017aa2: 4604 mov r4, r0
  57399. 8017aa4: f7ff fff0 bl 8017a88 <__sfp_lock_acquire>
  57400. 8017aa8: 6a23 ldr r3, [r4, #32]
  57401. 8017aaa: b11b cbz r3, 8017ab4 <__sinit+0x14>
  57402. 8017aac: e8bd 4010 ldmia.w sp!, {r4, lr}
  57403. 8017ab0: f7ff bff0 b.w 8017a94 <__sfp_lock_release>
  57404. 8017ab4: 4b04 ldr r3, [pc, #16] @ (8017ac8 <__sinit+0x28>)
  57405. 8017ab6: 6223 str r3, [r4, #32]
  57406. 8017ab8: 4b04 ldr r3, [pc, #16] @ (8017acc <__sinit+0x2c>)
  57407. 8017aba: 681b ldr r3, [r3, #0]
  57408. 8017abc: 2b00 cmp r3, #0
  57409. 8017abe: d1f5 bne.n 8017aac <__sinit+0xc>
  57410. 8017ac0: f7ff ffc4 bl 8017a4c <global_stdio_init.part.0>
  57411. 8017ac4: e7f2 b.n 8017aac <__sinit+0xc>
  57412. 8017ac6: bf00 nop
  57413. 8017ac8: 08017a0d .word 0x08017a0d
  57414. 8017acc: 24012dcc .word 0x24012dcc
  57415. 08017ad0 <_fwalk_sglue>:
  57416. 8017ad0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  57417. 8017ad4: 4607 mov r7, r0
  57418. 8017ad6: 4688 mov r8, r1
  57419. 8017ad8: 4614 mov r4, r2
  57420. 8017ada: 2600 movs r6, #0
  57421. 8017adc: e9d4 9501 ldrd r9, r5, [r4, #4]
  57422. 8017ae0: f1b9 0901 subs.w r9, r9, #1
  57423. 8017ae4: d505 bpl.n 8017af2 <_fwalk_sglue+0x22>
  57424. 8017ae6: 6824 ldr r4, [r4, #0]
  57425. 8017ae8: 2c00 cmp r4, #0
  57426. 8017aea: d1f7 bne.n 8017adc <_fwalk_sglue+0xc>
  57427. 8017aec: 4630 mov r0, r6
  57428. 8017aee: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  57429. 8017af2: 89ab ldrh r3, [r5, #12]
  57430. 8017af4: 2b01 cmp r3, #1
  57431. 8017af6: d907 bls.n 8017b08 <_fwalk_sglue+0x38>
  57432. 8017af8: f9b5 300e ldrsh.w r3, [r5, #14]
  57433. 8017afc: 3301 adds r3, #1
  57434. 8017afe: d003 beq.n 8017b08 <_fwalk_sglue+0x38>
  57435. 8017b00: 4629 mov r1, r5
  57436. 8017b02: 4638 mov r0, r7
  57437. 8017b04: 47c0 blx r8
  57438. 8017b06: 4306 orrs r6, r0
  57439. 8017b08: 3568 adds r5, #104 @ 0x68
  57440. 8017b0a: e7e9 b.n 8017ae0 <_fwalk_sglue+0x10>
  57441. 08017b0c <iprintf>:
  57442. 8017b0c: b40f push {r0, r1, r2, r3}
  57443. 8017b0e: b507 push {r0, r1, r2, lr}
  57444. 8017b10: 4906 ldr r1, [pc, #24] @ (8017b2c <iprintf+0x20>)
  57445. 8017b12: ab04 add r3, sp, #16
  57446. 8017b14: 6808 ldr r0, [r1, #0]
  57447. 8017b16: f853 2b04 ldr.w r2, [r3], #4
  57448. 8017b1a: 6881 ldr r1, [r0, #8]
  57449. 8017b1c: 9301 str r3, [sp, #4]
  57450. 8017b1e: f000 fa4d bl 8017fbc <_vfiprintf_r>
  57451. 8017b22: b003 add sp, #12
  57452. 8017b24: f85d eb04 ldr.w lr, [sp], #4
  57453. 8017b28: b004 add sp, #16
  57454. 8017b2a: 4770 bx lr
  57455. 8017b2c: 24000054 .word 0x24000054
  57456. 08017b30 <__sread>:
  57457. 8017b30: b510 push {r4, lr}
  57458. 8017b32: 460c mov r4, r1
  57459. 8017b34: f9b1 100e ldrsh.w r1, [r1, #14]
  57460. 8017b38: f000 f8be bl 8017cb8 <_read_r>
  57461. 8017b3c: 2800 cmp r0, #0
  57462. 8017b3e: bfab itete ge
  57463. 8017b40: 6d63 ldrge r3, [r4, #84] @ 0x54
  57464. 8017b42: 89a3 ldrhlt r3, [r4, #12]
  57465. 8017b44: 181b addge r3, r3, r0
  57466. 8017b46: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
  57467. 8017b4a: bfac ite ge
  57468. 8017b4c: 6563 strge r3, [r4, #84] @ 0x54
  57469. 8017b4e: 81a3 strhlt r3, [r4, #12]
  57470. 8017b50: bd10 pop {r4, pc}
  57471. 08017b52 <__swrite>:
  57472. 8017b52: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  57473. 8017b56: 461f mov r7, r3
  57474. 8017b58: 898b ldrh r3, [r1, #12]
  57475. 8017b5a: 05db lsls r3, r3, #23
  57476. 8017b5c: 4605 mov r5, r0
  57477. 8017b5e: 460c mov r4, r1
  57478. 8017b60: 4616 mov r6, r2
  57479. 8017b62: d505 bpl.n 8017b70 <__swrite+0x1e>
  57480. 8017b64: f9b1 100e ldrsh.w r1, [r1, #14]
  57481. 8017b68: 2302 movs r3, #2
  57482. 8017b6a: 2200 movs r2, #0
  57483. 8017b6c: f000 f892 bl 8017c94 <_lseek_r>
  57484. 8017b70: 89a3 ldrh r3, [r4, #12]
  57485. 8017b72: f9b4 100e ldrsh.w r1, [r4, #14]
  57486. 8017b76: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  57487. 8017b7a: 81a3 strh r3, [r4, #12]
  57488. 8017b7c: 4632 mov r2, r6
  57489. 8017b7e: 463b mov r3, r7
  57490. 8017b80: 4628 mov r0, r5
  57491. 8017b82: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  57492. 8017b86: f000 b8a9 b.w 8017cdc <_write_r>
  57493. 08017b8a <__sseek>:
  57494. 8017b8a: b510 push {r4, lr}
  57495. 8017b8c: 460c mov r4, r1
  57496. 8017b8e: f9b1 100e ldrsh.w r1, [r1, #14]
  57497. 8017b92: f000 f87f bl 8017c94 <_lseek_r>
  57498. 8017b96: 1c43 adds r3, r0, #1
  57499. 8017b98: 89a3 ldrh r3, [r4, #12]
  57500. 8017b9a: bf15 itete ne
  57501. 8017b9c: 6560 strne r0, [r4, #84] @ 0x54
  57502. 8017b9e: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
  57503. 8017ba2: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
  57504. 8017ba6: 81a3 strheq r3, [r4, #12]
  57505. 8017ba8: bf18 it ne
  57506. 8017baa: 81a3 strhne r3, [r4, #12]
  57507. 8017bac: bd10 pop {r4, pc}
  57508. 08017bae <__sclose>:
  57509. 8017bae: f9b1 100e ldrsh.w r1, [r1, #14]
  57510. 8017bb2: f000 b809 b.w 8017bc8 <_close_r>
  57511. 08017bb6 <memset>:
  57512. 8017bb6: 4402 add r2, r0
  57513. 8017bb8: 4603 mov r3, r0
  57514. 8017bba: 4293 cmp r3, r2
  57515. 8017bbc: d100 bne.n 8017bc0 <memset+0xa>
  57516. 8017bbe: 4770 bx lr
  57517. 8017bc0: f803 1b01 strb.w r1, [r3], #1
  57518. 8017bc4: e7f9 b.n 8017bba <memset+0x4>
  57519. ...
  57520. 08017bc8 <_close_r>:
  57521. 8017bc8: b538 push {r3, r4, r5, lr}
  57522. 8017bca: 4d06 ldr r5, [pc, #24] @ (8017be4 <_close_r+0x1c>)
  57523. 8017bcc: 2300 movs r3, #0
  57524. 8017bce: 4604 mov r4, r0
  57525. 8017bd0: 4608 mov r0, r1
  57526. 8017bd2: 602b str r3, [r5, #0]
  57527. 8017bd4: f7ec fa2f bl 8004036 <_close>
  57528. 8017bd8: 1c43 adds r3, r0, #1
  57529. 8017bda: d102 bne.n 8017be2 <_close_r+0x1a>
  57530. 8017bdc: 682b ldr r3, [r5, #0]
  57531. 8017bde: b103 cbz r3, 8017be2 <_close_r+0x1a>
  57532. 8017be0: 6023 str r3, [r4, #0]
  57533. 8017be2: bd38 pop {r3, r4, r5, pc}
  57534. 8017be4: 24012dd0 .word 0x24012dd0
  57535. 08017be8 <_reclaim_reent>:
  57536. 8017be8: 4b29 ldr r3, [pc, #164] @ (8017c90 <_reclaim_reent+0xa8>)
  57537. 8017bea: 681b ldr r3, [r3, #0]
  57538. 8017bec: 4283 cmp r3, r0
  57539. 8017bee: b570 push {r4, r5, r6, lr}
  57540. 8017bf0: 4604 mov r4, r0
  57541. 8017bf2: d04b beq.n 8017c8c <_reclaim_reent+0xa4>
  57542. 8017bf4: 69c3 ldr r3, [r0, #28]
  57543. 8017bf6: b1ab cbz r3, 8017c24 <_reclaim_reent+0x3c>
  57544. 8017bf8: 68db ldr r3, [r3, #12]
  57545. 8017bfa: b16b cbz r3, 8017c18 <_reclaim_reent+0x30>
  57546. 8017bfc: 2500 movs r5, #0
  57547. 8017bfe: 69e3 ldr r3, [r4, #28]
  57548. 8017c00: 68db ldr r3, [r3, #12]
  57549. 8017c02: 5959 ldr r1, [r3, r5]
  57550. 8017c04: 2900 cmp r1, #0
  57551. 8017c06: d13b bne.n 8017c80 <_reclaim_reent+0x98>
  57552. 8017c08: 3504 adds r5, #4
  57553. 8017c0a: 2d80 cmp r5, #128 @ 0x80
  57554. 8017c0c: d1f7 bne.n 8017bfe <_reclaim_reent+0x16>
  57555. 8017c0e: 69e3 ldr r3, [r4, #28]
  57556. 8017c10: 4620 mov r0, r4
  57557. 8017c12: 68d9 ldr r1, [r3, #12]
  57558. 8017c14: f000 f8b0 bl 8017d78 <_free_r>
  57559. 8017c18: 69e3 ldr r3, [r4, #28]
  57560. 8017c1a: 6819 ldr r1, [r3, #0]
  57561. 8017c1c: b111 cbz r1, 8017c24 <_reclaim_reent+0x3c>
  57562. 8017c1e: 4620 mov r0, r4
  57563. 8017c20: f000 f8aa bl 8017d78 <_free_r>
  57564. 8017c24: 6961 ldr r1, [r4, #20]
  57565. 8017c26: b111 cbz r1, 8017c2e <_reclaim_reent+0x46>
  57566. 8017c28: 4620 mov r0, r4
  57567. 8017c2a: f000 f8a5 bl 8017d78 <_free_r>
  57568. 8017c2e: 69e1 ldr r1, [r4, #28]
  57569. 8017c30: b111 cbz r1, 8017c38 <_reclaim_reent+0x50>
  57570. 8017c32: 4620 mov r0, r4
  57571. 8017c34: f000 f8a0 bl 8017d78 <_free_r>
  57572. 8017c38: 6b21 ldr r1, [r4, #48] @ 0x30
  57573. 8017c3a: b111 cbz r1, 8017c42 <_reclaim_reent+0x5a>
  57574. 8017c3c: 4620 mov r0, r4
  57575. 8017c3e: f000 f89b bl 8017d78 <_free_r>
  57576. 8017c42: 6b61 ldr r1, [r4, #52] @ 0x34
  57577. 8017c44: b111 cbz r1, 8017c4c <_reclaim_reent+0x64>
  57578. 8017c46: 4620 mov r0, r4
  57579. 8017c48: f000 f896 bl 8017d78 <_free_r>
  57580. 8017c4c: 6ba1 ldr r1, [r4, #56] @ 0x38
  57581. 8017c4e: b111 cbz r1, 8017c56 <_reclaim_reent+0x6e>
  57582. 8017c50: 4620 mov r0, r4
  57583. 8017c52: f000 f891 bl 8017d78 <_free_r>
  57584. 8017c56: 6ca1 ldr r1, [r4, #72] @ 0x48
  57585. 8017c58: b111 cbz r1, 8017c60 <_reclaim_reent+0x78>
  57586. 8017c5a: 4620 mov r0, r4
  57587. 8017c5c: f000 f88c bl 8017d78 <_free_r>
  57588. 8017c60: 6c61 ldr r1, [r4, #68] @ 0x44
  57589. 8017c62: b111 cbz r1, 8017c6a <_reclaim_reent+0x82>
  57590. 8017c64: 4620 mov r0, r4
  57591. 8017c66: f000 f887 bl 8017d78 <_free_r>
  57592. 8017c6a: 6ae1 ldr r1, [r4, #44] @ 0x2c
  57593. 8017c6c: b111 cbz r1, 8017c74 <_reclaim_reent+0x8c>
  57594. 8017c6e: 4620 mov r0, r4
  57595. 8017c70: f000 f882 bl 8017d78 <_free_r>
  57596. 8017c74: 6a23 ldr r3, [r4, #32]
  57597. 8017c76: b14b cbz r3, 8017c8c <_reclaim_reent+0xa4>
  57598. 8017c78: 4620 mov r0, r4
  57599. 8017c7a: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  57600. 8017c7e: 4718 bx r3
  57601. 8017c80: 680e ldr r6, [r1, #0]
  57602. 8017c82: 4620 mov r0, r4
  57603. 8017c84: f000 f878 bl 8017d78 <_free_r>
  57604. 8017c88: 4631 mov r1, r6
  57605. 8017c8a: e7bb b.n 8017c04 <_reclaim_reent+0x1c>
  57606. 8017c8c: bd70 pop {r4, r5, r6, pc}
  57607. 8017c8e: bf00 nop
  57608. 8017c90: 24000054 .word 0x24000054
  57609. 08017c94 <_lseek_r>:
  57610. 8017c94: b538 push {r3, r4, r5, lr}
  57611. 8017c96: 4d07 ldr r5, [pc, #28] @ (8017cb4 <_lseek_r+0x20>)
  57612. 8017c98: 4604 mov r4, r0
  57613. 8017c9a: 4608 mov r0, r1
  57614. 8017c9c: 4611 mov r1, r2
  57615. 8017c9e: 2200 movs r2, #0
  57616. 8017ca0: 602a str r2, [r5, #0]
  57617. 8017ca2: 461a mov r2, r3
  57618. 8017ca4: f7ec f9ee bl 8004084 <_lseek>
  57619. 8017ca8: 1c43 adds r3, r0, #1
  57620. 8017caa: d102 bne.n 8017cb2 <_lseek_r+0x1e>
  57621. 8017cac: 682b ldr r3, [r5, #0]
  57622. 8017cae: b103 cbz r3, 8017cb2 <_lseek_r+0x1e>
  57623. 8017cb0: 6023 str r3, [r4, #0]
  57624. 8017cb2: bd38 pop {r3, r4, r5, pc}
  57625. 8017cb4: 24012dd0 .word 0x24012dd0
  57626. 08017cb8 <_read_r>:
  57627. 8017cb8: b538 push {r3, r4, r5, lr}
  57628. 8017cba: 4d07 ldr r5, [pc, #28] @ (8017cd8 <_read_r+0x20>)
  57629. 8017cbc: 4604 mov r4, r0
  57630. 8017cbe: 4608 mov r0, r1
  57631. 8017cc0: 4611 mov r1, r2
  57632. 8017cc2: 2200 movs r2, #0
  57633. 8017cc4: 602a str r2, [r5, #0]
  57634. 8017cc6: 461a mov r2, r3
  57635. 8017cc8: f7ec f97c bl 8003fc4 <_read>
  57636. 8017ccc: 1c43 adds r3, r0, #1
  57637. 8017cce: d102 bne.n 8017cd6 <_read_r+0x1e>
  57638. 8017cd0: 682b ldr r3, [r5, #0]
  57639. 8017cd2: b103 cbz r3, 8017cd6 <_read_r+0x1e>
  57640. 8017cd4: 6023 str r3, [r4, #0]
  57641. 8017cd6: bd38 pop {r3, r4, r5, pc}
  57642. 8017cd8: 24012dd0 .word 0x24012dd0
  57643. 08017cdc <_write_r>:
  57644. 8017cdc: b538 push {r3, r4, r5, lr}
  57645. 8017cde: 4d07 ldr r5, [pc, #28] @ (8017cfc <_write_r+0x20>)
  57646. 8017ce0: 4604 mov r4, r0
  57647. 8017ce2: 4608 mov r0, r1
  57648. 8017ce4: 4611 mov r1, r2
  57649. 8017ce6: 2200 movs r2, #0
  57650. 8017ce8: 602a str r2, [r5, #0]
  57651. 8017cea: 461a mov r2, r3
  57652. 8017cec: f7ec f987 bl 8003ffe <_write>
  57653. 8017cf0: 1c43 adds r3, r0, #1
  57654. 8017cf2: d102 bne.n 8017cfa <_write_r+0x1e>
  57655. 8017cf4: 682b ldr r3, [r5, #0]
  57656. 8017cf6: b103 cbz r3, 8017cfa <_write_r+0x1e>
  57657. 8017cf8: 6023 str r3, [r4, #0]
  57658. 8017cfa: bd38 pop {r3, r4, r5, pc}
  57659. 8017cfc: 24012dd0 .word 0x24012dd0
  57660. 08017d00 <__errno>:
  57661. 8017d00: 4b01 ldr r3, [pc, #4] @ (8017d08 <__errno+0x8>)
  57662. 8017d02: 6818 ldr r0, [r3, #0]
  57663. 8017d04: 4770 bx lr
  57664. 8017d06: bf00 nop
  57665. 8017d08: 24000054 .word 0x24000054
  57666. 08017d0c <__libc_init_array>:
  57667. 8017d0c: b570 push {r4, r5, r6, lr}
  57668. 8017d0e: 4d0d ldr r5, [pc, #52] @ (8017d44 <__libc_init_array+0x38>)
  57669. 8017d10: 4c0d ldr r4, [pc, #52] @ (8017d48 <__libc_init_array+0x3c>)
  57670. 8017d12: 1b64 subs r4, r4, r5
  57671. 8017d14: 10a4 asrs r4, r4, #2
  57672. 8017d16: 2600 movs r6, #0
  57673. 8017d18: 42a6 cmp r6, r4
  57674. 8017d1a: d109 bne.n 8017d30 <__libc_init_array+0x24>
  57675. 8017d1c: 4d0b ldr r5, [pc, #44] @ (8017d4c <__libc_init_array+0x40>)
  57676. 8017d1e: 4c0c ldr r4, [pc, #48] @ (8017d50 <__libc_init_array+0x44>)
  57677. 8017d20: f000 fdc6 bl 80188b0 <_init>
  57678. 8017d24: 1b64 subs r4, r4, r5
  57679. 8017d26: 10a4 asrs r4, r4, #2
  57680. 8017d28: 2600 movs r6, #0
  57681. 8017d2a: 42a6 cmp r6, r4
  57682. 8017d2c: d105 bne.n 8017d3a <__libc_init_array+0x2e>
  57683. 8017d2e: bd70 pop {r4, r5, r6, pc}
  57684. 8017d30: f855 3b04 ldr.w r3, [r5], #4
  57685. 8017d34: 4798 blx r3
  57686. 8017d36: 3601 adds r6, #1
  57687. 8017d38: e7ee b.n 8017d18 <__libc_init_array+0xc>
  57688. 8017d3a: f855 3b04 ldr.w r3, [r5], #4
  57689. 8017d3e: 4798 blx r3
  57690. 8017d40: 3601 adds r6, #1
  57691. 8017d42: e7f2 b.n 8017d2a <__libc_init_array+0x1e>
  57692. 8017d44: 08018aa4 .word 0x08018aa4
  57693. 8017d48: 08018aa4 .word 0x08018aa4
  57694. 8017d4c: 08018aa4 .word 0x08018aa4
  57695. 8017d50: 08018aa8 .word 0x08018aa8
  57696. 08017d54 <__retarget_lock_init_recursive>:
  57697. 8017d54: 4770 bx lr
  57698. 08017d56 <__retarget_lock_acquire_recursive>:
  57699. 8017d56: 4770 bx lr
  57700. 08017d58 <__retarget_lock_release_recursive>:
  57701. 8017d58: 4770 bx lr
  57702. 08017d5a <memcpy>:
  57703. 8017d5a: 440a add r2, r1
  57704. 8017d5c: 4291 cmp r1, r2
  57705. 8017d5e: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  57706. 8017d62: d100 bne.n 8017d66 <memcpy+0xc>
  57707. 8017d64: 4770 bx lr
  57708. 8017d66: b510 push {r4, lr}
  57709. 8017d68: f811 4b01 ldrb.w r4, [r1], #1
  57710. 8017d6c: f803 4f01 strb.w r4, [r3, #1]!
  57711. 8017d70: 4291 cmp r1, r2
  57712. 8017d72: d1f9 bne.n 8017d68 <memcpy+0xe>
  57713. 8017d74: bd10 pop {r4, pc}
  57714. ...
  57715. 08017d78 <_free_r>:
  57716. 8017d78: b538 push {r3, r4, r5, lr}
  57717. 8017d7a: 4605 mov r5, r0
  57718. 8017d7c: 2900 cmp r1, #0
  57719. 8017d7e: d041 beq.n 8017e04 <_free_r+0x8c>
  57720. 8017d80: f851 3c04 ldr.w r3, [r1, #-4]
  57721. 8017d84: 1f0c subs r4, r1, #4
  57722. 8017d86: 2b00 cmp r3, #0
  57723. 8017d88: bfb8 it lt
  57724. 8017d8a: 18e4 addlt r4, r4, r3
  57725. 8017d8c: f000 f8e0 bl 8017f50 <__malloc_lock>
  57726. 8017d90: 4a1d ldr r2, [pc, #116] @ (8017e08 <_free_r+0x90>)
  57727. 8017d92: 6813 ldr r3, [r2, #0]
  57728. 8017d94: b933 cbnz r3, 8017da4 <_free_r+0x2c>
  57729. 8017d96: 6063 str r3, [r4, #4]
  57730. 8017d98: 6014 str r4, [r2, #0]
  57731. 8017d9a: 4628 mov r0, r5
  57732. 8017d9c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  57733. 8017da0: f000 b8dc b.w 8017f5c <__malloc_unlock>
  57734. 8017da4: 42a3 cmp r3, r4
  57735. 8017da6: d908 bls.n 8017dba <_free_r+0x42>
  57736. 8017da8: 6820 ldr r0, [r4, #0]
  57737. 8017daa: 1821 adds r1, r4, r0
  57738. 8017dac: 428b cmp r3, r1
  57739. 8017dae: bf01 itttt eq
  57740. 8017db0: 6819 ldreq r1, [r3, #0]
  57741. 8017db2: 685b ldreq r3, [r3, #4]
  57742. 8017db4: 1809 addeq r1, r1, r0
  57743. 8017db6: 6021 streq r1, [r4, #0]
  57744. 8017db8: e7ed b.n 8017d96 <_free_r+0x1e>
  57745. 8017dba: 461a mov r2, r3
  57746. 8017dbc: 685b ldr r3, [r3, #4]
  57747. 8017dbe: b10b cbz r3, 8017dc4 <_free_r+0x4c>
  57748. 8017dc0: 42a3 cmp r3, r4
  57749. 8017dc2: d9fa bls.n 8017dba <_free_r+0x42>
  57750. 8017dc4: 6811 ldr r1, [r2, #0]
  57751. 8017dc6: 1850 adds r0, r2, r1
  57752. 8017dc8: 42a0 cmp r0, r4
  57753. 8017dca: d10b bne.n 8017de4 <_free_r+0x6c>
  57754. 8017dcc: 6820 ldr r0, [r4, #0]
  57755. 8017dce: 4401 add r1, r0
  57756. 8017dd0: 1850 adds r0, r2, r1
  57757. 8017dd2: 4283 cmp r3, r0
  57758. 8017dd4: 6011 str r1, [r2, #0]
  57759. 8017dd6: d1e0 bne.n 8017d9a <_free_r+0x22>
  57760. 8017dd8: 6818 ldr r0, [r3, #0]
  57761. 8017dda: 685b ldr r3, [r3, #4]
  57762. 8017ddc: 6053 str r3, [r2, #4]
  57763. 8017dde: 4408 add r0, r1
  57764. 8017de0: 6010 str r0, [r2, #0]
  57765. 8017de2: e7da b.n 8017d9a <_free_r+0x22>
  57766. 8017de4: d902 bls.n 8017dec <_free_r+0x74>
  57767. 8017de6: 230c movs r3, #12
  57768. 8017de8: 602b str r3, [r5, #0]
  57769. 8017dea: e7d6 b.n 8017d9a <_free_r+0x22>
  57770. 8017dec: 6820 ldr r0, [r4, #0]
  57771. 8017dee: 1821 adds r1, r4, r0
  57772. 8017df0: 428b cmp r3, r1
  57773. 8017df2: bf04 itt eq
  57774. 8017df4: 6819 ldreq r1, [r3, #0]
  57775. 8017df6: 685b ldreq r3, [r3, #4]
  57776. 8017df8: 6063 str r3, [r4, #4]
  57777. 8017dfa: bf04 itt eq
  57778. 8017dfc: 1809 addeq r1, r1, r0
  57779. 8017dfe: 6021 streq r1, [r4, #0]
  57780. 8017e00: 6054 str r4, [r2, #4]
  57781. 8017e02: e7ca b.n 8017d9a <_free_r+0x22>
  57782. 8017e04: bd38 pop {r3, r4, r5, pc}
  57783. 8017e06: bf00 nop
  57784. 8017e08: 24012ddc .word 0x24012ddc
  57785. 08017e0c <sbrk_aligned>:
  57786. 8017e0c: b570 push {r4, r5, r6, lr}
  57787. 8017e0e: 4e0f ldr r6, [pc, #60] @ (8017e4c <sbrk_aligned+0x40>)
  57788. 8017e10: 460c mov r4, r1
  57789. 8017e12: 6831 ldr r1, [r6, #0]
  57790. 8017e14: 4605 mov r5, r0
  57791. 8017e16: b911 cbnz r1, 8017e1e <sbrk_aligned+0x12>
  57792. 8017e18: f000 fcb6 bl 8018788 <_sbrk_r>
  57793. 8017e1c: 6030 str r0, [r6, #0]
  57794. 8017e1e: 4621 mov r1, r4
  57795. 8017e20: 4628 mov r0, r5
  57796. 8017e22: f000 fcb1 bl 8018788 <_sbrk_r>
  57797. 8017e26: 1c43 adds r3, r0, #1
  57798. 8017e28: d103 bne.n 8017e32 <sbrk_aligned+0x26>
  57799. 8017e2a: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff
  57800. 8017e2e: 4620 mov r0, r4
  57801. 8017e30: bd70 pop {r4, r5, r6, pc}
  57802. 8017e32: 1cc4 adds r4, r0, #3
  57803. 8017e34: f024 0403 bic.w r4, r4, #3
  57804. 8017e38: 42a0 cmp r0, r4
  57805. 8017e3a: d0f8 beq.n 8017e2e <sbrk_aligned+0x22>
  57806. 8017e3c: 1a21 subs r1, r4, r0
  57807. 8017e3e: 4628 mov r0, r5
  57808. 8017e40: f000 fca2 bl 8018788 <_sbrk_r>
  57809. 8017e44: 3001 adds r0, #1
  57810. 8017e46: d1f2 bne.n 8017e2e <sbrk_aligned+0x22>
  57811. 8017e48: e7ef b.n 8017e2a <sbrk_aligned+0x1e>
  57812. 8017e4a: bf00 nop
  57813. 8017e4c: 24012dd8 .word 0x24012dd8
  57814. 08017e50 <_malloc_r>:
  57815. 8017e50: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  57816. 8017e54: 1ccd adds r5, r1, #3
  57817. 8017e56: f025 0503 bic.w r5, r5, #3
  57818. 8017e5a: 3508 adds r5, #8
  57819. 8017e5c: 2d0c cmp r5, #12
  57820. 8017e5e: bf38 it cc
  57821. 8017e60: 250c movcc r5, #12
  57822. 8017e62: 2d00 cmp r5, #0
  57823. 8017e64: 4606 mov r6, r0
  57824. 8017e66: db01 blt.n 8017e6c <_malloc_r+0x1c>
  57825. 8017e68: 42a9 cmp r1, r5
  57826. 8017e6a: d904 bls.n 8017e76 <_malloc_r+0x26>
  57827. 8017e6c: 230c movs r3, #12
  57828. 8017e6e: 6033 str r3, [r6, #0]
  57829. 8017e70: 2000 movs r0, #0
  57830. 8017e72: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  57831. 8017e76: f8df 80d4 ldr.w r8, [pc, #212] @ 8017f4c <_malloc_r+0xfc>
  57832. 8017e7a: f000 f869 bl 8017f50 <__malloc_lock>
  57833. 8017e7e: f8d8 3000 ldr.w r3, [r8]
  57834. 8017e82: 461c mov r4, r3
  57835. 8017e84: bb44 cbnz r4, 8017ed8 <_malloc_r+0x88>
  57836. 8017e86: 4629 mov r1, r5
  57837. 8017e88: 4630 mov r0, r6
  57838. 8017e8a: f7ff ffbf bl 8017e0c <sbrk_aligned>
  57839. 8017e8e: 1c43 adds r3, r0, #1
  57840. 8017e90: 4604 mov r4, r0
  57841. 8017e92: d158 bne.n 8017f46 <_malloc_r+0xf6>
  57842. 8017e94: f8d8 4000 ldr.w r4, [r8]
  57843. 8017e98: 4627 mov r7, r4
  57844. 8017e9a: 2f00 cmp r7, #0
  57845. 8017e9c: d143 bne.n 8017f26 <_malloc_r+0xd6>
  57846. 8017e9e: 2c00 cmp r4, #0
  57847. 8017ea0: d04b beq.n 8017f3a <_malloc_r+0xea>
  57848. 8017ea2: 6823 ldr r3, [r4, #0]
  57849. 8017ea4: 4639 mov r1, r7
  57850. 8017ea6: 4630 mov r0, r6
  57851. 8017ea8: eb04 0903 add.w r9, r4, r3
  57852. 8017eac: f000 fc6c bl 8018788 <_sbrk_r>
  57853. 8017eb0: 4581 cmp r9, r0
  57854. 8017eb2: d142 bne.n 8017f3a <_malloc_r+0xea>
  57855. 8017eb4: 6821 ldr r1, [r4, #0]
  57856. 8017eb6: 1a6d subs r5, r5, r1
  57857. 8017eb8: 4629 mov r1, r5
  57858. 8017eba: 4630 mov r0, r6
  57859. 8017ebc: f7ff ffa6 bl 8017e0c <sbrk_aligned>
  57860. 8017ec0: 3001 adds r0, #1
  57861. 8017ec2: d03a beq.n 8017f3a <_malloc_r+0xea>
  57862. 8017ec4: 6823 ldr r3, [r4, #0]
  57863. 8017ec6: 442b add r3, r5
  57864. 8017ec8: 6023 str r3, [r4, #0]
  57865. 8017eca: f8d8 3000 ldr.w r3, [r8]
  57866. 8017ece: 685a ldr r2, [r3, #4]
  57867. 8017ed0: bb62 cbnz r2, 8017f2c <_malloc_r+0xdc>
  57868. 8017ed2: f8c8 7000 str.w r7, [r8]
  57869. 8017ed6: e00f b.n 8017ef8 <_malloc_r+0xa8>
  57870. 8017ed8: 6822 ldr r2, [r4, #0]
  57871. 8017eda: 1b52 subs r2, r2, r5
  57872. 8017edc: d420 bmi.n 8017f20 <_malloc_r+0xd0>
  57873. 8017ede: 2a0b cmp r2, #11
  57874. 8017ee0: d917 bls.n 8017f12 <_malloc_r+0xc2>
  57875. 8017ee2: 1961 adds r1, r4, r5
  57876. 8017ee4: 42a3 cmp r3, r4
  57877. 8017ee6: 6025 str r5, [r4, #0]
  57878. 8017ee8: bf18 it ne
  57879. 8017eea: 6059 strne r1, [r3, #4]
  57880. 8017eec: 6863 ldr r3, [r4, #4]
  57881. 8017eee: bf08 it eq
  57882. 8017ef0: f8c8 1000 streq.w r1, [r8]
  57883. 8017ef4: 5162 str r2, [r4, r5]
  57884. 8017ef6: 604b str r3, [r1, #4]
  57885. 8017ef8: 4630 mov r0, r6
  57886. 8017efa: f000 f82f bl 8017f5c <__malloc_unlock>
  57887. 8017efe: f104 000b add.w r0, r4, #11
  57888. 8017f02: 1d23 adds r3, r4, #4
  57889. 8017f04: f020 0007 bic.w r0, r0, #7
  57890. 8017f08: 1ac2 subs r2, r0, r3
  57891. 8017f0a: bf1c itt ne
  57892. 8017f0c: 1a1b subne r3, r3, r0
  57893. 8017f0e: 50a3 strne r3, [r4, r2]
  57894. 8017f10: e7af b.n 8017e72 <_malloc_r+0x22>
  57895. 8017f12: 6862 ldr r2, [r4, #4]
  57896. 8017f14: 42a3 cmp r3, r4
  57897. 8017f16: bf0c ite eq
  57898. 8017f18: f8c8 2000 streq.w r2, [r8]
  57899. 8017f1c: 605a strne r2, [r3, #4]
  57900. 8017f1e: e7eb b.n 8017ef8 <_malloc_r+0xa8>
  57901. 8017f20: 4623 mov r3, r4
  57902. 8017f22: 6864 ldr r4, [r4, #4]
  57903. 8017f24: e7ae b.n 8017e84 <_malloc_r+0x34>
  57904. 8017f26: 463c mov r4, r7
  57905. 8017f28: 687f ldr r7, [r7, #4]
  57906. 8017f2a: e7b6 b.n 8017e9a <_malloc_r+0x4a>
  57907. 8017f2c: 461a mov r2, r3
  57908. 8017f2e: 685b ldr r3, [r3, #4]
  57909. 8017f30: 42a3 cmp r3, r4
  57910. 8017f32: d1fb bne.n 8017f2c <_malloc_r+0xdc>
  57911. 8017f34: 2300 movs r3, #0
  57912. 8017f36: 6053 str r3, [r2, #4]
  57913. 8017f38: e7de b.n 8017ef8 <_malloc_r+0xa8>
  57914. 8017f3a: 230c movs r3, #12
  57915. 8017f3c: 6033 str r3, [r6, #0]
  57916. 8017f3e: 4630 mov r0, r6
  57917. 8017f40: f000 f80c bl 8017f5c <__malloc_unlock>
  57918. 8017f44: e794 b.n 8017e70 <_malloc_r+0x20>
  57919. 8017f46: 6005 str r5, [r0, #0]
  57920. 8017f48: e7d6 b.n 8017ef8 <_malloc_r+0xa8>
  57921. 8017f4a: bf00 nop
  57922. 8017f4c: 24012ddc .word 0x24012ddc
  57923. 08017f50 <__malloc_lock>:
  57924. 8017f50: 4801 ldr r0, [pc, #4] @ (8017f58 <__malloc_lock+0x8>)
  57925. 8017f52: f7ff bf00 b.w 8017d56 <__retarget_lock_acquire_recursive>
  57926. 8017f56: bf00 nop
  57927. 8017f58: 24012dd4 .word 0x24012dd4
  57928. 08017f5c <__malloc_unlock>:
  57929. 8017f5c: 4801 ldr r0, [pc, #4] @ (8017f64 <__malloc_unlock+0x8>)
  57930. 8017f5e: f7ff befb b.w 8017d58 <__retarget_lock_release_recursive>
  57931. 8017f62: bf00 nop
  57932. 8017f64: 24012dd4 .word 0x24012dd4
  57933. 08017f68 <__sfputc_r>:
  57934. 8017f68: 6893 ldr r3, [r2, #8]
  57935. 8017f6a: 3b01 subs r3, #1
  57936. 8017f6c: 2b00 cmp r3, #0
  57937. 8017f6e: b410 push {r4}
  57938. 8017f70: 6093 str r3, [r2, #8]
  57939. 8017f72: da08 bge.n 8017f86 <__sfputc_r+0x1e>
  57940. 8017f74: 6994 ldr r4, [r2, #24]
  57941. 8017f76: 42a3 cmp r3, r4
  57942. 8017f78: db01 blt.n 8017f7e <__sfputc_r+0x16>
  57943. 8017f7a: 290a cmp r1, #10
  57944. 8017f7c: d103 bne.n 8017f86 <__sfputc_r+0x1e>
  57945. 8017f7e: f85d 4b04 ldr.w r4, [sp], #4
  57946. 8017f82: f000 bb6d b.w 8018660 <__swbuf_r>
  57947. 8017f86: 6813 ldr r3, [r2, #0]
  57948. 8017f88: 1c58 adds r0, r3, #1
  57949. 8017f8a: 6010 str r0, [r2, #0]
  57950. 8017f8c: 7019 strb r1, [r3, #0]
  57951. 8017f8e: 4608 mov r0, r1
  57952. 8017f90: f85d 4b04 ldr.w r4, [sp], #4
  57953. 8017f94: 4770 bx lr
  57954. 08017f96 <__sfputs_r>:
  57955. 8017f96: b5f8 push {r3, r4, r5, r6, r7, lr}
  57956. 8017f98: 4606 mov r6, r0
  57957. 8017f9a: 460f mov r7, r1
  57958. 8017f9c: 4614 mov r4, r2
  57959. 8017f9e: 18d5 adds r5, r2, r3
  57960. 8017fa0: 42ac cmp r4, r5
  57961. 8017fa2: d101 bne.n 8017fa8 <__sfputs_r+0x12>
  57962. 8017fa4: 2000 movs r0, #0
  57963. 8017fa6: e007 b.n 8017fb8 <__sfputs_r+0x22>
  57964. 8017fa8: f814 1b01 ldrb.w r1, [r4], #1
  57965. 8017fac: 463a mov r2, r7
  57966. 8017fae: 4630 mov r0, r6
  57967. 8017fb0: f7ff ffda bl 8017f68 <__sfputc_r>
  57968. 8017fb4: 1c43 adds r3, r0, #1
  57969. 8017fb6: d1f3 bne.n 8017fa0 <__sfputs_r+0xa>
  57970. 8017fb8: bdf8 pop {r3, r4, r5, r6, r7, pc}
  57971. ...
  57972. 08017fbc <_vfiprintf_r>:
  57973. 8017fbc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57974. 8017fc0: 460d mov r5, r1
  57975. 8017fc2: b09d sub sp, #116 @ 0x74
  57976. 8017fc4: 4614 mov r4, r2
  57977. 8017fc6: 4698 mov r8, r3
  57978. 8017fc8: 4606 mov r6, r0
  57979. 8017fca: b118 cbz r0, 8017fd4 <_vfiprintf_r+0x18>
  57980. 8017fcc: 6a03 ldr r3, [r0, #32]
  57981. 8017fce: b90b cbnz r3, 8017fd4 <_vfiprintf_r+0x18>
  57982. 8017fd0: f7ff fd66 bl 8017aa0 <__sinit>
  57983. 8017fd4: 6e6b ldr r3, [r5, #100] @ 0x64
  57984. 8017fd6: 07d9 lsls r1, r3, #31
  57985. 8017fd8: d405 bmi.n 8017fe6 <_vfiprintf_r+0x2a>
  57986. 8017fda: 89ab ldrh r3, [r5, #12]
  57987. 8017fdc: 059a lsls r2, r3, #22
  57988. 8017fde: d402 bmi.n 8017fe6 <_vfiprintf_r+0x2a>
  57989. 8017fe0: 6da8 ldr r0, [r5, #88] @ 0x58
  57990. 8017fe2: f7ff feb8 bl 8017d56 <__retarget_lock_acquire_recursive>
  57991. 8017fe6: 89ab ldrh r3, [r5, #12]
  57992. 8017fe8: 071b lsls r3, r3, #28
  57993. 8017fea: d501 bpl.n 8017ff0 <_vfiprintf_r+0x34>
  57994. 8017fec: 692b ldr r3, [r5, #16]
  57995. 8017fee: b99b cbnz r3, 8018018 <_vfiprintf_r+0x5c>
  57996. 8017ff0: 4629 mov r1, r5
  57997. 8017ff2: 4630 mov r0, r6
  57998. 8017ff4: f000 fb72 bl 80186dc <__swsetup_r>
  57999. 8017ff8: b170 cbz r0, 8018018 <_vfiprintf_r+0x5c>
  58000. 8017ffa: 6e6b ldr r3, [r5, #100] @ 0x64
  58001. 8017ffc: 07dc lsls r4, r3, #31
  58002. 8017ffe: d504 bpl.n 801800a <_vfiprintf_r+0x4e>
  58003. 8018000: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58004. 8018004: b01d add sp, #116 @ 0x74
  58005. 8018006: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  58006. 801800a: 89ab ldrh r3, [r5, #12]
  58007. 801800c: 0598 lsls r0, r3, #22
  58008. 801800e: d4f7 bmi.n 8018000 <_vfiprintf_r+0x44>
  58009. 8018010: 6da8 ldr r0, [r5, #88] @ 0x58
  58010. 8018012: f7ff fea1 bl 8017d58 <__retarget_lock_release_recursive>
  58011. 8018016: e7f3 b.n 8018000 <_vfiprintf_r+0x44>
  58012. 8018018: 2300 movs r3, #0
  58013. 801801a: 9309 str r3, [sp, #36] @ 0x24
  58014. 801801c: 2320 movs r3, #32
  58015. 801801e: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  58016. 8018022: f8cd 800c str.w r8, [sp, #12]
  58017. 8018026: 2330 movs r3, #48 @ 0x30
  58018. 8018028: f8df 81ac ldr.w r8, [pc, #428] @ 80181d8 <_vfiprintf_r+0x21c>
  58019. 801802c: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  58020. 8018030: f04f 0901 mov.w r9, #1
  58021. 8018034: 4623 mov r3, r4
  58022. 8018036: 469a mov sl, r3
  58023. 8018038: f813 2b01 ldrb.w r2, [r3], #1
  58024. 801803c: b10a cbz r2, 8018042 <_vfiprintf_r+0x86>
  58025. 801803e: 2a25 cmp r2, #37 @ 0x25
  58026. 8018040: d1f9 bne.n 8018036 <_vfiprintf_r+0x7a>
  58027. 8018042: ebba 0b04 subs.w fp, sl, r4
  58028. 8018046: d00b beq.n 8018060 <_vfiprintf_r+0xa4>
  58029. 8018048: 465b mov r3, fp
  58030. 801804a: 4622 mov r2, r4
  58031. 801804c: 4629 mov r1, r5
  58032. 801804e: 4630 mov r0, r6
  58033. 8018050: f7ff ffa1 bl 8017f96 <__sfputs_r>
  58034. 8018054: 3001 adds r0, #1
  58035. 8018056: f000 80a7 beq.w 80181a8 <_vfiprintf_r+0x1ec>
  58036. 801805a: 9a09 ldr r2, [sp, #36] @ 0x24
  58037. 801805c: 445a add r2, fp
  58038. 801805e: 9209 str r2, [sp, #36] @ 0x24
  58039. 8018060: f89a 3000 ldrb.w r3, [sl]
  58040. 8018064: 2b00 cmp r3, #0
  58041. 8018066: f000 809f beq.w 80181a8 <_vfiprintf_r+0x1ec>
  58042. 801806a: 2300 movs r3, #0
  58043. 801806c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  58044. 8018070: e9cd 2305 strd r2, r3, [sp, #20]
  58045. 8018074: f10a 0a01 add.w sl, sl, #1
  58046. 8018078: 9304 str r3, [sp, #16]
  58047. 801807a: 9307 str r3, [sp, #28]
  58048. 801807c: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  58049. 8018080: 931a str r3, [sp, #104] @ 0x68
  58050. 8018082: 4654 mov r4, sl
  58051. 8018084: 2205 movs r2, #5
  58052. 8018086: f814 1b01 ldrb.w r1, [r4], #1
  58053. 801808a: 4853 ldr r0, [pc, #332] @ (80181d8 <_vfiprintf_r+0x21c>)
  58054. 801808c: f7e8 f928 bl 80002e0 <memchr>
  58055. 8018090: 9a04 ldr r2, [sp, #16]
  58056. 8018092: b9d8 cbnz r0, 80180cc <_vfiprintf_r+0x110>
  58057. 8018094: 06d1 lsls r1, r2, #27
  58058. 8018096: bf44 itt mi
  58059. 8018098: 2320 movmi r3, #32
  58060. 801809a: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  58061. 801809e: 0713 lsls r3, r2, #28
  58062. 80180a0: bf44 itt mi
  58063. 80180a2: 232b movmi r3, #43 @ 0x2b
  58064. 80180a4: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  58065. 80180a8: f89a 3000 ldrb.w r3, [sl]
  58066. 80180ac: 2b2a cmp r3, #42 @ 0x2a
  58067. 80180ae: d015 beq.n 80180dc <_vfiprintf_r+0x120>
  58068. 80180b0: 9a07 ldr r2, [sp, #28]
  58069. 80180b2: 4654 mov r4, sl
  58070. 80180b4: 2000 movs r0, #0
  58071. 80180b6: f04f 0c0a mov.w ip, #10
  58072. 80180ba: 4621 mov r1, r4
  58073. 80180bc: f811 3b01 ldrb.w r3, [r1], #1
  58074. 80180c0: 3b30 subs r3, #48 @ 0x30
  58075. 80180c2: 2b09 cmp r3, #9
  58076. 80180c4: d94b bls.n 801815e <_vfiprintf_r+0x1a2>
  58077. 80180c6: b1b0 cbz r0, 80180f6 <_vfiprintf_r+0x13a>
  58078. 80180c8: 9207 str r2, [sp, #28]
  58079. 80180ca: e014 b.n 80180f6 <_vfiprintf_r+0x13a>
  58080. 80180cc: eba0 0308 sub.w r3, r0, r8
  58081. 80180d0: fa09 f303 lsl.w r3, r9, r3
  58082. 80180d4: 4313 orrs r3, r2
  58083. 80180d6: 9304 str r3, [sp, #16]
  58084. 80180d8: 46a2 mov sl, r4
  58085. 80180da: e7d2 b.n 8018082 <_vfiprintf_r+0xc6>
  58086. 80180dc: 9b03 ldr r3, [sp, #12]
  58087. 80180de: 1d19 adds r1, r3, #4
  58088. 80180e0: 681b ldr r3, [r3, #0]
  58089. 80180e2: 9103 str r1, [sp, #12]
  58090. 80180e4: 2b00 cmp r3, #0
  58091. 80180e6: bfbb ittet lt
  58092. 80180e8: 425b neglt r3, r3
  58093. 80180ea: f042 0202 orrlt.w r2, r2, #2
  58094. 80180ee: 9307 strge r3, [sp, #28]
  58095. 80180f0: 9307 strlt r3, [sp, #28]
  58096. 80180f2: bfb8 it lt
  58097. 80180f4: 9204 strlt r2, [sp, #16]
  58098. 80180f6: 7823 ldrb r3, [r4, #0]
  58099. 80180f8: 2b2e cmp r3, #46 @ 0x2e
  58100. 80180fa: d10a bne.n 8018112 <_vfiprintf_r+0x156>
  58101. 80180fc: 7863 ldrb r3, [r4, #1]
  58102. 80180fe: 2b2a cmp r3, #42 @ 0x2a
  58103. 8018100: d132 bne.n 8018168 <_vfiprintf_r+0x1ac>
  58104. 8018102: 9b03 ldr r3, [sp, #12]
  58105. 8018104: 1d1a adds r2, r3, #4
  58106. 8018106: 681b ldr r3, [r3, #0]
  58107. 8018108: 9203 str r2, [sp, #12]
  58108. 801810a: ea43 73e3 orr.w r3, r3, r3, asr #31
  58109. 801810e: 3402 adds r4, #2
  58110. 8018110: 9305 str r3, [sp, #20]
  58111. 8018112: f8df a0d4 ldr.w sl, [pc, #212] @ 80181e8 <_vfiprintf_r+0x22c>
  58112. 8018116: 7821 ldrb r1, [r4, #0]
  58113. 8018118: 2203 movs r2, #3
  58114. 801811a: 4650 mov r0, sl
  58115. 801811c: f7e8 f8e0 bl 80002e0 <memchr>
  58116. 8018120: b138 cbz r0, 8018132 <_vfiprintf_r+0x176>
  58117. 8018122: 9b04 ldr r3, [sp, #16]
  58118. 8018124: eba0 000a sub.w r0, r0, sl
  58119. 8018128: 2240 movs r2, #64 @ 0x40
  58120. 801812a: 4082 lsls r2, r0
  58121. 801812c: 4313 orrs r3, r2
  58122. 801812e: 3401 adds r4, #1
  58123. 8018130: 9304 str r3, [sp, #16]
  58124. 8018132: f814 1b01 ldrb.w r1, [r4], #1
  58125. 8018136: 4829 ldr r0, [pc, #164] @ (80181dc <_vfiprintf_r+0x220>)
  58126. 8018138: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  58127. 801813c: 2206 movs r2, #6
  58128. 801813e: f7e8 f8cf bl 80002e0 <memchr>
  58129. 8018142: 2800 cmp r0, #0
  58130. 8018144: d03f beq.n 80181c6 <_vfiprintf_r+0x20a>
  58131. 8018146: 4b26 ldr r3, [pc, #152] @ (80181e0 <_vfiprintf_r+0x224>)
  58132. 8018148: bb1b cbnz r3, 8018192 <_vfiprintf_r+0x1d6>
  58133. 801814a: 9b03 ldr r3, [sp, #12]
  58134. 801814c: 3307 adds r3, #7
  58135. 801814e: f023 0307 bic.w r3, r3, #7
  58136. 8018152: 3308 adds r3, #8
  58137. 8018154: 9303 str r3, [sp, #12]
  58138. 8018156: 9b09 ldr r3, [sp, #36] @ 0x24
  58139. 8018158: 443b add r3, r7
  58140. 801815a: 9309 str r3, [sp, #36] @ 0x24
  58141. 801815c: e76a b.n 8018034 <_vfiprintf_r+0x78>
  58142. 801815e: fb0c 3202 mla r2, ip, r2, r3
  58143. 8018162: 460c mov r4, r1
  58144. 8018164: 2001 movs r0, #1
  58145. 8018166: e7a8 b.n 80180ba <_vfiprintf_r+0xfe>
  58146. 8018168: 2300 movs r3, #0
  58147. 801816a: 3401 adds r4, #1
  58148. 801816c: 9305 str r3, [sp, #20]
  58149. 801816e: 4619 mov r1, r3
  58150. 8018170: f04f 0c0a mov.w ip, #10
  58151. 8018174: 4620 mov r0, r4
  58152. 8018176: f810 2b01 ldrb.w r2, [r0], #1
  58153. 801817a: 3a30 subs r2, #48 @ 0x30
  58154. 801817c: 2a09 cmp r2, #9
  58155. 801817e: d903 bls.n 8018188 <_vfiprintf_r+0x1cc>
  58156. 8018180: 2b00 cmp r3, #0
  58157. 8018182: d0c6 beq.n 8018112 <_vfiprintf_r+0x156>
  58158. 8018184: 9105 str r1, [sp, #20]
  58159. 8018186: e7c4 b.n 8018112 <_vfiprintf_r+0x156>
  58160. 8018188: fb0c 2101 mla r1, ip, r1, r2
  58161. 801818c: 4604 mov r4, r0
  58162. 801818e: 2301 movs r3, #1
  58163. 8018190: e7f0 b.n 8018174 <_vfiprintf_r+0x1b8>
  58164. 8018192: ab03 add r3, sp, #12
  58165. 8018194: 9300 str r3, [sp, #0]
  58166. 8018196: 462a mov r2, r5
  58167. 8018198: 4b12 ldr r3, [pc, #72] @ (80181e4 <_vfiprintf_r+0x228>)
  58168. 801819a: a904 add r1, sp, #16
  58169. 801819c: 4630 mov r0, r6
  58170. 801819e: f3af 8000 nop.w
  58171. 80181a2: 4607 mov r7, r0
  58172. 80181a4: 1c78 adds r0, r7, #1
  58173. 80181a6: d1d6 bne.n 8018156 <_vfiprintf_r+0x19a>
  58174. 80181a8: 6e6b ldr r3, [r5, #100] @ 0x64
  58175. 80181aa: 07d9 lsls r1, r3, #31
  58176. 80181ac: d405 bmi.n 80181ba <_vfiprintf_r+0x1fe>
  58177. 80181ae: 89ab ldrh r3, [r5, #12]
  58178. 80181b0: 059a lsls r2, r3, #22
  58179. 80181b2: d402 bmi.n 80181ba <_vfiprintf_r+0x1fe>
  58180. 80181b4: 6da8 ldr r0, [r5, #88] @ 0x58
  58181. 80181b6: f7ff fdcf bl 8017d58 <__retarget_lock_release_recursive>
  58182. 80181ba: 89ab ldrh r3, [r5, #12]
  58183. 80181bc: 065b lsls r3, r3, #25
  58184. 80181be: f53f af1f bmi.w 8018000 <_vfiprintf_r+0x44>
  58185. 80181c2: 9809 ldr r0, [sp, #36] @ 0x24
  58186. 80181c4: e71e b.n 8018004 <_vfiprintf_r+0x48>
  58187. 80181c6: ab03 add r3, sp, #12
  58188. 80181c8: 9300 str r3, [sp, #0]
  58189. 80181ca: 462a mov r2, r5
  58190. 80181cc: 4b05 ldr r3, [pc, #20] @ (80181e4 <_vfiprintf_r+0x228>)
  58191. 80181ce: a904 add r1, sp, #16
  58192. 80181d0: 4630 mov r0, r6
  58193. 80181d2: f000 f879 bl 80182c8 <_printf_i>
  58194. 80181d6: e7e4 b.n 80181a2 <_vfiprintf_r+0x1e6>
  58195. 80181d8: 08018a68 .word 0x08018a68
  58196. 80181dc: 08018a72 .word 0x08018a72
  58197. 80181e0: 00000000 .word 0x00000000
  58198. 80181e4: 08017f97 .word 0x08017f97
  58199. 80181e8: 08018a6e .word 0x08018a6e
  58200. 080181ec <_printf_common>:
  58201. 80181ec: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  58202. 80181f0: 4616 mov r6, r2
  58203. 80181f2: 4698 mov r8, r3
  58204. 80181f4: 688a ldr r2, [r1, #8]
  58205. 80181f6: 690b ldr r3, [r1, #16]
  58206. 80181f8: f8dd 9020 ldr.w r9, [sp, #32]
  58207. 80181fc: 4293 cmp r3, r2
  58208. 80181fe: bfb8 it lt
  58209. 8018200: 4613 movlt r3, r2
  58210. 8018202: 6033 str r3, [r6, #0]
  58211. 8018204: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
  58212. 8018208: 4607 mov r7, r0
  58213. 801820a: 460c mov r4, r1
  58214. 801820c: b10a cbz r2, 8018212 <_printf_common+0x26>
  58215. 801820e: 3301 adds r3, #1
  58216. 8018210: 6033 str r3, [r6, #0]
  58217. 8018212: 6823 ldr r3, [r4, #0]
  58218. 8018214: 0699 lsls r1, r3, #26
  58219. 8018216: bf42 ittt mi
  58220. 8018218: 6833 ldrmi r3, [r6, #0]
  58221. 801821a: 3302 addmi r3, #2
  58222. 801821c: 6033 strmi r3, [r6, #0]
  58223. 801821e: 6825 ldr r5, [r4, #0]
  58224. 8018220: f015 0506 ands.w r5, r5, #6
  58225. 8018224: d106 bne.n 8018234 <_printf_common+0x48>
  58226. 8018226: f104 0a19 add.w sl, r4, #25
  58227. 801822a: 68e3 ldr r3, [r4, #12]
  58228. 801822c: 6832 ldr r2, [r6, #0]
  58229. 801822e: 1a9b subs r3, r3, r2
  58230. 8018230: 42ab cmp r3, r5
  58231. 8018232: dc26 bgt.n 8018282 <_printf_common+0x96>
  58232. 8018234: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
  58233. 8018238: 6822 ldr r2, [r4, #0]
  58234. 801823a: 3b00 subs r3, #0
  58235. 801823c: bf18 it ne
  58236. 801823e: 2301 movne r3, #1
  58237. 8018240: 0692 lsls r2, r2, #26
  58238. 8018242: d42b bmi.n 801829c <_printf_common+0xb0>
  58239. 8018244: f104 0243 add.w r2, r4, #67 @ 0x43
  58240. 8018248: 4641 mov r1, r8
  58241. 801824a: 4638 mov r0, r7
  58242. 801824c: 47c8 blx r9
  58243. 801824e: 3001 adds r0, #1
  58244. 8018250: d01e beq.n 8018290 <_printf_common+0xa4>
  58245. 8018252: 6823 ldr r3, [r4, #0]
  58246. 8018254: 6922 ldr r2, [r4, #16]
  58247. 8018256: f003 0306 and.w r3, r3, #6
  58248. 801825a: 2b04 cmp r3, #4
  58249. 801825c: bf02 ittt eq
  58250. 801825e: 68e5 ldreq r5, [r4, #12]
  58251. 8018260: 6833 ldreq r3, [r6, #0]
  58252. 8018262: 1aed subeq r5, r5, r3
  58253. 8018264: 68a3 ldr r3, [r4, #8]
  58254. 8018266: bf0c ite eq
  58255. 8018268: ea25 75e5 biceq.w r5, r5, r5, asr #31
  58256. 801826c: 2500 movne r5, #0
  58257. 801826e: 4293 cmp r3, r2
  58258. 8018270: bfc4 itt gt
  58259. 8018272: 1a9b subgt r3, r3, r2
  58260. 8018274: 18ed addgt r5, r5, r3
  58261. 8018276: 2600 movs r6, #0
  58262. 8018278: 341a adds r4, #26
  58263. 801827a: 42b5 cmp r5, r6
  58264. 801827c: d11a bne.n 80182b4 <_printf_common+0xc8>
  58265. 801827e: 2000 movs r0, #0
  58266. 8018280: e008 b.n 8018294 <_printf_common+0xa8>
  58267. 8018282: 2301 movs r3, #1
  58268. 8018284: 4652 mov r2, sl
  58269. 8018286: 4641 mov r1, r8
  58270. 8018288: 4638 mov r0, r7
  58271. 801828a: 47c8 blx r9
  58272. 801828c: 3001 adds r0, #1
  58273. 801828e: d103 bne.n 8018298 <_printf_common+0xac>
  58274. 8018290: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58275. 8018294: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  58276. 8018298: 3501 adds r5, #1
  58277. 801829a: e7c6 b.n 801822a <_printf_common+0x3e>
  58278. 801829c: 18e1 adds r1, r4, r3
  58279. 801829e: 1c5a adds r2, r3, #1
  58280. 80182a0: 2030 movs r0, #48 @ 0x30
  58281. 80182a2: f881 0043 strb.w r0, [r1, #67] @ 0x43
  58282. 80182a6: 4422 add r2, r4
  58283. 80182a8: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
  58284. 80182ac: f882 1043 strb.w r1, [r2, #67] @ 0x43
  58285. 80182b0: 3302 adds r3, #2
  58286. 80182b2: e7c7 b.n 8018244 <_printf_common+0x58>
  58287. 80182b4: 2301 movs r3, #1
  58288. 80182b6: 4622 mov r2, r4
  58289. 80182b8: 4641 mov r1, r8
  58290. 80182ba: 4638 mov r0, r7
  58291. 80182bc: 47c8 blx r9
  58292. 80182be: 3001 adds r0, #1
  58293. 80182c0: d0e6 beq.n 8018290 <_printf_common+0xa4>
  58294. 80182c2: 3601 adds r6, #1
  58295. 80182c4: e7d9 b.n 801827a <_printf_common+0x8e>
  58296. ...
  58297. 080182c8 <_printf_i>:
  58298. 80182c8: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  58299. 80182cc: 7e0f ldrb r7, [r1, #24]
  58300. 80182ce: 9e0c ldr r6, [sp, #48] @ 0x30
  58301. 80182d0: 2f78 cmp r7, #120 @ 0x78
  58302. 80182d2: 4691 mov r9, r2
  58303. 80182d4: 4680 mov r8, r0
  58304. 80182d6: 460c mov r4, r1
  58305. 80182d8: 469a mov sl, r3
  58306. 80182da: f101 0243 add.w r2, r1, #67 @ 0x43
  58307. 80182de: d807 bhi.n 80182f0 <_printf_i+0x28>
  58308. 80182e0: 2f62 cmp r7, #98 @ 0x62
  58309. 80182e2: d80a bhi.n 80182fa <_printf_i+0x32>
  58310. 80182e4: 2f00 cmp r7, #0
  58311. 80182e6: f000 80d2 beq.w 801848e <_printf_i+0x1c6>
  58312. 80182ea: 2f58 cmp r7, #88 @ 0x58
  58313. 80182ec: f000 80b9 beq.w 8018462 <_printf_i+0x19a>
  58314. 80182f0: f104 0642 add.w r6, r4, #66 @ 0x42
  58315. 80182f4: f884 7042 strb.w r7, [r4, #66] @ 0x42
  58316. 80182f8: e03a b.n 8018370 <_printf_i+0xa8>
  58317. 80182fa: f1a7 0363 sub.w r3, r7, #99 @ 0x63
  58318. 80182fe: 2b15 cmp r3, #21
  58319. 8018300: d8f6 bhi.n 80182f0 <_printf_i+0x28>
  58320. 8018302: a101 add r1, pc, #4 @ (adr r1, 8018308 <_printf_i+0x40>)
  58321. 8018304: f851 f023 ldr.w pc, [r1, r3, lsl #2]
  58322. 8018308: 08018361 .word 0x08018361
  58323. 801830c: 08018375 .word 0x08018375
  58324. 8018310: 080182f1 .word 0x080182f1
  58325. 8018314: 080182f1 .word 0x080182f1
  58326. 8018318: 080182f1 .word 0x080182f1
  58327. 801831c: 080182f1 .word 0x080182f1
  58328. 8018320: 08018375 .word 0x08018375
  58329. 8018324: 080182f1 .word 0x080182f1
  58330. 8018328: 080182f1 .word 0x080182f1
  58331. 801832c: 080182f1 .word 0x080182f1
  58332. 8018330: 080182f1 .word 0x080182f1
  58333. 8018334: 08018475 .word 0x08018475
  58334. 8018338: 0801839f .word 0x0801839f
  58335. 801833c: 0801842f .word 0x0801842f
  58336. 8018340: 080182f1 .word 0x080182f1
  58337. 8018344: 080182f1 .word 0x080182f1
  58338. 8018348: 08018497 .word 0x08018497
  58339. 801834c: 080182f1 .word 0x080182f1
  58340. 8018350: 0801839f .word 0x0801839f
  58341. 8018354: 080182f1 .word 0x080182f1
  58342. 8018358: 080182f1 .word 0x080182f1
  58343. 801835c: 08018437 .word 0x08018437
  58344. 8018360: 6833 ldr r3, [r6, #0]
  58345. 8018362: 1d1a adds r2, r3, #4
  58346. 8018364: 681b ldr r3, [r3, #0]
  58347. 8018366: 6032 str r2, [r6, #0]
  58348. 8018368: f104 0642 add.w r6, r4, #66 @ 0x42
  58349. 801836c: f884 3042 strb.w r3, [r4, #66] @ 0x42
  58350. 8018370: 2301 movs r3, #1
  58351. 8018372: e09d b.n 80184b0 <_printf_i+0x1e8>
  58352. 8018374: 6833 ldr r3, [r6, #0]
  58353. 8018376: 6820 ldr r0, [r4, #0]
  58354. 8018378: 1d19 adds r1, r3, #4
  58355. 801837a: 6031 str r1, [r6, #0]
  58356. 801837c: 0606 lsls r6, r0, #24
  58357. 801837e: d501 bpl.n 8018384 <_printf_i+0xbc>
  58358. 8018380: 681d ldr r5, [r3, #0]
  58359. 8018382: e003 b.n 801838c <_printf_i+0xc4>
  58360. 8018384: 0645 lsls r5, r0, #25
  58361. 8018386: d5fb bpl.n 8018380 <_printf_i+0xb8>
  58362. 8018388: f9b3 5000 ldrsh.w r5, [r3]
  58363. 801838c: 2d00 cmp r5, #0
  58364. 801838e: da03 bge.n 8018398 <_printf_i+0xd0>
  58365. 8018390: 232d movs r3, #45 @ 0x2d
  58366. 8018392: 426d negs r5, r5
  58367. 8018394: f884 3043 strb.w r3, [r4, #67] @ 0x43
  58368. 8018398: 4859 ldr r0, [pc, #356] @ (8018500 <_printf_i+0x238>)
  58369. 801839a: 230a movs r3, #10
  58370. 801839c: e011 b.n 80183c2 <_printf_i+0xfa>
  58371. 801839e: 6821 ldr r1, [r4, #0]
  58372. 80183a0: 6833 ldr r3, [r6, #0]
  58373. 80183a2: 0608 lsls r0, r1, #24
  58374. 80183a4: f853 5b04 ldr.w r5, [r3], #4
  58375. 80183a8: d402 bmi.n 80183b0 <_printf_i+0xe8>
  58376. 80183aa: 0649 lsls r1, r1, #25
  58377. 80183ac: bf48 it mi
  58378. 80183ae: b2ad uxthmi r5, r5
  58379. 80183b0: 2f6f cmp r7, #111 @ 0x6f
  58380. 80183b2: 4853 ldr r0, [pc, #332] @ (8018500 <_printf_i+0x238>)
  58381. 80183b4: 6033 str r3, [r6, #0]
  58382. 80183b6: bf14 ite ne
  58383. 80183b8: 230a movne r3, #10
  58384. 80183ba: 2308 moveq r3, #8
  58385. 80183bc: 2100 movs r1, #0
  58386. 80183be: f884 1043 strb.w r1, [r4, #67] @ 0x43
  58387. 80183c2: 6866 ldr r6, [r4, #4]
  58388. 80183c4: 60a6 str r6, [r4, #8]
  58389. 80183c6: 2e00 cmp r6, #0
  58390. 80183c8: bfa2 ittt ge
  58391. 80183ca: 6821 ldrge r1, [r4, #0]
  58392. 80183cc: f021 0104 bicge.w r1, r1, #4
  58393. 80183d0: 6021 strge r1, [r4, #0]
  58394. 80183d2: b90d cbnz r5, 80183d8 <_printf_i+0x110>
  58395. 80183d4: 2e00 cmp r6, #0
  58396. 80183d6: d04b beq.n 8018470 <_printf_i+0x1a8>
  58397. 80183d8: 4616 mov r6, r2
  58398. 80183da: fbb5 f1f3 udiv r1, r5, r3
  58399. 80183de: fb03 5711 mls r7, r3, r1, r5
  58400. 80183e2: 5dc7 ldrb r7, [r0, r7]
  58401. 80183e4: f806 7d01 strb.w r7, [r6, #-1]!
  58402. 80183e8: 462f mov r7, r5
  58403. 80183ea: 42bb cmp r3, r7
  58404. 80183ec: 460d mov r5, r1
  58405. 80183ee: d9f4 bls.n 80183da <_printf_i+0x112>
  58406. 80183f0: 2b08 cmp r3, #8
  58407. 80183f2: d10b bne.n 801840c <_printf_i+0x144>
  58408. 80183f4: 6823 ldr r3, [r4, #0]
  58409. 80183f6: 07df lsls r7, r3, #31
  58410. 80183f8: d508 bpl.n 801840c <_printf_i+0x144>
  58411. 80183fa: 6923 ldr r3, [r4, #16]
  58412. 80183fc: 6861 ldr r1, [r4, #4]
  58413. 80183fe: 4299 cmp r1, r3
  58414. 8018400: bfde ittt le
  58415. 8018402: 2330 movle r3, #48 @ 0x30
  58416. 8018404: f806 3c01 strble.w r3, [r6, #-1]
  58417. 8018408: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff
  58418. 801840c: 1b92 subs r2, r2, r6
  58419. 801840e: 6122 str r2, [r4, #16]
  58420. 8018410: f8cd a000 str.w sl, [sp]
  58421. 8018414: 464b mov r3, r9
  58422. 8018416: aa03 add r2, sp, #12
  58423. 8018418: 4621 mov r1, r4
  58424. 801841a: 4640 mov r0, r8
  58425. 801841c: f7ff fee6 bl 80181ec <_printf_common>
  58426. 8018420: 3001 adds r0, #1
  58427. 8018422: d14a bne.n 80184ba <_printf_i+0x1f2>
  58428. 8018424: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58429. 8018428: b004 add sp, #16
  58430. 801842a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  58431. 801842e: 6823 ldr r3, [r4, #0]
  58432. 8018430: f043 0320 orr.w r3, r3, #32
  58433. 8018434: 6023 str r3, [r4, #0]
  58434. 8018436: 4833 ldr r0, [pc, #204] @ (8018504 <_printf_i+0x23c>)
  58435. 8018438: 2778 movs r7, #120 @ 0x78
  58436. 801843a: f884 7045 strb.w r7, [r4, #69] @ 0x45
  58437. 801843e: 6823 ldr r3, [r4, #0]
  58438. 8018440: 6831 ldr r1, [r6, #0]
  58439. 8018442: 061f lsls r7, r3, #24
  58440. 8018444: f851 5b04 ldr.w r5, [r1], #4
  58441. 8018448: d402 bmi.n 8018450 <_printf_i+0x188>
  58442. 801844a: 065f lsls r7, r3, #25
  58443. 801844c: bf48 it mi
  58444. 801844e: b2ad uxthmi r5, r5
  58445. 8018450: 6031 str r1, [r6, #0]
  58446. 8018452: 07d9 lsls r1, r3, #31
  58447. 8018454: bf44 itt mi
  58448. 8018456: f043 0320 orrmi.w r3, r3, #32
  58449. 801845a: 6023 strmi r3, [r4, #0]
  58450. 801845c: b11d cbz r5, 8018466 <_printf_i+0x19e>
  58451. 801845e: 2310 movs r3, #16
  58452. 8018460: e7ac b.n 80183bc <_printf_i+0xf4>
  58453. 8018462: 4827 ldr r0, [pc, #156] @ (8018500 <_printf_i+0x238>)
  58454. 8018464: e7e9 b.n 801843a <_printf_i+0x172>
  58455. 8018466: 6823 ldr r3, [r4, #0]
  58456. 8018468: f023 0320 bic.w r3, r3, #32
  58457. 801846c: 6023 str r3, [r4, #0]
  58458. 801846e: e7f6 b.n 801845e <_printf_i+0x196>
  58459. 8018470: 4616 mov r6, r2
  58460. 8018472: e7bd b.n 80183f0 <_printf_i+0x128>
  58461. 8018474: 6833 ldr r3, [r6, #0]
  58462. 8018476: 6825 ldr r5, [r4, #0]
  58463. 8018478: 6961 ldr r1, [r4, #20]
  58464. 801847a: 1d18 adds r0, r3, #4
  58465. 801847c: 6030 str r0, [r6, #0]
  58466. 801847e: 062e lsls r6, r5, #24
  58467. 8018480: 681b ldr r3, [r3, #0]
  58468. 8018482: d501 bpl.n 8018488 <_printf_i+0x1c0>
  58469. 8018484: 6019 str r1, [r3, #0]
  58470. 8018486: e002 b.n 801848e <_printf_i+0x1c6>
  58471. 8018488: 0668 lsls r0, r5, #25
  58472. 801848a: d5fb bpl.n 8018484 <_printf_i+0x1bc>
  58473. 801848c: 8019 strh r1, [r3, #0]
  58474. 801848e: 2300 movs r3, #0
  58475. 8018490: 6123 str r3, [r4, #16]
  58476. 8018492: 4616 mov r6, r2
  58477. 8018494: e7bc b.n 8018410 <_printf_i+0x148>
  58478. 8018496: 6833 ldr r3, [r6, #0]
  58479. 8018498: 1d1a adds r2, r3, #4
  58480. 801849a: 6032 str r2, [r6, #0]
  58481. 801849c: 681e ldr r6, [r3, #0]
  58482. 801849e: 6862 ldr r2, [r4, #4]
  58483. 80184a0: 2100 movs r1, #0
  58484. 80184a2: 4630 mov r0, r6
  58485. 80184a4: f7e7 ff1c bl 80002e0 <memchr>
  58486. 80184a8: b108 cbz r0, 80184ae <_printf_i+0x1e6>
  58487. 80184aa: 1b80 subs r0, r0, r6
  58488. 80184ac: 6060 str r0, [r4, #4]
  58489. 80184ae: 6863 ldr r3, [r4, #4]
  58490. 80184b0: 6123 str r3, [r4, #16]
  58491. 80184b2: 2300 movs r3, #0
  58492. 80184b4: f884 3043 strb.w r3, [r4, #67] @ 0x43
  58493. 80184b8: e7aa b.n 8018410 <_printf_i+0x148>
  58494. 80184ba: 6923 ldr r3, [r4, #16]
  58495. 80184bc: 4632 mov r2, r6
  58496. 80184be: 4649 mov r1, r9
  58497. 80184c0: 4640 mov r0, r8
  58498. 80184c2: 47d0 blx sl
  58499. 80184c4: 3001 adds r0, #1
  58500. 80184c6: d0ad beq.n 8018424 <_printf_i+0x15c>
  58501. 80184c8: 6823 ldr r3, [r4, #0]
  58502. 80184ca: 079b lsls r3, r3, #30
  58503. 80184cc: d413 bmi.n 80184f6 <_printf_i+0x22e>
  58504. 80184ce: 68e0 ldr r0, [r4, #12]
  58505. 80184d0: 9b03 ldr r3, [sp, #12]
  58506. 80184d2: 4298 cmp r0, r3
  58507. 80184d4: bfb8 it lt
  58508. 80184d6: 4618 movlt r0, r3
  58509. 80184d8: e7a6 b.n 8018428 <_printf_i+0x160>
  58510. 80184da: 2301 movs r3, #1
  58511. 80184dc: 4632 mov r2, r6
  58512. 80184de: 4649 mov r1, r9
  58513. 80184e0: 4640 mov r0, r8
  58514. 80184e2: 47d0 blx sl
  58515. 80184e4: 3001 adds r0, #1
  58516. 80184e6: d09d beq.n 8018424 <_printf_i+0x15c>
  58517. 80184e8: 3501 adds r5, #1
  58518. 80184ea: 68e3 ldr r3, [r4, #12]
  58519. 80184ec: 9903 ldr r1, [sp, #12]
  58520. 80184ee: 1a5b subs r3, r3, r1
  58521. 80184f0: 42ab cmp r3, r5
  58522. 80184f2: dcf2 bgt.n 80184da <_printf_i+0x212>
  58523. 80184f4: e7eb b.n 80184ce <_printf_i+0x206>
  58524. 80184f6: 2500 movs r5, #0
  58525. 80184f8: f104 0619 add.w r6, r4, #25
  58526. 80184fc: e7f5 b.n 80184ea <_printf_i+0x222>
  58527. 80184fe: bf00 nop
  58528. 8018500: 08018a79 .word 0x08018a79
  58529. 8018504: 08018a8a .word 0x08018a8a
  58530. 08018508 <__sflush_r>:
  58531. 8018508: f9b1 200c ldrsh.w r2, [r1, #12]
  58532. 801850c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  58533. 8018510: 0716 lsls r6, r2, #28
  58534. 8018512: 4605 mov r5, r0
  58535. 8018514: 460c mov r4, r1
  58536. 8018516: d454 bmi.n 80185c2 <__sflush_r+0xba>
  58537. 8018518: 684b ldr r3, [r1, #4]
  58538. 801851a: 2b00 cmp r3, #0
  58539. 801851c: dc02 bgt.n 8018524 <__sflush_r+0x1c>
  58540. 801851e: 6c0b ldr r3, [r1, #64] @ 0x40
  58541. 8018520: 2b00 cmp r3, #0
  58542. 8018522: dd48 ble.n 80185b6 <__sflush_r+0xae>
  58543. 8018524: 6ae6 ldr r6, [r4, #44] @ 0x2c
  58544. 8018526: 2e00 cmp r6, #0
  58545. 8018528: d045 beq.n 80185b6 <__sflush_r+0xae>
  58546. 801852a: 2300 movs r3, #0
  58547. 801852c: f412 5280 ands.w r2, r2, #4096 @ 0x1000
  58548. 8018530: 682f ldr r7, [r5, #0]
  58549. 8018532: 6a21 ldr r1, [r4, #32]
  58550. 8018534: 602b str r3, [r5, #0]
  58551. 8018536: d030 beq.n 801859a <__sflush_r+0x92>
  58552. 8018538: 6d62 ldr r2, [r4, #84] @ 0x54
  58553. 801853a: 89a3 ldrh r3, [r4, #12]
  58554. 801853c: 0759 lsls r1, r3, #29
  58555. 801853e: d505 bpl.n 801854c <__sflush_r+0x44>
  58556. 8018540: 6863 ldr r3, [r4, #4]
  58557. 8018542: 1ad2 subs r2, r2, r3
  58558. 8018544: 6b63 ldr r3, [r4, #52] @ 0x34
  58559. 8018546: b10b cbz r3, 801854c <__sflush_r+0x44>
  58560. 8018548: 6c23 ldr r3, [r4, #64] @ 0x40
  58561. 801854a: 1ad2 subs r2, r2, r3
  58562. 801854c: 2300 movs r3, #0
  58563. 801854e: 6ae6 ldr r6, [r4, #44] @ 0x2c
  58564. 8018550: 6a21 ldr r1, [r4, #32]
  58565. 8018552: 4628 mov r0, r5
  58566. 8018554: 47b0 blx r6
  58567. 8018556: 1c43 adds r3, r0, #1
  58568. 8018558: 89a3 ldrh r3, [r4, #12]
  58569. 801855a: d106 bne.n 801856a <__sflush_r+0x62>
  58570. 801855c: 6829 ldr r1, [r5, #0]
  58571. 801855e: 291d cmp r1, #29
  58572. 8018560: d82b bhi.n 80185ba <__sflush_r+0xb2>
  58573. 8018562: 4a2a ldr r2, [pc, #168] @ (801860c <__sflush_r+0x104>)
  58574. 8018564: 410a asrs r2, r1
  58575. 8018566: 07d6 lsls r6, r2, #31
  58576. 8018568: d427 bmi.n 80185ba <__sflush_r+0xb2>
  58577. 801856a: 2200 movs r2, #0
  58578. 801856c: 6062 str r2, [r4, #4]
  58579. 801856e: 04d9 lsls r1, r3, #19
  58580. 8018570: 6922 ldr r2, [r4, #16]
  58581. 8018572: 6022 str r2, [r4, #0]
  58582. 8018574: d504 bpl.n 8018580 <__sflush_r+0x78>
  58583. 8018576: 1c42 adds r2, r0, #1
  58584. 8018578: d101 bne.n 801857e <__sflush_r+0x76>
  58585. 801857a: 682b ldr r3, [r5, #0]
  58586. 801857c: b903 cbnz r3, 8018580 <__sflush_r+0x78>
  58587. 801857e: 6560 str r0, [r4, #84] @ 0x54
  58588. 8018580: 6b61 ldr r1, [r4, #52] @ 0x34
  58589. 8018582: 602f str r7, [r5, #0]
  58590. 8018584: b1b9 cbz r1, 80185b6 <__sflush_r+0xae>
  58591. 8018586: f104 0344 add.w r3, r4, #68 @ 0x44
  58592. 801858a: 4299 cmp r1, r3
  58593. 801858c: d002 beq.n 8018594 <__sflush_r+0x8c>
  58594. 801858e: 4628 mov r0, r5
  58595. 8018590: f7ff fbf2 bl 8017d78 <_free_r>
  58596. 8018594: 2300 movs r3, #0
  58597. 8018596: 6363 str r3, [r4, #52] @ 0x34
  58598. 8018598: e00d b.n 80185b6 <__sflush_r+0xae>
  58599. 801859a: 2301 movs r3, #1
  58600. 801859c: 4628 mov r0, r5
  58601. 801859e: 47b0 blx r6
  58602. 80185a0: 4602 mov r2, r0
  58603. 80185a2: 1c50 adds r0, r2, #1
  58604. 80185a4: d1c9 bne.n 801853a <__sflush_r+0x32>
  58605. 80185a6: 682b ldr r3, [r5, #0]
  58606. 80185a8: 2b00 cmp r3, #0
  58607. 80185aa: d0c6 beq.n 801853a <__sflush_r+0x32>
  58608. 80185ac: 2b1d cmp r3, #29
  58609. 80185ae: d001 beq.n 80185b4 <__sflush_r+0xac>
  58610. 80185b0: 2b16 cmp r3, #22
  58611. 80185b2: d11e bne.n 80185f2 <__sflush_r+0xea>
  58612. 80185b4: 602f str r7, [r5, #0]
  58613. 80185b6: 2000 movs r0, #0
  58614. 80185b8: e022 b.n 8018600 <__sflush_r+0xf8>
  58615. 80185ba: f043 0340 orr.w r3, r3, #64 @ 0x40
  58616. 80185be: b21b sxth r3, r3
  58617. 80185c0: e01b b.n 80185fa <__sflush_r+0xf2>
  58618. 80185c2: 690f ldr r7, [r1, #16]
  58619. 80185c4: 2f00 cmp r7, #0
  58620. 80185c6: d0f6 beq.n 80185b6 <__sflush_r+0xae>
  58621. 80185c8: 0793 lsls r3, r2, #30
  58622. 80185ca: 680e ldr r6, [r1, #0]
  58623. 80185cc: bf08 it eq
  58624. 80185ce: 694b ldreq r3, [r1, #20]
  58625. 80185d0: 600f str r7, [r1, #0]
  58626. 80185d2: bf18 it ne
  58627. 80185d4: 2300 movne r3, #0
  58628. 80185d6: eba6 0807 sub.w r8, r6, r7
  58629. 80185da: 608b str r3, [r1, #8]
  58630. 80185dc: f1b8 0f00 cmp.w r8, #0
  58631. 80185e0: dde9 ble.n 80185b6 <__sflush_r+0xae>
  58632. 80185e2: 6a21 ldr r1, [r4, #32]
  58633. 80185e4: 6aa6 ldr r6, [r4, #40] @ 0x28
  58634. 80185e6: 4643 mov r3, r8
  58635. 80185e8: 463a mov r2, r7
  58636. 80185ea: 4628 mov r0, r5
  58637. 80185ec: 47b0 blx r6
  58638. 80185ee: 2800 cmp r0, #0
  58639. 80185f0: dc08 bgt.n 8018604 <__sflush_r+0xfc>
  58640. 80185f2: f9b4 300c ldrsh.w r3, [r4, #12]
  58641. 80185f6: f043 0340 orr.w r3, r3, #64 @ 0x40
  58642. 80185fa: 81a3 strh r3, [r4, #12]
  58643. 80185fc: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58644. 8018600: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  58645. 8018604: 4407 add r7, r0
  58646. 8018606: eba8 0800 sub.w r8, r8, r0
  58647. 801860a: e7e7 b.n 80185dc <__sflush_r+0xd4>
  58648. 801860c: dfbffffe .word 0xdfbffffe
  58649. 08018610 <_fflush_r>:
  58650. 8018610: b538 push {r3, r4, r5, lr}
  58651. 8018612: 690b ldr r3, [r1, #16]
  58652. 8018614: 4605 mov r5, r0
  58653. 8018616: 460c mov r4, r1
  58654. 8018618: b913 cbnz r3, 8018620 <_fflush_r+0x10>
  58655. 801861a: 2500 movs r5, #0
  58656. 801861c: 4628 mov r0, r5
  58657. 801861e: bd38 pop {r3, r4, r5, pc}
  58658. 8018620: b118 cbz r0, 801862a <_fflush_r+0x1a>
  58659. 8018622: 6a03 ldr r3, [r0, #32]
  58660. 8018624: b90b cbnz r3, 801862a <_fflush_r+0x1a>
  58661. 8018626: f7ff fa3b bl 8017aa0 <__sinit>
  58662. 801862a: f9b4 300c ldrsh.w r3, [r4, #12]
  58663. 801862e: 2b00 cmp r3, #0
  58664. 8018630: d0f3 beq.n 801861a <_fflush_r+0xa>
  58665. 8018632: 6e62 ldr r2, [r4, #100] @ 0x64
  58666. 8018634: 07d0 lsls r0, r2, #31
  58667. 8018636: d404 bmi.n 8018642 <_fflush_r+0x32>
  58668. 8018638: 0599 lsls r1, r3, #22
  58669. 801863a: d402 bmi.n 8018642 <_fflush_r+0x32>
  58670. 801863c: 6da0 ldr r0, [r4, #88] @ 0x58
  58671. 801863e: f7ff fb8a bl 8017d56 <__retarget_lock_acquire_recursive>
  58672. 8018642: 4628 mov r0, r5
  58673. 8018644: 4621 mov r1, r4
  58674. 8018646: f7ff ff5f bl 8018508 <__sflush_r>
  58675. 801864a: 6e63 ldr r3, [r4, #100] @ 0x64
  58676. 801864c: 07da lsls r2, r3, #31
  58677. 801864e: 4605 mov r5, r0
  58678. 8018650: d4e4 bmi.n 801861c <_fflush_r+0xc>
  58679. 8018652: 89a3 ldrh r3, [r4, #12]
  58680. 8018654: 059b lsls r3, r3, #22
  58681. 8018656: d4e1 bmi.n 801861c <_fflush_r+0xc>
  58682. 8018658: 6da0 ldr r0, [r4, #88] @ 0x58
  58683. 801865a: f7ff fb7d bl 8017d58 <__retarget_lock_release_recursive>
  58684. 801865e: e7dd b.n 801861c <_fflush_r+0xc>
  58685. 08018660 <__swbuf_r>:
  58686. 8018660: b5f8 push {r3, r4, r5, r6, r7, lr}
  58687. 8018662: 460e mov r6, r1
  58688. 8018664: 4614 mov r4, r2
  58689. 8018666: 4605 mov r5, r0
  58690. 8018668: b118 cbz r0, 8018672 <__swbuf_r+0x12>
  58691. 801866a: 6a03 ldr r3, [r0, #32]
  58692. 801866c: b90b cbnz r3, 8018672 <__swbuf_r+0x12>
  58693. 801866e: f7ff fa17 bl 8017aa0 <__sinit>
  58694. 8018672: 69a3 ldr r3, [r4, #24]
  58695. 8018674: 60a3 str r3, [r4, #8]
  58696. 8018676: 89a3 ldrh r3, [r4, #12]
  58697. 8018678: 071a lsls r2, r3, #28
  58698. 801867a: d501 bpl.n 8018680 <__swbuf_r+0x20>
  58699. 801867c: 6923 ldr r3, [r4, #16]
  58700. 801867e: b943 cbnz r3, 8018692 <__swbuf_r+0x32>
  58701. 8018680: 4621 mov r1, r4
  58702. 8018682: 4628 mov r0, r5
  58703. 8018684: f000 f82a bl 80186dc <__swsetup_r>
  58704. 8018688: b118 cbz r0, 8018692 <__swbuf_r+0x32>
  58705. 801868a: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff
  58706. 801868e: 4638 mov r0, r7
  58707. 8018690: bdf8 pop {r3, r4, r5, r6, r7, pc}
  58708. 8018692: 6823 ldr r3, [r4, #0]
  58709. 8018694: 6922 ldr r2, [r4, #16]
  58710. 8018696: 1a98 subs r0, r3, r2
  58711. 8018698: 6963 ldr r3, [r4, #20]
  58712. 801869a: b2f6 uxtb r6, r6
  58713. 801869c: 4283 cmp r3, r0
  58714. 801869e: 4637 mov r7, r6
  58715. 80186a0: dc05 bgt.n 80186ae <__swbuf_r+0x4e>
  58716. 80186a2: 4621 mov r1, r4
  58717. 80186a4: 4628 mov r0, r5
  58718. 80186a6: f7ff ffb3 bl 8018610 <_fflush_r>
  58719. 80186aa: 2800 cmp r0, #0
  58720. 80186ac: d1ed bne.n 801868a <__swbuf_r+0x2a>
  58721. 80186ae: 68a3 ldr r3, [r4, #8]
  58722. 80186b0: 3b01 subs r3, #1
  58723. 80186b2: 60a3 str r3, [r4, #8]
  58724. 80186b4: 6823 ldr r3, [r4, #0]
  58725. 80186b6: 1c5a adds r2, r3, #1
  58726. 80186b8: 6022 str r2, [r4, #0]
  58727. 80186ba: 701e strb r6, [r3, #0]
  58728. 80186bc: 6962 ldr r2, [r4, #20]
  58729. 80186be: 1c43 adds r3, r0, #1
  58730. 80186c0: 429a cmp r2, r3
  58731. 80186c2: d004 beq.n 80186ce <__swbuf_r+0x6e>
  58732. 80186c4: 89a3 ldrh r3, [r4, #12]
  58733. 80186c6: 07db lsls r3, r3, #31
  58734. 80186c8: d5e1 bpl.n 801868e <__swbuf_r+0x2e>
  58735. 80186ca: 2e0a cmp r6, #10
  58736. 80186cc: d1df bne.n 801868e <__swbuf_r+0x2e>
  58737. 80186ce: 4621 mov r1, r4
  58738. 80186d0: 4628 mov r0, r5
  58739. 80186d2: f7ff ff9d bl 8018610 <_fflush_r>
  58740. 80186d6: 2800 cmp r0, #0
  58741. 80186d8: d0d9 beq.n 801868e <__swbuf_r+0x2e>
  58742. 80186da: e7d6 b.n 801868a <__swbuf_r+0x2a>
  58743. 080186dc <__swsetup_r>:
  58744. 80186dc: b538 push {r3, r4, r5, lr}
  58745. 80186de: 4b29 ldr r3, [pc, #164] @ (8018784 <__swsetup_r+0xa8>)
  58746. 80186e0: 4605 mov r5, r0
  58747. 80186e2: 6818 ldr r0, [r3, #0]
  58748. 80186e4: 460c mov r4, r1
  58749. 80186e6: b118 cbz r0, 80186f0 <__swsetup_r+0x14>
  58750. 80186e8: 6a03 ldr r3, [r0, #32]
  58751. 80186ea: b90b cbnz r3, 80186f0 <__swsetup_r+0x14>
  58752. 80186ec: f7ff f9d8 bl 8017aa0 <__sinit>
  58753. 80186f0: f9b4 300c ldrsh.w r3, [r4, #12]
  58754. 80186f4: 0719 lsls r1, r3, #28
  58755. 80186f6: d422 bmi.n 801873e <__swsetup_r+0x62>
  58756. 80186f8: 06da lsls r2, r3, #27
  58757. 80186fa: d407 bmi.n 801870c <__swsetup_r+0x30>
  58758. 80186fc: 2209 movs r2, #9
  58759. 80186fe: 602a str r2, [r5, #0]
  58760. 8018700: f043 0340 orr.w r3, r3, #64 @ 0x40
  58761. 8018704: 81a3 strh r3, [r4, #12]
  58762. 8018706: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58763. 801870a: e033 b.n 8018774 <__swsetup_r+0x98>
  58764. 801870c: 0758 lsls r0, r3, #29
  58765. 801870e: d512 bpl.n 8018736 <__swsetup_r+0x5a>
  58766. 8018710: 6b61 ldr r1, [r4, #52] @ 0x34
  58767. 8018712: b141 cbz r1, 8018726 <__swsetup_r+0x4a>
  58768. 8018714: f104 0344 add.w r3, r4, #68 @ 0x44
  58769. 8018718: 4299 cmp r1, r3
  58770. 801871a: d002 beq.n 8018722 <__swsetup_r+0x46>
  58771. 801871c: 4628 mov r0, r5
  58772. 801871e: f7ff fb2b bl 8017d78 <_free_r>
  58773. 8018722: 2300 movs r3, #0
  58774. 8018724: 6363 str r3, [r4, #52] @ 0x34
  58775. 8018726: 89a3 ldrh r3, [r4, #12]
  58776. 8018728: f023 0324 bic.w r3, r3, #36 @ 0x24
  58777. 801872c: 81a3 strh r3, [r4, #12]
  58778. 801872e: 2300 movs r3, #0
  58779. 8018730: 6063 str r3, [r4, #4]
  58780. 8018732: 6923 ldr r3, [r4, #16]
  58781. 8018734: 6023 str r3, [r4, #0]
  58782. 8018736: 89a3 ldrh r3, [r4, #12]
  58783. 8018738: f043 0308 orr.w r3, r3, #8
  58784. 801873c: 81a3 strh r3, [r4, #12]
  58785. 801873e: 6923 ldr r3, [r4, #16]
  58786. 8018740: b94b cbnz r3, 8018756 <__swsetup_r+0x7a>
  58787. 8018742: 89a3 ldrh r3, [r4, #12]
  58788. 8018744: f403 7320 and.w r3, r3, #640 @ 0x280
  58789. 8018748: f5b3 7f00 cmp.w r3, #512 @ 0x200
  58790. 801874c: d003 beq.n 8018756 <__swsetup_r+0x7a>
  58791. 801874e: 4621 mov r1, r4
  58792. 8018750: 4628 mov r0, r5
  58793. 8018752: f000 f84f bl 80187f4 <__smakebuf_r>
  58794. 8018756: f9b4 300c ldrsh.w r3, [r4, #12]
  58795. 801875a: f013 0201 ands.w r2, r3, #1
  58796. 801875e: d00a beq.n 8018776 <__swsetup_r+0x9a>
  58797. 8018760: 2200 movs r2, #0
  58798. 8018762: 60a2 str r2, [r4, #8]
  58799. 8018764: 6962 ldr r2, [r4, #20]
  58800. 8018766: 4252 negs r2, r2
  58801. 8018768: 61a2 str r2, [r4, #24]
  58802. 801876a: 6922 ldr r2, [r4, #16]
  58803. 801876c: b942 cbnz r2, 8018780 <__swsetup_r+0xa4>
  58804. 801876e: f013 0080 ands.w r0, r3, #128 @ 0x80
  58805. 8018772: d1c5 bne.n 8018700 <__swsetup_r+0x24>
  58806. 8018774: bd38 pop {r3, r4, r5, pc}
  58807. 8018776: 0799 lsls r1, r3, #30
  58808. 8018778: bf58 it pl
  58809. 801877a: 6962 ldrpl r2, [r4, #20]
  58810. 801877c: 60a2 str r2, [r4, #8]
  58811. 801877e: e7f4 b.n 801876a <__swsetup_r+0x8e>
  58812. 8018780: 2000 movs r0, #0
  58813. 8018782: e7f7 b.n 8018774 <__swsetup_r+0x98>
  58814. 8018784: 24000054 .word 0x24000054
  58815. 08018788 <_sbrk_r>:
  58816. 8018788: b538 push {r3, r4, r5, lr}
  58817. 801878a: 4d06 ldr r5, [pc, #24] @ (80187a4 <_sbrk_r+0x1c>)
  58818. 801878c: 2300 movs r3, #0
  58819. 801878e: 4604 mov r4, r0
  58820. 8018790: 4608 mov r0, r1
  58821. 8018792: 602b str r3, [r5, #0]
  58822. 8018794: f7eb fc84 bl 80040a0 <_sbrk>
  58823. 8018798: 1c43 adds r3, r0, #1
  58824. 801879a: d102 bne.n 80187a2 <_sbrk_r+0x1a>
  58825. 801879c: 682b ldr r3, [r5, #0]
  58826. 801879e: b103 cbz r3, 80187a2 <_sbrk_r+0x1a>
  58827. 80187a0: 6023 str r3, [r4, #0]
  58828. 80187a2: bd38 pop {r3, r4, r5, pc}
  58829. 80187a4: 24012dd0 .word 0x24012dd0
  58830. 080187a8 <__swhatbuf_r>:
  58831. 80187a8: b570 push {r4, r5, r6, lr}
  58832. 80187aa: 460c mov r4, r1
  58833. 80187ac: f9b1 100e ldrsh.w r1, [r1, #14]
  58834. 80187b0: 2900 cmp r1, #0
  58835. 80187b2: b096 sub sp, #88 @ 0x58
  58836. 80187b4: 4615 mov r5, r2
  58837. 80187b6: 461e mov r6, r3
  58838. 80187b8: da0d bge.n 80187d6 <__swhatbuf_r+0x2e>
  58839. 80187ba: 89a3 ldrh r3, [r4, #12]
  58840. 80187bc: f013 0f80 tst.w r3, #128 @ 0x80
  58841. 80187c0: f04f 0100 mov.w r1, #0
  58842. 80187c4: bf14 ite ne
  58843. 80187c6: 2340 movne r3, #64 @ 0x40
  58844. 80187c8: f44f 6380 moveq.w r3, #1024 @ 0x400
  58845. 80187cc: 2000 movs r0, #0
  58846. 80187ce: 6031 str r1, [r6, #0]
  58847. 80187d0: 602b str r3, [r5, #0]
  58848. 80187d2: b016 add sp, #88 @ 0x58
  58849. 80187d4: bd70 pop {r4, r5, r6, pc}
  58850. 80187d6: 466a mov r2, sp
  58851. 80187d8: f000 f848 bl 801886c <_fstat_r>
  58852. 80187dc: 2800 cmp r0, #0
  58853. 80187de: dbec blt.n 80187ba <__swhatbuf_r+0x12>
  58854. 80187e0: 9901 ldr r1, [sp, #4]
  58855. 80187e2: f401 4170 and.w r1, r1, #61440 @ 0xf000
  58856. 80187e6: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
  58857. 80187ea: 4259 negs r1, r3
  58858. 80187ec: 4159 adcs r1, r3
  58859. 80187ee: f44f 6380 mov.w r3, #1024 @ 0x400
  58860. 80187f2: e7eb b.n 80187cc <__swhatbuf_r+0x24>
  58861. 080187f4 <__smakebuf_r>:
  58862. 80187f4: 898b ldrh r3, [r1, #12]
  58863. 80187f6: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  58864. 80187f8: 079d lsls r5, r3, #30
  58865. 80187fa: 4606 mov r6, r0
  58866. 80187fc: 460c mov r4, r1
  58867. 80187fe: d507 bpl.n 8018810 <__smakebuf_r+0x1c>
  58868. 8018800: f104 0347 add.w r3, r4, #71 @ 0x47
  58869. 8018804: 6023 str r3, [r4, #0]
  58870. 8018806: 6123 str r3, [r4, #16]
  58871. 8018808: 2301 movs r3, #1
  58872. 801880a: 6163 str r3, [r4, #20]
  58873. 801880c: b003 add sp, #12
  58874. 801880e: bdf0 pop {r4, r5, r6, r7, pc}
  58875. 8018810: ab01 add r3, sp, #4
  58876. 8018812: 466a mov r2, sp
  58877. 8018814: f7ff ffc8 bl 80187a8 <__swhatbuf_r>
  58878. 8018818: 9f00 ldr r7, [sp, #0]
  58879. 801881a: 4605 mov r5, r0
  58880. 801881c: 4639 mov r1, r7
  58881. 801881e: 4630 mov r0, r6
  58882. 8018820: f7ff fb16 bl 8017e50 <_malloc_r>
  58883. 8018824: b948 cbnz r0, 801883a <__smakebuf_r+0x46>
  58884. 8018826: f9b4 300c ldrsh.w r3, [r4, #12]
  58885. 801882a: 059a lsls r2, r3, #22
  58886. 801882c: d4ee bmi.n 801880c <__smakebuf_r+0x18>
  58887. 801882e: f023 0303 bic.w r3, r3, #3
  58888. 8018832: f043 0302 orr.w r3, r3, #2
  58889. 8018836: 81a3 strh r3, [r4, #12]
  58890. 8018838: e7e2 b.n 8018800 <__smakebuf_r+0xc>
  58891. 801883a: 89a3 ldrh r3, [r4, #12]
  58892. 801883c: 6020 str r0, [r4, #0]
  58893. 801883e: f043 0380 orr.w r3, r3, #128 @ 0x80
  58894. 8018842: 81a3 strh r3, [r4, #12]
  58895. 8018844: 9b01 ldr r3, [sp, #4]
  58896. 8018846: e9c4 0704 strd r0, r7, [r4, #16]
  58897. 801884a: b15b cbz r3, 8018864 <__smakebuf_r+0x70>
  58898. 801884c: f9b4 100e ldrsh.w r1, [r4, #14]
  58899. 8018850: 4630 mov r0, r6
  58900. 8018852: f000 f81d bl 8018890 <_isatty_r>
  58901. 8018856: b128 cbz r0, 8018864 <__smakebuf_r+0x70>
  58902. 8018858: 89a3 ldrh r3, [r4, #12]
  58903. 801885a: f023 0303 bic.w r3, r3, #3
  58904. 801885e: f043 0301 orr.w r3, r3, #1
  58905. 8018862: 81a3 strh r3, [r4, #12]
  58906. 8018864: 89a3 ldrh r3, [r4, #12]
  58907. 8018866: 431d orrs r5, r3
  58908. 8018868: 81a5 strh r5, [r4, #12]
  58909. 801886a: e7cf b.n 801880c <__smakebuf_r+0x18>
  58910. 0801886c <_fstat_r>:
  58911. 801886c: b538 push {r3, r4, r5, lr}
  58912. 801886e: 4d07 ldr r5, [pc, #28] @ (801888c <_fstat_r+0x20>)
  58913. 8018870: 2300 movs r3, #0
  58914. 8018872: 4604 mov r4, r0
  58915. 8018874: 4608 mov r0, r1
  58916. 8018876: 4611 mov r1, r2
  58917. 8018878: 602b str r3, [r5, #0]
  58918. 801887a: f7eb fbe8 bl 800404e <_fstat>
  58919. 801887e: 1c43 adds r3, r0, #1
  58920. 8018880: d102 bne.n 8018888 <_fstat_r+0x1c>
  58921. 8018882: 682b ldr r3, [r5, #0]
  58922. 8018884: b103 cbz r3, 8018888 <_fstat_r+0x1c>
  58923. 8018886: 6023 str r3, [r4, #0]
  58924. 8018888: bd38 pop {r3, r4, r5, pc}
  58925. 801888a: bf00 nop
  58926. 801888c: 24012dd0 .word 0x24012dd0
  58927. 08018890 <_isatty_r>:
  58928. 8018890: b538 push {r3, r4, r5, lr}
  58929. 8018892: 4d06 ldr r5, [pc, #24] @ (80188ac <_isatty_r+0x1c>)
  58930. 8018894: 2300 movs r3, #0
  58931. 8018896: 4604 mov r4, r0
  58932. 8018898: 4608 mov r0, r1
  58933. 801889a: 602b str r3, [r5, #0]
  58934. 801889c: f7eb fbe7 bl 800406e <_isatty>
  58935. 80188a0: 1c43 adds r3, r0, #1
  58936. 80188a2: d102 bne.n 80188aa <_isatty_r+0x1a>
  58937. 80188a4: 682b ldr r3, [r5, #0]
  58938. 80188a6: b103 cbz r3, 80188aa <_isatty_r+0x1a>
  58939. 80188a8: 6023 str r3, [r4, #0]
  58940. 80188aa: bd38 pop {r3, r4, r5, pc}
  58941. 80188ac: 24012dd0 .word 0x24012dd0
  58942. 080188b0 <_init>:
  58943. 80188b0: b5f8 push {r3, r4, r5, r6, r7, lr}
  58944. 80188b2: bf00 nop
  58945. 80188b4: bcf8 pop {r3, r4, r5, r6, r7}
  58946. 80188b6: bc08 pop {r3}
  58947. 80188b8: 469e mov lr, r3
  58948. 80188ba: 4770 bx lr
  58949. 080188bc <_fini>:
  58950. 80188bc: b5f8 push {r3, r4, r5, r6, r7, lr}
  58951. 80188be: bf00 nop
  58952. 80188c0: bcf8 pop {r3, r4, r5, r6, r7}
  58953. 80188c2: bc08 pop {r3}
  58954. 80188c4: 469e mov lr, r3
  58955. 80188c6: 4770 bx lr